@wordpress/edit-widgets 7.1.0 → 7.3.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 (201) hide show
  1. package/build/blocks/widget-area/edit/index.cjs +10 -8
  2. package/build/blocks/widget-area/edit/index.cjs.map +1 -1
  3. package/build/blocks/widget-area/edit/inner-blocks.cjs +10 -8
  4. package/build/blocks/widget-area/edit/inner-blocks.cjs.map +1 -1
  5. package/build/blocks/widget-area/edit/use-is-dragging-within.cjs.map +1 -1
  6. package/build/blocks/widget-area/index.cjs +9 -7
  7. package/build/blocks/widget-area/index.cjs.map +1 -1
  8. package/build/components/error-boundary/index.cjs +1 -1
  9. package/build/components/error-boundary/index.cjs.map +1 -1
  10. package/build/components/header/document-tools/index.cjs +20 -10
  11. package/build/components/header/document-tools/index.cjs.map +1 -1
  12. package/build/components/header/index.cjs +18 -11
  13. package/build/components/header/index.cjs.map +1 -1
  14. package/build/components/keyboard-shortcut-help-modal/config.cjs +5 -0
  15. package/build/components/keyboard-shortcut-help-modal/config.cjs.map +1 -1
  16. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.cjs +9 -7
  17. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.cjs.map +1 -1
  18. package/build/components/keyboard-shortcut-help-modal/index.cjs +12 -11
  19. package/build/components/keyboard-shortcut-help-modal/index.cjs.map +1 -1
  20. package/build/components/keyboard-shortcut-help-modal/shortcut.cjs +35 -13
  21. package/build/components/keyboard-shortcut-help-modal/shortcut.cjs.map +1 -1
  22. package/build/components/keyboard-shortcuts/index.cjs.map +1 -1
  23. package/build/components/layout/index.cjs +19 -13
  24. package/build/components/layout/index.cjs.map +1 -1
  25. package/build/components/layout/interface.cjs +27 -13
  26. package/build/components/layout/interface.cjs.map +1 -1
  27. package/build/components/layout/unsaved-changes-warning.cjs +3 -6
  28. package/build/components/layout/unsaved-changes-warning.cjs.map +1 -1
  29. package/build/components/more-menu/index.cjs +14 -10
  30. package/build/components/more-menu/index.cjs.map +1 -1
  31. package/build/components/secondary-sidebar/index.cjs +10 -8
  32. package/build/components/secondary-sidebar/index.cjs.map +1 -1
  33. package/build/components/secondary-sidebar/inserter-sidebar.cjs +9 -7
  34. package/build/components/secondary-sidebar/inserter-sidebar.cjs.map +1 -1
  35. package/build/components/sidebar/index.cjs +23 -15
  36. package/build/components/sidebar/index.cjs.map +1 -1
  37. package/build/components/welcome-guide/index.cjs +5 -1
  38. package/build/components/welcome-guide/index.cjs.map +1 -1
  39. package/build/components/widget-areas-block-editor-content/index.cjs +10 -8
  40. package/build/components/widget-areas-block-editor-content/index.cjs.map +1 -1
  41. package/build/components/widget-areas-block-editor-provider/index.cjs +10 -8
  42. package/build/components/widget-areas-block-editor-provider/index.cjs.map +1 -1
  43. package/build/constants.cjs +0 -2
  44. package/build/constants.cjs.map +1 -1
  45. package/build/index.cjs +12 -10
  46. package/build/index.cjs.map +1 -1
  47. package/build/store/actions.cjs +20 -9
  48. package/build/store/actions.cjs.map +1 -1
  49. package/build/store/index.cjs +14 -12
  50. package/build/store/index.cjs.map +1 -1
  51. package/build/store/selectors.cjs +3 -1
  52. package/build/store/selectors.cjs.map +1 -1
  53. package/build-module/blocks/widget-area/index.mjs.map +1 -1
  54. package/build-module/components/error-boundary/index.mjs +2 -2
  55. package/build-module/components/error-boundary/index.mjs.map +1 -1
  56. package/build-module/components/header/document-tools/index.mjs +10 -2
  57. package/build-module/components/header/document-tools/index.mjs.map +1 -1
  58. package/build-module/components/header/index.mjs +6 -2
  59. package/build-module/components/header/index.mjs.map +1 -1
  60. package/build-module/components/header/undo-redo/redo.mjs.map +1 -1
  61. package/build-module/components/header/undo-redo/undo.mjs.map +1 -1
  62. package/build-module/components/keyboard-shortcut-help-modal/config.mjs +5 -0
  63. package/build-module/components/keyboard-shortcut-help-modal/config.mjs.map +1 -1
  64. package/build-module/components/keyboard-shortcut-help-modal/index.mjs +1 -2
  65. package/build-module/components/keyboard-shortcut-help-modal/index.mjs.map +1 -1
  66. package/build-module/components/keyboard-shortcut-help-modal/shortcut.mjs +35 -13
  67. package/build-module/components/keyboard-shortcut-help-modal/shortcut.mjs.map +1 -1
  68. package/build-module/components/layout/index.mjs +5 -1
  69. package/build-module/components/layout/index.mjs.map +1 -1
  70. package/build-module/components/layout/interface.mjs +16 -4
  71. package/build-module/components/layout/interface.mjs.map +1 -1
  72. package/build-module/components/layout/unsaved-changes-warning.mjs +3 -6
  73. package/build-module/components/layout/unsaved-changes-warning.mjs.map +1 -1
  74. package/build-module/components/more-menu/index.mjs +4 -2
  75. package/build-module/components/more-menu/index.mjs.map +1 -1
  76. package/build-module/components/sidebar/index.mjs +14 -8
  77. package/build-module/components/sidebar/index.mjs.map +1 -1
  78. package/build-module/components/welcome-guide/index.mjs +5 -1
  79. package/build-module/components/welcome-guide/index.mjs.map +1 -1
  80. package/build-module/constants.mjs +1 -2
  81. package/build-module/constants.mjs.map +1 -1
  82. package/build-module/index.mjs +2 -2
  83. package/build-module/index.mjs.map +1 -1
  84. package/build-module/store/actions.mjs +20 -9
  85. package/build-module/store/actions.mjs.map +1 -1
  86. package/build-module/store/selectors.mjs +3 -1
  87. package/build-module/store/selectors.mjs.map +1 -1
  88. package/build-style/style-rtl.css +72 -46
  89. package/build-style/style.css +72 -46
  90. package/build-types/blocks/widget-area/edit/index.d.ts +10 -0
  91. package/build-types/blocks/widget-area/edit/index.d.ts.map +1 -0
  92. package/build-types/blocks/widget-area/edit/inner-blocks.d.ts +4 -0
  93. package/build-types/blocks/widget-area/edit/inner-blocks.d.ts.map +1 -0
  94. package/build-types/blocks/widget-area/edit/use-is-dragging-within.d.ts +12 -0
  95. package/build-types/blocks/widget-area/edit/use-is-dragging-within.d.ts.map +1 -0
  96. package/build-types/blocks/widget-area/index.d.ts +14 -0
  97. package/build-types/blocks/widget-area/index.d.ts.map +1 -0
  98. package/build-types/components/error-boundary/index.d.ts +14 -0
  99. package/build-types/components/error-boundary/index.d.ts.map +1 -0
  100. package/build-types/components/header/document-tools/index.d.ts +3 -0
  101. package/build-types/components/header/document-tools/index.d.ts.map +1 -0
  102. package/build-types/components/header/index.d.ts +3 -0
  103. package/build-types/components/header/index.d.ts.map +1 -0
  104. package/build-types/components/header/undo-redo/redo.d.ts +3 -0
  105. package/build-types/components/header/undo-redo/redo.d.ts.map +1 -0
  106. package/build-types/components/header/undo-redo/undo.d.ts +3 -0
  107. package/build-types/components/header/undo-redo/undo.d.ts.map +1 -0
  108. package/build-types/components/keyboard-shortcut-help-modal/config.d.ts +3 -0
  109. package/build-types/components/keyboard-shortcut-help-modal/config.d.ts.map +1 -0
  110. package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts +5 -0
  111. package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts.map +1 -0
  112. package/build-types/components/keyboard-shortcut-help-modal/index.d.ts +5 -0
  113. package/build-types/components/keyboard-shortcut-help-modal/index.d.ts.map +1 -0
  114. package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts +25 -0
  115. package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts.map +1 -0
  116. package/build-types/components/keyboard-shortcuts/index.d.ts +7 -0
  117. package/build-types/components/keyboard-shortcuts/index.d.ts.map +1 -0
  118. package/build-types/components/layout/index.d.ts +5 -0
  119. package/build-types/components/layout/index.d.ts.map +1 -0
  120. package/build-types/components/layout/interface.d.ts +5 -0
  121. package/build-types/components/layout/interface.d.ts.map +1 -0
  122. package/build-types/components/layout/unsaved-changes-warning.d.ts +10 -0
  123. package/build-types/components/layout/unsaved-changes-warning.d.ts.map +1 -0
  124. package/build-types/components/more-menu/index.d.ts +2 -0
  125. package/build-types/components/more-menu/index.d.ts.map +1 -0
  126. package/build-types/components/more-menu/tools-more-menu-group.d.ts +6 -0
  127. package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -0
  128. package/build-types/components/notices/index.d.ts +3 -0
  129. package/build-types/components/notices/index.d.ts.map +1 -0
  130. package/build-types/components/save-button/index.d.ts +3 -0
  131. package/build-types/components/save-button/index.d.ts.map +1 -0
  132. package/build-types/components/secondary-sidebar/index.d.ts +2 -0
  133. package/build-types/components/secondary-sidebar/index.d.ts.map +1 -0
  134. package/build-types/components/secondary-sidebar/inserter-sidebar.d.ts +2 -0
  135. package/build-types/components/secondary-sidebar/inserter-sidebar.d.ts.map +1 -0
  136. package/build-types/components/secondary-sidebar/list-view-sidebar.d.ts +2 -0
  137. package/build-types/components/secondary-sidebar/list-view-sidebar.d.ts.map +1 -0
  138. package/build-types/components/sidebar/index.d.ts +2 -0
  139. package/build-types/components/sidebar/index.d.ts.map +1 -0
  140. package/build-types/components/sidebar/widget-areas.d.ts +4 -0
  141. package/build-types/components/sidebar/widget-areas.d.ts.map +1 -0
  142. package/build-types/components/welcome-guide/index.d.ts +2 -0
  143. package/build-types/components/welcome-guide/index.d.ts.map +1 -0
  144. package/build-types/components/widget-areas-block-editor-content/index.d.ts +4 -0
  145. package/build-types/components/widget-areas-block-editor-content/index.d.ts.map +1 -0
  146. package/build-types/components/widget-areas-block-editor-provider/index.d.ts +6 -0
  147. package/build-types/components/widget-areas-block-editor-provider/index.d.ts.map +1 -0
  148. package/build-types/constants.d.ts +2 -0
  149. package/build-types/constants.d.ts.map +1 -0
  150. package/build-types/filters/index.d.ts +3 -0
  151. package/build-types/filters/index.d.ts.map +1 -0
  152. package/build-types/filters/move-to-widget-area.d.ts +2 -0
  153. package/build-types/filters/move-to-widget-area.d.ts.map +1 -0
  154. package/build-types/filters/replace-media-upload.d.ts +2 -0
  155. package/build-types/filters/replace-media-upload.d.ts.map +1 -0
  156. package/build-types/hooks/use-last-selected-widget-area.d.ts +9 -0
  157. package/build-types/hooks/use-last-selected-widget-area.d.ts.map +1 -0
  158. package/build-types/hooks/use-widget-library-insertion-point.d.ts +3 -0
  159. package/build-types/hooks/use-widget-library-insertion-point.d.ts.map +1 -0
  160. package/build-types/index.d.ts +16 -0
  161. package/build-types/index.d.ts.map +1 -0
  162. package/build-types/lock-unlock.d.ts +2 -0
  163. package/build-types/lock-unlock.d.ts.map +1 -0
  164. package/build-types/store/actions.d.ts +144 -0
  165. package/build-types/store/actions.d.ts.map +1 -0
  166. package/build-types/store/constants.d.ts +5 -0
  167. package/build-types/store/constants.d.ts.map +1 -0
  168. package/build-types/store/index.d.ts +9 -0
  169. package/build-types/store/index.d.ts.map +1 -0
  170. package/build-types/store/private-selectors.d.ts +3 -0
  171. package/build-types/store/private-selectors.d.ts.map +1 -0
  172. package/build-types/store/reducer.d.ts +73 -0
  173. package/build-types/store/reducer.d.ts.map +1 -0
  174. package/build-types/store/resolvers.d.ts +17 -0
  175. package/build-types/store/resolvers.d.ts.map +1 -0
  176. package/build-types/store/selectors.d.ts +159 -0
  177. package/build-types/store/selectors.d.ts.map +1 -0
  178. package/build-types/store/transformers.d.ts +16 -0
  179. package/build-types/store/transformers.d.ts.map +1 -0
  180. package/build-types/store/utils.d.ts +53 -0
  181. package/build-types/store/utils.d.ts.map +1 -0
  182. package/package.json +33 -33
  183. package/src/components/error-boundary/index.jsx +2 -2
  184. package/src/components/header/index.jsx +11 -2
  185. package/src/components/header/style.scss +30 -3
  186. package/src/components/keyboard-shortcut-help-modal/config.js +3 -0
  187. package/src/components/keyboard-shortcut-help-modal/index.jsx +0 -2
  188. package/src/components/keyboard-shortcut-help-modal/shortcut.jsx +44 -29
  189. package/src/components/keyboard-shortcut-help-modal/style.scss +1 -1
  190. package/src/components/layout/style.scss +5 -9
  191. package/src/components/layout/unsaved-changes-warning.js +4 -9
  192. package/src/components/more-menu/index.jsx +0 -1
  193. package/src/components/sidebar/index.jsx +1 -1
  194. package/src/components/sidebar/style.scss +6 -0
  195. package/src/components/welcome-guide/style.scss +1 -1
  196. package/src/components/widget-areas-block-editor-content/style.scss +1 -1
  197. package/src/constants.js +0 -1
  198. package/src/index.jsx +2 -7
  199. package/src/store/actions.js +33 -14
  200. package/src/store/selectors.js +4 -1
  201. package/src/store/test/actions.jsdom.test.js +275 -0
