@wordpress/interface 9.19.0 → 9.19.1-next.2f1c7c01b.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.
Files changed (65) hide show
  1. package/build/components/action-item/index.js +4 -2
  2. package/build/components/action-item/index.js.map +1 -1
  3. package/build/components/complementary-area/index.js +6 -4
  4. package/build/components/complementary-area/index.js.map +1 -1
  5. package/build/components/complementary-area-header/index.js +4 -2
  6. package/build/components/complementary-area-header/index.js.map +1 -1
  7. package/build/components/complementary-area-more-menu-item/index.js +4 -2
  8. package/build/components/complementary-area-more-menu-item/index.js.map +1 -1
  9. package/build/components/complementary-area-toggle/index.js +3 -1
  10. package/build/components/complementary-area-toggle/index.js.map +1 -1
  11. package/build/components/fullscreen-mode/index.js +3 -1
  12. package/build/components/fullscreen-mode/index.js.map +1 -1
  13. package/build/components/index.js +2 -0
  14. package/build/components/index.js.map +1 -1
  15. package/build/components/interface-skeleton/index.js +6 -4
  16. package/build/components/interface-skeleton/index.js.map +1 -1
  17. package/build/components/pinned-items/index.js +3 -1
  18. package/build/components/pinned-items/index.js.map +1 -1
  19. package/build/index.js +2 -0
  20. package/build/index.js.map +1 -1
  21. package/build/store/actions.js +7 -5
  22. package/build/store/actions.js.map +1 -1
  23. package/build/store/constants.js +3 -1
  24. package/build/store/constants.js.map +1 -1
  25. package/build/store/deprecated.js +2 -0
  26. package/build/store/deprecated.js.map +1 -1
  27. package/build/store/index.js +3 -1
  28. package/build/store/index.js.map +1 -1
  29. package/build/store/reducer.js +2 -0
  30. package/build/store/reducer.js.map +1 -1
  31. package/build/store/selectors.js +6 -4
  32. package/build/store/selectors.js.map +1 -1
  33. package/build-module/components/action-item/index.js +3 -2
  34. package/build-module/components/action-item/index.js.map +1 -1
  35. package/build-module/components/complementary-area/index.js +5 -4
  36. package/build-module/components/complementary-area/index.js.map +1 -1
  37. package/build-module/components/complementary-area-header/index.js +3 -2
  38. package/build-module/components/complementary-area-header/index.js.map +1 -1
  39. package/build-module/components/complementary-area-more-menu-item/index.js +3 -2
  40. package/build-module/components/complementary-area-more-menu-item/index.js.map +1 -1
  41. package/build-module/components/complementary-area-toggle/index.js +2 -1
  42. package/build-module/components/complementary-area-toggle/index.js.map +1 -1
  43. package/build-module/components/fullscreen-mode/index.js +2 -1
  44. package/build-module/components/fullscreen-mode/index.js.map +1 -1
  45. package/build-module/components/index.js +1 -0
  46. package/build-module/components/index.js.map +1 -1
  47. package/build-module/components/interface-skeleton/index.js +5 -4
  48. package/build-module/components/interface-skeleton/index.js.map +1 -1
  49. package/build-module/components/pinned-items/index.js +2 -1
  50. package/build-module/components/pinned-items/index.js.map +1 -1
  51. package/build-module/index.js +1 -0
  52. package/build-module/index.js.map +1 -1
  53. package/build-module/store/actions.js +6 -5
  54. package/build-module/store/actions.js.map +1 -1
  55. package/build-module/store/constants.js +2 -1
  56. package/build-module/store/constants.js.map +1 -1
  57. package/build-module/store/deprecated.js +1 -0
  58. package/build-module/store/deprecated.js.map +1 -1
  59. package/build-module/store/index.js +2 -1
  60. package/build-module/store/index.js.map +1 -1
  61. package/build-module/store/reducer.js +1 -0
  62. package/build-module/store/reducer.js.map +1 -1
  63. package/build-module/store/selectors.js +5 -4
  64. package/build-module/store/selectors.js.map +1 -1
  65. package/package.json +14 -14
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/store/selectors.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { createRegistrySelector } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport {\n\tnormalizeComplementaryAreaScope,\n\tnormalizeComplementaryAreaName,\n} from './deprecated';\n\n/**\n * Returns the complementary area that is active in a given scope.\n *\n * @param {Object} state Global application state.\n * @param {string} scope Item scope.\n *\n * @return {string | null | undefined} The complementary area that is active in the given scope.\n */\nexport const getActiveComplementaryArea = createRegistrySelector(\n\t( select ) => ( state, scope ) => {\n\t\tscope = normalizeComplementaryAreaScope( scope );\n\t\tconst isComplementaryAreaVisible = select( preferencesStore ).get(\n\t\t\tscope,\n\t\t\t'isComplementaryAreaVisible'\n\t\t);\n\n\t\t// Return `undefined` to indicate that the user has never toggled\n\t\t// visibility, this is the vanilla default. Other code relies on this\n\t\t// nuance in the return value.\n\t\tif ( isComplementaryAreaVisible === undefined ) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\t// Return `null` to indicate the user hid the complementary area.\n\t\tif ( isComplementaryAreaVisible === false ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn state?.complementaryAreas?.[ scope ];\n\t}\n);\n\nexport const isComplementaryAreaLoading = createRegistrySelector(\n\t( select ) => ( state, scope ) => {\n\t\tscope = normalizeComplementaryAreaScope( scope );\n\t\tconst isVisible = select( preferencesStore ).get(\n\t\t\tscope,\n\t\t\t'isComplementaryAreaVisible'\n\t\t);\n\t\tconst identifier = state?.complementaryAreas?.[ scope ];\n\n\t\treturn isVisible && identifier === undefined;\n\t}\n);\n\n/**\n * Returns a boolean indicating if an item is pinned or not.\n *\n * @param {Object} state Global application state.\n * @param {string} scope Scope.\n * @param {string} item Item to check.\n *\n * @return {boolean} True if the item is pinned and false otherwise.\n */\nexport const isItemPinned = createRegistrySelector(\n\t( select ) => ( state, scope, item ) => {\n\t\tscope = normalizeComplementaryAreaScope( scope );\n\t\titem = normalizeComplementaryAreaName( scope, item );\n\t\tconst pinnedItems = select( preferencesStore ).get(\n\t\t\tscope,\n\t\t\t'pinnedItems'\n\t\t);\n\t\treturn pinnedItems?.[ item ] ?? true;\n\t}\n);\n\n/**\n * Returns a boolean indicating whether a feature is active for a particular\n * scope.\n *\n * @param {Object} state The store state.\n * @param {string} scope The scope of the feature (e.g. core/edit-post).\n * @param {string} featureName The name of the feature.\n *\n * @return {boolean} Is the feature enabled?\n */\nexport const isFeatureActive = createRegistrySelector(\n\t( select ) => ( state, scope, featureName ) => {\n\t\tdeprecated(\n\t\t\t`select( 'core/interface' ).isFeatureActive( scope, featureName )`,\n\t\t\t{\n\t\t\t\tsince: '6.0',\n\t\t\t\talternative: `select( 'core/preferences' ).get( scope, featureName )`,\n\t\t\t}\n\t\t);\n\n\t\treturn !! select( preferencesStore ).get( scope, featureName );\n\t}\n);\n\n/**\n * Returns true if a modal is active, or false otherwise.\n *\n * @param {Object} state Global application state.\n * @param {string} modalName A string that uniquely identifies the modal.\n *\n * @return {boolean} Whether the modal is active.\n */\nexport function isModalActive( state, modalName ) {\n\treturn state.activeModal === modalName;\n}\n"],
5
- "mappings": "AAGA,SAAS,8BAA8B;AACvC,OAAO,gBAAgB;AACvB,SAAS,SAAS,wBAAwB;AAK1C;AAAA,EACC;AAAA,EACA;AAAA,OACM;AAUA,MAAM,6BAA6B;AAAA,EACzC,CAAE,WAAY,CAAE,OAAO,UAAW;AACjC,YAAQ,gCAAiC,KAAM;AAC/C,UAAM,6BAA6B,OAAQ,gBAAiB,EAAE;AAAA,MAC7D;AAAA,MACA;AAAA,IACD;AAKA,QAAK,+BAA+B,QAAY;AAC/C,aAAO;AAAA,IACR;AAGA,QAAK,+BAA+B,OAAQ;AAC3C,aAAO;AAAA,IACR;AAEA,WAAO,OAAO,qBAAsB,KAAM;AAAA,EAC3C;AACD;AAEO,MAAM,6BAA6B;AAAA,EACzC,CAAE,WAAY,CAAE,OAAO,UAAW;AACjC,YAAQ,gCAAiC,KAAM;AAC/C,UAAM,YAAY,OAAQ,gBAAiB,EAAE;AAAA,MAC5C;AAAA,MACA;AAAA,IACD;AACA,UAAM,aAAa,OAAO,qBAAsB,KAAM;AAEtD,WAAO,aAAa,eAAe;AAAA,EACpC;AACD;AAWO,MAAM,eAAe;AAAA,EAC3B,CAAE,WAAY,CAAE,OAAO,OAAO,SAAU;AACvC,YAAQ,gCAAiC,KAAM;AAC/C,WAAO,+BAAgC,OAAO,IAAK;AACnD,UAAM,cAAc,OAAQ,gBAAiB,EAAE;AAAA,MAC9C;AAAA,MACA;AAAA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ACA;AAAA,IACD;AACA,WAAO,cAAe,IAAK,KAAK;AAAA,EACjC;AACD;AAYO,IAAM,kBAAkB;AAAA,EAC9B,CAAE,WAAY,CAAE,OAAO,OAAO,gBAAiB;AAC9C;AAAA,MACC;AAAA,MACA;AAAA,QACC,OAAO;AAAA,QACP,aAAa;AAAA,MACd;AAAA,IACD;AAEA,WAAO,CAAC,CAAE,OAAQ,gBAAiB,EAAE,IAAK,OAAO,WAAY;AAAA,EAC9D;AACD;AAUO,SAAS,cAAe,OAAO,WAAY;AACjD,SAAO,MAAM,gBAAgB;AAC9B;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/interface",
3
- "version": "9.19.0",
3
+ "version": "9.19.1-next.2f1c7c01b.0",
4
4
  "description": "Interface module for WordPress. The package contains shared functionality across the modern JavaScript-based WordPress screens.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -40,18 +40,18 @@
40
40
  "{src,build,build-module}/{index.js,store/index.js}"
41
41
  ],
42
42
  "dependencies": {
43
- "@wordpress/a11y": "^4.34.0",
44
- "@wordpress/admin-ui": "^1.2.0",
45
- "@wordpress/components": "^30.7.0",
46
- "@wordpress/compose": "^7.34.0",
47
- "@wordpress/data": "^10.34.0",
48
- "@wordpress/deprecated": "^4.34.0",
49
- "@wordpress/element": "^6.34.0",
50
- "@wordpress/i18n": "^6.7.0",
51
- "@wordpress/icons": "^11.1.0",
52
- "@wordpress/plugins": "^7.34.0",
53
- "@wordpress/preferences": "^4.34.0",
54
- "@wordpress/viewport": "^6.34.0",
43
+ "@wordpress/a11y": "^4.34.1-next.2f1c7c01b.0",
44
+ "@wordpress/admin-ui": "^1.2.1-next.2f1c7c01b.0",
45
+ "@wordpress/components": "^30.7.2-next.2f1c7c01b.0",
46
+ "@wordpress/compose": "^7.34.1-next.2f1c7c01b.0",
47
+ "@wordpress/data": "^10.34.1-next.2f1c7c01b.0",
48
+ "@wordpress/deprecated": "^4.34.1-next.2f1c7c01b.0",
49
+ "@wordpress/element": "^6.34.1-next.2f1c7c01b.0",
50
+ "@wordpress/i18n": "^6.7.1-next.2f1c7c01b.0",
51
+ "@wordpress/icons": "^11.1.1-next.2f1c7c01b.0",
52
+ "@wordpress/plugins": "^7.34.1-next.2f1c7c01b.0",
53
+ "@wordpress/preferences": "^4.34.1-next.2f1c7c01b.0",
54
+ "@wordpress/viewport": "^6.34.1-next.2f1c7c01b.0",
55
55
  "clsx": "^2.1.1"
56
56
  },
57
57
  "peerDependencies": {
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "ceebff807958d2e8fc755b5a20473939c78b4d1d"
64
+ "gitHead": "c6ddcdf455bc02567a2c9e03de6862a2061b85e8"
65
65
  }