Skip to content

Commit

Permalink
Merge pull request #67 from MD-sunilprajapati/sync-with-trunk
Browse files Browse the repository at this point in the history
Sync with trunk
  • Loading branch information
poojabhimani12 authored Oct 4, 2024
2 parents bf20345 + 667163e commit 25364d8
Show file tree
Hide file tree
Showing 328 changed files with 2,831 additions and 1,387 deletions.
11 changes: 2 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ module.exports = {
'BorderBoxControl',
'BorderControl',
'BoxControl',
'Button',
'ComboboxControl',
'CustomSelectControl',
'DimensionControl',
Expand All @@ -343,7 +344,7 @@ module.exports = {
selector: `JSXOpeningElement[name.name="${ componentName }"]:not(:has(JSXAttribute[name.name="__next40pxDefaultSize"][value.expression.value!=false])):not(:has(JSXAttribute[name.name="size"][value.value!="default"]))`,
message:
componentName +
' should have the `__next40pxDefaultSize` prop to opt-in to the new default size.',
' should have the `__next40pxDefaultSize` prop when using the default size.',
} ) ),
{
// Falsy `__next40pxDefaultSize` without a `render` prop.
Expand All @@ -352,14 +353,6 @@ module.exports = {
message:
'FormFileUpload should have the `__next40pxDefaultSize` prop to opt-in to the new default size.',
},
// Temporary rules until all existing components have the `__next40pxDefaultSize` prop.
...[ 'Button' ].map( ( componentName ) => ( {
// Not strict. Allows pre-existing __next40pxDefaultSize={ false } usage until they are all manually updated.
selector: `JSXOpeningElement[name.name="${ componentName }"]:not(:has(JSXAttribute[name.name="__next40pxDefaultSize"])):not(:has(JSXAttribute[name.name="size"]))`,
message:
componentName +
' should have the `__next40pxDefaultSize` prop to opt-in to the new default size.',
} ) ),
],
},
},
Expand Down
337 changes: 337 additions & 0 deletions changelog.txt

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/reference-guides/data/data-core-annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ This package is still experimental. “Experimental” means this is an early im

Nothing to document.


<!-- END TOKEN(Autogenerated selectors|../../../packages/annotations/src/store/selectors.js) -->

## Actions
Expand Down
1 change: 0 additions & 1 deletion docs/reference-guides/data/data-core-block-directory.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ _Returns_

- `boolean`: Whether a request is in progress for the blocks list.


<!-- END TOKEN(Autogenerated selectors|../../../packages/block-directory/src/store/selectors.js) -->

## Actions
Expand Down
Loading

0 comments on commit 25364d8

Please sign in to comment.