@wordpress/boot 0.24.0 → 0.26.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 (75) hide show
  1. package/build-module/components/app/index.mjs +29 -53
  2. package/build-module/components/app/index.mjs.map +1 -7
  3. package/build-module/components/app/router.mjs +238 -214
  4. package/build-module/components/app/router.mjs.map +1 -7
  5. package/build-module/components/app/use-route-title.mjs +35 -42
  6. package/build-module/components/app/use-route-title.mjs.map +1 -7
  7. package/build-module/components/canvas/back-button.mjs +21 -20
  8. package/build-module/components/canvas/back-button.mjs.map +1 -7
  9. package/build-module/components/canvas/index.mjs +103 -129
  10. package/build-module/components/canvas/index.mjs.map +1 -7
  11. package/build-module/components/canvas/site-preview.mjs +36 -43
  12. package/build-module/components/canvas/site-preview.mjs.map +1 -7
  13. package/build-module/components/canvas/use-navigate-to-entity-record.mjs +109 -113
  14. package/build-module/components/canvas/use-navigate-to-entity-record.mjs.map +1 -7
  15. package/build-module/components/canvas/viewport.mjs +25 -13
  16. package/build-module/components/canvas/viewport.mjs.map +1 -7
  17. package/build-module/components/canvas-renderer/index.mjs +40 -32
  18. package/build-module/components/canvas-renderer/index.mjs.map +1 -7
  19. package/build-module/components/error-boundary/index.mjs +160 -108
  20. package/build-module/components/error-boundary/index.mjs.map +1 -7
  21. package/build-module/components/navigation/drilldown-item/index.mjs +124 -127
  22. package/build-module/components/navigation/drilldown-item/index.mjs.map +1 -7
  23. package/build-module/components/navigation/dropdown-item/index.mjs +156 -173
  24. package/build-module/components/navigation/dropdown-item/index.mjs.map +1 -7
  25. package/build-module/components/navigation/index.mjs +55 -90
  26. package/build-module/components/navigation/index.mjs.map +1 -7
  27. package/build-module/components/navigation/items.mjs +51 -53
  28. package/build-module/components/navigation/items.mjs.map +1 -7
  29. package/build-module/components/navigation/navigation-item/index.mjs +120 -114
  30. package/build-module/components/navigation/navigation-item/index.mjs.map +1 -7
  31. package/build-module/components/navigation/navigation-screen/index.mjs +192 -185
  32. package/build-module/components/navigation/navigation-screen/index.mjs.map +1 -7
  33. package/build-module/components/navigation/path-matching.mjs +74 -73
  34. package/build-module/components/navigation/path-matching.mjs.map +1 -7
  35. package/build-module/components/navigation/router-link-item.mjs +13 -11
  36. package/build-module/components/navigation/router-link-item.mjs.map +1 -7
  37. package/build-module/components/navigation/use-sidebar-parent.mjs +37 -48
  38. package/build-module/components/navigation/use-sidebar-parent.mjs.map +1 -7
  39. package/build-module/components/plugin-area/index.mjs +20 -24
  40. package/build-module/components/plugin-area/index.mjs.map +1 -7
  41. package/build-module/components/root/index.mjs +227 -242
  42. package/build-module/components/root/index.mjs.map +1 -7
  43. package/build-module/components/root/single-page.mjs +174 -148
  44. package/build-module/components/root/single-page.mjs.map +1 -7
  45. package/build-module/components/root/use-sync-body-background.mjs +28 -22
  46. package/build-module/components/root/use-sync-body-background.mjs.map +1 -7
  47. package/build-module/components/save-button/index.mjs +170 -214
  48. package/build-module/components/save-button/index.mjs.map +1 -7
  49. package/build-module/components/save-panel/index.mjs +110 -106
  50. package/build-module/components/save-panel/index.mjs.map +1 -7
  51. package/build-module/components/save-panel/use-save-shortcut.mjs +42 -51
  52. package/build-module/components/save-panel/use-save-shortcut.mjs.map +1 -7
  53. package/build-module/components/sidebar/index.mjs +126 -104
  54. package/build-module/components/sidebar/index.mjs.map +1 -7
  55. package/build-module/index.mjs +1 -7
  56. package/build-module/lock-unlock.mjs +5 -10
  57. package/build-module/lock-unlock.mjs.map +1 -7
  58. package/build-module/store/actions.mjs +34 -31
  59. package/build-module/store/actions.mjs.map +1 -7
  60. package/build-module/store/index.mjs +9 -11
  61. package/build-module/store/index.mjs.map +1 -7
  62. package/build-module/store/reducer.mjs +48 -55
  63. package/build-module/store/reducer.mjs.map +1 -7
  64. package/build-module/store/selectors.mjs +21 -16
  65. package/build-module/store/selectors.mjs.map +1 -7
  66. package/build-module/store/types.mjs +0 -1
  67. package/build-types/components/error-boundary/index.d.ts.map +1 -1
  68. package/build-types/store/types.d.ts +1 -1
  69. package/package.json +30 -31
  70. package/src/components/canvas/index.tsx +2 -2
  71. package/src/components/error-boundary/index.tsx +50 -4
  72. package/src/store/types.ts +1 -1
  73. package/CHANGELOG.md +0 -81
  74. package/build-module/index.mjs.map +0 -7
  75. package/build-module/store/types.mjs.map +0 -7
