@conloca/cms-spa 0.2.2 → 0.2.3
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 +26 -0
- package/dist/spa/main.css +223 -1
- package/dist/ts/.build-inputs.json +178 -0
- package/dist/ts/App.d.ts +5 -1
- package/dist/ts/App.d.ts.map +1 -1
- package/dist/ts/App.js +13 -6
- package/dist/ts/App.js.map +1 -1
- package/dist/ts/CmsSpaApp.d.ts.map +1 -1
- package/dist/ts/CmsSpaApp.js +4 -1
- package/dist/ts/CmsSpaApp.js.map +1 -1
- package/dist/ts/components/cards/DataEntryCard.d.ts +1 -1
- package/dist/ts/components/cards/DataEntryCard.d.ts.map +1 -1
- package/dist/ts/components/cards/SectionCard.d.ts +1 -1
- package/dist/ts/components/cards/SectionCard.d.ts.map +1 -1
- package/dist/ts/components/dialogs/DeleteConfirmDialog.d.ts +1 -1
- package/dist/ts/components/dialogs/DeleteConfirmDialog.d.ts.map +1 -1
- package/dist/ts/components/dialogs/FragmentPropertiesDialog.d.ts +1 -1
- package/dist/ts/components/dialogs/FragmentPropertiesDialog.d.ts.map +1 -1
- package/dist/ts/components/dialogs/MoveFolderDialog.d.ts +1 -1
- package/dist/ts/components/dialogs/MoveFolderDialog.d.ts.map +1 -1
- package/dist/ts/components/editor/CMSMDXEditor.d.ts.map +1 -1
- package/dist/ts/components/editor/CMSMDXEditor.js +46 -55
- package/dist/ts/components/editor/CMSMDXEditor.js.map +1 -1
- package/dist/ts/components/editor/LocaleSelector.d.ts +1 -1
- package/dist/ts/components/editor/LocaleSelector.d.ts.map +1 -1
- package/dist/ts/components/editor/PageEditor.d.ts +1 -1
- package/dist/ts/components/editor/PageEditor.d.ts.map +1 -1
- package/dist/ts/components/editor/PageEditor.js +46 -17
- package/dist/ts/components/editor/PageEditor.js.map +1 -1
- package/dist/ts/components/editor/PageEditorHeaderActions.d.ts +1 -1
- package/dist/ts/components/editor/PageEditorHeaderActions.d.ts.map +1 -1
- package/dist/ts/components/editor/PageEditorWrapper.js +31 -5
- package/dist/ts/components/editor/PageEditorWrapper.js.map +1 -1
- package/dist/ts/components/editor/draft-media-config.d.ts +19 -1
- package/dist/ts/components/editor/draft-media-config.d.ts.map +1 -1
- package/dist/ts/components/editor/draft-media-config.js +112 -21
- package/dist/ts/components/editor/draft-media-config.js.map +1 -1
- package/dist/ts/components/editor/page-setting-targets.d.ts +1 -1
- package/dist/ts/components/editor/page-setting-targets.d.ts.map +1 -1
- package/dist/ts/components/editor/preview-availability.d.ts +6 -5
- package/dist/ts/components/editor/preview-availability.d.ts.map +1 -1
- package/dist/ts/components/editor/preview-availability.js +6 -5
- package/dist/ts/components/editor/preview-availability.js.map +1 -1
- package/dist/ts/components/editors/DataEditor.d.ts +1 -1
- package/dist/ts/components/editors/DataEditor.d.ts.map +1 -1
- package/dist/ts/components/media/AssetCard.d.ts +1 -1
- package/dist/ts/components/media/AssetCard.d.ts.map +1 -1
- package/dist/ts/components/media/AssetCard.js +3 -2
- package/dist/ts/components/media/AssetCard.js.map +1 -1
- package/dist/ts/components/media/AssetDetailSidebar.d.ts +1 -1
- package/dist/ts/components/media/AssetDetailSidebar.d.ts.map +1 -1
- package/dist/ts/components/media/AssetDetailSidebar.js +4 -2
- package/dist/ts/components/media/AssetDetailSidebar.js.map +1 -1
- package/dist/ts/components/media/MediaLibrary.d.ts +1 -1
- package/dist/ts/components/media/MediaLibrary.d.ts.map +1 -1
- package/dist/ts/components/media/MediaToolbar.d.ts +1 -1
- package/dist/ts/components/media/MediaToolbar.d.ts.map +1 -1
- package/dist/ts/components/pages/PageList.d.ts.map +1 -1
- package/dist/ts/components/pages/PageList.js +10 -4
- package/dist/ts/components/pages/PageList.js.map +1 -1
- package/dist/ts/components/sandbox/ContentSandbox.d.ts +1 -1
- package/dist/ts/components/sandbox/ContentSandbox.d.ts.map +1 -1
- package/dist/ts/components/sandbox/ContentSandbox.js +36 -5
- package/dist/ts/components/sandbox/ContentSandbox.js.map +1 -1
- package/dist/ts/components/ui/IconButton.d.ts +1 -1
- package/dist/ts/components/ui/IconButton.d.ts.map +1 -1
- package/dist/ts/content-wrapper.d.ts +65 -0
- package/dist/ts/content-wrapper.d.ts.map +1 -0
- package/dist/ts/content-wrapper.js +190 -0
- package/dist/ts/content-wrapper.js.map +1 -0
- package/dist/ts/data-schemas.d.ts.map +1 -1
- package/dist/ts/frame/channel.d.ts +40 -0
- package/dist/ts/frame/channel.d.ts.map +1 -0
- package/dist/ts/frame/channel.js +233 -0
- package/dist/ts/frame/channel.js.map +1 -0
- package/dist/ts/frame/editor-frame.d.ts +23 -0
- package/dist/ts/frame/editor-frame.d.ts.map +1 -0
- package/dist/ts/frame/editor-frame.js +154 -0
- package/dist/ts/frame/editor-frame.js.map +1 -0
- package/dist/ts/frame/media-cache.d.ts +26 -0
- package/dist/ts/frame/media-cache.d.ts.map +1 -0
- package/dist/ts/frame/media-cache.js +123 -0
- package/dist/ts/frame/media-cache.js.map +1 -0
- package/dist/ts/frame/memory-router.d.ts +10 -0
- package/dist/ts/frame/memory-router.d.ts.map +1 -0
- package/dist/ts/frame/memory-router.js +39 -0
- package/dist/ts/frame/memory-router.js.map +1 -0
- package/dist/ts/frame/parent-hello.d.ts +11 -0
- package/dist/ts/frame/parent-hello.d.ts.map +1 -0
- package/dist/ts/frame/parent-hello.js +53 -0
- package/dist/ts/frame/parent-hello.js.map +1 -0
- package/dist/ts/frame/protocol.d.ts +201 -0
- package/dist/ts/frame/protocol.d.ts.map +1 -0
- package/dist/ts/frame/protocol.js +195 -0
- package/dist/ts/frame/protocol.js.map +1 -0
- package/dist/ts/frame/rpc-content-client.d.ts +10 -0
- package/dist/ts/frame/rpc-content-client.d.ts.map +1 -0
- package/dist/ts/frame/rpc-content-client.js +51 -0
- package/dist/ts/frame/rpc-content-client.js.map +1 -0
- package/dist/ts/frame/save-shortcut.d.ts +8 -0
- package/dist/ts/frame/save-shortcut.d.ts.map +1 -0
- package/dist/ts/frame/save-shortcut.js +26 -0
- package/dist/ts/frame/save-shortcut.js.map +1 -0
- package/dist/ts/host-style-probe.d.ts +32 -37
- package/dist/ts/host-style-probe.d.ts.map +1 -1
- package/dist/ts/host-style-probe.js +86 -68
- package/dist/ts/host-style-probe.js.map +1 -1
- package/dist/ts/index.d.ts +4 -2
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +6 -2
- package/dist/ts/index.js.map +1 -1
- package/dist/ts/main-spa.d.ts.map +1 -1
- package/dist/ts/main-spa.js +2 -1
- package/dist/ts/main-spa.js.map +1 -1
- package/dist/ts/page-schemas.d.ts.map +1 -1
- package/dist/ts/prose-surface-css.d.ts +3 -5
- package/dist/ts/prose-surface-css.d.ts.map +1 -1
- package/dist/ts/prose-surface-css.js +3 -5
- package/dist/ts/prose-surface-css.js.map +1 -1
- package/dist/ts/puck-config.d.ts.map +1 -1
- package/dist/ts/selected-block.d.ts.map +1 -1
- package/dist/ts/site-styles.d.ts +4 -21
- package/dist/ts/site-styles.d.ts.map +1 -1
- package/dist/ts/site-styles.js.map +1 -1
- package/dist/ts/ui-config.d.ts +50 -1
- package/dist/ts/ui-config.d.ts.map +1 -1
- package/dist/ts/ui-config.js +4 -0
- package/dist/ts/ui-config.js.map +1 -1
- package/package.json +20 -10
- package/src/App.tsx +22 -10
- package/src/CmsSpaApp.tsx +5 -1
- package/src/components/editor/CMSMDXEditor.tsx +49 -69
- package/src/components/editor/PageEditor.tsx +45 -17
- package/src/components/editor/PageEditorWrapper.tsx +34 -5
- package/src/components/editor/draft-media-config.ts +125 -23
- package/src/components/editor/preview-availability.ts +6 -5
- package/src/components/media/AssetCard.tsx +10 -7
- package/src/components/media/AssetDetailSidebar.tsx +6 -6
- package/src/components/pages/PageList.tsx +12 -4
- package/src/components/sandbox/ContentSandbox.tsx +34 -5
- package/src/content-wrapper.ts +284 -0
- package/src/frame/channel.ts +258 -0
- package/src/frame/editor-frame.ts +180 -0
- package/src/frame/media-cache.ts +144 -0
- package/src/frame/memory-router.ts +39 -0
- package/src/frame/parent-hello.ts +62 -0
- package/src/frame/protocol.ts +323 -0
- package/src/frame/rpc-content-client.ts +58 -0
- package/src/frame/save-shortcut.ts +25 -0
- package/src/host-style-probe.ts +104 -90
- package/src/index.ts +7 -2
- package/src/main-spa.tsx +2 -0
- package/src/main.css +2 -1
- package/src/prose-surface-css.ts +3 -5
- package/src/site-styles.ts +4 -22
- package/src/ui-config.ts +52 -1
- package/dist/ts/host-discovery.d.ts +0 -40
- package/dist/ts/host-discovery.d.ts.map +0 -1
- package/dist/ts/host-discovery.js +0 -39
- package/dist/ts/host-discovery.js.map +0 -1
- package/src/host-discovery.ts +0 -77
package/README.md
CHANGED
|
@@ -54,3 +54,29 @@ In production (when used as an Astro plugin), the CMS:
|
|
|
54
54
|
1. Loads the actual Puck config from the host website
|
|
55
55
|
2. Uses Astro's content API for data persistence
|
|
56
56
|
3. Leverages Vite's HMR for component updates
|
|
57
|
+
|
|
58
|
+
## Running inside a parent frame
|
|
59
|
+
|
|
60
|
+
An editor page can run inside a parent frame that owns the address bar, the credentials and the save control. The page
|
|
61
|
+
waits for the parent's hello with `awaitParentHello(window, acceptsOrigin, { repo, siteId })` (`acceptsParentOrigin`
|
|
62
|
+
from `@conloca/cms-spa/frame-protocol` implements the origin rule), then calls `connectEditorFrame(port)`. That resolves
|
|
63
|
+
on the parent's `init` with an `EditorFrame`:
|
|
64
|
+
|
|
65
|
+
- `init`: the parent's settings (first route, read-only refusal, preview capability, theme, locales, whether media loads
|
|
66
|
+
through the parent).
|
|
67
|
+
- `config`: the `UIConfig` part to pass to `configureUI` before mounting `<CmsSpaApp/>`, with an `RpcContentClient` that
|
|
68
|
+
sends every content call to the parent.
|
|
69
|
+
- `ready()`, `reportStale()` and `reportLoadFailed(stage, message)`: messages to the parent.
|
|
70
|
+
|
|
71
|
+
While connected, the parent can flush the open editor, and the page reports dirty state, Cmd/Ctrl+S (also inside the
|
|
72
|
+
editing canvas) and route changes to it.
|
|
73
|
+
|
|
74
|
+
Four `UIConfig` fields make this work; without them nothing changes:
|
|
75
|
+
|
|
76
|
+
- `memoryRouter`: route in memory and report each route to the parent.
|
|
77
|
+
- `previewTab: 'parent'`: the parent opens the preview tab; the editor only asks through `openPreview`.
|
|
78
|
+
- `loadMedia`: media surfaces show object URLs of loaded bytes instead of media URLs.
|
|
79
|
+
- `sandboxFramePath`: where the MDX sandbox frame loads from.
|
|
80
|
+
|
|
81
|
+
The parent side imports the message contract from `@conloca/cms-spa/frame-protocol` and the port channel from
|
|
82
|
+
`@conloca/cms-spa/frame-channel`.
|
package/dist/spa/main.css
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer base, theme, components, utilities, cms-admin, conloca-host-defaults, conloca-host-preview;
|
|
4
4
|
@layer cms-admin {
|
|
5
|
-
@import "https://rsms.me/inter/inter.css";
|
|
6
5
|
@layer puck-tokens {
|
|
7
6
|
:root {
|
|
8
7
|
--puck-color-rose-01: #4a001c;
|
|
@@ -3626,6 +3625,205 @@
|
|
|
3626
3625
|
margin-bottom: 0;
|
|
3627
3626
|
}
|
|
3628
3627
|
}
|
|
3628
|
+
.prose-lg {
|
|
3629
|
+
font-size: 1.125rem;
|
|
3630
|
+
line-height: 1.7777778;
|
|
3631
|
+
:where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3632
|
+
margin-top: 1.3333333em;
|
|
3633
|
+
margin-bottom: 1.3333333em;
|
|
3634
|
+
}
|
|
3635
|
+
:where([class~="lead"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3636
|
+
font-size: 1.2222222em;
|
|
3637
|
+
line-height: 1.4545455;
|
|
3638
|
+
margin-top: 1.0909091em;
|
|
3639
|
+
margin-bottom: 1.0909091em;
|
|
3640
|
+
}
|
|
3641
|
+
:where(blockquote):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3642
|
+
margin-top: 1.6666667em;
|
|
3643
|
+
margin-bottom: 1.6666667em;
|
|
3644
|
+
padding-inline-start: 1em;
|
|
3645
|
+
}
|
|
3646
|
+
:where(h1):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3647
|
+
font-size: 2.6666667em;
|
|
3648
|
+
margin-top: 0;
|
|
3649
|
+
margin-bottom: 0.8333333em;
|
|
3650
|
+
line-height: 1;
|
|
3651
|
+
}
|
|
3652
|
+
:where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3653
|
+
font-size: 1.6666667em;
|
|
3654
|
+
margin-top: 1.8666667em;
|
|
3655
|
+
margin-bottom: 1.0666667em;
|
|
3656
|
+
line-height: 1.3333333;
|
|
3657
|
+
}
|
|
3658
|
+
:where(h3):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3659
|
+
font-size: 1.3333333em;
|
|
3660
|
+
margin-top: 1.6666667em;
|
|
3661
|
+
margin-bottom: 0.6666667em;
|
|
3662
|
+
line-height: 1.5;
|
|
3663
|
+
}
|
|
3664
|
+
:where(h4):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3665
|
+
margin-top: 1.7777778em;
|
|
3666
|
+
margin-bottom: 0.4444444em;
|
|
3667
|
+
line-height: 1.5555556;
|
|
3668
|
+
}
|
|
3669
|
+
:where(img):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3670
|
+
margin-top: 1.7777778em;
|
|
3671
|
+
margin-bottom: 1.7777778em;
|
|
3672
|
+
}
|
|
3673
|
+
:where(picture):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3674
|
+
margin-top: 1.7777778em;
|
|
3675
|
+
margin-bottom: 1.7777778em;
|
|
3676
|
+
}
|
|
3677
|
+
:where(picture > img):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3678
|
+
margin-top: 0;
|
|
3679
|
+
margin-bottom: 0;
|
|
3680
|
+
}
|
|
3681
|
+
:where(video):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3682
|
+
margin-top: 1.7777778em;
|
|
3683
|
+
margin-bottom: 1.7777778em;
|
|
3684
|
+
}
|
|
3685
|
+
:where(kbd):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3686
|
+
font-size: 0.8888889em;
|
|
3687
|
+
border-radius: 0.3125rem;
|
|
3688
|
+
padding-top: 0.2222222em;
|
|
3689
|
+
padding-inline-end: 0.4444444em;
|
|
3690
|
+
padding-bottom: 0.2222222em;
|
|
3691
|
+
padding-inline-start: 0.4444444em;
|
|
3692
|
+
}
|
|
3693
|
+
:where(code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3694
|
+
font-size: 0.8888889em;
|
|
3695
|
+
}
|
|
3696
|
+
:where(h2 code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3697
|
+
font-size: 0.8666667em;
|
|
3698
|
+
}
|
|
3699
|
+
:where(h3 code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3700
|
+
font-size: 0.875em;
|
|
3701
|
+
}
|
|
3702
|
+
:where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3703
|
+
font-size: 0.8888889em;
|
|
3704
|
+
line-height: 1.75;
|
|
3705
|
+
margin-top: 2em;
|
|
3706
|
+
margin-bottom: 2em;
|
|
3707
|
+
border-radius: 0.375rem;
|
|
3708
|
+
padding-top: 1em;
|
|
3709
|
+
padding-inline-end: 1.5em;
|
|
3710
|
+
padding-bottom: 1em;
|
|
3711
|
+
padding-inline-start: 1.5em;
|
|
3712
|
+
}
|
|
3713
|
+
:where(ol):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3714
|
+
margin-top: 1.3333333em;
|
|
3715
|
+
margin-bottom: 1.3333333em;
|
|
3716
|
+
padding-inline-start: 1.5555556em;
|
|
3717
|
+
}
|
|
3718
|
+
:where(ul):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3719
|
+
margin-top: 1.3333333em;
|
|
3720
|
+
margin-bottom: 1.3333333em;
|
|
3721
|
+
padding-inline-start: 1.5555556em;
|
|
3722
|
+
}
|
|
3723
|
+
:where(li):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3724
|
+
margin-top: 0.6666667em;
|
|
3725
|
+
margin-bottom: 0.6666667em;
|
|
3726
|
+
}
|
|
3727
|
+
:where(ol > li):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3728
|
+
padding-inline-start: 0.4444444em;
|
|
3729
|
+
}
|
|
3730
|
+
:where(ul > li):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3731
|
+
padding-inline-start: 0.4444444em;
|
|
3732
|
+
}
|
|
3733
|
+
:where(.prose-lg > ul > li p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3734
|
+
margin-top: 0.8888889em;
|
|
3735
|
+
margin-bottom: 0.8888889em;
|
|
3736
|
+
}
|
|
3737
|
+
:where(.prose-lg > ul > li > p:first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3738
|
+
margin-top: 1.3333333em;
|
|
3739
|
+
}
|
|
3740
|
+
:where(.prose-lg > ul > li > p:last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3741
|
+
margin-bottom: 1.3333333em;
|
|
3742
|
+
}
|
|
3743
|
+
:where(.prose-lg > ol > li > p:first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3744
|
+
margin-top: 1.3333333em;
|
|
3745
|
+
}
|
|
3746
|
+
:where(.prose-lg > ol > li > p:last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3747
|
+
margin-bottom: 1.3333333em;
|
|
3748
|
+
}
|
|
3749
|
+
:where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3750
|
+
margin-top: 0.8888889em;
|
|
3751
|
+
margin-bottom: 0.8888889em;
|
|
3752
|
+
}
|
|
3753
|
+
:where(dl):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3754
|
+
margin-top: 1.3333333em;
|
|
3755
|
+
margin-bottom: 1.3333333em;
|
|
3756
|
+
}
|
|
3757
|
+
:where(dt):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3758
|
+
margin-top: 1.3333333em;
|
|
3759
|
+
}
|
|
3760
|
+
:where(dd):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3761
|
+
margin-top: 0.6666667em;
|
|
3762
|
+
padding-inline-start: 1.5555556em;
|
|
3763
|
+
}
|
|
3764
|
+
:where(hr):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3765
|
+
margin-top: 3.1111111em;
|
|
3766
|
+
margin-bottom: 3.1111111em;
|
|
3767
|
+
}
|
|
3768
|
+
:where(hr + *):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3769
|
+
margin-top: 0;
|
|
3770
|
+
}
|
|
3771
|
+
:where(h2 + *):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3772
|
+
margin-top: 0;
|
|
3773
|
+
}
|
|
3774
|
+
:where(h3 + *):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3775
|
+
margin-top: 0;
|
|
3776
|
+
}
|
|
3777
|
+
:where(h4 + *):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3778
|
+
margin-top: 0;
|
|
3779
|
+
}
|
|
3780
|
+
:where(table):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3781
|
+
font-size: 0.8888889em;
|
|
3782
|
+
line-height: 1.5;
|
|
3783
|
+
}
|
|
3784
|
+
:where(thead th):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3785
|
+
padding-inline-end: 0.75em;
|
|
3786
|
+
padding-bottom: 0.75em;
|
|
3787
|
+
padding-inline-start: 0.75em;
|
|
3788
|
+
}
|
|
3789
|
+
:where(thead th:first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3790
|
+
padding-inline-start: 0;
|
|
3791
|
+
}
|
|
3792
|
+
:where(thead th:last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3793
|
+
padding-inline-end: 0;
|
|
3794
|
+
}
|
|
3795
|
+
:where(tbody td, tfoot td):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3796
|
+
padding-top: 0.75em;
|
|
3797
|
+
padding-inline-end: 0.75em;
|
|
3798
|
+
padding-bottom: 0.75em;
|
|
3799
|
+
padding-inline-start: 0.75em;
|
|
3800
|
+
}
|
|
3801
|
+
:where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3802
|
+
padding-inline-start: 0;
|
|
3803
|
+
}
|
|
3804
|
+
:where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3805
|
+
padding-inline-end: 0;
|
|
3806
|
+
}
|
|
3807
|
+
:where(figure):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3808
|
+
margin-top: 1.7777778em;
|
|
3809
|
+
margin-bottom: 1.7777778em;
|
|
3810
|
+
}
|
|
3811
|
+
:where(figure > *):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3812
|
+
margin-top: 0;
|
|
3813
|
+
margin-bottom: 0;
|
|
3814
|
+
}
|
|
3815
|
+
:where(figcaption):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3816
|
+
font-size: 0.8888889em;
|
|
3817
|
+
line-height: 1.5;
|
|
3818
|
+
margin-top: 1em;
|
|
3819
|
+
}
|
|
3820
|
+
:where(.prose-lg > :first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3821
|
+
margin-top: 0;
|
|
3822
|
+
}
|
|
3823
|
+
:where(.prose-lg > :last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
3824
|
+
margin-bottom: 0;
|
|
3825
|
+
}
|
|
3826
|
+
}
|
|
3629
3827
|
.-mt-1 {
|
|
3630
3828
|
margin-top: calc(var(--spacing) * -1);
|
|
3631
3829
|
}
|
|
@@ -4723,6 +4921,10 @@
|
|
|
4723
4921
|
--tw-invert: invert(100%);
|
|
4724
4922
|
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
4725
4923
|
}
|
|
4924
|
+
.sepia {
|
|
4925
|
+
--tw-sepia: sepia(100%);
|
|
4926
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
4927
|
+
}
|
|
4726
4928
|
.filter {
|
|
4727
4929
|
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
4728
4930
|
}
|
|
@@ -5149,6 +5351,26 @@
|
|
|
5149
5351
|
.dark\:text-yellow-09:is(.dark, .dark *) {
|
|
5150
5352
|
color: var(--color-yellow-09);
|
|
5151
5353
|
}
|
|
5354
|
+
.dark\:prose-invert:is(.dark, .dark *) {
|
|
5355
|
+
--tw-prose-body: var(--tw-prose-invert-body);
|
|
5356
|
+
--tw-prose-headings: var(--tw-prose-invert-headings);
|
|
5357
|
+
--tw-prose-lead: var(--tw-prose-invert-lead);
|
|
5358
|
+
--tw-prose-links: var(--tw-prose-invert-links);
|
|
5359
|
+
--tw-prose-bold: var(--tw-prose-invert-bold);
|
|
5360
|
+
--tw-prose-counters: var(--tw-prose-invert-counters);
|
|
5361
|
+
--tw-prose-bullets: var(--tw-prose-invert-bullets);
|
|
5362
|
+
--tw-prose-hr: var(--tw-prose-invert-hr);
|
|
5363
|
+
--tw-prose-quotes: var(--tw-prose-invert-quotes);
|
|
5364
|
+
--tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);
|
|
5365
|
+
--tw-prose-captions: var(--tw-prose-invert-captions);
|
|
5366
|
+
--tw-prose-kbd: var(--tw-prose-invert-kbd);
|
|
5367
|
+
--tw-prose-kbd-shadows: var(--tw-prose-invert-kbd-shadows);
|
|
5368
|
+
--tw-prose-code: var(--tw-prose-invert-code);
|
|
5369
|
+
--tw-prose-pre-code: var(--tw-prose-invert-pre-code);
|
|
5370
|
+
--tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);
|
|
5371
|
+
--tw-prose-th-borders: var(--tw-prose-invert-th-borders);
|
|
5372
|
+
--tw-prose-td-borders: var(--tw-prose-invert-td-borders);
|
|
5373
|
+
}
|
|
5152
5374
|
@media (hover: hover) {
|
|
5153
5375
|
.dark\:group-hover\:bg-azure-02:is(.dark, .dark *):is(:where(.group):hover *) {
|
|
5154
5376
|
background-color: var(--color-azure-02);
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"files": {
|
|
4
|
+
"packages/cms-spa/src/App.tsx": "afaf4bace724793057c78adca4afa32dcb5e37af6f358462854d0f8ef780ceac",
|
|
5
|
+
"packages/cms-spa/src/CmsSpaApp.tsx": "0e7002b65a0137550a41a1466aa9c793cd5a41ac3d8f5cd9a9656787c04eb266",
|
|
6
|
+
"packages/cms-spa/src/components/CMSDashboard.tsx": "5a532d283a01d64e4dc09fc651b89e309dd6007036e3e93349092d7a1362fe38",
|
|
7
|
+
"packages/cms-spa/src/components/CMSLayout.tsx": "34a180ec8ae334f10d0c63946eaa6e23341f626348fb57c397e4695500bfc0b9",
|
|
8
|
+
"packages/cms-spa/src/components/ConlocaLogo.tsx": "7db8a21c739c14aaa4593b70aff4ac05c19c48c0716376beab801e13fd90f45d",
|
|
9
|
+
"packages/cms-spa/src/components/GitStatusPanel.tsx": "5dcf0f6c08e0af47c440c8b09ef20f5dfc951b23623bd37198e61579e8cf7a4b",
|
|
10
|
+
"packages/cms-spa/src/components/MobileTopBar.tsx": "e3d8ef80b1acbd163f024b3b43bcea690637731564a177dc18a9e7556487ef90",
|
|
11
|
+
"packages/cms-spa/src/components/RouteErrorPage.tsx": "07ea76dbc8ae8788037950f08f8f9a2ae8218a8b1ef315fe194aa9fc7acf9c28",
|
|
12
|
+
"packages/cms-spa/src/components/Sidebar.tsx": "9edb8289b292ec3e39915add67c079debf991b2a8bd38f7b096ca0f0dd01e96c",
|
|
13
|
+
"packages/cms-spa/src/components/UserAvatar.tsx": "8a90b920cd4d88bcb0ba76137003b041060209631393738b5fb2d201fbbfeb92",
|
|
14
|
+
"packages/cms-spa/src/components/cards/DataEntryCard.tsx": "3468b0c0b3f82eb70a41d2f66a7d65c7be5edf66e861359c864f6ab7a8852747",
|
|
15
|
+
"packages/cms-spa/src/components/cards/SectionCard.tsx": "9a855492d6109ebb593b26c9fbc583d947d565a213a4f4743c93d1760cb0f13f",
|
|
16
|
+
"packages/cms-spa/src/components/cards/index.ts": "71738d5b39f2005f8ccd9c47e58f3e4c67008d072631514daf57333206ea9788",
|
|
17
|
+
"packages/cms-spa/src/components/dashboard/RecentActivity.tsx": "e1ff19d661a5ff5b6cebd2224c2ac87c590876649901951babc33f403d223dec",
|
|
18
|
+
"packages/cms-spa/src/components/dialog.tsx": "4c71754fd85a92968d47b97750893561fd4bb65b6318cb388a140d5cfcd48b6d",
|
|
19
|
+
"packages/cms-spa/src/components/dialogs/ConflictDialog.tsx": "b2003c98ea0e61430350ab4b6b45b2e0edb9b0dc9910dbf53df6ff2f51be1c90",
|
|
20
|
+
"packages/cms-spa/src/components/dialogs/CreateDataDialog.tsx": "0d0d45605be9c297f3bae68e9e8a37db10a13be14307d14e0b2b064051277d4f",
|
|
21
|
+
"packages/cms-spa/src/components/dialogs/CreateFolderDialog.tsx": "861ed3c6c5191051ce42a53bb763c27b4ec5deba8ccfa18c03d814aed1922f45",
|
|
22
|
+
"packages/cms-spa/src/components/dialogs/CreatePageDialog.tsx": "a8fa79c5f9bf0866ccfd8fa3cf2cf7ee417e2716e8594ce19db6ed04b28d8e47",
|
|
23
|
+
"packages/cms-spa/src/components/dialogs/CreatePageFlow.tsx": "ab2afa4015109b8b57fe12834269b6dc0d70188f798bfaf2d3c4cc4aac769943",
|
|
24
|
+
"packages/cms-spa/src/components/dialogs/DataPropertiesDialog.tsx": "ab3f8467897ede53a222d29d517e8da8340ce74f933a54e33dac6a776889d237",
|
|
25
|
+
"packages/cms-spa/src/components/dialogs/DeleteConfirmDialog.tsx": "6b274c7444f238b4acb204e80d25c545edac503ab0171aaccc72cf8d1438787d",
|
|
26
|
+
"packages/cms-spa/src/components/dialogs/ErrorModal.tsx": "b713a68941792c032fd34971343ba393d9fc9d1e3c640e1f89652068a3e488ff",
|
|
27
|
+
"packages/cms-spa/src/components/dialogs/FragmentPropertiesDialog.tsx": "70feb3fcd39974d075d4b16dd7e4ef2f3e80c7f357843b8c49ef9e85f17064ff",
|
|
28
|
+
"packages/cms-spa/src/components/dialogs/MoveFolderDialog.tsx": "0386fda747de5d7d19ca699f9f0dd8f582e1dc9e2539c2f0a21674493046a813",
|
|
29
|
+
"packages/cms-spa/src/components/dialogs/PageMetadataDialog.tsx": "85b91d7cd7483e03f843f9c0b2807f41f42b9371c4c95d559d29f132a366ca86",
|
|
30
|
+
"packages/cms-spa/src/components/dialogs/UnsavedChangesDialog.tsx": "a05edb9510222c74739b6a43b5bc114c064b46a0d4ba23d4a717772513d90e9e",
|
|
31
|
+
"packages/cms-spa/src/components/dialogs/index.ts": "a3fe8aeb8887cb935078c453d7de1df71a67631e62f5c479296e1d089a7cdc80",
|
|
32
|
+
"packages/cms-spa/src/components/editor/CMSMDXEditor.tsx": "c5daa1f0425ab44f2a46afb7cb3496079882d13010acf4e604e49eec99a9d472",
|
|
33
|
+
"packages/cms-spa/src/components/editor/ContentDiff.tsx": "766326fd505816ea5bd8f6ad1e27a01fcd488633521af9e1693248291650a400",
|
|
34
|
+
"packages/cms-spa/src/components/editor/CreateFragmentDialog.tsx": "b9ef5f6c6c4e06ac6b0ac59b2d97b7190807a68aeb0eb9a4d47d71cf100dabb3",
|
|
35
|
+
"packages/cms-spa/src/components/editor/DrawerItemOverride.tsx": "1219cf38fbecd0345be84e63d08f438736f55be53cc8cdc28bad36f3ee4b8e39",
|
|
36
|
+
"packages/cms-spa/src/components/editor/EditorChromeToggles.tsx": "e5a9538e14353b35910063547886391796eaf4c959ed73370088deedce745906",
|
|
37
|
+
"packages/cms-spa/src/components/editor/FragmentEditor.tsx": "d2da711b86f04eb4e0a0f15e2b1da992ef21657dcc55d5ad8fa7a1ffa82b3ad8",
|
|
38
|
+
"packages/cms-spa/src/components/editor/FragmentWrappers.tsx": "bf11de12737ea233abb1ef2bbbe1a28e602f1c78ee94f59afc14fdf221673652",
|
|
39
|
+
"packages/cms-spa/src/components/editor/GenericBlock.tsx": "a62b1cf75b5f976043d31d6d16be9cb05a7924fe3c19b775ee53cdce14e40307",
|
|
40
|
+
"packages/cms-spa/src/components/editor/ImagePickerDialog.tsx": "8408fa56c6407407f1be077a884482a491d50b1b09721f85b9bc45e8c449198a",
|
|
41
|
+
"packages/cms-spa/src/components/editor/JsxPropsPanel.tsx": "ce07b5d04daa9e3931f0b3ac8055e87b35db9de7e2775cb315a4d525f1f6c501",
|
|
42
|
+
"packages/cms-spa/src/components/editor/LocaleSelector.tsx": "9691799df5db901b946230121c067fec189550ab6862fd98d0363dd25283e56d",
|
|
43
|
+
"packages/cms-spa/src/components/editor/MDXLivePreview.tsx": "039ee016a34ccaba6c2c619cecdaae58d6b3fa18ed2bc52177a529e4d940cd09",
|
|
44
|
+
"packages/cms-spa/src/components/editor/MdxPageEditor.tsx": "da8f18a909121e3171f079489ecf4ff4e686218b569fea16de974c5cfe51e84d",
|
|
45
|
+
"packages/cms-spa/src/components/editor/PageEditor.tsx": "1ce0824e44090b91af99a27c0f93d0cc77475d1ae18fbac859c2408e9df4bf12",
|
|
46
|
+
"packages/cms-spa/src/components/editor/PageEditorHeaderActions.tsx": "b2ac0c852e0274d930fa1fcdfff01d951c1d9bf5e1cf44f395c9865eb0d44316",
|
|
47
|
+
"packages/cms-spa/src/components/editor/PageEditorWrapper.tsx": "24dbbc8a613345d8326a9903a248e4df767dcd2a99b082aa0dd6b08d97d680d6",
|
|
48
|
+
"packages/cms-spa/src/components/editor/PuckWithUntouchedMetadata.tsx": "29748da409b12370be6035b201811cc2b6d3f494c8fd09a6d8b4538276fc34ce",
|
|
49
|
+
"packages/cms-spa/src/components/editor/SearchableSelect.tsx": "a596d4a3c7d74fc6d710f3647dc0fd445843ee184541f8bf7fd4d1a82329eb6e",
|
|
50
|
+
"packages/cms-spa/src/components/editor/draft-media-config.ts": "14d56e80a92a0c23a0af715b80a4d16e159ff1c4d0a0bf585eab59282c2f7fa7",
|
|
51
|
+
"packages/cms-spa/src/components/editor/host-wrapper-plugin.ts": "bea9ef1da8a37d8eb8de619765b97b891ce706d0304edaee5694a6e9f2d6c95b",
|
|
52
|
+
"packages/cms-spa/src/components/editor/index.ts": "a8e31df955f0160770f96519e467e615bf4de4d405a33e467da27adbaa4c1337",
|
|
53
|
+
"packages/cms-spa/src/components/editor/insert-menu/InsertMdxComponentButton.tsx": "36a7596bf53d36188e6ea8b7ad52f30b39d0a2e0b0078b91e0b0f3761a78a63a",
|
|
54
|
+
"packages/cms-spa/src/components/editor/insert-menu/SlashMenuPlugin.tsx": "1922e7278ea2a241c69436113a56e0b0025736beece6550935483eb8a1bd6155",
|
|
55
|
+
"packages/cms-spa/src/components/editor/insert-menu/insert-payload.ts": "651869030678fd8c379232322425c83aed9fda1dbc898e530b3b61777019c525",
|
|
56
|
+
"packages/cms-spa/src/components/editor/insert-menu/mdx-components-plugin.ts": "2642308a7e45193aab6ebf57db2fd8c26082ccd3024a3ffb0874fa44f910f6f7",
|
|
57
|
+
"packages/cms-spa/src/components/editor/page-setting-targets.tsx": "8b0753d7d727a8089e5e96c133657de6595a3541c17d8070744fed5d15717a03",
|
|
58
|
+
"packages/cms-spa/src/components/editor/preview-availability.ts": "e5af85120215968e2cf52dfa780fbaf598e25a8adaa221c5cd41b862fd316d8e",
|
|
59
|
+
"packages/cms-spa/src/components/editors/DataEditor.tsx": "7841ec52f5893a92754667ce8a9bf7c73bd424b51fc2dc8e9b87b1da0f507d3f",
|
|
60
|
+
"packages/cms-spa/src/components/fields/ContentFragmentSelectorField.tsx": "90f5812cf9a32c889ba6d8a2412300398a9caea792ff673a2217cb69f119cd00",
|
|
61
|
+
"packages/cms-spa/src/components/fields/ImageField.tsx": "8d3a9b92182dff0dfa886fe61bbc1c270049729d15658dda6c7985bc0e777b29",
|
|
62
|
+
"packages/cms-spa/src/components/fields/MDXEditField.tsx": "54027c9b3b24b6971a8abae344b9632cf3a29aefd758242e50aecb1c55b8b721",
|
|
63
|
+
"packages/cms-spa/src/components/forms/ChipArrayField.tsx": "ba0f5bcb12633836e88abb6272703a7091cdbbff95ecfa2759373c6f575fcd2c",
|
|
64
|
+
"packages/cms-spa/src/components/forms/HintForm.tsx": "96d9dc13bb43e180a9366978815fa3f9dc4a69ad378012a141e9417808298fee",
|
|
65
|
+
"packages/cms-spa/src/components/forms/SchemaForm.tsx": "07869dfab1d421de74a9b758a16b434763643a779addd14b51399c8b7e0f27a1",
|
|
66
|
+
"packages/cms-spa/src/components/index.ts": "d28719793aff0bbc44fe246ec29f2a29a50748c74a413e0a3d47437023bfdc81",
|
|
67
|
+
"packages/cms-spa/src/components/media/AssetCard.tsx": "76855a3f4653a3b0495e627bc0d9efd028161012130286eb155a8a26b104c397",
|
|
68
|
+
"packages/cms-spa/src/components/media/AssetDetailSidebar.tsx": "00bf719cb86bce6ddf7b62193c392a2ee0eb616038cd2dde6e35fec07f5ac885",
|
|
69
|
+
"packages/cms-spa/src/components/media/BulkActionBar.tsx": "1d8716de454815f10776d6c5cb278a2fde17b88caf2ff8160505b495bac8d5fe",
|
|
70
|
+
"packages/cms-spa/src/components/media/FolderNav.tsx": "2a1b1d88d23bd1df1b19d6ea95635fc20b52350a27ef19168a64be2de57d0b88",
|
|
71
|
+
"packages/cms-spa/src/components/media/FolderTreeSidebar.tsx": "2e31856cd270595c67e847b4dd150d82b4ad74b1a6b3be55129418f813d1eea4",
|
|
72
|
+
"packages/cms-spa/src/components/media/ImagePicker.tsx": "6602ec9634da95ce366206a833d8249a082d26f8f755fc62b0ca321e468f020a",
|
|
73
|
+
"packages/cms-spa/src/components/media/MediaLibrary.tsx": "c42383f63af4f93707f58255b45249e8f73ae6df0b2668fea72fafb6633304d3",
|
|
74
|
+
"packages/cms-spa/src/components/media/MediaToolbar.tsx": "575971d98645e2fd83cabb9999da2ba36e73384a5aea733c9cc7b638e748e090",
|
|
75
|
+
"packages/cms-spa/src/components/media/UploadModal.tsx": "b7f9fe1d5c15f1417e09ab62c0350670b49d8e279a5d1e7585b50ad9f5b93163",
|
|
76
|
+
"packages/cms-spa/src/components/media/index.ts": "e8dac87e60a0f23c0a9ba86c217ba3e667387395529532e0703b6a88e4718732",
|
|
77
|
+
"packages/cms-spa/src/components/pages/DataList.tsx": "c4bdab7c42d81f1a4aa69a76295c96f3dee34ada8dbe641ea3ca68c4ae2f57a6",
|
|
78
|
+
"packages/cms-spa/src/components/pages/FragmentList.tsx": "e4bb2570bf9a2412fc72e02b507cf8cfe71e4666d71698d4148868e22a182378",
|
|
79
|
+
"packages/cms-spa/src/components/pages/MediaPage.tsx": "6c81d5275c6a59641bd18f752356ab87529615557ca0b6f0b8b4d2388808d8d9",
|
|
80
|
+
"packages/cms-spa/src/components/pages/PageList.tsx": "449a586cb0bc4dd774274e286bcb826f8295130ec80ec1ebe253f62943f8cd54",
|
|
81
|
+
"packages/cms-spa/src/components/pages/index.ts": "53e41115c6144d038f300c80277a1d618fe5aaec0a0e08882331968a092c2b36",
|
|
82
|
+
"packages/cms-spa/src/components/puck/MDXContent.tsx": "4b003f249247a4bb1fe2c44921a4491f04589ac0b72b811864ded728a44c13cf",
|
|
83
|
+
"packages/cms-spa/src/components/puck/index.ts": "1350f86bf952925e984ac899bf4ed65dd2905749423306662d50d2477f276024",
|
|
84
|
+
"packages/cms-spa/src/components/sandbox/ContentSandbox.tsx": "347f04ea82d38f3182022cbbe7ea5fc490fd4fe725059fb031efbcca49809857",
|
|
85
|
+
"packages/cms-spa/src/components/sandbox/frame-runtime.ts": "b8258b243ec01f040b93fd01e8c52ac6b69ea0de7c8f2d31cffa352a64d9efc9",
|
|
86
|
+
"packages/cms-spa/src/components/toast.tsx": "513eced4ca593d6db3d080e1245b19a2643cb43b44cbb809fc1bf3a89b6adc20",
|
|
87
|
+
"packages/cms-spa/src/components/ui/Banner.tsx": "709c538f51bbbd9e7bfdf5e989b8bd9ee5c1819308cdac9dee953dde2d013290",
|
|
88
|
+
"packages/cms-spa/src/components/ui/Button.tsx": "5c84ac8570d9e9246db59dc4621bc273c3986e3e86866111052ab119d556efdc",
|
|
89
|
+
"packages/cms-spa/src/components/ui/Card.tsx": "0ec4ccbb024404907cecd94923ce76bd78f0bd30e2c4028eb7dbdb5cb9308a69",
|
|
90
|
+
"packages/cms-spa/src/components/ui/FieldError.tsx": "14ecc266dbf4f05aebe422ad435cb5b599699d00ffc1daf68ef495fc56371b2f",
|
|
91
|
+
"packages/cms-spa/src/components/ui/IconButton.tsx": "48d56ced810a8f69e34d0b5961d25bcfe20923ba49aa6b85a4befed0ce961e95",
|
|
92
|
+
"packages/cms-spa/src/components/ui/Input.tsx": "c90f56109cd72e6ff6a40c0673a479412dfb9bcb4bd9cc334ad6be21e761f384",
|
|
93
|
+
"packages/cms-spa/src/components/ui/SaveIndicator.tsx": "e9cee00b1815a3f40d8c91b278f196d8e3602ddba21fb9bff18287fc0140c4a3",
|
|
94
|
+
"packages/cms-spa/src/components/ui/Select.tsx": "80094a43a19463d3275fac86eeb1a0260ea3fcaf9c636e99b8f5c5fe378a8f7b",
|
|
95
|
+
"packages/cms-spa/src/components/ui/Separator.tsx": "e875e2f56cd5949fc0df0dc3abae4b8af9dfe99bfa7376eed2532688081394fe",
|
|
96
|
+
"packages/cms-spa/src/components/ui/Textarea.tsx": "acb77f894444aae27869170a44569053ed18009b41bfb09911a4a1c99a193a5d",
|
|
97
|
+
"packages/cms-spa/src/components/ui/Tooltip.tsx": "a7fe5453cbaadb7e2485e2037e43694166adb6a01ef459c31d54a66b3de4f973",
|
|
98
|
+
"packages/cms-spa/src/components/ui/index.ts": "eee0227cb7e5254e5a33699690085947e9aeed0c007588b355a3b8a666bc9299",
|
|
99
|
+
"packages/cms-spa/src/content-form-fields.ts": "6954b618986d2c9523d07f883f99837f80012207b453d4f83899427ede18b14d",
|
|
100
|
+
"packages/cms-spa/src/content-wrapper.ts": "6ca19a7ab6f42b47613c6b25f9eb033d180cc13a6b4025f35b9537f9677a19e0",
|
|
101
|
+
"packages/cms-spa/src/data-schemas.ts": "7c61cdd26ad475ea31a082baa1288f1473c064aac2477d85c679bdbdbd2fb917",
|
|
102
|
+
"packages/cms-spa/src/dev-entry.tsx": "3fbf931a45cd34bd733033184af123c32f4afce67a7598c5b3de38013a416290",
|
|
103
|
+
"packages/cms-spa/src/editor-flush.ts": "cdd9423a58fce0ec5ed198f428a800e0c03356b4171445a8d020e41e17066669",
|
|
104
|
+
"packages/cms-spa/src/frame/channel.ts": "8278a46e73ebd707ee39391cca87a3fecdff7238a46ec52fdc4f63d1be29740e",
|
|
105
|
+
"packages/cms-spa/src/frame/editor-frame.ts": "f21a90a62a6f74a7b9529e747ad0b5f4824c292122d6fa49901ec2a59152ba1c",
|
|
106
|
+
"packages/cms-spa/src/frame/media-cache.ts": "454e54bb5ef0e6226e8d9547a3deaf022678161b88a0fe2c2e59b57257c19497",
|
|
107
|
+
"packages/cms-spa/src/frame/memory-router.ts": "459bc7e33e1e0a8f48bc3121be934f8d70e8069f3ba09169a6b0ee70370c749b",
|
|
108
|
+
"packages/cms-spa/src/frame/parent-hello.ts": "9c50a989b2bd0d7b6efe10d4c90ee57f6f6101a9396251cdf074cf3f440ed00b",
|
|
109
|
+
"packages/cms-spa/src/frame/protocol.ts": "3ae4526e22e3f6a3e006977fd938a26942db22121f11d4bb161d27e2a2e9cab5",
|
|
110
|
+
"packages/cms-spa/src/frame/rpc-content-client.ts": "76222347e2435aafee643d6a9afcc105334272d1b7093c90841cd32629babd4f",
|
|
111
|
+
"packages/cms-spa/src/frame/save-shortcut.ts": "113a518f92f4bfe92709c19d85cfb8d87016c28b6ae84f3f16ad761730ea1ee2",
|
|
112
|
+
"packages/cms-spa/src/hooks/index.ts": "9710579b1a4caf7ea9e3175888ffbcaaff2c5e8ac932cb7f1167afb3e2a8b601",
|
|
113
|
+
"packages/cms-spa/src/hooks/useCanvasTheme.tsx": "697720c288eb094d40d1d8ac5084b7c5d7644e2d4d2e8a446cb60a6c8bf9d47b",
|
|
114
|
+
"packages/cms-spa/src/hooks/useClickOutside.ts": "18f8971dd68d4953f923f5215fb166aa63c358d7b9fb56996ad9af1f34ea0c10",
|
|
115
|
+
"packages/cms-spa/src/hooks/useDialogState.ts": "260ef05ddc6fc5719d875502ff958892c747b4514c8a3846050533f07b492b85",
|
|
116
|
+
"packages/cms-spa/src/hooks/useEditorPref.ts": "4aeca81af087cfbd090cab66a56bb43506d5461d5ac13f9ffa380953dd4a4377",
|
|
117
|
+
"packages/cms-spa/src/hooks/useErrorModal.tsx": "262c1ee88a2d6fd6491e423ecfb347625d87158b83ae257758be3464bb8c6abc",
|
|
118
|
+
"packages/cms-spa/src/hooks/useSiteBaseUrl.ts": "f65ed0b81b16dea7809f31fc143c0683ff27283d4e55d7f03fe24573dcbab2bd",
|
|
119
|
+
"packages/cms-spa/src/hooks/useTheme.tsx": "3652bb79ba271f2778dd2c228e866b47c5de5f4d9c20cae27689546f54eac61d",
|
|
120
|
+
"packages/cms-spa/src/hooks/useUnsavedChangesGuard.ts": "0ce9dabb232bf891c08a0dd7c665ffa570e4782e81a7e9c55f23cb05844d98f9",
|
|
121
|
+
"packages/cms-spa/src/hooks/useUpload.ts": "501b7a505a5fb9a0ac1e8bce0aa374822b6d3231062cb68f33df4a189ee3c20c",
|
|
122
|
+
"packages/cms-spa/src/hooks/useUploadFlow.ts": "baa938677975b15ea6642d591294b8f47c075d7cba6f63252921cfb2a84bb6b3",
|
|
123
|
+
"packages/cms-spa/src/host-schema.ts": "64ebe066e73ec28a9841ccc2816334b93a50ad6d0533a875b135ccb9206bb0bf",
|
|
124
|
+
"packages/cms-spa/src/host-style-probe.ts": "f4b0ea2a696f62c9e6b38d263f101577a1d4bb6683073abe7953d4df84134894",
|
|
125
|
+
"packages/cms-spa/src/index.ts": "9729db55cd9076271f155759f90a771945e50db50226538dbacb548ae437b158",
|
|
126
|
+
"packages/cms-spa/src/lib/utils.ts": "b84aa388bb221b2c6d96ac349a09e0b768964e2bec4baae020fb7999ed89ede7",
|
|
127
|
+
"packages/cms-spa/src/main-spa.tsx": "94b4ac8dae76d63ebbcff99fc8a3dde8799d2ff19e29f19536c13fe421fa99f6",
|
|
128
|
+
"packages/cms-spa/src/main.tsx": "10aad0730acc5dcecfd3ee3d2cf20d6fa6159b2a8762ea3fec965049395c3217",
|
|
129
|
+
"packages/cms-spa/src/mdx-components-define.ts": "da38dac2e503fbc3ebf30c1f16226509a304ccd59fc3b12583a9e4c904716441",
|
|
130
|
+
"packages/cms-spa/src/mdx-components.ts": "bc088aa2c530031db1b7562a90df61b7dd5dde1ccf75ed92d5638c8c2ff829ca",
|
|
131
|
+
"packages/cms-spa/src/media/AssetScopePill.tsx": "f9f36e5f9975771ad6269562089a0c0b73020a8e2fa104ea8584c53ca63fe16d",
|
|
132
|
+
"packages/cms-spa/src/media/MediaIssueBadge.tsx": "78d47cc31b945fd8c55e44b443631eff48b5286b04f269ffc30442b8bacc41e9",
|
|
133
|
+
"packages/cms-spa/src/media/types.ts": "d39e193e634fb6a9ccb90b97d4968979c024c408b4febdd2a631f1de9c54e270",
|
|
134
|
+
"packages/cms-spa/src/media/use-asset-scope.ts": "7fc96b2344844fa5328320437847431dfbd726365f5deb91c8285ffa0b880c06",
|
|
135
|
+
"packages/cms-spa/src/media/use-media-issue.ts": "c6970b757f0e20457182d9b378e56594506c0931a5d87110e51eb093e07b9437",
|
|
136
|
+
"packages/cms-spa/src/merge-default-props.ts": "c27de89620638b6512239d29d348a667f78ccf0f3edab085a436b24b086d9eff",
|
|
137
|
+
"packages/cms-spa/src/mock-puck-config.tsx": "89c05b974729bcb53dccb83a57e1f8e110da81ab517f5edd0250b465c2a6251d",
|
|
138
|
+
"packages/cms-spa/src/page-schema-define.ts": "8b529b1285568bf6ce8e7c91f5344d25436f18cb88f5124756e7d4e3fc9b1eba",
|
|
139
|
+
"packages/cms-spa/src/page-schemas.ts": "07d78453bcb60d72517bf467c574d2db352523f6300d8cef9be1c5e7703f71b9",
|
|
140
|
+
"packages/cms-spa/src/page-setting-attributes.ts": "3478d9b5ff16d4c7102e600d0176dc629701a920a792446cb8469ad8de1a100e",
|
|
141
|
+
"packages/cms-spa/src/prose-surface-css.ts": "4bd4ac7bf857233b80b1eeaf3812ed07221cbfb4c55fd5e527b6ba51a880a238",
|
|
142
|
+
"packages/cms-spa/src/puck-config.ts": "2c513249ab359a14f09be4874433875670d83ebad2da9a1ce3daceacc92a0518",
|
|
143
|
+
"packages/cms-spa/src/sandbox-preview-styles.ts": "d920e09a9c6b4ecbac939667678432ab6edf7c78683745e0118c0a101659d21e",
|
|
144
|
+
"packages/cms-spa/src/selected-block.ts": "6752220ffb590af07bf0843a46b95db59389a8df92d544695fd6f3e314381727",
|
|
145
|
+
"packages/cms-spa/src/site-css-layer.ts": "579e131ef0a25404cbe09f34f313857df0737e7e5e141fba4d009448567b8c4a",
|
|
146
|
+
"packages/cms-spa/src/site-styles.ts": "830a9bd7723525833847df8e083bb2452fa8d477d22ffd82908c13e48cb3611a",
|
|
147
|
+
"packages/cms-spa/src/theme.ts": "5779422994e46ff31a449b69da14a1f82afd939cf10d7abce78c9a3f5868eb01",
|
|
148
|
+
"packages/cms-spa/src/types.ts": "5fe5f6b8c8228192e72f2e113c69edc88ad16906991d2fb293e001c516653ace",
|
|
149
|
+
"packages/cms-spa/src/ui-config.ts": "2499c93c5ae86c372c3c291d823e37e1c5d13251928343d1be82e4e1ea8b5487",
|
|
150
|
+
"packages/cms-spa/src/utils/asset-url.ts": "8a92332bf0db8a514adb99c83d8cb6725f2c7454caf71760cf6f6cb73d414897",
|
|
151
|
+
"packages/cms-spa/src/utils/cn.ts": "74e8fe9d0d680c442ed6adb13e7d119d6c210c19ae6c114313b2a72552be0883",
|
|
152
|
+
"packages/cms-spa/src/utils/content-failure.ts": "cfba60c9fc3992f230a7e2ef97198a0739b4fbd121f229aae224b1feae4857f4",
|
|
153
|
+
"packages/cms-spa/src/utils/entry-meta.ts": "6fe11dab0545cfea7b0bc710416a558439df07073b27ed3a26405a9e673b714c",
|
|
154
|
+
"packages/cms-spa/src/utils/entry-name.ts": "35a7c614c7bbdce64233c5f40c7f367f717ac888859db0233c23549499d503af",
|
|
155
|
+
"packages/cms-spa/src/utils/format-date.ts": "afcc053f530cdb4043cbde2ea39bd156f95eda946e6b0fbdd29ae1999627daa3",
|
|
156
|
+
"packages/cms-spa/src/utils/mdast-to-html.ts": "d195887c3563693ece0a3db99dedbc035111b29baa0eec3ced5462b6a0fd5e98",
|
|
157
|
+
"packages/cms-spa/src/utils/mdast-tree.ts": "ed3a7db2e90e201b0c1590e4587e4ee144da906cbdb26e6a687cfa68c50f881a",
|
|
158
|
+
"packages/cms-spa/src/utils/menu-placement.ts": "544aca7e746abc0fee126b6ae49eeafa225a5c2c27402c40235bf14fbc8a5055",
|
|
159
|
+
"packages/cms-spa/src/utils/pageMetadata.ts": "bb72b7a0909fab8fb096de640f03ecbf0e1b2feb60d9070d38e1d85355c5e0a0",
|
|
160
|
+
"packages/cms-spa/src/utils/sanitize-html.ts": "4e369d3d4ad06382c326faf22ad4fd0d5a2e4ba14f7bd4f1f6f9c08e812e2a22",
|
|
161
|
+
"packages/cms-spa/src/utils/schema-fields.ts": "dacac44cba36316031aea4f228dcf1ba5956599e0b6cd7610878812a56e0d719",
|
|
162
|
+
"packages/cms-spa/src/utils/slugify.ts": "152c0e53213aca7b82a4f3078e7427e131b46545f5af293c84b9ea31bc93edfb",
|
|
163
|
+
"packages/cms-spa/src/vite-env.d.ts": "a256375924bdfdff1cfd79e265a167ab3a2aeedf647dbc6b2ccfb70c01947396",
|
|
164
|
+
"packages/cms-spa/src/write-access.ts": "10c949baf592498408695faa0f37e4e7d3badc0acfb40752d583f64569ab020a",
|
|
165
|
+
"packages/cms-spa/tsconfig.lib.json": "4d11a0be1274eb48dccbe84c1ca03855cffffc5ce79128b9a47ce5e5b393a5f8"
|
|
166
|
+
},
|
|
167
|
+
"complete": [
|
|
168
|
+
":(glob)packages/cms-spa/src/**/*.ts",
|
|
169
|
+
":(glob)packages/cms-spa/src/**/*.tsx",
|
|
170
|
+
":(exclude,glob)packages/cms-spa/src/**/*.test.ts",
|
|
171
|
+
":(exclude,glob)packages/cms-spa/src/**/*.test.tsx",
|
|
172
|
+
":(exclude,glob)packages/cms-spa/src/**/*.stories.tsx"
|
|
173
|
+
],
|
|
174
|
+
"producer": {
|
|
175
|
+
"project": "cms-spa",
|
|
176
|
+
"target": "tsc-js"
|
|
177
|
+
}
|
|
178
|
+
}
|
package/dist/ts/App.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Config } from '@puckeditor/core';
|
|
2
2
|
import { type DataSchemas } from './data-schemas.js';
|
|
3
|
+
import type { MemoryRouterConfig } from './ui-config.js';
|
|
3
4
|
export interface RouteDeps {
|
|
4
5
|
puckConfig: Config;
|
|
5
6
|
dataSchemas: DataSchemas;
|
|
@@ -32,8 +33,11 @@ export declare function AppRoutes(): import("react").JSX.Element;
|
|
|
32
33
|
/**
|
|
33
34
|
* Production app entry. Uses the Data Router API so v7's `useBlocker` works
|
|
34
35
|
* for the unsaved-changes navigation guard in MdxPageEditor / FragmentEditor.
|
|
36
|
+
* With `memoryRouter` the route lives in memory and is mirrored to the parent
|
|
37
|
+
* frame instead of the address bar.
|
|
35
38
|
*/
|
|
36
|
-
export default function App({ basename }?: {
|
|
39
|
+
export default function App({ basename, memoryRouter }?: {
|
|
37
40
|
basename?: string;
|
|
41
|
+
memoryRouter?: MemoryRouterConfig;
|
|
38
42
|
}): import("react").JSX.Element;
|
|
39
43
|
//# sourceMappingURL=App.d.ts.map
|
package/dist/ts/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAmB/C,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAGrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,SAAS,+BAkBnE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,gCAIxB;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,kBAAkB,CAAA;CAAO,+BAcpH"}
|
package/dist/ts/App.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
|
-
import { createBrowserRouter, createRoutesFromElements, Route, RouterProvider, Routes } from 'react-router-dom';
|
|
2
|
+
import { useEffect, useMemo } from 'react';
|
|
3
|
+
import { createBrowserRouter, createMemoryRouter, createRoutesFromElements, Route, RouterProvider, Routes, } from 'react-router-dom';
|
|
4
4
|
import { CMSDashboard } from './components/CMSDashboard.js';
|
|
5
5
|
import { CMSLayout } from './components/CMSLayout.js';
|
|
6
6
|
import { FragmentEditor } from './components/editor/FragmentEditor.js';
|
|
@@ -11,6 +11,7 @@ import { MediaPage } from './components/pages/MediaPage.js';
|
|
|
11
11
|
import { PageList } from './components/pages/PageList.js';
|
|
12
12
|
import { RouteErrorPage } from './components/RouteErrorPage.js';
|
|
13
13
|
import { useDataSchemas } from './data-schemas.js';
|
|
14
|
+
import { syncMemoryRouter } from './frame/memory-router.js';
|
|
14
15
|
import { usePuckConfig } from './puck-config.js';
|
|
15
16
|
/**
|
|
16
17
|
* Single source of truth for the SPA's route shape. Used by both the
|
|
@@ -46,13 +47,19 @@ export function AppRoutes() {
|
|
|
46
47
|
/**
|
|
47
48
|
* Production app entry. Uses the Data Router API so v7's `useBlocker` works
|
|
48
49
|
* for the unsaved-changes navigation guard in MdxPageEditor / FragmentEditor.
|
|
50
|
+
* With `memoryRouter` the route lives in memory and is mirrored to the parent
|
|
51
|
+
* frame instead of the address bar.
|
|
49
52
|
*/
|
|
50
|
-
export default function App({ basename } = {}) {
|
|
53
|
+
export default function App({ basename, memoryRouter } = {}) {
|
|
51
54
|
const puckConfig = usePuckConfig();
|
|
52
55
|
const dataSchemas = useDataSchemas();
|
|
53
|
-
const router = useMemo(() =>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
const router = useMemo(() => {
|
|
57
|
+
const routes = createRoutesFromElements(routeElements({ puckConfig, dataSchemas }));
|
|
58
|
+
return memoryRouter
|
|
59
|
+
? createMemoryRouter(routes, { initialEntries: [memoryRouter.initialPath] })
|
|
60
|
+
: createBrowserRouter(routes, { basename });
|
|
61
|
+
}, [puckConfig, dataSchemas, basename, memoryRouter]);
|
|
62
|
+
useEffect(() => (memoryRouter ? syncMemoryRouter(router, memoryRouter) : undefined), [router, memoryRouter]);
|
|
56
63
|
return _jsx(RouterProvider, { router: router });
|
|
57
64
|
}
|
|
58
65
|
//# sourceMappingURL=App.js.map
|
package/dist/ts/App.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"App.js","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CmsSpaApp.d.ts","sourceRoot":"","sources":["../../src/CmsSpaApp.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CmsSpaApp.d.ts","sourceRoot":"","sources":["../../src/CmsSpaApp.tsx"],"names":[],"mappings":"AAWA;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,gCA4CxB"}
|
package/dist/ts/CmsSpaApp.js
CHANGED
|
@@ -4,6 +4,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
|
4
4
|
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
|
5
5
|
import { useEffect, useMemo } from 'react';
|
|
6
6
|
import App from './App.js';
|
|
7
|
+
import { clearMediaCache } from './frame/media-cache.js';
|
|
7
8
|
import { CanvasThemeProvider } from './hooks/useCanvasTheme.js';
|
|
8
9
|
import { ThemeProvider } from './hooks/useTheme.js';
|
|
9
10
|
import { getUIConfig } from './ui-config.js';
|
|
@@ -38,6 +39,8 @@ export function CmsSpaApp() {
|
|
|
38
39
|
delete holder.__QUERY_CLIENT__;
|
|
39
40
|
};
|
|
40
41
|
}, [queryClient]);
|
|
42
|
+
// Loaded media belongs to this mount's site and branch.
|
|
43
|
+
useEffect(() => clearMediaCache, []);
|
|
41
44
|
// Every content write in the editor goes through this one client, so the
|
|
42
45
|
// read-only seam is installed here and nowhere else: a surface added later
|
|
43
46
|
// is gated whether or not its author knew the seam existed. Reads are
|
|
@@ -45,6 +48,6 @@ export function CmsSpaApp() {
|
|
|
45
48
|
useMemo(() => {
|
|
46
49
|
setContentAPIClient(guardContentWrites(config.contentClient ?? new ContentAPIClient({ baseUrl: config.apiBaseUrl })));
|
|
47
50
|
}, [config.apiBaseUrl, config.contentClient]);
|
|
48
|
-
return (_jsxs(QueryClientProvider, { client: queryClient, children: [_jsx(ThemeProvider, { children: _jsx(CanvasThemeProvider, { children: _jsx(App, { basename: config.basename }) }) }), config.enableDevtools && _jsx(ReactQueryDevtools, { initialIsOpen: false })] }));
|
|
51
|
+
return (_jsxs(QueryClientProvider, { client: queryClient, children: [_jsx(ThemeProvider, { children: _jsx(CanvasThemeProvider, { children: _jsx(App, { basename: config.basename, memoryRouter: config.memoryRouter }) }) }), config.enableDevtools && _jsx(ReactQueryDevtools, { initialIsOpen: false })] }));
|
|
49
52
|
}
|
|
50
53
|
//# sourceMappingURL=CmsSpaApp.js.map
|
package/dist/ts/CmsSpaApp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CmsSpaApp.js","sourceRoot":"","sources":["../../src/CmsSpaApp.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,SAAS;IACvB,MAAM,MAAM,GAAG,WAAW,EAAE,CAAC;IAE7B,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAE3G,sEAAsE;IACtE,yEAAyE;IACzE,2EAA2E;IAC3E,qEAAqE;IACrE,wEAAwE;IACxE,yEAAyE;IACzE,yEAAyE;IACzE,qEAAqE;IACrE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,MAAM,GAAG,MAAqD,CAAC;QACrE,MAAM,CAAC,gBAAgB,GAAG,WAAW,CAAC;QACtC,OAAO,GAAG,EAAE;YACV,IAAI,MAAM,CAAC,gBAAgB,KAAK,WAAW;gBAAE,OAAO,MAAM,CAAC,gBAAgB,CAAC;QAC9E,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,yEAAyE;IACzE,2EAA2E;IAC3E,sEAAsE;IACtE,mEAAmE;IACnE,OAAO,CAAC,GAAG,EAAE;QACX,mBAAmB,CACjB,kBAAkB,CAAC,MAAM,CAAC,aAAa,IAAI,IAAI,gBAAgB,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CACjG,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IAE9C,OAAO,CACL,MAAC,mBAAmB,IAAC,MAAM,EAAE,WAAW,aACtC,KAAC,aAAa,cACZ,KAAC,mBAAmB,cAClB,KAAC,GAAG,IAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAI,
|
|
1
|
+
{"version":3,"file":"CmsSpaApp.js","sourceRoot":"","sources":["../../src/CmsSpaApp.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,SAAS;IACvB,MAAM,MAAM,GAAG,WAAW,EAAE,CAAC;IAE7B,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAE3G,sEAAsE;IACtE,yEAAyE;IACzE,2EAA2E;IAC3E,qEAAqE;IACrE,wEAAwE;IACxE,yEAAyE;IACzE,yEAAyE;IACzE,qEAAqE;IACrE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,MAAM,GAAG,MAAqD,CAAC;QACrE,MAAM,CAAC,gBAAgB,GAAG,WAAW,CAAC;QACtC,OAAO,GAAG,EAAE;YACV,IAAI,MAAM,CAAC,gBAAgB,KAAK,WAAW;gBAAE,OAAO,MAAM,CAAC,gBAAgB,CAAC;QAC9E,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,wDAAwD;IACxD,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAErC,yEAAyE;IACzE,2EAA2E;IAC3E,sEAAsE;IACtE,mEAAmE;IACnE,OAAO,CAAC,GAAG,EAAE;QACX,mBAAmB,CACjB,kBAAkB,CAAC,MAAM,CAAC,aAAa,IAAI,IAAI,gBAAgB,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CACjG,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IAE9C,OAAO,CACL,MAAC,mBAAmB,IAAC,MAAM,EAAE,WAAW,aACtC,KAAC,aAAa,cACZ,KAAC,mBAAmB,cAClB,KAAC,GAAG,IAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,GAAI,GACjD,GACR,EACf,MAAM,CAAC,cAAc,IAAI,KAAC,kBAAkB,IAAC,aAAa,EAAE,KAAK,GAAI,IAClD,CACvB,CAAC;AACJ,CAAC"}
|
|
@@ -9,6 +9,6 @@ interface DataEntryCardProps {
|
|
|
9
9
|
onEditProperties: () => void;
|
|
10
10
|
onDelete: () => void;
|
|
11
11
|
}
|
|
12
|
-
export declare function DataEntryCard({ id, title, description, collection, name, locales, onEditData, onEditProperties, onDelete }: DataEntryCardProps): import("react").JSX.Element;
|
|
12
|
+
export declare function DataEntryCard({ id, title, description, collection, name, locales, onEditData, onEditProperties, onDelete, }: DataEntryCardProps): import("react").JSX.Element;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=DataEntryCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataEntryCard.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/DataEntryCard.tsx"],"names":[],"mappings":"AAOA,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAWD,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,KAAK,EACL,WAAW,EACX,UAAU,EACV,IAAI,EACJ,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,QAAQ,
|
|
1
|
+
{"version":3,"file":"DataEntryCard.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/DataEntryCard.tsx"],"names":[],"mappings":"AAOA,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAWD,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,KAAK,EACL,WAAW,EACX,UAAU,EACV,IAAI,EACJ,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,QAAQ,GACT,EAAE,kBAAkB,+BA4HpB"}
|
|
@@ -10,6 +10,6 @@ interface SectionCardProps {
|
|
|
10
10
|
testId?: string;
|
|
11
11
|
variant?: 'full' | 'compact';
|
|
12
12
|
}
|
|
13
|
-
export declare function SectionCard({ to, icon, title, description, count, countLabel, isLoading, testId, variant }: SectionCardProps): import("react").JSX.Element;
|
|
13
|
+
export declare function SectionCard({ to, icon, title, description, count, countLabel, isLoading, testId, variant, }: SectionCardProps): import("react").JSX.Element;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=SectionCard.d.ts.map
|