@wordpress/preferences-persistence 2.37.0 → 2.37.1-next.ba3aee3a2.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/create/{debounce-async.js → debounce-async.cjs} +1 -1
- package/build/create/{index.js → index.cjs} +2 -2
- package/build/{index.js → index.cjs} +4 -4
- package/build/migrations/legacy-local-storage-data/{convert-edit-post-panels.js → convert-edit-post-panels.cjs} +1 -1
- package/build/migrations/legacy-local-storage-data/{index.js → index.cjs} +6 -6
- package/build/migrations/legacy-local-storage-data/{move-feature-preferences.js → move-feature-preferences.cjs} +1 -1
- package/build/migrations/legacy-local-storage-data/{move-individual-preference.js → move-individual-preference.cjs} +1 -1
- package/build/migrations/legacy-local-storage-data/{move-interface-enable-items.js → move-interface-enable-items.cjs} +1 -1
- package/build/migrations/legacy-local-storage-data/{move-third-party-feature-preferences.js → move-third-party-feature-preferences.cjs} +1 -1
- package/build/migrations/preferences-package-data/{convert-complementary-areas.js → convert-complementary-areas.cjs} +1 -1
- package/build/migrations/preferences-package-data/{convert-editor-settings.js → convert-editor-settings.cjs} +1 -1
- package/build/migrations/preferences-package-data/{index.js → index.cjs} +3 -3
- package/build-module/create/{debounce-async.js → debounce-async.mjs} +1 -1
- package/build-module/create/{index.js → index.mjs} +2 -2
- package/build-module/{index.js → index.mjs} +4 -4
- package/build-module/migrations/legacy-local-storage-data/{convert-edit-post-panels.js → convert-edit-post-panels.mjs} +1 -1
- package/build-module/migrations/legacy-local-storage-data/{index.js → index.mjs} +6 -6
- package/build-module/migrations/legacy-local-storage-data/{move-feature-preferences.js → move-feature-preferences.mjs} +1 -1
- package/build-module/migrations/legacy-local-storage-data/{move-individual-preference.js → move-individual-preference.mjs} +1 -1
- package/build-module/migrations/legacy-local-storage-data/{move-interface-enable-items.js → move-interface-enable-items.mjs} +1 -1
- package/build-module/migrations/legacy-local-storage-data/{move-third-party-feature-preferences.js → move-third-party-feature-preferences.mjs} +1 -1
- package/build-module/migrations/preferences-package-data/{convert-complementary-areas.js → convert-complementary-areas.mjs} +1 -1
- package/build-module/migrations/preferences-package-data/{convert-editor-settings.js → convert-editor-settings.mjs} +1 -1
- package/build-module/migrations/preferences-package-data/{index.js → index.mjs} +3 -3
- package/package.json +14 -7
- /package/build/create/{debounce-async.js.map → debounce-async.cjs.map} +0 -0
- /package/build/create/{index.js.map → index.cjs.map} +0 -0
- /package/build/{index.js.map → index.cjs.map} +0 -0
- /package/build/migrations/legacy-local-storage-data/{convert-edit-post-panels.js.map → convert-edit-post-panels.cjs.map} +0 -0
- /package/build/migrations/legacy-local-storage-data/{index.js.map → index.cjs.map} +0 -0
- /package/build/migrations/legacy-local-storage-data/{move-feature-preferences.js.map → move-feature-preferences.cjs.map} +0 -0
- /package/build/migrations/legacy-local-storage-data/{move-individual-preference.js.map → move-individual-preference.cjs.map} +0 -0
- /package/build/migrations/legacy-local-storage-data/{move-interface-enable-items.js.map → move-interface-enable-items.cjs.map} +0 -0
- /package/build/migrations/legacy-local-storage-data/{move-third-party-feature-preferences.js.map → move-third-party-feature-preferences.cjs.map} +0 -0
- /package/build/migrations/preferences-package-data/{convert-complementary-areas.js.map → convert-complementary-areas.cjs.map} +0 -0
- /package/build/migrations/preferences-package-data/{convert-editor-settings.js.map → convert-editor-settings.cjs.map} +0 -0
- /package/build/migrations/preferences-package-data/{index.js.map → index.cjs.map} +0 -0
- /package/build-module/create/{debounce-async.js.map → debounce-async.mjs.map} +0 -0
- /package/build-module/create/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/migrations/legacy-local-storage-data/{convert-edit-post-panels.js.map → convert-edit-post-panels.mjs.map} +0 -0
- /package/build-module/migrations/legacy-local-storage-data/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/migrations/legacy-local-storage-data/{move-feature-preferences.js.map → move-feature-preferences.mjs.map} +0 -0
- /package/build-module/migrations/legacy-local-storage-data/{move-individual-preference.js.map → move-individual-preference.mjs.map} +0 -0
- /package/build-module/migrations/legacy-local-storage-data/{move-interface-enable-items.js.map → move-interface-enable-items.mjs.map} +0 -0
- /package/build-module/migrations/legacy-local-storage-data/{move-third-party-feature-preferences.js.map → move-third-party-feature-preferences.mjs.map} +0 -0
- /package/build-module/migrations/preferences-package-data/{convert-complementary-areas.js.map → convert-complementary-areas.mjs.map} +0 -0
- /package/build-module/migrations/preferences-package-data/{convert-editor-settings.js.map → convert-editor-settings.mjs.map} +0 -0
- /package/build-module/migrations/preferences-package-data/{index.js.map → index.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
package/LICENSE.md
CHANGED
|
@@ -33,7 +33,7 @@ __export(create_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(create_exports);
|
|
35
35
|
var import_api_fetch = __toESM(require("@wordpress/api-fetch"));
|
|
36
|
-
var import_debounce_async = __toESM(require("./debounce-async"));
|
|
36
|
+
var import_debounce_async = __toESM(require("./debounce-async.cjs"));
|
|
37
37
|
var EMPTY_OBJECT = {};
|
|
38
38
|
var localStorage = window.localStorage;
|
|
39
39
|
function create({
|
|
@@ -97,4 +97,4 @@ function create({
|
|
|
97
97
|
set
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
//# sourceMappingURL=index.
|
|
100
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -33,9 +33,9 @@ __export(index_exports, {
|
|
|
33
33
|
create: () => import_create.default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(index_exports);
|
|
36
|
-
var import_create = __toESM(require("./create"));
|
|
37
|
-
var import_legacy_local_storage_data = __toESM(require("./migrations/legacy-local-storage-data"));
|
|
38
|
-
var import_preferences_package_data = __toESM(require("./migrations/preferences-package-data"));
|
|
36
|
+
var import_create = __toESM(require("./create/index.cjs"));
|
|
37
|
+
var import_legacy_local_storage_data = __toESM(require("./migrations/legacy-local-storage-data/index.cjs"));
|
|
38
|
+
var import_preferences_package_data = __toESM(require("./migrations/preferences-package-data/index.cjs"));
|
|
39
39
|
function __unstableCreatePersistenceLayer(serverData, userId) {
|
|
40
40
|
const localStorageRestoreKey = `WP_PREFERENCES_USER_${userId}`;
|
|
41
41
|
const localData = JSON.parse(
|
|
@@ -61,4 +61,4 @@ function __unstableCreatePersistenceLayer(serverData, userId) {
|
|
|
61
61
|
__unstableCreatePersistenceLayer,
|
|
62
62
|
create
|
|
63
63
|
});
|
|
64
|
-
//# sourceMappingURL=index.
|
|
64
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -33,11 +33,11 @@ __export(legacy_local_storage_data_exports, {
|
|
|
33
33
|
default: () => convertLegacyLocalStorageData
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(legacy_local_storage_data_exports);
|
|
36
|
-
var import_move_feature_preferences = __toESM(require("./move-feature-preferences"));
|
|
37
|
-
var import_move_third_party_feature_preferences = __toESM(require("./move-third-party-feature-preferences"));
|
|
38
|
-
var import_move_individual_preference = __toESM(require("./move-individual-preference"));
|
|
39
|
-
var import_move_interface_enable_items = __toESM(require("./move-interface-enable-items"));
|
|
40
|
-
var import_convert_edit_post_panels = __toESM(require("./convert-edit-post-panels"));
|
|
36
|
+
var import_move_feature_preferences = __toESM(require("./move-feature-preferences.cjs"));
|
|
37
|
+
var import_move_third_party_feature_preferences = __toESM(require("./move-third-party-feature-preferences.cjs"));
|
|
38
|
+
var import_move_individual_preference = __toESM(require("./move-individual-preference.cjs"));
|
|
39
|
+
var import_move_interface_enable_items = __toESM(require("./move-interface-enable-items.cjs"));
|
|
40
|
+
var import_convert_edit_post_panels = __toESM(require("./convert-edit-post-panels.cjs"));
|
|
41
41
|
function getLegacyData(userId) {
|
|
42
42
|
const key = `WP_DATA_USER_${userId}`;
|
|
43
43
|
const unparsedData = window.localStorage.getItem(key);
|
|
@@ -94,4 +94,4 @@ function convertLegacyLocalStorageData(userId) {
|
|
|
94
94
|
0 && (module.exports = {
|
|
95
95
|
convertLegacyData
|
|
96
96
|
});
|
|
97
|
-
//# sourceMappingURL=index.
|
|
97
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -32,11 +32,11 @@ __export(preferences_package_data_exports, {
|
|
|
32
32
|
default: () => convertPreferencesPackageData
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(preferences_package_data_exports);
|
|
35
|
-
var import_convert_complementary_areas = __toESM(require("./convert-complementary-areas"));
|
|
36
|
-
var import_convert_editor_settings = __toESM(require("./convert-editor-settings"));
|
|
35
|
+
var import_convert_complementary_areas = __toESM(require("./convert-complementary-areas.cjs"));
|
|
36
|
+
var import_convert_editor_settings = __toESM(require("./convert-editor-settings.cjs"));
|
|
37
37
|
function convertPreferencesPackageData(data) {
|
|
38
38
|
let newData = (0, import_convert_complementary_areas.default)(data);
|
|
39
39
|
newData = (0, import_convert_editor_settings.default)(newData);
|
|
40
40
|
return newData;
|
|
41
41
|
}
|
|
42
|
-
//# sourceMappingURL=index.
|
|
42
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/preferences-persistence/src/create/index.js
|
|
2
2
|
import apiFetch from "@wordpress/api-fetch";
|
|
3
|
-
import debounceAsync from "./debounce-async";
|
|
3
|
+
import debounceAsync from "./debounce-async.mjs";
|
|
4
4
|
var EMPTY_OBJECT = {};
|
|
5
5
|
var localStorage = window.localStorage;
|
|
6
6
|
function create({
|
|
@@ -67,4 +67,4 @@ function create({
|
|
|
67
67
|
export {
|
|
68
68
|
create as default
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=index.
|
|
70
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/preferences-persistence/src/index.js
|
|
2
|
-
import create from "./create";
|
|
3
|
-
import convertLegacyLocalStorageData from "./migrations/legacy-local-storage-data";
|
|
4
|
-
import convertPreferencesPackageData from "./migrations/preferences-package-data";
|
|
2
|
+
import create from "./create/index.mjs";
|
|
3
|
+
import convertLegacyLocalStorageData from "./migrations/legacy-local-storage-data/index.mjs";
|
|
4
|
+
import convertPreferencesPackageData from "./migrations/preferences-package-data/index.mjs";
|
|
5
5
|
function __unstableCreatePersistenceLayer(serverData, userId) {
|
|
6
6
|
const localStorageRestoreKey = `WP_PREFERENCES_USER_${userId}`;
|
|
7
7
|
const localData = JSON.parse(
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
__unstableCreatePersistenceLayer,
|
|
27
27
|
create
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=index.
|
|
29
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// packages/preferences-persistence/src/migrations/legacy-local-storage-data/index.js
|
|
2
|
-
import moveFeaturePreferences from "./move-feature-preferences";
|
|
3
|
-
import moveThirdPartyFeaturePreferences from "./move-third-party-feature-preferences";
|
|
4
|
-
import moveIndividualPreference from "./move-individual-preference";
|
|
5
|
-
import moveInterfaceEnableItems from "./move-interface-enable-items";
|
|
6
|
-
import convertEditPostPanels from "./convert-edit-post-panels";
|
|
2
|
+
import moveFeaturePreferences from "./move-feature-preferences.mjs";
|
|
3
|
+
import moveThirdPartyFeaturePreferences from "./move-third-party-feature-preferences.mjs";
|
|
4
|
+
import moveIndividualPreference from "./move-individual-preference.mjs";
|
|
5
|
+
import moveInterfaceEnableItems from "./move-interface-enable-items.mjs";
|
|
6
|
+
import convertEditPostPanels from "./convert-edit-post-panels.mjs";
|
|
7
7
|
function getLegacyData(userId) {
|
|
8
8
|
const key = `WP_DATA_USER_${userId}`;
|
|
9
9
|
const unparsedData = window.localStorage.getItem(key);
|
|
@@ -60,4 +60,4 @@ export {
|
|
|
60
60
|
convertLegacyData,
|
|
61
61
|
convertLegacyLocalStorageData as default
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=index.
|
|
63
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -45,4 +45,4 @@ function moveThirdPartyFeaturePreferencesToPreferences(state) {
|
|
|
45
45
|
export {
|
|
46
46
|
moveThirdPartyFeaturePreferencesToPreferences as default
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=move-third-party-feature-preferences.
|
|
48
|
+
//# sourceMappingURL=move-third-party-feature-preferences.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/preferences-persistence/src/migrations/preferences-package-data/index.js
|
|
2
|
-
import convertComplementaryAreas from "./convert-complementary-areas";
|
|
3
|
-
import convertEditorSettings from "./convert-editor-settings";
|
|
2
|
+
import convertComplementaryAreas from "./convert-complementary-areas.mjs";
|
|
3
|
+
import convertEditorSettings from "./convert-editor-settings.mjs";
|
|
4
4
|
function convertPreferencesPackageData(data) {
|
|
5
5
|
let newData = convertComplementaryAreas(data);
|
|
6
6
|
newData = convertEditorSettings(newData);
|
|
@@ -9,4 +9,4 @@ function convertPreferencesPackageData(data) {
|
|
|
9
9
|
export {
|
|
10
10
|
convertPreferencesPackageData as default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=index.
|
|
12
|
+
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/preferences-persistence",
|
|
3
|
-
"version": "2.37.0",
|
|
3
|
+
"version": "2.37.1-next.ba3aee3a2.0",
|
|
4
4
|
"description": "Persistence utilities for `wordpress/preferences`.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -23,13 +23,20 @@
|
|
|
23
23
|
"node": ">=18.12.0",
|
|
24
24
|
"npm": ">=8.19.2"
|
|
25
25
|
},
|
|
26
|
-
"
|
|
27
|
-
|
|
26
|
+
"files": [
|
|
27
|
+
"src",
|
|
28
|
+
"build",
|
|
29
|
+
"build-module",
|
|
30
|
+
"build-types",
|
|
31
|
+
"*.md"
|
|
32
|
+
],
|
|
33
|
+
"main": "build/index.cjs",
|
|
34
|
+
"module": "build-module/index.mjs",
|
|
28
35
|
"exports": {
|
|
29
36
|
".": {
|
|
30
37
|
"types": "./build-types/index.d.ts",
|
|
31
|
-
"import": "./build-module/index.
|
|
32
|
-
"require": "./build/index.
|
|
38
|
+
"import": "./build-module/index.mjs",
|
|
39
|
+
"require": "./build/index.cjs"
|
|
33
40
|
},
|
|
34
41
|
"./package.json": "./package.json"
|
|
35
42
|
},
|
|
@@ -37,10 +44,10 @@
|
|
|
37
44
|
"wpScript": true,
|
|
38
45
|
"sideEffects": false,
|
|
39
46
|
"dependencies": {
|
|
40
|
-
"@wordpress/api-fetch": "^7.37.0"
|
|
47
|
+
"@wordpress/api-fetch": "^7.37.1-next.ba3aee3a2.0"
|
|
41
48
|
},
|
|
42
49
|
"publishConfig": {
|
|
43
50
|
"access": "public"
|
|
44
51
|
},
|
|
45
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "67d2e486fcd40c753591cf911ca0659132f519ca"
|
|
46
53
|
}
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|