@wordpress/preferences 3.6.0 → 3.8.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 +4 -0
- package/README.md +5 -11
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -171,8 +171,7 @@ The following set of dispatching action creators are available on the object ret
|
|
|
171
171
|
|
|
172
172
|
#### set
|
|
173
173
|
|
|
174
|
-
Returns an action object used in signalling that a preference should be set
|
|
175
|
-
to a value
|
|
174
|
+
Returns an action object used in signalling that a preference should be set to a value
|
|
176
175
|
|
|
177
176
|
_Parameters_
|
|
178
177
|
|
|
@@ -186,8 +185,7 @@ _Returns_
|
|
|
186
185
|
|
|
187
186
|
#### setDefaults
|
|
188
187
|
|
|
189
|
-
Returns an action object used in signalling that preference defaults should
|
|
190
|
-
be set.
|
|
188
|
+
Returns an action object used in signalling that preference defaults should be set.
|
|
191
189
|
|
|
192
190
|
_Parameters_
|
|
193
191
|
|
|
@@ -207,9 +205,7 @@ When a persistence layer is set, the preferences store will:
|
|
|
207
205
|
- call `get` immediately and update the store state to the value returned.
|
|
208
206
|
- call `set` with all preferences whenever a preference changes value.
|
|
209
207
|
|
|
210
|
-
`setPersistenceLayer` should ideally be dispatched at the start of an
|
|
211
|
-
application's lifecycle, before any other actions have been dispatched to
|
|
212
|
-
the preferences store.
|
|
208
|
+
`setPersistenceLayer` should ideally be dispatched at the start of an application's lifecycle, before any other actions have been dispatched to the preferences store.
|
|
213
209
|
|
|
214
210
|
_Parameters_
|
|
215
211
|
|
|
@@ -221,8 +217,7 @@ _Returns_
|
|
|
221
217
|
|
|
222
218
|
#### toggle
|
|
223
219
|
|
|
224
|
-
Returns an action object used in signalling that a preference should be
|
|
225
|
-
toggled.
|
|
220
|
+
Returns an action object used in signalling that a preference should be toggled.
|
|
226
221
|
|
|
227
222
|
_Parameters_
|
|
228
223
|
|
|
@@ -239,8 +234,7 @@ The following selectors are available on the object returned by `wp.data.select(
|
|
|
239
234
|
|
|
240
235
|
#### get
|
|
241
236
|
|
|
242
|
-
Returns a boolean indicating whether a prefer is active for a particular
|
|
243
|
-
scope.
|
|
237
|
+
Returns a boolean indicating whether a prefer is active for a particular scope.
|
|
244
238
|
|
|
245
239
|
_Parameters_
|
|
246
240
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/preferences",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Utilities for managing WordPress preferences.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.16.0",
|
|
32
|
-
"@wordpress/a11y": "^3.
|
|
33
|
-
"@wordpress/components": "^23.
|
|
34
|
-
"@wordpress/data": "^
|
|
35
|
-
"@wordpress/i18n": "^4.
|
|
36
|
-
"@wordpress/icons": "^9.
|
|
32
|
+
"@wordpress/a11y": "^3.31.0",
|
|
33
|
+
"@wordpress/components": "^23.8.0",
|
|
34
|
+
"@wordpress/data": "^9.1.0",
|
|
35
|
+
"@wordpress/i18n": "^4.31.0",
|
|
36
|
+
"@wordpress/icons": "^9.22.0",
|
|
37
37
|
"classnames": "^2.3.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "d61700b9f1c72ba0b030fc815ef1685b4f4031ec"
|
|
47
47
|
}
|