@wordpress/editor 12.14.1-next.d6164808d3.0 → 12.16.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 (70) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/components/post-featured-image/index.js +6 -4
  3. package/build/components/post-featured-image/index.js.map +1 -1
  4. package/build/components/post-publish-panel/index.js +6 -1
  5. package/build/components/post-publish-panel/index.js.map +1 -1
  6. package/build/components/post-schedule/index.js +1 -1
  7. package/build/components/post-schedule/index.js.map +1 -1
  8. package/build/components/post-schedule/label.js +2 -2
  9. package/build/components/post-schedule/label.js.map +1 -1
  10. package/build/components/post-taxonomies/flat-term-selector.js +6 -15
  11. package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
  12. package/build/components/post-trash/index.js +5 -1
  13. package/build/components/post-trash/index.js.map +1 -1
  14. package/build/components/post-url/label.js +1 -1
  15. package/build/components/post-url/label.js.map +1 -1
  16. package/build/components/provider/use-block-editor-settings.js +13 -5
  17. package/build/components/provider/use-block-editor-settings.js.map +1 -1
  18. package/build/store/actions.js +7 -0
  19. package/build/store/actions.js.map +1 -1
  20. package/build/store/reducer.js +26 -0
  21. package/build/store/reducer.js.map +1 -1
  22. package/build/store/selectors.js +14 -0
  23. package/build/store/selectors.js.map +1 -1
  24. package/build-module/components/post-featured-image/index.js +7 -5
  25. package/build-module/components/post-featured-image/index.js.map +1 -1
  26. package/build-module/components/post-publish-panel/index.js +7 -2
  27. package/build-module/components/post-publish-panel/index.js.map +1 -1
  28. package/build-module/components/post-schedule/index.js +2 -4
  29. package/build-module/components/post-schedule/index.js.map +1 -1
  30. package/build-module/components/post-schedule/label.js +3 -4
  31. package/build-module/components/post-schedule/label.js.map +1 -1
  32. package/build-module/components/post-taxonomies/flat-term-selector.js +7 -15
  33. package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
  34. package/build-module/components/post-trash/index.js +5 -1
  35. package/build-module/components/post-trash/index.js.map +1 -1
  36. package/build-module/components/post-url/label.js +1 -1
  37. package/build-module/components/post-url/label.js.map +1 -1
  38. package/build-module/components/provider/use-block-editor-settings.js +14 -6
  39. package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
  40. package/build-module/store/actions.js +7 -0
  41. package/build-module/store/actions.js.map +1 -1
  42. package/build-module/store/reducer.js +24 -0
  43. package/build-module/store/reducer.js.map +1 -1
  44. package/build-module/store/selectors.js +11 -0
  45. package/build-module/store/selectors.js.map +1 -1
  46. package/package.json +28 -28
  47. package/src/components/document-outline/test/__snapshots__/index.js.snap +92 -48
  48. package/src/components/document-outline/test/index.js +27 -44
  49. package/src/components/page-attributes/test/order.js +57 -64
  50. package/src/components/post-featured-image/index.js +3 -3
  51. package/src/components/post-publish-button/test/index.js +88 -71
  52. package/src/components/post-publish-panel/index.js +7 -6
  53. package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +670 -130
  54. package/src/components/post-publish-panel/test/index.js +30 -13
  55. package/src/components/post-saved-state/test/__snapshots__/index.js.snap +33 -24
  56. package/src/components/post-saved-state/test/index.js +31 -14
  57. package/src/components/post-schedule/index.js +2 -2
  58. package/src/components/post-schedule/label.js +3 -3
  59. package/src/components/post-schedule/test/label.js +7 -7
  60. package/src/components/post-slug/test/index.js +12 -25
  61. package/src/components/post-taxonomies/flat-term-selector.js +7 -18
  62. package/src/components/post-taxonomies/test/index.js +112 -44
  63. package/src/components/post-trash/index.js +5 -2
  64. package/src/components/post-url/label.js +1 -1
  65. package/src/components/provider/use-block-editor-settings.js +28 -8
  66. package/src/components/theme-support-check/test/index.js +13 -15
  67. package/src/store/actions.js +2 -0
  68. package/src/store/reducer.js +21 -0
  69. package/src/store/selectors.js +11 -0
  70. package/src/store/test/actions.js +42 -0