@@ -113,12 +113,12 @@
113
113
  }
114
114
 
115
115
  body.admin-color-fresh {
116
- --wp-admin-theme-color: #007cba;
117
- --wp-admin-theme-color--rgb: 0, 124, 186;
118
- --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
119
- --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
120
- --wp-admin-theme-color-darker-20: #005a87;
121
- --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
116
+ --wp-admin-theme-color: #006daa;
117
+ --wp-admin-theme-color--rgb: 0, 109, 170;
118
+ --wp-admin-theme-color-darker-10: rgb(0, 92.65, 144.5);
119
+ --wp-admin-theme-color-darker-10--rgb: 0, 92.65, 144.5;
120
+ --wp-admin-theme-color-darker-20: rgb(0, 76.3, 119);
121
+ --wp-admin-theme-color-darker-20--rgb: 0, 76.3, 119;
122
122
  --wp-admin-border-width-focus: 2px;
123
123
  }
124
124
  @media (min-resolution: 192dpi) {
@@ -127,9 +127,6 @@ body.admin-color-fresh {
127
127
  }
128
128
  }
129
129
 
130
- /**
131
- * Colors
132
- */
133
130
  /**
134
131
  * SCSS Variables.
135
132
  *
@@ -137,6 +134,9 @@ body.admin-color-fresh {
137
134
  * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
138
135
  * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
139
136
  */