@@ -1,25 +1,30 @@
1
1
  // packages/boot/src/store/selectors.ts
2
2
  function getMenuItems(state) {
3
- return Object.values(state.menuItems);
3
+ return Object.values(state.menuItems);
4
4
  }
5
5
  function getRoutes(state) {
6
- return state.routes;
6
+ return state.routes;
7
7
  }
8
8
  function getDashboardLink(state) {
9
- return state.dashboardLink;
9
+ return state.dashboardLink;
10
10
  }
11
+ /**
12
+ * Returns the path an entity is edited or listed at.
13
+ *
14
+ * Falls back to the links registered for `default`, so a post type with no
15
+ * entry of its own still resolves.
16
+ *
17
+ * @param state Store state.
18
+ * @param postType Post type to resolve for.
19
+ * @param postId Entity to edit. Omit for the list of the post type.
20
+ * @return The path, or undefined when nothing is registered for it.
21
+ */
11
22
  function getEntityLink(state, postType, postId) {
12
- const links = state.entityLinks[postType] ?? state.entityLinks.default;
13
- const path = postId === void 0 ? links?.list : links?.edit;
14
- if (!path) {
15
- return void 0;
16
- }
17
- return path.replace("{type}", encodeURIComponent(postType)).replace("{id}", encodeURIComponent(postId ?? ""));
23
+ const links = state.entityLinks[postType] ?? state.entityLinks.default;
24
+ const path = postId === void 0 ? links?.list : links?.edit;
25
+ if (!path) return;
26
+ return path.replace("{type}", encodeURIComponent(postType)).replace("{id}", encodeURIComponent(postId ?? ""));
18
27
  }
