@drawnagency/primitives 0.1.113 → 0.1.115
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-4WQ36ZP7.js +83 -0
- package/dist/{chunk-REDDTTGJ.js → chunk-4Y2JQQZL.js} +19 -1
- package/dist/chunk-5GFACGSN.js +6 -0
- package/dist/{chunk-AHALSCQH.js → chunk-67P34WNW.js} +76 -131
- package/dist/{chunk-S2L3BPLS.js → chunk-7SX42OP4.js} +1 -1
- package/dist/{chunk-GGXZZ77Z.js → chunk-AASEGXNT.js} +18 -1
- package/dist/chunk-APIJPTFG.js +64 -0
- package/dist/{chunk-WKZ7OENC.js → chunk-BQ5TZZUE.js} +5 -1
- package/dist/chunk-CDBURDPX.js +90 -0
- package/dist/chunk-DFKTF3CH.js +0 -0
- package/dist/chunk-DIMDRBFK.js +11 -0
- package/dist/chunk-DJABADOO.js +131 -0
- package/dist/{chunk-NHN2LSIU.js → chunk-DJOGPSRU.js} +31 -68
- package/dist/{chunk-KR2MHTNJ.js → chunk-FHTKSELX.js} +610 -62
- package/dist/{chunk-WUJ3XNFI.js → chunk-GGYY3JQJ.js} +19 -24
- package/dist/chunk-GNF6KFQ7.js +18 -0
- package/dist/{chunk-FRE2CCLV.js → chunk-HHNPSKPT.js} +5 -79
- package/dist/{chunk-IINIZBQB.js → chunk-JCDZAFX2.js} +30 -10
- package/dist/chunk-JR24U7FJ.js +120 -0
- package/dist/{chunk-BDFTMGCL.js → chunk-JXATNKLV.js} +11 -10
- package/dist/{chunk-SW6PCQQD.js → chunk-KQA772WQ.js} +2 -1
- package/dist/{chunk-6BZ2KNTP.js → chunk-NX7TFHA4.js} +195 -65
- package/dist/{chunk-VWWY5TL5.js → chunk-O37AV27P.js} +14 -75
- package/dist/chunk-RIITGTV3.js +275 -0
- package/dist/{chunk-HBULBDGP.js → chunk-S37DZPHW.js} +1 -1
- package/dist/chunk-S7QRHUWO.js +8 -0
- package/dist/{chunk-Z7W3DQTR.js → chunk-T26HAKW3.js} +424 -42
- package/dist/{chunk-4I5OO5UB.js → chunk-TEOAKGZA.js} +0 -1
- package/dist/{chunk-GPPVYLEI.js → chunk-UUUSJDIG.js} +1 -1
- package/dist/chunk-VY3IFGE3.js +70 -0
- package/dist/chunk-WYOFQHKI.js +176 -0
- package/dist/{chunk-4RNF2DRG.js → chunk-XDEPXTBY.js} +0 -2
- package/dist/{chunk-DS4GCYV2.js → chunk-YV3YSZEB.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 +24 -9
- 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 +150 -79
- 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 +22 -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 +17 -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 +25 -18
- package/dist/components/sections/register.js +25 -18
- 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 +10 -17
- 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 +6 -3
- package/dist/hooks/useEditorPublish.d.ts.map +1 -1
- package/dist/hooks/useMediaPipeline.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 +95 -48
- 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 +7 -1
- package/dist/lib/dexie.d.ts.map +1 -1
- package/dist/lib/dexie.js +12 -3
- 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/image-variant-plan.d.ts +42 -0
- package/dist/lib/image-variant-plan.d.ts.map +1 -0
- package/dist/lib/image-variant-plan.js +53 -0
- package/dist/lib/index-ops.d.ts.map +1 -1
- package/dist/lib/index-ops.js +21 -17
- package/dist/lib/index.d.ts +7 -4
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +55 -26
- package/dist/lib/loader.d.ts +25 -12
- package/dist/lib/loader.d.ts.map +1 -1
- package/dist/lib/media-ops.d.ts +73 -0
- package/dist/lib/media-ops.d.ts.map +1 -0
- package/dist/lib/media-ops.js +60 -0
- package/dist/lib/nav-tree.d.ts +7 -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/pages.d.ts +2 -1
- package/dist/lib/pages.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/sidecar-diagnostics.d.ts +20 -0
- package/dist/lib/sidecar-diagnostics.d.ts.map +1 -0
- package/dist/lib/sidecars.d.ts +118 -0
- package/dist/lib/sidecars.d.ts.map +1 -0
- package/dist/lib/sidecars.js +23 -0
- package/dist/lib/slug.d.ts +2 -0
- package/dist/lib/slug.d.ts.map +1 -0
- package/dist/lib/storage-tier.d.ts +17 -0
- package/dist/lib/storage-tier.d.ts.map +1 -0
- package/dist/lib/storage-tier.js +29 -0
- package/dist/lib/tags.d.ts +64 -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 +18 -14
- package/dist/media/queue.d.ts +2 -0
- package/dist/media/queue.d.ts.map +1 -1
- 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/media/worker.d.ts +1 -35
- package/dist/media/worker.d.ts.map +1 -1
- 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 +25 -13
- package/dist/schemas/media.d.ts +4 -0
- package/dist/schemas/media.d.ts.map +1 -1
- 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 +2 -1
- package/dist/storage/memory.d.ts +21 -0
- package/dist/storage/memory.d.ts.map +1 -0
- package/dist/storage/memory.js +129 -0
- package/dist/storage/types.d.ts +9 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/types/database.d.ts.map +1 -1
- package/package.json +26 -1
- package/src/auth/cookies.ts +111 -0
- package/src/collab/rebase.ts +29 -9
- 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 +501 -338
- 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 +27 -31
- package/src/hooks/useMediaPipeline.ts +30 -24
- 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 +24 -2
- 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/image-variant-plan.ts +92 -0
- package/src/lib/index-ops.ts +9 -18
- package/src/lib/index.ts +20 -4
- package/src/lib/loader.ts +28 -88
- package/src/lib/media-ops.ts +112 -0
- package/src/lib/nav-tree.ts +104 -4
- package/src/lib/nav.ts +196 -36
- package/src/lib/pages.ts +2 -3
- 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/sidecar-diagnostics.ts +29 -0
- package/src/lib/sidecars.ts +221 -0
- package/src/lib/slug.ts +6 -0
- package/src/lib/storage-tier.ts +38 -0
- package/src/lib/tags.ts +165 -0
- package/src/lib/theme-vars.ts +23 -0
- package/src/media/index.ts +1 -1
- package/src/media/queue.ts +3 -0
- package/src/media/utils.ts +19 -1
- package/src/media/{videoPoster.ts → video-poster.ts} +2 -2
- package/src/media/worker.ts +17 -8
- package/src/schemas/index.ts +1 -0
- package/src/schemas/media.ts +7 -2
- 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/memory.ts +178 -0
- package/src/storage/types.ts +16 -3
- 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,60 @@
|
|
|
1
|
+
import "../chunk-JSBRDJBE.js";
|
|
2
|
+
|
|
3
|
+
// src/lib/media-ops.ts
|
|
4
|
+
function applyMediaOps(manifests, ops) {
|
|
5
|
+
const images = { ...manifests.images, images: { ...manifests.images.images } };
|
|
6
|
+
let documents = null;
|
|
7
|
+
const uploads = [];
|
|
8
|
+
const deletions = [];
|
|
9
|
+
const outcomes = [];
|
|
10
|
+
const keyOf = (imageId) => imageId in images.images ? imageId : Object.keys(images.images).find((key) => images.images[key].id === imageId);
|
|
11
|
+
const notFound = (imageId) => ({ ok: false, code: "not_found", error: `No media with imageId "${imageId}" in the site's media library.` });
|
|
12
|
+
for (const op of ops) {
|
|
13
|
+
switch (op.op) {
|
|
14
|
+
case "addImage": {
|
|
15
|
+
const key = keyOf(op.entry.id);
|
|
16
|
+
if (key === void 0) {
|
|
17
|
+
images.images[op.entry.id] = op.entry;
|
|
18
|
+
uploads.push({ item: { id: op.entry.id, folder: op.entry.folder }, blobs: op.blobs });
|
|
19
|
+
outcomes.push("added");
|
|
20
|
+
} else {
|
|
21
|
+
if (op.alt !== void 0) images.images[key] = { ...images.images[key], alt: op.alt };
|
|
22
|
+
outcomes.push("existed");
|
|
23
|
+
}
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
case "setImageAlt": {
|
|
27
|
+
const key = keyOf(op.imageId);
|
|
28
|
+
if (key === void 0) return notFound(op.imageId);
|
|
29
|
+
images.images[key] = { ...images.images[key], alt: op.alt };
|
|
30
|
+
outcomes.push("updated");
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
case "deleteImage": {
|
|
34
|
+
const key = keyOf(op.imageId);
|
|
35
|
+
if (key === void 0) return notFound(op.imageId);
|
|
36
|
+
deletions.push({ id: key, folder: images.images[key].folder });
|
|
37
|
+
delete images.images[key];
|
|
38
|
+
outcomes.push("deleted");
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
case "putDocument": {
|
|
42
|
+
documents ??= { ...manifests.documents };
|
|
43
|
+
const existing = documents[op.documentId];
|
|
44
|
+
if (existing) {
|
|
45
|
+
documents[op.documentId] = { ...existing, filename: op.entry.filename };
|
|
46
|
+
outcomes.push(existing.filename === op.entry.filename ? "existed" : "updated");
|
|
47
|
+
} else {
|
|
48
|
+
documents[op.documentId] = op.entry;
|
|
49
|
+
if (op.blob) uploads.push({ item: { id: op.documentId, folder: op.blob.path.split("/")[2] ?? "" }, blobs: [op.blob] });
|
|
50
|
+
outcomes.push("added");
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return { ok: true, images, documents, uploads, deletions, outcomes };
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
applyMediaOps
|
|
60
|
+
};
|
package/dist/lib/nav-tree.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { NavEntry, NavGroupEntry } from "../schemas/nav";
|
|
2
2
|
import type { Page, SiteIndex } from "../schemas/site-config";
|
|
3
|
+
import { type SidecarDiagnostic } from "./sidecar-diagnostics";
|
|
3
4
|
/**
|
|
4
5
|
* Repair an authored nav against the current page set.
|
|
5
6
|
*
|
|
@@ -18,6 +19,11 @@ import type { Page, SiteIndex } from "../schemas/site-config";
|
|
|
18
19
|
* prior state and defeat identity-based re-render checks.
|
|
19
20
|
*/
|
|
20
21
|
export declare function reconcileNav(entries: NavEntry[], pages: Page[]): NavEntry[];
|
|
22
|
+
/** reconcileNav plus what the repair changed — what a validator reports. */
|
|
23
|
+
export declare function reconcileNavReport(entries: NavEntry[], pages: Page[]): {
|
|
24
|
+
entries: NavEntry[];
|
|
25
|
+
diagnostics: SidecarDiagnostic[];
|
|
26
|
+
};
|
|
21
27
|
/**
|
|
22
28
|
* The ONLY sanctioned way to read the nav. Always reconciles, so callers never
|
|
23
29
|
* have to reason about whether index.nav is present, stale, or authored by an
|
|
@@ -60,4 +66,5 @@ export declare function deleteGroup(index: SiteIndex, groupId: string): SiteInde
|
|
|
60
66
|
* page are all the same operation.
|
|
61
67
|
*/
|
|
62
68
|
export declare function moveNavEntry(index: SiteIndex, from: NavLocation, to: NavLocation): SiteIndex;
|
|
69
|
+
export declare function describeNavMove(prevIndex: SiteIndex, nextIndex: SiteIndex, from: NavLocation): string | null;
|
|
63
70
|
//# sourceMappingURL=nav-tree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-tree.d.ts","sourceRoot":"","sources":["../../src/lib/nav-tree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"nav-tree.d.ts","sourceRoot":"","sources":["../../src/lib/nav-tree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,wBAAwB,CA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AAA;CAAE,CAAC;AAMrB,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAKrE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAIvF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,GAAG,SAAS,CAI5G;AAED,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAUxE;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,GAAG,SAAS,CAgC5F;AAqBD,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAkD5G"}
|
package/dist/lib/nav.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { LoadedSection } from "./loader";
|
|
2
2
|
import { type SectionRegistry } from "./registry";
|
|
3
3
|
import type { SiteIndex } from "../schemas/site-config";
|
|
4
|
+
import type { Section } from "../schemas/sections";
|
|
4
5
|
import type { SiteDocument } from "./documents";
|
|
6
|
+
import { type ReferenceQuery } from "./references";
|
|
5
7
|
export interface NavItem {
|
|
6
8
|
href: string;
|
|
7
9
|
label: string;
|
|
@@ -9,7 +11,43 @@ export interface NavItem {
|
|
|
9
11
|
children: NavItem[];
|
|
10
12
|
}
|
|
11
13
|
export declare function toSectionId(text: string): string;
|
|
14
|
+
export type SummaryNavLevel = "off" | "heading" | "subheading";
|
|
12
15
|
export declare function generateNavLinks(sections: LoadedSection[], registry?: SectionRegistry): NavItem[];
|
|
16
|
+
export interface SummaryNavAnchor {
|
|
17
|
+
anchor: string;
|
|
18
|
+
/** False for a Subheading with no Link Heading above it: it renders its
|
|
19
|
+
* anchor but is dropped from the nav, so the editor hints about it. */
|
|
20
|
+
inNav: boolean;
|
|
21
|
+
}
|
|
22
|
+
/** Per summary section id (nav on, label set): the anchor it renders and
|
|
23
|
+
* whether it made it into the nav. Same derivation generateNavLinks uses. */
|
|
24
|
+
export declare function summaryNavAnchors(sections: LoadedSection[], registry?: SectionRegistry): Record<string, SummaryNavAnchor>;
|
|
25
|
+
/**
|
|
26
|
+
* Render-only copy of the page's sections with `navAnchor` stamped on every
|
|
27
|
+
* section whose rendered anchor it cannot derive alone — nav-bearing summaries
|
|
28
|
+
* and everything a Reference pulled in (container children included) — for
|
|
29
|
+
* renderers that can't share React context with the page: the SSR viewer
|
|
30
|
+
* renders each section as its own React tree. Never written back: the editor
|
|
31
|
+
* reads summary anchors from SummaryAnchorsContext instead, so stored content
|
|
32
|
+
* stays clean.
|
|
33
|
+
*
|
|
34
|
+
* `navAnchor` is not part of any section schema: it survives only because the
|
|
35
|
+
* viewer's later passes (media resolve, sanitizeLoadedSections) spread sections.
|
|
36
|
+
* A Zod re-parse after this point would strip it and leave the section without
|
|
37
|
+
* the id its nav entry links to — stamp after any parse, never before.
|
|
38
|
+
*/
|
|
39
|
+
export declare function withNavAnchors(sections: LoadedSection[], registry?: SectionRegistry): LoadedSection[];
|
|
40
|
+
/**
|
|
41
|
+
* Every copy the editor renders for each Reference on the page, keyed by
|
|
42
|
+
* Reference id then source id, with anchors stamped over the WHOLE page — so
|
|
43
|
+
* the editor nav (built from expandReferences) links to exactly these ids, and
|
|
44
|
+
* two References showing one section never share a DOM id. Copies the
|
|
45
|
+
* published site drops (drafts, archived pages) claim after the rest, so a
|
|
46
|
+
* greyed copy can't take an anchor a published one would have.
|
|
47
|
+
* Lives here rather than in references.ts because it needs withNavAnchors, and
|
|
48
|
+
* references.ts importing nav.ts would cycle.
|
|
49
|
+
*/
|
|
50
|
+
export declare function pageReferenceCopies(pageSections: LoadedSection[], opts: Omit<ReferenceQuery, "referenceId" | "content">): Record<string, Record<string, Section>>;
|
|
13
51
|
export interface PageNavItem {
|
|
14
52
|
id: string;
|
|
15
53
|
title: string;
|
package/dist/lib/nav.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav.d.ts","sourceRoot":"","sources":["../../src/lib/nav.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAI9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"nav.d.ts","sourceRoot":"","sources":["../../src/lib/nav.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAI9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAA2E,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE5H,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAchD;AA6BD,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,SAAS,GAAG,YAAY,CAAC;AA2H/D,wBAAgB,gBAAgB,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AE,MAAM,CAAC;CACb;AAED;iFACiF;AACjF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,WAAW,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB;AAED;2CAC2C;AAC3C,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,WAAW,CAAC,GAAG,YAAY,GAAG,eAAe,CAAC;AAE7F,MAAM,WAAW,OAAO;IACtB,+DAA+D;IAC/D,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,iFAAiF;IACjF,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB;AAMD,wBAAgB,eAAe,CAAC,IAAI,EAAE;IACpC,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B;;;;;2BAKuB;IACvB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,GAAG,OAAO,CAkEV"}
|
package/dist/lib/pages.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { Page, SiteIndex, SectionMeta } from "../schemas/site-config";
|
|
2
2
|
import { type DocumentOptions } from "../document/engine/settings";
|
|
3
|
+
import { slugifyPageSlug } from "./slug";
|
|
3
4
|
/**
|
|
4
5
|
* Display fallback for blank page titles. addPage creates pages with an empty
|
|
5
6
|
* title (the editor prompts for one), and closing the modal can leave it blank
|
|
6
7
|
* — every UI that renders a page title must go through this.
|
|
7
8
|
*/
|
|
8
9
|
export declare function pageDisplayTitle(title: string): string;
|
|
9
|
-
export
|
|
10
|
+
export { slugifyPageSlug };
|
|
10
11
|
export declare function uniquePageSlug(base: string, existing: string[]): string;
|
|
11
12
|
export declare function pageById(index: SiteIndex, id: string): Page | undefined;
|
|
12
13
|
export declare function homePage(index: SiteIndex): Page;
|
package/dist/lib/pages.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../src/lib/pages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAK3E,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../src/lib/pages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAK3E,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE1F,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAQvE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAEvE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAE/C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAI3E;AAED,wBAAgB,cA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,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CAOrF;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACd,SAAS,CAWX;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAQzG;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAAE,EACpB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACd,SAAS,CAqBX;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,SAAS,EAChB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,KAAK,GAAG,QAAQ,GACzB,SAAS,CAuBX"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class PlatformBrokerError extends Error {
|
|
10
10
|
readonly status: number | null;
|
|
11
|
-
constructor(status: number | null, message: string);
|
|
11
|
+
constructor(status: number | null, message: string, options?: ErrorOptions);
|
|
12
12
|
}
|
|
13
13
|
/** True when this runtime should broker privileged ops through the platform. */
|
|
14
14
|
export declare function isPlatformMode(): boolean;
|
|
@@ -16,7 +16,9 @@ export declare function isPlatformMode(): boolean;
|
|
|
16
16
|
* Call a platform broker endpoint scoped to this site. The platform authorizes
|
|
17
17
|
* the op against the site that owns PLATFORM_API_KEY — the client never names
|
|
18
18
|
* another tenant. Retries network/5xx (transient); 4xx is a real auth/config
|
|
19
|
-
* error and is surfaced immediately.
|
|
19
|
+
* error and is surfaced immediately. Writes are retried only on a gateway
|
|
20
|
+
* status: an unconfirmed write (timeout, dropped connection, 500) may already
|
|
21
|
+
* have landed. Mirrors fetchInstallationToken().
|
|
20
22
|
*/
|
|
21
23
|
export declare function platformBroker<T = unknown>(path: string, opts?: {
|
|
22
24
|
method?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-broker.d.ts","sourceRoot":"","sources":["../../src/lib/platform-broker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"platform-broker.d.ts","sourceRoot":"","sources":["../../src/lib/platform-broker.ts"],"names":[],"mappings":"AAaA;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;aAChB,MAAM,EAAE,MAAM,GAAG,IAAI;gBAArB,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAI3F;AAED,gFAAgF;AAChF,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAC,CAAC,GAAG,OAAO,EAC9C,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAO,GAC7E,OAAO,CAAC,CAAC,CAAC,CAuDZ;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CA8BrC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
env
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BQ5TZZUE.js";
|
|
4
4
|
import "../chunk-JSBRDJBE.js";
|
|
5
5
|
|
|
6
6
|
// src/lib/platform-broker.ts
|
|
7
7
|
var ATTEMPTS = 3;
|
|
8
8
|
var RETRY_BASE_MS = 150;
|
|
9
|
+
var REQUEST_TIMEOUT_MS = 1e4;
|
|
10
|
+
var GATEWAY_STATUSES = /* @__PURE__ */ new Set([502, 503, 504]);
|
|
9
11
|
function sleep(ms) {
|
|
10
12
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
11
13
|
}
|
|
12
14
|
var PlatformBrokerError = class extends Error {
|
|
13
|
-
constructor(status, message) {
|
|
14
|
-
super(message);
|
|
15
|
+
constructor(status, message, options) {
|
|
16
|
+
super(message, options);
|
|
15
17
|
this.status = status;
|
|
16
18
|
this.name = "PlatformBrokerError";
|
|
17
19
|
}
|
|
@@ -33,34 +35,34 @@ async function platformBroker(path, opts = {}) {
|
|
|
33
35
|
headers["Content-Type"] = "application/json";
|
|
34
36
|
serializedBody = JSON.stringify(opts.body);
|
|
35
37
|
}
|
|
36
|
-
let lastError;
|
|
37
38
|
for (let attempt = 0; attempt < ATTEMPTS; attempt++) {
|
|
38
39
|
const isLast = attempt === ATTEMPTS - 1;
|
|
39
40
|
let res;
|
|
40
41
|
try {
|
|
41
|
-
res = await fetch(url, { method, headers, body: serializedBody });
|
|
42
|
+
res = await fetch(url, { method, headers, body: serializedBody, signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS) });
|
|
42
43
|
} catch (err) {
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
if (method !== "GET" || isLast) {
|
|
45
|
+
throw new PlatformBrokerError(null, method === "GET" ? "Platform request failed \u2014 check your connection and try again." : "Platform request wasn't confirmed \u2014 check its status before trying again.", { cause: err });
|
|
46
|
+
}
|
|
45
47
|
await sleep(RETRY_BASE_MS * 2 ** attempt);
|
|
46
48
|
continue;
|
|
47
49
|
}
|
|
48
50
|
if (res.ok) {
|
|
49
51
|
if (res.status === 204) return void 0;
|
|
50
52
|
try {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
const text = await res.text();
|
|
54
|
+
return text ? JSON.parse(text) : void 0;
|
|
55
|
+
} catch (err) {
|
|
56
|
+
throw new PlatformBrokerError(null, method === "GET" ? "Platform response couldn't be read \u2014 try again." : "Platform response couldn't be read \u2014 check the operation's status before trying again.", { cause: err });
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
|
-
if (res.status >= 500
|
|
57
|
-
lastError = new PlatformBrokerError(res.status, `Platform broker error (${res.status})`);
|
|
59
|
+
if (!isLast && (method === "GET" ? res.status >= 500 : GATEWAY_STATUSES.has(res.status))) {
|
|
58
60
|
await sleep(RETRY_BASE_MS * 2 ** attempt);
|
|
59
61
|
continue;
|
|
60
62
|
}
|
|
61
63
|
throw new PlatformBrokerError(res.status, `Platform broker error (${res.status}): ${await res.text()}`);
|
|
62
64
|
}
|
|
63
|
-
throw
|
|
65
|
+
throw new PlatformBrokerError(null, "Platform broker unreachable");
|
|
64
66
|
}
|
|
65
67
|
async function platformBrokerStream(path, body) {
|
|
66
68
|
const apiUrl = env("PLATFORM_API_URL");
|
|
@@ -70,17 +72,23 @@ async function platformBrokerStream(path, body) {
|
|
|
70
72
|
let lastError;
|
|
71
73
|
for (let attempt = 0; attempt < ATTEMPTS; attempt++) {
|
|
72
74
|
let res;
|
|
75
|
+
const controller = new AbortController();
|
|
76
|
+
const timer = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS);
|
|
73
77
|
try {
|
|
74
78
|
res = await fetch(url, {
|
|
79
|
+
signal: controller.signal,
|
|
75
80
|
method: "POST",
|
|
76
81
|
headers: { "x-api-key": apiKey, "x-site-id": siteId, "Content-Type": "application/json" },
|
|
77
82
|
body: JSON.stringify(body)
|
|
78
83
|
});
|
|
79
84
|
} catch (err) {
|
|
80
85
|
lastError = err;
|
|
86
|
+
if (controller.signal.aborted) throw new PlatformBrokerError(null, "Chat connection timed out \u2014 try again.");
|
|
81
87
|
if (attempt === ATTEMPTS - 1) throw err;
|
|
82
88
|
await sleep(RETRY_BASE_MS * 2 ** attempt);
|
|
83
89
|
continue;
|
|
90
|
+
} finally {
|
|
91
|
+
clearTimeout(timer);
|
|
84
92
|
}
|
|
85
93
|
if (!res.ok || !res.body) throw new Error(`Platform broker error (${res.status})`);
|
|
86
94
|
return res.body;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-type.d.ts","sourceRoot":"","sources":["../../src/lib/reference-type.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,EAAG,WAAoB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SiteIndex } from "../schemas/site-config";
|
|
2
|
+
/** What one Reference names that it can never show. */
|
|
3
|
+
export interface ReferenceProblem {
|
|
4
|
+
referenceId: string;
|
|
5
|
+
unknownTagIds: string[];
|
|
6
|
+
/** Not a top-level section on any page: deleted, or a container's child. */
|
|
7
|
+
unplacedSectionIds: string[];
|
|
8
|
+
/** Picks that are themselves References, which are never shown. */
|
|
9
|
+
referencePickIds: string[];
|
|
10
|
+
picksItself: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The dangling-id check for Reference sections — what save_sections rejects on,
|
|
14
|
+
* and what validate_site and `authoring validate` warn about.
|
|
15
|
+
*
|
|
16
|
+
* Deliberately NOT part of applyContentWrite or the schema: on the viewer and in
|
|
17
|
+
* the editor a dangling pick or a deleted tag is ordinary (someone deleted the
|
|
18
|
+
* source), so it drops silently and an editor save must keep succeeding. This
|
|
19
|
+
* is for whoever just chose the ids, where a bad one is a mistake.
|
|
20
|
+
*
|
|
21
|
+
* `sections` are full section bodies; anything that is not a Reference (by body
|
|
22
|
+
* type or index type) is ignored. `tagIds` null means the registry could not
|
|
23
|
+
* be read whole, so tag ids go unchecked rather than being misreported.
|
|
24
|
+
*/
|
|
25
|
+
export declare function referenceProblems(sections: readonly {
|
|
26
|
+
id: string;
|
|
27
|
+
content: unknown;
|
|
28
|
+
}[], index: Pick<SiteIndex, "pages" | "sections">, tagIds: ReadonlySet<string> | null): ReferenceProblem[];
|
|
29
|
+
/** One line per Reference, naming every bad id. */
|
|
30
|
+
export declare function describeReferenceProblem(problem: ReferenceProblem): string;
|
|
31
|
+
//# sourceMappingURL=reference-validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-validation.d.ts","sourceRoot":"","sources":["../../src/lib/reference-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,uDAAuD;AACvD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,4EAA4E;IAC5E,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,mEAAmE;IACnE,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;CACtB;AAKD;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,EAAE,EACrD,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,UAAU,CAAC,EAC5C,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,GACjC,gBAAgB,EAAE,CAoBpB;AAED,mDAAmD;AACnD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAW1E"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
REFERENCE_TYPE
|
|
3
|
+
} from "../chunk-5GFACGSN.js";
|
|
4
|
+
import "../chunk-JSBRDJBE.js";
|
|
5
|
+
|
|
6
|
+
// src/lib/reference-validation.ts
|
|
7
|
+
var strings = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "string") : [];
|
|
8
|
+
function referenceProblems(sections, index, tagIds) {
|
|
9
|
+
const onPage = new Set(index.pages.flatMap((p) => p.order));
|
|
10
|
+
const problems = [];
|
|
11
|
+
for (const { id, content } of sections) {
|
|
12
|
+
const body = content;
|
|
13
|
+
if (body?.type !== REFERENCE_TYPE && index.sections[id]?.type !== REFERENCE_TYPE) continue;
|
|
14
|
+
const picks = strings(body?.content?.sectionIds).filter((pick) => pick !== id);
|
|
15
|
+
const problem = {
|
|
16
|
+
referenceId: id,
|
|
17
|
+
unknownTagIds: tagIds ? strings(body?.content?.tagIds).filter((tag) => !tagIds.has(tag)) : [],
|
|
18
|
+
unplacedSectionIds: picks.filter((pick) => !onPage.has(pick)),
|
|
19
|
+
referencePickIds: picks.filter((pick) => onPage.has(pick) && index.sections[pick]?.type === REFERENCE_TYPE),
|
|
20
|
+
picksItself: strings(body?.content?.sectionIds).includes(id)
|
|
21
|
+
};
|
|
22
|
+
if (problem.unknownTagIds.length || problem.unplacedSectionIds.length || problem.referencePickIds.length || problem.picksItself) problems.push(problem);
|
|
23
|
+
}
|
|
24
|
+
return problems;
|
|
25
|
+
}
|
|
26
|
+
function describeReferenceProblem(problem) {
|
|
27
|
+
const list = (ids) => ids.map((id) => `"${id}"`).join(", ");
|
|
28
|
+
const issues = [
|
|
29
|
+
...problem.unknownTagIds.length ? [`tagIds ${list(problem.unknownTagIds)} are not tags on this site`] : [],
|
|
30
|
+
...problem.unplacedSectionIds.length ? [`sectionIds ${list(problem.unplacedSectionIds)} are not top-level sections on any page (a container's child cannot be picked \u2014 pick the container)`] : [],
|
|
31
|
+
...problem.referencePickIds.length ? [`sectionIds ${list(problem.referencePickIds)} are References, which a Reference never shows`] : [],
|
|
32
|
+
...problem.picksItself ? ["sectionIds includes the Reference itself"] : []
|
|
33
|
+
];
|
|
34
|
+
return `Reference "${problem.referenceId}": ${issues.join("; ")}.`;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
describeReferenceProblem,
|
|
38
|
+
referenceProblems
|
|
39
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { LoadedSection } from "./loader";
|
|
2
|
+
import type { Page, SiteIndex } from "../schemas/site-config";
|
|
3
|
+
import { REFERENCE_TYPE } from "./reference-type";
|
|
4
|
+
export { REFERENCE_TYPE };
|
|
5
|
+
export interface ReferenceContent {
|
|
6
|
+
tagIds: string[];
|
|
7
|
+
sectionIds: string[];
|
|
8
|
+
}
|
|
9
|
+
/** Why the published site leaves a referenced section out entirely. */
|
|
10
|
+
export type ReferenceExclusion =
|
|
11
|
+
/** Deleted, its file failed to load, or not a top-level section. */
|
|
12
|
+
"missing"
|
|
13
|
+
/** Another Reference — never nested. */
|
|
14
|
+
| "reference" | "archived-page"
|
|
15
|
+
/** A draft or archived section. */
|
|
16
|
+
| "not-live";
|
|
17
|
+
/** What a Reference is resolved against. */
|
|
18
|
+
export interface ReferenceQuery {
|
|
19
|
+
referenceId: string;
|
|
20
|
+
content: ReferenceContent;
|
|
21
|
+
index: SiteIndex;
|
|
22
|
+
allSections: LoadedSection[];
|
|
23
|
+
}
|
|
24
|
+
export interface ReferenceItem {
|
|
25
|
+
sectionId: string;
|
|
26
|
+
/** The page the section sits on; null when it is on none (deleted, or an
|
|
27
|
+
* id that was never a top-level section). */
|
|
28
|
+
page: Page | null;
|
|
29
|
+
source: LoadedSection | null;
|
|
30
|
+
excluded: ReferenceExclusion | null;
|
|
31
|
+
/** Of the audiences asked about, those who can't see it on its own page.
|
|
32
|
+
* Always empty for an excluded item. */
|
|
33
|
+
hiddenFrom: string[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Everything a Reference points at, as the editor lists it: in site order,
|
|
37
|
+
* with what the viewer would silently drop kept and marked `excluded`, and
|
|
38
|
+
* with `hiddenFrom` naming which of `audiences` its source page and section
|
|
39
|
+
* keep it from. Picks that are on no page trail, in stored order. Only the
|
|
40
|
+
* Reference itself is left out. resolveReference is this list filtered, so
|
|
41
|
+
* the two can never disagree about what a Reference shows.
|
|
42
|
+
*/
|
|
43
|
+
export declare function referenceItems(opts: ReferenceQuery & {
|
|
44
|
+
audiences: string[];
|
|
45
|
+
}): ReferenceItem[];
|
|
46
|
+
/**
|
|
47
|
+
* The sections a Reference shows: the union of its tagged and picked sections,
|
|
48
|
+
* resolved against the content it is given (the published content, on every
|
|
49
|
+
* viewer path) in site order — pages in nav order, then position on the page.
|
|
50
|
+
*
|
|
51
|
+
* A Reference stores pointers rather than copies because the index puts each
|
|
52
|
+
* section id on exactly one page. Resolving them is where every exposure rule
|
|
53
|
+
* lives, so a Reference can never widen what a viewer sees:
|
|
54
|
+
* - an item must pass its SOURCE page's access and its source section's access
|
|
55
|
+
* for `audience` (the viewer has already passed the referencing page's and
|
|
56
|
+
* the Reference's own, so the result is the intersection of all four);
|
|
57
|
+
* - only live sections on live pages — hidden (not-in-nav) pages count,
|
|
58
|
+
* archived ones do not;
|
|
59
|
+
* - References in the source set are skipped, the Reference itself included,
|
|
60
|
+
* so there are no cycles. Containers come whole, children and all.
|
|
61
|
+
* Dangling picks and deleted tags drop silently. Items are the source entries
|
|
62
|
+
* marked with `referencedBy`, which is what gives their anchors the
|
|
63
|
+
* `-<reference id>` suffix (lib/nav.ts).
|
|
64
|
+
*/
|
|
65
|
+
export declare function resolveReference(opts: ReferenceQuery & {
|
|
66
|
+
audience: string | null;
|
|
67
|
+
}): LoadedSection[];
|
|
68
|
+
/** A page's sections with each Reference replaced, in place, by the copies it
|
|
69
|
+
* shows `audience` — what the viewer renders and what the page nav is built
|
|
70
|
+
* from, on both the viewer and the editor. */
|
|
71
|
+
export declare function expandReferences(pageSections: LoadedSection[], opts: Omit<ReferenceQuery, "referenceId" | "content"> & {
|
|
72
|
+
audience: string | null;
|
|
73
|
+
}): LoadedSection[];
|
|
74
|
+
//# sourceMappingURL=references.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../src/lib/references.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC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AG,IAAI,CAAA;CAAE,GAClF,aAAa,EAAE,CAMjB"}
|
package/dist/lib/registry.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import type { ZodType, z } from "zod";
|
|
|
2
2
|
import type { ComponentType, ReactNode } from "react";
|
|
3
3
|
import type { Audience } from "../schemas/auth";
|
|
4
4
|
import type { LinkValue } from "../schemas/link";
|
|
5
|
+
import type { ImageBackground } from "../schemas/shared";
|
|
5
6
|
import type { SectionContent } from "../schemas/sections";
|
|
7
|
+
import type { TagEntry } from "../schemas/tags";
|
|
6
8
|
import type { VideoSource } from "../components/sections/Video/VideoBlock";
|
|
7
9
|
export type SettingsFieldDef = {
|
|
8
10
|
type: "text";
|
|
@@ -65,6 +67,15 @@ export type SettingsFieldDef = {
|
|
|
65
67
|
documentId: string;
|
|
66
68
|
};
|
|
67
69
|
target?: "content" | "options";
|
|
70
|
+
} | {
|
|
71
|
+
/** Per-placement backdrop behind an image (ImageBackgroundField). Leave
|
|
72
|
+
* `default` unset: an absent value is "None" and must stay absent on save. */
|
|
73
|
+
type: "image-background";
|
|
74
|
+
label: string;
|
|
75
|
+
default?: ImageBackground;
|
|
76
|
+
target?: "content" | "options";
|
|
77
|
+
/** Hide the field for the current values (e.g. when the ref is a video). */
|
|
78
|
+
hidden?: (values: Record<string, unknown>) => boolean;
|
|
68
79
|
};
|
|
69
80
|
export type SettingsSchema = Record<string, SettingsFieldDef>;
|
|
70
81
|
export type Thumbnail = {
|
|
@@ -92,6 +103,19 @@ export interface SectionProps<T = unknown> {
|
|
|
92
103
|
* is dragged into another section, leaving it empty. */
|
|
93
104
|
onDelete?: () => void;
|
|
94
105
|
}
|
|
106
|
+
/** The site's tag registry and its edits, as the editor shell hands them to
|
|
107
|
+
* the canvas and Site settings. */
|
|
108
|
+
export interface SiteTagging {
|
|
109
|
+
/** Already reconciled (siteTags). */
|
|
110
|
+
tags: TagEntry[];
|
|
111
|
+
/** False when the registry was never loaded or loaded degraded: a save would
|
|
112
|
+
* wholesale-replace tags.json with what this session couldn't fully read. */
|
|
113
|
+
editable: boolean;
|
|
114
|
+
onCreate: (label: string, sectionId?: string) => void;
|
|
115
|
+
onRename: (tagId: string, label: string) => void;
|
|
116
|
+
onDelete: (tagId: string) => void;
|
|
117
|
+
onToggle: (sectionId: string, tagId: string, tagged: boolean) => void;
|
|
118
|
+
}
|
|
95
119
|
export interface WrapperProps {
|
|
96
120
|
sectionId: string;
|
|
97
121
|
sectionType: string;
|
|
@@ -99,6 +123,8 @@ export interface WrapperProps {
|
|
|
99
123
|
dirty?: boolean;
|
|
100
124
|
index: number;
|
|
101
125
|
isLast: boolean;
|
|
126
|
+
/** Total sections on the page — Move up/down's "N of M" and end-disabling. */
|
|
127
|
+
sectionCount?: number;
|
|
102
128
|
containerId: string;
|
|
103
129
|
isContainerBlock: boolean;
|
|
104
130
|
definition: SectionDefinition;
|
|
@@ -106,6 +132,15 @@ export interface WrapperProps {
|
|
|
106
132
|
audiences: Audience[];
|
|
107
133
|
access: string[];
|
|
108
134
|
onAccessChange?: (access: string[]) => void;
|
|
135
|
+
/** Section tags (the tags.json sidecar). Only root sections get a
|
|
136
|
+
* SectionWrapper — container children are not index sections and cannot be
|
|
137
|
+
* tagged. Absent handlers make the Tags pill read-only. */
|
|
138
|
+
tagging: {
|
|
139
|
+
tags: TagEntry[];
|
|
140
|
+
assignedIds: string[];
|
|
141
|
+
onToggle?: (tagId: string, tagged: boolean) => void;
|
|
142
|
+
onCreate?: (label: string) => void;
|
|
143
|
+
};
|
|
109
144
|
onStatusChange?: (status: "draft" | "live" | "archived") => void;
|
|
110
145
|
onSectionChange?: (options: Record<string, unknown>) => void;
|
|
111
146
|
onReorder?: (fromIndex: number, toIndex: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/lib/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACtC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AAG,SAAS,CAE3D;AAED,wBAAgB,cAAc,IAAI,iBAAiB,EAAE,CAEpD;AAED,wBAAgB,aAAa,IAAI,OAAO,EAAE,CAEzC;AAED,wBAAgB,aAAa,IAAI,IAAI,CAEpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-redirect.d.ts","sourceRoot":"","sources":["../../src/lib/safe-redirect.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG9E"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a Sidecar reconcile changed. Reconcile repairs silently on every read, so
|
|
3
|
+
* these are only ever warnings: a validator reports them, nothing rejects on them.
|
|
4
|
+
* - dangling: ids of pages/sections the index does not have, dropped
|
|
5
|
+
* - duplicate-id: a group/tag id used again, later uses dropped
|
|
6
|
+
* - duplicate-member: a page placed twice / a section tagged twice, later placements dropped
|
|
7
|
+
* - unlisted: pages missing from the nav, appended to its end (nav only)
|
|
8
|
+
*
|
|
9
|
+
* Its own leaf so nav-tree and tags can report without importing the Sidecar
|
|
10
|
+
* module that imports them.
|
|
11
|
+
*/
|
|
12
|
+
export type SidecarDiagnostic = {
|
|
13
|
+
code: "dangling" | "duplicate-id" | "duplicate-member" | "unlisted";
|
|
14
|
+
ids: string[];
|
|
15
|
+
};
|
|
16
|
+
export declare function diagnosticsCollector(): {
|
|
17
|
+
add(code: SidecarDiagnostic["code"], id: string): void;
|
|
18
|
+
list(): SidecarDiagnostic[];
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=sidecar-diagnostics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidecar-diagnostics.d.ts","sourceRoot":"","sources":["../../src/lib/sidecar-diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,UAAU,GAAG,cAAc,GAAG,kBAAkB,GAAG,UAAU,CAAC;IACpE,GAAG,EAAE,MAAM,EAAE,CAAC;CACf,CAAC;AAEF,wBAAgB,oBAAoB;cAGtB,iBAAiB,CAAC,MAAM,CAAC,MAAM,MAAM;YAKvC,iBAAiB,EAAE;EAI9B"}
|