@wordpress/boot 0.19.0 → 0.20.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.
Files changed (114) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build-module/components/app/index.mjs.map +2 -2
  3. package/build-module/components/app/router.mjs.map +2 -2
  4. package/build-module/components/app/use-route-title.mjs.map +2 -2
  5. package/build-module/components/canvas/back-button.mjs.map +2 -2
  6. package/build-module/components/canvas/index.mjs.map +2 -2
  7. package/build-module/components/canvas-renderer/index.mjs.map +2 -2
  8. package/build-module/components/navigation/drilldown-item/index.mjs.map +2 -2
  9. package/build-module/components/navigation/dropdown-item/index.mjs +1 -1
  10. package/build-module/components/navigation/dropdown-item/index.mjs.map +2 -2
  11. package/build-module/components/navigation/index.mjs +1 -1
  12. package/build-module/components/navigation/index.mjs.map +2 -2
  13. package/build-module/components/navigation/items.mjs.map +2 -2
  14. package/build-module/components/navigation/navigation-item/index.mjs.map +2 -2
  15. package/build-module/components/navigation/navigation-screen/index.mjs.map +2 -2
  16. package/build-module/components/navigation/path-matching.mjs.map +2 -2
  17. package/build-module/components/navigation/router-link-item.mjs.map +2 -2
  18. package/build-module/components/navigation/use-sidebar-parent.mjs +1 -1
  19. package/build-module/components/navigation/use-sidebar-parent.mjs.map +2 -2
  20. package/build-module/components/root/index.mjs.map +2 -2
  21. package/build-module/components/root/single-page.mjs.map +2 -2
  22. package/build-module/components/root/use-sync-body-background.mjs.map +2 -2
  23. package/build-module/components/save-button/index.mjs.map +2 -2
  24. package/build-module/components/save-panel/index.mjs.map +2 -2
  25. package/build-module/components/save-panel/use-save-shortcut.mjs.map +2 -2
  26. package/build-module/components/sidebar/index.mjs.map +2 -2
  27. package/build-module/index.mjs +3 -3
  28. package/build-module/index.mjs.map +2 -2
  29. package/build-module/lock-unlock.mjs.map +2 -2
  30. package/build-module/store/actions.mjs.map +2 -2
  31. package/build-module/store/index.mjs.map +2 -2
  32. package/build-module/store/reducer.mjs.map +2 -2
  33. package/build-module/store/selectors.mjs.map +2 -2
  34. package/build-style/style-rtl.css +3 -2
  35. package/build-style/style.css +3 -2
  36. package/build-types/components/app/index.d.ts.map +1 -1
  37. package/build-types/components/app/router.d.ts +0 -3
  38. package/build-types/components/app/router.d.ts.map +1 -1
  39. package/build-types/components/app/use-route-title.d.ts.map +1 -1
  40. package/build-types/components/canvas/back-button.d.ts.map +1 -1
  41. package/build-types/components/canvas/index.d.ts +0 -3
  42. package/build-types/components/canvas/index.d.ts.map +1 -1
  43. package/build-types/components/canvas-renderer/index.d.ts.map +1 -1
  44. package/build-types/components/navigation/drilldown-item/index.d.ts.map +1 -1
  45. package/build-types/components/navigation/dropdown-item/index.d.ts.map +1 -1
  46. package/build-types/components/navigation/index.d.ts.map +1 -1
  47. package/build-types/components/navigation/items.d.ts +0 -3
  48. package/build-types/components/navigation/items.d.ts.map +1 -1
  49. package/build-types/components/navigation/navigation-item/index.d.ts.map +1 -1
  50. package/build-types/components/navigation/navigation-screen/index.d.ts +0 -6
  51. package/build-types/components/navigation/navigation-screen/index.d.ts.map +1 -1
  52. package/build-types/components/navigation/path-matching.d.ts +0 -3
  53. package/build-types/components/navigation/path-matching.d.ts.map +1 -1
  54. package/build-types/components/navigation/router-link-item.d.ts.map +1 -1
  55. package/build-types/components/navigation/use-sidebar-parent.d.ts.map +1 -1
  56. package/build-types/components/root/index.d.ts.map +1 -1
  57. package/build-types/components/root/single-page.d.ts.map +1 -1
  58. package/build-types/components/root/use-sync-body-background.d.ts.map +1 -1
  59. package/build-types/components/save-button/index.d.ts +0 -3
  60. package/build-types/components/save-button/index.d.ts.map +1 -1
  61. package/build-types/components/save-panel/index.d.ts.map +1 -1
  62. package/build-types/components/save-panel/use-save-shortcut.d.ts.map +1 -1
  63. package/build-types/components/sidebar/index.d.ts.map +1 -1
  64. package/build-types/index.d.ts +0 -3
  65. package/build-types/index.d.ts.map +1 -1
  66. package/build-types/lock-unlock.d.ts.map +1 -1
  67. package/build-types/store/actions.d.ts +0 -3
  68. package/build-types/store/actions.d.ts.map +1 -1
  69. package/build-types/store/index.d.ts.map +1 -1
  70. package/build-types/store/reducer.d.ts +0 -3
  71. package/build-types/store/reducer.d.ts.map +1 -1
  72. package/build-types/store/selectors.d.ts +0 -3
  73. package/build-types/store/selectors.d.ts.map +1 -1
  74. package/build-types/store/types.d.ts +0 -3
  75. package/build-types/store/types.d.ts.map +1 -1
  76. package/package.json +25 -25
  77. package/src/components/app/index.tsx +0 -7
  78. package/src/components/app/router.tsx +0 -11
  79. package/src/components/app/use-route-title.ts +0 -7
  80. package/src/components/canvas/back-button.tsx +0 -3
  81. package/src/components/canvas/index.tsx +0 -7
  82. package/src/components/canvas-renderer/index.tsx +0 -7
  83. package/src/components/navigation/drilldown-item/index.tsx +0 -12
  84. package/src/components/navigation/dropdown-item/index.tsx +1 -13
  85. package/src/components/navigation/index.tsx +1 -8
  86. package/src/components/navigation/items.tsx +0 -7
  87. package/src/components/navigation/navigation-item/index.tsx +0 -12
  88. package/src/components/navigation/navigation-screen/index.tsx +0 -11
  89. package/src/components/navigation/path-matching.ts +0 -3
  90. package/src/components/navigation/router-link-item.tsx +0 -11
  91. package/src/components/navigation/use-sidebar-parent.ts +1 -13
  92. package/src/components/root/index.tsx +0 -11
  93. package/src/components/root/single-page.tsx +0 -11
  94. package/src/components/root/use-sync-body-background.ts +0 -3
  95. package/src/components/save-button/index.tsx +0 -7
  96. package/src/components/save-panel/index.tsx +0 -7
  97. package/src/components/save-panel/use-save-shortcut.ts +0 -3
  98. package/src/components/sidebar/index.tsx +0 -7
  99. package/src/index.tsx +0 -3
  100. package/src/lock-unlock.ts +0 -3
  101. package/src/store/actions.ts +0 -3
  102. package/src/store/index.ts +0 -7
  103. package/src/store/reducer.ts +0 -3
  104. package/src/store/selectors.ts +0 -3
  105. package/src/store/types.ts +0 -3
  106. package/src/style.scss +5 -4
  107. package/build-types/components/site-hub/index.d.ts +0 -4
  108. package/build-types/components/site-hub/index.d.ts.map +0 -1
  109. package/build-types/components/site-icon/index.d.ts +0 -9
  110. package/build-types/components/site-icon/index.d.ts.map +0 -1
  111. package/build-types/components/site-icon-link/index.d.ts +0 -8
  112. package/build-types/components/site-icon-link/index.d.ts.map +0 -1
  113. package/build-types/components/user-theme-provider/index.d.ts +0 -6
  114. package/build-types/components/user-theme-provider/index.d.ts.map +0 -1
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import './style.scss';
5
2
  export default function SaveButton(): import("react").JSX.Element | null;