@@ -1,197 +1,737 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`PostPublishPanel should render the post-publish panel if the post is published 1`] = `
4
- <div
5
- className="editor-post-publish-panel"
6
- >
4
+ .emotion-0 {
5
+ font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
6
+ font-size: 13px;
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ .emotion-0 *,
11
+ .emotion-0 *::before,
12
+ .emotion-0 *::after {
13
+ box-sizing: inherit;
14
+ }
15
+
16
+ .emotion-2 {
17
+ margin-bottom: calc(4px * 2);
18
+ }
19
+
20
+ .components-panel__row .emotion-2 {
21
+ margin-bottom: inherit;
22
+ }
23
+
24
+ .emotion-4 {
25
+ font-size: 11px;
26
+ font-weight: 500;
27
+ line-height: 1.4;
28
+ text-transform: uppercase;
29
+ display: inline-block;
30
+ margin-bottom: calc(4px * 2);
31
+ padding: 0;
32
+ }
33
+
34
+ <div>
7
35
  <div
8
- className="editor-post-publish-panel__header"
36
+ class="editor-post-publish-panel"
9
37
  >
10
- <ForwardRef(Button)
11
- icon={
12
- <SVG
38
+ <div
39
+ class="editor-post-publish-panel__header"
40
+ >
41
+ <button
42
+ aria-label="Close panel"
43
+ class="components-button has-icon"
44
+ type="button"
45
+ >
46
+ <svg
47
+ aria-hidden="true"
48
+ focusable="false"
49
+ height="24"
13
50
  viewBox="0 0 24 24"
51
+ width="24"
14
52
  xmlns="http://www.w3.org/2000/svg"
15
53
  >
16
- <Path
54
+ <path
17
55
  d="M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
18
56
  />
19
- </SVG>
20
- }
21
- label="Close panel"
22
- />
23
- </div>
24
- <div
25
- className="editor-post-publish-panel__content"
26
- >
27
- <WithSelect(PostPublishPanelPostpublish)
28
- focusOnMount={true}
29
- />
30
- </div>
31
- <div
32
- className="editor-post-publish-panel__footer"
33
- >
34
- <CheckboxControl
35
- label="Always show pre-publish checks."
36
- />
57
+ </svg>
58
+ </button>
59
+ </div>
60
+ <div
61
+ class="editor-post-publish-panel__content"
62
+ >
63
+ <div
64
+ class="post-publish-panel__postpublish"
65
+ >
66
+ <div
67
+ class="components-panel__body post-publish-panel__postpublish-header is-opened"
68
+ >
69
+ <a
70
+ href="https://wordpress.local/sample-page/"
71
+ >
72
+ (no title)
73
+ </a>
74
+
75
+ is now live.
76
+ </div>
77
+ <div
78
+ class="components-panel__body is-opened"
79
+ >
80
+ <p
81
+ class="post-publish-panel__postpublish-subheader"
82
+ >
83
+ <strong>
84
+ What’s next?
85
+ </strong>
86
+ </p>
87
+ <div
88
+ class="post-publish-panel__postpublish-post-address-container"
89
+ >
90
+ <div
91
+ class="components-base-control post-publish-panel__postpublish-post-address emotion-0 emotion-1"
92
+ >
93
+ <div
94
+ class="components-base-control__field emotion-2 emotion-3"
95
+ >
96
+ <label
97
+ class="components-base-control__label emotion-4 emotion-5"
98
+ for="inspector-text-control-0"
99
+ >
100
+ post address
101
+ </label>
102
+ <input
103
+ class="components-text-control__input"
104
+ id="inspector-text-control-0"
105
+ readonly=""
106
+ type="text"
107
+ value="https://wordpress.local/sample-page/"
108
+ />
109
+ </div>
110
+ </div>
111
+ <div
112
+ class="post-publish-panel__postpublish-post-address__copy-button-wrap"
113
+ >
114
+ <button
115
+ class="components-button is-secondary"
116
+ type="button"
117
+ >
118
+ Copy
119
+ </button>
120
+ </div>
121
+ </div>
122
+ <div
123
+ class="post-publish-panel__postpublish-buttons"
124
+ >
125
+ <a
126
+ class="components-button is-primary"
127
+ href="https://wordpress.local/sample-page/"
128
+ />
129
+ <a
130
+ class="components-button is-secondary"
131
+ href="post-new.php?"
132
+ />
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ <div
138
+ class="editor-post-publish-panel__footer"
139
+ >
140
+ <div
141
+ class="components-base-control components-checkbox-control emotion-0 emotion-1"
142
+ >
143
+ <div
144
+ class="components-base-control__field emotion-2 emotion-3"
145
+ >
146
+ <span
147
+ class="components-checkbox-control__input-container"
148
+ >
149
+ <input
150
+ class="components-checkbox-control__input"
151
+ id="inspector-checkbox-control-3"
152
+ type="checkbox"
153
+ value="1"
154
+ />
155
+ </span>
156
+ <label
157
+ class="components-checkbox-control__label"
158
+ for="inspector-checkbox-control-3"
159
+ >
160
+ Always show pre-publish checks.
161
+ </label>
162
+ </div>
163
+ </div>
164
+ </div>
37
165
  </div>
38
166
  </div>
39
167
  `;