137
+ /**
138
+ * Colors
139
+ */
140
140
  /**
141
141
  * Fonts & basic variables.
142
142
  */
@@ -173,7 +173,7 @@ body.admin-color-fresh {
173
173
  * These variables do not appear to be used anywhere else.
174
174
  */
175
175
  .interface-complementary-area-header {
176
- background: #fff;
176
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
177
177
  padding-left: 8px;
178
178
  gap: 4px;
179
179
  }
@@ -233,8 +233,8 @@ body.admin-color-fresh {
233
233
  * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
234
234
  */
235
235
  .interface-complementary-area {
236
- background: #fff;
237
- color: #1e1e1e;
236
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
237
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
238
238
  height: 100%;
239
239
  overflow: auto;
240
240
  width: 100vw;
@@ -266,9 +266,9 @@ body.admin-color-fresh {
266
266
  }
267
267
 
268
268
  .interface-complementary-area h2 {
269
- font-size: 13px;
269
+ font-size: var(--wpds-typography-font-size-md, 13px);
270
270
  font-weight: var(--wpds-typography-font-weight-emphasis, 600);
271
- color: #1e1e1e;
271
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
272
272
  margin-bottom: 1.5em;
273
273
  }
274
274
 
@@ -276,13 +276,13 @@ body.admin-color-fresh {
276
276
  font-size: 11px;
277
277
  text-transform: uppercase;
278
278
  font-weight: var(--wpds-typography-font-weight-emphasis, 600);
279
- color: #1e1e1e;
279
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
280
280
  margin-bottom: 1.5em;
281
281
  }
282
282
 
283
283
  .interface-complementary-area hr {
284
284
  border-top: none;
285
- border-bottom: 1px solid #f0f0f0;
285
+ border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
286
286
  margin: 1.5em 0;
287
287
  }
288
288
 
@@ -424,8 +424,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
424
424
  top: 0;
425
425
  right: 0;
426
426
  bottom: 0;
427
- background: #fff;
428
- color: #1e1e1e;
427
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
428
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
429
429
  width: auto;
430
430
  }
431
431
 
@@ -436,46 +436,46 @@ body.is-fullscreen-mode .interface-interface-skeleton {
436
436
  }
437
437
  }
438
438
  .interface-interface-skeleton__sidebar {
439
- border-top: 1px solid #e0e0e0;
439
+ border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
440
440
  overflow: hidden;
441
441
  }
442
442
 
443
443
  @media (min-width: 782px) {
444
444
  .interface-interface-skeleton__sidebar {
445
- box-shadow: 1px 0 0 0 rgba(0, 0, 0, 0.133);
445
+ box-shadow: 1px 0 0 0 var(--wpds-color-stroke-surface-neutral, #dbdbdb);
446
446
  outline: 1px solid transparent;
447
447
  }
448
448
  }
449
449
  .interface-interface-skeleton__secondary-sidebar {
450
- border-top: 1px solid #e0e0e0;
450
+ border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
451
451
  left: 0;
452
452
  }
453
453
 
454
454
  @media (min-width: 782px) {
455
455
  .interface-interface-skeleton__secondary-sidebar {
456
- box-shadow: -1px 0 0 0 rgba(0, 0, 0, 0.133);
456
+ box-shadow: -1px 0 0 0 var(--wpds-color-stroke-surface-neutral, #dbdbdb);
457
457
  outline: 1px solid transparent;
458
458
  }
459
459
  }
460
460
  .interface-interface-skeleton__header {
461
461
  flex-shrink: 0;
462
462
  height: auto;
463
- box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.133);
463
+ box-shadow: 0 1px 0 0 var(--wpds-color-stroke-surface-neutral, #dbdbdb);
464
464
  z-index: 30;
465
- color: #1e1e1e;
465
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
466
466
  outline: 1px solid transparent;
467
467
  }
468
468
 
469
469
  .interface-interface-skeleton__footer {
470
470
  height: auto;
471
471
  flex-shrink: 0;
472
- border-top: 1px solid #e0e0e0;
473
- color: #1e1e1e;
472
+ border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
473
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
474
474
  position: absolute;
475
475
  bottom: 0;
476
476
  right: 0;
477
477
  width: 100%;
478
- background-color: #fff;
478
+ background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
479
479
  z-index: 90;
480
480
  display: none;
481
481
  }
@@ -492,8 +492,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
492
492
  bottom: auto;
493
493
  right: auto;
494
494
  left: 0;
495
- color: #1e1e1e;
496
- background: #fff;
495
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
496
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
497
497
  width: 100vw;
498
498
  }
499
499
 
@@ -507,16 +507,17 @@ body.is-fullscreen-mode .interface-interface-skeleton {
507
507
  bottom: 0;
508
508
  }
509
509
 
510
- .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
510
+ .is-entity-save-view-open .interface-interface-skeleton__actions {
511
511
  top: 46px;
512
+ bottom: 0;
512
513
  }
513
514
 
514
515
  @media (min-width: 782px) {
515
- .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
516
- border-right: 1px solid #ddd;
516
+ .is-entity-save-view-open .interface-interface-skeleton__actions {
517
+ border-right: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
517
518
  top: 32px;
518
519
  }
519
- .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
520
+ .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions {
520
521
  top: var(--wp-admin--admin-bar--height, 0);
521
522
  }
522
523
  }
@@ -621,7 +622,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
621
622
  justify-content: space-between;
622
623
  height: 64px;
623
624
  overflow: auto;
624
- background: #fff;
625
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
625
626
  }
626
627
  @media (min-width: 600px) {
627
628
  .edit-widgets-header {
@@ -654,7 +655,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
654
655
  content: "";
655
656
  width: 1px;
656
657
  height: 24px;
657
- background-color: #ddd;
658
+ background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb);
658
659
  margin-top: 4px;
659
660
  margin-right: 8px;
660
661
  }
@@ -704,6 +705,17 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
704
705
  gap: 8px;
705
706
  }
