@wordpress/boot 0.19.0 → 0.21.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.
- package/CHANGELOG.md +38 -0
- package/README.md +4 -0
- package/build-module/components/app/index.mjs.map +2 -2
- package/build-module/components/app/router.mjs +100 -4
- package/build-module/components/app/router.mjs.map +3 -3
- package/build-module/components/app/use-route-title.mjs.map +2 -2
- package/build-module/components/canvas/back-button.mjs.map +2 -2
- package/build-module/components/canvas/index.mjs +72 -13
- package/build-module/components/canvas/index.mjs.map +2 -2
- package/build-module/components/canvas/site-preview.mjs +50 -0
- package/build-module/components/canvas/site-preview.mjs.map +7 -0
- package/build-module/components/canvas/use-navigate-to-entity-record.mjs +122 -0
- package/build-module/components/canvas/use-navigate-to-entity-record.mjs.map +7 -0
- package/build-module/components/canvas/viewport.mjs +18 -0
- package/build-module/components/canvas/viewport.mjs.map +7 -0
- package/build-module/components/canvas-renderer/index.mjs.map +2 -2
- package/build-module/components/error-boundary/index.mjs +129 -0
- package/build-module/components/error-boundary/index.mjs.map +7 -0
- package/build-module/components/navigation/drilldown-item/index.mjs +91 -1
- package/build-module/components/navigation/drilldown-item/index.mjs.map +3 -3
- package/build-module/components/navigation/dropdown-item/index.mjs +99 -12
- package/build-module/components/navigation/dropdown-item/index.mjs.map +4 -4
- package/build-module/components/navigation/index.mjs +1 -2
- package/build-module/components/navigation/index.mjs.map +2 -2
- package/build-module/components/navigation/items.mjs.map +2 -2
- package/build-module/components/navigation/navigation-item/index.mjs +88 -15
- package/build-module/components/navigation/navigation-item/index.mjs.map +3 -3
- package/build-module/components/navigation/navigation-screen/index.mjs +111 -38
- package/build-module/components/navigation/navigation-screen/index.mjs.map +3 -3
- package/build-module/components/navigation/path-matching.mjs.map +2 -2
- package/build-module/components/navigation/router-link-item.mjs.map +2 -2
- package/build-module/components/navigation/use-sidebar-parent.mjs +1 -1
- package/build-module/components/navigation/use-sidebar-parent.mjs.map +2 -2
- package/build-module/components/plugin-area/index.mjs +29 -0
- package/build-module/components/plugin-area/index.mjs.map +7 -0
- package/build-module/components/root/index.mjs +220 -122
- package/build-module/components/root/index.mjs.map +3 -3
- package/build-module/components/root/single-page.mjs +139 -47
- package/build-module/components/root/single-page.mjs.map +3 -3
- package/build-module/components/root/use-sync-body-background.mjs.map +2 -2
- package/build-module/components/save-button/index.mjs +127 -16
- package/build-module/components/save-button/index.mjs.map +3 -3
- package/build-module/components/save-panel/index.mjs +91 -1
- package/build-module/components/save-panel/index.mjs.map +3 -3
- package/build-module/components/save-panel/use-save-shortcut.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +90 -10
- package/build-module/components/sidebar/index.mjs.map +3 -3
- package/build-module/index.mjs +0 -16
- package/build-module/index.mjs.map +3 -3
- package/build-module/lock-unlock.mjs.map +2 -2
- package/build-module/store/actions.mjs +8 -0
- package/build-module/store/actions.mjs.map +2 -2
- package/build-module/store/index.mjs.map +2 -2
- package/build-module/store/reducer.mjs +16 -1
- package/build-module/store/reducer.mjs.map +2 -2
- package/build-module/store/selectors.mjs +9 -0
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-types/components/app/index.d.ts.map +1 -1
- package/build-types/components/app/router.d.ts +0 -3
- package/build-types/components/app/router.d.ts.map +1 -1
- package/build-types/components/app/use-route-title.d.ts.map +1 -1
- package/build-types/components/canvas/back-button.d.ts.map +1 -1
- package/build-types/components/canvas/index.d.ts +0 -3
- package/build-types/components/canvas/index.d.ts.map +1 -1
- package/build-types/components/canvas/site-preview.d.ts +10 -0
- package/build-types/components/canvas/site-preview.d.ts.map +1 -0
- package/build-types/components/canvas/use-navigate-to-entity-record.d.ts +40 -0
- package/build-types/components/canvas/use-navigate-to-entity-record.d.ts.map +1 -0
- package/build-types/components/canvas/viewport.d.ts +15 -0
- package/build-types/components/canvas/viewport.d.ts.map +1 -0
- package/build-types/components/canvas-renderer/index.d.ts.map +1 -1
- package/build-types/components/error-boundary/index.d.ts +22 -0
- package/build-types/components/error-boundary/index.d.ts.map +1 -0
- package/build-types/components/navigation/drilldown-item/index.d.ts.map +1 -1
- package/build-types/components/navigation/dropdown-item/index.d.ts +0 -1
- package/build-types/components/navigation/dropdown-item/index.d.ts.map +1 -1
- package/build-types/components/navigation/index.d.ts.map +1 -1
- package/build-types/components/navigation/items.d.ts +0 -3
- package/build-types/components/navigation/items.d.ts.map +1 -1
- package/build-types/components/navigation/navigation-item/index.d.ts +0 -1
- package/build-types/components/navigation/navigation-item/index.d.ts.map +1 -1
- package/build-types/components/navigation/navigation-screen/index.d.ts +0 -7
- package/build-types/components/navigation/navigation-screen/index.d.ts.map +1 -1
- package/build-types/components/navigation/path-matching.d.ts +0 -3
- package/build-types/components/navigation/path-matching.d.ts.map +1 -1
- package/build-types/components/navigation/router-link-item.d.ts.map +1 -1
- package/build-types/components/navigation/use-sidebar-parent.d.ts.map +1 -1
- package/build-types/components/plugin-area/index.d.ts +12 -0
- package/build-types/components/plugin-area/index.d.ts.map +1 -0
- package/build-types/components/root/index.d.ts +0 -1
- package/build-types/components/root/index.d.ts.map +1 -1
- package/build-types/components/root/single-page.d.ts +0 -1
- package/build-types/components/root/single-page.d.ts.map +1 -1
- package/build-types/components/root/use-sync-body-background.d.ts +1 -1
- package/build-types/components/root/use-sync-body-background.d.ts.map +1 -1
- package/build-types/components/save-button/index.d.ts +0 -4
- package/build-types/components/save-button/index.d.ts.map +1 -1
- package/build-types/components/save-panel/index.d.ts.map +1 -1
- package/build-types/components/save-panel/use-save-shortcut.d.ts.map +1 -1
- package/build-types/components/sidebar/index.d.ts +0 -1
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/index.d.ts +0 -5
- package/build-types/index.d.ts.map +1 -1
- package/build-types/lock-unlock.d.ts.map +1 -1
- package/build-types/store/actions.d.ts +15 -5
- package/build-types/store/actions.d.ts.map +1 -1
- package/build-types/store/index.d.ts.map +1 -1
- package/build-types/store/reducer.d.ts +0 -3
- package/build-types/store/reducer.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +12 -3
- package/build-types/store/selectors.d.ts.map +1 -1
- package/build-types/store/types.d.ts +34 -6
- package/build-types/store/types.d.ts.map +1 -1
- package/package.json +28 -25
- package/src/components/app/index.tsx +0 -7
- package/src/components/app/router.tsx +19 -18
- package/src/components/app/use-route-title.ts +0 -7
- package/src/components/canvas/back-button.tsx +0 -3
- package/src/components/canvas/index.tsx +117 -22
- package/src/components/canvas/site-preview.tsx +64 -0
- package/src/components/canvas/use-navigate-to-entity-record.ts +220 -0
- package/src/components/canvas/viewport.ts +34 -0
- package/src/components/canvas-renderer/index.tsx +0 -7
- package/src/components/error-boundary/index.tsx +71 -0
- package/src/components/error-boundary/style.module.scss +13 -0
- package/src/components/navigation/drilldown-item/index.tsx +2 -13
- package/src/components/navigation/dropdown-item/index.tsx +11 -19
- package/src/components/navigation/dropdown-item/{style.scss → style.module.scss} +6 -2
- package/src/components/navigation/index.tsx +1 -9
- package/src/components/navigation/items.tsx +0 -7
- package/src/components/navigation/navigation-item/index.tsx +3 -18
- package/src/components/navigation/navigation-item/{style.scss → style.module.scss} +7 -14
- package/src/components/navigation/navigation-screen/index.tsx +6 -26
- package/src/components/navigation/navigation-screen/{style.scss → style.module.scss} +10 -9
- package/src/components/navigation/path-matching.ts +0 -3
- package/src/components/navigation/router-link-item.tsx +0 -11
- package/src/components/navigation/use-sidebar-parent.ts +1 -13
- package/src/components/plugin-area/index.tsx +34 -0
- package/src/components/root/{style.scss → _layout.module.scss} +71 -40
- package/src/components/root/_view-transitions.module.scss +205 -0
- package/src/components/root/index.tsx +44 -35
- package/src/components/root/single-page.tsx +15 -18
- package/src/components/root/style.module.scss +2 -0
- package/src/components/root/use-sync-body-background.ts +1 -4
- package/src/components/save-button/index.tsx +36 -21
- package/src/components/save-button/style.module.scss +10 -0
- package/src/components/save-panel/index.tsx +2 -8
- package/src/components/save-panel/style.module.scss +7 -0
- package/src/components/save-panel/use-save-shortcut.ts +0 -3
- package/src/components/sidebar/index.tsx +5 -12
- package/src/components/sidebar/style.module.scss +29 -0
- package/src/index.tsx +0 -5
- package/src/lock-unlock.ts +0 -3
- package/src/store/actions.ts +18 -4
- package/src/store/index.ts +0 -7
- package/src/store/reducer.ts +19 -3
- package/src/store/selectors.ts +28 -3
- package/src/store/types.ts +37 -6
- package/build-style/style-rtl.css +0 -132
- package/build-style/style.css +0 -132
- package/build-style/view-transitions-rtl.css +0 -189
- package/build-style/view-transitions.css +0 -189
- package/build-types/components/site-hub/index.d.ts +0 -4
- package/build-types/components/site-hub/index.d.ts.map +0 -1
- package/build-types/components/site-icon/index.d.ts +0 -9
- package/build-types/components/site-icon/index.d.ts.map +0 -1
- package/build-types/components/site-icon-link/index.d.ts +0 -8
- package/build-types/components/site-icon-link/index.d.ts.map +0 -1
- package/build-types/components/user-theme-provider/index.d.ts +0 -6
- package/build-types/components/user-theme-provider/index.d.ts.map +0 -1
- package/src/components/save-button/style.scss +0 -9
- package/src/components/sidebar/style.scss +0 -23
- package/src/style.scss +0 -33
- package/src/view-transitions.scss +0 -221
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
@use "@wordpress/base-styles/colors";
|
|
2
|
-
|
|
3
|
-
// Disable view transitions on mobile devices
|
|
4
|
-
// to avoid conflicts with sidebar navigation.
|
|
5
|
-
@media (max-width: 782px) {
|
|
6
|
-
* {
|
|
7
|
-
view-transition-name: none !important;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
::view-transition-old(root),
|
|
12
|
-
::view-transition-new(root) {
|
|
13
|
-
animation-duration: 250ms;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@media not (prefers-reduced-motion: reduce) {
|
|
17
|
-
.boot-layout__canvas .interface-interface-skeleton__header {
|
|
18
|
-
view-transition-name: boot--canvas-header;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.boot-layout__canvas .interface-interface-skeleton__sidebar {
|
|
22
|
-
view-transition-name: boot--canvas-sidebar;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Default (non-Safari) view transition names
|
|
26
|
-
.boot-layout__stage {
|
|
27
|
-
view-transition-name: boot--stage;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.boot-layout__inspector {
|
|
31
|
-
view-transition-name: boot--inspector;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.boot-layout__canvas:not(.is-full-canvas),
|
|
35
|
-
.boot-layout__canvas.is-full-canvas
|
|
36
|
-
.interface-interface-skeleton__content {
|
|
37
|
-
view-transition-name: boot--canvas;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Safari-specific view transition names
|
|
41
|
-
// Uses CSS feature detection instead of .is-safari class
|
|
42
|
-
@supports (-webkit-hyphens:none) and (not (-moz-appearance:none)) {
|
|
43
|
-
.boot-layout__stage {
|
|
44
|
-
view-transition-name: boot-safari--stage;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.boot-layout__inspector {
|
|
48
|
-
view-transition-name: boot-safari--inspector;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.boot-layout__canvas:not(.is-full-canvas),
|
|
52
|
-
.boot-layout__canvas.is-full-canvas
|
|
53
|
-
.interface-interface-skeleton__content {
|
|
54
|
-
view-transition-name: boot-safari--canvas;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// For any popover that stays open across a query change.
|
|
59
|
-
// Naming it avoids the stage overlaying it.
|
|
60
|
-
.components-popover:first-of-type {
|
|
61
|
-
view-transition-name: boot--components-popover;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
::view-transition-group(boot--canvas-header),
|
|
66
|
-
::view-transition-group(boot--canvas-sidebar),
|
|
67
|
-
::view-transition-group(boot-safari--canvas),
|
|
68
|
-
::view-transition-group(boot--canvas) {
|
|
69
|
-
z-index: 1;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Safari-specific pseudo-element styles with width: auto fix
|
|
73
|
-
::view-transition-new(boot-safari--canvas),
|
|
74
|
-
::view-transition-old(boot-safari--canvas),
|
|
75
|
-
::view-transition-new(boot-safari--stage),
|
|
76
|
-
::view-transition-old(boot-safari--stage),
|
|
77
|
-
::view-transition-old(boot-safari--inspector),
|
|
78
|
-
::view-transition-new(boot-safari--inspector) {
|
|
79
|
-
width: auto;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// Safari trips up with using object fit on the pseudo images and filling out
|
|
83
|
-
// background.
|
|
84
|
-
::view-transition-new(boot--canvas),
|
|
85
|
-
::view-transition-old(boot--canvas),
|
|
86
|
-
::view-transition-new(boot--stage),
|
|
87
|
-
::view-transition-old(boot--stage),
|
|
88
|
-
::view-transition-new(boot--inspector),
|
|
89
|
-
::view-transition-old(boot--inspector) {
|
|
90
|
-
background: colors.$white;
|
|
91
|
-
border-radius: var(--wpds-border-radius-xl);
|
|
92
|
-
width: 100%;
|
|
93
|
-
height: 100%;
|
|
94
|
-
object-fit: none;
|
|
95
|
-
object-position: left top;
|
|
96
|
-
overflow: hidden;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
::view-transition-new(boot--canvas),
|
|
100
|
-
::view-transition-old(boot--canvas) {
|
|
101
|
-
object-position: center top;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
::view-transition-old(boot-safari--inspector):only-child,
|
|
105
|
-
::view-transition-old(boot--inspector):only-child,
|
|
106
|
-
::view-transition-old(boot-safari--stage):only-child,
|
|
107
|
-
::view-transition-old(boot--stage):only-child {
|
|
108
|
-
animation-name: zoomOut;
|
|
109
|
-
will-change: transform, opacity;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
::view-transition-new(boot-safari--inspector):only-child,
|
|
113
|
-
::view-transition-new(boot--inspector):only-child,
|
|
114
|
-
::view-transition-new(boot-safari--stage):only-child,
|
|
115
|
-
::view-transition-new(boot--stage):only-child {
|
|
116
|
-
animation-name: zoomIn;
|
|
117
|
-
will-change: transform, opacity;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
@keyframes zoomOut {
|
|
121
|
-
from {
|
|
122
|
-
transform: scale(1);
|
|
123
|
-
opacity: 1;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
to {
|
|
127
|
-
transform: scale(0.9);
|
|
128
|
-
opacity: 0;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@keyframes zoomIn {
|
|
133
|
-
from {
|
|
134
|
-
transform: scale(0.95);
|
|
135
|
-
opacity: 0;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
to {
|
|
139
|
-
transform: scale(1);
|
|
140
|
-
opacity: 1;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
::view-transition-new(boot-safari--canvas):only-child,
|
|
145
|
-
::view-transition-new(boot--canvas):only-child {
|
|
146
|
-
animation-name: slideFromRight;
|
|
147
|
-
will-change: transform;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
::view-transition-old(boot-safari--canvas):only-child,
|
|
151
|
-
::view-transition-old(boot--canvas):only-child {
|
|
152
|
-
animation-name: slideToRight;
|
|
153
|
-
will-change: transform;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
@keyframes slideFromRight {
|
|
157
|
-
from {
|
|
158
|
-
// Should ideally be 100% + 16px, but we also need to take into account
|
|
159
|
-
// that the canvas can be the editor-interface-skeleton__content, which
|
|
160
|
-
// not placed on the right side.
|
|
161
|
-
transform: translateX(100vw);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
to {
|
|
165
|
-
transform: translateX(0);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
@keyframes slideToRight {
|
|
170
|
-
from {
|
|
171
|
-
transform: translateX(0);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
to {
|
|
175
|
-
transform: translateX(100vw);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
::view-transition-new(boot--canvas-header):only-child {
|
|
180
|
-
animation-name: slideHeaderFromTop;
|
|
181
|
-
will-change: transform;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
::view-transition-old(boot--canvas-header):only-child {
|
|
185
|
-
animation-name: slideHeaderToTop;
|
|
186
|
-
will-change: transform;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
@keyframes slideHeaderFromTop {
|
|
190
|
-
from {
|
|
191
|
-
transform: translateY(-100%);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
@keyframes slideHeaderToTop {
|
|
196
|
-
to {
|
|
197
|
-
transform: translateY(-100%);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
::view-transition-new(boot--canvas-sidebar):only-child {
|
|
202
|
-
animation-name: slideSidebarFromRight;
|
|
203
|
-
will-change: transform;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
::view-transition-old(boot--canvas-sidebar):only-child {
|
|
207
|
-
animation-name: slideSidebarToRight;
|
|
208
|
-
will-change: transform;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@keyframes slideSidebarFromRight {
|
|
212
|
-
from {
|
|
213
|
-
transform: translateX(100%);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
@keyframes slideSidebarToRight {
|
|
218
|
-
to {
|
|
219
|
-
transform: translateX(100%);
|
|
220
|
-
}
|
|
221
|
-
}
|