Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RNMobile][Monorepo] Update react-native-* packages from gutenberg-mobile #20533

Merged
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
1343 commits
Select commit Hold shift + click to select a range
c2f78a4
Added entry to release notes
koke Mar 9, 2020
cb461d4
Docs: Fixes links in platform and custom block editor tutorial (#20686)
mkaz Mar 9, 2020
3351817
Revert "Add Patterns:"
aduth Mar 9, 2020
3e8fa3c
Docs: Correct link to list of WP's supported browsers (#20712)
cliffordp Mar 9, 2020
98b4800
Update gutenberg
koke Mar 9, 2020
3ccad08
Update gutenberg reference.
SergioEstevao Mar 9, 2020
b11bc56
Block library: Use block.json consistently for FSE blocks (#20717)
gziolo Mar 9, 2020
92e445e
Update bundles
koke Mar 9, 2020
1612deb
Block Library: Flatten width calculation of gallery columns (#20690)
aduth Mar 9, 2020
cd04947
Adapt the height of the block preview container to its content (#20715)
youknowriad Mar 9, 2020
ae7a6d3
Add basic patterns (#20724)
mtias Mar 9, 2020
aafaf02
Classic document outline (#20720)
jasmussen Mar 9, 2020
2bb839f
Update custom block editor tutorials link to point at new platform se…
getdave Mar 9, 2020
c82094d
GradientPicker: Fix control point UI and drag interaction (#20670)
Mar 9, 2020
0f960d0
Add a pattern showing two buttons with styles. (#20726)
mtias Mar 9, 2020
743f93d
Inserter padding, add more left and right. (#20730)
jasmussen Mar 9, 2020
50d9fdc
[LatestPosts] Don't trim manual excerpts (#20432)
draganescu Mar 9, 2020
d2e0ecd
Docs/SlotFills: Small corrections + prettify code examples (#20727)
WunderBart Mar 9, 2020
dab58bb
Bump plugin version to 7.7.0-rc.1
youknowriad Mar 9, 2020
38f56fe
Add two images side by side pattern (#20725)
youknowriad Mar 9, 2020
c01bb1e
Build: Include entire `lib/` folder in plugin bundle (#20736)
aduth Mar 9, 2020
6066186
RangeControl: Fix Reset and initialPosition (#20247)
Mar 9, 2020
d9c9158
Docs: Add Custom Block Editor to TOC and Manifest (#20749)
mkaz Mar 9, 2020
cc39808
Docs: Add tutorial file to TOC (#20750)
mkaz Mar 9, 2020
f2028fa
Expand create block options and add readme.txt template (#20694)
pereirinha Mar 10, 2020
0bbb41e
Lighter block DOM: Group (#20586)
ellatrix Mar 10, 2020
03e3c05
Lighter block DOM: Navigation (#20729)
ellatrix Mar 10, 2020
188d21a
Revert back to using extracted editing UI in landscape mode on Androi…
mchowning Mar 10, 2020
4619862
Update rn-keyboard-aware-scroll-view to point to master HEAD
etoledom Mar 10, 2020
207db60
Update gutenberg ref
etoledom Mar 10, 2020
f0ea36c
Try: Show inserter only when block selected for nesting contexts. (#2…
jasmussen Mar 10, 2020
8f337a8
Polish poster image button arrangement. (#20754)
jasmussen Mar 10, 2020
f9ded2d
Docs/SlotFills: Small update for consistency (#20767)
WunderBart Mar 10, 2020
c69f5ae
Merge remote-tracking branch 'origin/develop' into issue/fix-caret-sc…
etoledom Mar 10, 2020
0283ee7
Update GB reference.
SergioEstevao Mar 10, 2020
b984657
Fixes #11079. Removed width restriction in CSS for textarea. (#20624)
mapk Mar 10, 2020
bfa0d61
Update gutenberg ref
etoledom Mar 10, 2020
a3aecaf
Add codeowners for env package (#20667)
noahtallen Mar 10, 2020
16b19a4
Update project to use react-native-url-polyfill package for the URL c…
SergioEstevao Mar 10, 2020
49bed94
Update node version on circle ci.
SergioEstevao Mar 11, 2020
a03eff9
Update Navigation Menu Item icon (#20763)
jasmussen Mar 11, 2020
f5bfffa
Implement mock block-wrapper for mobile version. (#20772)
SergioEstevao Mar 11, 2020
cec3c95
Update GB reference.
SergioEstevao Mar 11, 2020
29f3753
Merge pull request #1994 from wordpress-mobile/issue/fix_master_breakage
SergioEstevao Mar 11, 2020
1b3055c
Check for `node.classList` to avoid crash on mobile pasting wrapped i…
etoledom Mar 11, 2020
dd0e49c
Set flex-shrink to 0 on the cell container (#20768)
maxme Mar 11, 2020
886b45c
Polish a few broken things in the sidebar. (#20782)
jasmussen Mar 11, 2020
177ca49
Bump plugin version to 7.7.0
youknowriad Mar 11, 2020
a242f6a
Update gutenberg ref
etoledom Mar 11, 2020
eeb0e55
Update gutenberg ref
etoledom Mar 11, 2020
6ae50c4
Update Gutenberg ref
Mar 11, 2020
03416d8
Merge remote-tracking branch 'origin/develop' into issue/1746-latest-…
chipsnyder Mar 11, 2020
3902625
Gallery: Update UI of controls (#20776)
Mar 11, 2020
92102d4
Update gutenberg
chipsnyder Mar 11, 2020
d0ca255
Adds filtering by multiple categories on LatestPosts block (#20781)
Ringish Mar 11, 2020
08ee3cf
Fix auto-hiding appender regression. (#20780)
jasmussen Mar 11, 2020
34afbfd
Reduce gap between block library and preview (#20777)
enriquesanchez Mar 11, 2020
12b81b0
[RNMobile] Latest Posts Block v1 Support in Mobile (#20301)
chipsnyder Mar 11, 2020
cc5ef7a
Update gutenberg reference
chipsnyder Mar 11, 2020
f3ae6da
URL: Use test data from web-platform-tests for isURL spec conformance…
aduth Mar 11, 2020
9a18c46
Merge pull request #1931 from wordpress-mobile/issue/1746-latest-post
Mar 11, 2020
527809b
Create block: Improve how prompts and values provided are handled (#2…
gziolo Mar 11, 2020
6a58858
Update GB reference.
SergioEstevao Mar 11, 2020
eb3002f
Update GB reference.
SergioEstevao Mar 11, 2020
e8c7e97
Trim input value in navigation search input field (#19832)
sainthkh Mar 12, 2020
428e964
Merge branch 'develop' into issue/update_isURL_to_use_polyfill
cameronvoell Mar 12, 2020
351877b
Merge pull request #1996 from wordpress-mobile/issue/update_isURL_to_…
cameronvoell Mar 12, 2020
6797931
[RNMobile] Cover block - Support adding video background from media …
dratwas Mar 12, 2020
4bfd32d
Merge remote-tracking branch 'origin/develop' into issue/fix-crash-pa…
etoledom Mar 12, 2020
1d4da07
Update RELEASE-NOTES.txt
etoledom Mar 12, 2020
23e6728
Update the inserter's block preview to use the AutoHeightPreview (#20…
youknowriad Mar 12, 2020
07d751a
Adds always on display of media URL (#19504)
draganescu Mar 12, 2020
bf739c0
Support video background in the cover block (#1959)
dratwas Mar 12, 2020
e41535d
Fix drag and drop into the Columns block (#20822)
youknowriad Mar 12, 2020
8af5f08
Fix columns block selection (#20823)
youknowriad Mar 12, 2020
3848806
Polish date-picker component (#20824)
jasmussen Mar 12, 2020
68e89ec
Merge pull request #1964 from wordpress-mobile/issue/fix-crash-pastin…
etoledom Mar 12, 2020
f489e13
Fix applyting backgrounds and colors to the columns block in the edit…
youknowriad Mar 12, 2020
d60fd39
E2E Tests: Mock Embed response for InnerBlocks locking test (#20481)
aduth Mar 12, 2020
e4b6da7
E2E Test Utils: Improve durability of embedding matcher (#20811)
aduth Mar 12, 2020
3233009
URL: Fix getQueryString incorrect handling of hash fragment (#20738)
aduth Mar 12, 2020
165365a
ESLint Plugin: Relax `prefer-const` for destructuring assignment (#20…
aduth Mar 12, 2020
214c9fb
Bump plugin version to 7.7.1
youknowriad Mar 12, 2020
7273202
Refactor spacer block to share edit method with the web. (#20746)
SergioEstevao Mar 12, 2020
0557d87
Update GB reference.
SergioEstevao Mar 12, 2020
7930fb0
Merge branch 'develop' into issue/refactor_spacer_block
SergioEstevao Mar 12, 2020
7dda442
Improve performance testing (#20802)
sgomes Mar 12, 2020
9727278
Merge pull request #1991 from wordpress-mobile/issue/refactor_spacer_…
SergioEstevao Mar 12, 2020
4dfb859
[RNMobile] Fix replacing empty paragraph in inner block (#20653)
dratwas Mar 12, 2020
7906556
Improves RTL style conversion (#20503)
Mar 12, 2020
c76eb1b
Fix replacing empty paragraph in inner block (#1984)
dratwas Mar 12, 2020
c5fc5ac
Update gutenberg ref to f0f6ce3
shiki Mar 12, 2020
f067e06
Update Gutenberg ref
Mar 12, 2020
a724f63
Point gutenberg submodule to fork
ceyhun Mar 12, 2020
bcd9181
Update gutenberg ref
ceyhun Mar 12, 2020
8852b89
Point gutenberg submodule to fork
ceyhun Mar 12, 2020
4f3b69e
Revert "Framework: Travis: Avoid skipping Puppeteer download (#20547)…
aduth Mar 12, 2020
3b63be6
Framework: Use WHATWG URL in place of legacy url module (#19823)
aduth Mar 12, 2020
03960e6
Compat: Use core-js-url-browser for URL polyfill (#20225)
aduth Mar 12, 2020
06655eb
Update rn-keybaord-aware-scroll-view reference for testing
etoledom Mar 12, 2020
db2825f
Fix visually hidden classnames (#20649)
talldan Mar 13, 2020
a481717
Dependencies webpack plugin: Let the output file be specified when ou…
gziolo Mar 13, 2020
2e99685
Add ESNext example for unregisterBlockType (#20784)
grappler Mar 13, 2020
b0dbaa1
Docs: Add the release date to the @wordpress/scripts CHANGELOG
gziolo Mar 13, 2020
32e2d57
Update Gutenberg ref
Mar 13, 2020
c894dce
Update Gutenberg ref
Mar 13, 2020
c0c924a
Show errors in the media replace control (#19244)
draganescu Mar 13, 2020
c5f40f7
Update Gutenberg
koke Mar 13, 2020
c59a832
Update gutenberg ref
ceyhun Mar 13, 2020
34cf102
Update Gutenberg
koke Mar 13, 2020
206edf4
Update Gutenberg
koke Mar 13, 2020
208dffb
Merge branch 'develop' into enable-page-templates
koke Mar 13, 2020
0ef1e8c
[RNMobile]: Refine block settings' separator margin (#20842)
ceyhun Mar 13, 2020
4793696
Update 'Add Block Here' indicator style (#20864)
ceyhun Mar 13, 2020
f8421c4
Remove feature flag for mobile page templates (#20718)
koke Mar 13, 2020
26cd4ab
Update Gutenberg
koke Mar 13, 2020
bba802a
Revert "Point gutenberg submodule to fork"
ceyhun Mar 13, 2020
64bfca4
Update Gutenberg
koke Mar 13, 2020
0e05bbf
Update rn-keyboard-aware-scroll-view to version gb-v0.8.8
etoledom Mar 13, 2020
fa27e99
Merge pull request #1987 from wordpress-mobile/enable-page-templates
koke Mar 13, 2020
639bfde
Update gutenberg ref
etoledom Mar 13, 2020
60faf6b
Merge remote-tracking branch 'origin/develop' into issue/fix-caret-sc…
etoledom Mar 13, 2020
cf1a819
Update gutenberg ref
ceyhun Mar 13, 2020
32ca701
Merge branch 'develop' into issue/1796-refine-video-settings-separators
ceyhun Mar 13, 2020
7a79e83
Revert "Point gutenberg submodule to fork"
ceyhun Mar 13, 2020
8caf586
Update gutenberg ref
ceyhun Mar 13, 2020
f8da7a1
[RNMobile] Create cross platform `useResizeObserver()` hook (#19918)
lukewalczak Mar 13, 2020
b0784b1
Edit Post: Register block patterns as separate plugin (#20871)
mcsf Mar 13, 2020
f1ff508
RNMobile - Replace Icon in toolbar for media editing (#20841)
Mar 13, 2020
39f9fce
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
Mar 13, 2020
2131550
Update Gutenberg ref
Mar 13, 2020
12ba05f
Merge pull request #2007 from wordpress-mobile/feature/replace-icon
Mar 13, 2020
56a12a6
Add Prettier shared config package (#20026)
ntwb Mar 13, 2020
2d430a3
Merge branch 'develop' into issue/1796-refine-video-settings-separators
ceyhun Mar 13, 2020
8d81027
Merge pull request #2008 from wordpress-mobile/issue/1796-refine-vide…
ceyhun Mar 13, 2020
0e3c246
Merge branch 'develop' into issue/1166-update-add-new-block-indicator…
ceyhun Mar 13, 2020
ae77564
Update gutenberg ref
ceyhun Mar 13, 2020
8d76def
Patterns: Make adding patterns easier (#20854)
obenland Mar 13, 2020
36977f3
Merge branch 'develop' into try/speed-up-uitests
ceyhun Mar 13, 2020
7eaf250
Update cellRowStyles to add flex-shrink back and fix a disapearing st…
maxme Mar 13, 2020
a38de90
Add default styles to the TabPanel component (#20872)
youknowriad Mar 13, 2020
bdaead2
[RNMobile] Remove left border of the toolbar (#20830)
Tug Mar 13, 2020
a9a7aad
Update gutenberg ref
etoledom Mar 13, 2020
12714e0
Merge remote-tracking branch 'origin/develop' into issue/fix-caret-sc…
etoledom Mar 13, 2020
c5d792a
Preview Button: Remove the separator and border, and reduce the size …
shaunandrews Mar 13, 2020
ae44d90
[RNMobile] Adding global toolbar height to auto-scroll calculations (…
etoledom Mar 13, 2020
5052149
Update gutenberg ref
etoledom Mar 13, 2020
a581444
Merge pull request #2014 from wordpress-mobile/issue/1166-update-add-…
ceyhun Mar 13, 2020
565737b
Merge remote-tracking branch 'origin/develop' into issue/fix-caret-sc…
etoledom Mar 13, 2020
0ef6dd5
Merge branch 'develop' into try/speed-up-uitests
ceyhun Mar 13, 2020
7500e0e
Merge pull request #1939 from wordpress-mobile/issue/fix-caret-scroll…
etoledom Mar 13, 2020
42d2b36
Site Editor: style resets for top level page (#20886)
vindl Mar 13, 2020
478b503
Update text-two-columns.json (#20890)
ianstewart Mar 13, 2020
ce00797
correct 2nd param of useViewportMatch() Usage (#20911)
cliffordp Mar 15, 2020
70df2ba
Update README.md (#20913)
voyager131 Mar 16, 2020
e17d104
Moves category multi select from LatestPosts to QueryControls (#20832)
Ringish Mar 16, 2020
176bbbd
Adding unit test to ListEdit to check for breacking changes from web …
etoledom Mar 16, 2020
0cfbfa9
Update Gutenberg
koke Mar 16, 2020
a6bc6f2
Update Gutenberg
koke Mar 16, 2020
b8e850a
Merge branch 'develop' into spt-design-fixes
koke Mar 16, 2020
3be3032
Fix: ResponsiveWrapper can not handle cases with small dimensions
jorgefilipecosta Mar 13, 2020
218e51d
testing larger margins (#20563)
draganescu Mar 16, 2020
4ad681d
Avoid page templates overwriting page title (#20865)
koke Mar 16, 2020
57558db
Update Gutenberg
koke Mar 16, 2020
e6b2952
Merge branch 'develop' into spt-no-overwrite-title
koke Mar 16, 2020
0f5a0e3
Fixes docblock for useViewportMatch (#20919)
earnjam Mar 16, 2020
090811d
Merge pull request #2015 from wordpress-mobile/spt-no-overwrite-title
koke Mar 16, 2020
3e04427
Mobile: Add accessibility label to Block List Footer (#20633)
shiki Mar 16, 2020
75f9940
Update Gutenberg ref to use video-alt2 icon
hypest Mar 16, 2020
ed53b0f
Scripts: Update all webpack related dependencies (#20916)
gziolo Mar 16, 2020
f579ec6
Add a release note for the take-a-video media option
hypest Mar 16, 2020
e8b5c2e
Document default login credentials and `wp-env run` command (#20678)
adamziel Mar 16, 2020
7aa7835
Block Editor: Use useResizeObserver in place of direct react-resize-a…
aduth Mar 16, 2020
f34fb5b
Update CODEOWNERS for aduth
aduth Mar 16, 2020
79735ff
Site Editor: add Fullscreen mode (#20691)
vindl Mar 16, 2020
8905f96
Fix: Cover block does not contain has-background-gradient class for p…
jorgefilipecosta Mar 16, 2020
3b6d095
Merge branch develop into issue/fix-footer-accessibility
shiki Mar 16, 2020
815d658
Merge pull request #1981 from wordpress-mobile/issue/fix-footer-acces…
shiki Mar 16, 2020
0b0d00a
chore(release): publish
jorgefilipecosta Mar 10, 2020
7d590e1
chore(release): publish
jorgefilipecosta Mar 16, 2020
82e5b23
FSE: Get current template part correctly for auto drafts (#20438)
epiqueras Mar 16, 2020
eda85f2
Styles Panel: Don't force it to be closed by default. (#20617)
pento Mar 17, 2020
61cbfa5
Fix/screen reader text (#20607)
adamziel Mar 17, 2020
390eac2
Refactor the inserter menu component and split into multiple smaller …
youknowriad Mar 17, 2020
c77cef6
Update page template picker after design review (#20883)
koke Mar 17, 2020
8e8f461
Update Gutenberg
koke Mar 17, 2020
dd963d6
Merge branch 'develop' into spt-design-fixes
koke Mar 17, 2020
4a41901
Merge pull request #2020 from wordpress-mobile/spt-design-fixes
koke Mar 17, 2020
df53d3d
Merge pull request #1976 from wordpress-mobile/try/speed-up-uitests
ceyhun Mar 17, 2020
11eaaee
Remove inaccurate message from image block (#20909)
aladin002dz Mar 17, 2020
1d152c1
Update Gutenberg ref
hypest Mar 17, 2020
8228ec9
Fix block preview
youknowriad Mar 17, 2020
e7cf902
Update Gutenberg ref
hypest Mar 17, 2020
503a5e8
Update Gutenberg ref
Mar 17, 2020
014920f
Compat: Conditionally filter editor settings for image dimensions (#2…
aduth Mar 17, 2020
df629a3
RNMobile - Disable Cover for production (#20965)
Mar 17, 2020
f91412a
Update Gutenberg ref
Mar 17, 2020
14d15bf
Remove iframe from embedded content elements (#20976)
talldan Mar 18, 2020
46d5f4d
Escape class name to avoid malformed html tag (#20977)
talldan Mar 18, 2020
ea62337
Lowercase visual editor and code editor to match block editor and cla…
garretthyder Mar 18, 2020
56ec52e
Add menus endpoints. (#20292)
spacedmonkey Mar 18, 2020
25b57fe
Merge pull request #2028 from wordpress-mobile/fix/cover-block-dev-only
Mar 18, 2020
341e83c
RNMobile - FloatingToolbar - Make children within the toolbar accessi…
Mar 18, 2020
8e08540
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
Mar 18, 2020
60a658d
Update Gutenberg ref
Mar 18, 2020
6ddcdc3
Block Library: Add a Post Comments block. (#19581)
epiqueras Mar 18, 2020
b6c1542
Merge pull request #1997 from wordpress-mobile/fix/floating-toolbar-a…
Mar 18, 2020
46c9490
Add visible labels to BlockPatternPicker pattern selection buttons (#…
gziolo Mar 18, 2020
2b9d35d
Load custom blocks in the Site Editor page (#20549)
johnstonphilip Mar 18, 2020
fea6b9e
Polish a few icons (#20980)
jasmussen Mar 18, 2020
7614965
Fix mobile header. (#20946)
jasmussen Mar 18, 2020
548e600
Fix input rules (#20964)
ellatrix Mar 18, 2020
8ee1f0c
Try: Improve permalink editing (#12009)
earnjam Mar 18, 2020
3514cf8
Update Gutenberg ref
hypest Mar 18, 2020
a0d637e
apply flex to prevent caption overlap in Gallery block (#20987)
jbinda Mar 18, 2020
f95341d
Update Gutenberg ref
hypest Mar 18, 2020
0e9bd85
Merge branch 'develop' into issue/1697-improve-take-video-icon
hypest Mar 18, 2020
26bab2e
Add template preview to the edit site template switcher (#20958)
youknowriad Mar 18, 2020
ae8853f
Fix: Fix Gallery caption overlapped by other block (#2033)
jbinda Mar 18, 2020
7b63e87
Convert _experimentalCreateInterpolateElement to a stable api. (#20699)
nerrad Mar 18, 2020
8c13651
[RNmobile] Improve "take video" icon (#20927)
hypest Mar 18, 2020
6a96524
Point to the merged Gutenberg PR
hypest Mar 18, 2020
db39cc3
Merge branch 'develop' into issue/1697-improve-take-video-icon
hypest Mar 18, 2020
58039bd
Merge pull request #2024 from wordpress-mobile/issue/1697-improve-tak…
hypest Mar 18, 2020
6f63dc3
Try: Nicer block footprint for social links. (#20978)
jasmussen Mar 18, 2020
476c4f6
Rnmobile/fix space max2 (#20986)
SergioEstevao Mar 18, 2020
9ed45fc
Make the inner button block not allowed as a reusable block or… (#20948)
talldan Mar 18, 2020
b72b41e
[ Latest Posts ] Fix link for read more markup (#20917)
draganescu Mar 18, 2020
b2b16ba
Update glossary (#20934)
mapk Mar 18, 2020
e6ad4bd
Fix link control search results spacing. (#21003)
Soean Mar 18, 2020
f1b60d2
RangeControl: Improve disabled rendering and interactions (#20723)
Mar 18, 2020
414ae54
Block Styles: Remove the block margin in the style selector (#19983)
scruffian Mar 19, 2020
df237e0
Blocks: Allow the Default Style selector to be hidden. (#20620)
pento Mar 19, 2020
6073f0c
Project Management Automation: Add TypeScript type-checking (#20850)
aduth Mar 19, 2020
78e749d
[RNMobile] - Implements Dark Mode on Android platform (#19293)
marecar3 Mar 19, 2020
8841762
Make sure items with long names can fit in the Autocomplete component…
Copons Mar 19, 2020
c6d5bd5
Block patterns: improve success notice (#21005)
Soean Mar 19, 2020
e288c45
Feature/1675 dark mode android integration (#1717)
marecar3 Mar 19, 2020
f90dc20
Paste: replace iframes with url (#20983)
ellatrix Mar 19, 2020
0446ed1
Editable Component (#18361)
ellatrix Mar 19, 2020
bc5f55d
Add isFileURL method and use it on all native media upload checks. (#…
SergioEstevao Mar 19, 2020
70eef3a
Add basic nav block example for inserter and styles previews (#21011)
talldan Mar 19, 2020
0ac016c
Merge remote-tracking branch 'origin/master' into rnmobile/monorepo-u…
Tug Mar 19, 2020
5ef2d7b
Update manifest doc
Tug Mar 19, 2020
90c4b46
Merge commit 'e288c45e882db9808e0396715f379edb07f32416' into rnmobile…
Tug Mar 19, 2020
e6ac717
Merge remote-tracking branch 'origin/master' into rnmobile/monorepo-u…
Tug Mar 19, 2020
11c3407
Prevent import loop in _colors.scss
Tug Mar 19, 2020
bd56823
Fix web build and convert Aztec from flow to js
Tug Mar 19, 2020
def0b38
Fix npm run test-unit
Tug Mar 19, 2020
67ed477
Add back src folder to autom import in sass transformer
Tug Mar 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ packages/react-native-*
playground/dist
vendor
wordpress

!.eslintrc.js
!.*.js
125 changes: 73 additions & 52 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const { version } = require( './package' );
*
* @type {string}
*/
const majorMinorRegExp = escapeRegExp( version.replace( /\.\d+$/, '' ) ) + '(\\.\\d+)?';
const majorMinorRegExp =
escapeRegExp( version.replace( /\.\d+$/, '' ) ) + '(\\.\\d+)?';

/**
* The list of patterns matching files used only for development purposes.
Expand All @@ -33,9 +34,7 @@ module.exports = {
'plugin:@wordpress/eslint-plugin/recommended',
'plugin:eslint-comments/recommended',
],
plugins: [
'import',
],
plugins: [ 'import' ],
globals: {
wp: 'off',
},
Expand All @@ -49,63 +48,88 @@ module.exports = {
// we'll get a `SyntaxError` (Invalid regular expression: \ at end of pattern)
// here. That's why we use \\u002F in the regexes below.
{
selector: 'ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]',
message: 'Path access on WordPress dependencies is not allowed.',
selector:
'ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]',
message:
'Path access on WordPress dependencies is not allowed.',
},
{
selector: 'ImportDeclaration[source.value=/^react-spring(?!\\u002Fweb\.cjs)/]',
message: 'The react-spring dependency must specify CommonJS bundle: react-spring/web.cjs',
selector:
'ImportDeclaration[source.value=/^react-spring(?!\\u002Fweb.cjs)/]',
message:
'The react-spring dependency must specify CommonJS bundle: react-spring/web.cjs',
},
{
selector: 'CallExpression[callee.name="deprecated"] Property[key.name="version"][value.value=/' + majorMinorRegExp + '/]',
message: 'Deprecated functions must be removed before releasing this version.',
selector:
'CallExpression[callee.name="deprecated"] Property[key.name="version"][value.value=/' +
majorMinorRegExp +
'/]',
message:
'Deprecated functions must be removed before releasing this version.',
},
{
selector: 'CallExpression[callee.name=/^(__|_n|_nx|_x)$/]:not([arguments.0.type=/^Literal|BinaryExpression$/])',
message: 'Translate function arguments must be string literals.',
selector:
'CallExpression[callee.name=/^(__|_n|_nx|_x)$/]:not([arguments.0.type=/^Literal|BinaryExpression$/])',
message:
'Translate function arguments must be string literals.',
},
{
selector: 'CallExpression[callee.name=/^(_n|_nx|_x)$/]:not([arguments.1.type=/^Literal|BinaryExpression$/])',
message: 'Translate function arguments must be string literals.',
selector:
'CallExpression[callee.name=/^(_n|_nx|_x)$/]:not([arguments.1.type=/^Literal|BinaryExpression$/])',
message:
'Translate function arguments must be string literals.',
},
{
selector: 'CallExpression[callee.name=_nx]:not([arguments.3.type=/^Literal|BinaryExpression$/])',
message: 'Translate function arguments must be string literals.',
selector:
'CallExpression[callee.name=_nx]:not([arguments.3.type=/^Literal|BinaryExpression$/])',
message:
'Translate function arguments must be string literals.',
},
{
selector: 'CallExpression[callee.name=/^(__|_x|_n|_nx)$/] Literal[value=/\\.{3}/]',
selector:
'CallExpression[callee.name=/^(__|_x|_n|_nx)$/] Literal[value=/\\.{3}/]',
message: 'Use ellipsis character (…) in place of three dots',
},
{
selector: 'ImportDeclaration[source.value="redux"] Identifier.imported[name="combineReducers"]',
selector:
'ImportDeclaration[source.value="redux"] Identifier.imported[name="combineReducers"]',
message: 'Use `combineReducers` from `@wordpress/data`',
},
{
selector: 'ImportDeclaration[source.value="lodash"] Identifier.imported[name="memoize"]',
selector:
'ImportDeclaration[source.value="lodash"] Identifier.imported[name="memoize"]',
message: 'Use memize instead of Lodash’s memoize',
},
{
selector: 'CallExpression[callee.object.name="page"][callee.property.name="waitFor"]',
selector:
'CallExpression[callee.object.name="page"][callee.property.name="waitFor"]',
message: 'Prefer page.waitForSelector instead.',
},
{
selector: 'JSXAttribute[name.name="id"][value.type="Literal"]',
message: 'Do not use string literals for IDs; use withInstanceId instead.',
message:
'Do not use string literals for IDs; use withInstanceId instead.',
},
{
// Discourage the usage of `Math.random()` as it's a code smell
// for UUID generation, for which we already have a higher-order
// component: `withInstanceId`.
selector: 'CallExpression[callee.object.name="Math"][callee.property.name="random"]',
message: 'Do not use Math.random() to generate unique IDs; use withInstanceId instead. (If you’re not generating unique IDs: ignore this message.)',
selector:
'CallExpression[callee.object.name="Math"][callee.property.name="random"]',
message:
'Do not use Math.random() to generate unique IDs; use withInstanceId instead. (If you’re not generating unique IDs: ignore this message.)',
},
{
selector: 'CallExpression[callee.name="withDispatch"] > :function > BlockStatement > :not(VariableDeclaration,ReturnStatement)',
message: 'withDispatch must return an object with consistent keys. Avoid performing logic in `mapDispatchToProps`.',
selector:
'CallExpression[callee.name="withDispatch"] > :function > BlockStatement > :not(VariableDeclaration,ReturnStatement)',
message:
'withDispatch must return an object with consistent keys. Avoid performing logic in `mapDispatchToProps`.',
},
{
selector: 'LogicalExpression[operator="&&"][left.property.name="length"][right.type="JSXElement"]',
message: 'Avoid truthy checks on length property rendering, as zero length is rendered verbatim.',
selector:
'LogicalExpression[operator="&&"][left.property.name="length"][right.type="JSXElement"]',
message:
'Avoid truthy checks on length property rendering, as zero length is rendered verbatim.',
},
],
},
Expand All @@ -127,37 +151,34 @@ module.exports = {
...developmentFiles,
],
rules: {
'react/forbid-elements': [ 'error', {
forbid: [
[ 'button', 'Button' ],
[ 'circle', 'Circle' ],
[ 'g', 'G' ],
[ 'path', 'Path' ],
[ 'polygon', 'Polygon' ],
[ 'rect', 'Rect' ],
[ 'svg', 'SVG' ],
].map( ( [ element, componentName ] ) => {
return {
element,
message: `use cross-platform <${ componentName } /> component instead.`,
};
} ),
} ],
'react/forbid-elements': [
'error',
{
forbid: [
[ 'button', 'Button' ],
[ 'circle', 'Circle' ],
[ 'g', 'G' ],
[ 'path', 'Path' ],
[ 'polygon', 'Polygon' ],
[ 'rect', 'Rect' ],
[ 'svg', 'SVG' ],
].map( ( [ element, componentName ] ) => {
return {
element,
message: `use cross-platform <${ componentName } /> component instead.`,
};
} ),
},
],
},
},
{
files: [
'packages/jest*/**/*.js',
],
extends: [
'plugin:@wordpress/eslint-plugin/test-unit',
],
files: [ 'packages/jest*/**/*.js' ],
extends: [ 'plugin:@wordpress/eslint-plugin/test-unit' ],
},
{
files: [ 'packages/e2e-test*/**/*.js' ],
extends: [
'plugin:@wordpress/eslint-plugin/test-e2e',
],
extends: [ 'plugin:@wordpress/eslint-plugin/test-e2e' ],
},
],
};
20 changes: 11 additions & 9 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@

# Blocks
/packages/block-library @Soean @ajitbohra @jorgefilipecosta @talldan
/packages/block-library/src/gallery @mkevins @pinarol
/packages/block-library/src/social-links @mkaz
/packages/block-library/src/social-link @mkaz

# Editor
/packages/annotations @atimmer @ellatrix
/packages/autop @aduth
/packages/block-editor @youknowriad @talldan @ellatrix
/packages/block-editor @youknowriad @ellatrix
/packages/block-serialization-spec-parser @dmsnell
/packages/block-serialization-default-parser @dmsnell
/packages/blocks @youknowriad @ellatrix
/packages/edit-post @talldan
/packages/editor @talldan
/packages/edit-post
/packages/editor
/packages/list-reusable-blocks @youknowriad @noisysocks
/packages/shortcode @aduth

Expand All @@ -37,6 +38,7 @@
/packages/babel-plugin-makepot @ntwb @nerrad @ajitbohra
/packages/babel-preset-default @youknowriad @gziolo @ntwb @nerrad @ajitbohra
/packages/browserslist-config @gziolo @ntwb @nerrad @ajitbohra
/packages/create-block @gziolo
/packages/custom-templated-path-webpack-plugin @ntwb @nerrad @ajitbohra
/packages/docgen @nosolosw
/packages/e2e-test-utils @gziolo @ntwb @nerrad @ajitbohra
Expand All @@ -51,12 +53,12 @@
/packages/scripts @youknowriad @gziolo @ntwb @nerrad @ajitbohra

# UI Components
/packages/components @youknowriad @ajitbohra @jaymanpandya @jorgefilipecosta @talldan @chrisvanpatten
/packages/compose @youknowriad @ajitbohra @jaymanpandya @jorgefilipecosta @talldan
/packages/element @youknowriad @ajitbohra @jaymanpandya @jorgefilipecosta @talldan
/packages/notices @ajitbohra @jaymanpandya @jorgefilipecosta @talldan
/packages/nux @ajitbohra @jaymanpandya @jorgefilipecosta @talldan @noisysocks
/packages/viewport @youknowriad @ajitbohra @jaymanpandya @jorgefilipecosta @talldan
/packages/components @youknowriad @ajitbohra @jaymanpandya @jorgefilipecosta @chrisvanpatten
/packages/compose @youknowriad @ajitbohra @jaymanpandya @jorgefilipecosta
/packages/element @youknowriad @ajitbohra @jaymanpandya @jorgefilipecosta
/packages/notices @ajitbohra @jaymanpandya @jorgefilipecosta
/packages/nux @ajitbohra @jaymanpandya @jorgefilipecosta @noisysocks
/packages/viewport @youknowriad @ajitbohra @jaymanpandya @jorgefilipecosta

# Utilities
/packages/a11y @youknowriad @aduth
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
- [ ] My code follows the accessibility standards. <!-- Guidelines: https://make.wordpress.org/core/handbook/best-practices/coding-standards/accessibility-coding-standards/ -->
- [ ] My code has proper inline documentation. <!-- Guidelines: https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/javascript/ -->
- [ ] I've included developer documentation if appropriate. <!-- Handbook: https://developer.wordpress.org/block-editor/ -->
- [ ] I've updated all React Native files affected by any refactorings/renamings in this PR. <!-- React Native mobile Gutenberg guidelines: https://github.com/WordPress/gutenberg/blob/master/docs/contributors/native-mobile.md -->.
- [ ] I've updated all React Native files affected by any refactorings/renamings in this PR. <!-- React Native mobile Gutenberg guidelines: https://github.com/WordPress/gutenberg/blob/master/docs/contributors/native-mobile.md -->
11 changes: 9 additions & 2 deletions .github/workflows/pull-request-automation.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
on: pull_request
on:
pull_request:
types: [opened]
push:
name: Pull request automation

jobs:
pull-request-automation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# Checkout defaults to using the branch which triggered the event, which
# isn't necessarily `master` (e.g. in the case of a merge).
- uses: actions/checkout@v2
with:
ref: master
# Changing into the action's directory and running `npm install` is much
# faster than a full project-wide `npm ci`.
- run: cd packages/project-management-automation && npm install
Expand Down
9 changes: 9 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
bin
build
node_modules
phpunit
playground
storybook
test
vendor
wordpress
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Import the default config file and expose it in the project root.
// Useful for editor integrations.
module.exports = require( '@wordpress/scripts/config/.prettierrc.js' );
4 changes: 4 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"core": "WordPress/WordPress",
"plugins": [ "." ]
}
36 changes: 11 additions & 25 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,24 @@
# Contributing
# Contributing Guidelines

Thank you for thinking about contributing to WordPress' Gutenberg project! If you're unsure of anything, know that you're 💯 welcome to submit an issue or pull request on any topic. The worst that can happen is that you'll be politely directed to the best location to ask your question or to change something in your pull request. We appreciate any sort of contribution and don't want a wall of rules to get in the way of that.
Welcome to WordPress' Gutenberg project! We hope you join us in creating the future platform for publishing; all are welcome here.

As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our [Code of Conduct](/CODE_OF_CONDUCT.md).
## How can I contribute?

Before contributing, we encourage you to review the [Contributor Handbook](https://developer.wordpress.org/block-editor/contributors/). If you have any questions, please ask, either in Slack or open an issue in GitHub so we can help clarify.
To learn all about contributing to the Gutenberg project, see the [Contributor Guide](/docs/contributors/readme.md). The handbook includes all the details you need to get setup and start shaping the future of web publishing.

All WordPress projects are [licensed under the GPLv2+](/LICENSE.md), and all contributions to Gutenberg will be released under the GPLv2+ license. You maintain copyright over any contribution you make, and by submitting a pull request, you are agreeing to release that contribution under the GPLv2+ license.
- Code? See the [developer section](/docs/contributors/develop.md).

This document covers the technical details around setup, and submitting your contribution to the Gutenberg project.
- Design? See the [design section](/docs/contributors/design.md).

## Developer Contributions
- Documentation? See the [documentation section](/docs/contributors/document.md).

Please see the [Developer Contributions section](/docs/contributors/develop.md) of the Contributor Handbook.
- Triage? We need help reviewing existing issues to make sure they’re relevant and actionable. Triage is an important contribution because it allows us to work on the highest priority issues. To learn more, please see the [triaging issues section](docs/contributors/repository-management.md#triaging-issues).

## How Can Designers Contribute?
## Guidelines

If you'd like to contribute to the design or front-end, feel free to contribute to tickets labelled [Needs Design](https://github.com/WordPress/gutenberg/issues?q=is%3Aissue+is%3Aopen+label%3A%22Needs+Design%22) or [Needs Design Feedback](https://github.com/WordPress/gutenberg/issues?q=is%3Aissue+is%3Aopen+label%3A"Needs+Design+Feedback%22). We could use your thoughtful replies, mockups, animatics, sketches, doodles. Proposed changes are best done as minimal and specific iterations on the work that precedes it so we can compare. The [WordPress Design team](http://make.wordpress.org/design/) uses [Figma](https://www.figma.com/) to collaborate and share work. If you'd like to contribute, join the [#design channel](http://wordpress.slack.com/messages/design/) in [Slack](https://make.wordpress.org/chat/) and ask the team to set you up with a free Figma account. This will give you access to a helpful [library of components](https://www.figma.com/file/ZtN5xslEVYgzU7Dd5CxgGZwq/WordPress-Components?node-id=0%3A1) used in WordPress.
- As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our [Code of Conduct](/CODE_OF_CONDUCT.md).

## Triage Contributions

*Triage* is the practice of reviewing existing issues to make sure they’re relevant, actionable, and have all the information needed to reproduce and/or solve the issue. Triaging is a very important contribution because it allows the community to focus on and prioritise issues, feature proposals, discussions, and so on.

If you want to learn more about triage, and why it it important, please see the [repository management section](docs/contributors/repository-management.md#triaging-issues) of the Contributor Handbook.

## Contribute to the Documentation

Please see the [Documentation section](/docs/contributors/document.md) of the Contributor Handbook.

Documentation is automatically synced from `master` to the [Block Editor Handbook](https://developer.wordpress.org/block-editor/) every 15 minutes.

### `@wordpress/component`

If you're contributing to the documentation of any component from the `@wordpress/component` package, take a look at its [guidelines for contributing](/packages/components/CONTRIBUTING.md).
- All WordPress projects are [licensed under the GPLv2+](/LICENSE.md), and all contributions to Gutenberg will be released under the GPLv2+ license. You maintain copyright over any contribution you make, and by submitting a pull request, you are agreeing to release that contribution under the GPLv2+ license.

## Reporting Security Issues

Expand Down
5 changes: 1 addition & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ module.exports = function( api ) {

return {
presets: [ '@wordpress/babel-preset-default' ],
plugins: [
'babel-plugin-emotion',
'babel-plugin-inline-json-import',
],
plugins: [ 'babel-plugin-emotion', 'babel-plugin-inline-json-import' ],
};
};
29 changes: 19 additions & 10 deletions bin/api-docs/are-readmes-unstaged.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,26 @@ const execSync = require( 'child_process' ).execSync;
*/
const getPackages = require( './packages' );

const getUnstagedFiles = () => execSync( 'git diff --name-only', { encoding: 'utf8' } ).split( '\n' ).filter( ( element ) => '' !== element );
const readmeFiles = getPackages().map( ( [ packageName ] ) => join( 'packages', packageName, 'README.md' ) );
const unstagedReadmes = getUnstagedFiles().filter( ( element ) => readmeFiles.includes( element ) );
const getUnstagedFiles = () =>
execSync( 'git diff --name-only', { encoding: 'utf8' } )
.split( '\n' )
.filter( ( element ) => '' !== element );
const readmeFiles = getPackages().map( ( [ packageName ] ) =>
join( 'packages', packageName, 'README.md' )
);
const unstagedReadmes = getUnstagedFiles().filter( ( element ) =>
readmeFiles.includes( element )
);

if ( unstagedReadmes.length > 0 ) {
process.exitCode = 1;
process.stdout.write( chalk.red(
'\n',
'Some API docs may be out of date:',
unstagedReadmes.toString(),
'Either stage them or continue with --no-verify.',
'\n'
) );
process.stdout.write(
chalk.red(
'\n',
'Some API docs may be out of date:',
unstagedReadmes.toString(),
'Either stage them or continue with --no-verify.',
'\n'
)
);
}
Loading