@wordpress/editor 14.43.0 → 14.43.1-next.v.202604091042.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 (103) hide show
  1. package/README.md +8 -0
  2. package/build/components/autocompleters/index.cjs +3 -0
  3. package/build/components/autocompleters/index.cjs.map +2 -2
  4. package/build/components/autocompleters/link.cjs +71 -0
  5. package/build/components/autocompleters/link.cjs.map +7 -0
  6. package/build/components/collaborators-overlay/cursor-dom-utils.cjs +1 -1
  7. package/build/components/collaborators-overlay/cursor-dom-utils.cjs.map +2 -2
  8. package/build/components/collaborators-overlay/timing-utils.cjs +1 -1
  9. package/build/components/collaborators-overlay/timing-utils.cjs.map +2 -2
  10. package/build/components/collaborators-overlay/use-render-cursors.cjs.map +2 -2
  11. package/build/components/error-boundary/index.cjs +1 -1
  12. package/build/components/error-boundary/index.cjs.map +2 -2
  13. package/build/components/post-revisions-preview/revisions-slider.cjs +9 -17
  14. package/build/components/post-revisions-preview/revisions-slider.cjs.map +2 -2
  15. package/build/components/post-title/index.cjs +2 -2
  16. package/build/components/post-title/index.cjs.map +2 -2
  17. package/build/components/styles-canvas/revisions.cjs +2 -2
  18. package/build/components/styles-canvas/revisions.cjs.map +1 -1
  19. package/build/components/sync-connection-error-modal/index.cjs +57 -74
  20. package/build/components/sync-connection-error-modal/index.cjs.map +3 -3
  21. package/build/components/sync-connection-error-modal/use-retry-countdown.cjs +32 -9
  22. package/build/components/sync-connection-error-modal/use-retry-countdown.cjs.map +2 -2
  23. package/build/hooks/default-autocompleters.cjs +1 -1
  24. package/build/hooks/default-autocompleters.cjs.map +2 -2
  25. package/build/store/private-actions.cjs +1 -6
  26. package/build/store/private-actions.cjs.map +2 -2
  27. package/build/store/private-selectors.cjs +4 -6
  28. package/build/store/private-selectors.cjs.map +2 -2
  29. package/build/store/reducer.cjs +1 -1
  30. package/build/store/reducer.cjs.map +2 -2
  31. package/build-module/components/autocompleters/index.mjs +4 -2
  32. package/build-module/components/autocompleters/index.mjs.map +2 -2
  33. package/build-module/components/autocompleters/link.mjs +40 -0
  34. package/build-module/components/autocompleters/link.mjs.map +7 -0
  35. package/build-module/components/collaborators-overlay/cursor-dom-utils.mjs +1 -1
  36. package/build-module/components/collaborators-overlay/cursor-dom-utils.mjs.map +2 -2
  37. package/build-module/components/collaborators-overlay/timing-utils.mjs +1 -1
  38. package/build-module/components/collaborators-overlay/timing-utils.mjs.map +2 -2
  39. package/build-module/components/collaborators-overlay/use-render-cursors.mjs.map +2 -2
  40. package/build-module/components/error-boundary/index.mjs +1 -1
  41. package/build-module/components/error-boundary/index.mjs.map +2 -2
  42. package/build-module/components/post-revisions-preview/revisions-slider.mjs +9 -17
  43. package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
  44. package/build-module/components/post-title/index.mjs +2 -2
  45. package/build-module/components/post-title/index.mjs.map +2 -2
  46. package/build-module/components/styles-canvas/revisions.mjs +2 -2
  47. package/build-module/components/styles-canvas/revisions.mjs.map +1 -1
  48. package/build-module/components/sync-connection-error-modal/index.mjs +57 -75
  49. package/build-module/components/sync-connection-error-modal/index.mjs.map +2 -2
  50. package/build-module/components/sync-connection-error-modal/use-retry-countdown.mjs +33 -10
  51. package/build-module/components/sync-connection-error-modal/use-retry-countdown.mjs.map +2 -2
  52. package/build-module/hooks/default-autocompleters.mjs +2 -2
  53. package/build-module/hooks/default-autocompleters.mjs.map +2 -2
  54. package/build-module/store/private-actions.mjs +1 -6
  55. package/build-module/store/private-actions.mjs.map +2 -2
  56. package/build-module/store/private-selectors.mjs +4 -6
  57. package/build-module/store/private-selectors.mjs.map +2 -2
  58. package/build-module/store/reducer.mjs +1 -1
  59. package/build-module/store/reducer.mjs.map +2 -2
  60. package/build-style/style-rtl.css +13 -2
  61. package/build-style/style.css +13 -2
  62. package/build-types/bindings/post-data.d.ts +3 -3
  63. package/build-types/bindings/term-data.d.ts +14 -14
  64. package/build-types/components/autocompleters/index.d.ts +1 -0
  65. package/build-types/components/autocompleters/link.d.ts +12 -0
  66. package/build-types/components/autocompleters/link.d.ts.map +1 -0
  67. package/build-types/components/collaborators-overlay/use-render-cursors.d.ts.map +1 -1
  68. package/build-types/components/keyboard-shortcut-help-modal/config.d.ts +11 -11
  69. package/build-types/components/post-actions/set-as-homepage.d.ts +1 -1
  70. package/build-types/components/post-actions/set-as-posts-page.d.ts +1 -1
  71. package/build-types/components/post-format/index.d.ts +10 -10
  72. package/build-types/components/post-locked-modal/index.d.ts +2 -2
  73. package/build-types/components/post-revisions-preview/revisions-slider.d.ts.map +1 -1
  74. package/build-types/components/post-status/index.d.ts +10 -10
  75. package/build-types/components/post-visibility/utils.d.ts +6 -6
  76. package/build-types/components/sync-connection-error-modal/index.d.ts +0 -14
  77. package/build-types/components/sync-connection-error-modal/index.d.ts.map +1 -1
  78. package/build-types/components/sync-connection-error-modal/use-retry-countdown.d.ts.map +1 -1
  79. package/build-types/store/private-actions.d.ts.map +1 -1
  80. package/build-types/store/private-selectors.d.ts.map +1 -1
  81. package/build-types/store/reducer.d.ts +10 -10
  82. package/build-types/store/reducer.d.ts.map +1 -1
  83. package/build-types/utils/pageTypeBadge.d.ts +1 -1
  84. package/build-types/utils/pageTypeBadge.d.ts.map +1 -1
  85. package/package.json +45 -45
  86. package/src/components/autocompleters/index.js +1 -0
  87. package/src/components/autocompleters/link.js +47 -0
  88. package/src/components/autocompleters/style.scss +6 -0
  89. package/src/components/collaborators-overlay/cursor-dom-utils.ts +1 -1
  90. package/src/components/collaborators-overlay/timing-utils.ts +1 -1
  91. package/src/components/collaborators-overlay/use-render-cursors.ts +4 -2
  92. package/src/components/error-boundary/index.js +1 -1
  93. package/src/components/error-boundary/index.native.js +1 -1
  94. package/src/components/post-revisions-preview/revisions-slider.js +9 -27
  95. package/src/components/post-title/index.js +3 -3
  96. package/src/components/styles-canvas/revisions.js +2 -2
  97. package/src/components/sync-connection-error-modal/index.tsx +127 -154
  98. package/src/components/sync-connection-error-modal/use-retry-countdown.ts +46 -10
  99. package/src/hooks/default-autocompleters.js +2 -2
  100. package/src/hooks/test/default-autocompleters.js +2 -2
  101. package/src/store/private-actions.js +1 -6
  102. package/src/store/private-selectors.js +4 -13
  103. package/src/store/reducer.js +9 -8