706
707
 
708
+ .edit-widgets-header.has-icon-labels .interface-pinned-items .components-button.has-icon {
709
+ padding: 0 12px;
710
+ }
711
+ .edit-widgets-header.has-icon-labels .interface-pinned-items .components-button.has-icon svg {
712
+ display: none;
713
+ }
714
+ .edit-widgets-header.has-icon-labels .interface-pinned-items .components-button.has-icon::after {
715
+ content: attr(aria-label);
716
+ white-space: nowrap;
717
+ }
718
+
707
719
  .edit-widgets-header-toolbar {
708
720
  gap: 8px;
709
721
  margin-left: 8px;
@@ -716,7 +728,22 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
716
728
  }
717
729
  .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
718
730
  .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
719
- background: #1e1e1e;
731
+ background: var(--wpds-color-background-interactive-neutral-strong-active, #2e2e2e);
732
+ }
733
+ .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]),
734
+ .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]) {
735
+ background: var(--wpds-color-background-interactive-neutral-strong-disabled, #e5e5e5);
736
+ }
737
+ @media (forced-colors: active) {
738
+ .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
739
+ .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
740
+ background: Highlight !important;
741
+ }
742
+ .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:disabled, .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed[aria-disabled=true],
743
+ .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed:disabled,
744
+ .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed[aria-disabled=true] {
745
+ background: GrayText !important;
746
+ }
720
747
  }
