@drawnagency/primitives 0.1.113 → 0.1.114
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/auth/cookies.d.ts +39 -0
- package/dist/auth/cookies.d.ts.map +1 -1
- package/dist/auth/index.js +3 -3
- package/dist/{chunk-GPPVYLEI.js → chunk-45FA7Z55.js} +1 -1
- package/dist/{chunk-REDDTTGJ.js → chunk-4Y2JQQZL.js} +19 -1
- package/dist/chunk-5GFACGSN.js +6 -0
- package/dist/chunk-5KSAS4VY.js +275 -0
- package/dist/{chunk-Z7W3DQTR.js → chunk-7SAAJVDE.js} +408 -28
- package/dist/{chunk-S2L3BPLS.js → chunk-7SX42OP4.js} +1 -1
- package/dist/{chunk-GGXZZ77Z.js → chunk-AASEGXNT.js} +18 -1
- package/dist/{chunk-WKZ7OENC.js → chunk-BQ5TZZUE.js} +5 -1
- package/dist/chunk-DIMDRBFK.js +11 -0
- package/dist/{chunk-WUJ3XNFI.js → chunk-GGYY3JQJ.js} +19 -24
- package/dist/{chunk-NHN2LSIU.js → chunk-IP2SEBAJ.js} +5 -1
- package/dist/{chunk-IINIZBQB.js → chunk-JCDZAFX2.js} +30 -10
- package/dist/chunk-JR24U7FJ.js +120 -0
- package/dist/{chunk-SW6PCQQD.js → chunk-KQA772WQ.js} +2 -1
- package/dist/{chunk-KR2MHTNJ.js → chunk-N3G7DOU3.js} +609 -61
- package/dist/chunk-OAGJBCSH.js +67 -0
- package/dist/{chunk-6BZ2KNTP.js → chunk-PLANHXS7.js} +191 -61
- package/dist/{chunk-VWWY5TL5.js → chunk-PNSCDBU7.js} +38 -56
- package/dist/{chunk-AHALSCQH.js → chunk-PTY2RG2K.js} +1 -1
- package/dist/{chunk-BDFTMGCL.js → chunk-PZPGJZRG.js} +9 -8
- package/dist/{chunk-FRE2CCLV.js → chunk-QHMKIODQ.js} +17 -4
- package/dist/{chunk-HBULBDGP.js → chunk-S37DZPHW.js} +1 -1
- package/dist/{chunk-4I5OO5UB.js → chunk-TEOAKGZA.js} +0 -1
- package/dist/chunk-VUYCRBJK.js +174 -0
- package/dist/{chunk-4RNF2DRG.js → chunk-XDEPXTBY.js} +0 -2
- package/dist/{chunk-DS4GCYV2.js → chunk-Y5QECJX7.js} +223 -16
- package/dist/collab/rebase.d.ts +2 -1
- package/dist/collab/rebase.d.ts.map +1 -1
- package/dist/collab/rebase.js +20 -5
- package/dist/components/brandguide/ColorsEditable.d.ts.map +1 -1
- package/dist/components/chat/ChatPanel.d.ts.map +1 -1
- package/dist/components/chat/ChatWidget.d.ts.map +1 -1
- package/dist/components/docfile/DocFilePane.d.ts.map +1 -1
- package/dist/components/editor/ChildBlockWrapper.d.ts.map +1 -1
- package/dist/components/editor/ConflictDialog.d.ts.map +1 -1
- package/dist/components/editor/DragHandle.d.ts +12 -2
- package/dist/components/editor/DragHandle.d.ts.map +1 -1
- package/dist/components/editor/DropEdgeIndicator.d.ts +15 -6
- package/dist/components/editor/DropEdgeIndicator.d.ts.map +1 -1
- package/dist/components/editor/NavGroupRow.d.ts +4 -1
- package/dist/components/editor/NavGroupRow.d.ts.map +1 -1
- package/dist/components/editor/PagesModal.d.ts.map +1 -1
- package/dist/components/editor/SectionWrapper.d.ts +1 -1
- package/dist/components/editor/SectionWrapper.d.ts.map +1 -1
- package/dist/components/editor/SettingsForm.d.ts.map +1 -1
- package/dist/components/editor/TagIndicator.d.ts +15 -0
- package/dist/components/editor/TagIndicator.d.ts.map +1 -0
- package/dist/components/editor/index.js +148 -77
- package/dist/components/primitives/DocumentDropZone.d.ts +1 -1
- package/dist/components/primitives/EditableGrid.d.ts.map +1 -1
- package/dist/components/primitives/EditableList.d.ts.map +1 -1
- package/dist/components/primitives/HeadingSection.d.ts +4 -1
- package/dist/components/primitives/HeadingSection.d.ts.map +1 -1
- package/dist/components/primitives/ResolvedMedia.d.ts +5 -1
- package/dist/components/primitives/ResolvedMedia.d.ts.map +1 -1
- package/dist/components/primitives/{defineHeadingSection.d.ts → define-heading-section.d.ts} +1 -1
- package/dist/components/primitives/define-heading-section.d.ts.map +1 -0
- package/dist/components/primitives/{gridDrop.d.ts → grid-drop.d.ts} +1 -1
- package/dist/components/primitives/grid-drop.d.ts.map +1 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/index.d.ts.map +1 -1
- package/dist/components/primitives/index.js +17 -154
- package/dist/components/sections/Button/CTAButton.d.ts.map +1 -1
- package/dist/components/sections/DoDontMedia/DoDontMediaBlock.d.ts +2 -6
- package/dist/components/sections/DoDontMedia/DoDontMediaBlock.d.ts.map +1 -1
- package/dist/components/sections/DoDontMedia/index.d.ts +8 -0
- package/dist/components/sections/DoDontMedia/index.d.ts.map +1 -1
- package/dist/components/sections/IconList/IconList.d.ts +2 -1
- package/dist/components/sections/IconList/IconList.d.ts.map +1 -1
- package/dist/components/sections/IconList/IconListSettings.d.ts +2 -1
- package/dist/components/sections/IconList/IconListSettings.d.ts.map +1 -1
- package/dist/components/sections/IconList/index.d.ts +1 -0
- package/dist/components/sections/IconList/index.d.ts.map +1 -1
- package/dist/components/sections/Media/MediaBlock.d.ts +2 -1
- package/dist/components/sections/Media/MediaBlock.d.ts.map +1 -1
- package/dist/components/sections/Media/index.d.ts +8 -0
- package/dist/components/sections/Media/index.d.ts.map +1 -1
- package/dist/components/sections/Reference/ReferenceList.d.ts +35 -0
- package/dist/components/sections/Reference/ReferenceList.d.ts.map +1 -0
- package/dist/components/sections/Reference/ReferenceSettings.d.ts +12 -0
- package/dist/components/sections/Reference/ReferenceSettings.d.ts.map +1 -0
- package/dist/components/sections/Reference/index.d.ts +9 -0
- package/dist/components/sections/Reference/index.d.ts.map +1 -0
- package/dist/components/sections/SectionSummary/SectionSummaryBlock.d.ts +38 -0
- package/dist/components/sections/SectionSummary/SectionSummaryBlock.d.ts.map +1 -0
- package/dist/components/sections/SectionSummary/SectionSummarySettings.d.ts +20 -0
- package/dist/components/sections/SectionSummary/SectionSummarySettings.d.ts.map +1 -0
- package/dist/components/sections/SectionSummary/index.d.ts +33 -0
- package/dist/components/sections/SectionSummary/index.d.ts.map +1 -0
- package/dist/components/sections/all-sections.d.ts +53 -0
- package/dist/components/sections/all-sections.d.ts.map +1 -1
- package/dist/components/sections/brand-guide.d.ts +41 -2
- package/dist/components/sections/brand-guide.d.ts.map +1 -1
- package/dist/components/sections/brand-guide.js +12 -10
- package/dist/components/sections/core-sections.d.ts +14 -0
- package/dist/components/sections/core-sections.d.ts.map +1 -1
- package/dist/components/sections/register-schemas.js +19 -17
- package/dist/components/sections/register.js +19 -17
- package/dist/components/shared/BrandSwatchesContext.d.ts +9 -0
- package/dist/components/shared/BrandSwatchesContext.d.ts.map +1 -0
- package/dist/components/shared/Button.d.ts +11 -3
- package/dist/components/shared/Button.d.ts.map +1 -1
- package/dist/components/shared/Checkbox.d.ts +6 -0
- package/dist/components/shared/Checkbox.d.ts.map +1 -1
- package/dist/components/shared/ConfirmDialog.d.ts +25 -0
- package/dist/components/shared/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/shared/ConfirmInline.d.ts +25 -0
- package/dist/components/shared/ConfirmInline.d.ts.map +1 -0
- package/dist/components/shared/ErrorBoundary.d.ts.map +1 -1
- package/dist/components/shared/Fab.d.ts +11 -2
- package/dist/components/shared/Fab.d.ts.map +1 -1
- package/dist/components/shared/FabStack.d.ts +22 -0
- package/dist/components/shared/FabStack.d.ts.map +1 -0
- package/dist/components/shared/HistoryChangesModal.d.ts.map +1 -1
- package/dist/components/shared/HistoryPopover.d.ts.map +1 -1
- package/dist/components/shared/ImageBackgroundField.d.ts +9 -0
- package/dist/components/shared/ImageBackgroundField.d.ts.map +1 -0
- package/dist/components/shared/{UploadRejectionAlert.d.ts → InlineAlert.d.ts} +4 -2
- package/dist/components/shared/InlineAlert.d.ts.map +1 -0
- package/dist/components/shared/Input.d.ts +10 -0
- package/dist/components/shared/Input.d.ts.map +1 -1
- package/dist/components/shared/Navigation.d.ts.map +1 -1
- package/dist/components/shared/Notice.d.ts +10 -0
- package/dist/components/shared/Notice.d.ts.map +1 -0
- package/dist/components/shared/Popover.d.ts.map +1 -1
- package/dist/components/shared/ReferenceSourcesContext.d.ts +25 -0
- package/dist/components/shared/ReferenceSourcesContext.d.ts.map +1 -0
- package/dist/components/shared/Select.d.ts +3 -2
- package/dist/components/shared/Select.d.ts.map +1 -1
- package/dist/components/shared/SplitButton.d.ts.map +1 -1
- package/dist/components/shared/SummaryAnchorsContext.d.ts +10 -0
- package/dist/components/shared/SummaryAnchorsContext.d.ts.map +1 -0
- package/dist/components/shared/Textarea.d.ts +7 -0
- package/dist/components/shared/Textarea.d.ts.map +1 -1
- package/dist/components/shared/ToolbarFrame.d.ts +17 -0
- package/dist/components/shared/ToolbarFrame.d.ts.map +1 -0
- package/dist/components/shared/copy.d.ts +13 -0
- package/dist/components/shared/copy.d.ts.map +1 -0
- package/dist/components/shared/icons.d.ts +0 -12
- package/dist/components/shared/icons.d.ts.map +1 -1
- package/dist/components/shell/AudienceDetailsPanel.d.ts +7 -1
- package/dist/components/shell/AudienceDetailsPanel.d.ts.map +1 -1
- package/dist/components/shell/AudienceRow.d.ts.map +1 -1
- package/dist/components/shell/BugReportFAB.d.ts +7 -1
- package/dist/components/shell/BugReportFAB.d.ts.map +1 -1
- package/dist/components/shell/CredentialList.d.ts.map +1 -1
- package/dist/components/shell/DocInspector.d.ts.map +1 -1
- package/dist/components/shell/DocumentEditorOverlay.d.ts.map +1 -1
- package/dist/components/shell/EditorContext.d.ts +4 -0
- package/dist/components/shell/EditorContext.d.ts.map +1 -1
- package/dist/components/shell/EditorLoginForm.d.ts.map +1 -1
- package/dist/components/shell/EditorModal.d.ts.map +1 -1
- package/dist/components/shell/EditorShell.d.ts.map +1 -1
- package/dist/components/shell/HistoryToolbar.d.ts.map +1 -1
- package/dist/components/shell/MediaFolderTile.d.ts +4 -1
- package/dist/components/shell/MediaFolderTile.d.ts.map +1 -1
- package/dist/components/shell/MediaLibraryModal.d.ts.map +1 -1
- package/dist/components/shell/RestoreModal.d.ts.map +1 -1
- package/dist/components/shell/SiteSettingsChatbot.d.ts.map +1 -1
- package/dist/components/shell/SiteSettingsDisplay.d.ts.map +1 -1
- package/dist/components/shell/SiteSettingsModal.d.ts +3 -1
- package/dist/components/shell/SiteSettingsModal.d.ts.map +1 -1
- package/dist/components/shell/SiteSettingsTags.d.ts +13 -0
- package/dist/components/shell/SiteSettingsTags.d.ts.map +1 -0
- package/dist/components/shell/SiteSettingsUsers.d.ts.map +1 -1
- package/dist/components/shell/ViewerLoginForm.d.ts.map +1 -1
- package/dist/components/shell/{blockMoveDispatch.d.ts → block-move-dispatch.d.ts} +1 -1
- package/dist/components/shell/block-move-dispatch.d.ts.map +1 -0
- package/dist/components/shell/reference-sources.d.ts +22 -0
- package/dist/components/shell/reference-sources.d.ts.map +1 -0
- package/dist/deck/index.d.ts +2 -2
- package/dist/deck/index.d.ts.map +1 -1
- package/dist/deck/index.js +1 -3
- package/dist/deck-builder/index.js +11 -18
- package/dist/document/index.d.ts +2 -2
- package/dist/document/index.d.ts.map +1 -1
- package/dist/hooks/useBlockDnd.d.ts +11 -0
- package/dist/hooks/useBlockDnd.d.ts.map +1 -1
- package/dist/hooks/useBuildStatus.d.ts +1 -1
- package/dist/hooks/useBuildStatus.d.ts.map +1 -1
- package/dist/hooks/useDocumentUploads.d.ts +1 -1
- package/dist/hooks/useDocumentUploads.d.ts.map +1 -1
- package/dist/hooks/useEditorPersistence.d.ts +5 -1
- package/dist/hooks/useEditorPersistence.d.ts.map +1 -1
- package/dist/hooks/useEditorPublish.d.ts +2 -2
- package/dist/hooks/useEditorPublish.d.ts.map +1 -1
- package/dist/hooks/useNotice.d.ts +19 -0
- package/dist/hooks/useNotice.d.ts.map +1 -0
- package/dist/hooks/useSortableNavRow.d.ts +11 -0
- package/dist/hooks/useSortableNavRow.d.ts.map +1 -1
- package/dist/hooks/useSortableRow.d.ts +11 -0
- package/dist/hooks/useSortableRow.d.ts.map +1 -1
- package/dist/hooks/useStackedEscape.d.ts +32 -0
- package/dist/hooks/useStackedEscape.d.ts.map +1 -0
- package/dist/index.js +67 -49
- package/dist/lib/audience-secret.js +2 -2
- package/dist/lib/block-dnd.d.ts +5 -0
- package/dist/lib/block-dnd.d.ts.map +1 -1
- package/dist/lib/block-move.d.ts.map +1 -1
- package/dist/lib/brand-swatches.d.ts +12 -0
- package/dist/lib/brand-swatches.d.ts.map +1 -0
- package/dist/lib/container-ops.d.ts +3 -2
- package/dist/lib/container-ops.d.ts.map +1 -1
- package/dist/lib/dexie.d.ts.map +1 -1
- package/dist/lib/dexie.js +9 -1
- package/dist/lib/env.d.ts +4 -0
- package/dist/lib/env.d.ts.map +1 -1
- package/dist/lib/env.js +5 -3
- package/dist/lib/events.d.ts +1 -2
- package/dist/lib/events.d.ts.map +1 -1
- package/dist/lib/image-background.d.ts +8 -0
- package/dist/lib/image-background.d.ts.map +1 -0
- package/dist/lib/index-ops.js +3 -3
- package/dist/lib/index.d.ts +6 -4
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +29 -21
- package/dist/lib/loader.d.ts +21 -7
- package/dist/lib/loader.d.ts.map +1 -1
- package/dist/lib/nav-tree.d.ts +1 -0
- package/dist/lib/nav-tree.d.ts.map +1 -1
- package/dist/lib/nav.d.ts +38 -0
- package/dist/lib/nav.d.ts.map +1 -1
- package/dist/lib/platform-broker.d.ts +4 -2
- package/dist/lib/platform-broker.d.ts.map +1 -1
- package/dist/lib/platform-broker.js +21 -13
- package/dist/lib/reference-type.d.ts +2 -0
- package/dist/lib/reference-type.d.ts.map +1 -0
- package/dist/lib/reference-validation.d.ts +31 -0
- package/dist/lib/reference-validation.d.ts.map +1 -0
- package/dist/lib/reference-validation.js +39 -0
- package/dist/lib/references.d.ts +74 -0
- package/dist/lib/references.d.ts.map +1 -0
- package/dist/lib/registry.d.ts +35 -0
- package/dist/lib/registry.d.ts.map +1 -1
- package/dist/lib/{safeRedirect.d.ts → safe-redirect.d.ts} +1 -1
- package/dist/lib/safe-redirect.d.ts.map +1 -0
- package/dist/lib/tags.d.ts +58 -0
- package/dist/lib/tags.d.ts.map +1 -0
- package/dist/lib/theme-vars.d.ts +9 -0
- package/dist/lib/theme-vars.d.ts.map +1 -1
- package/dist/media/index.d.ts +1 -1
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +8 -4
- package/dist/media/utils.d.ts +2 -0
- package/dist/media/utils.d.ts.map +1 -1
- package/dist/media/{videoPoster.d.ts → video-poster.d.ts} +1 -1
- package/dist/media/video-poster.d.ts.map +1 -0
- package/dist/schemas/audience.js +2 -2
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +14 -8
- package/dist/schemas/shared.d.ts +26 -0
- package/dist/schemas/shared.d.ts.map +1 -1
- package/dist/schemas/site-config.d.ts +6 -0
- package/dist/schemas/site-config.d.ts.map +1 -1
- package/dist/schemas/tags.d.ts +27 -0
- package/dist/schemas/tags.d.ts.map +1 -0
- package/dist/storage/index.js +1 -1
- package/dist/types/database.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/auth/cookies.ts +111 -0
- package/src/collab/rebase.ts +26 -2
- package/src/components/brandguide/ColorSwatchSettings.tsx +1 -1
- package/src/components/brandguide/ColorsEditable.tsx +1 -0
- package/src/components/chat/ChatPanel.tsx +2 -3
- package/src/components/chat/ChatWidget.tsx +2 -3
- package/src/components/docfile/DocFilePane.tsx +4 -12
- package/src/components/editor/ChildBlockWrapper.tsx +13 -19
- package/src/components/editor/ConflictDialog.tsx +27 -35
- package/src/components/editor/DeleteButton.tsx +2 -2
- package/src/components/editor/DragHandle.tsx +16 -3
- package/src/components/editor/DropEdgeIndicator.tsx +36 -10
- package/src/components/editor/InsertButton.tsx +2 -2
- package/src/components/editor/NavGroupRow.tsx +43 -14
- package/src/components/editor/PagesModal.tsx +99 -26
- package/src/components/editor/SectionWrapper.tsx +64 -23
- package/src/components/editor/SettingsButton.tsx +2 -2
- package/src/components/editor/SettingsForm.tsx +19 -2
- package/src/components/editor/StatusIndicator.tsx +4 -4
- package/src/components/editor/TagIndicator.tsx +80 -0
- package/src/components/primitives/DocumentDropZone.tsx +1 -1
- package/src/components/primitives/EditableGrid.tsx +15 -14
- package/src/components/primitives/EditableList.tsx +27 -74
- package/src/components/primitives/HeadingSection.tsx +5 -2
- package/src/components/primitives/ResolvedMedia.tsx +13 -0
- package/src/components/primitives/{defineHeadingSection.tsx → define-heading-section.tsx} +1 -0
- package/src/components/primitives/index.ts +1 -1
- package/src/components/primitives/useEditablePlainText.ts +5 -5
- package/src/components/sections/Button/CTAButton.tsx +3 -1
- package/src/components/sections/DoDontMedia/DoDontMediaBlock.tsx +4 -4
- package/src/components/sections/DoDontMedia/index.tsx +12 -3
- package/src/components/sections/IconList/DoDontToggle.tsx +2 -2
- package/src/components/sections/IconList/IconList.tsx +70 -37
- package/src/components/sections/IconList/IconListSettings.tsx +55 -17
- package/src/components/sections/IconList/index.tsx +10 -3
- package/src/components/sections/LinkHeading/index.tsx +1 -1
- package/src/components/sections/Media/MediaBlock.tsx +13 -2
- package/src/components/sections/Media/index.tsx +12 -4
- package/src/components/sections/Reference/ReferenceList.tsx +214 -0
- package/src/components/sections/Reference/ReferenceSettings.tsx +159 -0
- package/src/components/sections/Reference/index.tsx +47 -0
- package/src/components/sections/SectionSummary/SectionSummaryBlock.tsx +476 -0
- package/src/components/sections/SectionSummary/SectionSummarySettings.tsx +126 -0
- package/src/components/sections/SectionSummary/index.tsx +149 -0
- package/src/components/sections/SubHeading/index.tsx +1 -1
- package/src/components/sections/SubSubHeading/index.tsx +1 -1
- package/src/components/sections/brand-guide.ts +4 -3
- package/src/components/sections/core-sections.ts +2 -0
- package/src/components/shared/BrandSwatchesContext.ts +13 -0
- package/src/components/shared/Button.tsx +47 -34
- package/src/components/shared/Checkbox.tsx +21 -12
- package/src/components/shared/ConfirmDialog.tsx +87 -0
- package/src/components/shared/ConfirmInline.tsx +90 -0
- package/src/components/shared/ErrorBoundary.tsx +6 -18
- package/src/components/shared/Fab.tsx +15 -5
- package/src/components/shared/FabStack.tsx +28 -0
- package/src/components/shared/HistoryChangesModal.tsx +43 -41
- package/src/components/shared/HistoryPopover.tsx +7 -20
- package/src/components/shared/ImageBackgroundField.tsx +92 -0
- package/src/components/shared/{UploadRejectionAlert.tsx → InlineAlert.tsx} +21 -5
- package/src/components/shared/Input.tsx +23 -7
- package/src/components/shared/Navigation.tsx +22 -17
- package/src/components/shared/Notice.tsx +59 -0
- package/src/components/shared/Popover.tsx +7 -11
- package/src/components/shared/ReferenceSourcesContext.ts +27 -0
- package/src/components/shared/Select.tsx +5 -2
- package/src/components/shared/SplitButton.tsx +11 -17
- package/src/components/shared/SummaryAnchorsContext.ts +11 -0
- package/src/components/shared/Textarea.tsx +17 -2
- package/src/components/shared/ToolbarFrame.tsx +28 -0
- package/src/components/shared/VideoSourceField.tsx +1 -1
- package/src/components/shared/copy.ts +18 -0
- package/src/components/shared/icons.tsx +1 -17
- package/src/components/shell/AudienceAddForm.tsx +2 -2
- package/src/components/shell/AudienceDetailsPanel.tsx +23 -5
- package/src/components/shell/AudienceRow.tsx +22 -15
- package/src/components/shell/BugReportFAB.tsx +50 -40
- package/src/components/shell/CredentialList.tsx +33 -13
- package/src/components/shell/DocInspector.tsx +3 -12
- package/src/components/shell/DocumentEditorOverlay.tsx +33 -23
- package/src/components/shell/EditorContext.tsx +7 -0
- package/src/components/shell/EditorLoginForm.tsx +26 -36
- package/src/components/shell/EditorModal.tsx +8 -10
- package/src/components/shell/EditorShell.tsx +499 -339
- package/src/components/shell/HistoryToolbar.tsx +24 -26
- package/src/components/shell/MediaFolderTile.tsx +8 -3
- package/src/components/shell/MediaLibraryModal.tsx +59 -60
- package/src/components/shell/ProcessingIndicator.tsx +2 -2
- package/src/components/shell/RestoreModal.tsx +17 -16
- package/src/components/shell/SetPasswordForm.tsx +3 -3
- package/src/components/shell/SiteSettingsChatbot.tsx +61 -42
- package/src/components/shell/SiteSettingsDisplay.tsx +10 -20
- package/src/components/shell/SiteSettingsModal.tsx +24 -2
- package/src/components/shell/SiteSettingsTags.tsx +143 -0
- package/src/components/shell/SiteSettingsUsers.tsx +36 -26
- package/src/components/shell/SiteSettingsViewerAccess.tsx +2 -2
- package/src/components/shell/ViewerLoginForm.tsx +5 -4
- package/src/components/shell/reference-sources.ts +36 -0
- package/src/deck/index.ts +2 -2
- package/src/document/index.ts +2 -2
- package/src/hooks/useBlockDnd.ts +11 -0
- package/src/hooks/useBuildStatus.ts +53 -6
- package/src/hooks/useDocumentUploads.ts +1 -1
- package/src/hooks/useEditorPersistence.ts +141 -35
- package/src/hooks/useEditorPublish.ts +18 -27
- package/src/hooks/useMediaPipeline.ts +1 -1
- package/src/hooks/useNotice.ts +45 -0
- package/src/hooks/useSortableNavRow.ts +11 -0
- package/src/hooks/useSortableRow.ts +22 -2
- package/src/hooks/useStackedEscape.ts +62 -0
- package/src/lib/block-dnd.ts +6 -1
- package/src/lib/block-move.ts +3 -0
- package/src/lib/brand-swatches.ts +32 -0
- package/src/lib/container-ops.ts +5 -3
- package/src/lib/dexie.ts +15 -1
- package/src/lib/env.ts +9 -0
- package/src/lib/events.ts +1 -2
- package/src/lib/image-background.ts +31 -0
- package/src/lib/index.ts +5 -4
- package/src/lib/loader.ts +54 -55
- package/src/lib/nav-tree.ts +71 -0
- package/src/lib/nav.ts +196 -36
- package/src/lib/platform-broker.ts +32 -14
- package/src/lib/reference-type.ts +3 -0
- package/src/lib/reference-validation.ts +69 -0
- package/src/lib/references.ts +130 -0
- package/src/lib/registry.ts +37 -0
- package/src/lib/tags.ts +148 -0
- package/src/lib/theme-vars.ts +23 -0
- package/src/media/index.ts +1 -1
- package/src/media/utils.ts +18 -0
- package/src/media/{videoPoster.ts → video-poster.ts} +2 -2
- package/src/schemas/index.ts +1 -0
- package/src/schemas/shared.ts +24 -1
- package/src/schemas/site-config.ts +6 -1
- package/src/schemas/tags.ts +33 -0
- package/src/storage/types.ts +1 -1
- package/src/types/database.ts +2 -0
- package/dist/chunk-DNY72JZN.js +0 -86
- package/dist/chunk-F2LYQPXV.js +0 -77
- package/dist/chunk-JH762VUH.js +0 -128
- package/dist/chunk-K7DYZXVU.js +0 -138
- package/dist/components/primitives/defineHeadingSection.d.ts.map +0 -1
- package/dist/components/primitives/gridDrop.d.ts.map +0 -1
- package/dist/components/shared/UploadRejectionAlert.d.ts.map +0 -1
- package/dist/components/shell/BuildStatusIndicator.d.ts +0 -7
- package/dist/components/shell/BuildStatusIndicator.d.ts.map +0 -1
- package/dist/components/shell/blockMoveDispatch.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -9
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/lib/grid.d.ts +0 -2
- package/dist/lib/grid.d.ts.map +0 -1
- package/dist/lib/safeRedirect.d.ts.map +0 -1
- package/dist/media/videoPoster.d.ts.map +0 -1
- package/src/components/brandguide/ColorSwatchSettings.d.ts.map +0 -1
- package/src/components/brandguide/Colors.d.ts.map +0 -1
- package/src/components/primitives/CustomParagraph.d.ts.map +0 -1
- package/src/components/primitives/EditableGrid.d.ts.map +0 -1
- package/src/components/primitives/EditablePlainText.d.ts.map +0 -1
- package/src/components/primitives/EditableRichText.d.ts.map +0 -1
- package/src/components/primitives/HeadingSection.d.ts.map +0 -1
- package/src/components/primitives/IconPicker.d.ts.map +0 -1
- package/src/components/primitives/LinkPopover.d.ts.map +0 -1
- package/src/components/primitives/MediaSettingsForms.d.ts.map +0 -1
- package/src/components/primitives/ResolvedMedia.d.ts.map +0 -1
- package/src/components/primitives/RichTextToolbar.d.ts.map +0 -1
- package/src/components/primitives/tiptap-presets.d.ts.map +0 -1
- package/src/components/primitives/useEditableCollection.d.ts.map +0 -1
- package/src/components/primitives/useEditablePlainText.d.ts.map +0 -1
- package/src/components/primitives/useEditableRichText.d.ts.map +0 -1
- package/src/components/sections/Button/CTAButton.d.ts.map +0 -1
- package/src/components/sections/Button/index.d.ts.map +0 -1
- package/src/components/sections/Colors/index.d.ts.map +0 -1
- package/src/components/sections/IconList/IconList.d.ts.map +0 -1
- package/src/components/sections/IconList/IconListSettings.d.ts.map +0 -1
- package/src/components/sections/IconList/index.d.ts.map +0 -1
- package/src/components/sections/LinkHeading/index.d.ts.map +0 -1
- package/src/components/sections/Prose/Prose.d.ts.map +0 -1
- package/src/components/sections/Prose/index.d.ts.map +0 -1
- package/src/components/sections/SubHeading/index.d.ts.map +0 -1
- package/src/components/sections/SubSubHeading/index.d.ts.map +0 -1
- package/src/components/sections/register-schemas.d.ts.map +0 -1
- package/src/components/shared/Button.d.ts.map +0 -1
- package/src/components/shared/Checkbox.d.ts.map +0 -1
- package/src/components/shared/FormLabel.d.ts.map +0 -1
- package/src/components/shared/IconButton.d.ts.map +0 -1
- package/src/components/shared/Input.d.ts.map +0 -1
- package/src/components/shared/Select.d.ts.map +0 -1
- package/src/components/shared/icons.d.ts.map +0 -1
- package/src/components/shell/BuildStatusIndicator.tsx +0 -59
- package/src/components/shell/MediaLibraryContext.d.ts.map +0 -1
- package/src/hooks/index.ts +0 -8
- package/src/hooks/useResolvedMedia.d.ts.map +0 -1
- package/src/lib/cn.d.ts.map +0 -1
- package/src/lib/grid.d.ts.map +0 -1
- package/src/lib/grid.ts +0 -7
- package/src/lib/icons.d.ts.map +0 -1
- package/src/lib/loader.d.ts.map +0 -1
- package/src/lib/nav.d.ts.map +0 -1
- package/src/lib/registry.d.ts.map +0 -1
- package/src/lib/sanitize.d.ts.map +0 -1
- package/src/media/github.d.ts.map +0 -1
- package/src/media/index.d.ts.map +0 -1
- package/src/media/queue.d.ts.map +0 -1
- package/src/media/resolve.d.ts.map +0 -1
- package/src/media/types.d.ts.map +0 -1
- package/src/media/utils.d.ts.map +0 -1
- package/src/media/videoPoster.d.ts.map +0 -1
- package/src/schemas/auth.d.ts.map +0 -1
- package/src/schemas/media-grid-options.d.ts.map +0 -1
- package/src/schemas/media.d.ts.map +0 -1
- package/src/schemas/sections.d.ts.map +0 -1
- package/src/schemas/shared.d.ts.map +0 -1
- package/src/schemas/site-config.d.ts.map +0 -1
- /package/dist/{chunk-B7VBSE5X.js → chunk-3JDTXOIG.js} +0 -0
- /package/dist/{chunk-CXZ5YJG4.js → chunk-L45X7DKX.js} +0 -0
- /package/src/components/primitives/{gridDrop.ts → grid-drop.ts} +0 -0
- /package/src/components/shell/{blockMoveDispatch.ts → block-move-dispatch.ts} +0 -0
- /package/src/lib/{safeRedirect.ts → safe-redirect.ts} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: import("../../..").SectionDefinition<{
|
|
2
|
+
type: "section_summary";
|
|
3
|
+
content: {
|
|
4
|
+
kicker: string;
|
|
5
|
+
accent: string;
|
|
6
|
+
items: {
|
|
7
|
+
headline: string;
|
|
8
|
+
explainer: string;
|
|
9
|
+
link: {
|
|
10
|
+
kind: "external";
|
|
11
|
+
href: string;
|
|
12
|
+
target: "_self" | "_blank";
|
|
13
|
+
} | {
|
|
14
|
+
kind: "internal";
|
|
15
|
+
pageId: string;
|
|
16
|
+
target: "_self" | "_blank";
|
|
17
|
+
anchorSectionId?: string | null | undefined;
|
|
18
|
+
};
|
|
19
|
+
linkLabel: string;
|
|
20
|
+
}[];
|
|
21
|
+
footNote: string;
|
|
22
|
+
};
|
|
23
|
+
options: {
|
|
24
|
+
showAccent?: boolean | undefined;
|
|
25
|
+
showFooter?: boolean | undefined;
|
|
26
|
+
showCopy?: boolean | undefined;
|
|
27
|
+
numbered?: boolean | undefined;
|
|
28
|
+
nav?: "heading" | "off" | "subheading" | undefined;
|
|
29
|
+
navLabel?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
export default _default;
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/SectionSummary/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EA,wBAuEG"}
|
|
@@ -66,6 +66,14 @@ export declare const allSectionDefs: (import("../..").SectionDefinition<{
|
|
|
66
66
|
showCaption?: boolean | undefined;
|
|
67
67
|
border?: boolean | undefined;
|
|
68
68
|
objectFit?: "cover" | "contain" | undefined;
|
|
69
|
+
background?: {
|
|
70
|
+
mode: "theme";
|
|
71
|
+
light: "none" | "light" | "dark";
|
|
72
|
+
dark: "none" | "light" | "dark";
|
|
73
|
+
} | {
|
|
74
|
+
mode: "custom";
|
|
75
|
+
color: string;
|
|
76
|
+
} | undefined;
|
|
69
77
|
};
|
|
70
78
|
}> | import("../..").SectionDefinition<{
|
|
71
79
|
type: "video";
|
|
@@ -126,6 +134,12 @@ export declare const allSectionDefs: (import("../..").SectionDefinition<{
|
|
|
126
134
|
}> | import("../..").SectionDefinition<{
|
|
127
135
|
type: "spacer";
|
|
128
136
|
content: Record<string, never>;
|
|
137
|
+
}> | import("../..").SectionDefinition<{
|
|
138
|
+
type: "reference";
|
|
139
|
+
content: {
|
|
140
|
+
tagIds: string[];
|
|
141
|
+
sectionIds: string[];
|
|
142
|
+
};
|
|
129
143
|
}> | import("../..").SectionDefinition<{
|
|
130
144
|
type: "colors";
|
|
131
145
|
content: {
|
|
@@ -160,6 +174,7 @@ export declare const allSectionDefs: (import("../..").SectionDefinition<{
|
|
|
160
174
|
showLabel?: boolean | undefined;
|
|
161
175
|
stackText?: boolean | undefined;
|
|
162
176
|
dodont?: "do" | "dont" | undefined;
|
|
177
|
+
marker?: "number" | "icon" | undefined;
|
|
163
178
|
} | undefined;
|
|
164
179
|
}> | import("../..").SectionDefinition<{
|
|
165
180
|
type: "dodont_media";
|
|
@@ -202,6 +217,14 @@ export declare const allSectionDefs: (import("../..").SectionDefinition<{
|
|
|
202
217
|
showCaption?: boolean | undefined;
|
|
203
218
|
border?: boolean | undefined;
|
|
204
219
|
objectFit?: "cover" | "contain" | undefined;
|
|
220
|
+
background?: {
|
|
221
|
+
mode: "theme";
|
|
222
|
+
light: "none" | "light" | "dark";
|
|
223
|
+
dark: "none" | "light" | "dark";
|
|
224
|
+
} | {
|
|
225
|
+
mode: "custom";
|
|
226
|
+
color: string;
|
|
227
|
+
} | undefined;
|
|
205
228
|
};
|
|
206
229
|
}> | import("../..").SectionDefinition<{
|
|
207
230
|
type: "document";
|
|
@@ -213,5 +236,35 @@ export declare const allSectionDefs: (import("../..").SectionDefinition<{
|
|
|
213
236
|
showInDocumentsNav: boolean;
|
|
214
237
|
};
|
|
215
238
|
options: Record<string, never>;
|
|
239
|
+
}> | import("../..").SectionDefinition<{
|
|
240
|
+
type: "section_summary";
|
|
241
|
+
content: {
|
|
242
|
+
kicker: string;
|
|
243
|
+
accent: string;
|
|
244
|
+
items: {
|
|
245
|
+
headline: string;
|
|
246
|
+
explainer: string;
|
|
247
|
+
link: {
|
|
248
|
+
kind: "external";
|
|
249
|
+
href: string;
|
|
250
|
+
target: "_self" | "_blank";
|
|
251
|
+
} | {
|
|
252
|
+
kind: "internal";
|
|
253
|
+
pageId: string;
|
|
254
|
+
target: "_self" | "_blank";
|
|
255
|
+
anchorSectionId?: string | null | undefined;
|
|
256
|
+
};
|
|
257
|
+
linkLabel: string;
|
|
258
|
+
}[];
|
|
259
|
+
footNote: string;
|
|
260
|
+
};
|
|
261
|
+
options: {
|
|
262
|
+
showAccent?: boolean | undefined;
|
|
263
|
+
showFooter?: boolean | undefined;
|
|
264
|
+
showCopy?: boolean | undefined;
|
|
265
|
+
numbered?: boolean | undefined;
|
|
266
|
+
nav?: "heading" | "off" | "subheading" | undefined;
|
|
267
|
+
navLabel?: string | undefined;
|
|
268
|
+
};
|
|
216
269
|
}>)[];
|
|
217
270
|
//# sourceMappingURL=all-sections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-sections.d.ts","sourceRoot":"","sources":["../../../src/components/sections/all-sections.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"all-sections.d.ts","sourceRoot":"","sources":["../../../src/components/sections/all-sections.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAiD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Opinionated brand-guide sections. Self-contained subtree: a build that does
|
|
2
|
-
* not import this module drops these sections (and their cmyk/pantone schemas
|
|
3
|
-
*
|
|
2
|
+
* not import this module drops these sections (and their cmyk/pantone schemas,
|
|
3
|
+
* do/dont compositions and the TL;DR plate) entirely. Exposed at
|
|
4
4
|
* `@drawnagency/primitives/components/sections/brand-guide`. */
|
|
5
5
|
export declare const brandGuideSectionDefs: (import("../..").SectionDefinition<{
|
|
6
6
|
type: "colors";
|
|
@@ -36,6 +36,7 @@ export declare const brandGuideSectionDefs: (import("../..").SectionDefinition<{
|
|
|
36
36
|
showLabel?: boolean | undefined;
|
|
37
37
|
stackText?: boolean | undefined;
|
|
38
38
|
dodont?: "do" | "dont" | undefined;
|
|
39
|
+
marker?: "number" | "icon" | undefined;
|
|
39
40
|
} | undefined;
|
|
40
41
|
}> | import("../..").SectionDefinition<{
|
|
41
42
|
type: "dodont_media";
|
|
@@ -78,6 +79,14 @@ export declare const brandGuideSectionDefs: (import("../..").SectionDefinition<{
|
|
|
78
79
|
showCaption?: boolean | undefined;
|
|
79
80
|
border?: boolean | undefined;
|
|
80
81
|
objectFit?: "cover" | "contain" | undefined;
|
|
82
|
+
background?: {
|
|
83
|
+
mode: "theme";
|
|
84
|
+
light: "none" | "light" | "dark";
|
|
85
|
+
dark: "none" | "light" | "dark";
|
|
86
|
+
} | {
|
|
87
|
+
mode: "custom";
|
|
88
|
+
color: string;
|
|
89
|
+
} | undefined;
|
|
81
90
|
};
|
|
82
91
|
}> | import("../..").SectionDefinition<{
|
|
83
92
|
type: "document";
|
|
@@ -89,6 +98,36 @@ export declare const brandGuideSectionDefs: (import("../..").SectionDefinition<{
|
|
|
89
98
|
showInDocumentsNav: boolean;
|
|
90
99
|
};
|
|
91
100
|
options: Record<string, never>;
|
|
101
|
+
}> | import("../..").SectionDefinition<{
|
|
102
|
+
type: "section_summary";
|
|
103
|
+
content: {
|
|
104
|
+
kicker: string;
|
|
105
|
+
accent: string;
|
|
106
|
+
items: {
|
|
107
|
+
headline: string;
|
|
108
|
+
explainer: string;
|
|
109
|
+
link: {
|
|
110
|
+
kind: "external";
|
|
111
|
+
href: string;
|
|
112
|
+
target: "_self" | "_blank";
|
|
113
|
+
} | {
|
|
114
|
+
kind: "internal";
|
|
115
|
+
pageId: string;
|
|
116
|
+
target: "_self" | "_blank";
|
|
117
|
+
anchorSectionId?: string | null | undefined;
|
|
118
|
+
};
|
|
119
|
+
linkLabel: string;
|
|
120
|
+
}[];
|
|
121
|
+
footNote: string;
|
|
122
|
+
};
|
|
123
|
+
options: {
|
|
124
|
+
showAccent?: boolean | undefined;
|
|
125
|
+
showFooter?: boolean | undefined;
|
|
126
|
+
showCopy?: boolean | undefined;
|
|
127
|
+
numbered?: boolean | undefined;
|
|
128
|
+
nav?: "heading" | "off" | "subheading" | undefined;
|
|
129
|
+
navLabel?: string | undefined;
|
|
130
|
+
};
|
|
92
131
|
}>)[];
|
|
93
132
|
export { ColorSpaceSchema, ColorItemSchema } from "./Colors/schema";
|
|
94
133
|
export type { ColorSpace, ColorItem } from "./Colors/schema";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-guide.d.ts","sourceRoot":"","sources":["../../../src/components/sections/brand-guide.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"brand-guide.d.ts","sourceRoot":"","sources":["../../../src/components/sections/brand-guide.ts"],"names":[],"mappings":"AAMA;;;iEAGiE;AAEjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAmE,CAAC;AAEtG,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACpE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -2,21 +2,23 @@ import {
|
|
|
2
2
|
ColorItemSchema,
|
|
3
3
|
ColorSpaceSchema,
|
|
4
4
|
brandGuideSectionDefs
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-N3G7DOU3.js";
|
|
6
|
+
import "../../chunk-JR24U7FJ.js";
|
|
7
|
+
import "../../chunk-Y5QECJX7.js";
|
|
8
|
+
import "../../chunk-5KSAS4VY.js";
|
|
9
|
+
import "../../chunk-DIMDRBFK.js";
|
|
9
10
|
import "../../chunk-IIDKW7AV.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-QHMKIODQ.js";
|
|
11
12
|
import "../../chunk-WDSVHKAH.js";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-XDEPXTBY.js";
|
|
14
|
+
import "../../chunk-L45X7DKX.js";
|
|
14
15
|
import "../../chunk-7EOSDFS3.js";
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-IP2SEBAJ.js";
|
|
17
|
+
import "../../chunk-5GFACGSN.js";
|
|
18
|
+
import "../../chunk-PTY2RG2K.js";
|
|
17
19
|
import "../../chunk-4TZJZU2T.js";
|
|
18
20
|
import "../../chunk-FTPETWXE.js";
|
|
19
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-AASEGXNT.js";
|
|
20
22
|
import "../../chunk-3ZRQ4G5F.js";
|
|
21
23
|
import "../../chunk-BS5AQHZG.js";
|
|
22
24
|
import "../../chunk-JSBRDJBE.js";
|
|
@@ -61,6 +61,14 @@ export declare const coreSectionDefs: (import("../..").SectionDefinition<{
|
|
|
61
61
|
showCaption?: boolean | undefined;
|
|
62
62
|
border?: boolean | undefined;
|
|
63
63
|
objectFit?: "cover" | "contain" | undefined;
|
|
64
|
+
background?: {
|
|
65
|
+
mode: "theme";
|
|
66
|
+
light: "none" | "light" | "dark";
|
|
67
|
+
dark: "none" | "light" | "dark";
|
|
68
|
+
} | {
|
|
69
|
+
mode: "custom";
|
|
70
|
+
color: string;
|
|
71
|
+
} | undefined;
|
|
64
72
|
};
|
|
65
73
|
}> | import("../..").SectionDefinition<{
|
|
66
74
|
type: "video";
|
|
@@ -121,5 +129,11 @@ export declare const coreSectionDefs: (import("../..").SectionDefinition<{
|
|
|
121
129
|
}> | import("../..").SectionDefinition<{
|
|
122
130
|
type: "spacer";
|
|
123
131
|
content: Record<string, never>;
|
|
132
|
+
}> | import("../..").SectionDefinition<{
|
|
133
|
+
type: "reference";
|
|
134
|
+
content: {
|
|
135
|
+
tagIds: string[];
|
|
136
|
+
sectionIds: string[];
|
|
137
|
+
};
|
|
124
138
|
}>)[];
|
|
125
139
|
//# sourceMappingURL=core-sections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-sections.d.ts","sourceRoot":"","sources":["../../../src/components/sections/core-sections.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"core-sections.d.ts","sourceRoot":"","sources":["../../../src/components/sections/core-sections.ts"],"names":[],"mappings":"AAWA;;+BAE+B;AAK/B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAW3B,CAAC"}
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
allSectionDefs
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-7SAAJVDE.js";
|
|
4
|
+
import "../../chunk-N3G7DOU3.js";
|
|
5
|
+
import "../../chunk-PLANHXS7.js";
|
|
6
|
+
import "../../chunk-JR24U7FJ.js";
|
|
7
|
+
import "../../chunk-PZPGJZRG.js";
|
|
8
|
+
import "../../chunk-Y5QECJX7.js";
|
|
9
|
+
import "../../chunk-5KSAS4VY.js";
|
|
10
|
+
import "../../chunk-JCDZAFX2.js";
|
|
11
|
+
import "../../chunk-DIMDRBFK.js";
|
|
12
|
+
import "../../chunk-GGYY3JQJ.js";
|
|
13
13
|
import "../../chunk-IIDKW7AV.js";
|
|
14
14
|
import "../../chunk-Y4JQGO6G.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-QHMKIODQ.js";
|
|
16
16
|
import "../../chunk-WDSVHKAH.js";
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-XDEPXTBY.js";
|
|
18
|
+
import "../../chunk-VUYCRBJK.js";
|
|
19
|
+
import "../../chunk-L45X7DKX.js";
|
|
20
20
|
import "../../chunk-QQ3S3P5P.js";
|
|
21
21
|
import "../../chunk-7EOSDFS3.js";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-OAGJBCSH.js";
|
|
23
|
+
import "../../chunk-IP2SEBAJ.js";
|
|
24
|
+
import "../../chunk-5GFACGSN.js";
|
|
23
25
|
import "../../chunk-DMCGN5AS.js";
|
|
24
|
-
import "../../chunk-
|
|
26
|
+
import "../../chunk-PTY2RG2K.js";
|
|
25
27
|
import "../../chunk-4TZJZU2T.js";
|
|
26
28
|
import {
|
|
27
29
|
registerRichText,
|
|
28
30
|
registerSchema
|
|
29
31
|
} from "../../chunk-FTPETWXE.js";
|
|
30
|
-
import "../../chunk-
|
|
32
|
+
import "../../chunk-AASEGXNT.js";
|
|
31
33
|
import "../../chunk-NSCT3AMV.js";
|
|
32
34
|
import "../../chunk-3ZRQ4G5F.js";
|
|
33
35
|
import "../../chunk-BS5AQHZG.js";
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
allSectionDefs
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-7SAAJVDE.js";
|
|
4
|
+
import "../../chunk-N3G7DOU3.js";
|
|
5
|
+
import "../../chunk-PLANHXS7.js";
|
|
6
|
+
import "../../chunk-JR24U7FJ.js";
|
|
7
|
+
import "../../chunk-PZPGJZRG.js";
|
|
8
|
+
import "../../chunk-Y5QECJX7.js";
|
|
9
|
+
import "../../chunk-5KSAS4VY.js";
|
|
10
|
+
import "../../chunk-JCDZAFX2.js";
|
|
11
|
+
import "../../chunk-DIMDRBFK.js";
|
|
12
|
+
import "../../chunk-GGYY3JQJ.js";
|
|
13
13
|
import "../../chunk-IIDKW7AV.js";
|
|
14
14
|
import "../../chunk-Y4JQGO6G.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-QHMKIODQ.js";
|
|
16
16
|
import "../../chunk-WDSVHKAH.js";
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-XDEPXTBY.js";
|
|
18
|
+
import "../../chunk-VUYCRBJK.js";
|
|
19
|
+
import "../../chunk-L45X7DKX.js";
|
|
20
20
|
import "../../chunk-QQ3S3P5P.js";
|
|
21
21
|
import "../../chunk-7EOSDFS3.js";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-OAGJBCSH.js";
|
|
23
|
+
import "../../chunk-IP2SEBAJ.js";
|
|
24
|
+
import "../../chunk-5GFACGSN.js";
|
|
23
25
|
import "../../chunk-DMCGN5AS.js";
|
|
24
|
-
import "../../chunk-
|
|
26
|
+
import "../../chunk-PTY2RG2K.js";
|
|
25
27
|
import "../../chunk-4TZJZU2T.js";
|
|
26
28
|
import {
|
|
27
29
|
registerSection
|
|
28
30
|
} from "../../chunk-FTPETWXE.js";
|
|
29
|
-
import "../../chunk-
|
|
31
|
+
import "../../chunk-AASEGXNT.js";
|
|
30
32
|
import "../../chunk-NSCT3AMV.js";
|
|
31
33
|
import "../../chunk-3ZRQ4G5F.js";
|
|
32
34
|
import "../../chunk-BS5AQHZG.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BrandSwatch } from "../../lib/brand-swatches";
|
|
2
|
+
/**
|
|
3
|
+
* Hex values from every Colors section site-wide, for color pickers in
|
|
4
|
+
* settings forms. A form only receives its own section's values, so EditorShell
|
|
5
|
+
* provides these from all loaded sections (collectBrandSwatches).
|
|
6
|
+
*/
|
|
7
|
+
export declare const BrandSwatchesContext: import("react").Context<BrandSwatch[]>;
|
|
8
|
+
export declare function useBrandSwatches(): BrandSwatch[];
|
|
9
|
+
//# sourceMappingURL=BrandSwatchesContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrandSwatchesContext.d.ts","sourceRoot":"","sources":["../../../src/components/shared/BrandSwatchesContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,wCAAmC,CAAC;AAErE,wBAAgB,gBAAgB,IAAI,WAAW,EAAE,CAEhD"}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode, Ref } from "react";
|
|
2
2
|
export type ButtonVariant = "primary" | "brand" | "secondary" | "destructive" | "ghost";
|
|
3
3
|
export type ButtonSize = "sm" | "md";
|
|
4
4
|
export type ButtonTone = "neutral" | "destructive";
|
|
5
|
-
|
|
5
|
+
interface ButtonCommon {
|
|
6
6
|
variant?: ButtonVariant;
|
|
7
7
|
size?: ButtonSize;
|
|
8
8
|
tone?: ButtonTone;
|
|
9
9
|
fullWidth?: boolean;
|
|
10
10
|
isLoading?: boolean;
|
|
11
11
|
loadingLabel?: string;
|
|
12
|
+
className?: string;
|
|
12
13
|
children?: ReactNode;
|
|
13
14
|
}
|
|
14
|
-
export
|
|
15
|
+
export type ButtonProps = ({
|
|
16
|
+
href: string;
|
|
17
|
+
} & ButtonCommon & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "className">) | ({
|
|
18
|
+
href?: undefined;
|
|
19
|
+
ref?: Ref<HTMLButtonElement>;
|
|
20
|
+
} & ButtonCommon & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className">);
|
|
21
|
+
export declare function Button({ variant, size, tone, fullWidth, isLoading, loadingLabel, className, children, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
15
23
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/shared/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/shared/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGxF,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG,OAAO,CAAC;AACxF,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AACrC,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,aAAa,CAAC;AAEnD,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAKD,MAAM,MAAM,WAAW,GACnB,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC,GAC3G,CAAC;IAAE,IAAI,CAAC,EAAE,SAAS,CAAC;IAAC,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAAE,GAAG,YAAY,GAChE,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC;AAyB/E,wBAAgB,MAAM,CAAC,EACrB,OAAmB,EACnB,IAAW,EACX,IAAgB,EAChB,SAAiB,EACjB,SAAiB,EACjB,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,WAAW,2CA8Bb"}
|
|
@@ -10,5 +10,11 @@ interface CheckboxProps {
|
|
|
10
10
|
align?: "start" | "center";
|
|
11
11
|
}
|
|
12
12
|
export declare function Checkbox({ checked, onChange, label, description, disabled, className, startAdornment, align, }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
/** The visual square alone, for rows whose own element carries the checkbox
|
|
14
|
+
* role (a menu item, a picker row) and so can't nest a labelled input. */
|
|
15
|
+
export declare function CheckboxBox({ checked, className }: {
|
|
16
|
+
checked: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
19
|
export {};
|
|
14
20
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/shared/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI9C,UAAU,aAAa;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC5B;AAED,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,QAAQ,EACR,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,cAAc,EACd,KAAe,GAChB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/shared/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI9C,UAAU,aAAa;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC5B;AAED,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,QAAQ,EACR,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,cAAc,EACd,KAAe,GAChB,EAAE,aAAa,2CAwCf;AAED;2EAC2E;AAC3E,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAa3F"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface ConfirmDialogProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
title: string;
|
|
5
|
+
body?: ReactNode;
|
|
6
|
+
confirmLabel: string;
|
|
7
|
+
cancelLabel?: string;
|
|
8
|
+
tone?: "destructive" | "neutral";
|
|
9
|
+
busy?: boolean;
|
|
10
|
+
busyLabel?: string;
|
|
11
|
+
/** The typed-name page delete gates on this. */
|
|
12
|
+
confirmDisabled?: boolean;
|
|
13
|
+
onConfirm: () => void;
|
|
14
|
+
onCancel: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Renders title/body/buttons with no `EditorModal` wrapper — for a confirm
|
|
17
|
+
* that appears inside an ALREADY-OPEN `EditorModal` (PagesModal's typed-name
|
|
18
|
+
* delete, HistoryChangesModal's restore mode-swap). Two nested EditorModals
|
|
19
|
+
* would each register their own document Escape listener, so one Escape
|
|
20
|
+
* would close both.
|
|
21
|
+
*/
|
|
22
|
+
embedded?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare function ConfirmDialog({ isOpen, title, body, confirmLabel, cancelLabel, tone, busy, busyLabel, confirmDisabled, onConfirm, onCancel, embedded, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
//# sourceMappingURL=ConfirmDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/components/shared/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,WAAsB,EACtB,IAAoB,EACpB,IAAY,EACZ,SAAS,EACT,eAAuB,EACvB,SAAS,EACT,QAAQ,EACR,QAAgB,GACjB,EAAE,kBAAkB,kDAwCpB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ReactNode, type RefObject } from "react";
|
|
2
|
+
export type ConfirmTone = "destructive" | "neutral";
|
|
3
|
+
export interface ConfirmInlineProps {
|
|
4
|
+
message: ReactNode;
|
|
5
|
+
confirmLabel: string;
|
|
6
|
+
cancelLabel?: string;
|
|
7
|
+
tone: ConfirmTone;
|
|
8
|
+
busy?: boolean;
|
|
9
|
+
confirmDisabled?: boolean;
|
|
10
|
+
/** Overrides the confirm button's accessible name when the visible label is
|
|
11
|
+
* ambiguous across multiple rows (NavGroupRow's pinned "Confirm delete"). */
|
|
12
|
+
confirmAriaLabel?: string;
|
|
13
|
+
/** Sits between Cancel and confirm as `Button variant="secondary"` — the
|
|
14
|
+
* folder delete's "Move contents to parent" is the one user today. */
|
|
15
|
+
secondaryAction?: {
|
|
16
|
+
label: string;
|
|
17
|
+
onClick: () => void;
|
|
18
|
+
};
|
|
19
|
+
onConfirm: () => void;
|
|
20
|
+
onCancel: () => void;
|
|
21
|
+
/** Focus returns here on unmount — the row's trigger button, typically. */
|
|
22
|
+
returnFocusTo?: RefObject<HTMLElement | null>;
|
|
23
|
+
}
|
|
24
|
+
export declare function ConfirmInline({ message, confirmLabel, cancelLabel, tone, busy, confirmDisabled, confirmAriaLabel, secondaryAction, onConfirm, onCancel, returnFocusTo, }: ConfirmInlineProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=ConfirmInline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmInline.d.ts","sourceRoot":"","sources":["../../../src/components/shared/ConfirmInline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI1E,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,SAAS,CAAC;AAOpD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,SAAS,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;kFAC8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;2EACuE;IACvE,eAAe,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACzD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC/C;AAED,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,YAAY,EACZ,WAAsB,EACtB,IAAI,EACJ,IAAY,EACZ,eAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,QAAQ,EACR,aAAa,GACd,EAAE,kBAAkB,2CA+CpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/components/shared/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/components/shared/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlE,UAAU,kBAAkB;IAC1B,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;gBACtE,KAAK,EAAE,kBAAkB;IAKrC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,kBAAkB;IAIjE,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS;IAQ/C,OAAO,CAAC,WAAW,CAEjB;IAEF,MAAM;CAoCP"}
|
|
@@ -22,9 +22,18 @@ interface FabCommon {
|
|
|
22
22
|
/** Accessible name — FABs are icon-only. */
|
|
23
23
|
label: string;
|
|
24
24
|
column: "viewer" | "editor";
|
|
25
|
-
/** Vertical slot (bottom-*) plus any per-FAB extras.
|
|
25
|
+
/** Vertical slot (bottom-*) plus any per-FAB extras. Ignored when `stacked`
|
|
26
|
+
* — `FabStack` owns spacing then. */
|
|
26
27
|
className?: string;
|
|
27
28
|
children: ReactNode;
|
|
29
|
+
/** Renders as a static, non-fixed member of a `FabStack` instead of an
|
|
30
|
+
* independently viewport-fixed button: `relative`, no `bottom-*`/`right-*`
|
|
31
|
+
* of its own. React context can't cross the viewer page's separate Astro
|
|
32
|
+
* islands, so this is a prop, not a stacking context — `FabStack` is
|
|
33
|
+
* editor-shell only; the viewer page's FABs never set it. `fab-stacked`
|
|
34
|
+
* suppresses the lg+ position rule base.css gives `.fab-container-right`
|
|
35
|
+
* (see FabStack), so the two positioning mechanisms don't compound. */
|
|
36
|
+
stacked?: boolean;
|
|
28
37
|
}
|
|
29
38
|
export type FabProps = ({
|
|
30
39
|
href: string;
|
|
@@ -32,6 +41,6 @@ export type FabProps = ({
|
|
|
32
41
|
href?: undefined;
|
|
33
42
|
ref?: Ref<HTMLButtonElement>;
|
|
34
43
|
} & FabCommon & Omit<ComponentPropsWithoutRef<"button">, "children" | "className" | "aria-label" | "type">);
|
|
35
|
-
export default function Fab({ label, column, className, children, ...rest }: FabProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export default function Fab({ label, column, className, children, stacked, ...rest }: FabProps): import("react/jsx-runtime").JSX.Element;
|
|
36
45
|
export {};
|
|
37
46
|
//# sourceMappingURL=Fab.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fab.d.ts","sourceRoot":"","sources":["../../../src/components/shared/Fab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGtE;;;;;;;;;;;;;;;;;;GAkBG;AACH,UAAU,SAAS;IACjB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B
|
|
1
|
+
{"version":3,"file":"Fab.d.ts","sourceRoot":"","sources":["../../../src/components/shared/Fab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGtE;;;;;;;;;;;;;;;;;;GAkBG;AACH,UAAU,SAAS;IACjB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B;0CACsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;;;4EAMwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,QAAQ,GAChB,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAAG,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,YAAY,CAAC,CAAC,GAC7G,CAAC;IAAE,IAAI,CAAC,EAAE,SAAS,CAAC;IAAC,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAAE,GAAG,SAAS,GAC7D,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC;AAElG,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,2CAqB7F"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
interface FabStackProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/** Vertical stack for the /edit FAB column — EditorShell's own FABs
|
|
6
|
+
* (mode toggle, doc-edit, BugReportFAB) share this rhythm so they can never
|
|
7
|
+
* overlap. ChatWidget's launcher stays independently `fixed` (a React
|
|
8
|
+
* context here can't reach it anyway: the viewer page renders each `<Fab>`
|
|
9
|
+
* as its own Astro island, and the chat launcher lives inside the
|
|
10
|
+
* ChatWidget island).
|
|
11
|
+
*
|
|
12
|
+
* Positioning lives on the container only: `right-4 lg:right-auto` plus
|
|
13
|
+
* `fab-container-right`, whose lg+ rule in base.css re-sets `right` to the
|
|
14
|
+
* content edge. That rule skips `.fab-stacked`, so stacked children are never
|
|
15
|
+
* shifted twice — but it means the container MUST carry the class: without
|
|
16
|
+
* it, `lg:right-auto` leaves the fixed column with no horizontal inset at all
|
|
17
|
+
* and it falls back to its static position over the page content. Children
|
|
18
|
+
* render with `stacked` (relative, no position classes of their own) and
|
|
19
|
+
* contribute only spacing via this flex column. */
|
|
20
|
+
export declare function FabStack({ children }: FabStackProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=FabStack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FabStack.d.ts","sourceRoot":"","sources":["../../../src/components/shared/FabStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,UAAU,aAAa;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;oDAcoD;AACpD,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE,aAAa,2CAMnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HistoryChangesModal.d.ts","sourceRoot":"","sources":["../../../src/components/shared/HistoryChangesModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HistoryChangesModal.d.ts","sourceRoot":"","sources":["../../../src/components/shared/HistoryChangesModal.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,yEAAyE;IACzE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAkBD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,4EAA4E;IAC5E,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,wBAAwB;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kEAAkE;IAClE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AA2DD,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EACpE,iBAAyB,EAAE,WAAmB,EAAE,YAAmB,GACpE,EAAE,wBAAwB,2CAoJ1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HistoryPopover.d.ts","sourceRoot":"","sources":["../../../src/components/shared/HistoryPopover.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HistoryPopover.d.ts","sourceRoot":"","sources":["../../../src/components/shared/HistoryPopover.tsx"],"names":[],"mappings":"AAcA,UAAU,mBAAmB;IAC3B,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAiCD,wBAAgB,cAAc,CAAC,EAAE,cAAc,EAAE,iBAAyB,EAAE,EAAE,mBAAmB,2CAwOhG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ImageBackground } from "../../schemas/shared";
|
|
2
|
+
interface Props {
|
|
3
|
+
label: string;
|
|
4
|
+
value: ImageBackground | undefined;
|
|
5
|
+
onChange: (value: ImageBackground | undefined) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function ImageBackgroundField({ label, value, onChange }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ImageBackgroundField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageBackgroundField.d.ts","sourceRoot":"","sources":["../../../src/components/shared/ImageBackgroundField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAA0B,MAAM,sBAAsB,CAAC;AAQpF,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,eAAe,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,KAAK,IAAI,CAAC;CACxD;AAcD,wBAAgB,oBAAoB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,2CAiErE"}
|
|
@@ -8,8 +8,10 @@ export interface UploadRejection {
|
|
|
8
8
|
* common path; the multi-file branch keeps the helper reusable by the modal.
|
|
9
9
|
*/
|
|
10
10
|
export declare function formatRejections(files: UploadRejection[], maxFileSize?: number): string;
|
|
11
|
-
export
|
|
11
|
+
export type InlineAlertTone = "success" | "info" | "warning" | "error";
|
|
12
|
+
export declare function InlineAlert({ message, onDismiss, tone, }: {
|
|
12
13
|
message: string;
|
|
13
14
|
onDismiss: () => void;
|
|
15
|
+
tone?: InlineAlertTone;
|
|
14
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
//# sourceMappingURL=
|
|
17
|
+
//# sourceMappingURL=InlineAlert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineAlert.d.ts","sourceRoot":"","sources":["../../../src/components/shared/InlineAlert.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAiBvF;AAED,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AASvE,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,SAAS,EACT,IAAgB,GACjB,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,2CAiBA"}
|