19
- export {
20
- getDashboardLink,
21
- getEntityLink,
22
- getMenuItems,
23
- getRoutes
24
- };
25
- //# sourceMappingURL=selectors.mjs.map
28
+ export { getDashboardLink, getEntityLink, getMenuItems, getRoutes };
29
+
30
+ //# sourceMappingURL=selectors.mjs.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/store/selectors.ts"],
4
- "sourcesContent": ["import type { State } from './types';\n\nexport function getMenuItems( state: State ) {\n\treturn Object.values( state.menuItems );\n}\n\nexport function getRoutes( state: State ) {\n\treturn state.routes;\n}\n\nexport function getDashboardLink( state: State ) {\n\treturn state.dashboardLink;\n}\n\n/**\n * Returns the path an entity is edited or listed at.\n *\n * Falls back to the links registered for `default`, so a post type with no\n * entry of its own still resolves.\n *\n * @param state Store state.\n * @param postType Post type to resolve for.\n * @param postId Entity to edit. Omit for the list of the post type.\n * @return The path, or undefined when nothing is registered for it.\n */\nexport function getEntityLink(\n\tstate: State,\n\tpostType: string,\n\tpostId?: string | number\n) {\n\tconst links = state.entityLinks[ postType ] ?? state.entityLinks.default;\n\tconst path = postId === undefined ? links?.list : links?.edit;\n\n\tif ( ! path ) {\n\t\treturn undefined;\n\t}\n\n\treturn path\n\t\t.replace( '{type}', encodeURIComponent( postType ) )\n\t\t.replace( '{id}', encodeURIComponent( postId ?? '' ) );\n}\n"],
5
- "mappings": ";AAEO,SAAS,aAAc,OAAe;AAC5C,SAAO,OAAO,OAAQ,MAAM,SAAU;AACvC;AAEO,SAAS,UAAW,OAAe;AACzC,SAAO,MAAM;AACd;AAEO,SAAS,iBAAkB,OAAe;AAChD,SAAO,MAAM;AACd;AAaO,SAAS,cACf,OACA,UACA,QACC;AACD,QAAM,QAAQ,MAAM,YAAa,QAAS,KAAK,MAAM,YAAY;AACjE,QAAM,OAAO,WAAW,SAAY,OAAO,OAAO,OAAO;AAEzD,MAAK,CAAE,MAAO;AACb,WAAO;AAAA,EACR;AAEA,SAAO,KACL,QAAS,UAAU,mBAAoB,QAAS,CAAE,EAClD,QAAS,QAAQ,mBAAoB,UAAU,EAAG,CAAE;AACvD;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"selectors.mjs","names":[],"sources":["../../src/store/selectors.ts"],"sourcesContent":["import type { State } from './types';\n\nexport function getMenuItems( state: State ) {\n\treturn Object.values( state.menuItems );\n}\n\nexport function getRoutes( state: State ) {\n\treturn state.routes;\n}\n\nexport function getDashboardLink( state: State ) {\n\treturn state.dashboardLink;\n}\n\n/**\n * Returns the path an entity is edited or listed at.\n *\n * Falls back to the links registered for `default`, so a post type with no\n * entry of its own still resolves.\n *\n * @param state Store state.\n * @param postType Post type to resolve for.\n * @param postId Entity to edit. Omit for the list of the post type.\n * @return The path, or undefined when nothing is registered for it.\n */\nexport function getEntityLink(\n\tstate: State,\n\tpostType: string,\n\tpostId?: string | number\n) {\n\tconst links = state.entityLinks[ postType ] ?? state.entityLinks.default;\n\tconst path = postId === undefined ? links?.list : links?.edit;\n\n\tif ( ! path ) {\n\t\treturn undefined;\n\t}\n\n\treturn path\n\t\t.replace( '{type}', encodeURIComponent( postType ) )\n\t\t.replace( '{id}', encodeURIComponent( postId ?? '' ) );\n}\n"],"mappings":";AAEA,SAAgB,aAAc,OAAe;CAC5C,OAAO,OAAO,OAAQ,MAAM,SAAU;AACvC;AAEA,SAAgB,UAAW,OAAe;CACzC,OAAO,MAAM;AACd;AAEA,SAAgB,iBAAkB,OAAe;CAChD,OAAO,MAAM;AACd;;;;;;;;;;;;AAaA,SAAgB,cACf,OACA,UACA,QACC;CACD,MAAM,QAAQ,MAAM,YAAa,aAAc,MAAM,YAAY;CACjE,MAAM,OAAO,WAAW,KAAA,IAAY,OAAO,OAAO,OAAO;CAEzD,IAAK,CAAE,MACN;CAGD,OAAO,KACL,QAAS,UAAU,mBAAoB,QAAS,CAAE,CAAC,CACnD,QAAS,QAAQ,mBAAoB,UAAU,EAAG,CAAE;AACvD"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.mjs.map
@@ -1 +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,gUAyBL;CACD"}
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;AAEvC,OAAO,EAAE,SAAS,EAAuB,MAAM,oBAAoB,CAAC;AAQpE,UAAU,KAAK;IACd,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,UAAU,KAAK;IACd,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACpB;AAyDD;;;;;;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,gUAyBL;CACD"}
@@ -3,7 +3,7 @@ import type { ReactNode, ComponentType } from 'react';
3
3
  * Icon type supporting multiple formats:
4
4
  * - Dashicon strings (e.g., "dashicons-admin-generic")
5
5
  * - JSX elements
6
- * - SVG icons from @wordpress/icons
6
+ * - SVG icons from `@wordpress/icons`
7
7
  * - Data URLs for images
8
8
  */
9
9
  export type IconType = string | React.JSX.Element | ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/boot",
3
- "version": "0.24.0",
3
+ "version": "0.26.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",
@@ -19,14 +19,13 @@
19
19
  "url": "https://github.com/WordPress/gutenberg/issues"
20
20
  },
21
21
  "engines": {
22
- "node": ">=18.12.0"
22
+ "node": ">=22.13.0"
23
23
  },
24
24
  "files": [
25
25
  "src",
26
26
  "build-module",
27
27
  "build-style",
28
- "build-types",
29
- "*.md"
28
+ "build-types"
30
29
  ],
31
30
  "module": "build-module/index.mjs",
32
31
  "exports": {
@@ -39,32 +38,32 @@
39
38
  "wpScriptModuleExports": "./build-module/index.mjs",
40
39
  "types": "build-types",
41
40
  "dependencies": {
42
- "@wordpress/a11y": "^4.57.0",
43
- "@wordpress/admin-ui": "^2.12.0",
44
- "@wordpress/base-styles": "^13.3.0",
45
- "@wordpress/components": "^42.0.0",
46
- "@wordpress/compose": "^8.10.0",
47
- "@wordpress/core-data": "^8.2.0",
48
- "@wordpress/data": "^10.57.0",
49
- "@wordpress/dom": "^4.57.0",
50
- "@wordpress/editor": "^15.2.0",
51
- "@wordpress/element": "^9.0.0",
52
- "@wordpress/html-entities": "^4.57.0",
53
- "@wordpress/i18n": "^6.30.0",
54
- "@wordpress/icons": "^18.0.0",
55
- "@wordpress/keyboard-shortcuts": "^5.57.0",
56
- "@wordpress/keycodes": "^4.57.0",
57
- "@wordpress/lazy-editor": "^1.23.0",
58
- "@wordpress/notices": "^5.57.0",
59
- "@wordpress/plugins": "^7.57.0",
60
- "@wordpress/primitives": "^4.57.0",
61
- "@wordpress/private-apis": "^2.0.0",
62
- "@wordpress/react-inert-value": "^1.0.0",
63
- "@wordpress/route": "^0.23.0",
64
- "@wordpress/style-runtime": "^0.13.0",
65
- "@wordpress/theme": "^2.3.0",
66
- "@wordpress/ui": "^0.24.0",
67
- "@wordpress/url": "^4.57.0",
41
+ "@wordpress/a11y": "^5.1.0",
42
+ "@wordpress/admin-ui": "^3.1.0",
43
+ "@wordpress/base-styles": "^15.0.0",
44
+ "@wordpress/components": "^44.0.0",
45
+ "@wordpress/compose": "^9.1.0",
46
+ "@wordpress/core-data": "^9.1.0",
47
+ "@wordpress/data": "^11.1.0",
48
+ "@wordpress/dom": "^5.1.0",
49
+ "@wordpress/editor": "^16.1.0",
50
+ "@wordpress/element": "^10.1.0",
51
+ "@wordpress/html-entities": "^5.1.0",
52
+ "@wordpress/i18n": "^7.1.0",
53
+ "@wordpress/icons": "^20.0.0",
54
+ "@wordpress/keyboard-shortcuts": "^6.1.0",
55
+ "@wordpress/keycodes": "^5.1.0",
56
+ "@wordpress/lazy-editor": "^2.1.0",
57
+ "@wordpress/notices": "^6.1.0",
58
+ "@wordpress/plugins": "^8.1.0",
59
+ "@wordpress/primitives": "^5.1.0",
60
+ "@wordpress/private-apis": "^3.1.0",
61
+ "@wordpress/react-inert-value": "^2.1.0",
62
+ "@wordpress/route": "^0.25.0",
63
+ "@wordpress/style-runtime": "^0.15.0",
64
+ "@wordpress/theme": "^4.0.0",
65
+ "@wordpress/ui": "^0.26.0",
66
+ "@wordpress/url": "^5.1.0",
68
67
  "clsx": "^2.1.1"
69
68
  },
70
69
  "peerDependencies": {
@@ -80,5 +79,5 @@
80
79
  "publishConfig": {
81
80
  "access": "public"
82
81
  },
83
- "gitHead": "12441e2520c78b2254a792a8cba40c34110be060"
82
+ "gitHead": "9b70363b9f93cff0583a1f3153738d383cf5a49e"
84
83
  }
@@ -1,5 +1,5 @@
1
1
  import { useState, useEffect, useMemo } from '@wordpress/element';
2
- import { Spinner } from '@wordpress/components';
2
+ import { Spinner as WCSpinner } from '@wordpress/components';
3
3
  import { useNavigate, useSearch } from '@wordpress/route';
4
4
  import { __ } from '@wordpress/i18n';
5
5
  import { inertValue } from '@wordpress/react-inert-value';
@@ -140,7 +140,7 @@ export default function Canvas( { canvas }: CanvasProps ) {
140
140
  padding: '2rem',
141
141
  } }