@@ -1,2 +1,3 @@
1
+ export { default as linkAutocompleter } from "./link";
1
2
  export { default as userAutocompleter } from "./user";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ name: string;
3
+ className: string;
4
+ triggerPrefix: string;
5
+ isDebounced: boolean;
6
+ options(filterValue: any): Promise<any>;
7
+ getOptionKeywords(item: any): any[];
8
+ getOptionLabel(item: any): import("react").JSX.Element;
9
+ getOptionCompletion(item: any): import("react").JSX.Element;
10
+ };
11
+ export default _default;
12
+ //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/autocompleters/link.js"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"use-render-cursors.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-render-cursors.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKxD,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,WAAW,UAAU;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC/B,cAAc,EAAE,WAAW,GAAG,IAAI,EAClC,mBAAmB,EAAE,QAAQ,GAAG,IAAI,EACpC,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,OAAO,EAAE,MAAM,GACb;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,yBAAyB,EAAE,MAAM,MAAM,IAAI,CAAA;CAAE,CAiIxE"}
1
+ {"version":3,"file":"use-render-cursors.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-overlay/use-render-cursors.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKxD,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,WAAW,UAAU;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC/B,cAAc,EAAE,WAAW,GAAG,IAAI,EAClC,mBAAmB,EAAE,QAAQ,GAAG,IAAI,EACpC,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,OAAO,EAAE,MAAM,GACb;IAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IAAC,yBAAyB,EAAE,MAAM,MAAM,IAAI,CAAA;CAAE,CAiIxE"}
@@ -3,56 +3,56 @@ export const textFormattingShortcuts: ({
3
3
  modifier: string;
4
4
  character: string;
5
5
  };
6
- description: import("@wordpress/i18n").TranslatableText<"Make the selected text bold.">;
6
+ description: import("@wordpress/i18n").TransformedText<"Make the selected text bold.">;
7
7
  aliases?: undefined;
8
8
  } | {
9
9
  keyCombination: {
10
10
  modifier: string;
11
11
  character: string;
12
12
  };
13
- description: import("@wordpress/i18n").TranslatableText<"Make the selected text italic.">;
13
+ description: import("@wordpress/i18n").TransformedText<"Make the selected text italic.">;
14
14
  aliases?: undefined;
15
15
  } | {
16
16
  keyCombination: {
17
17
  modifier: string;
18
18
  character: string;
19
19
  };
20
- description: import("@wordpress/i18n").TranslatableText<"Convert the selected text into a link.">;
20
+ description: import("@wordpress/i18n").TransformedText<"Convert the selected text into a link.">;
21
21
  aliases?: undefined;
22
22
  } | {
23
23
  keyCombination: {
24
24
  modifier: string;
25
25
  character: string;
26
26
  };
27
- description: import("@wordpress/i18n").TranslatableText<"Remove a link.">;
27
+ description: import("@wordpress/i18n").TransformedText<"Remove a link.">;
28
28
  aliases?: undefined;
29
29
  } | {
30
30
  keyCombination: {
31
31
  character: string;
32
32
  modifier?: undefined;
33
33
  };
34
- description: import("@wordpress/i18n").TranslatableText<"Insert a link to a post or page.">;
34
+ description: import("@wordpress/i18n").TransformedText<"Insert a link to a post or page.">;
35
35
  aliases?: undefined;
36
36
  } | {
37
37
  keyCombination: {
38
38
  modifier: string;
39
39
  character: string;
40
40
  };
41
- description: import("@wordpress/i18n").TranslatableText<"Underline the selected text.">;
41
+ description: import("@wordpress/i18n").TransformedText<"Underline the selected text.">;
42
42
  aliases?: undefined;
43
43
  } | {
44
44
  keyCombination: {
45
45
  modifier: string;
46
46
  character: string;
47
47
  };
48
- description: import("@wordpress/i18n").TranslatableText<"Strikethrough the selected text.">;
48
+ description: import("@wordpress/i18n").TransformedText<"Strikethrough the selected text.">;
49
49
  aliases?: undefined;
50
50
  } | {
51
51
  keyCombination: {
52
52
  modifier: string;
53
53
  character: string;
54
54
  };
55
- description: import("@wordpress/i18n").TranslatableText<"Make the selected text inline code.">;
55
+ description: import("@wordpress/i18n").TransformedText<"Make the selected text inline code.">;
56
56
  aliases?: undefined;
57
57
  } | {
58
58
  keyCombination: {
@@ -63,20 +63,20 @@ export const textFormattingShortcuts: ({
63
63
  modifier: string;
64
64
  character: string;
65
65
  }[];
66
- description: import("@wordpress/i18n").TranslatableText<"Convert the current heading to a paragraph.">;
66
+ description: import("@wordpress/i18n").TransformedText<"Convert the current heading to a paragraph.">;
67
67
  } | {
68
68
  keyCombination: {
69
69
  modifier: string;
70
70
  character: string;
71
71
  };
72
- description: import("@wordpress/i18n").TranslatableText<"Convert the current paragraph or heading to a heading of level 1 to 6.">;
72
+ description: import("@wordpress/i18n").TransformedText<"Convert the current paragraph or heading to a heading of level 1 to 6.">;
73
73
  aliases?: undefined;
74
74
  } | {
75
75
  keyCombination: {
76
76
  modifier: string;
77
77
  character: string;
78
78
  };
79
- description: import("@wordpress/i18n").TranslatableText<"Add non breaking space.">;
79
+ description: import("@wordpress/i18n").TransformedText<"Add non breaking space.">;
80
80
  aliases?: undefined;
81
81
  })[];
82
82
  //# sourceMappingURL=config.d.ts.map
@@ -1,6 +1,6 @@
1
1
  export function useSetAsHomepageAction(): {
2
2
  id: string;
3
- label: import("@wordpress/i18n").TranslatableText<"Set as homepage">;
3
+ label: import("@wordpress/i18n").TransformedText<"Set as homepage">;
4
4
  isEligible(post: any): boolean;
5
5
  modalFocusOnMount: string;
6
6
  RenderModal: ({ items, closeModal }: {
@@ -1,6 +1,6 @@
1
1
  export function useSetAsPostsPageAction(): {
2
2
  id: string;
3
- label: import("@wordpress/i18n").TranslatableText<"Set as posts page">;
3
+ label: import("@wordpress/i18n").TransformedText<"Set as posts page">;
4
4
  isEligible(post: any): boolean;
5
5
  modalFocusOnMount: string;
6
6
  RenderModal: ({ items, closeModal }: {
@@ -11,33 +11,33 @@
11
11
  export default function PostFormat(): React.ReactNode;
12
12
  export const POST_FORMATS: ({
13
13
  id: string;
14
- caption: import("@wordpress/i18n").TranslatableText<"Aside">;
14
+ caption: import("@wordpress/i18n").TransformedText<"Aside">;
15
15
  } | {
16
16
  id: string;
17
- caption: import("@wordpress/i18n").TranslatableText<"Audio">;
17
+ caption: import("@wordpress/i18n").TransformedText<"Audio">;
18
18
  } | {
19
19
  id: string;
20
- caption: import("@wordpress/i18n").TranslatableText<"Chat">;
20
+ caption: import("@wordpress/i18n").TransformedText<"Chat">;
21
21
  } | {
22
22
  id: string;
23
- caption: import("@wordpress/i18n").TranslatableText<"Gallery">;
23
+ caption: import("@wordpress/i18n").TransformedText<"Gallery">;
24
24
  } | {
25
25
  id: string;
26
- caption: import("@wordpress/i18n").TranslatableText<"Image">;
26
+ caption: import("@wordpress/i18n").TransformedText<"Image">;
27
27
  } | {
28
28
  id: string;
29
- caption: import("@wordpress/i18n").TranslatableText<"Link">;
29
+ caption: import("@wordpress/i18n").TransformedText<"Link">;
30
30
  } | {
31
31
  id: string;
32
- caption: import("@wordpress/i18n").TranslatableText<"Quote">;
32
+ caption: import("@wordpress/i18n").TransformedText<"Quote">;
33
33
  } | {
34
34
  id: string;
35
- caption: import("@wordpress/i18n").TranslatableText<"Standard">;
35
+ caption: import("@wordpress/i18n").TransformedText<"Standard">;
36
36
  } | {
37
37
  id: string;
38
- caption: import("@wordpress/i18n").TranslatableText<"Status">;
38
+ caption: import("@wordpress/i18n").TransformedText<"Status">;
39
39
  } | {
40
40
  id: string;
41
- caption: import("@wordpress/i18n").TranslatableText<"Video">;
41
+ caption: import("@wordpress/i18n").TransformedText<"Video">;
42
42
  })[];
43
43
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- declare const _default: {
1
+ declare const _default: typeof PostLockedModal | {
2
2
  new (props: {
3
3
  [key: string]: any;
4
4
  }): {
@@ -48,7 +48,7 @@ declare const _default: {
48
48
  UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
49
49
  }[];
50
50
  contextType?: import("react").Context<any> | undefined;
51
- } | typeof PostLockedModal;
51
+ };
52
52
  export default _default;
53
53
  declare function PostLockedModal(): import("react").JSX.Element | null;
54
54
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"revisions-slider.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-slider.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH,oCAFY,KAAK,CAAC,GAAG,CAAC,OAAO,CAkI5B"}
1
+ {"version":3,"file":"revisions-slider.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-slider.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH,oCAFY,KAAK,CAAC,GAAG,CAAC,OAAO,CAiH5B"}
@@ -1,23 +1,23 @@
1
1
  export default function PostStatus(): import("react").JSX.Element | null;
2
2
  export const STATUS_OPTIONS: ({
3
- label: import("@wordpress/i18n").TranslatableText<"Draft">;
3
+ label: import("@wordpress/i18n").TransformedText<"Draft">;
4
4
  value: string;
5
- description: import("@wordpress/i18n").TranslatableText<"Not ready to publish.">;
5
+ description: import("@wordpress/i18n").TransformedText<"Not ready to publish.">;
6
6
  } | {
7
- label: import("@wordpress/i18n").TranslatableText<"Pending">;
7
+ label: import("@wordpress/i18n").TransformedText<"Pending">;
8
8
  value: string;
9
- description: import("@wordpress/i18n").TranslatableText<"Waiting for review before publishing.">;
9
+ description: import("@wordpress/i18n").TransformedText<"Waiting for review before publishing.">;
10
10
  } | {
11
- label: import("@wordpress/i18n").TranslatableText<"Private">;
11
+ label: import("@wordpress/i18n").TransformedText<"Private">;
12
12
  value: string;
13
- description: import("@wordpress/i18n").TranslatableText<"Only visible to site admins and editors.">;
13
+ description: import("@wordpress/i18n").TransformedText<"Only visible to site admins and editors.">;
14
14
  } | {
15
- label: import("@wordpress/i18n").TranslatableText<"Scheduled">;
15
+ label: import("@wordpress/i18n").TransformedText<"Scheduled">;
16
16
  value: string;
17
- description: import("@wordpress/i18n").TranslatableText<"Publish automatically on a chosen date.">;
17
+ description: import("@wordpress/i18n").TransformedText<"Publish automatically on a chosen date.">;
18
18
  } | {
19
- label: import("@wordpress/i18n").TranslatableText<"Published">;
19
+ label: import("@wordpress/i18n").TransformedText<"Published">;
20
20
  value: string;
21
- description: import("@wordpress/i18n").TranslatableText<"Visible to everyone.">;
21
+ description: import("@wordpress/i18n").TransformedText<"Visible to everyone.">;
22
22
  })[];
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -1,14 +1,14 @@
1
1
  export const VISIBILITY_OPTIONS: ({
2
- label: import("@wordpress/i18n").TranslatableText<"Public">;
2
+ label: import("@wordpress/i18n").TransformedText<"Public">;
3
3
  value: string;
4
- description: import("@wordpress/i18n").TranslatableText<"Visible to everyone.">;
4
+ description: import("@wordpress/i18n").TransformedText<"Visible to everyone.">;
5
5
  } | {
6
- label: import("@wordpress/i18n").TranslatableText<"Private">;
6
+ label: import("@wordpress/i18n").TransformedText<"Private">;
7
7
  value: string;
8
- description: import("@wordpress/i18n").TranslatableText<"Only visible to site admins and editors.">;
8
+ description: import("@wordpress/i18n").TransformedText<"Only visible to site admins and editors.">;
9
9
  } | {
10
- label: import("@wordpress/i18n").TranslatableText<"Password protected">;
10
+ label: import("@wordpress/i18n").TransformedText<"Password protected">;
11
11
  value: string;
12
- description: import("@wordpress/i18n").TranslatableText<"Only visible to those who know the password.">;
12
+ description: import("@wordpress/i18n").TransformedText<"Only visible to those who know the password.">;
13
13
  })[];
14
14
  //# sourceMappingURL=utils.d.ts.map
@@ -1,17 +1,3 @@
1
- import { type ConnectionError } from '@wordpress/core-data';
2
- export interface SyncConnectionErrorModalProps {
3
- description: string;
4
- error?: ConnectionError;
5
- manualRetry?: () => void;
6
- postType?: {
7
- slug?: string;
8
- labels?: {
9
- name?: string;
10
- };
11
- } | null;
12
- secondsRemainingUntilAutoRetry?: number;
13
- title: string;
14
- }
15
1
  /**
16
2
  * Sync connection modal that displays when any entity reports a disconnection.
17
3
  * Uses BlockCanvasCover.Fill to render in the block canvas.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sync-connection-error-modal/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAGN,KAAK,eAAe,EACpB,MAAM,sBAAsB,CAAC;AAgC9B,MAAM,WAAW,6BAA6B;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IAChE,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;CACd;AA+HD;;;;;GAKG;AACH,wBAAgB,wBAAwB,uCAiFvC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sync-connection-error-modal/index.tsx"],"names":[],"mappings":"AAsCA;;;;;GAKG;AACH,wBAAgB,wBAAwB,uCAiMvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-retry-countdown.d.ts","sourceRoot":"","sources":["../../../src/components/sync-connection-error-modal/use-retry-countdown.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,UAAU,uBAAuB;IAChC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,iBAAiB,CAChC,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,GACxC,uBAAuB,CA2CzB"}
1
+ {"version":3,"file":"use-retry-countdown.d.ts","sourceRoot":"","sources":["../../../src/components/sync-connection-error-modal/use-retry-countdown.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,UAAU,uBAAuB;IAChC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,iBAAiB,CAChC,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,GACxC,uBAAuB,CA+EzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;AA4fD;;;;;GAKG;AACH,oCAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;GAKG;AACH,uCAHW,OAAO,GACN,MAAM,CAOjB;AAED;;;;GAIG;AACH,yCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GAAC,IAAI,GACV,MAAM,CAOjB;AAED;;;;;GAKG;AACH,8CAHW,OAAO,GACN,MAAM,CAOjB;AAyFD;;;;;;;GAOG;AACH,mCALW,SAAS,GAAC,MAAM,GAAC,KAAK,YAE9B;IAAyC,KAAK;CAC9C,GAAS,MAAM,CAQjB;;AAvqBM,yCAFK,MAAM,OAAA,IAIT;;;;CAA8B,kBAiCrC;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAgBb;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAcb;AAYK,iHANJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;IACL,oBAAoB;CACjD,IASE;;CAAY,UAoGb;AAUK,yCALI,MAAM,kBAEd;IAA0B,SAAS;CAErC,IAGQ;;CAAY,mBA0HnB;AAOK,gDAEE;;CAAY,mBAwHnB;AAOK,8CAFI,MAAM,IAId;;;CAAoB,UAwBrB;AAqFK,4CAFI,MAAM,IAIR;;;;CAA8B,mBA6ErC"}
1
+ {"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;AA4fD;;;;;GAKG;AACH,oCAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;GAKG;AACH,uCAHW,OAAO,GACN,MAAM,CAOjB;AAED;;;;GAIG;AACH,yCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GAAC,IAAI,GACV,MAAM,CAOjB;AAED;;;;;GAKG;AACH,8CAHW,OAAO,GACN,MAAM,CAOjB;AAoFD;;;;;;;GAOG;AACH,mCALW,SAAS,GAAC,MAAM,GAAC,KAAK,YAE9B;IAAyC,KAAK;CAC9C,GAAS,MAAM,CAQjB;;AAlqBM,yCAFK,MAAM,OAAA,IAIT;;;;CAA8B,kBAiCrC;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAgBb;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAcb;AAYK,iHANJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;IACL,oBAAoB;CACjD,IASE;;CAAY,UAoGb;AAUK,yCALI,MAAM,kBAEd;IAA0B,SAAS;CAErC,IAGQ;;CAAY,mBA0HnB;AAOK,gDAEE;;CAAY,mBAwHnB;AAOK,8CAFI,MAAM,IAId;;;CAAoB,UAwBrB;AAqFK,4CAFI,MAAM,IAIR;;;;CAA8B,mBAwErC"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAwHA,sDAEC;AACD,6DAEC;AAsFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AAiGD;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,wCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,6CAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,4CAHW,MAAM,GACL,MAAM,GAAC,IAAI,CAItB;AA2DD;;;;;;GAMG;AACH,uCAJW,MAAM,GAEL,SAAS,GAAC,MAAM,GAAC,KAAK,CAIjC;AAED;;;;;;GAMG;AACH,qCAJW,MAAM,GAEL,OAAO,CAIlB;AA7ZD;;;;;;GAMG;AACH;;;;EAqEE;AAeF;;;;EAqCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAiCE;AAEF;;;;;;;GAOG;AACH;;;;EAyCE;AA8DF;;;;;GAKG;AACH;;;;EAiDE;AAwBF;;;;;;GAMG;AACH;;;;EA8DE"}
1
+ {"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAwHA,sDAEC;AACD,6DAEC;AAsFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AAiGD;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,wCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,6CAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,4CAHW,MAAM,GACL,MAAM,GAAC,IAAI,CAItB;AA2DD;;;;;;GAMG;AACH,uCAJW,MAAM,GAEL,SAAS,GAAC,MAAM,GAAC,KAAK,CAIjC;AAED;;;;;;GAMG;AACH,qCAJW,MAAM,GAEL,OAAO,CAIlB;AA7ZD;;;;;;GAMG;AACH;;;;EAqEE;AAeF;;;;EAqCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAiCE;AAEF;;;;;;;GAOG;AACH;;;;EAyCE;AA8DF;;;;;GAKG;AACH;;;;EAiDE;AAwBF;;;;;;GAMG;AACH;;;;EAqDE"}
@@ -209,13 +209,6 @@ export function canvasMinHeight(state: number | undefined, action: Object): numb
209
209
  * @return {number|null} Updated state.
210
210
  */
211
211
  export function revisionId(state: number | null | undefined, action: Object): number | null;
212
- /**
213
- * Reducer returning the currently selected note and its options.
214
- *
215
- * @param {Object} state Current state.
216
- * @param {Object} action Dispatched action.
217
- * @return {Object} Updated state.
218
- */
219
212
  /**
220
213
  * Reducer for whether the revision diff is shown.
221
214
  * Resets to true when entering/exiting revisions mode.
@@ -225,7 +218,14 @@ export function revisionId(state: number | null | undefined, action: Object): nu
225
218
  * @return {boolean} Updated state.
226
219
  */
227
220
  export function showRevisionDiff(state: boolean | undefined, action: Object): boolean;
228
- export function selectedNote(state: {} | undefined, action: any): {};
221
+ /**
222
+ * Reducer returning the currently selected note and its options.
223
+ *
224
+ * @param {Object} state Current state.
225
+ * @param {Object} action Dispatched action.
226
+ * @return {Object} Updated state.
227
+ */
228
+ export function selectedNote(state: Object | undefined, action: Object): Object;
229
229
  declare const _default: import("redux").Reducer<{
230
230
  postId: any;
231
231
  postType: any;
@@ -250,7 +250,7 @@ declare const _default: import("redux").Reducer<{
250
250
  canvasMinHeight: number;
251
251
  revisionId: number | null;
252
252
  showRevisionDiff: boolean;
253
- selectedNote: {};
253
+ selectedNote: Object;
254
254
  dataviews: {
255
255
  actions: {
256
256
  [x: string]: Record<string, import("@wordpress/dataviews").Action<any>[]> | {
@@ -288,7 +288,7 @@ declare const _default: import("redux").Reducer<{
288
288
  canvasMinHeight: number | undefined;
289
289
  revisionId: number | null | undefined;
290
290
  showRevisionDiff: boolean | undefined;
291
- selectedNote: {} | undefined;
291
+ selectedNote: Object | undefined;
292
292
  dataviews: never;
293
293
  }>>;
294
294
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/store/reducer.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,uCAJW,GAAC,GAEA,GAAC,CAQZ;AAED;;;;;;;;GAQG;AACH,+BALW,MAAM,KACN,MAAM,GAEL,OAAO,CASlB;AAED;;;;;;;;;GASG;AACH,mDALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAOlB;AAED;;;;;;;;;GASG;AACH,6CALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAYlB;AAED,kEAOC;AAED,sEAOC;AAED,oEAOC;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,OAAO,CAYlB;AAED;;;;;;;;GAQG;AACH,8BALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAajB;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED;;;;;;;;;GASG;AAEH;;;;;;;GAOG;AACH,gCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CASxB;AAED;;;;;;;;;GASG;AACH,sCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;;;GASG;AACH,0CALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;GAOG;AACH,sCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED,2EAOC;AAED;;;;;;;GAOG;AACH,kCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CASjB;AAED;;;;;;;GAOG;AACH,gEAJW,MAAM,SAahB;AAED;;;;;;;;GAQG;AACH,0CAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;;;GAQG;AACH,qCAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;GAMG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GACL,MAAM,CAIjB;AAED,uFAUC;AAED;;;;;;GAMG;AACH,kCAJW,MAAM,sBACN,MAAM,GACL,MAAM,CAUjB;AAED;;;;;;GAMG;AACH,qCAJW,OAAO,sBACP,MAAM,GACL,OAAO,CAUlB;AAED;;;;;;GAMG;AACH,uCAJW,MAAM,sBACN,MAAM,GACL,MAAM,CAQjB;AAED;;;;;;;GAOG;AACH,kCAJW,MAAM,GAAC,IAAI,sBACX,MAAM,GACL,MAAM,GAAC,IAAI,CAQtB;AAED;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,wCAJW,OAAO,sBACP,MAAM,GACL,OAAO,CAUlB;AAED,qEAMC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAhTa,OAAO;;;;gBACN,OAAO,OAAA;;;;oBACP,OAAO,OAAA;;;;UACP,MAAM,OAAA"}
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../src/store/reducer.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,uCAJW,GAAC,GAEA,GAAC,CAQZ;AAED;;;;;;;;GAQG;AACH,+BALW,MAAM,KACN,MAAM,GAEL,OAAO,CASlB;AAED;;;;;;;;;GASG;AACH,mDALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAOlB;AAED;;;;;;;;;GASG;AACH,6CALW,MAAM,kBACN,MAAM,GAEL,OAAO,CAYlB;AAED,kEAOC;AAED,sEAOC;AAED,oEAOC;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,OAAO,CAYlB;AAED;;;;;;;;GAQG;AACH,8BALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAajB;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED;;;;;;;;;GASG;AAEH;;;;;;;GAOG;AACH,gCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CASxB;AAED;;;;;;;;;GASG;AACH,sCALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;;;GASG;AACH,0CALW,aAAa,sBACb,MAAM,GAEL,aAAa,CAcxB;AAED;;;;;;;GAOG;AACH,sCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CAYjB;AAED,2EAOC;AAED;;;;;;;GAOG;AACH,kCALW,MAAM,sBACN,MAAM,GAEL,MAAM,CASjB;AAED;;;;;;;GAOG;AACH,gEAJW,MAAM,SAahB;AAED;;;;;;;;GAQG;AACH,0CAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;;;GAQG;AACH,qCAHW,MAAM,sBACN,MAAM,OAUhB;AAED;;;;;;GAMG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GACL,MAAM,CAIjB;AAED,uFAUC;AAED;;;;;;GAMG;AACH,kCAJW,MAAM,sBACN,MAAM,GACL,MAAM,CAUjB;AAED;;;;;;GAMG;AACH,qCAJW,OAAO,sBACP,MAAM,GACL,OAAO,CAUlB;AAED;;;;;;GAMG;AACH,uCAJW,MAAM,sBACN,MAAM,GACL,MAAM,CAQjB;AAED;;;;;;;GAOG;AACH,kCAJW,MAAM,GAAC,IAAI,sBACX,MAAM,GACL,MAAM,GAAC,IAAI,CAQtB;AAED;;;;;;;GAOG;AACH,wCAJW,OAAO,sBACP,MAAM,GACL,OAAO,CAWlB;AAED;;;;;;GAMG;AACH,oCAJW,MAAM,sBACN,MAAM,GACL,MAAM,CAQjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAjTa,OAAO;;;;gBACN,OAAO,OAAA;;;;oBACP,OAAO,OAAA;;;;UACP,MAAM,OAAA"}
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * @param {number|string} postId postId of the current post being edited.
5
5
  */
6
- export default function usePageTypeBadge(postId: number | string): false | import("@wordpress/i18n").TranslatableText<"Homepage"> | import("@wordpress/i18n").TranslatableText<"Posts Page">;
6
+ export default function usePageTypeBadge(postId: number | string): false | import("@wordpress/i18n").TransformedText<"Homepage"> | import("@wordpress/i18n").TransformedText<"Posts Page">;
7
7
  //# sourceMappingURL=pageTypeBadge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pageTypeBadge.d.ts","sourceRoot":"","sources":["../../src/utils/pageTypeBadge.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,iDAFW,MAAM,GAAC,MAAM,6HA2BvB"}
1
+ {"version":3,"file":"pageTypeBadge.d.ts","sourceRoot":"","sources":["../../src/utils/pageTypeBadge.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,iDAFW,MAAM,GAAC,MAAM,2HA2BvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "14.43.0",
3
+ "version": "14.43.1-next.v.202604091042.0+668146787",
4
4
  "description": "Enhanced block editor for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -61,49 +61,49 @@
61
61
  ],
62
62
  "dependencies": {
63
63
  "@floating-ui/react-dom": "2.0.8",
64
- "@wordpress/a11y": "^4.43.0",
65
- "@wordpress/api-fetch": "^7.43.0",
66
- "@wordpress/base-styles": "^6.19.0",
67
- "@wordpress/blob": "^4.43.0",
68
- "@wordpress/block-editor": "^15.16.0",
69
- "@wordpress/block-serialization-default-parser": "^5.43.0",
70
- "@wordpress/blocks": "^15.16.0",
71
- "@wordpress/commands": "^1.43.0",
72
- "@wordpress/components": "^32.5.0",
73
- "@wordpress/compose": "^7.43.0",
74
- "@wordpress/core-data": "^7.43.0",
75
- "@wordpress/data": "^10.43.0",
76
- "@wordpress/dataviews": "^14.0.0",
77
- "@wordpress/date": "^5.43.0",
78
- "@wordpress/deprecated": "^4.43.0",
79
- "@wordpress/dom": "^4.43.0",
80
- "@wordpress/element": "^6.43.0",
81
- "@wordpress/fields": "^0.35.0",
82
- "@wordpress/global-styles-engine": "^1.10.0",
83
- "@wordpress/global-styles-ui": "^1.10.0",
84
- "@wordpress/hooks": "^4.43.0",
85
- "@wordpress/html-entities": "^4.43.0",
86
- "@wordpress/i18n": "^6.16.0",
87
- "@wordpress/icons": "^12.1.0",
88
- "@wordpress/interface": "^9.28.0",
89
- "@wordpress/keyboard-shortcuts": "^5.43.0",
90
- "@wordpress/keycodes": "^4.43.0",
91
- "@wordpress/media-editor": "^0.6.0",
92
- "@wordpress/media-fields": "^0.8.0",
93
- "@wordpress/media-utils": "^5.43.0",
94
- "@wordpress/notices": "^5.43.0",
95
- "@wordpress/patterns": "^2.43.0",
96
- "@wordpress/plugins": "^7.43.0",
97
- "@wordpress/preferences": "^4.43.0",
98
- "@wordpress/private-apis": "^1.43.0",
99
- "@wordpress/reusable-blocks": "^5.43.0",
100
- "@wordpress/rich-text": "^7.43.0",
101
- "@wordpress/server-side-render": "^6.19.0",
102
- "@wordpress/upload-media": "^0.28.0",
103
- "@wordpress/url": "^4.43.0",
104
- "@wordpress/views": "^1.10.0",
105
- "@wordpress/warning": "^3.43.0",
106
- "@wordpress/wordcount": "^4.43.0",
64
+ "@wordpress/a11y": "^4.43.1-next.v.202604091042.0+668146787",
65
+ "@wordpress/api-fetch": "^7.43.1-next.v.202604091042.0+668146787",
66
+ "@wordpress/base-styles": "^6.19.1-next.v.202604091042.0+668146787",
67
+ "@wordpress/blob": "^4.43.1-next.v.202604091042.0+668146787",
68
+ "@wordpress/block-editor": "^15.16.1-next.v.202604091042.0+668146787",
69
+ "@wordpress/block-serialization-default-parser": "^5.43.1-next.v.202604091042.0+668146787",
70
+ "@wordpress/blocks": "^15.16.1-next.v.202604091042.0+668146787",
71
+ "@wordpress/commands": "^1.43.1-next.v.202604091042.0+668146787",
72
+ "@wordpress/components": "^32.5.2-next.v.202604091042.0+668146787",
73
+ "@wordpress/compose": "^7.43.1-next.v.202604091042.0+668146787",
74
+ "@wordpress/core-data": "^7.43.2-next.v.202604091042.0+668146787",
75
+ "@wordpress/data": "^10.43.1-next.v.202604091042.0+668146787",
76
+ "@wordpress/dataviews": "^14.1.1-next.v.202604091042.0+668146787",
77
+ "@wordpress/date": "^5.43.1-next.v.202604091042.0+668146787",
78
+ "@wordpress/deprecated": "^4.43.1-next.v.202604091042.0+668146787",
79
+ "@wordpress/dom": "^4.43.1-next.v.202604091042.0+668146787",
80
+ "@wordpress/element": "^6.44.1-next.v.202604091042.0+668146787",
81
+ "@wordpress/fields": "^0.35.1-next.v.202604091042.0+668146787",
82
+ "@wordpress/global-styles-engine": "^1.10.1-next.v.202604091042.0+668146787",
83
+ "@wordpress/global-styles-ui": "^1.10.1-next.v.202604091042.0+668146787",
84
+ "@wordpress/hooks": "^4.43.1-next.v.202604091042.0+668146787",
85
+ "@wordpress/html-entities": "^4.43.1-next.v.202604091042.0+668146787",
86
+ "@wordpress/i18n": "^6.17.1-next.v.202604091042.0+668146787",
87
+ "@wordpress/icons": "^12.1.1-next.v.202604091042.0+668146787",
88
+ "@wordpress/interface": "^9.28.1-next.v.202604091042.0+668146787",
89
+ "@wordpress/keyboard-shortcuts": "^5.43.1-next.v.202604091042.0+668146787",
90
+ "@wordpress/keycodes": "^4.43.1-next.v.202604091042.0+668146787",
91
+ "@wordpress/media-editor": "^0.6.1-next.v.202604091042.0+668146787",
92
+ "@wordpress/media-fields": "^0.8.1-next.v.202604091042.0+668146787",
93
+ "@wordpress/media-utils": "^5.43.1-next.v.202604091042.0+668146787",
94
+ "@wordpress/notices": "^5.43.1-next.v.202604091042.0+668146787",
95
+ "@wordpress/patterns": "^2.43.1-next.v.202604091042.0+668146787",
96
+ "@wordpress/plugins": "^7.43.1-next.v.202604091042.0+668146787",
97
+ "@wordpress/preferences": "^4.43.1-next.v.202604091042.0+668146787",
98
+ "@wordpress/private-apis": "^1.43.1-next.v.202604091042.0+668146787",
99
+ "@wordpress/reusable-blocks": "^5.43.1-next.v.202604091042.0+668146787",
100
+ "@wordpress/rich-text": "^7.43.1-next.v.202604091042.0+668146787",
101
+ "@wordpress/server-side-render": "^6.19.1-next.v.202604091042.0+668146787",
102
+ "@wordpress/upload-media": "^0.28.1-next.v.202604091042.0+668146787",
103
+ "@wordpress/url": "^4.43.1-next.v.202604091042.0+668146787",
104
+ "@wordpress/views": "^1.10.1-next.v.202604091042.0+668146787",
105
+ "@wordpress/warning": "^3.43.1-next.v.202604091042.0+668146787",
106
+ "@wordpress/wordcount": "^4.43.1-next.v.202604091042.0+668146787",
107
107
  "change-case": "^4.1.2",
108
108
  "client-zip": "^2.4.5",
109
109
  "clsx": "^2.1.1",
@@ -126,5 +126,5 @@
126
126
  "publishConfig": {
127
127
  "access": "public"
128
128
  },
129
- "gitHead": "2cea90674d11aa521ec3f71652fb3a6a4c383969"
129
+ "gitHead": "73606df74f1c38a084bfa5db97205259ef817593"
130
130
  }
@@ -1 +1,2 @@
1
+ export { default as linkAutocompleter } from './link';
1
2
  export { default as userAutocompleter } from './user';
@@ -0,0 +1,47 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import apiFetch from '@wordpress/api-fetch';
5
+ import { addQueryArgs } from '@wordpress/url';
6
+ import { Icon, page, post } from '@wordpress/icons';
7
+ import { decodeEntities } from '@wordpress/html-entities';
8
+
9
+ const SHOWN_SUGGESTIONS = 10;
10
+
11
+ /**
12
+ * A link completer for posts and pages.
13
+ *
14
+ * @type {Object}
15
+ */
16
+ export default {
17
+ name: 'links',
18
+ className: 'editor-autocompleters__link',
19
+ triggerPrefix: '[[',
20
+ isDebounced: true,
21
+ async options( filterValue ) {
22
+ const options = await apiFetch( {
23
+ path: addQueryArgs( '/wp/v2/search', {
24
+ per_page: SHOWN_SUGGESTIONS,
25
+ search: filterValue,
26
+ type: 'post',
27
+ } ),
28
+ } );
29
+
30
+ return options.filter( ( option ) => option.title !== '' );
31
+ },
32
+ getOptionKeywords( item ) {
33
+ const expansionWords = item.title.split( /\s+/ );
34
+ return [ ...expansionWords ];
35
+ },
36
+ getOptionLabel( item ) {
37
+ return (
38
+ <>
39
+ <Icon icon={ item.subtype === 'page' ? page : post } />
40
+ { decodeEntities( item.title ) }
41
+ </>
42
+ );
43
+ },
44
+ getOptionCompletion( item ) {
45
+ return <a href={ item.url }>{ item.title }</a>;
46
+ },
47
+ };
@@ -1,4 +1,10 @@
1
1
  @use "@wordpress/base-styles/colors" as *;
2
+ @use "@wordpress/base-styles/variables" as *;
3
+
4
+ .editor-autocompleters__link {
5
+ white-space: nowrap;
6
+ gap: $grid-unit-10;
7
+ }
2
8
 
3
9
  .editor-autocompleters__user {
4
10
  .editor-autocompleters__no-avatar::before {
@@ -67,7 +67,7 @@ const getOffsetPositionInBlock = (
67
67
 
68
68
  try {
69
69
  cursorRange.setStart( node, offset );
70
- } catch ( error ) {
70
+ } catch {
71
71
  return null;
72
72
  }
73
73
 
@@ -13,7 +13,7 @@ export function setDelayedInterval( callback: () => void, delayMs: number ) {
13
13
  const runner = () => {
14
14
  try {
15
15
  callback();
16
- } catch ( error ) {
16
+ } catch {
17
17
  // Do nothing
18
18
  }
19
19
 
@@ -1,12 +1,14 @@
1
1
  import {
2
2
  privateApis as coreDataPrivateApis,
3
3
  SelectionType,
4
- type PostEditorAwarenessState as ActiveCollaborator,
4
+ } from '@wordpress/core-data';
5
+ import type {
6
+ ResolvedSelection,
7
+ PostEditorAwarenessState as ActiveCollaborator,
5
8
  } from '@wordpress/core-data';
6
9
  import { useSelect } from '@wordpress/data';
7
10
  import { useEffect, useState } from '@wordpress/element';
8
11
  import { store as preferencesStore } from '@wordpress/preferences';
9
- import type { ResolvedSelection } from '@wordpress/core-data';
10
12
 
11
13
  import { unlock } from '../../lock-unlock';
12
14
  import { getAvatarUrl } from './get-avatar-url';
@@ -26,7 +26,7 @@ function getContent() {
26
26
  // content serialization throughout the lifetime of a non-erroring
27
27
  // application.
28
28
  return select( editorStore ).getEditedPostContent();
29
- } catch ( error ) {}
29
+ } catch {}
30
30
  }
31
31
 
32
32
  function CopyButton( { text, children, variant = 'secondary' } ) {
@@ -34,7 +34,7 @@ function getContent() {
34
34
  // content serialization throughout the lifetime of a non-erroring
35
35
  // application.
36
36
  return select( editorStore ).getEditedPostContent();
37
- } catch ( error ) {}
37
+ } catch {}
38
38
  }
39
39
 
40
40
  function CopyButton( {