40
168
 
41
169
  exports[`PostPublishPanel should render the post-publish panel if the post is scheduled 1`] = `
42
- <div
43
- className="editor-post-publish-panel"
44
- >
170
+ .emotion-0 {
171
+ font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
172
+ font-size: 13px;
173
+ box-sizing: border-box;
174
+ }
175
+
176
+ .emotion-0 *,
177
+ .emotion-0 *::before,
178
+ .emotion-0 *::after {
179
+ box-sizing: inherit;
180
+ }
181
+
182
+ .emotion-2 {
183
+ margin-bottom: calc(4px * 2);
184
+ }
185
+
186
+ .components-panel__row .emotion-2 {
187
+ margin-bottom: inherit;
188
+ }
189
+
190
+ .emotion-4 {
191
+ font-size: 11px;
192
+ font-weight: 500;
193
+ line-height: 1.4;
194
+ text-transform: uppercase;
195
+ display: inline-block;
196
+ margin-bottom: calc(4px * 2);
197
+ padding: 0;
198
+ }
199
+
200
+ <div>
45
201
  <div
46
- className="editor-post-publish-panel__header"
202
+ class="editor-post-publish-panel"
47
203
  >
48
- <ForwardRef(Button)
49
- icon={
50
- <SVG
204
+ <div
205
+ class="editor-post-publish-panel__header"
206
+ >
207
+ <button
208
+ aria-label="Close panel"
209
+ class="components-button has-icon"
210
+ type="button"
211
+ >
212
+ <svg
213
+ aria-hidden="true"
214
+ focusable="false"
215
+ height="24"
51
216
  viewBox="0 0 24 24"
217
+ width="24"
52
218
  xmlns="http://www.w3.org/2000/svg"
53
219
  >
54
- <Path
220
+ <path
55
221
  d="M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"
56
222
  />
57
- </SVG>
58
- }
59
- label="Close panel"
60
- />
61
- </div>
62
- <div
63
- className="editor-post-publish-panel__content"
64
- >
65
- <WithSelect(PostPublishPanelPostpublish)
66
- focusOnMount={true}
67
- />
68
- </div>
69
- <div
70
- className="editor-post-publish-panel__footer"
71
- >
72
- <CheckboxControl
73
- label="Always show pre-publish checks."
74
- />
223
+ </svg>
224
+ </button>
225
+ </div>
226
+ <div
227
+ class="editor-post-publish-panel__content"
228
+ >
229
+ <div
230
+ class="post-publish-panel__postpublish"
231
+ >
232
+ <div
233
+ class="components-panel__body post-publish-panel__postpublish-header is-opened"
234
+ >
235
+ <a
236
+ href="https://wordpress.local/sample-page/"
237
+ >
238
+ (no title)
239
+ </a>
240
+
241
+ is now live.
242
+ </div>
243
+ <div
244
+ class="components-panel__body is-opened"
245
+ >
246
+ <p
247
+ class="post-publish-panel__postpublish-subheader"
248
+ >
249
+ <strong>
250
+ What’s next?
251
+ </strong>
252
+ </p>
253
+ <div
254
+ class="post-publish-panel__postpublish-post-address-container"
255
+ >
256
+ <div
257
+ class="components-base-control post-publish-panel__postpublish-post-address emotion-0 emotion-1"
258
+ >
259
+ <div
260
+ class="components-base-control__field emotion-2 emotion-3"
261
+ >
262
+ <label
263
+ class="components-base-control__label emotion-4 emotion-5"
264
+ for="inspector-text-control-1"
265
+ >
266
+ post address
267
+ </label>
268
+ <input
269
+ class="components-text-control__input"
270
+ id="inspector-text-control-1"
271
+ readonly=""
272
+ type="text"
273
+ value="https://wordpress.local/sample-page/"
274
+ />
275
+ </div>
276
+ </div>
277
+ <div
278
+ class="post-publish-panel__postpublish-post-address__copy-button-wrap"
279
+ >
280
+ <button
281
+ class="components-button is-secondary"
282
+ type="button"
283
+ >
284
+ Copy
285
+ </button>
286
+ </div>
287
+ </div>
288
+ <div
289
+ class="post-publish-panel__postpublish-buttons"
290
+ >
291
+ <a
292
+ class="components-button is-primary"
293
+ href="https://wordpress.local/sample-page/"
294
+ />
295
+ <a
296
+ class="components-button is-secondary"
297
+ href="post-new.php?"
298
+ />
299
+ </div>
300
+ </div>
301
+ </div>
302
+ </div>
303
+ <div
304
+ class="editor-post-publish-panel__footer"
305
+ >
306
+ <div
307
+ class="components-base-control components-checkbox-control emotion-0 emotion-1"
308
+ >
309
+ <div
310
+ class="components-base-control__field emotion-2 emotion-3"
311
+ >
312
+ <span
313
+ class="components-checkbox-control__input-container"
314
+ >
315
+ <input
316
+ class="components-checkbox-control__input"
317
+ id="inspector-checkbox-control-4"
318
+ type="checkbox"
319
+ value="1"
320
+ />
321
+ </span>
322
+ <label
323
+ class="components-checkbox-control__label"
324
+ for="inspector-checkbox-control-4"
325
+ >
326
+ Always show pre-publish checks.
327
+ </label>
328
+ </div>
329
+ </div>
330
+ </div>
75
331
  </div>
76
332
  </div>
77
333
  `;
