@wordpress/interface 9.18.1 → 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 (69) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/action-item/index.js +4 -2
  3. package/build/components/action-item/index.js.map +1 -1
  4. package/build/components/complementary-area/index.js +6 -4
  5. package/build/components/complementary-area/index.js.map +1 -1
  6. package/build/components/complementary-area-header/index.js +4 -2
  7. package/build/components/complementary-area-header/index.js.map +1 -1
  8. package/build/components/complementary-area-more-menu-item/index.js +4 -2
  9. package/build/components/complementary-area-more-menu-item/index.js.map +1 -1
  10. package/build/components/complementary-area-toggle/index.js +3 -1
  11. package/build/components/complementary-area-toggle/index.js.map +1 -1
  12. package/build/components/fullscreen-mode/index.js +3 -1
  13. package/build/components/fullscreen-mode/index.js.map +1 -1
  14. package/build/components/index.js +2 -0
  15. package/build/components/index.js.map +1 -1
  16. package/build/components/interface-skeleton/index.js +6 -4
  17. package/build/components/interface-skeleton/index.js.map +1 -1
  18. package/build/components/pinned-items/index.js +3 -1
  19. package/build/components/pinned-items/index.js.map +1 -1
  20. package/build/index.js +2 -0
  21. package/build/index.js.map +1 -1
  22. package/build/store/actions.js +7 -5
  23. package/build/store/actions.js.map +1 -1
  24. package/build/store/constants.js +3 -1
  25. package/build/store/constants.js.map +1 -1
  26. package/build/store/deprecated.js +2 -0
  27. package/build/store/deprecated.js.map +1 -1
  28. package/build/store/index.js +3 -1
  29. package/build/store/index.js.map +1 -1
  30. package/build/store/reducer.js +2 -0
  31. package/build/store/reducer.js.map +1 -1
  32. package/build/store/selectors.js +6 -4
  33. package/build/store/selectors.js.map +1 -1
  34. package/build-module/components/action-item/index.js +3 -2
  35. package/build-module/components/action-item/index.js.map +1 -1
  36. package/build-module/components/complementary-area/index.js +5 -4
  37. package/build-module/components/complementary-area/index.js.map +1 -1
  38. package/build-module/components/complementary-area-header/index.js +3 -2
  39. package/build-module/components/complementary-area-header/index.js.map +1 -1
  40. package/build-module/components/complementary-area-more-menu-item/index.js +3 -2
  41. package/build-module/components/complementary-area-more-menu-item/index.js.map +1 -1
  42. package/build-module/components/complementary-area-toggle/index.js +2 -1
  43. package/build-module/components/complementary-area-toggle/index.js.map +1 -1
  44. package/build-module/components/fullscreen-mode/index.js +2 -1
  45. package/build-module/components/fullscreen-mode/index.js.map +1 -1
  46. package/build-module/components/index.js +1 -0
  47. package/build-module/components/index.js.map +1 -1
  48. package/build-module/components/interface-skeleton/index.js +5 -4
  49. package/build-module/components/interface-skeleton/index.js.map +1 -1
  50. package/build-module/components/pinned-items/index.js +2 -1
  51. package/build-module/components/pinned-items/index.js.map +1 -1
  52. package/build-module/index.js +1 -0
  53. package/build-module/index.js.map +1 -1
  54. package/build-module/store/actions.js +6 -5
  55. package/build-module/store/actions.js.map +1 -1
  56. package/build-module/store/constants.js +2 -1
  57. package/build-module/store/constants.js.map +1 -1
  58. package/build-module/store/deprecated.js +1 -0
  59. package/build-module/store/deprecated.js.map +1 -1
  60. package/build-module/store/index.js +2 -1
  61. package/build-module/store/index.js.map +1 -1
  62. package/build-module/store/reducer.js +1 -0
  63. package/build-module/store/reducer.js.map +1 -1
  64. package/build-module/store/selectors.js +5 -4
  65. package/build-module/store/selectors.js.map +1 -1
  66. package/build-style/style-rtl.css +2 -2
  67. package/build-style/style.css +2 -2
  68. package/package.json +16 -15
  69. package/src/components/complementary-area/style.scss +2 -2
@@ -1,3 +1,4 @@
1
+ // packages/interface/src/store/selectors.js
1
2
  import { createRegistrySelector } from "@wordpress/data";
2
3
  import deprecated from "@wordpress/deprecated";
3
4
  import { store as preferencesStore } from "@wordpress/preferences";
@@ -5,7 +6,7 @@ import {
5
6
  normalizeComplementaryAreaScope,
6
7
  normalizeComplementaryAreaName
7
8
  } from "./deprecated";
