@goodfellow-cms/admin 0.5.0 → 0.6.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/README.md +1 -1
- package/dist/dev.d.ts +4 -2
- package/dist/dev.js +21 -1
- package/dist/editor.js +215 -10
- package/dist/{entry-values-ocbalc9U.js → entry-values-BrY3L0Ai.js} +1623 -493
- package/dist/index.d.ts +236 -8
- package/dist/index.js +4797 -2878
- package/dist/plugin-protocol-DkvBDqsF.js +119 -0
- package/dist/plugin.d.ts +5 -0
- package/dist/plugin.js +153 -0
- package/package.json +12 -6
- package/plugin.css +215 -0
- package/styles.css +142 -6
package/styles.css
CHANGED
|
@@ -196,11 +196,6 @@ body,
|
|
|
196
196
|
overflow: auto;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
.gfa-settings-content > .gfa-screen {
|
|
200
|
-
margin: 0;
|
|
201
|
-
padding: 24px;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
199
|
.gfa-sidebar {
|
|
205
200
|
display: flex;
|
|
206
201
|
flex-direction: column;
|
|
@@ -236,6 +231,23 @@ body,
|
|
|
236
231
|
border-top: 1px solid var(--gfa-border);
|
|
237
232
|
}
|
|
238
233
|
|
|
234
|
+
/*
|
|
235
|
+
* A plugin's screen, drawn by the plugin in a frame of its own, which looks
|
|
236
|
+
* like any other screen: as wide as the screen, with no border, and as tall
|
|
237
|
+
* as what the plugin draws, which its frame reports.
|
|
238
|
+
*/
|
|
239
|
+
.gfa-plugin-screen {
|
|
240
|
+
display: block;
|
|
241
|
+
width: 100%;
|
|
242
|
+
min-height: 240px;
|
|
243
|
+
border: 0;
|
|
244
|
+
background: var(--gfa-bg);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.gfa-plugin-screen-wrap > .gfa-error {
|
|
248
|
+
margin: 24px;
|
|
249
|
+
}
|
|
250
|
+
|
|
239
251
|
.gfa-sidebar-item {
|
|
240
252
|
position: relative;
|
|
241
253
|
display: flex;
|
|
@@ -282,7 +294,7 @@ body,
|
|
|
282
294
|
text-overflow: ellipsis;
|
|
283
295
|
}
|
|
284
296
|
|
|
285
|
-
.gfa-sidebar-
|
|
297
|
+
.gfa-sidebar-footer {
|
|
286
298
|
margin-top: auto;
|
|
287
299
|
}
|
|
288
300
|
|
|
@@ -337,6 +349,12 @@ body,
|
|
|
337
349
|
padding: 24px 16px;
|
|
338
350
|
}
|
|
339
351
|
|
|
352
|
+
/* Site Settings' tabs sit beside the sidebar, left-aligned. */
|
|
353
|
+
.gfa-settings-content > .gfa-screen {
|
|
354
|
+
margin: 0;
|
|
355
|
+
padding: 24px;
|
|
356
|
+
}
|
|
357
|
+
|
|
340
358
|
.gfa-screen-header {
|
|
341
359
|
display: flex;
|
|
342
360
|
align-items: center;
|
|
@@ -1028,6 +1046,17 @@ body,
|
|
|
1028
1046
|
gap: 4px;
|
|
1029
1047
|
}
|
|
1030
1048
|
|
|
1049
|
+
/* Tools an editor plugin doesn't have, such as Puck's sidebars and preview widths. */
|
|
1050
|
+
.gfa-editor-tools[hidden] {
|
|
1051
|
+
display: none;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
/* Which editor to edit with, where the site has editor plugins. */
|
|
1055
|
+
.gfa-editor-choice {
|
|
1056
|
+
font-size: 13px;
|
|
1057
|
+
color: var(--gfa-muted);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1031
1060
|
.gfa-editor-tools .gfa-button[aria-pressed="true"],
|
|
1032
1061
|
.gfa-header-actions .gfa-button[aria-pressed="true"] {
|
|
1033
1062
|
background: var(--gfa-current-bg);
|
|
@@ -1341,6 +1370,54 @@ body,
|
|
|
1341
1370
|
}
|
|
1342
1371
|
|
|
1343
1372
|
.gfa-media-actions .gfa-button,
|
|
1373
|
+
/* A table's cells, in the editor's fields. */
|
|
1374
|
+
.gfa-table-field {
|
|
1375
|
+
padding: 0 16px 16px;
|
|
1376
|
+
font:
|
|
1377
|
+
14px / 1.5 ui-sans-serif,
|
|
1378
|
+
system-ui,
|
|
1379
|
+
sans-serif;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
.gfa-table-field-label {
|
|
1383
|
+
margin-bottom: 8px;
|
|
1384
|
+
font-weight: 600;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
.gfa-table-field-grid {
|
|
1388
|
+
display: grid;
|
|
1389
|
+
gap: 4px;
|
|
1390
|
+
overflow-x: auto;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
.gfa-table-field-row {
|
|
1394
|
+
display: contents;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
.gfa-table-field-cell {
|
|
1398
|
+
min-width: 0;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
.gfa-table-field-remove {
|
|
1402
|
+
border: 1px solid var(--gfa-border);
|
|
1403
|
+
border-radius: var(--gfa-radius);
|
|
1404
|
+
background: transparent;
|
|
1405
|
+
color: var(--gfa-muted);
|
|
1406
|
+
cursor: pointer;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
.gfa-table-field-remove:disabled {
|
|
1410
|
+
cursor: default;
|
|
1411
|
+
opacity: 0.4;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
.gfa-table-field-actions {
|
|
1415
|
+
display: flex;
|
|
1416
|
+
flex-wrap: wrap;
|
|
1417
|
+
gap: 8px;
|
|
1418
|
+
margin-top: 8px;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1344
1421
|
.gfa-media-chooser .gfa-button {
|
|
1345
1422
|
min-height: 30px;
|
|
1346
1423
|
padding: 0 10px;
|
|
@@ -1697,6 +1774,65 @@ body,
|
|
|
1697
1774
|
overflow: hidden;
|
|
1698
1775
|
}
|
|
1699
1776
|
|
|
1777
|
+
.gfa-theme-search {
|
|
1778
|
+
display: flex;
|
|
1779
|
+
align-items: flex-end;
|
|
1780
|
+
gap: 8px;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
.gfa-theme-search > :first-child {
|
|
1784
|
+
flex: 1;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
.gfa-theme-installed {
|
|
1788
|
+
flex-wrap: wrap;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
.gfa-theme-details {
|
|
1792
|
+
display: grid;
|
|
1793
|
+
gap: 12px;
|
|
1794
|
+
margin: 16px 0;
|
|
1795
|
+
padding: 16px;
|
|
1796
|
+
border: 1px solid var(--gfa-border);
|
|
1797
|
+
border-radius: var(--gfa-radius);
|
|
1798
|
+
background: var(--gfa-surface);
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
.gfa-theme-details .gfa-screen-header {
|
|
1802
|
+
margin-bottom: 0;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
.gfa-theme-image {
|
|
1806
|
+
max-width: 100%;
|
|
1807
|
+
border: 1px solid var(--gfa-border);
|
|
1808
|
+
border-radius: var(--gfa-radius);
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
.gfa-theme-swatches {
|
|
1812
|
+
display: flex;
|
|
1813
|
+
flex-wrap: wrap;
|
|
1814
|
+
gap: 6px;
|
|
1815
|
+
margin: 0;
|
|
1816
|
+
padding: 0;
|
|
1817
|
+
list-style: none;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
.gfa-theme-swatch {
|
|
1821
|
+
display: block;
|
|
1822
|
+
width: 28px;
|
|
1823
|
+
height: 28px;
|
|
1824
|
+
border: 1px solid var(--gfa-border);
|
|
1825
|
+
border-radius: 50%;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
.gfa-theme-preview {
|
|
1829
|
+
position: relative;
|
|
1830
|
+
height: 60vh;
|
|
1831
|
+
border: 1px solid var(--gfa-border);
|
|
1832
|
+
border-radius: var(--gfa-radius);
|
|
1833
|
+
overflow: hidden;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1700
1836
|
.gfa-site-changes {
|
|
1701
1837
|
display: grid;
|
|
1702
1838
|
gap: 8px;
|