78
334
 
79
335
  exports[`PostPublishPanel should render the pre-publish panel if post status is scheduled but date is before now 1`] = `
80
- <div
81
- className="editor-post-publish-panel"
82
- >
336
+ .emotion-0 {
337
+ font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
338
+ font-size: 13px;
339
+ box-sizing: border-box;
340
+ }
341
+
342
+ .emotion-0 *,
343
+ .emotion-0 *::before,
344
+ .emotion-0 *::after {
345
+ box-sizing: inherit;
346
+ }
347
+
348
+ .emotion-2 {
349
+ margin-bottom: calc(4px * 2);
350
+ }
351
+
352
+ .components-panel__row .emotion-2 {
353
+ margin-bottom: inherit;
354
+ }
355
+
356
+ <div>
83
357
  <div
84
- className="editor-post-publish-panel__header"
358
+ class="editor-post-publish-panel"
85
359
  >
86
360
  <div
87
- className="editor-post-publish-panel__header-publish-button"
361
+ class="editor-post-publish-panel__header"
362
+ >
363
+ <div
364
+ class="editor-post-publish-panel__header-publish-button"
365
+ >
366
+ <button
367
+ aria-disabled="true"
368
+ class="components-button editor-post-publish-button editor-post-publish-button__button is-primary"
369
+ type="button"
370
+ >
371
+ Submit for Review
372
+ </button>
373
+ </div>
374
+ <div
375
+ class="editor-post-publish-panel__header-cancel-button"
376
+ >
377
+ <button
378
+ class="components-button is-secondary"
379
+ type="button"
380
+ >
381
+ Cancel
382
+ </button>
383
+ </div>
384
+ </div>
385
+ <div
386
+ class="editor-post-publish-panel__content"
88
387
  >
89
- <WithSelect(WithDispatch(PostPublishButton))
90
- focusOnMount={true}
91
- onSubmit={[Function]}
92
- />
388
+ <div
389
+ class="editor-post-publish-panel__prepublish"
390
+ >
391
+ <div>
392
+ <strong>
393
+ Are you ready to submit for review?
394
+ </strong>
395
+ </div>
396
+ <p>
397
+ When you’re ready, submit your work for review, and an Editor will be able to approve it for you.
398
+ </p>
399
+ <div
400
+ class="components-site-card"
401
+ >
402
+ <svg
403
+ aria-hidden="true"
404
+ class="components-site-icon"
405
+ focusable="false"
406
+ height="36px"
407
+ viewBox="-2 -2 24 24"
408
+ width="36px"
409
+ xmlns="http://www.w3.org/2000/svg"
410
+ >
411
+ <path
412
+ d="M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"
413
+ />
414
+ </svg>
415
+ <div
416
+ class="components-site-info"
417
+ >
418
+ <span
419
+ class="components-site-name"
420
+ >
421
+ (Untitled)
422
+ </span>
423
+ <span
424
+ class="components-site-home"
425
+ />
426
+ </div>
427
+ </div>
428
+ </div>
93
429
  </div>
94
430
  <div
95
- className="editor-post-publish-panel__header-cancel-button"
431
+ class="editor-post-publish-panel__footer"
96
432
  >
97
- <ForwardRef(Button)
98
- variant="secondary"
433
+ <div
434
+ class="components-base-control components-checkbox-control emotion-0 emotion-1"
99
435
  >
100
- Cancel
101
- </ForwardRef(Button)>
436
+ <div
437
+ class="components-base-control__field emotion-2 emotion-3"
438
+ >
439
+ <span
440
+ class="components-checkbox-control__input-container"
441
+ >
442
+ <input
443
+ class="components-checkbox-control__input"
444
+ id="inspector-checkbox-control-1"
445
+ type="checkbox"
446
+ value="1"
447
+ />
448
+ </span>
449
+ <label
450
+ class="components-checkbox-control__label"
451
+ for="inspector-checkbox-control-1"
452
+ >
453
+ Always show pre-publish checks.
454
+ </label>
455
+ </div>
456
+ </div>
102
457
  </div>
103
458
  </div>
104
- <div
105
- className="editor-post-publish-panel__content"
106
- >
107
- <PostPublishPanelPrepublish />
108
- </div>
109
- <div
110
- className="editor-post-publish-panel__footer"
111
- >
112
- <CheckboxControl
113
- label="Always show pre-publish checks."
114
- />
115
- </div>
116
459
  </div>
117
460
  `;