142
142
  >
143
- <Spinner />
143
+ <WCSpinner />
144
144
  </div>
145
145
  );
146
146
  }
@@ -1,10 +1,11 @@
1
1
  import type { ReactNode } from 'react';
2
- import { Component } from '@wordpress/element';
2
+ import { speak } from '@wordpress/a11y';
3
+ import { Component, useEffect, useState } from '@wordpress/element';
3
4
  import { __ } from '@wordpress/i18n';
4
5
  import { Button } from '@wordpress/components';
5
6
  import { EmptyState } from '@wordpress/ui';
6
7
  import { useCopyToClipboard } from '@wordpress/compose';
7
- import { caution } from '@wordpress/icons';
8
+ import { caution, check, copy, error as errorIcon } from '@wordpress/icons';
8
9
  import styles from './style.module.scss';
9
10
 
10
11
  interface Props {
@@ -15,11 +16,56 @@ interface State {
15
16
  error: Error | null;
16
17
  }
17
18
 
19
+ const COPY_FEEDBACK_TIMEOUT = 2000;
20
+
21
+ type CopyResult = 'idle' | 'copied' | 'error';
22
+
23
+ const RESULT_ICON = {
24
+ idle: copy,
25
+ copied: check,
26
+ error: errorIcon,
27
+ };
28
+
18
29
  function CopyErrorButton( { error }: { error: Error } ) {
19
- const ref = useCopyToClipboard( () => error.stack ?? String( error ) );
30
+ // Bump the id on every result so a repeat of the same outcome restarts
31
+ // the time the icon stays visible.
32
+ const [ feedback, setFeedback ] = useState< {
33
+ result: CopyResult;
34
+ id: number;
35
+ } >( { result: 'idle', id: 0 } );
36
+
37
+ useEffect( () => {
38
+ if ( feedback.result === 'idle' ) {
39
+ return;
40
+ }
41
+ const timeoutId = setTimeout(
42
+ () => setFeedback( { result: 'idle', id: 0 } ),
43
+ COPY_FEEDBACK_TIMEOUT
44
+ );
45
+ return () => clearTimeout( timeoutId );
46
+ }, [ feedback ] );
47
+
48
+ function report( result: Exclude< CopyResult, 'idle' >, message: string ) {
49
+ setFeedback( ( current ) => ( {
50
+ result,
51
+ id: current.id + 1,
52
+ } ) );
53
+ speak( message );
54
+ }
55
+
56
+ const ref = useCopyToClipboard(
57
+ () => error.stack ?? String( error ),
58
+ () => report( 'copied', __( 'Copied to clipboard' ) ),
59
+ () => report( 'error', __( "Couldn't copy to clipboard." ) )
60
+ );
20
61
 
21
62
  return (
22
- <Button __next40pxDefaultSize variant="secondary" ref={ ref }>
63
+ <Button
64
+ __next40pxDefaultSize
65
+ variant="secondary"
66
+ ref={ ref }
67
+ icon={ RESULT_ICON[ feedback.result ] }
68
+ >
23
69
  { __( 'Copy error' ) }
24
70
  </Button>
25
71
  );
@@ -4,7 +4,7 @@ import type { ReactNode, ComponentType } from 'react';
4
4
  * Icon type supporting multiple formats:
5
5
  * - Dashicon strings (e.g., "dashicons-admin-generic")
6
6
  * - JSX elements
7
- * - SVG icons from @wordpress/icons
7
+ * - SVG icons from `@wordpress/icons`
8
8
  * - Data URLs for images
9
9
  */
10
10
  export type IconType = string | React.JSX.Element | ReactNode;
package/CHANGELOG.md DELETED
@@ -1,81 +0,0 @@
1
- <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->
2
-
3
- ## Unreleased
4
-
5
- ## 0.24.0 (2026-10-07)
6
-
7
- ### Enhancements
8
-
9
- - Use the `inertValue` helper to set `inert` attributes, for better React 18/19 compatibility ([#83871](https://github.com/WordPress/gutenberg/pull/83871)).
10
-
11
- ## 0.23.0 (2026-09-23)
12
-
13
- ## 0.22.0 (2026-09-10)
14
-
15
- ### Internal
16
-
17
- - Remove unused dependency `@wordpress/commands` ([#82103](https://github.com/WordPress/gutenberg/pull/82103)).
18
-
19
- ## 0.21.0 (2026-08-26)
20
-
21
- ### Bug Fixes
22
-
23
- - Seed content-surface `ThemeProvider` backgrounds with `#fcfcfc` instead of `#ffffff`, matching the design system default and preserving room for stronger and weaker neutral surface tokens ([#81646](https://github.com/WordPress/gutenberg/pull/81646)).
24
- - Restore bottom-centered snackbar notices after the CSS Modules migration ([#81995](https://github.com/WordPress/gutenberg/pull/81995)).
25
- - Mount the plugins registered with `registerPlugin`, so the sidebars, panels and menu items they fill render ([#81754](https://github.com/WordPress/gutenberg/pull/81754)).
26
- - Canvas: Show the site's front end where a route names no entity and the theme has no block templates to resolve one from, instead of an editor with nothing open. Was previously handled by the home route alone, leaving `/identity` broken on a classic theme ([#81749](https://github.com/WordPress/gutenberg/pull/81749)).
27
- - Canvas: Open an entity at the width its `viewport` param asks for through the editor provider, so the width comes from the theme's breakpoints rather than the defaults ([#81750](https://github.com/WordPress/gutenberg/pull/81750)).
28
- - Canvas: Stop writing the current width into the `viewport` search param when leaving an entity. The param says where an entity opens; a width set from the device preview is view state and no longer follows the user between entities ([#81750](https://github.com/WordPress/gutenberg/pull/81750)).
29
- - Canvas: Do not offer to edit a trashed entity from its preview ([#81632](https://github.com/WordPress/gutenberg/pull/81632)).
30
- - Translate the click-to-edit label on a previewed canvas, and name the action rather than the gesture ([#81620](https://github.com/WordPress/gutenberg/pull/81620)).
31
-
32
- ### Enhancements
33
-
34
- - Save button: Use the shared UI keyboard shortcut utilities for its tooltip and accessibility metadata. ([#81826](https://github.com/WordPress/gutenberg/pull/81826))
35
- - Contain a failure to the surface it happened in, so a stage, inspector or canvas that throws leaves the rest of the screen working ([#81622](https://github.com/WordPress/gutenberg/pull/81622)).
36
- - Warn before leaving the page with unsaved changes ([#81625](https://github.com/WordPress/gutenberg/pull/81625)).
37
- - Open an entity at the width its `viewport` search param asks for, so a navigation overlay meant for mobile is edited at mobile width ([#81617](https://github.com/WordPress/gutenberg/pull/81617)).
38
- - Add a `stage` visibility function to a route's config, mirroring `inspector`, so a route can hide its stage and leave the canvas to fill the surfaces area.
39
- - Pass the editor's entity navigation callbacks from the canvas, so a template part or synced pattern can be opened from the block inspector and navigated back out of, restoring the block that was selected ([#81590](https://github.com/WordPress/gutenberg/pull/81590)).
40
- - Add `registerEntityLinks` and `getEntityLink`, so an application declares where each post type is listed and edited and the canvas resolves every link through them ([#81590](https://github.com/WordPress/gutenberg/pull/81590)).
41
- - Run the editor's post actions from the canvas, returning to the list when an entity is trashed or deleted and offering a way to reach a duplicate ([#81590](https://github.com/WordPress/gutenberg/pull/81590)).
42
-
43
- ### Breaking Changes
44
-
45
- - Remove `editLink` from a route's canvas data. Register the post type's `edit` path with `registerEntityLinks` instead ([#81590](https://github.com/WordPress/gutenberg/pull/81590)).
46
-
47
- ### Internal
48
-
49
- - Migrate Boot styles to CSS Modules and encapsulate its internal DOM classes ([#81756](https://github.com/WordPress/gutenberg/pull/81756)).
50
-
51
- ## 0.20.0 (2026-08-12)
52
-
53
- ### Bug Fixes
54
-
55
- - Adjust the specificity of the responsive image default in the layout container so components can size their own images ([#80845](https://github.com/WordPress/gutenberg/pull/80845)).
56
- - Ignore `updateMenuItem` for menu items that were never registered, instead of adding a partial entry that renders as an empty navigation row ([#81581](https://github.com/WordPress/gutenberg/pull/81581)).
57
-
58
- ## 0.19.0 (2026-07-29)
59
-
60
- ## 0.18.0 (2026-07-14)
61
-
62
- ### Enhancements
63
-
64
- - Use the emphasis font-weight token for UI emphasis ([#80093](https://github.com/WordPress/gutenberg/pull/80093)).
65
- - Widen React peer dependency ranges to `^18 || ^19` to support both React 18 and React 19 environments ([#80024](https://github.com/WordPress/gutenberg/pull/80024)).
66
-
67
- ## 0.17.0 (2026-07-01)
68
-
69
- ## 0.16.0 (2026-06-24)
70
-
71
- ### Enhancements
72
-
73
- - `initSinglePage` now accepts an `initModules` option and runs page init modules before rendering, matching `init`.
74
-
75
- ## 0.15.1 (2026-06-16)
76
-
77
- ## 0.15.0 (2026-06-10)
78
-
79
- ### Code Quality
80
-
81
- - Add missing `@types/react` dependency. [#78882](https://github.com/WordPress/gutenberg/pull/78882).
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/index.tsx"],
4
- "sourcesContent": ["export { init, initSinglePage } from './components/app';\nexport { store } from './store';\n"],
5
- "mappings": ";AAAA,SAAS,MAAM,sBAAsB;AACrC,SAAS,aAAa;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }