@wordpress/patterns 2.37.0 → 2.37.1-next.06ee73755.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -2
- package/LICENSE.md +1 -1
- package/build/api/{index.js → index.cjs} +2 -15
- package/build/api/index.cjs.map +7 -0
- package/build/components/{allow-overrides-modal.js → allow-overrides-modal.cjs} +1 -2
- package/build/components/allow-overrides-modal.cjs.map +7 -0
- package/build/components/{category-selector.js → category-selector.cjs} +1 -1
- package/build/components/{create-pattern-modal.js → create-pattern-modal.cjs} +6 -8
- package/build/components/{create-pattern-modal.js.map → create-pattern-modal.cjs.map} +2 -2
- package/build/components/{duplicate-pattern-modal.js → duplicate-pattern-modal.cjs} +3 -3
- package/build/components/{index.js → index.cjs} +3 -3
- package/build/components/{overrides-panel.js → overrides-panel.cjs} +14 -11
- package/build/components/overrides-panel.cjs.map +7 -0
- package/build/components/{pattern-convert-button.js → pattern-convert-button.cjs} +5 -5
- package/build/components/{pattern-overrides-controls.js → pattern-overrides-controls.cjs} +3 -4
- package/build/components/{pattern-overrides-controls.js.map → pattern-overrides-controls.cjs.map} +2 -2
- package/build/components/{patterns-manage-button.js → patterns-manage-button.cjs} +3 -3
- package/build/components/{rename-pattern-category-modal.js → rename-pattern-category-modal.cjs} +2 -3
- package/build/components/{rename-pattern-category-modal.js.map → rename-pattern-category-modal.cjs.map} +2 -2
- package/build/components/{rename-pattern-modal.js → rename-pattern-modal.cjs} +1 -2
- package/build/components/{rename-pattern-modal.js.map → rename-pattern-modal.cjs.map} +2 -2
- package/build/components/{reset-overrides-control.js → reset-overrides-control.cjs} +1 -1
- package/build/{constants.js → constants.cjs} +1 -9
- package/build/constants.cjs.map +7 -0
- package/build/{index.js → index.cjs} +4 -4
- package/build/{index.js.map → index.cjs.map} +1 -1
- package/build/{lock-unlock.js → lock-unlock.cjs} +1 -1
- package/build/{private-apis.js → private-apis.cjs} +14 -16
- package/build/private-apis.cjs.map +7 -0
- package/build/{private-hooks.js → private-hooks.cjs} +2 -2
- package/build/store/{actions.js → actions.cjs} +2 -2
- package/build/store/{constants.js → constants.cjs} +1 -1
- package/build/store/{index.js → index.cjs} +6 -6
- package/build/store/{reducer.js → reducer.cjs} +1 -1
- package/build/store/{selectors.js → selectors.cjs} +1 -1
- package/build-module/api/index.mjs +10 -0
- package/build-module/api/index.mjs.map +7 -0
- package/build-module/components/{allow-overrides-modal.js → allow-overrides-modal.mjs} +1 -2
- package/build-module/components/allow-overrides-modal.mjs.map +7 -0
- package/build-module/components/{category-selector.js → category-selector.mjs} +1 -1
- package/build-module/components/{create-pattern-modal.js → create-pattern-modal.mjs} +6 -8
- package/build-module/components/{create-pattern-modal.js.map → create-pattern-modal.mjs.map} +2 -2
- package/build-module/components/{duplicate-pattern-modal.js → duplicate-pattern-modal.mjs} +3 -3
- package/build-module/components/{index.js → index.mjs} +3 -3
- package/build-module/components/{overrides-panel.js → overrides-panel.mjs} +14 -11
- package/build-module/components/overrides-panel.mjs.map +7 -0
- package/build-module/components/{pattern-convert-button.js → pattern-convert-button.mjs} +5 -5
- package/build-module/components/{pattern-overrides-controls.js → pattern-overrides-controls.mjs} +3 -4
- package/build-module/components/{pattern-overrides-controls.js.map → pattern-overrides-controls.mjs.map} +2 -2
- package/build-module/components/{patterns-manage-button.js → patterns-manage-button.mjs} +3 -3
- package/build-module/components/{rename-pattern-category-modal.js → rename-pattern-category-modal.mjs} +2 -3
- package/build-module/components/{rename-pattern-category-modal.js.map → rename-pattern-category-modal.mjs.map} +2 -2
- package/build-module/components/{rename-pattern-modal.js → rename-pattern-modal.mjs} +1 -2
- package/build-module/components/{rename-pattern-modal.js.map → rename-pattern-modal.mjs.map} +2 -2
- package/build-module/components/{reset-overrides-control.js → reset-overrides-control.mjs} +1 -1
- package/build-module/{constants.js → constants.mjs} +1 -8
- package/build-module/constants.mjs.map +7 -0
- package/build-module/index.mjs +7 -0
- package/build-module/{lock-unlock.js → lock-unlock.mjs} +1 -1
- package/build-module/{private-apis.js → private-apis.mjs} +15 -18
- package/build-module/private-apis.mjs.map +7 -0
- package/build-module/{private-hooks.js → private-hooks.mjs} +2 -2
- package/build-module/store/{actions.js → actions.mjs} +2 -2
- package/build-module/store/{constants.js → constants.mjs} +1 -1
- package/build-module/store/{index.js → index.mjs} +6 -6
- package/build-module/store/{reducer.js → reducer.mjs} +1 -1
- package/build-module/store/{selectors.js → selectors.mjs} +1 -1
- package/build-style/style-rtl.css +4 -0
- package/build-style/style.css +4 -0
- package/package.json +33 -25
- package/src/api/index.js +0 -24
- package/src/components/allow-overrides-modal.js +0 -1
- package/src/components/create-pattern-modal.js +0 -2
- package/src/components/overrides-panel.js +18 -10
- package/src/components/pattern-overrides-controls.js +0 -1
- package/src/components/rename-pattern-category-modal.js +0 -1
- package/src/components/rename-pattern-modal.js +0 -1
- package/src/constants.js +0 -8
- package/src/private-apis.js +1 -4
- package/build/api/index.js.map +0 -7
- package/build/components/allow-overrides-modal.js.map +0 -7
- package/build/components/overrides-panel.js.map +0 -7
- package/build/constants.js.map +0 -7
- package/build/private-apis.js.map +0 -7
- package/build-module/api/index.js +0 -22
- package/build-module/api/index.js.map +0 -7
- package/build-module/components/allow-overrides-modal.js.map +0 -7
- package/build-module/components/overrides-panel.js.map +0 -7
- package/build-module/constants.js.map +0 -7
- package/build-module/index.js +0 -7
- package/build-module/private-apis.js.map +0 -7
- /package/build/components/{category-selector.js.map → category-selector.cjs.map} +0 -0
- /package/build/components/{duplicate-pattern-modal.js.map → duplicate-pattern-modal.cjs.map} +0 -0
- /package/build/components/{index.js.map → index.cjs.map} +0 -0
- /package/build/components/{pattern-convert-button.js.map → pattern-convert-button.cjs.map} +0 -0
- /package/build/components/{patterns-manage-button.js.map → patterns-manage-button.cjs.map} +0 -0
- /package/build/components/{reset-overrides-control.js.map → reset-overrides-control.cjs.map} +0 -0
- /package/build/{lock-unlock.js.map → lock-unlock.cjs.map} +0 -0
- /package/build/{private-hooks.js.map → private-hooks.cjs.map} +0 -0
- /package/build/store/{actions.js.map → actions.cjs.map} +0 -0
- /package/build/store/{constants.js.map → constants.cjs.map} +0 -0
- /package/build/store/{index.js.map → index.cjs.map} +0 -0
- /package/build/store/{reducer.js.map → reducer.cjs.map} +0 -0
- /package/build/store/{selectors.js.map → selectors.cjs.map} +0 -0
- /package/build-module/components/{category-selector.js.map → category-selector.mjs.map} +0 -0
- /package/build-module/components/{duplicate-pattern-modal.js.map → duplicate-pattern-modal.mjs.map} +0 -0
- /package/build-module/components/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/components/{pattern-convert-button.js.map → pattern-convert-button.mjs.map} +0 -0
- /package/build-module/components/{patterns-manage-button.js.map → patterns-manage-button.mjs.map} +0 -0
- /package/build-module/components/{reset-overrides-control.js.map → reset-overrides-control.mjs.map} +0 -0
- /package/build-module/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/{lock-unlock.js.map → lock-unlock.mjs.map} +0 -0
- /package/build-module/{private-hooks.js.map → private-hooks.mjs.map} +0 -0
- /package/build-module/store/{actions.js.map → actions.mjs.map} +0 -0
- /package/build-module/store/{constants.js.map → constants.mjs.map} +0 -0
- /package/build-module/store/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/store/{reducer.js.map → reducer.mjs.map} +0 -0
- /package/build-module/store/{selectors.js.map → selectors.mjs.map} +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/overrides-panel.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport {\n\tprivateApis as blockEditorPrivateApis,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { PanelBody } from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\nimport { useMemo } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport { isOverridableBlock } from '../api';\nimport { unlock } from '../lock-unlock';\n\nconst { BlockQuickNavigation } = unlock( blockEditorPrivateApis );\n\nexport default function OverridesPanel() {\n\tconst allClientIds = useSelect(\n\t\t( select ) => select( blockEditorStore ).getClientIdsWithDescendants(),\n\t\t[]\n\t);\n\tconst { getBlock } = useSelect( blockEditorStore );\n\tconst clientIdsWithOverrides = useMemo(\n\t\t() =>\n\t\t\tallClientIds.filter( ( clientId ) => {\n\t\t\t\tconst block = getBlock( clientId );\n\t\t\t\treturn isOverridableBlock( block );\n\t\t\t} ),\n\t\t[ allClientIds, getBlock ]\n\t);\n\n\tif ( ! clientIdsWithOverrides?.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PanelBody title={ __( 'Overrides' ) }>\n\t\t\t<BlockQuickNavigation clientIds={ clientIdsWithOverrides } />\n\t\t</PanelBody>\n\t);\n}\n"],
|
|
5
|
-
"mappings": ";AAGA;AAAA,EACC,eAAe;AAAA,EACf,SAAS;AAAA,OACH;AACP,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,UAAU;AAKnB,SAAS,0BAA0B;AACnC,SAAS,cAAc;AAyBpB;AAvBH,IAAM,EAAE,qBAAqB,IAAI,OAAQ,sBAAuB;AAEjD,SAAR,iBAAkC;AACxC,QAAM,eAAe;AAAA,IACpB,CAAE,WAAY,OAAQ,gBAAiB,EAAE,4BAA4B;AAAA,IACrE,CAAC;AAAA,EACF;AACA,QAAM,EAAE,SAAS,IAAI,UAAW,gBAAiB;AACjD,QAAM,yBAAyB;AAAA,IAC9B,MACC,aAAa,OAAQ,CAAE,aAAc;AACpC,YAAM,QAAQ,SAAU,QAAS;AACjC,aAAO,mBAAoB,KAAM;AAAA,IAClC,CAAE;AAAA,IACH,CAAE,cAAc,QAAS;AAAA,EAC1B;AAEA,MAAK,CAAE,wBAAwB,QAAS;AACvC,WAAO;AAAA,EACR;AAEA,SACC,oBAAC,aAAU,OAAQ,GAAI,WAAY,GAClC,8BAAC,wBAAqB,WAAY,wBAAyB,GAC5D;AAEF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/constants.js"],
|
|
4
|
-
"sourcesContent": ["export const PATTERN_TYPES = {\n\ttheme: 'pattern',\n\tuser: 'wp_block',\n};\n\nexport const PATTERN_DEFAULT_CATEGORY = 'all-patterns';\nexport const PATTERN_USER_CATEGORY = 'my-patterns';\nexport const EXCLUDED_PATTERN_SOURCES = [\n\t'core',\n\t'pattern-directory/core',\n\t'pattern-directory/featured',\n];\nexport const PATTERN_SYNC_TYPES = {\n\tfull: 'fully',\n\tunsynced: 'unsynced',\n};\n\n// TODO: This should not be hardcoded. Maybe there should be a config and/or an UI.\nexport const PARTIAL_SYNCING_SUPPORTED_BLOCKS = {\n\t'core/paragraph': [ 'content' ],\n\t'core/heading': [ 'content' ],\n\t'core/button': [ 'text', 'url', 'linkTarget', 'rel' ],\n\t'core/image': [ 'id', 'url', 'title', 'alt', 'caption' ],\n};\n\nexport const PATTERN_OVERRIDES_BINDING_SOURCE = 'core/pattern-overrides';\n"],
|
|
5
|
-
"mappings": ";AAAO,IAAM,gBAAgB;AAAA,EAC5B,OAAO;AAAA,EACP,MAAM;AACP;AAEO,IAAM,2BAA2B;AACjC,IAAM,wBAAwB;AAC9B,IAAM,2BAA2B;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AACD;AACO,IAAM,qBAAqB;AAAA,EACjC,MAAM;AAAA,EACN,UAAU;AACX;AAGO,IAAM,mCAAmC;AAAA,EAC/C,kBAAkB,CAAE,SAAU;AAAA,EAC9B,gBAAgB,CAAE,SAAU;AAAA,EAC5B,eAAe,CAAE,QAAQ,OAAO,cAAc,KAAM;AAAA,EACpD,cAAc,CAAE,MAAM,OAAO,SAAS,OAAO,SAAU;AACxD;AAEO,IAAM,mCAAmC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/build-module/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/private-apis.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport { lock } from './lock-unlock';\nimport OverridesPanel from './components/overrides-panel';\nimport {\n\tdefault as CreatePatternModal,\n\tCreatePatternModalContents,\n} from './components/create-pattern-modal';\nimport {\n\tdefault as DuplicatePatternModal,\n\tuseDuplicatePatternProps,\n} from './components/duplicate-pattern-modal';\nimport { isOverridableBlock, hasOverridableBlocks } from './api';\nimport RenamePatternModal from './components/rename-pattern-modal';\nimport PatternsMenuItems from './components';\nimport RenamePatternCategoryModal from './components/rename-pattern-category-modal';\nimport PatternOverridesControls from './components/pattern-overrides-controls';\nimport ResetOverridesControl from './components/reset-overrides-control';\nimport { useAddPatternCategory } from './private-hooks';\nimport {\n\tPATTERN_TYPES,\n\tPATTERN_DEFAULT_CATEGORY,\n\tPATTERN_USER_CATEGORY,\n\tEXCLUDED_PATTERN_SOURCES,\n\tPATTERN_SYNC_TYPES,\n\tPARTIAL_SYNCING_SUPPORTED_BLOCKS,\n} from './constants';\n\nexport const privateApis = {};\nlock( privateApis, {\n\tOverridesPanel,\n\tCreatePatternModal,\n\tCreatePatternModalContents,\n\tDuplicatePatternModal,\n\tisOverridableBlock,\n\thasOverridableBlocks,\n\tuseDuplicatePatternProps,\n\tRenamePatternModal,\n\tPatternsMenuItems,\n\tRenamePatternCategoryModal,\n\tPatternOverridesControls,\n\tResetOverridesControl,\n\tuseAddPatternCategory,\n\tPATTERN_TYPES,\n\tPATTERN_DEFAULT_CATEGORY,\n\tPATTERN_USER_CATEGORY,\n\tEXCLUDED_PATTERN_SOURCES,\n\tPATTERN_SYNC_TYPES,\n\tPARTIAL_SYNCING_SUPPORTED_BLOCKS,\n} );\n"],
|
|
5
|
-
"mappings": ";AAGA,SAAS,YAAY;AACrB,OAAO,oBAAoB;AAC3B;AAAA,EACC,WAAW;AAAA,EACX;AAAA,OACM;AACP;AAAA,EACC,WAAW;AAAA,EACX;AAAA,OACM;AACP,SAAS,oBAAoB,4BAA4B;AACzD,OAAO,wBAAwB;AAC/B,OAAO,uBAAuB;AAC9B,OAAO,gCAAgC;AACvC,OAAO,8BAA8B;AACrC,OAAO,2BAA2B;AAClC,SAAS,6BAA6B;AACtC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACM;AAEA,IAAM,cAAc,CAAC;AAC5B,KAAM,aAAa;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,CAAE;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
File without changes
|
/package/build/components/{duplicate-pattern-modal.js.map → duplicate-pattern-modal.cjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/components/{reset-overrides-control.js.map → reset-overrides-control.cjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build-module/components/{duplicate-pattern-modal.js.map → duplicate-pattern-modal.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
/package/build-module/components/{pattern-convert-button.js.map → pattern-convert-button.mjs.map}
RENAMED
|
File without changes
|
/package/build-module/components/{patterns-manage-button.js.map → patterns-manage-button.mjs.map}
RENAMED
|
File without changes
|
/package/build-module/components/{reset-overrides-control.js.map → reset-overrides-control.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|