@livespace/plugin-studio 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +122 -2
- package/dist/auth.js +220 -0
- package/dist/cli.js +67 -0
- package/dist/keys.js +42 -0
- package/dist/manifest.js +16 -0
- package/dist/page/domain/address.js +79 -0
- package/dist/page/domain/connection.js +2 -0
- package/dist/page/domain/display.js +38 -0
- package/dist/page/domain/draft.js +80 -0
- package/dist/page/domain/failures-store.js +41 -0
- package/dist/page/domain/failures.js +75 -0
- package/dist/page/domain/layout-store.js +119 -0
- package/dist/page/domain/log-store.js +37 -0
- package/dist/page/domain/navigation-store.js +17 -0
- package/dist/page/domain/plugin-data.js +70 -0
- package/dist/page/domain/plugin-store.js +257 -0
- package/dist/page/domain/probe-store.js +100 -0
- package/dist/page/domain/profile-session.js +115 -0
- package/dist/page/domain/profile-store.js +51 -0
- package/dist/page/domain/samples.js +221 -0
- package/dist/page/domain/secrets-store.js +159 -0
- package/dist/page/domain/secrets.js +135 -0
- package/dist/page/domain/settings-data.js +64 -0
- package/dist/page/domain/settings-session.js +206 -0
- package/dist/page/domain/settings-store.js +62 -0
- package/dist/page/domain/slot-store.js +50 -0
- package/dist/page/domain/studio.js +162 -0
- package/dist/page/domain/surface-store.js +71 -0
- package/dist/page/domain/toasts-store.js +60 -0
- package/dist/page/domain/view-data.js +122 -0
- package/dist/page/domain/view-store.js +132 -0
- package/dist/page/host.css +907 -0
- package/dist/page/index.html +31 -0
- package/dist/page/main.js +43 -0
- package/dist/page/plugin-studio-logo.svg +4 -0
- package/dist/page/reload.svg +1 -0
- package/dist/page/transport/browser-storage.js +41 -0
- package/dist/page/transport/console-mirror.js +48 -0
- package/dist/page/transport/embed.js +142 -0
- package/dist/page/transport/plugin-keys.js +68 -0
- package/dist/page/transport/studio-api.js +74 -0
- package/dist/page/ui/app.js +61 -0
- package/dist/page/ui/boot.js +44 -0
- package/dist/page/ui/brand.js +3 -0
- package/dist/page/ui/context.js +11 -0
- package/dist/page/ui/json-field.js +19 -0
- package/dist/page/ui/json-tokens.js +40 -0
- package/dist/page/ui/json-view.js +11 -0
- package/dist/page/ui/memo.js +23 -0
- package/dist/page/ui/messages.js +34 -0
- package/dist/page/ui/page-switcher.js +11 -0
- package/dist/page/ui/plugin-frame.js +43 -0
- package/dist/page/ui/profile-page.js +13 -0
- package/dist/page/ui/resize-handle.js +63 -0
- package/dist/page/ui/root.js +9 -0
- package/dist/page/ui/section.js +19 -0
- package/dist/page/ui/settings/config-form.js +59 -0
- package/dist/page/ui/settings/secret-field.js +22 -0
- package/dist/page/ui/settings/settings-page.js +60 -0
- package/dist/page/ui/sidebar/custom-settings-section.js +10 -0
- package/dist/page/ui/sidebar/failures-section.js +27 -0
- package/dist/page/ui/sidebar/installation-section.js +30 -0
- package/dist/page/ui/sidebar/metadata-section.js +9 -0
- package/dist/page/ui/sidebar/plugin-section.js +18 -0
- package/dist/page/ui/sidebar/preferences-section.js +16 -0
- package/dist/page/ui/sidebar/record-section.js +17 -0
- package/dist/page/ui/sidebar/viewer-section.js +8 -0
- package/dist/page/ui/sidebar-group.js +4 -0
- package/dist/page/ui/splash.js +6 -0
- package/dist/page/ui/status.js +10 -0
- package/dist/page/ui/surface.js +23 -0
- package/dist/page/ui/theme.js +13 -0
- package/dist/page/ui/toasts.js +31 -0
- package/dist/page/ui/top-bar.js +37 -0
- package/dist/server.js +519 -0
- package/dist/start.js +108 -0
- package/package.json +55 -5
|
@@ -0,0 +1,907 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Plugin Studio's own styles. The studio is Web Awesome: its theme, its tokens (--wa-*) and its
|
|
3
|
+
* layout utilities in the markup. Only the chrome around the plugin imitates Livespace, with
|
|
4
|
+
* Livespace's tokens (ls-tokens.css).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
* {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* `hidden` always wins: no layout rule below may bring a hidden part of the page back. */
|
|
12
|
+
[hidden] {
|
|
13
|
+
display: none !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:root {
|
|
17
|
+
--topbar-height: 52px;
|
|
18
|
+
--chrome-height: 32px;
|
|
19
|
+
--mono: var(--wa-font-family-code);
|
|
20
|
+
/* A dense tool: Web Awesome's native controls, a size down. */
|
|
21
|
+
--wa-form-control-value-font-size: var(--wa-font-size-s);
|
|
22
|
+
--wa-form-control-padding-block: 0.5em;
|
|
23
|
+
--wa-form-control-padding-inline: 0.75em;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
html,
|
|
27
|
+
body {
|
|
28
|
+
height: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
body {
|
|
32
|
+
margin: 0;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
background: var(--wa-color-surface-lowered);
|
|
35
|
+
color: var(--wa-color-text-normal);
|
|
36
|
+
font-size: var(--wa-font-size-s);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
#app {
|
|
40
|
+
height: 100%;
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Native controls, until 026 and 027 turn them into Web Awesome's. */
|
|
46
|
+
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
|
|
47
|
+
min-width: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where(button) {
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
code {
|
|
55
|
+
font-size: 0.92em;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Top bar: the pages, the plugin's address, and the messages pane's toggle. */
|
|
59
|
+
/* Three columns, the outer two equal, so the address sits in the middle of the window. */
|
|
60
|
+
.topbar {
|
|
61
|
+
flex: none;
|
|
62
|
+
display: grid;
|
|
63
|
+
grid-template-columns: 1fr minmax(0, 640px) 1fr;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: var(--wa-space-m);
|
|
66
|
+
height: var(--topbar-height);
|
|
67
|
+
padding: 0 var(--wa-space-l);
|
|
68
|
+
background: var(--wa-color-surface-default);
|
|
69
|
+
border-bottom: 1px solid var(--wa-color-surface-border);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Over everything, the app included while it's drawn beneath. */
|
|
73
|
+
.splash {
|
|
74
|
+
position: fixed;
|
|
75
|
+
inset: 0;
|
|
76
|
+
z-index: 100;
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
gap: var(--wa-space-m);
|
|
82
|
+
padding: var(--wa-space-l);
|
|
83
|
+
background: var(--wa-color-surface-default);
|
|
84
|
+
text-align: center;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.splash-logo {
|
|
88
|
+
height: 72px;
|
|
89
|
+
width: auto;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.splash-name {
|
|
93
|
+
font-size: var(--wa-font-size-xl);
|
|
94
|
+
font-weight: var(--wa-font-weight-bold, 700);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.brand {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: var(--wa-space-xs);
|
|
101
|
+
white-space: nowrap;
|
|
102
|
+
font-weight: var(--wa-font-weight-bold, 700);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* The logo is taller than wide (475 by 520): sized by its height, to the title's. */
|
|
106
|
+
.brand-logo {
|
|
107
|
+
display: block;
|
|
108
|
+
height: 22px;
|
|
109
|
+
width: auto;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Over the page, under its dialog and fullscreen; it stays put while the page scrolls. */
|
|
113
|
+
.page-switcher {
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: var(--wa-space-m);
|
|
116
|
+
right: var(--wa-space-m);
|
|
117
|
+
z-index: 5;
|
|
118
|
+
flex-wrap: nowrap;
|
|
119
|
+
padding: var(--wa-space-3xs);
|
|
120
|
+
background: var(--wa-color-surface-default);
|
|
121
|
+
border: 1px solid var(--wa-color-surface-border);
|
|
122
|
+
border-radius: var(--wa-border-radius-m);
|
|
123
|
+
box-shadow: var(--wa-shadow-s);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.pages a {
|
|
127
|
+
color: var(--wa-color-text-quiet);
|
|
128
|
+
text-decoration: none;
|
|
129
|
+
padding: var(--wa-space-3xs) var(--wa-space-xs);
|
|
130
|
+
border-radius: var(--wa-border-radius-s);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.pages a:hover {
|
|
134
|
+
color: var(--wa-color-text-normal);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.pages a[aria-current] {
|
|
138
|
+
background: var(--wa-color-brand-fill-quiet);
|
|
139
|
+
color: var(--wa-color-brand-on-quiet);
|
|
140
|
+
font-weight: 600;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.url-form {
|
|
144
|
+
position: relative;
|
|
145
|
+
flex-wrap: nowrap;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.url-form .address {
|
|
149
|
+
flex: 1;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.url-form .address::part(form-control-label) {
|
|
153
|
+
position: absolute;
|
|
154
|
+
width: 1px;
|
|
155
|
+
height: 1px;
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
clip-path: inset(50%);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.url-form .address::part(input) {
|
|
161
|
+
font-family: var(--mono);
|
|
162
|
+
font-size: var(--wa-font-size-xs);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.url-form .address[aria-invalid="true"]::part(base) {
|
|
166
|
+
border-color: var(--wa-color-danger-border-loud);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.url-problem {
|
|
170
|
+
position: absolute;
|
|
171
|
+
top: calc(100% + 4px);
|
|
172
|
+
left: 0;
|
|
173
|
+
z-index: 10;
|
|
174
|
+
margin: 0;
|
|
175
|
+
padding: var(--wa-space-2xs) var(--wa-space-xs);
|
|
176
|
+
border-radius: var(--wa-border-radius-s);
|
|
177
|
+
background: var(--wa-color-danger-fill-quiet);
|
|
178
|
+
color: var(--wa-color-danger-on-quiet);
|
|
179
|
+
font-size: var(--wa-font-size-xs);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.icon-button {
|
|
183
|
+
margin-left: auto;
|
|
184
|
+
display: inline-flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
justify-content: center;
|
|
187
|
+
width: 32px;
|
|
188
|
+
height: 32px;
|
|
189
|
+
padding: 0;
|
|
190
|
+
color: var(--wa-color-text-quiet);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.icon-button[aria-pressed="true"] {
|
|
194
|
+
background: var(--wa-color-brand-fill-quiet);
|
|
195
|
+
color: var(--wa-color-brand-on-quiet);
|
|
196
|
+
border-color: var(--wa-color-brand-border-quiet);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* The workspace: sidebar, main area, and the resizable messages pane. */
|
|
200
|
+
.workspace {
|
|
201
|
+
flex: 1;
|
|
202
|
+
min-height: 0;
|
|
203
|
+
display: grid;
|
|
204
|
+
grid-template-columns:
|
|
205
|
+
var(--sidebar-width) var(--handle-width) minmax(0, 1fr)
|
|
206
|
+
var(--handle-width) var(--messages-width);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.workspace[data-messages="hidden"] {
|
|
210
|
+
grid-template-columns: var(--sidebar-width) var(--handle-width) minmax(0, 1fr);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* The sidebar is the one thing that scrolls; its sections never do. */
|
|
214
|
+
.sidebar {
|
|
215
|
+
overflow-y: auto;
|
|
216
|
+
background: var(--wa-color-surface-default);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* A group of sections: a bar like theirs, a darker grey and in bold, so it reads above them. */
|
|
220
|
+
.sidebar-group-title {
|
|
221
|
+
margin: 0;
|
|
222
|
+
display: flex;
|
|
223
|
+
align-items: center;
|
|
224
|
+
height: 34px;
|
|
225
|
+
padding-inline: var(--wa-space-s);
|
|
226
|
+
border-bottom: 1px solid var(--wa-color-surface-border);
|
|
227
|
+
background: var(--wa-color-neutral-fill-quiet);
|
|
228
|
+
color: var(--wa-color-text-normal);
|
|
229
|
+
font-weight: 700;
|
|
230
|
+
font-size: var(--wa-font-size-2xs);
|
|
231
|
+
letter-spacing: 0.06em;
|
|
232
|
+
text-transform: uppercase;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Full-width sections, edge to edge; their header bars carry the structure. */
|
|
236
|
+
.section {
|
|
237
|
+
--spacing: var(--wa-space-s);
|
|
238
|
+
border-bottom: 1px solid var(--wa-color-surface-border);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* A header bar: all caps, and pinned to the top while its section scrolls past. Shaded on hover. */
|
|
242
|
+
.section::part(header) {
|
|
243
|
+
position: sticky;
|
|
244
|
+
top: 0;
|
|
245
|
+
z-index: 1;
|
|
246
|
+
height: 34px;
|
|
247
|
+
padding-block: 0;
|
|
248
|
+
/* Edge to edge, like the section: Web Awesome rounds a details panel's header. */
|
|
249
|
+
border-radius: 0;
|
|
250
|
+
background: var(--wa-color-surface-default);
|
|
251
|
+
color: var(--wa-color-text-normal);
|
|
252
|
+
font-weight: 600;
|
|
253
|
+
font-size: var(--wa-font-size-2xs);
|
|
254
|
+
letter-spacing: 0.06em;
|
|
255
|
+
text-transform: uppercase;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* The title, and a warning mark at the bar's end when the page shown can't use the section. */
|
|
259
|
+
.section::part(summary) {
|
|
260
|
+
flex: 1;
|
|
261
|
+
min-width: 0;
|
|
262
|
+
display: flex;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.section-summary {
|
|
266
|
+
flex: 1;
|
|
267
|
+
width: 100%;
|
|
268
|
+
display: flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
justify-content: space-between;
|
|
271
|
+
gap: var(--wa-space-xs);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.section-unused {
|
|
275
|
+
display: inline-flex;
|
|
276
|
+
cursor: help;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* A warning sign: a yellow triangle with a dark mark, in either scheme. */
|
|
280
|
+
.section-unused .sign {
|
|
281
|
+
fill: var(--wa-color-yellow-80);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.section-unused .mark {
|
|
285
|
+
stroke: var(--wa-color-yellow-10);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* Closed, the header is all there is: quieter. */
|
|
289
|
+
.section:not([open])::part(header) {
|
|
290
|
+
color: var(--wa-color-text-quiet);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.section[open]::part(header) {
|
|
294
|
+
border-bottom: 1px solid var(--wa-color-surface-border);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* Last, so it wins over open and closed alike: lighter than its group's bar. */
|
|
298
|
+
.section::part(header):hover {
|
|
299
|
+
background: color-mix(
|
|
300
|
+
in srgb,
|
|
301
|
+
var(--wa-color-neutral-fill-quiet) 50%,
|
|
302
|
+
var(--wa-color-surface-default)
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.section::part(content) {
|
|
307
|
+
padding: var(--wa-space-xs) var(--wa-space-s) var(--wa-space-s);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* A control whose label is for assistive tech only, as the section header says what it is. */
|
|
311
|
+
.label-hidden::part(form-control-label) {
|
|
312
|
+
position: absolute;
|
|
313
|
+
width: 1px;
|
|
314
|
+
height: 1px;
|
|
315
|
+
overflow: hidden;
|
|
316
|
+
clip-path: inset(50%);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.field-label {
|
|
320
|
+
font-size: var(--wa-font-size-s);
|
|
321
|
+
font-weight: var(--wa-form-control-label-font-weight, 600);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.secret-list {
|
|
325
|
+
margin: 0;
|
|
326
|
+
padding: 0;
|
|
327
|
+
list-style: none;
|
|
328
|
+
font-size: var(--wa-font-size-xs);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* JSON's colours: in the editors, the log, and wherever else the studio shows JSON. */
|
|
332
|
+
.json-key {
|
|
333
|
+
color: var(--wa-color-brand-on-quiet);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.json-string {
|
|
337
|
+
color: var(--wa-color-success-on-quiet);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.json-number {
|
|
341
|
+
color: var(--wa-color-warning-on-quiet);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.json-literal {
|
|
345
|
+
color: var(--wa-color-danger-on-quiet);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.json-punctuation {
|
|
349
|
+
color: var(--wa-color-text-quiet);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.json-view {
|
|
353
|
+
margin: 0;
|
|
354
|
+
font-family: var(--mono);
|
|
355
|
+
font-size: var(--wa-font-size-2xs);
|
|
356
|
+
line-height: 1.45;
|
|
357
|
+
white-space: pre-wrap;
|
|
358
|
+
overflow-wrap: anywhere;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/*
|
|
362
|
+
* The JSON editor: a text area with transparent text over a coloured copy, the same font, size,
|
|
363
|
+
* padding and wrapping, so each glyph lands on its coloured twin. The copy sets the height: it
|
|
364
|
+
* grows to fit, up to ten lines, then clamps with a fade until it's opened.
|
|
365
|
+
*/
|
|
366
|
+
.json-editor {
|
|
367
|
+
position: relative;
|
|
368
|
+
border: var(--wa-form-control-border-width, 1px) var(--wa-form-control-border-style, solid)
|
|
369
|
+
var(--wa-form-control-border-color);
|
|
370
|
+
border-radius: var(--wa-form-control-border-radius);
|
|
371
|
+
background: var(--wa-form-control-background-color);
|
|
372
|
+
overflow: hidden;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.json-editor:focus-within {
|
|
376
|
+
outline: var(--wa-focus-ring);
|
|
377
|
+
outline-offset: var(--wa-focus-ring-offset);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.json-editor[data-invalid="true"] {
|
|
381
|
+
border-color: var(--wa-color-danger-border-loud);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.json-backdrop,
|
|
385
|
+
.json-input {
|
|
386
|
+
margin: 0;
|
|
387
|
+
padding: var(--wa-space-xs) var(--wa-space-s);
|
|
388
|
+
border: 0;
|
|
389
|
+
font-family: var(--mono);
|
|
390
|
+
font-size: var(--wa-font-size-xs);
|
|
391
|
+
line-height: 1.45;
|
|
392
|
+
letter-spacing: normal;
|
|
393
|
+
tab-size: 2;
|
|
394
|
+
white-space: pre-wrap;
|
|
395
|
+
overflow-wrap: anywhere;
|
|
396
|
+
word-break: normal;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.json-backdrop {
|
|
400
|
+
min-height: calc(2 * 1.45em + 2 * var(--wa-space-xs));
|
|
401
|
+
color: var(--wa-color-text-normal);
|
|
402
|
+
pointer-events: none;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.json-input {
|
|
406
|
+
position: absolute;
|
|
407
|
+
inset: 0;
|
|
408
|
+
width: 100%;
|
|
409
|
+
height: 100%;
|
|
410
|
+
resize: none;
|
|
411
|
+
overflow: hidden;
|
|
412
|
+
background: transparent;
|
|
413
|
+
color: transparent;
|
|
414
|
+
caret-color: var(--wa-color-text-normal);
|
|
415
|
+
outline: none;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.json-input::selection {
|
|
419
|
+
background: color-mix(in oklch, var(--wa-color-brand-fill-loud) 30%, transparent);
|
|
420
|
+
color: transparent;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.json-editor[data-clamped="true"] {
|
|
424
|
+
max-height: calc(10 * 1.45 * var(--wa-font-size-xs) + 2 * var(--wa-space-xs));
|
|
425
|
+
mask-image: linear-gradient(to bottom, black 70%, transparent);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/* A button that reads as a link: "Show more", a suggested value. */
|
|
429
|
+
.link {
|
|
430
|
+
align-self: flex-start;
|
|
431
|
+
border: 0;
|
|
432
|
+
background: none;
|
|
433
|
+
padding: 0;
|
|
434
|
+
height: auto;
|
|
435
|
+
color: var(--wa-color-text-link);
|
|
436
|
+
font: inherit;
|
|
437
|
+
font-size: var(--wa-font-size-xs);
|
|
438
|
+
cursor: pointer;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.link:hover {
|
|
442
|
+
text-decoration: underline;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.env,
|
|
446
|
+
.sidebar-json {
|
|
447
|
+
margin: 0;
|
|
448
|
+
padding: var(--wa-space-xs);
|
|
449
|
+
background: var(--wa-color-surface-lowered);
|
|
450
|
+
border-radius: var(--wa-border-radius-s);
|
|
451
|
+
font-family: var(--mono);
|
|
452
|
+
font-size: var(--wa-font-size-2xs);
|
|
453
|
+
white-space: pre-wrap;
|
|
454
|
+
word-break: break-all;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.status,
|
|
458
|
+
.hint {
|
|
459
|
+
margin: 0;
|
|
460
|
+
font-size: var(--wa-font-size-xs);
|
|
461
|
+
color: var(--wa-color-text-quiet);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.status.error {
|
|
465
|
+
color: var(--wa-color-danger-on-quiet);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.status:empty {
|
|
469
|
+
display: none;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
details.nested > summary {
|
|
473
|
+
cursor: pointer;
|
|
474
|
+
font-size: var(--wa-font-size-xs);
|
|
475
|
+
color: var(--wa-color-text-quiet);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
details.nested pre {
|
|
479
|
+
font-size: var(--wa-font-size-2xs);
|
|
480
|
+
white-space: pre-wrap;
|
|
481
|
+
margin: var(--wa-space-2xs) 0 0;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/*
|
|
485
|
+
* The main area: one page at a time. It stands for Livespace's page: a plugin's dialog and
|
|
486
|
+
* fullscreen cover it, sized against it (`cqw`, `cqh`). It doesn't scroll itself, so they cover
|
|
487
|
+
* what's in view; its content scrolls inside.
|
|
488
|
+
*/
|
|
489
|
+
.main {
|
|
490
|
+
position: relative;
|
|
491
|
+
container-type: size;
|
|
492
|
+
overflow: hidden;
|
|
493
|
+
min-width: 0;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.main-scroll {
|
|
497
|
+
height: 100%;
|
|
498
|
+
overflow: auto;
|
|
499
|
+
padding: var(--wa-space-l);
|
|
500
|
+
/* Drawing paper: a faint 10 px grid, with a cross every 100 px. */
|
|
501
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='gray'%3E%3Cpath fill-opacity='.09' d='M0 0h1v100h-1zM10 0h1v100h-1zM20 0h1v100h-1zM30 0h1v100h-1zM40 0h1v100h-1zM50 0h1v100h-1zM60 0h1v100h-1zM70 0h1v100h-1zM80 0h1v100h-1zM90 0h1v100h-1zM0 0h100v1H0zM0 10h100v1H0zM0 20h100v1H0zM0 30h100v1H0zM0 40h100v1H0zM0 50h100v1H0zM0 60h100v1H0zM0 70h100v1H0zM0 80h100v1H0zM0 90h100v1H0z'/%3E%3Cpath fill-opacity='.35' d='M44 50h13v1H44zM50 44h1v13h-1z'/%3E%3C/g%3E%3C/svg%3E");
|
|
502
|
+
background-position-x: 49px;
|
|
503
|
+
background-position-y: 49px;
|
|
504
|
+
display: flex;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/*
|
|
508
|
+
* Centred by its auto margins, not by justify-content and align-items: those centre content bigger
|
|
509
|
+
* than the box too, pushing it past the top and left edges, out of reach of the scroll. Auto margins
|
|
510
|
+
* shrink to nothing instead, so the content starts at the edge and scrolls.
|
|
511
|
+
*/
|
|
512
|
+
.main-scroll > * {
|
|
513
|
+
margin: auto;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.empty {
|
|
517
|
+
color: var(--wa-color-text-quiet);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.problem {
|
|
521
|
+
color: var(--wa-color-danger-on-quiet);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.card {
|
|
525
|
+
background: var(--wa-color-surface-default);
|
|
526
|
+
border: 1px solid var(--wa-color-surface-border);
|
|
527
|
+
border-radius: var(--wa-border-radius-m);
|
|
528
|
+
padding: var(--wa-space-s) var(--wa-space-m);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/*
|
|
532
|
+
* The plugin's surface, imitating Livespace (ls-tokens.css): one wrapper in every display, as
|
|
533
|
+
* plugin-slot's, restyled for the dialog and fullscreen over the main area. The iframe inside never
|
|
534
|
+
* moves.
|
|
535
|
+
*/
|
|
536
|
+
.surface {
|
|
537
|
+
color: var(--color-black-800);
|
|
538
|
+
font-family: var(--font-sans);
|
|
539
|
+
font-size: 14px;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.frame {
|
|
543
|
+
display: flex;
|
|
544
|
+
flex-direction: column;
|
|
545
|
+
max-width: 100%;
|
|
546
|
+
background: var(--color-white);
|
|
547
|
+
border-radius: var(--radius-medium);
|
|
548
|
+
box-shadow: var(--shadow-sm);
|
|
549
|
+
overflow: hidden;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/* The chrome above the plugin, as Livespace's: its title and the display toggles. */
|
|
553
|
+
.chrome-bar {
|
|
554
|
+
display: flex;
|
|
555
|
+
align-items: center;
|
|
556
|
+
gap: var(--spacing-2xs);
|
|
557
|
+
height: var(--chrome-height);
|
|
558
|
+
flex: none;
|
|
559
|
+
padding: 0 var(--spacing-2xs) 0 var(--spacing-sm);
|
|
560
|
+
border-bottom: 1px solid var(--color-gray-200);
|
|
561
|
+
background: var(--color-gray-50);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.chrome-title {
|
|
565
|
+
margin-right: auto;
|
|
566
|
+
font-size: 12px;
|
|
567
|
+
color: var(--color-gray-800);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.chrome-bar button {
|
|
571
|
+
all: unset;
|
|
572
|
+
cursor: pointer;
|
|
573
|
+
padding: 1px var(--spacing-xs);
|
|
574
|
+
border: 1px solid var(--color-gray-400);
|
|
575
|
+
border-radius: var(--radius-small);
|
|
576
|
+
background: var(--color-white);
|
|
577
|
+
color: var(--color-black-800);
|
|
578
|
+
font-size: 12px;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.chrome-bar button:hover {
|
|
582
|
+
background: var(--color-gray-100);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.chrome-bar button:focus-visible {
|
|
586
|
+
outline: 2px solid var(--color-purple-400);
|
|
587
|
+
outline-offset: 1px;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.slot {
|
|
591
|
+
flex: 1;
|
|
592
|
+
min-height: 0;
|
|
593
|
+
position: relative;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/* A plugin's frame host, filling what it's in. */
|
|
597
|
+
.fill {
|
|
598
|
+
width: 100%;
|
|
599
|
+
height: 100%;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.slot iframe {
|
|
603
|
+
display: block;
|
|
604
|
+
width: 100%;
|
|
605
|
+
height: 100%;
|
|
606
|
+
border: none;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/* The dialog: Livespace's backdrop, top inset and panel chrome, over the main area. */
|
|
610
|
+
.surface[data-display="dialog"] {
|
|
611
|
+
position: absolute;
|
|
612
|
+
inset: 0;
|
|
613
|
+
z-index: 10;
|
|
614
|
+
display: flex;
|
|
615
|
+
align-items: center;
|
|
616
|
+
justify-content: center;
|
|
617
|
+
padding-top: 60px;
|
|
618
|
+
background: rgba(0, 0, 0, 0.4);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.surface[data-display="dialog"] .frame {
|
|
622
|
+
border: 4px solid rgba(255, 255, 255, 0.7);
|
|
623
|
+
border-radius: 12px;
|
|
624
|
+
box-shadow: var(--shadow-lg);
|
|
625
|
+
background-clip: padding-box;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/* Fullscreen: CSS over the main area, not the browser's Fullscreen API. */
|
|
629
|
+
.surface[data-display="fullscreen"] {
|
|
630
|
+
position: absolute;
|
|
631
|
+
inset: 0;
|
|
632
|
+
z-index: 10;
|
|
633
|
+
display: flex;
|
|
634
|
+
flex-direction: column;
|
|
635
|
+
background: var(--color-white);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
.surface[data-display="fullscreen"] .frame {
|
|
639
|
+
flex: 1;
|
|
640
|
+
border-radius: 0;
|
|
641
|
+
box-shadow: none;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/* The settings page: the form beside a preview as wide as the slot, which wraps below when there's no room. */
|
|
645
|
+
.settings {
|
|
646
|
+
display: flex;
|
|
647
|
+
flex-wrap: wrap;
|
|
648
|
+
gap: var(--wa-space-l);
|
|
649
|
+
align-items: flex-start;
|
|
650
|
+
align-content: flex-start;
|
|
651
|
+
/* Wrapped, it fills the width: its form and preview are centred in it, as the page is. */
|
|
652
|
+
justify-content: center;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.settings h2 {
|
|
656
|
+
margin: 0 0 var(--wa-space-xs);
|
|
657
|
+
font-size: var(--wa-font-size-m);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.settings-form {
|
|
661
|
+
flex: 1 1 300px;
|
|
662
|
+
min-width: 280px;
|
|
663
|
+
max-width: 520px;
|
|
664
|
+
display: flex;
|
|
665
|
+
flex-direction: column;
|
|
666
|
+
gap: var(--wa-space-xs);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.settings-form fieldset {
|
|
670
|
+
border: 0;
|
|
671
|
+
border-top: 1px solid var(--wa-color-surface-border);
|
|
672
|
+
margin: var(--wa-space-s) 0 0;
|
|
673
|
+
padding: var(--wa-space-xs) 0 0;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.settings-form legend {
|
|
677
|
+
font-weight: 600;
|
|
678
|
+
padding: 0;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.field {
|
|
682
|
+
display: flex;
|
|
683
|
+
flex-direction: column;
|
|
684
|
+
gap: var(--wa-space-3xs);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.keys-row {
|
|
688
|
+
align-items: start;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.secret-set {
|
|
692
|
+
color: var(--wa-color-success-on-quiet);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.preview-pane {
|
|
696
|
+
flex: none;
|
|
697
|
+
max-width: 100%;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/* A full-width slot takes what the form leaves. */
|
|
701
|
+
.preview-pane[data-slot="full"] {
|
|
702
|
+
flex: 1 1 320px;
|
|
703
|
+
min-width: 0;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.preview-scale {
|
|
707
|
+
transform-origin: top left;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.preview-scale iframe {
|
|
711
|
+
display: block;
|
|
712
|
+
width: 100%;
|
|
713
|
+
height: 100%;
|
|
714
|
+
border: none;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/* Out of the column, the preview fills its surface, unscaled. */
|
|
718
|
+
.surface:not([data-display="inline"]) .preview-scale {
|
|
719
|
+
width: 100% !important;
|
|
720
|
+
height: 100% !important;
|
|
721
|
+
transform: none !important;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/* The config probe: zero size and transparent, never display:none, which may never load. */
|
|
725
|
+
.probe-host iframe {
|
|
726
|
+
position: absolute;
|
|
727
|
+
width: 0;
|
|
728
|
+
height: 0;
|
|
729
|
+
border: 0;
|
|
730
|
+
opacity: 0;
|
|
731
|
+
pointer-events: none;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/*
|
|
735
|
+
* The handles between the panes: a channel with a line on each edge, so the lines of the panes on
|
|
736
|
+
* either side meet a line, and three dots in the middle that say it can be dragged. It lights up
|
|
737
|
+
* when it's used.
|
|
738
|
+
*/
|
|
739
|
+
.resize-handle {
|
|
740
|
+
position: relative;
|
|
741
|
+
cursor: col-resize;
|
|
742
|
+
background: var(--wa-color-surface-lowered);
|
|
743
|
+
border-inline: 1px solid var(--wa-color-surface-border);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.resize-handle::after {
|
|
747
|
+
content: "";
|
|
748
|
+
position: absolute;
|
|
749
|
+
top: 50%;
|
|
750
|
+
left: 50%;
|
|
751
|
+
width: 2px;
|
|
752
|
+
height: 14px;
|
|
753
|
+
transform: translate(-50%, -50%);
|
|
754
|
+
background: radial-gradient(circle, var(--wa-color-text-quiet) 1px, transparent 1.25px) 0 0 /
|
|
755
|
+
2px 5px repeat-y;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.resize-handle:hover,
|
|
759
|
+
.resize-handle:focus-visible,
|
|
760
|
+
.resize-handle[data-dragging] {
|
|
761
|
+
background: var(--wa-color-brand-fill-quiet);
|
|
762
|
+
border-color: var(--wa-color-brand-border-normal);
|
|
763
|
+
outline: none;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.resize-handle:hover::after,
|
|
767
|
+
.resize-handle:focus-visible::after,
|
|
768
|
+
.resize-handle[data-dragging]::after {
|
|
769
|
+
background-image: radial-gradient(
|
|
770
|
+
circle,
|
|
771
|
+
var(--wa-color-brand-on-quiet) 1px,
|
|
772
|
+
transparent 1.25px
|
|
773
|
+
);
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
/* While a pane is resized, the plugins' iframes let the pointer through to the handle. */
|
|
777
|
+
body[data-resizing] iframe {
|
|
778
|
+
pointer-events: none;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
body[data-resizing] {
|
|
782
|
+
cursor: col-resize;
|
|
783
|
+
user-select: none;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/* The messages pane: its own scroll. */
|
|
787
|
+
.messages {
|
|
788
|
+
display: flex;
|
|
789
|
+
flex-direction: column;
|
|
790
|
+
min-height: 0;
|
|
791
|
+
min-width: 0;
|
|
792
|
+
background: var(--wa-color-surface-default);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.messages-head {
|
|
796
|
+
flex: none;
|
|
797
|
+
padding: var(--wa-space-2xs) var(--wa-space-xs) var(--wa-space-2xs) var(--wa-space-m);
|
|
798
|
+
border-bottom: 1px solid var(--wa-color-surface-border);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.messages-head h2 {
|
|
802
|
+
margin: 0;
|
|
803
|
+
font-size: var(--wa-font-size-s);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.log-list {
|
|
807
|
+
flex: 1;
|
|
808
|
+
margin: 0;
|
|
809
|
+
padding: 0;
|
|
810
|
+
list-style: none;
|
|
811
|
+
overflow: auto;
|
|
812
|
+
font-size: var(--wa-font-size-xs);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.log-list li {
|
|
816
|
+
/* Web Awesome indents list items; these rows, and their dividers, run edge to edge. */
|
|
817
|
+
margin: 0;
|
|
818
|
+
padding: var(--wa-space-2xs) var(--wa-space-m);
|
|
819
|
+
border-bottom: 1px solid var(--wa-color-surface-border);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.log-list li.note {
|
|
823
|
+
color: var(--wa-color-text-quiet);
|
|
824
|
+
font-style: italic;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/* A message with a payload opens in place: a plain row, not one of Web Awesome's detail cards. */
|
|
828
|
+
.log-list details,
|
|
829
|
+
.log-list details[open] {
|
|
830
|
+
padding: 0;
|
|
831
|
+
border: 0;
|
|
832
|
+
border-radius: 0;
|
|
833
|
+
background: none;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.log-list summary,
|
|
837
|
+
.log-list details[open] summary {
|
|
838
|
+
display: block;
|
|
839
|
+
margin: 0;
|
|
840
|
+
padding: 0;
|
|
841
|
+
border-radius: 0;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.log-list summary::after {
|
|
845
|
+
display: none;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.log-list li:has(details) {
|
|
849
|
+
cursor: pointer;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.log-list li:has(details):hover {
|
|
853
|
+
background: var(--wa-color-neutral-fill-quiet);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.log-list pre {
|
|
857
|
+
margin: var(--wa-space-2xs) 0 0;
|
|
858
|
+
font-family: var(--mono);
|
|
859
|
+
white-space: pre-wrap;
|
|
860
|
+
word-break: break-word;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.direction {
|
|
864
|
+
display: inline-block;
|
|
865
|
+
width: 1.5em;
|
|
866
|
+
font-weight: 600;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.in .direction {
|
|
870
|
+
color: var(--wa-color-brand-on-quiet);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.out .direction {
|
|
874
|
+
color: var(--wa-color-success-on-quiet);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
.time {
|
|
878
|
+
color: var(--wa-color-text-quiet);
|
|
879
|
+
margin-right: var(--wa-space-xs);
|
|
880
|
+
font-variant-numeric: tabular-nums;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.source {
|
|
884
|
+
margin-left: var(--wa-space-xs);
|
|
885
|
+
padding: 0 var(--wa-space-2xs);
|
|
886
|
+
border-radius: var(--wa-border-radius-s);
|
|
887
|
+
background: var(--wa-color-neutral-fill-quiet);
|
|
888
|
+
color: var(--wa-color-text-quiet);
|
|
889
|
+
font-size: var(--wa-font-size-2xs);
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/* Toasts, above the dialog and fullscreen, left of the messages pane. */
|
|
893
|
+
.toasts {
|
|
894
|
+
position: fixed;
|
|
895
|
+
inset: calc(var(--topbar-height) + var(--wa-space-s))
|
|
896
|
+
calc(var(--messages-offset, 0px) + var(--wa-space-l)) auto auto;
|
|
897
|
+
width: 320px;
|
|
898
|
+
margin: 0;
|
|
899
|
+
padding: 0;
|
|
900
|
+
border: 0;
|
|
901
|
+
background: none;
|
|
902
|
+
overflow: visible;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
.toast {
|
|
906
|
+
box-shadow: var(--wa-shadow-l);
|
|
907
|
+
}
|