721
748
  .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:active),
722
749
  .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon:focus:not(:active) {
@@ -794,13 +821,17 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
794
821
  margin: 0 0.2rem 0 0.2rem;
795
822
  }
796
823
  .edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child {
797
- margin: 0 0.2rem 0 0;
824
+ margin-inline-end: 0;
798
825
  }
799
826
 
800
827
  .components-panel__header.edit-widgets-sidebar__panel-tabs {
801
828
  padding-right: 0;
802
829
  }
803
830
 
831
+ .edit-widgets-sidebar__panel-tablist {
832
+ margin-bottom: -1px;
833
+ }
834
+
804
835
  .edit-widgets-widget-areas__top-container {
805
836
  display: flex;
806
837
  padding: 16px;
@@ -854,16 +885,11 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
854
885
  }
855
886
 
856
887
  .edit-widgets-layout__inserter-panel-content {
857
- height: calc(100% - 36px - 8px);
888
+ height: 100%;
858
889
  }
859
- .edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close {
890
+ .edit-widgets-layout__inserter-panel-content .block-editor-inserter__menu.has-single-tab .block-editor-tabbed-sidebar__tablist-and-close-button {
860
891
  display: none;
861
892
  }
862
- @media (min-width: 782px) {
863
- .edit-widgets-layout__inserter-panel-content {
864
- height: 100%;
865
- }
866
- }
867
893
 
868
894
  .components-popover.more-menu-dropdown__content {
869
895
  z-index: 99998;
@@ -889,7 +915,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
889
915
  padding: 0 32px;
890
916
  }
891
917
  .edit-widgets-welcome-guide__text {
892
- font-size: 13px;
918
+ font-size: var(--wpds-typography-font-size-md, 13px);
893
919
  line-height: 1.4;
894
920
  margin: 0 0 24px 0;
895
921
  padding: 0 32px;
@@ -920,7 +946,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
920
946
  }
921
947
  .edit-widgets-block-editor .components-button {
922
948
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
923
- font-size: 13px;
949
+ font-size: var(--wpds-typography-font-size-md, 13px);
924
950
  }
925
951
  .edit-widgets-block-editor .components-button.is-tertiary, .edit-widgets-block-editor .components-button.has-icon {
926
952
  padding: 6px;
@@ -113,12 +113,12 @@
113
113
  }
114
114
 
115
115
  body.admin-color-fresh {
116
- --wp-admin-theme-color: #007cba;
117
- --wp-admin-theme-color--rgb: 0, 124, 186;
118
- --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
119
- --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
120
- --wp-admin-theme-color-darker-20: #005a87;
121
- --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
116
+ --wp-admin-theme-color: #006daa;
117
+ --wp-admin-theme-color--rgb: 0, 109, 170;
118
+ --wp-admin-theme-color-darker-10: rgb(0, 92.65, 144.5);
119
+ --wp-admin-theme-color-darker-10--rgb: 0, 92.65, 144.5;
120
+ --wp-admin-theme-color-darker-20: rgb(0, 76.3, 119);
121
+ --wp-admin-theme-color-darker-20--rgb: 0, 76.3, 119;
122
122
  --wp-admin-border-width-focus: 2px;
123
123
  }
124
124
  @media (min-resolution: 192dpi) {
@@ -127,9 +127,6 @@ body.admin-color-fresh {
127
127
  }
128
128
  }
129
129
 
130
- /**
131
- * Colors
132
- */
133
130
  /**
134
131
  * SCSS Variables.
135
132
  *
@@ -137,6 +134,9 @@ body.admin-color-fresh {
137
134
  * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
138
135
  * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
139
136
  */
137
+ /**
138
+ * Colors
139
+ */
140
140
  /**
141
141
  * Fonts & basic variables.
142
142
  */
@@ -173,7 +173,7 @@ body.admin-color-fresh {
173
173
  * These variables do not appear to be used anywhere else.
174
174
  */
175
175
  .interface-complementary-area-header {
176
- background: #fff;
176
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
177
177
  padding-right: 8px;
178
178
  gap: 4px;
179
179
  }
@@ -233,8 +233,8 @@ body.admin-color-fresh {
233
233
  * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
234
234
  */
235
235
  .interface-complementary-area {
236
- background: #fff;
237
- color: #1e1e1e;
236
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
237
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
238
238
  height: 100%;
239
239
  overflow: auto;
240
240
  width: 100vw;
@@ -266,9 +266,9 @@ body.admin-color-fresh {
266
266
  }
267
267
 
268
268
  .interface-complementary-area h2 {
269
- font-size: 13px;
269
+ font-size: var(--wpds-typography-font-size-md, 13px);
270
270
  font-weight: var(--wpds-typography-font-weight-emphasis, 600);
271
- color: #1e1e1e;
271
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
272
272
  margin-bottom: 1.5em;
273
273
  }
274
274
 
@@ -276,13 +276,13 @@ body.admin-color-fresh {
276
276
  font-size: 11px;
277
277
  text-transform: uppercase;
278
278
  font-weight: var(--wpds-typography-font-weight-emphasis, 600);
279
- color: #1e1e1e;
279
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
280
280
  margin-bottom: 1.5em;
281
281
  }
282
282
 
283
283
  .interface-complementary-area hr {
284
284
  border-top: none;
285
- border-bottom: 1px solid #f0f0f0;
285
+ border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
286
286
  margin: 1.5em 0;
287
287
  }
288
288
 
@@ -424,8 +424,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
424
424
  top: 0;
425
425
  left: 0;
426
426
  bottom: 0;
427
- background: #fff;
428
- color: #1e1e1e;
427
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
428
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
429
429
  width: auto;
430
430
  }
431
431
 
@@ -436,46 +436,46 @@ body.is-fullscreen-mode .interface-interface-skeleton {
436
436
  }
437
437
  }
438
438
  .interface-interface-skeleton__sidebar {
439
- border-top: 1px solid #e0e0e0;
439
+ border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
440
440
  overflow: hidden;
441
441
  }
442
442
 
443
443
  @media (min-width: 782px) {
444
444
  .interface-interface-skeleton__sidebar {
445
- box-shadow: -1px 0 0 0 rgba(0, 0, 0, 0.133);
445
+ box-shadow: -1px 0 0 0 var(--wpds-color-stroke-surface-neutral, #dbdbdb);
446
446
  outline: 1px solid transparent;
447
447
  }
448
448
  }
449
449
  .interface-interface-skeleton__secondary-sidebar {
450
- border-top: 1px solid #e0e0e0;
450
+ border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
451
451
  right: 0;
452
452
  }
453
453
 
454
454
  @media (min-width: 782px) {
455
455
  .interface-interface-skeleton__secondary-sidebar {
456
- box-shadow: 1px 0 0 0 rgba(0, 0, 0, 0.133);
456
+ box-shadow: 1px 0 0 0 var(--wpds-color-stroke-surface-neutral, #dbdbdb);
457
457
  outline: 1px solid transparent;
458
458
  }
459
459
  }
460
460
  .interface-interface-skeleton__header {
461
461
  flex-shrink: 0;
462
462
  height: auto;
463
- box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.133);
463
+ box-shadow: 0 1px 0 0 var(--wpds-color-stroke-surface-neutral, #dbdbdb);
464
464
  z-index: 30;
465
- color: #1e1e1e;
465
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
466
466
  outline: 1px solid transparent;
467
467
  }
468
468
 
469
469
  .interface-interface-skeleton__footer {
470
470
  height: auto;
471
471
  flex-shrink: 0;
472
- border-top: 1px solid #e0e0e0;
473
- color: #1e1e1e;
472
+ border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
473
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
474
474
  position: absolute;
475
475
  bottom: 0;
476
476
  left: 0;
477
477
  width: 100%;
478
- background-color: #fff;
478
+ background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
479
479
  z-index: 90;
480
480
  display: none;
481
481
  }
@@ -492,8 +492,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
492
492
  bottom: auto;
493
493
  left: auto;
494
494
  right: 0;
495
- color: #1e1e1e;
496
- background: #fff;
495
+ color: var(--wpds-color-foreground-content-neutral, #1e1e1e);
496
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
497
497
  width: 100vw;
498
498
  }
499
499
 
@@ -507,16 +507,17 @@ body.is-fullscreen-mode .interface-interface-skeleton {
507
507
  bottom: 0;
508
508
  }
509
509
 
510
- .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
510
+ .is-entity-save-view-open .interface-interface-skeleton__actions {
511
511
  top: 46px;
512
+ bottom: 0;
512
513
  }
513
514
 
514
515
  @media (min-width: 782px) {
515
- .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
516
- border-left: 1px solid #ddd;
516
+ .is-entity-save-view-open .interface-interface-skeleton__actions {
517
+ border-left: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb);
517
518
  top: 32px;
518
519
  }
519
- .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
520
+ .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions {
520
521
  top: var(--wp-admin--admin-bar--height, 0);
521
522
  }
522
523
  }
@@ -621,7 +622,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
621
622
  justify-content: space-between;
622
623
  height: 64px;
623
624
  overflow: auto;
624
- background: #fff;
625
+ background: var(--wpds-color-background-surface-neutral-strong, #fff);
625
626
  }
626
627
  @media (min-width: 600px) {
627
628
  .edit-widgets-header {
@@ -654,7 +655,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
654
655
  content: "";
655
656
  width: 1px;
656
657
  height: 24px;
657
- background-color: #ddd;
658
+ background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb);
658
659
  margin-top: 4px;
659
660
  margin-left: 8px;
660
661
  }
@@ -704,6 +705,17 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
704
705
  gap: 8px;
705
706
  }
706
707
 
708
+ .edit-widgets-header.has-icon-labels .interface-pinned-items .components-button.has-icon {
709
+ padding: 0 12px;
710
+ }
711
+ .edit-widgets-header.has-icon-labels .interface-pinned-items .components-button.has-icon svg {
712
+ display: none;
713
+ }
714
+ .edit-widgets-header.has-icon-labels .interface-pinned-items .components-button.has-icon::after {
715
+ content: attr(aria-label);
716
+ white-space: nowrap;
717
+ }
718
+
707
719
  .edit-widgets-header-toolbar {
708
720
  gap: 8px;
709
721
  margin-right: 8px;
@@ -716,7 +728,22 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
716
728
  }
717
729
  .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
718
730
  .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
719
- background: #1e1e1e;
731
+ background: var(--wpds-color-background-interactive-neutral-strong-active, #2e2e2e);
732
+ }
733
+ .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]),
734
+ .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed:is(:disabled, [aria-disabled=true]) {
735
+ background: var(--wpds-color-background-interactive-neutral-strong-disabled, #e5e5e5);
736
+ }
737
+ @media (forced-colors: active) {
738
+ .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
739
+ .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
740
+ background: Highlight !important;
741
+ }
742
+ .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed:disabled, .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed[aria-disabled=true],
743
+ .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed:disabled,
744
+ .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed[aria-disabled=true] {
745
+ background: GrayText !important;
746
+ }
720
747
  }
