@wordpress/boot 0.19.0 → 0.21.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 +38 -0
- package/README.md +4 -0
- package/build-module/components/app/index.mjs.map +2 -2
- package/build-module/components/app/router.mjs +100 -4
- package/build-module/components/app/router.mjs.map +3 -3
- package/build-module/components/app/use-route-title.mjs.map +2 -2
- package/build-module/components/canvas/back-button.mjs.map +2 -2
- package/build-module/components/canvas/index.mjs +72 -13
- package/build-module/components/canvas/index.mjs.map +2 -2
- package/build-module/components/canvas/site-preview.mjs +50 -0
- package/build-module/components/canvas/site-preview.mjs.map +7 -0
- package/build-module/components/canvas/use-navigate-to-entity-record.mjs +122 -0
- package/build-module/components/canvas/use-navigate-to-entity-record.mjs.map +7 -0
- package/build-module/components/canvas/viewport.mjs +18 -0
- package/build-module/components/canvas/viewport.mjs.map +7 -0
- package/build-module/components/canvas-renderer/index.mjs.map +2 -2
- package/build-module/components/error-boundary/index.mjs +129 -0
- package/build-module/components/error-boundary/index.mjs.map +7 -0
- package/build-module/components/navigation/drilldown-item/index.mjs +91 -1
- package/build-module/components/navigation/drilldown-item/index.mjs.map +3 -3
- package/build-module/components/navigation/dropdown-item/index.mjs +99 -12
- package/build-module/components/navigation/dropdown-item/index.mjs.map +4 -4
- package/build-module/components/navigation/index.mjs +1 -2
- package/build-module/components/navigation/index.mjs.map +2 -2
- package/build-module/components/navigation/items.mjs.map +2 -2
- package/build-module/components/navigation/navigation-item/index.mjs +88 -15
- package/build-module/components/navigation/navigation-item/index.mjs.map +3 -3
- package/build-module/components/navigation/navigation-screen/index.mjs +111 -38
- package/build-module/components/navigation/navigation-screen/index.mjs.map +3 -3
- package/build-module/components/navigation/path-matching.mjs.map +2 -2
- package/build-module/components/navigation/router-link-item.mjs.map +2 -2
- package/build-module/components/navigation/use-sidebar-parent.mjs +1 -1
- package/build-module/components/navigation/use-sidebar-parent.mjs.map +2 -2
- package/build-module/components/plugin-area/index.mjs +29 -0
- package/build-module/components/plugin-area/index.mjs.map +7 -0
- package/build-module/components/root/index.mjs +220 -122
- package/build-module/components/root/index.mjs.map +3 -3
- package/build-module/components/root/single-page.mjs +139 -47
- package/build-module/components/root/single-page.mjs.map +3 -3
- package/build-module/components/root/use-sync-body-background.mjs.map +2 -2
- package/build-module/components/save-button/index.mjs +127 -16
- package/build-module/components/save-button/index.mjs.map +3 -3
- package/build-module/components/save-panel/index.mjs +91 -1
- package/build-module/components/save-panel/index.mjs.map +3 -3
- package/build-module/components/save-panel/use-save-shortcut.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +90 -10
- package/build-module/components/sidebar/index.mjs.map +3 -3
- package/build-module/index.mjs +0 -16
- package/build-module/index.mjs.map +3 -3
- package/build-module/lock-unlock.mjs.map +2 -2
- package/build-module/store/actions.mjs +8 -0
- package/build-module/store/actions.mjs.map +2 -2
- package/build-module/store/index.mjs.map +2 -2
- package/build-module/store/reducer.mjs +16 -1
- package/build-module/store/reducer.mjs.map +2 -2
- package/build-module/store/selectors.mjs +9 -0
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-types/components/app/index.d.ts.map +1 -1
- package/build-types/components/app/router.d.ts +0 -3
- package/build-types/components/app/router.d.ts.map +1 -1
- package/build-types/components/app/use-route-title.d.ts.map +1 -1
- package/build-types/components/canvas/back-button.d.ts.map +1 -1
- package/build-types/components/canvas/index.d.ts +0 -3
- package/build-types/components/canvas/index.d.ts.map +1 -1
- package/build-types/components/canvas/site-preview.d.ts +10 -0
- package/build-types/components/canvas/site-preview.d.ts.map +1 -0
- package/build-types/components/canvas/use-navigate-to-entity-record.d.ts +40 -0
- package/build-types/components/canvas/use-navigate-to-entity-record.d.ts.map +1 -0
- package/build-types/components/canvas/viewport.d.ts +15 -0
- package/build-types/components/canvas/viewport.d.ts.map +1 -0
- package/build-types/components/canvas-renderer/index.d.ts.map +1 -1
- package/build-types/components/error-boundary/index.d.ts +22 -0
- package/build-types/components/error-boundary/index.d.ts.map +1 -0
- package/build-types/components/navigation/drilldown-item/index.d.ts.map +1 -1
- package/build-types/components/navigation/dropdown-item/index.d.ts +0 -1
- package/build-types/components/navigation/dropdown-item/index.d.ts.map +1 -1
- package/build-types/components/navigation/index.d.ts.map +1 -1
- package/build-types/components/navigation/items.d.ts +0 -3
- package/build-types/components/navigation/items.d.ts.map +1 -1
- package/build-types/components/navigation/navigation-item/index.d.ts +0 -1
- package/build-types/components/navigation/navigation-item/index.d.ts.map +1 -1
- package/build-types/components/navigation/navigation-screen/index.d.ts +0 -7
- package/build-types/components/navigation/navigation-screen/index.d.ts.map +1 -1
- package/build-types/components/navigation/path-matching.d.ts +0 -3
- package/build-types/components/navigation/path-matching.d.ts.map +1 -1
- package/build-types/components/navigation/router-link-item.d.ts.map +1 -1
- package/build-types/components/navigation/use-sidebar-parent.d.ts.map +1 -1
- package/build-types/components/plugin-area/index.d.ts +12 -0
- package/build-types/components/plugin-area/index.d.ts.map +1 -0
- package/build-types/components/root/index.d.ts +0 -1
- package/build-types/components/root/index.d.ts.map +1 -1
- package/build-types/components/root/single-page.d.ts +0 -1
- package/build-types/components/root/single-page.d.ts.map +1 -1
- package/build-types/components/root/use-sync-body-background.d.ts +1 -1
- package/build-types/components/root/use-sync-body-background.d.ts.map +1 -1
- package/build-types/components/save-button/index.d.ts +0 -4
- package/build-types/components/save-button/index.d.ts.map +1 -1
- package/build-types/components/save-panel/index.d.ts.map +1 -1
- package/build-types/components/save-panel/use-save-shortcut.d.ts.map +1 -1
- package/build-types/components/sidebar/index.d.ts +0 -1
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/index.d.ts +0 -5
- package/build-types/index.d.ts.map +1 -1
- package/build-types/lock-unlock.d.ts.map +1 -1
- package/build-types/store/actions.d.ts +15 -5
- package/build-types/store/actions.d.ts.map +1 -1
- package/build-types/store/index.d.ts.map +1 -1
- package/build-types/store/reducer.d.ts +0 -3
- package/build-types/store/reducer.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +12 -3
- package/build-types/store/selectors.d.ts.map +1 -1
- package/build-types/store/types.d.ts +34 -6
- package/build-types/store/types.d.ts.map +1 -1
- package/package.json +28 -25
- package/src/components/app/index.tsx +0 -7
- package/src/components/app/router.tsx +19 -18
- package/src/components/app/use-route-title.ts +0 -7
- package/src/components/canvas/back-button.tsx +0 -3
- package/src/components/canvas/index.tsx +117 -22
- package/src/components/canvas/site-preview.tsx +64 -0
- package/src/components/canvas/use-navigate-to-entity-record.ts +220 -0
- package/src/components/canvas/viewport.ts +34 -0
- package/src/components/canvas-renderer/index.tsx +0 -7
- package/src/components/error-boundary/index.tsx +71 -0
- package/src/components/error-boundary/style.module.scss +13 -0
- package/src/components/navigation/drilldown-item/index.tsx +2 -13
- package/src/components/navigation/dropdown-item/index.tsx +11 -19
- package/src/components/navigation/dropdown-item/{style.scss → style.module.scss} +6 -2
- package/src/components/navigation/index.tsx +1 -9
- package/src/components/navigation/items.tsx +0 -7
- package/src/components/navigation/navigation-item/index.tsx +3 -18
- package/src/components/navigation/navigation-item/{style.scss → style.module.scss} +7 -14
- package/src/components/navigation/navigation-screen/index.tsx +6 -26
- package/src/components/navigation/navigation-screen/{style.scss → style.module.scss} +10 -9
- package/src/components/navigation/path-matching.ts +0 -3
- package/src/components/navigation/router-link-item.tsx +0 -11
- package/src/components/navigation/use-sidebar-parent.ts +1 -13
- package/src/components/plugin-area/index.tsx +34 -0
- package/src/components/root/{style.scss → _layout.module.scss} +71 -40
- package/src/components/root/_view-transitions.module.scss +205 -0
- package/src/components/root/index.tsx +44 -35
- package/src/components/root/single-page.tsx +15 -18
- package/src/components/root/style.module.scss +2 -0
- package/src/components/root/use-sync-body-background.ts +1 -4
- package/src/components/save-button/index.tsx +36 -21
- package/src/components/save-button/style.module.scss +10 -0
- package/src/components/save-panel/index.tsx +2 -8
- package/src/components/save-panel/style.module.scss +7 -0
- package/src/components/save-panel/use-save-shortcut.ts +0 -3
- package/src/components/sidebar/index.tsx +5 -12
- package/src/components/sidebar/style.module.scss +29 -0
- package/src/index.tsx +0 -5
- package/src/lock-unlock.ts +0 -3
- package/src/store/actions.ts +18 -4
- package/src/store/index.ts +0 -7
- package/src/store/reducer.ts +19 -3
- package/src/store/selectors.ts +28 -3
- package/src/store/types.ts +37 -6
- package/build-style/style-rtl.css +0 -132
- package/build-style/style.css +0 -132
- package/build-style/view-transitions-rtl.css +0 -189
- package/build-style/view-transitions.css +0 -189
- package/build-types/components/site-hub/index.d.ts +0 -4
- package/build-types/components/site-hub/index.d.ts.map +0 -1
- package/build-types/components/site-icon/index.d.ts +0 -9
- package/build-types/components/site-icon/index.d.ts.map +0 -1
- package/build-types/components/site-icon-link/index.d.ts +0 -8
- package/build-types/components/site-icon-link/index.d.ts.map +0 -1
- package/build-types/components/user-theme-provider/index.d.ts +0 -6
- package/build-types/components/user-theme-provider/index.d.ts.map +0 -1
- package/src/components/save-button/style.scss +0 -9
- package/src/components/sidebar/style.scss +0 -23
- package/src/style.scss +0 -33
- package/src/view-transitions.scss +0 -221
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
interface NavigateParams {
|
|
2
|
+
postType: string;
|
|
3
|
+
postId: string;
|
|
4
|
+
viewport?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Builds the editor's entity navigation callbacks.
|
|
8
|
+
*
|
|
9
|
+
* The editor uses these to move between an entity and one nested inside it —
|
|
10
|
+
* a template part or a synced pattern reached from the block inspector. They
|
|
11
|
+
* are passed through the editor settings, where `onNavigateToEntityRecord`
|
|
12
|
+
* gates the inspector's edit affordance and `onNavigateToPreviousEntityRecord`
|
|
13
|
+
* gates the document bar's back button.
|
|
14
|
+
*
|
|
15
|
+
* @return The two callbacks, for spreading into the editor settings.
|
|
16
|
+
*/
|
|
17
|
+
export default function useNavigateToEntityRecord(): {
|
|
18
|
+
onNavigateToEntityRecord: (params: NavigateParams) => void;
|
|
19
|
+
onNavigateToPreviousEntityRecord: (() => any) | undefined;
|
|
20
|
+
};
|
|
21
|
+
interface ActionItem {
|
|
22
|
+
id: string | number;
|
|
23
|
+
type: string;
|
|
24
|
+
title?: string | {
|
|
25
|
+
rendered?: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Builds the callback the editor runs after a post action.
|
|
30
|
+
*
|
|
31
|
+
* Actions taken from inside the editor act on the entity being edited, so
|
|
32
|
+
* trashing or deleting one leaves the canvas showing something that is no
|
|
33
|
+
* longer there, and duplicating one gives no way to reach the copy.
|
|
34
|
+
*
|
|
35
|
+
* @param postType Post type rendered in the canvas.
|
|
36
|
+
* @return The callback, for passing to the editor.
|
|
37
|
+
*/
|
|
38
|
+
export declare function useActionPerformed(postType?: string): (actionId: string, items: ActionItem[]) => void;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=use-navigate-to-entity-record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-navigate-to-entity-record.d.ts","sourceRoot":"","sources":["../../../src/components/canvas/use-navigate-to-entity-record.ts"],"names":[],"mappings":"AA+BA,UAAU,cAAc;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB;uCAYrC,cAAc;;EA+EzB;AAED,UAAU,UAAU;IACnB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACvC;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAE,QAAQ,CAAC,EAAE,MAAM,cASvC,MAAM,SAAS,UAAU,EAAE,UAqDxC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a viewport is one an entity can be asked to be edited at.
|
|
3
|
+
*
|
|
4
|
+
* @param viewport Viewport, as written in the URL.
|
|
5
|
+
* @return Whether the editor has a width for it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isValidViewport(viewport?: string): viewport is string;
|
|
8
|
+
/**
|
|
9
|
+
* The device type a `viewport` search param names.
|
|
10
|
+
*
|
|
11
|
+
* @param viewport Viewport, as written in the URL.
|
|
12
|
+
* @return Device type, Desktop for a viewport the editor has no width for.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getDeviceType(viewport?: string): string;
|
|
15
|
+
//# sourceMappingURL=viewport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../../src/components/canvas/viewport.ts"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH,wBAAgB,eAAe,CAAE,QAAQ,CAAC,EAAE,MAAM,GAAI,QAAQ,IAAI,MAAM,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAE,QAAQ,CAAC,EAAE,MAAM,UAO/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/canvas-renderer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/canvas-renderer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,UAAU,mBAAmB;IAC5B,MAAM,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,EACvC,MAAM,EACN,kBAAkB,GAClB,EAAE,mBAAmB,sCAiCrB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { Component } from '@wordpress/element';
|
|
3
|
+
interface Props {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
interface State {
|
|
7
|
+
error: Error | null;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Contains a failure to one surface, so a screen keeps working around it.
|
|
11
|
+
*
|
|
12
|
+
* Wrapping each surface separately means a stage that throws leaves the
|
|
13
|
+
* navigation, the canvas and the way to save reachable, rather than taking the
|
|
14
|
+
* whole screen down with it.
|
|
15
|
+
*/
|
|
16
|
+
export default class ErrorBoundary extends Component<Props, State> {
|
|
17
|
+
constructor(props: Props);
|
|
18
|
+
static getDerivedStateFromError(error: Error): State;
|
|
19
|
+
render(): string | number | boolean | import("react").JSX.Element | Iterable<ReactNode> | null | undefined;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/error-boundary/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAQ/C,UAAU,KAAK;IACd,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,UAAU,KAAK;IACd,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACpB;AAYD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS,CAAE,KAAK,EAAE,KAAK,CAAE;IACnE,YAAa,KAAK,EAAE,KAAK,EAGxB;IAED,MAAM,CAAC,wBAAwB,CAAE,KAAK,EAAE,KAAK,GAAI,KAAK,CAErD;IAED,MAAM,qGAyBL;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/drilldown-item/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/drilldown-item/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGrD,UAAU,kBAAkB;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,CAAE,EACb,EAAE,EACF,SAAS,GACT,EAAE;QACF,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC;KAClC,KAAM,IAAI,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAE,EACtC,SAAS,EACT,EAAE,EACF,IAAI,EACJ,qBAA4B,EAC5B,QAAQ,EACR,UAAU,GACV,EAAE,kBAAkB,+BAwBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/dropdown-item/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/dropdown-item/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAevC,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,sBAAsB,CAAC;AAM/D,UAAU,iBAAiB;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,EACrC,SAAS,EACT,EAAE,EACF,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,QAAQ,GACR,EAAE,iBAAiB,+BAiEnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/index.tsx"],"names":[],"mappings":"AAUA,iBAAS,UAAU,gCAyGlB;eAEc,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/items.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/items.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAelD;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CACvB,IAAI,CAAC,EAAE,QAAQ,EACf,qBAAqB,GAAE,OAAc,qGAuDrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/navigation-item/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/navigation-item/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGrD,UAAU,mBAAmB;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACX;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,EACvC,SAAS,EACT,IAAI,EACJ,qBAA4B,EAC5B,QAAQ,EACR,EAAE,GACF,EAAE,mBAAmB,+BA+BrB"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
1
|
import type { ReactNode, RefObject } from 'react';
|
|
5
|
-
/**
|
|
6
|
-
* Internal dependencies
|
|
7
|
-
*/
|
|
8
|
-
import './style.scss';
|
|
9
2
|
export default function NavigationScreen({ isRoot, title, actions, content, description, animationDirection, backMenuItem, backButtonRef, navigationKey, onNavigate, }: {
|
|
10
3
|
isRoot?: boolean;
|
|
11
4
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/navigation-screen/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/navigation-screen/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA6BlD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,EACzC,MAAM,EACN,KAAK,EACL,OAAO,EACP,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,UAAU,GACV,EAAE;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,SAAS,CAAE,iBAAiB,GAAG,IAAI,CAAE,CAAC;IACtD,kBAAkB,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,CAAE,EACb,EAAE,EACF,SAAS,GACT,EAAE;QACF,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC;KAClC,KAAM,IAAI,CAAC;CACZ,+BAqEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-matching.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/path-matching.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"path-matching.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/path-matching.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAqClD;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,gBAClB,MAAM,aACR,QAAQ,EAAE,KACnB,QAAQ,GAAG,IAyBb,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,OAC3B,MAAM,GAAG,SAAS,aACX,QAAQ,EAAE,KACnB,MAAM,GAAG,SA0BX,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,OAC1B,MAAM,GAAG,SAAS,aACX,QAAQ,EAAE,KACnB,MAAM,GAAG,SAsBX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-link-item.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/router-link-item.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"router-link-item.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/router-link-item.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,cAAc,KAA6C,CAAC;eAEnD,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-sidebar-parent.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/use-sidebar-parent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-sidebar-parent.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/use-sidebar-parent.ts"],"names":[],"mappings":"AAYA;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,kNA6C/B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mounts every plugin registered with `registerPlugin`, so the fills they
|
|
3
|
+
* render reach their slots.
|
|
4
|
+
*
|
|
5
|
+
* Sits at the root rather than with the editor: a plugin's fills mostly target
|
|
6
|
+
* editor slots, but the component holding them is also where it registers
|
|
7
|
+
* commands and extends a list, which the routes without a canvas need too.
|
|
8
|
+
*
|
|
9
|
+
* @return The mount point. Renders whatever the plugins do, and nothing itself.
|
|
10
|
+
*/
|
|
11
|
+
export default function PluginArea(): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/plugin-area/index.tsx"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,gCAkBjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/root/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/root/index.tsx"],"names":[],"mappings":"AA8BA,MAAM,CAAC,OAAO,UAAU,IAAI,gCA6L3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-page.d.ts","sourceRoot":"","sources":["../../../src/components/root/single-page.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"single-page.d.ts","sourceRoot":"","sources":["../../../src/components/root/single-page.tsx"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,gCAoErC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* hook can be replaced with a CSS rule on `<body>`.
|
|
8
8
|
* See https://github.com/WordPress/gutenberg/pull/78587#discussion_r3481698286
|
|
9
9
|
*
|
|
10
|
-
* @return Ref to attach to the
|
|
10
|
+
* @return Ref to attach to the layout root element.
|
|
11
11
|
*/
|
|
12
12
|
export default function useSyncBodyBackground(): import("react").MutableRefObject<HTMLDivElement | null>;
|
|
13
13
|
//# sourceMappingURL=use-sync-body-background.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-sync-body-background.d.ts","sourceRoot":"","sources":["../../../src/components/root/use-sync-body-background.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-sync-body-background.d.ts","sourceRoot":"","sources":["../../../src/components/root/use-sync-body-background.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,4DAuB5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/save-button/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/save-button/index.tsx"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,UAAU,UAAU,uCA4HjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/save-panel/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/save-panel/index.tsx"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,SAAS,wCAqBhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-save-shortcut.d.ts","sourceRoot":"","sources":["../../../src/components/save-panel/use-save-shortcut.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-save-shortcut.d.ts","sourceRoot":"","sources":["../../../src/components/save-panel/use-save-shortcut.ts"],"names":[],"mappings":"AAYA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,EACxC,aAAa,GACb,EAAE;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B,QAwCA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.tsx"],"names":[],"mappings":"AA2BA,MAAM,CAAC,OAAO,UAAU,OAAO,gCAY9B"}
|
package/build-types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lock-unlock.d.ts","sourceRoot":"","sources":["../src/lock-unlock.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lock-unlock.d.ts","sourceRoot":"","sources":["../src/lock-unlock.ts"],"names":[],"mappings":"AACA,eAAO,MAAQ,IAAI,mDAAE,MAAM,iCAIzB,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type { MenuItem, Route } from './types';
|
|
1
|
+
import type { EntityLinks, MenuItem, Route } from './types';
|
|
5
2
|
export declare function registerMenuItem(id: string, menuItem: MenuItem): {
|
|
6
3
|
type: 'REGISTER_MENU_ITEM';
|
|
7
4
|
id: string;
|
|
@@ -16,9 +13,22 @@ export declare function registerRoute(route: Route): {
|
|
|
16
13
|
type: 'REGISTER_ROUTE';
|
|
17
14
|
route: Route;
|
|
18
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Registers where entities of a post type are listed and edited.
|
|
18
|
+
*
|
|
19
|
+
* Register `default` to cover post types with no entry of their own.
|
|
20
|
+
*
|
|
21
|
+
* @param postType Post type the links belong to, or `default`.
|
|
22
|
+
* @param links Paths to list and edit an entity of that post type.
|
|
23
|
+
*/
|
|
24
|
+
export declare function registerEntityLinks(postType: string, links: EntityLinks): {
|
|
25
|
+
type: 'REGISTER_ENTITY_LINKS';
|
|
26
|
+
postType: string;
|
|
27
|
+
links: EntityLinks;
|
|
28
|
+
};
|
|
19
29
|
export declare function setDashboardLink(dashboardLink: string): {
|
|
20
30
|
type: 'SET_DASHBOARD_LINK';
|
|
21
31
|
dashboardLink: string;
|
|
22
32
|
};
|
|
23
|
-
export type Action = ReturnType<typeof registerMenuItem> | ReturnType<typeof updateMenuItem> | ReturnType<typeof registerRoute> | ReturnType<typeof setDashboardLink>;
|
|
33
|
+
export type Action = ReturnType<typeof registerMenuItem> | ReturnType<typeof updateMenuItem> | ReturnType<typeof registerRoute> | ReturnType<typeof registerEntityLinks> | ReturnType<typeof setDashboardLink>;
|
|
24
34
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAE5D,wBAAgB,gBAAgB,CAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;UAExD,oBAAoB;;;EAI3B;AAED,wBAAgB,cAAc,CAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAE,QAAQ,CAAE;UAEhE,kBAAkB;;;EAIzB;AAED,wBAAgB,aAAa,CAAE,KAAK,EAAE,KAAK;UAEnC,gBAAgB;;EAGvB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW;UAEjE,uBAAuB;;;EAI9B;AAED,wBAAgB,gBAAgB,CAAE,aAAa,EAAE,MAAM;UAE/C,oBAAoB;;EAG3B;AAED,MAAM,MAAM,MAAM,GACf,UAAU,CAAE,OAAO,gBAAgB,CAAE,GACrC,UAAU,CAAE,OAAO,cAAc,CAAE,GACnC,UAAU,CAAE,OAAO,aAAa,CAAE,GAClC,UAAU,CAAE,OAAO,mBAAmB,CAAE,GACxC,UAAU,CAAE,OAAO,gBAAgB,CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAEzC,QAAA,MAAM,UAAU,mBAAmB,CAAC;AAEpC,eAAO,MAAM,KAAK,kIAIf,CAAC;AAIJ,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/store/reducer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/store/reducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AASrC,wBAAgB,OAAO,CAAE,KAAK,EAAE,KAAK,YAAe,EAAE,MAAM,EAAE,MAAM,GAAI,KAAK,CAuD5E"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
1
|
import type { State } from './types';
|
|
5
2
|
export declare function getMenuItems(state: State): import("./types").MenuItem[];
|
|
6
3
|
export declare function getRoutes(state: State): import("./types").Route[];
|
|
7
4
|
export declare function getDashboardLink(state: State): string | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* Returns the path an entity is edited or listed at.
|
|
7
|
+
*
|
|
8
|
+
* Falls back to the links registered for `default`, so a post type with no
|
|
9
|
+
* entry of its own still resolves.
|
|
10
|
+
*
|
|
11
|
+
* @param state Store state.
|
|
12
|
+
* @param postType Post type to resolve for.
|
|
13
|
+
* @param postId Entity to edit. Omit for the list of the post type.
|
|
14
|
+
* @return The path, or undefined when nothing is registered for it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getEntityLink(state: State, postType: string, postId?: string | number): string | undefined;
|
|
8
17
|
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,wBAAgB,YAAY,CAAE,KAAK,EAAE,KAAK,gCAEzC;AAED,wBAAgB,SAAS,CAAE,KAAK,EAAE,KAAK,6BAEtC;AAED,wBAAgB,gBAAgB,CAAE,KAAK,EAAE,KAAK,sBAE7C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,sBAYxB"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
1
|
import type { ReactNode, ComponentType } from 'react';
|
|
5
2
|
/**
|
|
6
3
|
* Icon type supporting multiple formats:
|
|
@@ -49,11 +46,23 @@ export interface CanvasData {
|
|
|
49
46
|
* Indicates if the canvas is in preview mode.
|
|
50
47
|
*/
|
|
51
48
|
isPreview?: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The routes an entity of a given post type is edited and listed at.
|
|
52
|
+
*
|
|
53
|
+
* Registered by the application rather than known here, so the shell holds no
|
|
54
|
+
* knowledge of any particular page's URLs.
|
|
55
|
+
*/
|
|
56
|
+
export interface EntityLinks {
|
|
57
|
+
/**
|
|
58
|
+
* Path the entities of this post type are listed at.
|
|
59
|
+
*/
|
|
60
|
+
list?: string;
|
|
52
61
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
62
|
+
* Path an entity of this post type is edited at. `{id}` is replaced with
|
|
63
|
+
* the encoded entity ID.
|
|
55
64
|
*/
|
|
56
|
-
|
|
65
|
+
edit?: string;
|
|
57
66
|
}
|
|
58
67
|
/**
|
|
59
68
|
* Route lifecycle configuration exported from route_module.
|
|
@@ -93,6 +102,24 @@ export interface RouteConfig {
|
|
|
93
102
|
* ```
|
|
94
103
|
*/
|
|
95
104
|
inspector?: (context: RouteLoaderContext) => boolean | Promise<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* Function that determines whether to show the stage.
|
|
107
|
+
* When not defined, defaults to true (always show stage if component exists).
|
|
108
|
+
* When it returns false, the stage is hidden even if a stage component is
|
|
109
|
+
* exported, leaving the canvas to fill the surfaces area.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```tsx
|
|
113
|
+
* export const route = {
|
|
114
|
+
* stage: async () => {
|
|
115
|
+
* // Only show the stage when there is something to edit
|
|
116
|
+
* const theme = await resolveSelect( coreStore ).getCurrentTheme();
|
|
117
|
+
* return !! theme?.is_block_theme;
|
|
118
|
+
* },
|
|
119
|
+
* };
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
stage?: (context: RouteLoaderContext) => boolean | Promise<boolean>;
|
|
96
123
|
/**
|
|
97
124
|
* Function that returns the document title for the route.
|
|
98
125
|
* The returned title will be formatted as: "{title} ‹ {siteTitle} — WordPress"
|
|
@@ -146,5 +173,6 @@ export interface State {
|
|
|
146
173
|
menuItems: Record<string, MenuItem>;
|
|
147
174
|
routes: Route[];
|
|
148
175
|
dashboardLink?: string;
|
|
176
|
+
entityLinks: Record<string, EntityLinks>;
|
|
149
177
|
}
|
|
150
178
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/store/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,QAAQ;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC7B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,MAAM,CAAE,MAAM,EAAE,MAAM,CAAE,CAAC;IACjC,MAAM,EAAE,MAAM,CAAE,MAAM,EAAE,OAAO,CAAE,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC3B;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAE,OAAO,EAAE,kBAAkB,KAAM,IAAI,GAAG,OAAO,CAAE,IAAI,CAAE,CAAC;IAEvE;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAE,OAAO,EAAE,kBAAkB,KAAM,OAAO,CAAE,OAAO,CAAE,CAAC;IAE/D;;;;;OAKG;IACH,MAAM,CAAC,EAAE,CACR,OAAO,EAAE,kBAAkB,KACvB,OAAO,CAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAE,CAAC;IAE9C;;;;;;;;;;;;;;OAcG;IACH,SAAS,CAAC,EAAE,CAAE,OAAO,EAAE,kBAAkB,KAAM,OAAO,GAAG,OAAO,CAAE,OAAO,CAAE,CAAC;IAE5E;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,EAAE,CAAE,OAAO,EAAE,kBAAkB,KAAM,OAAO,GAAG,OAAO,CAAE,OAAO,CAAE,CAAC;IAExE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,EAAE,CAAE,OAAO,EAAE,kBAAkB,KAAM,MAAM,GAAG,OAAO,CAAE,MAAM,CAAE,CAAC;CACtE;AAED;;;GAGG;AACH,MAAM,WAAW,KAAK;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,KAAK;IACrB,SAAS,EAAE,MAAM,CAAE,MAAM,EAAE,QAAQ,CAAE,CAAC;IACtC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAE,MAAM,EAAE,WAAW,CAAE,CAAC;CAC3C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/boot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Minimal boot package for WordPress admin pages.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -40,29 +40,32 @@
|
|
|
40
40
|
"wpScriptModuleExports": "./build-module/index.mjs",
|
|
41
41
|
"types": "build-types",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@wordpress/a11y": "^4.
|
|
44
|
-
"@wordpress/admin-ui": "^2.
|
|
45
|
-
"@wordpress/base-styles": "^
|
|
46
|
-
"@wordpress/commands": "^1.
|
|
47
|
-
"@wordpress/components": "^
|
|
48
|
-
"@wordpress/compose": "^8.
|
|
49
|
-
"@wordpress/core-data": "^7.
|
|
50
|
-
"@wordpress/data": "^10.
|
|
51
|
-
"@wordpress/
|
|
52
|
-
"@wordpress/
|
|
53
|
-
"@wordpress/
|
|
54
|
-
"@wordpress/
|
|
55
|
-
"@wordpress/
|
|
56
|
-
"@wordpress/
|
|
57
|
-
"@wordpress/
|
|
58
|
-
"@wordpress/
|
|
59
|
-
"@wordpress/
|
|
60
|
-
"@wordpress/
|
|
61
|
-
"@wordpress/
|
|
62
|
-
"@wordpress/
|
|
63
|
-
"@wordpress/
|
|
64
|
-
"@wordpress/
|
|
65
|
-
"@wordpress/
|
|
43
|
+
"@wordpress/a11y": "^4.54.0",
|
|
44
|
+
"@wordpress/admin-ui": "^2.9.0",
|
|
45
|
+
"@wordpress/base-styles": "^13.0.0",
|
|
46
|
+
"@wordpress/commands": "^1.54.0",
|
|
47
|
+
"@wordpress/components": "^40.0.0",
|
|
48
|
+
"@wordpress/compose": "^8.7.0",
|
|
49
|
+
"@wordpress/core-data": "^7.54.0",
|
|
50
|
+
"@wordpress/data": "^10.54.0",
|
|
51
|
+
"@wordpress/dom": "^4.54.0",
|
|
52
|
+
"@wordpress/editor": "^14.54.0",
|
|
53
|
+
"@wordpress/element": "^8.6.0",
|
|
54
|
+
"@wordpress/html-entities": "^4.54.0",
|
|
55
|
+
"@wordpress/i18n": "^6.27.0",
|
|
56
|
+
"@wordpress/icons": "^15.5.0",
|
|
57
|
+
"@wordpress/keyboard-shortcuts": "^5.54.0",
|
|
58
|
+
"@wordpress/keycodes": "^4.54.0",
|
|
59
|
+
"@wordpress/lazy-editor": "^1.20.0",
|
|
60
|
+
"@wordpress/notices": "^5.54.0",
|
|
61
|
+
"@wordpress/plugins": "^7.54.0",
|
|
62
|
+
"@wordpress/primitives": "^4.54.0",
|
|
63
|
+
"@wordpress/private-apis": "^1.54.0",
|
|
64
|
+
"@wordpress/route": "^0.20.0",
|
|
65
|
+
"@wordpress/style-runtime": "^0.10.0",
|
|
66
|
+
"@wordpress/theme": "^2.0.0",
|
|
67
|
+
"@wordpress/ui": "^0.21.0",
|
|
68
|
+
"@wordpress/url": "^4.54.0",
|
|
66
69
|
"clsx": "^2.1.1"
|
|
67
70
|
},
|
|
68
71
|
"peerDependencies": {
|
|
@@ -78,5 +81,5 @@
|
|
|
78
81
|
"publishConfig": {
|
|
79
82
|
"access": "public"
|
|
80
83
|
},
|
|
81
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "5ef24f60261976bb198ad035db24bf81c1fb92b4"
|
|
82
85
|
}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
1
|
import { createRoot, StrictMode, type ComponentType } from '@wordpress/element';
|
|
5
2
|
import { dispatch, useSelect } from '@wordpress/data';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Internal dependencies
|
|
9
|
-
*/
|
|
10
3
|
import Router from './router';
|
|
11
4
|
import RootSinglePage from '../root/single-page';
|
|
12
5
|
import { store } from '../../store';
|