118
461
 
119
462
  exports[`PostPublishPanel should render the pre-publish panel if the post is not saving, published or scheduled 1`] = `
120
- <div
121
- className="editor-post-publish-panel"
122
- >
463
+ .emotion-0 {
464
+ font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
465
+ font-size: 13px;
466
+ box-sizing: border-box;
467
+ }
468
+
469
+ .emotion-0 *,
470
+ .emotion-0 *::before,
471
+ .emotion-0 *::after {
472
+ box-sizing: inherit;
473
+ }
474
+
475
+ .emotion-2 {
476
+ margin-bottom: calc(4px * 2);
477
+ }
478
+
479
+ .components-panel__row .emotion-2 {
480
+ margin-bottom: inherit;
481
+ }
482
+
483
+ <div>
123
484
  <div
124
- className="editor-post-publish-panel__header"
485
+ class="editor-post-publish-panel"
125
486
  >
126
487
  <div
127
- className="editor-post-publish-panel__header-publish-button"
488
+ class="editor-post-publish-panel__header"
128
489
  >
129
- <WithSelect(WithDispatch(PostPublishButton))
130
- focusOnMount={true}
131
- onSubmit={[Function]}
132
- />
490
+ <div
491
+ class="editor-post-publish-panel__header-publish-button"
492
+ >
493
+ <button
494
+ aria-disabled="true"
495
+ class="components-button editor-post-publish-button editor-post-publish-button__button is-primary"
496
+ type="button"
497
+ >
498
+ Submit for Review
499
+ </button>
500
+ </div>
501
+ <div
502
+ class="editor-post-publish-panel__header-cancel-button"
503
+ >
504
+ <button
505
+ class="components-button is-secondary"
506
+ type="button"
507
+ >
508
+ Cancel
509
+ </button>
510
+ </div>
133
511
  </div>
134
512
  <div
135
- className="editor-post-publish-panel__header-cancel-button"
513
+ class="editor-post-publish-panel__content"
136
514
  >
137
- <ForwardRef(Button)
138
- variant="secondary"
515
+ <div
516
+ class="editor-post-publish-panel__prepublish"
139
517
  >
140
- Cancel
141
- </ForwardRef(Button)>
518
+ <div>
519
+ <strong>
520
+ Are you ready to submit for review?
521
+ </strong>
522
+ </div>
523
+ <p>
524
+ When you’re ready, submit your work for review, and an Editor will be able to approve it for you.
525
+ </p>
526
+ <div
527
+ class="components-site-card"
528
+ >
529
+ <svg
530
+ aria-hidden="true"
531
+ class="components-site-icon"
532
+ focusable="false"
533
+ height="36px"
534
+ viewBox="-2 -2 24 24"
535
+ width="36px"
536
+ xmlns="http://www.w3.org/2000/svg"
537
+ >
538
+ <path
539
+ d="M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"
540
+ />
541
+ </svg>
542
+ <div
543
+ class="components-site-info"
544
+ >
545
+ <span
546
+ class="components-site-name"
547
+ >
548
+ (Untitled)
549
+ </span>
550
+ <span
551
+ class="components-site-home"
552
+ />
553
+ </div>
554
+ </div>
555
+ </div>
556
+ </div>
557
+ <div
558
+ class="editor-post-publish-panel__footer"
559
+ >
560
+ <div
561
+ class="components-base-control components-checkbox-control emotion-0 emotion-1"
562
+ >
563
+ <div
564
+ class="components-base-control__field emotion-2 emotion-3"
565
+ >
566
+ <span
567
+ class="components-checkbox-control__input-container"
568
+ >
569
+ <input
570
+ class="components-checkbox-control__input"
571
+ id="inspector-checkbox-control-0"
572
+ type="checkbox"
573
+ value="1"
574
+ />
575
+ </span>
576
+ <label
577
+ class="components-checkbox-control__label"
578
+ for="inspector-checkbox-control-0"
579
+ >
580
+ Always show pre-publish checks.
581
+ </label>
582
+ </div>
583
+ </div>
142
584
  </div>
143
- </div>
144
- <div
145
- className="editor-post-publish-panel__content"
146
- >
147
- <PostPublishPanelPrepublish />
148
- </div>
149
- <div
150
- className="editor-post-publish-panel__footer"
151
- >
152
- <CheckboxControl
153
- label="Always show pre-publish checks."
154
- />
155
585
  </div>
156
586
  </div>
157
587
  `;