6
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/save-button/index.tsx"],"names":[],"mappings":"AAaA;;GAEG;AACH,OAAO,cAAc,CAAC;AAGtB,MAAM,CAAC,OAAO,UAAU,UAAU,uCA+GjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/save-button/index.tsx"],"names":[],"mappings":"AASA,OAAO,cAAc,CAAC;AAGtB,MAAM,CAAC,OAAO,UAAU,UAAU,uCA+GjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/save-panel/index.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,SAAS,wCAqBhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/save-panel/index.tsx"],"names":[],"mappings":"AAMA,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":"AAeA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,EACxC,aAAa,GACb,EAAE;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B,QAwCA"}
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":"AAcA,OAAO,cAAc,CAAC;AAoBtB,MAAM,CAAC,OAAO,UAAU,OAAO,gCAY9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.tsx"],"names":[],"mappings":"AAOA,OAAO,cAAc,CAAC;AAoBtB,MAAM,CAAC,OAAO,UAAU,OAAO,gCAY9B"}
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import './style.scss';
5
2
  import './view-transitions.scss';
6
3
  export { init, initSinglePage } from './components/app';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,cAAc,CAAC;AACtB,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,yBAAyB,CAAC;AACjC,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":"AAIA,eAAO,MAAQ,IAAI,mDAAE,MAAM,iCAIzB,CAAC"}
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,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import type { MenuItem, Route } from './types';
5
2
  export declare function registerMenuItem(id: string, menuItem: MenuItem): {
6
3
  type: 'REGISTER_MENU_ITEM';
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAE/C,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,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,gBAAgB,CAAE,CAAC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAE/C,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,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,gBAAgB,CAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AASA,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
+ {"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,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import type { Action } from './actions';
5
2
  import type { State } from './types';
6
3
  export declare function reducer(state: State | undefined, action: Action): State;
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/store/reducer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC,wBAAgB,OAAO,CAAE,KAAK,EAAE,KAAK,YAAe,EAAE,MAAM,EAAE,MAAM,GAAI,KAAK,CAqC5E"}
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;AAQrC,wBAAgB,OAAO,CAAE,KAAK,EAAE,KAAK,YAAe,EAAE,MAAM,EAAE,MAAM,GAAI,KAAK,CAqC5E"}
@@ -1,6 +1,3 @@
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[];
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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"}
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"}
@@ -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:
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/store/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;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,M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;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;CACvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/boot",
3
- "version": "0.19.0",
3
+ "version": "0.20.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,29 @@
40
40
  "wpScriptModuleExports": "./build-module/index.mjs",
41
41
  "types": "build-types",
42
42
  "dependencies": {
43
- "@wordpress/a11y": "^4.52.0",
44
- "@wordpress/admin-ui": "^2.7.0",
45
- "@wordpress/base-styles": "^12.0.0",
46
- "@wordpress/commands": "^1.52.0",
47
- "@wordpress/components": "^38.0.0",
48
- "@wordpress/compose": "^8.5.0",
49
- "@wordpress/core-data": "^7.52.0",
50
- "@wordpress/data": "^10.52.0",
51
- "@wordpress/editor": "^14.52.0",
52
- "@wordpress/element": "^8.4.0",
53
- "@wordpress/html-entities": "^4.52.0",
54
- "@wordpress/i18n": "^6.25.0",
55
- "@wordpress/icons": "^15.3.0",
56
- "@wordpress/keyboard-shortcuts": "^5.52.0",
57
- "@wordpress/keycodes": "^4.52.0",
58
- "@wordpress/lazy-editor": "^1.18.0",
59
- "@wordpress/notices": "^5.52.0",
60
- "@wordpress/primitives": "^4.52.0",
61
- "@wordpress/private-apis": "^1.52.0",
62
- "@wordpress/route": "^0.18.0",
63
- "@wordpress/theme": "^1.1.0",
64
- "@wordpress/ui": "^0.19.0",
65
- "@wordpress/url": "^4.52.0",
43
+ "@wordpress/a11y": "^4.53.0",
44
+ "@wordpress/admin-ui": "^2.8.0",
45
+ "@wordpress/base-styles": "^12.1.0",
46
+ "@wordpress/commands": "^1.53.0",
47
+ "@wordpress/components": "^39.0.0",
48
+ "@wordpress/compose": "^8.6.0",
49
+ "@wordpress/core-data": "^7.53.0",
50
+ "@wordpress/data": "^10.53.0",
51
+ "@wordpress/editor": "^14.53.0",
52
+ "@wordpress/element": "^8.5.0",
53
+ "@wordpress/html-entities": "^4.53.0",
54
+ "@wordpress/i18n": "^6.26.0",
55
+ "@wordpress/icons": "^15.4.0",
56
+ "@wordpress/keyboard-shortcuts": "^5.53.0",
57
+ "@wordpress/keycodes": "^4.53.0",
58
+ "@wordpress/lazy-editor": "^1.19.0",
59
+ "@wordpress/notices": "^5.53.0",
60
+ "@wordpress/primitives": "^4.53.0",
61
+ "@wordpress/private-apis": "^1.53.0",
62
+ "@wordpress/route": "^0.19.0",
63
+ "@wordpress/theme": "^1.2.0",
64
+ "@wordpress/ui": "^0.20.0",
65
+ "@wordpress/url": "^4.53.0",
66
66
  "clsx": "^2.1.1"
67
67
  },
68
68
  "peerDependencies": {
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "7e8b17a983f9391d3ebc7717af2a1c9ed7efc7ab"
81
+ "gitHead": "989764d42ff93e33684aaf0b96a5b7f3d9bbff52"
82
82
  }
@@ -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';
@@ -1,11 +1,4 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import type { ComponentType } from 'react';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import { __ } from '@wordpress/i18n';
10
3
  import { useMemo } from '@wordpress/element';
11
4
  import { Page } from '@wordpress/admin-ui';
@@ -15,10 +8,6 @@ import {
15
8
  } from '@wordpress/route';
16
9
  import { resolveSelect } from '@wordpress/data';
17
10
  import { store as coreStore } from '@wordpress/core-data';
18
-
19
- /**
20
- * Internal dependencies
21
- */
22
11
  import Root from '../root';
23
12
  import type { Route, RouteConfig, RouteLoaderContext } from '../../store/types';
24
13
  import { unlock } from '../../lock-unlock';
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useEffect, useRef } from '@wordpress/element';
5
2
  import { useSelect } from '@wordpress/data';
6
3
  import { store as coreStore, type UnstableBase } from '@wordpress/core-data';
@@ -8,10 +5,6 @@ import { __, sprintf } from '@wordpress/i18n';
8
5
  import { speak } from '@wordpress/a11y';
9
6
  import { decodeEntities } from '@wordpress/html-entities';
10
7
  import { privateApis as routePrivateApis } from '@wordpress/route';
11
-
12
- /**
13
- * Internal dependencies
14
- */
15
8
  import { unlock } from '../../lock-unlock';
16
9
 
17
10
  const { useLocation, useMatches } = unlock( routePrivateApis );
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { Button } from '@wordpress/components';
5
2
  import { chevronLeft, chevronRight } from '@wordpress/icons';
6
3
  import { __, isRTL } from '@wordpress/i18n';
@@ -1,13 +1,6 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useState, useEffect } from '@wordpress/element';
5
2
  import { Spinner } from '@wordpress/components';
6
3
  import { useNavigate } from '@wordpress/route';
7
-
8
- /**
9
- * Internal dependencies
10
- */
11
4
  import type { CanvasData } from '../../store/types';
12
5
  import BootBackButton from './back-button';
13
6
 
@@ -1,11 +1,4 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useState, useEffect } from '@wordpress/element';
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
2
  import Canvas from '../canvas';
10
3
  import type { CanvasData } from '../../store/types';
11
4
 
@@ -1,25 +1,13 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import clsx from 'clsx';
5
2
  import type { ReactNode } from 'react';
6
-
7
- /**
8
- * WordPress dependencies
9
- */
10
3
  import {
11
4
  FlexBlock,
12
5
  __experimentalItem as Item,
13
- // @ts-ignore
14
6
  __experimentalHStack as HStack,
15
7
  Icon as WCIcon,
16
8
  } from '@wordpress/components';
17
9
  import { isRTL } from '@wordpress/i18n';
18
10
  import { chevronRightSmall, chevronLeftSmall } from '@wordpress/icons';
19
-
20
- /**
21
- * Internal dependencies
22
- */
23
11
  import { wrapIcon } from '../items';
24
12
  import type { IconType } from '../../../store/types';
25
13
 
@@ -1,16 +1,8 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import clsx from 'clsx';
5
2
  import type { ReactNode } from 'react';
6
-
7
- /**
8
- * WordPress dependencies
9
- */
10
3
  import {
11
4
  FlexBlock,
12
5
  __experimentalItem as Item,
13
- // @ts-ignore
14
6
  __experimentalHStack as HStack,
15
7
  Icon as WCIcon,
16
8
  __unstableMotion as motion,
@@ -19,10 +11,6 @@ import {
19
11
  import { chevronDownSmall } from '@wordpress/icons';
20
12
  import { useReducedMotion } from '@wordpress/compose';
21
13
  import { useSelect } from '@wordpress/data';
22
-
23
- /**
24
- * Internal dependencies
25
- */
26
14
  import { STORE_NAME } from '../../../store';
27
15
  import NavigationItem from '../navigation-item';
28
16
  import { wrapIcon } from '../items';
@@ -72,7 +60,7 @@ export default function DropdownItem( {
72
60
  }: DropdownItemProps ) {
73
61
  const menuItems: MenuItem[] = useSelect(
74
62
  ( select ) =>
75
- // @ts-ignore
63
+ // @ts-expect-error Store types are not available when selecting by store name.
76
64
  select( STORE_NAME ).getMenuItems(),
77
65
  []
78
66
  );
@@ -1,12 +1,5 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useState, useMemo, useRef } from '@wordpress/element';
5
2
  import { useSelect } from '@wordpress/data';
6
-
7
- /**
8
- * Internal dependencies
9
- */
10
3
  import { STORE_NAME } from '../../store';
11
4
  import NavigationItem from './navigation-item';
12
5
  import DrilldownItem from './drilldown-item';
@@ -24,7 +17,7 @@ function Navigation() {
24
17
  useSidebarParent();
25
18
  const menuItems = useSelect(
26
19
  ( select ) =>
27
- // @ts-ignore
20
+ // @ts-expect-error Store types are not available when selecting by store name.
28
21
  select( STORE_NAME ).getMenuItems() as MenuItem[],
29
22
  []
30
23
  );
@@ -1,13 +1,6 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { isValidElement } from '@wordpress/element';
5
2
  import { Dashicon, Icon as WCIcon } from '@wordpress/components';
6
3
  import { SVG } from '@wordpress/primitives';
7
-
8
- /**
9
- * Internal dependencies
10
- */
11
4
  import type { IconType } from '../../store/types';
12
5
 
13
6
  /**
@@ -1,22 +1,10 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import clsx from 'clsx';
5
2
  import type { ReactNode } from 'react';
6
-
7
- /**
8
- * WordPress dependencies
9
- */
10
3
  import {
11
4
  FlexBlock,
12
5
  __experimentalItem as Item,
13
- // @ts-ignore
14
6
  __experimentalHStack as HStack,
15
7
  } from '@wordpress/components';
16
-
17
- /**
18
- * Internal dependencies
19
- */
20
8
  import RouterLinkItem from '../router-link-item';
21
9
  import { wrapIcon } from '../items';
22
10
  import type { IconType } from '../../../store/types';
@@ -1,11 +1,4 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import type { ReactNode, RefObject } from 'react';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import {
10
3
  __experimentalHeading as Heading,
11
4
  __unstableMotion as motion,
@@ -16,10 +9,6 @@ import {
16
9
  import { isRTL, __ } from '@wordpress/i18n';
17
10
  import { chevronRight, chevronLeft } from '@wordpress/icons';
18
11
  import { useReducedMotion } from '@wordpress/compose';
19
-
20
- /**
21
- * Internal dependencies
22
- */
23
12
  import './style.scss';
24
13
 
25
14
  const ANIMATION_DURATION = 0.3;
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import type { MenuItem } from '../../store/types';
5
2
 
6
3
  /**
@@ -1,18 +1,7 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import type { ForwardedRef } from 'react';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import { forwardRef } from '@wordpress/element';
10
3
  import { __experimentalItem as Item } from '@wordpress/components';
11
4
  import { privateApis as routePrivateApis } from '@wordpress/route';
12
-
13
- /**
14
- * Internal dependencies
15
- */
16
5
  import { unlock } from '../../lock-unlock';
17
6
 
18
7
  const { createLink } = unlock( routePrivateApis );
@@ -1,20 +1,8 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { privateApis as routePrivateApis } from '@wordpress/route';
5
2
  import { useEffect, useState } from '@wordpress/element';
6
3
  import { useSelect } from '@wordpress/data';
7
-
8
- /**
9
- * Internal dependencies
10
- */
11
4
  import { unlock } from '../../lock-unlock';
12
-
13
5
  const { useRouter, useMatches } = unlock( routePrivateApis );
14
-
15
- /**
16
- * Internal dependencies
17
- */
18
6
  import { STORE_NAME } from '../../store';
19
7
  import {
20
8
  findDrilldownParent,
@@ -37,7 +25,7 @@ export function useSidebarParent() {
37
25
  const router = useRouter();
38
26
  const menuItems = useSelect(
39
27
  ( select ) =>
40
- // @ts-ignore
28
+ // @ts-expect-error Store types are not available when selecting by store name.
41
29
  select( STORE_NAME ).getMenuItems(),
42
30
  []
43
31
  );
@@ -1,11 +1,4 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import clsx from 'clsx';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import { privateApis as routePrivateApis } from '@wordpress/route';
10
3
  import { SnackbarNotices } from '@wordpress/notices';
11
4
  import { useViewportMatch, useReducedMotion } from '@wordpress/compose';
@@ -21,10 +14,6 @@ import { __ } from '@wordpress/i18n';
21
14
  import { Page, getAdminThemeColors } from '@wordpress/admin-ui';
22
15
  import { Tooltip } from '@wordpress/ui';
23
16
  import { ThemeProvider } from '@wordpress/theme';
24
-
25
- /**
26
- * Internal dependencies
27
- */
28
17
  import Sidebar from '../sidebar';
29
18
  import SavePanel from '../save-panel';
30
19
  import CanvasRenderer from '../canvas-renderer';
@@ -1,21 +1,10 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import clsx from 'clsx';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import { privateApis as routePrivateApis } from '@wordpress/route';
10
3
  import { SnackbarNotices } from '@wordpress/notices';
11
4
  import { SlotFillProvider } from '@wordpress/components';
12
5
  import { useMemo } from '@wordpress/element';
13
6
  import { getAdminThemeColors } from '@wordpress/admin-ui';
14
7
  import { ThemeProvider } from '@wordpress/theme';
15
-
16
- /**
17
- * Internal dependencies
18
- */
19
8
  import SavePanel from '../save-panel';
20
9
  import CanvasRenderer from '../canvas-renderer';
21
10
  import { unlock } from '../../lock-unlock';
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useRef } from '@wordpress/element';
5
2
  import { useIsomorphicLayoutEffect } from '@wordpress/compose';
6
3
 
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useEffect, useState } from '@wordpress/element';
5
2
  import { useSelect } from '@wordpress/data';
6
3
  import { _n, __, sprintf } from '@wordpress/i18n';
@@ -10,10 +7,6 @@ import { check } from '@wordpress/icons';
10
7
  import { EntitiesSavedStates } from '@wordpress/editor';
11
8
  import { Button, Modal } from '@wordpress/components';
12
9
  import { Tooltip } from '@wordpress/ui';
13
-
14
- /**
15
- * Internal dependencies
16
- */
17
10
  import './style.scss';
18
11
  import useSaveShortcut from '../save-panel/use-save-shortcut';
19
12
 
@@ -1,14 +1,7 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useState } from '@wordpress/element';
5
2
  import { Modal } from '@wordpress/components';
6
3
  import { EntitiesSavedStates } from '@wordpress/editor';
7
4
  import { __ } from '@wordpress/i18n';
8
-
9
- /**
10
- * Internal dependencies
11
- */
12
5
  import useSaveShortcut from './use-save-shortcut';
13
6
 
14
7
  export default function SavePanel() {
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { useEffect } from '@wordpress/element';
5
2
  import {
6
3
  useShortcut,
@@ -1,14 +1,7 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { Button } from '@wordpress/components';
5
2
  import { useSelect } from '@wordpress/data';
6
3
  import { __, isRTL } from '@wordpress/i18n';
7
4
  import { chevronLeft, chevronRight } from '@wordpress/icons';
8
-
9
- /**
10
- * Internal dependencies
11
- */
12
5
  import Navigation from '../navigation';
13
6
  import SaveButton from '../save-button';
14
7
  import { store as bootStore } from '../../store';
package/src/index.tsx CHANGED
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import './style.scss';
5
2
  import './view-transitions.scss';
6
3
  export { init, initSinglePage } from './components/app';
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';
5
2
  export const { lock, unlock } =
6
3
  __dangerousOptInToUnstableAPIsOnlyForCoreModules(
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import type { MenuItem, Route } from './types';
5
2
 
6
3
  export function registerMenuItem( id: string, menuItem: MenuItem ) {
@@ -1,11 +1,4 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
1
  import { createReduxStore, register } from '@wordpress/data';
5
-
6
- /**
7
- * Internal dependencies
8
- */
9
2
  import { reducer } from './reducer';
10
3
  import * as actions from './actions';
11
4
  import * as selectors from './selectors';
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import type { Action } from './actions';
5
2
  import type { State } from './types';
6
3
 
@@ -1,6 +1,3 @@
1
- /**
2
- * Internal dependencies
3
- */
4
1
  import type { State } from './types';
5
2
 
6
3
  export function getMenuItems( state: State ) {