equal
deleted
inserted
replaced
53 __webpack_require__.d(__webpack_exports__, { |
53 __webpack_require__.d(__webpack_exports__, { |
54 __unstableCreatePersistenceLayer: () => (/* binding */ __unstableCreatePersistenceLayer), |
54 __unstableCreatePersistenceLayer: () => (/* binding */ __unstableCreatePersistenceLayer), |
55 create: () => (/* reexport */ create) |
55 create: () => (/* reexport */ create) |
56 }); |
56 }); |
57 |
57 |
58 ;// CONCATENATED MODULE: external ["wp","apiFetch"] |
58 ;// external ["wp","apiFetch"] |
59 const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"]; |
59 const external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"]; |
60 var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject); |
60 var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject); |
61 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/create/debounce-async.js |
61 ;// ./node_modules/@wordpress/preferences-persistence/build-module/create/debounce-async.js |
62 /** |
62 /** |
63 * Performs a leading edge debounce of async functions. |
63 * Performs a leading edge debounce of async functions. |
64 * |
64 * |
65 * If three functions are throttled at the same time: |
65 * If three functions are throttled at the same time: |
66 * - The first happens immediately. |
66 * - The first happens immediately. |
125 }, delayMS); |
125 }, delayMS); |
126 }); |
126 }); |
127 }; |
127 }; |
128 } |
128 } |
129 |
129 |
130 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/create/index.js |
130 ;// ./node_modules/@wordpress/preferences-persistence/build-module/create/index.js |
131 /** |
131 /** |
132 * WordPress dependencies |
132 * WordPress dependencies |
133 */ |
133 */ |
134 |
134 |
135 |
135 |
227 get, |
227 get, |
228 set |
228 set |
229 }; |
229 }; |
230 } |
230 } |
231 |
231 |
232 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/move-feature-preferences.js |
232 ;// ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/move-feature-preferences.js |
233 /** |
233 /** |
234 * Move the 'features' object in local storage from the sourceStoreName to the |
234 * Move the 'features' object in local storage from the sourceStoreName to the |
235 * preferences store data structure. |
235 * preferences store data structure. |
236 * |
236 * |
237 * Previously, editors used a data structure like this for feature preferences: |
237 * Previously, editors used a data structure like this for feature preferences: |
352 ...updatedInterfaceState, |
352 ...updatedInterfaceState, |
353 ...updatedSourceState |
353 ...updatedSourceState |
354 }; |
354 }; |
355 } |
355 } |
356 |
356 |
357 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/move-third-party-feature-preferences.js |
357 ;// ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/move-third-party-feature-preferences.js |
358 /** |
358 /** |
359 * The interface package previously had a public API that could be used by |
359 * The interface package previously had a public API that could be used by |
360 * plugins to set persisted boolean 'feature' preferences. |
360 * plugins to set persisted boolean 'feature' preferences. |
361 * |
361 * |
362 * While usage was likely non-existent or very small, this function ensures |
362 * While usage was likely non-existent or very small, this function ensures |
438 } |
438 } |
439 }; |
439 }; |
440 }, state); |
440 }, state); |
441 } |
441 } |
442 |
442 |
443 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/move-individual-preference.js |
443 ;// ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/move-individual-preference.js |
444 const identity = arg => arg; |
444 const identity = arg => arg; |
445 |
445 |
446 /** |
446 /** |
447 * Migrates an individual item inside the `preferences` object for a package's store. |
447 * Migrates an individual item inside the `preferences` object for a package's store. |
448 * |
448 * |
524 } |
524 } |
525 } |
525 } |
526 }; |
526 }; |
527 } |
527 } |
528 |
528 |
529 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/move-interface-enable-items.js |
529 ;// ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/move-interface-enable-items.js |
530 /** |
530 /** |
531 * Migrates interface 'enableItems' data to the preferences store. |
531 * Migrates interface 'enableItems' data to the preferences store. |
532 * |
532 * |
533 * The interface package stores this data in this format: |
533 * The interface package stores this data in this format: |
534 * ```js |
534 * ```js |
634 enableItems: undefined |
634 enableItems: undefined |
635 } |
635 } |
636 }; |
636 }; |
637 } |
637 } |
638 |
638 |
639 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/convert-edit-post-panels.js |
639 ;// ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/convert-edit-post-panels.js |
640 /** |
640 /** |
641 * Convert the post editor's panels state from: |
641 * Convert the post editor's panels state from: |
642 * ``` |
642 * ``` |
643 * { |
643 * { |
644 * panels: { |
644 * panels: { |
684 inactivePanels: [], |
684 inactivePanels: [], |
685 openPanels: [] |
685 openPanels: [] |
686 }); |
686 }); |
687 } |
687 } |
688 |
688 |
689 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/index.js |
689 ;// ./node_modules/@wordpress/preferences-persistence/build-module/migrations/legacy-local-storage-data/index.js |
690 /** |
690 /** |
691 * Internal dependencies |
691 * Internal dependencies |
692 */ |
692 */ |
693 |
693 |
694 |
694 |
781 function convertLegacyLocalStorageData(userId) { |
781 function convertLegacyLocalStorageData(userId) { |
782 const data = getLegacyData(userId); |
782 const data = getLegacyData(userId); |
783 return convertLegacyData(data); |
783 return convertLegacyData(data); |
784 } |
784 } |
785 |
785 |
786 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/migrations/preferences-package-data/convert-complementary-areas.js |
786 ;// ./node_modules/@wordpress/preferences-persistence/build-module/migrations/preferences-package-data/convert-complementary-areas.js |
787 function convertComplementaryAreas(state) { |
787 function convertComplementaryAreas(state) { |
788 return Object.keys(state).reduce((stateAccumulator, scope) => { |
788 return Object.keys(state).reduce((stateAccumulator, scope) => { |
789 const scopeData = state[scope]; |
789 const scopeData = state[scope]; |
790 |
790 |
791 // If a complementary area is truthy, convert it to the `isComplementaryAreaVisible` boolean. |
791 // If a complementary area is truthy, convert it to the `isComplementaryAreaVisible` boolean. |
800 } |
800 } |
801 return stateAccumulator; |
801 return stateAccumulator; |
802 }, state); |
802 }, state); |
803 } |
803 } |
804 |
804 |
805 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/migrations/preferences-package-data/convert-editor-settings.js |
805 ;// ./node_modules/@wordpress/preferences-persistence/build-module/migrations/preferences-package-data/convert-editor-settings.js |
806 /** |
806 /** |
807 * Internal dependencies |
807 * Internal dependencies |
808 */ |
808 */ |
809 |
809 |
810 function convertEditorSettings(data) { |
810 function convertEditorSettings(data) { |
833 delete newData['core/edit-site']; |
833 delete newData['core/edit-site']; |
834 } |
834 } |
835 return newData; |
835 return newData; |
836 } |
836 } |
837 |
837 |
838 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/migrations/preferences-package-data/index.js |
838 ;// ./node_modules/@wordpress/preferences-persistence/build-module/migrations/preferences-package-data/index.js |
839 /** |
839 /** |
840 * Internal dependencies |
840 * Internal dependencies |
841 */ |
841 */ |
842 |
842 |
843 |
843 |
845 let newData = convertComplementaryAreas(data); |
845 let newData = convertComplementaryAreas(data); |
846 newData = convertEditorSettings(newData); |
846 newData = convertEditorSettings(newData); |
847 return newData; |
847 return newData; |
848 } |
848 } |
849 |
849 |
850 ;// CONCATENATED MODULE: ./node_modules/@wordpress/preferences-persistence/build-module/index.js |
850 ;// ./node_modules/@wordpress/preferences-persistence/build-module/index.js |
851 /** |
851 /** |
852 * Internal dependencies |
852 * Internal dependencies |
853 */ |
853 */ |
854 |
854 |
855 |
855 |