@wordpress/preferences 4.1.0 → 4.3.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 CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.3.0 (2024-07-10)
6
+
7
+ ## 4.2.0 (2024-06-26)
8
+
5
9
  ## 4.1.0 (2024-06-15)
6
10
 
7
11
  ## 4.0.0 (2024-05-31)
@@ -120,11 +124,11 @@
120
124
 
121
125
  ## 2.0.0 (2022-05-04)
122
126
 
123
- ### Breaking change
127
+ ### Breaking Changes
124
128
 
125
129
  - The preferences package is no longer compatible with the `@wordpress/data` persistence plugin. Please use the new `setPersistenceLayer` API. ([#39795](https://github.com/WordPress/gutenberg/pull/39795))
126
130
 
127
- ### Enhancement
131
+ ### Enhancements
128
132
 
129
133
  - A new `setPersistenceLayer` action has been introduced. ([#39795](https://github.com/WordPress/gutenberg/pull/39795))
130
134
 
@@ -12,7 +12,7 @@ var _privateApis = require("@wordpress/private-apis");
12
12
  const {
13
13
  lock,
14
14
  unlock
15
- } = (0, _privateApis.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/preferences');
15
+ } = (0, _privateApis.__dangerousOptInToUnstableAPIsOnlyForCoreModules)('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/preferences');
16
16
  exports.unlock = unlock;
17
17
  exports.lock = lock;
18
18
  //# sourceMappingURL=lock-unlock.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_privateApis","require","lock","unlock","__dangerousOptInToUnstableAPIsOnlyForCoreModules","exports"],"sources":["@wordpress/preferences/src/lock-unlock.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.',\n\t\t'@wordpress/preferences'\n\t);\n"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAEO,MAAM;EAAEC,IAAI;EAAEC;AAAO,CAAC,GAC5B,IAAAC,6DAAgD,EAC/C,iHAAiH,EACjH,wBACD,CAAC;AAACC,OAAA,CAAAF,MAAA,GAAAA,MAAA;AAAAE,OAAA,CAAAH,IAAA,GAAAA,IAAA","ignoreList":[]}
1
+ {"version":3,"names":["_privateApis","require","lock","unlock","__dangerousOptInToUnstableAPIsOnlyForCoreModules","exports"],"sources":["@wordpress/preferences/src/lock-unlock.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',\n\t\t'@wordpress/preferences'\n\t);\n"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAEO,MAAM;EAAEC,IAAI;EAAEC;AAAO,CAAC,GAC5B,IAAAC,6DAAgD,EAC/C,+HAA+H,EAC/H,wBACD,CAAC;AAACC,OAAA,CAAAF,MAAA,GAAAA,MAAA;AAAAE,OAAA,CAAAH,IAAA,GAAAA,IAAA","ignoreList":[]}
@@ -5,5 +5,5 @@ import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/pri
5
5
  export const {
6
6
  lock,
7
7
  unlock
8
- } = __dangerousOptInToUnstableAPIsOnlyForCoreModules('I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', '@wordpress/preferences');
8
+ } = __dangerousOptInToUnstableAPIsOnlyForCoreModules('I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', '@wordpress/preferences');
9
9
  //# sourceMappingURL=lock-unlock.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__dangerousOptInToUnstableAPIsOnlyForCoreModules","lock","unlock"],"sources":["@wordpress/preferences/src/lock-unlock.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.',\n\t\t'@wordpress/preferences'\n\t);\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,gDAAgD,QAAQ,yBAAyB;AAC1F,OAAO,MAAM;EAAEC,IAAI;EAAEC;AAAO,CAAC,GAC5BF,gDAAgD,CAC/C,iHAAiH,EACjH,wBACD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["__dangerousOptInToUnstableAPIsOnlyForCoreModules","lock","unlock"],"sources":["@wordpress/preferences/src/lock-unlock.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',\n\t\t'@wordpress/preferences'\n\t);\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,gDAAgD,QAAQ,yBAAyB;AAC1F,OAAO,MAAM;EAAEC,IAAI;EAAEC;AAAO,CAAC,GAC5BF,gDAAgD,CAC/C,+HAA+H,EAC/H,wBACD,CAAC","ignoreList":[]}
@@ -140,26 +140,6 @@
140
140
  right: 16px;
141
141
  width: 160px;
142
142
  }
143
- .preferences__tabs-tablist::after {
144
- content: none !important;
145
- }
146
-
147
- .preferences__tabs-tab {
148
- border-radius: 2px;
149
- font-weight: 400;
150
- }
151
- .preferences__tabs-tab[aria-selected=true] {
152
- background: #f0f0f0;
153
- box-shadow: none;
154
- font-weight: 500;
155
- }
156
- .preferences__tabs-tab[role=tab]:focus:not(:disabled) {
157
- box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
158
- outline: 2px solid transparent;
159
- }
160
- .preferences__tabs-tab:focus-visible::before {
161
- content: none;
162
- }
163
143
 
164
144
  .preferences__tabs-tabpanel {
165
145
  padding-right: 24px;
@@ -140,26 +140,6 @@
140
140
  left: 16px;
141
141
  width: 160px;
142
142
  }
143
- .preferences__tabs-tablist::after {
144
- content: none !important;
145
- }
146
-
147
- .preferences__tabs-tab {
148
- border-radius: 2px;
149
- font-weight: 400;
150
- }
151
- .preferences__tabs-tab[aria-selected=true] {
152
- background: #f0f0f0;
153
- box-shadow: none;
154
- font-weight: 500;
155
- }
156
- .preferences__tabs-tab[role=tab]:focus:not(:disabled) {
157
- box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
158
- outline: 2px solid transparent;
159
- }
160
- .preferences__tabs-tab:focus-visible::before {
161
- content: none;
162
- }
163
143
 
164
144
  .preferences__tabs-tabpanel {
165
145
  padding-left: 24px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/preferences",
3
- "version": "4.1.0",
3
+ "version": "4.3.0",
4
4
  "description": "Utilities for managing WordPress preferences.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -30,15 +30,15 @@
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.16.0",
33
- "@wordpress/a11y": "^4.1.0",
34
- "@wordpress/components": "^28.1.0",
35
- "@wordpress/compose": "^7.1.0",
36
- "@wordpress/data": "^10.1.0",
37
- "@wordpress/deprecated": "^4.1.0",
38
- "@wordpress/element": "^6.1.0",
39
- "@wordpress/i18n": "^5.1.0",
40
- "@wordpress/icons": "^10.1.0",
41
- "@wordpress/private-apis": "^1.1.0",
33
+ "@wordpress/a11y": "^4.3.0",
34
+ "@wordpress/components": "^28.3.0",
35
+ "@wordpress/compose": "^7.3.0",
36
+ "@wordpress/data": "^10.3.0",
37
+ "@wordpress/deprecated": "^4.3.0",
38
+ "@wordpress/element": "^6.3.0",
39
+ "@wordpress/i18n": "^5.3.0",
40
+ "@wordpress/icons": "^10.3.0",
41
+ "@wordpress/private-apis": "^1.3.0",
42
42
  "clsx": "^2.1.1"
43
43
  },
44
44
  "peerDependencies": {
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "66d3bf12e67d16deddc4b4a9ec42e1d0bed3479a"
51
+ "gitHead": "122867d355ca4edc63d3a3bbd9411d3a2e1458df"
52
52
  }
@@ -6,31 +6,6 @@ $vertical-tabs-width: 160px;
6
6
  // Aligns button text instead of button box.
7
7
  left: $grid-unit-20;
8
8
  width: $vertical-tabs-width;
9
-
10
- &::after {
11
- content: none !important;
12
- }
13
- }
14
-
15
- .preferences__tabs-tab {
16
- border-radius: $radius-block-ui;
17
- font-weight: 400;
18
-
19
- &[aria-selected="true"] {
20
- background: $gray-100;
21
- box-shadow: none;
22
- font-weight: 500;
23
- }
24
-
25
- &[role="tab"]:focus:not(:disabled) {
26
- box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
27
- // Windows high contrast mode.
28
- outline: 2px solid transparent;
29
- }
30
-
31
- &:focus-visible::before {
32
- content: none;
33
- }
34
9
  }
35
10
 
36
11
  .preferences__tabs-tabpanel {
@@ -4,6 +4,6 @@
4
4
  import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';
5
5
  export const { lock, unlock } =
6
6
  __dangerousOptInToUnstableAPIsOnlyForCoreModules(
7
- 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.',
7
+ 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',
8
8
  '@wordpress/preferences'
9
9
  );