8
- const getActiveComplementaryArea = createRegistrySelector(
9
+ var getActiveComplementaryArea = createRegistrySelector(
9
10
  (select) => (state, scope) => {
10
11
  scope = normalizeComplementaryAreaScope(scope);
11
12
  const isComplementaryAreaVisible = select(preferencesStore).get(
@@ -21,7 +22,7 @@ const getActiveComplementaryArea = createRegistrySelector(
21
22
  return state?.complementaryAreas?.[scope];
22
23
  }
23
24
  );
24
- const isComplementaryAreaLoading = createRegistrySelector(
25
+ var isComplementaryAreaLoading = createRegistrySelector(
25
26
  (select) => (state, scope) => {
26
27
  scope = normalizeComplementaryAreaScope(scope);
27
28
  const isVisible = select(preferencesStore).get(
@@ -32,7 +33,7 @@ const isComplementaryAreaLoading = createRegistrySelector(
32
33
  return isVisible && identifier === void 0;
33
34
  }
34
35
  );
35
- const isItemPinned = createRegistrySelector(
36
+ var isItemPinned = createRegistrySelector(
36
37
  (select) => (state, scope, item) => {
37
38
  scope = normalizeComplementaryAreaScope(scope);
38
39
  item = normalizeComplementaryAreaName(scope, item);
@@ -43,7 +44,7 @@ const isItemPinned = createRegistrySelector(
43
44
  return pinnedItems?.[item] ?? true;
44
45
  }
45
46
  );
46
- const isFeatureActive = createRegistrySelector(
47
+ var isFeatureActive = createRegistrySelector(
47
48
  (select) => (state, scope, featureName) => {
48
49
  deprecated(
49
50
  `select( 'core/interface' ).isFeatureActive( scope, featureName )`,
@@ -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,IACD;AACA,WAAO,cAAe,IAAK,KAAK;AAAA,EACjC;AACD;AA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;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
  }
@@ -280,14 +280,14 @@
280
280
  }
281
281
  .interface-complementary-area h2 {
282
282
  font-size: 13px;
283
- font-weight: 500;
283
+ font-weight: 499;
284
284
  color: #1e1e1e;
285
285
  margin-bottom: 1.5em;
286
286
  }
287
287
  .interface-complementary-area h3 {
288
288
  font-size: 11px;
289
289
  text-transform: uppercase;
290
- font-weight: 500;
290
+ font-weight: 499;
291
291
  color: #1e1e1e;
292
292
  margin-bottom: 1.5em;
293
293
  }
@@ -280,14 +280,14 @@
280
280
  }
281
281
  .interface-complementary-area h2 {
282
282
  font-size: 13px;
283
- font-weight: 500;
283
+ font-weight: 499;
284
284
  color: #1e1e1e;
285
285
  margin-bottom: 1.5em;
286
286
  }
287
287
  .interface-complementary-area h3 {
288
288
  font-size: 11px;
289
289
  text-transform: uppercase;
290
- font-weight: 500;
290
+ font-weight: 499;
291
291
  color: #1e1e1e;
292
292
  margin-bottom: 1.5em;
293
293
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/interface",
3
- "version": "9.18.1",
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",
@@ -30,7 +30,8 @@
30
30
  "import": "./build-module/index.js",
31
31
  "require": "./build/index.js"
32
32
  },
33
- "./package.json": "./package.json"
33
+ "./package.json": "./package.json",
34
+ "./build-style/": "./build-style/"
34
35
  },
35
36
  "react-native": "src/index",
36
37
  "sideEffects": [
@@ -39,18 +40,18 @@
39
40
  "{src,build,build-module}/{index.js,store/index.js}"
40
41
  ],
41
42
  "dependencies": {
42
- "@wordpress/a11y": "^4.33.1",
43
- "@wordpress/admin-ui": "^1.1.1",
44
- "@wordpress/components": "^30.6.1",
45
- "@wordpress/compose": "^7.33.1",
46
- "@wordpress/data": "^10.33.1",
47
- "@wordpress/deprecated": "^4.33.1",
48
- "@wordpress/element": "^6.33.1",
49
- "@wordpress/i18n": "^6.6.1",
50
- "@wordpress/icons": "^11.0.1",
51
- "@wordpress/plugins": "^7.33.1",
52
- "@wordpress/preferences": "^4.33.1",
53
- "@wordpress/viewport": "^6.33.1",
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",
54
55
  "clsx": "^2.1.1"
55
56
  },
56
57
  "peerDependencies": {
@@ -60,5 +61,5 @@
60
61
  "publishConfig": {
61
62
  "access": "public"
62
63
  },
63
- "gitHead": "5f84bafdec1bed05247c1080c12f6a237951b862"
64
+ "gitHead": "c6ddcdf455bc02567a2c9e03de6862a2061b85e8"
64
65
  }
@@ -40,7 +40,7 @@
40
40
 
41
41
  h2 {
42
42
  font-size: $default-font-size;
43
- font-weight: 500;
43
+ font-weight: $font-weight-medium;
44
44
  color: $gray-900;
45
45
  margin-bottom: 1.5em;
46
46
  }
@@ -49,7 +49,7 @@
49
49
  h3 {
50
50
  font-size: 11px;
51
51
  text-transform: uppercase;
52
- font-weight: 500;
52
+ font-weight: $font-weight-medium;
53
53
  color: $gray-900;
54
54
  margin-bottom: 1.5em;
55
55
  }