@orion-studios/payload-studio 0.6.0-beta.13 → 0.6.0-beta.131
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/dist/admin/client.js +2061 -538
- package/dist/admin/client.mjs +2078 -568
- package/dist/admin/index.js +124 -15
- package/dist/admin/index.mjs +1 -1
- package/dist/admin-app/client.js +14 -5
- package/dist/admin-app/client.mjs +1 -1
- package/dist/admin-app/styles.css +277 -1
- package/dist/admin.css +98 -2
- package/dist/builder-v2/client.d.mts +18 -0
- package/dist/builder-v2/client.d.ts +18 -0
- package/dist/builder-v2/client.js +3837 -0
- package/dist/builder-v2/client.mjs +3712 -0
- package/dist/builder-v2/index.d.mts +248 -0
- package/dist/builder-v2/index.d.ts +248 -0
- package/dist/builder-v2/index.js +805 -0
- package/dist/builder-v2/index.mjs +755 -0
- package/dist/builder-v2/styles.css +2514 -0
- package/dist/{chunk-PF3EBZXF.mjs → chunk-7ZMXZRBP.mjs} +39 -3
- package/dist/{chunk-XZQILJK3.mjs → chunk-JC3UV74N.mjs} +124 -15
- package/dist/{chunk-KPIX7OSV.mjs → chunk-NF37A575.mjs} +14 -5
- package/dist/{chunk-XKUTZ7IU.mjs → chunk-NGLIA2OE.mjs} +53 -2
- package/dist/{chunk-OTHERBGX.mjs → chunk-ZADL33R6.mjs} +1 -1
- package/dist/{index-Cv-6qnrw.d.mts → index-D5zrOdyv.d.mts} +3 -1
- package/dist/{index-Crx_MtPw.d.ts → index-Dv-Alx4h.d.ts} +3 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +215 -19
- package/dist/index.mjs +4 -4
- package/dist/nextjs/index.js +39 -3
- package/dist/nextjs/index.mjs +2 -2
- package/dist/studio-pages/builder.css +66 -5
- package/dist/studio-pages/client.js +618 -73
- package/dist/studio-pages/client.mjs +641 -96
- package/dist/studio-pages/index.d.mts +1 -1
- package/dist/studio-pages/index.d.ts +1 -1
- package/dist/studio-pages/index.js +91 -4
- package/dist/studio-pages/index.mjs +2 -2
- package/package.json +22 -3
package/dist/admin.css
CHANGED
|
@@ -260,6 +260,8 @@ html[data-orion-brand]:not([data-theme='dark']) {
|
|
|
260
260
|
--color-base-50: color-mix(in srgb, var(--brand-primary) 2%, rgb(245, 245, 245));
|
|
261
261
|
--color-base-100: color-mix(in srgb, var(--brand-primary) 3%, rgb(235, 235, 235));
|
|
262
262
|
--color-base-150: color-mix(in srgb, var(--brand-primary) 4%, rgb(221, 221, 221));
|
|
263
|
+
--orion-cms-selection-bg-resolved: color-mix(in srgb, var(--brand-primary) 16%, white);
|
|
264
|
+
--orion-cms-selection-text-resolved: var(--theme-text);
|
|
263
265
|
}
|
|
264
266
|
|
|
265
267
|
/* ============================================================
|
|
@@ -311,6 +313,8 @@ html[data-orion-brand][data-theme='dark'] {
|
|
|
311
313
|
--color-base-900: color-mix(in srgb, var(--brand-primary) 4%, rgb(20, 20, 20));
|
|
312
314
|
--color-base-850: color-mix(in srgb, var(--brand-primary) 3%, rgb(34, 34, 34));
|
|
313
315
|
--color-base-800: color-mix(in srgb, var(--brand-primary) 2%, rgb(47, 47, 47));
|
|
316
|
+
--orion-cms-selection-bg-resolved: color-mix(in srgb, var(--brand-primary) 28%, var(--color-base-900));
|
|
317
|
+
--orion-cms-selection-text-resolved: var(--theme-text);
|
|
314
318
|
}
|
|
315
319
|
|
|
316
320
|
/* ============================================================
|
|
@@ -321,11 +325,23 @@ html {
|
|
|
321
325
|
}
|
|
322
326
|
|
|
323
327
|
html[data-orion-brand] ::selection {
|
|
324
|
-
background:
|
|
328
|
+
background: var(--orion-cms-selection-bg, var(--orion-cms-selection-bg-resolved));
|
|
329
|
+
color: var(--orion-cms-selection-text, var(--orion-cms-selection-text-resolved));
|
|
325
330
|
}
|
|
326
331
|
|
|
327
332
|
html[data-orion-brand][data-theme='dark'] ::selection {
|
|
328
|
-
background:
|
|
333
|
+
background: var(--orion-cms-selection-bg, var(--orion-cms-selection-bg-resolved));
|
|
334
|
+
color: var(--orion-cms-selection-text, var(--orion-cms-selection-text-resolved));
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
html[data-orion-brand] ::-moz-selection {
|
|
338
|
+
background: var(--orion-cms-selection-bg, var(--orion-cms-selection-bg-resolved));
|
|
339
|
+
color: var(--orion-cms-selection-text, var(--orion-cms-selection-text-resolved));
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
html[data-orion-brand][data-theme='dark'] ::-moz-selection {
|
|
343
|
+
background: var(--orion-cms-selection-bg, var(--orion-cms-selection-bg-resolved));
|
|
344
|
+
color: var(--orion-cms-selection-text, var(--orion-cms-selection-text-resolved));
|
|
329
345
|
}
|
|
330
346
|
|
|
331
347
|
/* ============================================================
|
|
@@ -546,6 +562,86 @@ body.orion-studio-shell-active .template-default__nav-toggler-wrapper {
|
|
|
546
562
|
min-width: 0 !important;
|
|
547
563
|
}
|
|
548
564
|
|
|
565
|
+
/* Payload fallback pages, including /admin/unauthorized, do not use the custom
|
|
566
|
+
Studio shell. Keep them readable and aligned with the Orion CMS theme. */
|
|
567
|
+
body:not(.orion-studio-shell-active) .template-default,
|
|
568
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) {
|
|
569
|
+
background:
|
|
570
|
+
radial-gradient(circle at top left, color-mix(in srgb, var(--brand-secondary) 10%, transparent), transparent 30rem),
|
|
571
|
+
linear-gradient(180deg, var(--admin-bg), color-mix(in srgb, var(--admin-bg) 90%, white)) !important;
|
|
572
|
+
color: var(--admin-text) !important;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
body:not(.orion-studio-shell-active) .template-default__wrap,
|
|
576
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap {
|
|
577
|
+
align-items: center !important;
|
|
578
|
+
display: flex !important;
|
|
579
|
+
justify-content: center !important;
|
|
580
|
+
min-height: 100vh !important;
|
|
581
|
+
padding: clamp(1.5rem, 4vw, 4rem) !important;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
body:not(.orion-studio-shell-active) .template-default__wrap > *:not(.template-default__nav-toggler-wrapper),
|
|
585
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap > * {
|
|
586
|
+
background: var(--admin-card-bg) !important;
|
|
587
|
+
border: 1px solid var(--admin-card-border) !important;
|
|
588
|
+
border-radius: var(--admin-radius-lg) !important;
|
|
589
|
+
box-shadow: var(--admin-card-shadow-hover) !important;
|
|
590
|
+
color: var(--admin-text) !important;
|
|
591
|
+
max-width: 34rem !important;
|
|
592
|
+
padding: clamp(1.5rem, 4vw, 2.5rem) !important;
|
|
593
|
+
width: min(100%, 34rem) !important;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
body:not(.orion-studio-shell-active) .template-default__wrap h1,
|
|
597
|
+
body:not(.orion-studio-shell-active) .template-default__wrap h2,
|
|
598
|
+
body:not(.orion-studio-shell-active) .template-default__wrap h3,
|
|
599
|
+
body:not(.orion-studio-shell-active) .template-default__wrap p,
|
|
600
|
+
body:not(.orion-studio-shell-active) .template-default__wrap span,
|
|
601
|
+
body:not(.orion-studio-shell-active) .template-default__wrap div,
|
|
602
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap h1,
|
|
603
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap h2,
|
|
604
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap h3,
|
|
605
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap p,
|
|
606
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap span,
|
|
607
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap div {
|
|
608
|
+
color: var(--admin-text) !important;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
body:not(.orion-studio-shell-active) .template-default__wrap p,
|
|
612
|
+
body:not(.orion-studio-shell-active) .template-default__wrap .description,
|
|
613
|
+
body:not(.orion-studio-shell-active) .template-default__wrap [class*='description'],
|
|
614
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap p,
|
|
615
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap .description,
|
|
616
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap [class*='description'] {
|
|
617
|
+
color: var(--admin-text-muted) !important;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
body:not(.orion-studio-shell-active) .template-default__wrap .btn,
|
|
621
|
+
body:not(.orion-studio-shell-active) .template-default__wrap button,
|
|
622
|
+
body:not(.orion-studio-shell-active) .template-default__wrap a[href*='logout'],
|
|
623
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap .btn,
|
|
624
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap button,
|
|
625
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap a[href*='logout'] {
|
|
626
|
+
background: var(--admin-accent) !important;
|
|
627
|
+
border: 1px solid var(--admin-accent) !important;
|
|
628
|
+
border-radius: var(--admin-radius-sm) !important;
|
|
629
|
+
color: var(--admin-text-inverse) !important;
|
|
630
|
+
font-weight: 800 !important;
|
|
631
|
+
min-height: 2.75rem !important;
|
|
632
|
+
padding: 0.75rem 1rem !important;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
body:not(.orion-studio-shell-active) .template-default__wrap .btn:hover,
|
|
636
|
+
body:not(.orion-studio-shell-active) .template-default__wrap button:hover,
|
|
637
|
+
body:not(.orion-studio-shell-active) .template-default__wrap a[href*='logout']:hover,
|
|
638
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap .btn:hover,
|
|
639
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap button:hover,
|
|
640
|
+
body:not(.orion-studio-shell-active) .template-minimal:not(.login) .template-minimal__wrap a[href*='logout']:hover {
|
|
641
|
+
background: var(--admin-accent-hover) !important;
|
|
642
|
+
border-color: var(--admin-accent-hover) !important;
|
|
643
|
+
}
|
|
644
|
+
|
|
549
645
|
.admin-studio-brand {
|
|
550
646
|
padding-left: 0 !important;
|
|
551
647
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FC } from 'react'
|
|
2
|
+
|
|
3
|
+
export type {
|
|
4
|
+
BuilderV2EditorInitialData,
|
|
5
|
+
BuilderV2EditorProps,
|
|
6
|
+
BuilderV2PageTreeNode,
|
|
7
|
+
BuilderV2PermissionSet,
|
|
8
|
+
BuilderV2ProjectAdapter,
|
|
9
|
+
BuilderV2ProjectComponentDefinition,
|
|
10
|
+
BuilderV2RuntimeComponent,
|
|
11
|
+
BuilderV2RuntimeComponentProps,
|
|
12
|
+
BuilderV2TraitDefinition,
|
|
13
|
+
BuilderV2ThemeTokens,
|
|
14
|
+
BuilderV2ValidationIssue,
|
|
15
|
+
BuilderV2VersionSnapshot,
|
|
16
|
+
} from './types'
|
|
17
|
+
|
|
18
|
+
export declare const GrapesPageEditor: FC<import('./types').BuilderV2EditorProps>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FC } from 'react'
|
|
2
|
+
|
|
3
|
+
export type {
|
|
4
|
+
BuilderV2EditorInitialData,
|
|
5
|
+
BuilderV2EditorProps,
|
|
6
|
+
BuilderV2PageTreeNode,
|
|
7
|
+
BuilderV2PermissionSet,
|
|
8
|
+
BuilderV2ProjectAdapter,
|
|
9
|
+
BuilderV2ProjectComponentDefinition,
|
|
10
|
+
BuilderV2RuntimeComponent,
|
|
11
|
+
BuilderV2RuntimeComponentProps,
|
|
12
|
+
BuilderV2TraitDefinition,
|
|
13
|
+
BuilderV2ThemeTokens,
|
|
14
|
+
BuilderV2ValidationIssue,
|
|
15
|
+
BuilderV2VersionSnapshot,
|
|
16
|
+
} from './types'
|
|
17
|
+
|
|
18
|
+
export declare const GrapesPageEditor: FC<import('./types').BuilderV2EditorProps>
|