158
588
 
159
589
  exports[`PostPublishPanel should render the spinner if the post is being saved 1`] = `
160
- <div
161
- className="editor-post-publish-panel"
162
- >
590
+ @keyframes animation-0 {
591
+ from {
592
+ -webkit-transform: rotate(0deg);
593
+ -moz-transform: rotate(0deg);
594
+ -ms-transform: rotate(0deg);
595
+ transform: rotate(0deg);
596
+ }
597
+
598
+ to {
599
+ -webkit-transform: rotate(360deg);
600
+ -moz-transform: rotate(360deg);
601
+ -ms-transform: rotate(360deg);
602
+ transform: rotate(360deg);
603
+ }
604
+ }
605
+
606
+ .emotion-0 {
607
+ width: 16px;
608
+ height: 16px;
609
+ display: inline-block;
610
+ margin: 5px 11px 0;
611
+ position: relative;
612
+ color: var( --wp-admin-theme-color );
613
+ overflow: visible;
614
+ }
615
+
616
+ .emotion-2 {
617
+ fill: transparent;
618
+ stroke-width: 1.5px;
619
+ stroke: #ddd;
620
+ }
621
+
622
+ .emotion-4 {
623
+ fill: transparent;
624
+ stroke-width: 1.5px;
625
+ stroke: currentColor;
626
+ stroke-linecap: round;
627
+ transform-origin: 50% 50%;
628
+ -webkit-animation: 1.4s linear infinite both animation-0;
629
+ animation: 1.4s linear infinite both animation-0;
630
+ }
631
+
632
+ .emotion-6 {
633
+ font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
634
+ font-size: 13px;
635
+ box-sizing: border-box;
636
+ }
637
+
638
+ .emotion-6 *,
639
+ .emotion-6 *::before,
640
+ .emotion-6 *::after {
641
+ box-sizing: inherit;
642
+ }
643
+
644
+ .emotion-8 {
645
+ margin-bottom: calc(4px * 2);
646
+ }
647
+
648
+ .components-panel__row .emotion-8 {
649
+ margin-bottom: inherit;
650
+ }
651
+
652
+ <div>
163
653
  <div
164
- className="editor-post-publish-panel__header"
654
+ class="editor-post-publish-panel"
165
655
  >
166
656
  <div
167
- className="editor-post-publish-panel__header-publish-button"
657
+ class="editor-post-publish-panel__header"
168
658
  >
169
- <WithSelect(WithDispatch(PostPublishButton))
170
- focusOnMount={true}
171
- onSubmit={[Function]}
172
- />
659
+ <div
660
+ class="editor-post-publish-panel__header-publish-button"
661
+ >
662
+ <button
663
+ aria-disabled="true"
664
+ class="components-button editor-post-publish-button editor-post-publish-button__button is-primary"
665
+ type="button"
666
+ >
667
+ Submit for Review
668
+ </button>
669
+ </div>
670
+ <div
671
+ class="editor-post-publish-panel__header-cancel-button"
672
+ >
673
+ <button
674
+ class="components-button is-secondary"
675
+ type="button"
676
+ >
677
+ Cancel
678
+ </button>
679
+ </div>
173
680
  </div>
174
681
  <div
175
- className="editor-post-publish-panel__header-cancel-button"
682
+ class="editor-post-publish-panel__content"
176
683
  >
177
- <ForwardRef(Button)
178
- variant="secondary"
684
+ <svg
685
+ class="components-spinner emotion-0 emotion-1"
686
+ focusable="false"
687
+ height="16"
688
+ role="presentation"
689
+ viewBox="0 0 100 100"
690
+ width="16"
691
+ xmlns="http://www.w3.org/2000/svg"
179
692
  >
180
- Cancel
181
- </ForwardRef(Button)>
693
+ <circle
694
+ class="emotion-2 emotion-3"
695
+ cx="50"
696
+ cy="50"
697
+ r="50"
698
+ vector-effect="non-scaling-stroke"
699
+ />
700
+ <path
701
+ class="emotion-4 emotion-5"
702
+ d="m 50 0 a 50 50 0 0 1 50 50"
703
+ vector-effect="non-scaling-stroke"
704
+ />
705
+ </svg>
706
+ </div>
707
+ <div
708
+ class="editor-post-publish-panel__footer"
709
+ >
710
+ <div
711
+ class="components-base-control components-checkbox-control emotion-6 emotion-7"
712
+ >
713
+ <div
714
+ class="components-base-control__field emotion-8 emotion-9"
715
+ >
716
+ <span
717
+ class="components-checkbox-control__input-container"
718
+ >
719
+ <input
720
+ class="components-checkbox-control__input"
721
+ id="inspector-checkbox-control-2"
722
+ type="checkbox"
723
+ value="1"
724
+ />
725
+ </span>
726
+ <label
727
+ class="components-checkbox-control__label"
728
+ for="inspector-checkbox-control-2"
729
+ >
730
+ Always show pre-publish checks.
731
+ </label>
732
+ </div>
733
+ </div>
182
734
  </div>
183
- </div>
184
- <div
185
- className="editor-post-publish-panel__content"
186
- >
187
- <ForwardRef(UnforwardedSpinner) />
188
- </div>
189
- <div
190
- className="editor-post-publish-panel__footer"
191
- >
192
- <CheckboxControl
193
- label="Always show pre-publish checks."
194
- />
195
735
  </div>
196
736
  </div>
197
737
  `;