721
748
  .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:active),
722
749
  .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon:focus:not(:active) {
@@ -794,13 +821,17 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
794
821
  margin: 0 0.2rem 0 0.2rem;
795
822
  }
796
823
  .edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child {
797
- margin: 0 0 0 0.2rem;
824
+ margin-inline-end: 0;
798
825
  }
799
826
 
800
827
  .components-panel__header.edit-widgets-sidebar__panel-tabs {
801
828
  padding-left: 0;
802
829
  }
803
830
 
831
+ .edit-widgets-sidebar__panel-tablist {
832
+ margin-bottom: -1px;
833
+ }
834
+
804
835
  .edit-widgets-widget-areas__top-container {
805
836
  display: flex;
806
837
  padding: 16px;
@@ -854,16 +885,11 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
854
885
  }
855
886
 
856
887
  .edit-widgets-layout__inserter-panel-content {
857
- height: calc(100% - 36px - 8px);
888
+ height: 100%;
858
889
  }
859
- .edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close {
890
+ .edit-widgets-layout__inserter-panel-content .block-editor-inserter__menu.has-single-tab .block-editor-tabbed-sidebar__tablist-and-close-button {
860
891
  display: none;
861
892
  }
862
- @media (min-width: 782px) {
863
- .edit-widgets-layout__inserter-panel-content {
864
- height: 100%;
865
- }
866
- }
867
893
 
868
894
  .components-popover.more-menu-dropdown__content {
869
895
  z-index: 99998;
@@ -889,7 +915,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
889
915
  padding: 0 32px;
890
916
  }
891
917
  .edit-widgets-welcome-guide__text {
892
- font-size: 13px;
918
+ font-size: var(--wpds-typography-font-size-md, 13px);
893
919
  line-height: 1.4;
894
920
  margin: 0 0 24px 0;
895
921
  padding: 0 32px;
@@ -920,7 +946,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
920
946
  }
921
947
  .edit-widgets-block-editor .components-button {
922
948
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
923
- font-size: 13px;
949
+ font-size: var(--wpds-typography-font-size-md, 13px);
924
950
  }
925
951
  .edit-widgets-block-editor .components-button.is-tertiary, .edit-widgets-block-editor .components-button.has-icon {
926
952
  padding: 6px;
@@ -0,0 +1,10 @@
1
+ export type RefObject = import('@wordpress/element').RefObject;
2
+ /** @typedef {import('@wordpress/element').RefObject} RefObject */
3
+ export default function WidgetAreaEdit({ clientId, attributes: { id, name }, }: {
4
+ attributes: {
5
+ id: any;
6
+ name: any;
7
+ };
8
+ clientId: any;
9
+ }): import("react").JSX.Element;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/widget-area/edit/index.jsx"],"names":[],"mappings":"AAaI,YAAkD,SAAS,GAAjD,OAAO,oBAAoB,EAAE,SAAS,CAAW;AAA/D,kEAAkE;AAElE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,EACvC,QAAQ,EACR,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GACxB;;;;;;CAAA,+BAkEA"}
@@ -0,0 +1,4 @@
1
+ export default function WidgetAreaInnerBlocks({ id }: {
2
+ id: any;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=inner-blocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inner-blocks.d.ts","sourceRoot":"","sources":["../../../../src/blocks/widget-area/edit/inner-blocks.jsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAE,EAAE,EAAE,EAAE;;CAAA,+BAkCpD"}
@@ -0,0 +1,12 @@
1
+ export type RefObject = import('@wordpress/element').RefObject;
2
+ /** @typedef {import('@wordpress/element').RefObject} RefObject */
3
+ /**
4
+ * A React hook to determine if it's dragging within the target element.
5
+ *
6
+ * @param {RefObject<HTMLElement>} elementRef The target elementRef object.
7
+ *
8
+ * @return {boolean} Is dragging within the target element.
9
+ */
10
+ declare const useIsDraggingWithin: (elementRef: RefObject<HTMLElement>) => boolean;
11
+ export default useIsDraggingWithin;
12
+ //# sourceMappingURL=use-is-dragging-within.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-is-dragging-within.d.ts","sourceRoot":"","sources":["../../../../src/blocks/widget-area/edit/use-is-dragging-within.js"],"names":[],"mappings":"AAEI,YAAkD,SAAS,GAAjD,OAAO,oBAAoB,EAAE,SAAS,CAAW;AAA/D,kEAAkE;AAElE;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB,eAJd,SAAS,CAAC,WAAW,CAAC,KAErB,OAyCX,CAAC;eAEa,mBAAmB"}
@@ -0,0 +1,14 @@
1
+ import metadata from './block.json';
2
+ import edit from './edit';
3
+ declare const name: string;
4
+ export { metadata, name };
5
+ export declare const settings: {
6
+ title: import("@wordpress/i18n").TransformedText<"Widget Area">;
7
+ description: import("@wordpress/i18n").TransformedText<"A widget area container.">;
8
+ __experimentalLabel: ({ name: label }: {
9
+ name: any;
10
+ }) => any;
11
+ icon: import("react").JSX.Element;
12
+ edit: typeof edit;
13
+ };
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/widget-area/index.js"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,cAAc,CAAC;AACpC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,QAAA,MAAQ,IAAI,QAAa,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAE1B,eAAO,MAAM,QAAQ;;;;;;;;CAMpB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Component } from '@wordpress/element';
2
+ export default class ErrorBoundary extends Component {
3
+ state: {
4
+ error: null;
5
+ componentStack: null;
6
+ };
7
+ constructor();
8
+ componentDidCatch(error: any, errorInfo: any): void;
9
+ static getDerivedStateFromError(error: any): {
10
+ error: any;
11
+ };
12
+ render(): any;
13
+ }
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/error-boundary/index.jsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AA6H/C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS;IAI7C,KAAK;;;;IAHX,cAOC;IAED,iBAAiB,CAAE,KAAK,KAAA,EAAE,SAAS,KAAA,QAKlC;IAED,MAAM,CAAC,wBAAwB,CAAE,KAAK,KAAA;;MAErC;IAED,MAAM,QAoCL;CACD"}
@@ -0,0 +1,3 @@
1
+ declare function DocumentTools(): import("react").JSX.Element;
2
+ export default DocumentTools;
3
+ //# sourceMappingURL=index.d.ts.map