@phtngyn/cms 0.2.0-beta.7 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -10
- package/README.md +59 -401
- package/drizzle/20261003215543_initial/migration.sql +251 -0
- package/drizzle/20261003215543_initial/snapshot.json +1941 -0
- package/package.json +75 -71
- package/src/Authoring.d.ts +41 -49
- package/src/Authoring.js +1 -1
- package/src/Blocks-BrxSemnd.js +40 -0
- package/src/Client.d.ts +8186 -0
- package/src/Client.js +41 -0
- package/src/Collections.d.ts +142 -0
- package/src/Collections.js +142 -0
- package/src/Config-CMiwciub.js +130 -0
- package/src/Config.d.ts +172 -0
- package/src/Config.js +2 -0
- package/src/Configuration-Dk2k3OIc.js +73 -0
- package/src/DataTransfer-BmECvPHB.js +488 -0
- package/src/Database-DSsNCGft.d.ts +3 -0
- package/src/Delivery.d.ts +28 -0
- package/src/Delivery.js +7 -0
- package/src/Document-CKXMSEf1.js +293 -0
- package/src/Document-TgwYKJZM.d.ts +220 -0
- package/src/DocumentRenderer-Wz2xaNyf.js +394 -0
- package/src/EditorSchema-wrDv-id6.js +296 -0
- package/src/Fields-BegSgYhj.d.ts +166 -0
- package/src/Fields-ioGaMEh9.js +130 -0
- package/src/Forms-BuKAXQxr.d.ts +203 -0
- package/src/Forms.d.ts +48 -11
- package/src/Forms.js +342 -7
- package/src/I18n-Ckf9h0rC.js +154 -0
- package/src/I18n.d.ts +45 -2
- package/src/I18n.js +2 -1
- package/src/Image-CJWPLnhP.js +110 -0
- package/src/Links-CJYyy7rC.js +28 -0
- package/src/Links-Dx1yOni8.d.ts +28 -0
- package/src/Locales-Ch7a5xuA.js +67 -0
- package/src/Locales-jwbmJaOp.d.ts +43 -0
- package/src/Locales.d.ts +3 -0
- package/src/Locales.js +3 -0
- package/src/Media-BQ0uL4w7.d.ts +15 -0
- package/src/Media-DSyvd14o.js +87 -0
- package/src/Module.d.ts +2 -10
- package/src/Module.js +1039 -162
- package/src/Operations.d.ts +57 -0
- package/src/Operations.js +263 -0
- package/src/People-DvNZauWw.js +69 -0
- package/src/PreviewFocus-C_EelZO5.js +104 -0
- package/src/Query-C0kGJF5_.d.ts +261 -0
- package/src/RevisionPreview-IVwbJ9Wy.js +133 -0
- package/src/Routes-BaZvm2LE.js +126 -0
- package/src/Routes-DM1rRp3r.d.ts +15 -0
- package/src/S3MediaObjects-y-WacEi9.js +193 -0
- package/src/Seo-BcpqxoAs.d.ts +57 -0
- package/src/Seo-CjNUtUkj.js +254 -0
- package/src/StudioApi-CXLwwocX.js +833 -0
- package/src/StudioErrors-T5zLGQ1M.js +117 -0
- package/src/StudioErrors-kq-E44lQ.d.ts +104 -0
- package/src/StudioServer.d.ts +20 -0
- package/src/StudioServer.js +34 -0
- package/src/answers-DcTg0Xv2.js +41 -0
- package/src/cli.js +681 -187
- package/src/contracts-rprW3ZOB.js +130 -0
- package/src/forms-3xuf0Ym7.d.ts +206 -0
- package/src/localeConfiguration-BPbkLi7-.js +32 -0
- package/src/localeContext-DhF3SPvM.js +59 -0
- package/src/locales-6OD4XGIZ.js +12 -0
- package/src/nuxtDelivery-BYX_Cddb.js +466 -0
- package/src/plugin-DTYuDaQu.js +7171 -0
- package/src/previewContext-dt3ZUh-w.js +4 -0
- package/src/previewRegions-CXjk5cbP.js +145 -0
- package/src/previewSource-fb-q3ESM.js +144 -0
- package/src/rendering-D9LVeEKX.js +47 -0
- package/src/rolldown-runtime-8H4AJuhK.js +14 -0
- package/src/runtime/CmsImage.js +38 -0
- package/src/runtime/DocumentPage.vue +10 -0
- package/src/runtime/DocumentPageContent.js +48 -0
- package/src/runtime/DocumentRenderer.d.ts +129 -0
- package/src/runtime/DocumentRenderer.js +2 -0
- package/src/runtime/api.js +48 -6
- package/src/runtime/delivery/useCmsDocument.js +2 -0
- package/src/runtime/delivery/useCmsDocumentQuery.js +2 -0
- package/src/runtime/delivery/useCmsDocumentSeo.js +2 -114
- package/src/runtime/delivery/useCmsLocale.js +10 -0
- package/src/runtime/plugin.js +2 -40
- package/src/runtime/preview.css +85 -0
- package/src/runtime/preview.js +277 -0
- package/src/runtime/previewSource.js +82 -0
- package/src/runtime/revisionPrivacy.js +13 -0
- package/src/runtime/studio.js +10 -0
- package/src/runtime/studioIcons.js +36 -0
- package/src/validation-3pggwcnm.js +396 -0
- package/src/validation-DpUwPC8Y.js +224 -0
- package/studio/THIRD-PARTY-LICENSES.md +2406 -0
- package/studio/chunks/AccountPage-DL3DitDM.js +288 -0
- package/studio/chunks/AccountPage-DL3DitDM.js.br +0 -0
- package/studio/chunks/AccountPage-DL3DitDM.js.gz +0 -0
- package/studio/chunks/ActivityPage-CLqVUqTh.js +584 -0
- package/studio/chunks/ActivityPage-CLqVUqTh.js.br +0 -0
- package/studio/chunks/ActivityPage-CLqVUqTh.js.gz +0 -0
- package/studio/chunks/Alert-D0D24z_a.js +335 -0
- package/studio/chunks/Alert-D0D24z_a.js.br +0 -0
- package/studio/chunks/Alert-D0D24z_a.js.gz +0 -0
- package/studio/chunks/Badge-BBFs88TI.js +346 -0
- package/studio/chunks/Badge-BBFs88TI.js.br +0 -0
- package/studio/chunks/Badge-BBFs88TI.js.gz +0 -0
- package/studio/chunks/Button-BT3ztSPx.js +14319 -0
- package/studio/chunks/Button-BT3ztSPx.js.br +0 -0
- package/studio/chunks/Button-BT3ztSPx.js.gz +0 -0
- package/studio/chunks/Collapsible-CKnEYIlp.js +246 -0
- package/studio/chunks/Collapsible-CKnEYIlp.js.br +0 -0
- package/studio/chunks/Collapsible-CKnEYIlp.js.gz +0 -0
- package/studio/chunks/ContentInventory-D7nsFA6U.js +1745 -0
- package/studio/chunks/ContentInventory-D7nsFA6U.js.br +0 -0
- package/studio/chunks/ContentInventory-D7nsFA6U.js.gz +0 -0
- package/studio/chunks/ContentPage-DCxt6BeD.js +18 -0
- package/studio/chunks/ContentPage-DCxt6BeD.js.br +0 -0
- package/studio/chunks/ContentPage-DCxt6BeD.js.gz +0 -0
- package/studio/chunks/DashboardSearch-DjyMjJwF.js +2413 -0
- package/studio/chunks/DashboardSearch-DjyMjJwF.js.br +0 -0
- package/studio/chunks/DashboardSearch-DjyMjJwF.js.gz +0 -0
- package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js +26063 -0
- package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js.br +0 -0
- package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js.gz +0 -0
- package/studio/chunks/DropdownMenu-CA9fB0uZ.js +4400 -0
- package/studio/chunks/DropdownMenu-CA9fB0uZ.js.br +0 -0
- package/studio/chunks/DropdownMenu-CA9fB0uZ.js.gz +0 -0
- package/studio/chunks/EditorPage-D_PAYEE4.js +7799 -0
- package/studio/chunks/EditorPage-D_PAYEE4.js.br +0 -0
- package/studio/chunks/EditorPage-D_PAYEE4.js.gz +0 -0
- package/studio/chunks/FormField-CgM6l2Yn.js +198 -0
- package/studio/chunks/FormField-CgM6l2Yn.js.br +0 -0
- package/studio/chunks/FormField-CgM6l2Yn.js.gz +0 -0
- package/studio/chunks/HelpPage-C-vrFcT_.js +552 -0
- package/studio/chunks/HelpPage-C-vrFcT_.js.br +0 -0
- package/studio/chunks/HelpPage-C-vrFcT_.js.gz +0 -0
- package/studio/chunks/Kbd-Ot7TIhVZ.js +271 -0
- package/studio/chunks/Kbd-Ot7TIhVZ.js.br +0 -0
- package/studio/chunks/Kbd-Ot7TIhVZ.js.gz +0 -0
- package/studio/chunks/MediaFolderDialog-DYu-eu-q.js +101 -0
- package/studio/chunks/MediaFolderDialog-DYu-eu-q.js.br +0 -0
- package/studio/chunks/MediaFolderDialog-DYu-eu-q.js.gz +0 -0
- package/studio/chunks/MediaPage-D-jaWtdl.js +923 -0
- package/studio/chunks/MediaPage-D-jaWtdl.js.br +0 -0
- package/studio/chunks/MediaPage-D-jaWtdl.js.gz +0 -0
- package/studio/chunks/MediaPicker-BZs2wUFz.js +837 -0
- package/studio/chunks/MediaPicker-BZs2wUFz.js.br +0 -0
- package/studio/chunks/MediaPicker-BZs2wUFz.js.gz +0 -0
- package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js +1173 -0
- package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js.br +0 -0
- package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js.gz +0 -0
- package/studio/chunks/Modal-D6hSvxHd.js +265 -0
- package/studio/chunks/Modal-D6hSvxHd.js.br +0 -0
- package/studio/chunks/Modal-D6hSvxHd.js.gz +0 -0
- package/studio/chunks/NewDocumentDialog-C8B6_r3J.js +277 -0
- package/studio/chunks/NewDocumentDialog-C8B6_r3J.js.br +0 -0
- package/studio/chunks/NewDocumentDialog-C8B6_r3J.js.gz +0 -0
- package/studio/chunks/Pagination-D9BSo5H2.js +573 -0
- package/studio/chunks/Pagination-D9BSo5H2.js.br +0 -0
- package/studio/chunks/Pagination-D9BSo5H2.js.gz +0 -0
- package/studio/chunks/PeoplePage-CWIXitBD.js +783 -0
- package/studio/chunks/PeoplePage-CWIXitBD.js.br +0 -0
- package/studio/chunks/PeoplePage-CWIXitBD.js.gz +0 -0
- package/studio/chunks/Popover-B63bkTMS.js +128 -0
- package/studio/chunks/Popover-B63bkTMS.js.br +0 -0
- package/studio/chunks/Popover-B63bkTMS.js.gz +0 -0
- package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js +255 -0
- package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js.br +0 -0
- package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js.gz +0 -0
- package/studio/chunks/Routes-DLYHmulE.js +102 -0
- package/studio/chunks/Routes-DLYHmulE.js.br +0 -0
- package/studio/chunks/Routes-DLYHmulE.js.gz +0 -0
- package/studio/chunks/RovingFocusItem-QZNg-wWF.js +95 -0
- package/studio/chunks/RovingFocusItem-QZNg-wWF.js.br +0 -0
- package/studio/chunks/RovingFocusItem-QZNg-wWF.js.gz +0 -0
- package/studio/chunks/ScheduledPage-C0hqrkr5.js +332 -0
- package/studio/chunks/ScheduledPage-C0hqrkr5.js.br +0 -0
- package/studio/chunks/ScheduledPage-C0hqrkr5.js.gz +0 -0
- package/studio/chunks/Search-BEgCe9Aj.js +14646 -0
- package/studio/chunks/Search-BEgCe9Aj.js.br +0 -0
- package/studio/chunks/Search-BEgCe9Aj.js.gz +0 -0
- package/studio/chunks/Select-B50WZMW-.js +2145 -0
- package/studio/chunks/Select-B50WZMW-.js.br +0 -0
- package/studio/chunks/Select-B50WZMW-.js.gz +0 -0
- package/studio/chunks/SelectMenu-DSweWGMz.js +2109 -0
- package/studio/chunks/SelectMenu-DSweWGMz.js.br +0 -0
- package/studio/chunks/SelectMenu-DSweWGMz.js.gz +0 -0
- package/studio/chunks/SeoPage-CNNxGe4h.js +846 -0
- package/studio/chunks/SeoPage-CNNxGe4h.js.br +0 -0
- package/studio/chunks/SeoPage-CNNxGe4h.js.gz +0 -0
- package/studio/chunks/Skeleton-COz8dcrw.js +39 -0
- package/studio/chunks/Skeleton-COz8dcrw.js.br +2 -0
- package/studio/chunks/Skeleton-COz8dcrw.js.gz +0 -0
- package/studio/chunks/Slideover-QMMHAAys.js +289 -0
- package/studio/chunks/Slideover-QMMHAAys.js.br +0 -0
- package/studio/chunks/Slideover-QMMHAAys.js.gz +0 -0
- package/studio/chunks/StudioPage-ngEIDr5d.js +80 -0
- package/studio/chunks/StudioPage-ngEIDr5d.js.br +0 -0
- package/studio/chunks/StudioPage-ngEIDr5d.js.gz +0 -0
- package/studio/chunks/StudioPageToolbar-BwHnqyr6.js +2524 -0
- package/studio/chunks/StudioPageToolbar-BwHnqyr6.js.br +0 -0
- package/studio/chunks/StudioPageToolbar-BwHnqyr6.js.gz +0 -0
- package/studio/chunks/Switch-qKl1aDn7.js +484 -0
- package/studio/chunks/Switch-qKl1aDn7.js.br +0 -0
- package/studio/chunks/Switch-qKl1aDn7.js.gz +0 -0
- package/studio/chunks/ToolPage-DxoVAJVk.js +29 -0
- package/studio/chunks/ToolPage-DxoVAJVk.js.br +0 -0
- package/studio/chunks/ToolPage-DxoVAJVk.js.gz +0 -0
- package/studio/chunks/Tooltip-Bu15m_DB.js +693 -0
- package/studio/chunks/Tooltip-Bu15m_DB.js.br +0 -0
- package/studio/chunks/Tooltip-Bu15m_DB.js.gz +0 -0
- package/studio/chunks/TrashPage-lhqLLdoG.js +12 -0
- package/studio/chunks/TrashPage-lhqLLdoG.js.br +0 -0
- package/studio/chunks/TrashPage-lhqLLdoG.js.gz +0 -0
- package/studio/chunks/VersionsPage-Cqy6UAp9.js +2349 -0
- package/studio/chunks/VersionsPage-Cqy6UAp9.js.br +0 -0
- package/studio/chunks/VersionsPage-Cqy6UAp9.js.gz +0 -0
- package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js +113 -0
- package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js.br +0 -0
- package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js.gz +0 -0
- package/studio/chunks/arrays-CUJkmV4I.js +10 -0
- package/studio/chunks/arrays-CUJkmV4I.js.br +0 -0
- package/studio/chunks/arrays-CUJkmV4I.js.gz +0 -0
- package/studio/chunks/base-DkTekJe8.js +213 -0
- package/studio/chunks/base-DkTekJe8.js.br +0 -0
- package/studio/chunks/base-DkTekJe8.js.gz +0 -0
- package/studio/chunks/content-DUGl3N4d.js +6012 -0
- package/studio/chunks/content-DUGl3N4d.js.br +0 -0
- package/studio/chunks/content-DUGl3N4d.js.gz +0 -0
- package/studio/chunks/destinations-DPIQVQa6.js +227 -0
- package/studio/chunks/destinations-DPIQVQa6.js.br +0 -0
- package/studio/chunks/destinations-DPIQVQa6.js.gz +0 -0
- package/studio/chunks/en-073cjKW4.js +152 -0
- package/studio/chunks/en-073cjKW4.js.br +0 -0
- package/studio/chunks/en-073cjKW4.js.gz +0 -0
- package/studio/chunks/en-Bn8mxPuf.js +134 -0
- package/studio/chunks/en-Bn8mxPuf.js.br +0 -0
- package/studio/chunks/en-Bn8mxPuf.js.gz +0 -0
- package/studio/chunks/en-C9OiaUDZ.js +251 -0
- package/studio/chunks/en-C9OiaUDZ.js.br +0 -0
- package/studio/chunks/en-C9OiaUDZ.js.gz +0 -0
- package/studio/chunks/en-CHAR6jzx.js +147 -0
- package/studio/chunks/en-CHAR6jzx.js.br +0 -0
- package/studio/chunks/en-CHAR6jzx.js.gz +0 -0
- package/studio/chunks/en-Cq4N1vEF.js +93 -0
- package/studio/chunks/en-Cq4N1vEF.js.br +2 -0
- package/studio/chunks/en-Cq4N1vEF.js.gz +0 -0
- package/studio/chunks/en-D2hRqlse.js +140 -0
- package/studio/chunks/en-D2hRqlse.js.br +0 -0
- package/studio/chunks/en-D2hRqlse.js.gz +0 -0
- package/studio/chunks/en-DiUC3-j6.js +144 -0
- package/studio/chunks/en-DiUC3-j6.js.br +0 -0
- package/studio/chunks/en-DiUC3-j6.js.gz +0 -0
- package/studio/chunks/english-Cs_Adu-u.js +8 -0
- package/studio/chunks/english-Cs_Adu-u.js.br +0 -0
- package/studio/chunks/english-Cs_Adu-u.js.gz +0 -0
- package/studio/chunks/esm-D6DqSiL1.js +752 -0
- package/studio/chunks/esm-D6DqSiL1.js.br +0 -0
- package/studio/chunks/esm-D6DqSiL1.js.gz +0 -0
- package/studio/chunks/externalRequest-CTzr2nDq.js +23 -0
- package/studio/chunks/externalRequest-CTzr2nDq.js.br +0 -0
- package/studio/chunks/externalRequest-CTzr2nDq.js.gz +0 -0
- package/studio/chunks/iconify-DR9ryCPv.js +1007 -0
- package/studio/chunks/iconify-DR9ryCPv.js.br +0 -0
- package/studio/chunks/iconify-DR9ryCPv.js.gz +0 -0
- package/studio/chunks/icons-D2MsAaXq.js +183 -0
- package/studio/chunks/icons-D2MsAaXq.js.br +0 -0
- package/studio/chunks/icons-D2MsAaXq.js.gz +0 -0
- package/studio/chunks/leaveGuards-D22fTGgr.js +26 -0
- package/studio/chunks/leaveGuards-D22fTGgr.js.br +0 -0
- package/studio/chunks/leaveGuards-D22fTGgr.js.gz +0 -0
- package/studio/chunks/lucideIcons-EyqyPBsX.js +238 -0
- package/studio/chunks/lucideIcons-EyqyPBsX.js.br +0 -0
- package/studio/chunks/lucideIcons-EyqyPBsX.js.gz +0 -0
- package/studio/chunks/mediaRoute--8cY8rUe.js +17 -0
- package/studio/chunks/mediaRoute--8cY8rUe.js.br +0 -0
- package/studio/chunks/mediaRoute--8cY8rUe.js.gz +0 -0
- package/studio/chunks/newDocumentPlanning-C26DHpvh.js +77 -0
- package/studio/chunks/newDocumentPlanning-C26DHpvh.js.br +0 -0
- package/studio/chunks/newDocumentPlanning-C26DHpvh.js.gz +0 -0
- package/studio/chunks/notifications-OKOLc40v.js +110 -0
- package/studio/chunks/notifications-OKOLc40v.js.br +0 -0
- package/studio/chunks/notifications-OKOLc40v.js.gz +0 -0
- package/studio/chunks/operations-CjNHyrEX.js +57 -0
- package/studio/chunks/operations-CjNHyrEX.js.br +0 -0
- package/studio/chunks/operations-CjNHyrEX.js.gz +0 -0
- package/studio/chunks/overlay-DnqFLZTc.js +1733 -0
- package/studio/chunks/overlay-DnqFLZTc.js.br +0 -0
- package/studio/chunks/overlay-DnqFLZTc.js.gz +0 -0
- package/studio/chunks/presentation-DF83w0hE.js +57 -0
- package/studio/chunks/presentation-DF83w0hE.js.br +0 -0
- package/studio/chunks/presentation-DF83w0hE.js.gz +0 -0
- package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js +4557 -0
- package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js.br +0 -0
- package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js.gz +0 -0
- package/studio/chunks/searchPresentation-DFwxQkt3.js +76 -0
- package/studio/chunks/searchPresentation-DFwxQkt3.js.br +0 -0
- package/studio/chunks/searchPresentation-DFwxQkt3.js.gz +0 -0
- package/studio/chunks/status-DQv6ihkU.js +38 -0
- package/studio/chunks/status-DQv6ihkU.js.br +0 -0
- package/studio/chunks/status-DQv6ihkU.js.gz +0 -0
- package/studio/chunks/studioContext-I8HozGU1.js +4953 -0
- package/studio/chunks/studioContext-I8HozGU1.js.br +0 -0
- package/studio/chunks/studioContext-I8HozGU1.js.gz +0 -0
- package/studio/chunks/studioQueries-BR-9NT5F.js +73 -0
- package/studio/chunks/studioQueries-BR-9NT5F.js.br +0 -0
- package/studio/chunks/studioQueries-BR-9NT5F.js.gz +0 -0
- package/studio/chunks/studioSearch-ByaL-QpM.js +1095 -0
- package/studio/chunks/studioSearch-ByaL-QpM.js.br +0 -0
- package/studio/chunks/studioSearch-ByaL-QpM.js.gz +0 -0
- package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js +62 -0
- package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js.br +0 -0
- package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js.gz +0 -0
- package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js +189 -0
- package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js.br +0 -0
- package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js.gz +0 -0
- package/studio/chunks/useDocumentMessage-BAWvc38w.js +16 -0
- package/studio/chunks/useDocumentMessage-BAWvc38w.js.br +3 -0
- package/studio/chunks/useDocumentMessage-BAWvc38w.js.gz +0 -0
- package/studio/chunks/useFilter-DzyiTR7f.js +87 -0
- package/studio/chunks/useFilter-DzyiTR7f.js.br +0 -0
- package/studio/chunks/useFilter-DzyiTR7f.js.gz +0 -0
- package/studio/chunks/useFormControl-CL7sSCUo.js +8 -0
- package/studio/chunks/useFormControl-CL7sSCUo.js.br +0 -0
- package/studio/chunks/useFormControl-CL7sSCUo.js.gz +0 -0
- package/studio/chunks/useGraceArea-Chcy25IQ.js +154 -0
- package/studio/chunks/useGraceArea-Chcy25IQ.js.br +0 -0
- package/studio/chunks/useGraceArea-Chcy25IQ.js.gz +0 -0
- package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js +44 -0
- package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js.br +8 -0
- package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js.gz +0 -0
- package/studio/chunks/useLinkCopy-CMjQteCy.js +35 -0
- package/studio/chunks/useLinkCopy-CMjQteCy.js.br +0 -0
- package/studio/chunks/useLinkCopy-CMjQteCy.js.gz +0 -0
- package/studio/chunks/usePointerMotion-DwRcwBNQ.js +16 -0
- package/studio/chunks/usePointerMotion-DwRcwBNQ.js.br +0 -0
- package/studio/chunks/usePointerMotion-DwRcwBNQ.js.gz +0 -0
- package/studio/chunks/useStudioNavigation-CLwtSYpb.js +298 -0
- package/studio/chunks/useStudioNavigation-CLwtSYpb.js.br +0 -0
- package/studio/chunks/useStudioNavigation-CLwtSYpb.js.gz +0 -0
- package/studio/chunks/useStudioPages-DR9qmYLg.js +79 -0
- package/studio/chunks/useStudioPages-DR9qmYLg.js.br +0 -0
- package/studio/chunks/useStudioPages-DR9qmYLg.js.gz +0 -0
- package/studio/chunks/utils-mdScC0v0.js +59 -0
- package/studio/chunks/utils-mdScC0v0.js.br +0 -0
- package/studio/chunks/utils-mdScC0v0.js.gz +0 -0
- package/studio/chunks/virtualizer-D1S0bZ4t.js +781 -0
- package/studio/chunks/virtualizer-D1S0bZ4t.js.br +0 -0
- package/studio/chunks/virtualizer-D1S0bZ4t.js.gz +0 -0
- package/studio/help/64f767fe29c2-save-and-publish.svg +7 -0
- package/studio/host.css +1 -1
- package/studio/host.css.br +0 -0
- package/studio/host.css.gz +0 -0
- package/studio/host.js +8757 -39178
- package/studio/host.js.br +0 -0
- package/studio/host.js.gz +0 -0
- package/CHANGELOG.md +0 -13
- package/bin/cms.mjs +0 -2
- package/src/ApplicationTypes.d.ts +0 -84
- package/src/ApplicationTypes.js +0 -1
- package/src/Configuration-Da5B2PVH.js +0 -1191
- package/src/Configuration-Da5B2PVH.js.map +0 -1
- package/src/Configuration.d.ts +0 -82
- package/src/Configuration.js +0 -8
- package/src/Configuration.js.map +0 -1
- package/src/Content.d.ts +0 -68
- package/src/Content.js +0 -373
- package/src/Content.js.map +0 -1
- package/src/ContentTransfer-BxwswWn3.js +0 -86
- package/src/ContentTransfer-BxwswWn3.js.map +0 -1
- package/src/ContentTransfer-Z9FHyLez.d.ts +0 -72
- package/src/DocumentEngine-hh_IGPXO.js +0 -978
- package/src/DocumentEngine-hh_IGPXO.js.map +0 -1
- package/src/DocumentModel.d.ts +0 -52
- package/src/DocumentModel.js +0 -66
- package/src/DocumentModel.js.map +0 -1
- package/src/Forms-CX-hwmJF.js +0 -391
- package/src/Forms-CX-hwmJF.js.map +0 -1
- package/src/Forms-CfNPTiCr.js +0 -110
- package/src/Forms-CfNPTiCr.js.map +0 -1
- package/src/Forms-R0HoTR-o.d.ts +0 -92
- package/src/Forms.js.map +0 -1
- package/src/HttpPaths-c9nLZ9H2.js +0 -21
- package/src/HttpPaths-c9nLZ9H2.js.map +0 -1
- package/src/I18n-zbqpWxki.d.ts +0 -29
- package/src/Media-j1bTritO.js +0 -112
- package/src/Media-j1bTritO.js.map +0 -1
- package/src/Module.js.map +0 -1
- package/src/References-CCPDAPve.js +0 -45
- package/src/References-CCPDAPve.js.map +0 -1
- package/src/S3MediaObjects-Dwhl2deX.js +0 -2742
- package/src/S3MediaObjects-Dwhl2deX.js.map +0 -1
- package/src/Seo-402YumpT.d.ts +0 -198
- package/src/cli/content.js +0 -101
- package/src/cli/content.js.map +0 -1
- package/src/cli.js.map +0 -1
- package/src/connection-BP80q4d-.js +0 -92
- package/src/connection-BP80q4d-.js.map +0 -1
- package/src/dev-lifecycle-CjDq63Ft.js +0 -535
- package/src/dev-lifecycle-CjDq63Ft.js.map +0 -1
- package/src/installation-DYNQQBD3.js +0 -9114
- package/src/installation-DYNQQBD3.js.map +0 -1
- package/src/internal/application-types.js +0 -43
- package/src/internal/application-types.js.map +0 -1
- package/src/internal/authoring-catalog.js +0 -158
- package/src/internal/authoring-catalog.js.map +0 -1
- package/src/internal/authoring-compiler.js +0 -146
- package/src/internal/authoring-compiler.js.map +0 -1
- package/src/internal/authoring-metadata.js +0 -191
- package/src/internal/authoring-metadata.js.map +0 -1
- package/src/internal/cms-config.js +0 -45
- package/src/internal/cms-config.js.map +0 -1
- package/src/internal/configuration.js +0 -228
- package/src/internal/configuration.js.map +0 -1
- package/src/internal/dev-lifecycle.js +0 -3
- package/src/internal/diagnostics.js +0 -47
- package/src/internal/diagnostics.js.map +0 -1
- package/src/internal/document-model.js +0 -376
- package/src/internal/document-model.js.map +0 -1
- package/src/internal/field-metadata.js +0 -7
- package/src/internal/field-metadata.js.map +0 -1
- package/src/internal/form-capabilities.js +0 -12
- package/src/internal/form-capabilities.js.map +0 -1
- package/src/internal/i18n.js +0 -73
- package/src/internal/i18n.js.map +0 -1
- package/src/internal/studio-app.js +0 -68
- package/src/internal/studio-app.js.map +0 -1
- package/src/location-CMNGO3lU.js +0 -35
- package/src/location-CMNGO3lU.js.map +0 -1
- package/src/metadata-DN9_K6Yl.js +0 -201
- package/src/metadata-DN9_K6Yl.js.map +0 -1
- package/src/models-5j67LMqW.js +0 -131
- package/src/models-5j67LMqW.js.map +0 -1
- package/src/models-VmGmG19-.js +0 -628
- package/src/models-VmGmG19-.js.map +0 -1
- package/src/runtime/api.js.map +0 -1
- package/src/runtime/blocks.js +0 -30
- package/src/runtime/blocks.js.map +0 -1
- package/src/runtime/collaboration.js +0 -45
- package/src/runtime/collaboration.js.map +0 -1
- package/src/runtime/delivery/DocumentField.js +0 -23
- package/src/runtime/delivery/DocumentField.js.map +0 -1
- package/src/runtime/delivery/DocumentRenderer.js +0 -61
- package/src/runtime/delivery/DocumentRenderer.js.map +0 -1
- package/src/runtime/delivery/DocumentScope.js +0 -41
- package/src/runtime/delivery/DocumentScope.js.map +0 -1
- package/src/runtime/delivery/blocks.js +0 -8
- package/src/runtime/delivery/blocks.js.map +0 -1
- package/src/runtime/delivery/context.js +0 -12
- package/src/runtime/delivery/context.js.map +0 -1
- package/src/runtime/delivery/document-page.js +0 -21
- package/src/runtime/delivery/document-page.js.map +0 -1
- package/src/runtime/delivery/document.js +0 -43
- package/src/runtime/delivery/document.js.map +0 -1
- package/src/runtime/delivery/error.js +0 -11
- package/src/runtime/delivery/error.js.map +0 -1
- package/src/runtime/delivery/plugin.js +0 -99
- package/src/runtime/delivery/plugin.js.map +0 -1
- package/src/runtime/delivery/preview.d.ts +0 -11
- package/src/runtime/delivery/preview.js +0 -6
- package/src/runtime/delivery/preview.js.map +0 -1
- package/src/runtime/delivery/types.d.ts +0 -2
- package/src/runtime/delivery/types.js +0 -1
- package/src/runtime/delivery/useCmsDocumentSeo.d.ts +0 -67
- package/src/runtime/delivery/useCmsDocumentSeo.js.map +0 -1
- package/src/runtime/delivery/useDocument.d.ts +0 -6
- package/src/runtime/delivery/useDocument.js +0 -23
- package/src/runtime/delivery/useDocument.js.map +0 -1
- package/src/runtime/delivery/useDocumentQuery.d.ts +0 -7
- package/src/runtime/delivery/useDocumentQuery.js +0 -29
- package/src/runtime/delivery/useDocumentQuery.js.map +0 -1
- package/src/runtime/forms/document.js +0 -38
- package/src/runtime/forms/document.js.map +0 -1
- package/src/runtime/forms/useCmsForm.js +0 -257
- package/src/runtime/forms/useCmsForm.js.map +0 -1
- package/src/runtime/i18n/translator.js +0 -51
- package/src/runtime/i18n/translator.js.map +0 -1
- package/src/runtime/i18n/useCmsI18n.d.ts +0 -13
- package/src/runtime/i18n/useCmsI18n.js +0 -38
- package/src/runtime/i18n/useCmsI18n.js.map +0 -1
- package/src/runtime/installation.js +0 -3
- package/src/runtime/plugin.js.map +0 -1
- package/src/runtime/preview/CmsStudioPreviewMarker.js +0 -29
- package/src/runtime/preview/CmsStudioPreviewMarker.js.map +0 -1
- package/src/runtime/preview/comark-document.js +0 -37
- package/src/runtime/preview/comark-document.js.map +0 -1
- package/src/runtime/preview/connection.js +0 -3
- package/src/runtime/preview/controller.js +0 -265
- package/src/runtime/preview/controller.js.map +0 -1
- package/src/runtime/preview/crypto.js +0 -16
- package/src/runtime/preview/crypto.js.map +0 -1
- package/src/runtime/preview/overlay.js +0 -122
- package/src/runtime/preview/overlay.js.map +0 -1
- package/src/runtime/preview/plugin.client.js +0 -68
- package/src/runtime/preview/plugin.client.js.map +0 -1
- package/src/runtime/preview/preview.css +0 -91
- package/src/runtime/preview/protocol.d.ts +0 -16
- package/src/runtime/preview/protocol.js +0 -23
- package/src/runtime/preview/protocol.js.map +0 -1
- package/src/runtime/preview/regions.js +0 -142
- package/src/runtime/preview/regions.js.map +0 -1
- package/src/runtime/preview/store.js +0 -4
- package/src/runtime/sitemap-entries.js +0 -17
- package/src/runtime/sitemap-entries.js.map +0 -1
- package/src/runtime/sitemap.js +0 -23
- package/src/runtime/sitemap.js.map +0 -1
- package/src/runtime/studio-app.js +0 -17
- package/src/runtime/studio-app.js.map +0 -1
- package/src/runtime/studio-document.js +0 -46
- package/src/runtime/studio-document.js.map +0 -1
- package/src/runtime/studio-entry.js +0 -19
- package/src/runtime/studio-entry.js.map +0 -1
- package/src/runtime/studio-navigation.js +0 -11
- package/src/runtime/studio-navigation.js.map +0 -1
- package/src/scalars-CA6kyipS.d.ts +0 -7
- package/src/scalars-CVZqT3L0.js +0 -22
- package/src/scalars-CVZqT3L0.js.map +0 -1
- package/src/store-X1e1o_MF.js +0 -209
- package/src/store-X1e1o_MF.js.map +0 -1
- package/src/types-DZ0IV-Ow.d.ts +0 -101
- package/studio/CreateDocumentDialog-BpjBYGfI.js +0 -335
- package/studio/SelectMenu-KiXwx4Y_.js +0 -34032
- package/studio/collaboration-DcK2F6v9.js +0 -4566
- package/studio/editor-P2rB7Csp.js +0 -30128
- package/studio/rolldown-runtime-Dy4uBu1J.js +0 -11
package/src/models-VmGmG19-.js
DELETED
|
@@ -1,628 +0,0 @@
|
|
|
1
|
-
import { d as publicPathPattern, i as DocumentVersion, l as Slug, o as PublicPath, r as DocumentId, s as RevisionId, t as DocumentGeneration, u as nonNegativeInt } from "./scalars-CVZqT3L0.js";
|
|
2
|
-
import { c as MediaId, s as MediaFolder } from "./Media-j1bTritO.js";
|
|
3
|
-
import { DateTime, Option, Schema } from "effect";
|
|
4
|
-
|
|
5
|
-
//#region ../protocol/src/Identity.ts
|
|
6
|
-
const RequestId = Schema.String.check(Schema.isUUID()).pipe(Schema.brand("RequestId"));
|
|
7
|
-
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region ../protocol/src/internal/configuration/scalars.ts
|
|
10
|
-
const collectionNamePattern = /^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$/u;
|
|
11
|
-
const localePattern = /^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u;
|
|
12
|
-
const RoutePattern = Schema.String.check(Schema.isPattern(publicPathPattern)).pipe(Schema.brand("RoutePattern"));
|
|
13
|
-
const CollectionName = Schema.String.check(Schema.isPattern(collectionNamePattern)).pipe(Schema.brand("CollectionName"));
|
|
14
|
-
const Locale = Schema.String.check(Schema.isPattern(localePattern)).pipe(Schema.brand("Locale"));
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region ../protocol/src/AccessControl.ts
|
|
18
|
-
const ROLES = [
|
|
19
|
-
"administrator",
|
|
20
|
-
"editor",
|
|
21
|
-
"viewer"
|
|
22
|
-
];
|
|
23
|
-
const Role = Schema.Literals(ROLES);
|
|
24
|
-
const StudioActor = Schema.Struct({
|
|
25
|
-
id: Schema.NonEmptyString,
|
|
26
|
-
email: Schema.NonEmptyString,
|
|
27
|
-
name: Schema.NonEmptyString,
|
|
28
|
-
roles: Schema.Array(Schema.NonEmptyString)
|
|
29
|
-
}).annotate({ identifier: "StudioActor" });
|
|
30
|
-
const StudioRequestContext = Schema.Struct({
|
|
31
|
-
actor: StudioActor,
|
|
32
|
-
requestId: RequestId
|
|
33
|
-
}).annotate({ identifier: "StudioRequestContext" });
|
|
34
|
-
const DOCUMENT_ACTIONS = [
|
|
35
|
-
"document.browse",
|
|
36
|
-
"document.read",
|
|
37
|
-
"document.trash",
|
|
38
|
-
"document.validate",
|
|
39
|
-
"document.create",
|
|
40
|
-
"document.update",
|
|
41
|
-
"document.move",
|
|
42
|
-
"document.remove",
|
|
43
|
-
"document.restore",
|
|
44
|
-
"document.undelete",
|
|
45
|
-
"document.publish",
|
|
46
|
-
"document.unpublish",
|
|
47
|
-
"document.duplicate",
|
|
48
|
-
"document.history",
|
|
49
|
-
"document.transfer"
|
|
50
|
-
];
|
|
51
|
-
const DocumentAction = Schema.Literals(DOCUMENT_ACTIONS);
|
|
52
|
-
const DocumentCatalogResource = Schema.Struct({ kind: Schema.tag("catalog") });
|
|
53
|
-
const CollectionResource = Schema.Struct({
|
|
54
|
-
kind: Schema.tag("collection"),
|
|
55
|
-
collection: CollectionName,
|
|
56
|
-
locale: Schema.optionalKey(Locale)
|
|
57
|
-
});
|
|
58
|
-
const DocumentResource = Schema.Struct({
|
|
59
|
-
kind: Schema.tag("document"),
|
|
60
|
-
documentId: DocumentId
|
|
61
|
-
});
|
|
62
|
-
const DocumentAccessResource = Schema.Union([
|
|
63
|
-
DocumentCatalogResource,
|
|
64
|
-
CollectionResource,
|
|
65
|
-
DocumentResource
|
|
66
|
-
]).pipe(Schema.toTaggedUnion("kind"));
|
|
67
|
-
const DocumentAccessDecision = Schema.Struct({
|
|
68
|
-
action: DocumentAction,
|
|
69
|
-
resource: DocumentAccessResource
|
|
70
|
-
}).annotate({ identifier: "DocumentAccessDecision" });
|
|
71
|
-
const MEDIA_ACTIONS = [
|
|
72
|
-
"media.read",
|
|
73
|
-
"media.search",
|
|
74
|
-
"media.integrity",
|
|
75
|
-
"media.upload",
|
|
76
|
-
"media.replace",
|
|
77
|
-
"media.remove",
|
|
78
|
-
"media.cleanup"
|
|
79
|
-
];
|
|
80
|
-
const MediaAction = Schema.Literals(MEDIA_ACTIONS);
|
|
81
|
-
const MediaCatalogResource = Schema.Struct({ kind: Schema.tag("media-catalog") });
|
|
82
|
-
const MediaAssetResource = Schema.Struct({
|
|
83
|
-
kind: Schema.tag("media-asset"),
|
|
84
|
-
mediaId: MediaId
|
|
85
|
-
});
|
|
86
|
-
const MediaFolderResource = Schema.Struct({
|
|
87
|
-
kind: Schema.tag("media-folder"),
|
|
88
|
-
folder: MediaFolder
|
|
89
|
-
});
|
|
90
|
-
const MediaResource = Schema.Union([
|
|
91
|
-
MediaCatalogResource,
|
|
92
|
-
MediaAssetResource,
|
|
93
|
-
MediaFolderResource
|
|
94
|
-
]).pipe(Schema.toTaggedUnion("kind"));
|
|
95
|
-
const MediaAccessDecision = Schema.Struct({
|
|
96
|
-
action: MediaAction,
|
|
97
|
-
resource: MediaResource
|
|
98
|
-
}).annotate({ identifier: "MediaAccessDecision" });
|
|
99
|
-
const ActivityResource = Schema.Struct({ kind: Schema.tag("activity") });
|
|
100
|
-
const ActivityAccessDecision = Schema.Struct({
|
|
101
|
-
action: Schema.Literal("activity.read"),
|
|
102
|
-
resource: ActivityResource
|
|
103
|
-
}).annotate({ identifier: "ActivityAccessDecision" });
|
|
104
|
-
const SEO_ACTIONS = [
|
|
105
|
-
"seo.read",
|
|
106
|
-
"seo.save",
|
|
107
|
-
"seo.publish"
|
|
108
|
-
];
|
|
109
|
-
const SeoAction = Schema.Literals(SEO_ACTIONS);
|
|
110
|
-
const SeoResource = Schema.Struct({ kind: Schema.tag("seo") });
|
|
111
|
-
const SeoAccessDecision = Schema.Struct({
|
|
112
|
-
action: SeoAction,
|
|
113
|
-
resource: SeoResource
|
|
114
|
-
}).annotate({ identifier: "SeoAccessDecision" });
|
|
115
|
-
const STUDIO_ACTIONS = [
|
|
116
|
-
...DOCUMENT_ACTIONS,
|
|
117
|
-
...MEDIA_ACTIONS,
|
|
118
|
-
...SEO_ACTIONS,
|
|
119
|
-
"activity.read"
|
|
120
|
-
];
|
|
121
|
-
const StudioAction = Schema.Literals(STUDIO_ACTIONS);
|
|
122
|
-
const StudioResource = Schema.Union([
|
|
123
|
-
DocumentAccessResource,
|
|
124
|
-
MediaResource,
|
|
125
|
-
ActivityResource,
|
|
126
|
-
SeoResource
|
|
127
|
-
]);
|
|
128
|
-
const StudioAccessDecision = Schema.Union([
|
|
129
|
-
DocumentAccessDecision,
|
|
130
|
-
MediaAccessDecision,
|
|
131
|
-
ActivityAccessDecision,
|
|
132
|
-
SeoAccessDecision
|
|
133
|
-
]);
|
|
134
|
-
var AuthenticationRequired = class extends Schema.TaggedError()("Studio.AuthenticationRequired", {}) {};
|
|
135
|
-
var StudioEntryDenied = class extends Schema.TaggedError()("Studio.EntryDenied", {}) {};
|
|
136
|
-
var AccessDenied = class extends Schema.TaggedError()("Studio.AccessDenied", {
|
|
137
|
-
action: StudioAction,
|
|
138
|
-
actorId: StudioActor.fields.id,
|
|
139
|
-
resource: StudioResource
|
|
140
|
-
}) {};
|
|
141
|
-
|
|
142
|
-
//#endregion
|
|
143
|
-
//#region ../protocol/src/Seo.ts
|
|
144
|
-
const absoluteUrl = Schema.makeFilter((value) => {
|
|
145
|
-
try {
|
|
146
|
-
const url = new URL(value);
|
|
147
|
-
return url.protocol === "http:" || url.protocol === "https:";
|
|
148
|
-
} catch {
|
|
149
|
-
return false;
|
|
150
|
-
}
|
|
151
|
-
}, { expected: "an absolute HTTP or HTTPS URL" });
|
|
152
|
-
const canonicalOrigin = Schema.makeFilter((value) => {
|
|
153
|
-
try {
|
|
154
|
-
const url = new URL(value);
|
|
155
|
-
return (url.protocol === "http:" || url.protocol === "https:") && url.origin === value && url.pathname === "/" && url.search === "" && url.hash === "";
|
|
156
|
-
} catch {
|
|
157
|
-
return false;
|
|
158
|
-
}
|
|
159
|
-
}, { expected: "an HTTP or HTTPS origin without a path, query, hash, or trailing slash" });
|
|
160
|
-
const titleTemplate = Schema.makeFilter((value) => value.includes("%s"), { expected: "a title template containing %s" });
|
|
161
|
-
const calendarDate = Schema.makeFilter((value) => {
|
|
162
|
-
if (!/^\d{4}-\d{2}-\d{2}$/u.test(value)) return false;
|
|
163
|
-
const parsed = DateTime.make(value);
|
|
164
|
-
return Option.isSome(parsed) && DateTime.formatIsoDate(parsed.value) === value;
|
|
165
|
-
}, { expected: "a valid calendar date in YYYY-MM-DD format" });
|
|
166
|
-
const SeoUrl = Schema.NonEmptyString.check(absoluteUrl).pipe(Schema.brand("SeoUrl"));
|
|
167
|
-
const SeoCanonicalOrigin = Schema.NonEmptyString.check(canonicalOrigin).pipe(Schema.brand("SeoCanonicalOrigin"));
|
|
168
|
-
const SeoImage = Schema.Struct({
|
|
169
|
-
mediaId: MediaId,
|
|
170
|
-
url: SeoUrl,
|
|
171
|
-
alt: Schema.NonEmptyString
|
|
172
|
-
}).annotate({ identifier: "SeoImage" });
|
|
173
|
-
const StructuredDataType = Schema.Literals(["WebPage", "Article"]);
|
|
174
|
-
const WebPageStructuredData = Schema.Struct({ type: Schema.tag("WebPage") });
|
|
175
|
-
const ArticleStructuredData = Schema.Struct({
|
|
176
|
-
type: Schema.tag("Article"),
|
|
177
|
-
headline: Schema.optionalKey(Schema.NonEmptyString),
|
|
178
|
-
datePublished: Schema.optionalKey(Schema.String.check(calendarDate)),
|
|
179
|
-
dateModified: Schema.optionalKey(Schema.String.check(calendarDate))
|
|
180
|
-
});
|
|
181
|
-
const DocumentStructuredData = Schema.Union([WebPageStructuredData, ArticleStructuredData]).pipe(Schema.toTaggedUnion("type"));
|
|
182
|
-
const IdentityType = Schema.Literals([
|
|
183
|
-
"Person",
|
|
184
|
-
"Organization",
|
|
185
|
-
"LocalBusiness"
|
|
186
|
-
]);
|
|
187
|
-
const identityFields = {
|
|
188
|
-
name: Schema.NonEmptyString,
|
|
189
|
-
url: Schema.optionalKey(SeoUrl)
|
|
190
|
-
};
|
|
191
|
-
const PersonIdentity = Schema.Struct({
|
|
192
|
-
type: Schema.tag("Person"),
|
|
193
|
-
...identityFields,
|
|
194
|
-
image: Schema.optionalKey(SeoImage)
|
|
195
|
-
});
|
|
196
|
-
const OrganizationIdentity = Schema.Struct({
|
|
197
|
-
type: Schema.tag("Organization"),
|
|
198
|
-
...identityFields,
|
|
199
|
-
logo: Schema.optionalKey(SeoImage)
|
|
200
|
-
});
|
|
201
|
-
const PostalAddress = Schema.Struct({
|
|
202
|
-
streetAddress: Schema.optionalKey(Schema.NonEmptyString),
|
|
203
|
-
addressLocality: Schema.optionalKey(Schema.NonEmptyString),
|
|
204
|
-
addressRegion: Schema.optionalKey(Schema.NonEmptyString),
|
|
205
|
-
postalCode: Schema.optionalKey(Schema.NonEmptyString),
|
|
206
|
-
addressCountry: Schema.optionalKey(Schema.NonEmptyString)
|
|
207
|
-
}).annotate({ identifier: "PostalAddress" });
|
|
208
|
-
const LocalBusinessIdentity = Schema.Struct({
|
|
209
|
-
type: Schema.tag("LocalBusiness"),
|
|
210
|
-
...identityFields,
|
|
211
|
-
logo: Schema.optionalKey(SeoImage),
|
|
212
|
-
image: Schema.optionalKey(SeoImage),
|
|
213
|
-
telephone: Schema.optionalKey(Schema.NonEmptyString),
|
|
214
|
-
address: Schema.optionalKey(PostalAddress)
|
|
215
|
-
});
|
|
216
|
-
const SiteIdentity = Schema.Union([
|
|
217
|
-
PersonIdentity,
|
|
218
|
-
OrganizationIdentity,
|
|
219
|
-
LocalBusinessIdentity
|
|
220
|
-
]).pipe(Schema.toTaggedUnion("type"));
|
|
221
|
-
const DocumentSeo = Schema.Struct({
|
|
222
|
-
title: Schema.optionalKey(Schema.NonEmptyString),
|
|
223
|
-
description: Schema.optionalKey(Schema.NonEmptyString),
|
|
224
|
-
socialTitle: Schema.optionalKey(Schema.NonEmptyString),
|
|
225
|
-
socialDescription: Schema.optionalKey(Schema.NonEmptyString),
|
|
226
|
-
socialImage: Schema.optionalKey(SeoImage),
|
|
227
|
-
index: Schema.optionalKey(Schema.Boolean),
|
|
228
|
-
follow: Schema.optionalKey(Schema.Boolean),
|
|
229
|
-
canonicalUrl: Schema.optionalKey(SeoUrl),
|
|
230
|
-
structuredData: Schema.optionalKey(DocumentStructuredData)
|
|
231
|
-
}).annotate({ identifier: "DocumentSeo" });
|
|
232
|
-
const GlobalSeoSettings = Schema.Struct({
|
|
233
|
-
siteName: Schema.NonEmptyString,
|
|
234
|
-
defaultDescription: Schema.optionalKey(Schema.NonEmptyString),
|
|
235
|
-
canonicalOrigin: SeoCanonicalOrigin,
|
|
236
|
-
titleTemplate: Schema.optionalKey(Schema.NonEmptyString.check(titleTemplate)),
|
|
237
|
-
socialTitle: Schema.optionalKey(Schema.NonEmptyString),
|
|
238
|
-
socialDescription: Schema.optionalKey(Schema.NonEmptyString),
|
|
239
|
-
socialImage: Schema.optionalKey(SeoImage),
|
|
240
|
-
index: Schema.Boolean,
|
|
241
|
-
follow: Schema.Boolean,
|
|
242
|
-
identity: Schema.optionalKey(SiteIdentity)
|
|
243
|
-
}).annotate({ identifier: "GlobalSeoSettings" });
|
|
244
|
-
const SeoCapabilities = Schema.Struct({
|
|
245
|
-
structuredDataTypes: Schema.Array(StructuredDataType),
|
|
246
|
-
identityTypes: Schema.Array(IdentityType),
|
|
247
|
-
generatedSocialImageTemplateIds: Schema.Array(Schema.NonEmptyString)
|
|
248
|
-
}).annotate({ identifier: "SeoCapabilities" });
|
|
249
|
-
const SeoConfiguration = Schema.Struct({
|
|
250
|
-
defaults: GlobalSeoSettings,
|
|
251
|
-
capabilities: SeoCapabilities
|
|
252
|
-
}).annotate({ identifier: "SeoConfiguration" });
|
|
253
|
-
const ResolvedSeo = Schema.Struct({
|
|
254
|
-
title: Schema.NonEmptyString,
|
|
255
|
-
description: Schema.optionalKey(Schema.NonEmptyString),
|
|
256
|
-
socialTitle: Schema.NonEmptyString,
|
|
257
|
-
socialDescription: Schema.optionalKey(Schema.NonEmptyString),
|
|
258
|
-
socialImage: Schema.optionalKey(SeoImage),
|
|
259
|
-
canonicalUrl: SeoUrl,
|
|
260
|
-
index: Schema.Boolean,
|
|
261
|
-
follow: Schema.Boolean,
|
|
262
|
-
structuredData: Schema.optionalKey(DocumentStructuredData),
|
|
263
|
-
identity: Schema.optionalKey(SiteIdentity)
|
|
264
|
-
}).annotate({ identifier: "ResolvedSeo" });
|
|
265
|
-
const SeoVersion = Schema.NonEmptyString.pipe(Schema.brand("SeoVersion"));
|
|
266
|
-
const SeoRevisionId = Schema.String.check(Schema.isUUID()).pipe(Schema.brand("SeoRevisionId"));
|
|
267
|
-
const SeoRevision = Schema.Struct({
|
|
268
|
-
revisionId: SeoRevisionId,
|
|
269
|
-
version: SeoVersion,
|
|
270
|
-
settings: GlobalSeoSettings,
|
|
271
|
-
editedBy: StudioActor,
|
|
272
|
-
editedAt: Schema.DateTimeUtcFromString
|
|
273
|
-
}).annotate({ identifier: "SeoRevision" });
|
|
274
|
-
const SeoState = Schema.Struct({
|
|
275
|
-
working: SeoRevision,
|
|
276
|
-
published: Schema.optionalKey(SeoRevision),
|
|
277
|
-
capabilities: SeoCapabilities
|
|
278
|
-
}).annotate({ identifier: "SeoState" });
|
|
279
|
-
const SeoSnapshot = Schema.Struct({
|
|
280
|
-
revision: SeoRevision,
|
|
281
|
-
capabilities: SeoCapabilities
|
|
282
|
-
}).annotate({ identifier: "SeoSnapshot" });
|
|
283
|
-
const mutationMetadata = {
|
|
284
|
-
reason: Schema.optionalKey(Schema.NonEmptyString.check(Schema.isMaxLength(1e3))),
|
|
285
|
-
confirmedSiteWideChange: Schema.optionalKey(Schema.Boolean)
|
|
286
|
-
};
|
|
287
|
-
const SaveSeoInput = Schema.Struct({
|
|
288
|
-
expectedVersion: SeoVersion,
|
|
289
|
-
settings: GlobalSeoSettings,
|
|
290
|
-
...mutationMetadata
|
|
291
|
-
}).annotate({ identifier: "SaveSeoInput" });
|
|
292
|
-
const PublishSeoInput = Schema.Struct({
|
|
293
|
-
expectedVersion: SeoVersion,
|
|
294
|
-
...mutationMetadata
|
|
295
|
-
}).annotate({ identifier: "PublishSeoInput" });
|
|
296
|
-
const SeoMutationResult = Schema.Struct({
|
|
297
|
-
action: Schema.Literals(["seo.save", "seo.publish"]),
|
|
298
|
-
state: SeoState
|
|
299
|
-
}).annotate({ identifier: "SeoMutationResult" });
|
|
300
|
-
const SitemapAlternative = Schema.Struct({
|
|
301
|
-
locale: Locale,
|
|
302
|
-
loc: PublicPath
|
|
303
|
-
}).annotate({ identifier: "SitemapAlternative" });
|
|
304
|
-
const SitemapEntry = Schema.Struct({
|
|
305
|
-
loc: PublicPath,
|
|
306
|
-
lastmod: Schema.DateTimeUtcFromString,
|
|
307
|
-
alternatives: Schema.optionalKey(Schema.Array(SitemapAlternative))
|
|
308
|
-
}).annotate({ identifier: "SitemapEntry" });
|
|
309
|
-
const SeoConfirmationChange = Schema.Literals(["canonicalOrigin", "indexability"]);
|
|
310
|
-
var SeoVersionConflict = class extends Schema.TaggedError()("Seo.VersionConflict", {
|
|
311
|
-
expectedVersion: SeoVersion,
|
|
312
|
-
actualVersion: SeoVersion
|
|
313
|
-
}) {};
|
|
314
|
-
var SeoConfirmationRequired = class extends Schema.TaggedError()("Seo.ConfirmationRequired", { changes: Schema.Array(SeoConfirmationChange) }) {};
|
|
315
|
-
var SeoMediaUnavailable = class extends Schema.TaggedError()("Seo.MediaUnavailable", { mediaId: MediaId }) {};
|
|
316
|
-
|
|
317
|
-
//#endregion
|
|
318
|
-
//#region ../protocol/src/internal/documents/models.ts
|
|
319
|
-
const DocumentIssueCode = Schema.Literals([
|
|
320
|
-
"document.collision",
|
|
321
|
-
"document.id",
|
|
322
|
-
"document.invalid",
|
|
323
|
-
"i18n.missing-translation",
|
|
324
|
-
"markdown.parse",
|
|
325
|
-
"reference.document",
|
|
326
|
-
"reference.component",
|
|
327
|
-
"reference.media",
|
|
328
|
-
"seo.invalid",
|
|
329
|
-
"schema.option",
|
|
330
|
-
"schema.constraint",
|
|
331
|
-
"schema.required",
|
|
332
|
-
"schema.type",
|
|
333
|
-
"schema.unknown"
|
|
334
|
-
]);
|
|
335
|
-
const DocumentIssue = Schema.Struct({
|
|
336
|
-
code: DocumentIssueCode,
|
|
337
|
-
severity: Schema.Literals(["error", "warning"]),
|
|
338
|
-
message: Schema.NonEmptyString,
|
|
339
|
-
component: Schema.optionalKey(Schema.NonEmptyString),
|
|
340
|
-
documentId: Schema.optionalKey(DocumentId),
|
|
341
|
-
collection: Schema.optionalKey(CollectionName),
|
|
342
|
-
field: Schema.optionalKey(Schema.NonEmptyString),
|
|
343
|
-
key: Schema.optionalKey(PublicPath),
|
|
344
|
-
locale: Schema.optionalKey(Locale)
|
|
345
|
-
}).annotate({ identifier: "DocumentIssue" });
|
|
346
|
-
const DocumentSourcePoint = Schema.Struct({
|
|
347
|
-
offset: nonNegativeInt,
|
|
348
|
-
line: nonNegativeInt,
|
|
349
|
-
column: nonNegativeInt
|
|
350
|
-
});
|
|
351
|
-
const DocumentSourceRange = Schema.Struct({
|
|
352
|
-
start: DocumentSourcePoint,
|
|
353
|
-
end: DocumentSourcePoint
|
|
354
|
-
});
|
|
355
|
-
const DocumentSourceMapping = Schema.Struct({
|
|
356
|
-
nodePath: Schema.Array(nonNegativeInt),
|
|
357
|
-
range: DocumentSourceRange
|
|
358
|
-
});
|
|
359
|
-
const MarkdownNode = Schema.suspend(() => Schema.Union([
|
|
360
|
-
Schema.String,
|
|
361
|
-
Schema.Tuple([
|
|
362
|
-
Schema.Null,
|
|
363
|
-
Schema.JsonObject,
|
|
364
|
-
Schema.String
|
|
365
|
-
]),
|
|
366
|
-
Schema.TupleWithRest(Schema.Tuple([Schema.NonEmptyString, Schema.JsonObject]), [MarkdownNode])
|
|
367
|
-
]));
|
|
368
|
-
const CmsMarkdownDocument = Schema.Struct({
|
|
369
|
-
nodes: Schema.Array(MarkdownNode),
|
|
370
|
-
frontmatter: Schema.JsonObject,
|
|
371
|
-
meta: Schema.JsonObject
|
|
372
|
-
}).annotate({ identifier: "CmsMarkdownDocument" });
|
|
373
|
-
const CmsDocumentHeading = Schema.Struct({
|
|
374
|
-
depth: Schema.Int.check(Schema.isBetween({
|
|
375
|
-
minimum: 1,
|
|
376
|
-
maximum: 6
|
|
377
|
-
})),
|
|
378
|
-
id: Schema.String,
|
|
379
|
-
text: Schema.String
|
|
380
|
-
});
|
|
381
|
-
const CmsDocumentAnalysis = Schema.Struct({
|
|
382
|
-
components: Schema.Array(Schema.NonEmptyString),
|
|
383
|
-
headings: Schema.Array(CmsDocumentHeading),
|
|
384
|
-
searchText: Schema.String,
|
|
385
|
-
summary: Schema.String
|
|
386
|
-
});
|
|
387
|
-
const CompiledDocumentSource = Schema.Struct({
|
|
388
|
-
mappings: Schema.Array(DocumentSourceMapping),
|
|
389
|
-
publishedAt: Schema.optionalKey(Schema.DateTimeUtcFromString)
|
|
390
|
-
});
|
|
391
|
-
const DocumentIdentity = Schema.Struct({
|
|
392
|
-
documentId: DocumentId,
|
|
393
|
-
collection: CollectionName,
|
|
394
|
-
locale: Schema.optionalKey(Locale)
|
|
395
|
-
}).annotate({ identifier: "DocumentIdentity" });
|
|
396
|
-
const HomeDocumentPlacement = Schema.Struct({ kind: Schema.tag("home") });
|
|
397
|
-
const NestedDocumentPlacement = Schema.Struct({
|
|
398
|
-
kind: Schema.tag("entry"),
|
|
399
|
-
parentDocumentId: DocumentId,
|
|
400
|
-
slug: Slug
|
|
401
|
-
});
|
|
402
|
-
const DocumentPlacement = Schema.Union([HomeDocumentPlacement, NestedDocumentPlacement]).pipe(Schema.toTaggedUnion("kind"));
|
|
403
|
-
const DocumentAlternative = Schema.Struct({
|
|
404
|
-
locale: Locale,
|
|
405
|
-
path: PublicPath
|
|
406
|
-
});
|
|
407
|
-
const CompiledDocument = Schema.Struct({
|
|
408
|
-
id: DocumentId,
|
|
409
|
-
identity: DocumentIdentity,
|
|
410
|
-
placement: DocumentPlacement,
|
|
411
|
-
key: PublicPath,
|
|
412
|
-
path: PublicPath,
|
|
413
|
-
locale: Schema.optionalKey(Locale),
|
|
414
|
-
collection: CollectionName,
|
|
415
|
-
draft: Schema.Boolean,
|
|
416
|
-
title: Schema.NonEmptyString,
|
|
417
|
-
description: Schema.optionalKey(Schema.String),
|
|
418
|
-
seo: Schema.optionalKey(DocumentSeo),
|
|
419
|
-
resolvedSeo: Schema.optionalKey(ResolvedSeo),
|
|
420
|
-
alternatives: Schema.optionalKey(Schema.Array(DocumentAlternative)),
|
|
421
|
-
data: Schema.JsonObject,
|
|
422
|
-
issues: Schema.Array(DocumentIssue),
|
|
423
|
-
analysis: CmsDocumentAnalysis,
|
|
424
|
-
body: CmsMarkdownDocument,
|
|
425
|
-
engineFingerprint: Schema.NonEmptyString,
|
|
426
|
-
source: CompiledDocumentSource
|
|
427
|
-
}).annotate({ identifier: "CompiledDocument" });
|
|
428
|
-
const DocumentSummaryDocument = Schema.Struct({
|
|
429
|
-
id: DocumentId,
|
|
430
|
-
identity: DocumentIdentity,
|
|
431
|
-
placement: DocumentPlacement,
|
|
432
|
-
key: PublicPath,
|
|
433
|
-
path: PublicPath,
|
|
434
|
-
locale: Schema.optionalKey(Locale),
|
|
435
|
-
collection: CollectionName,
|
|
436
|
-
draft: Schema.Boolean,
|
|
437
|
-
title: Schema.NonEmptyString,
|
|
438
|
-
issues: Schema.Array(DocumentIssue),
|
|
439
|
-
searchText: Schema.String
|
|
440
|
-
}).annotate({ identifier: "DocumentSummaryDocument" });
|
|
441
|
-
const documentAttribution = {
|
|
442
|
-
createdBy: Schema.optionalKey(StudioActor),
|
|
443
|
-
editedBy: Schema.optionalKey(StudioActor),
|
|
444
|
-
editedAt: Schema.optionalKey(Schema.DateTimeUtcFromString)
|
|
445
|
-
};
|
|
446
|
-
const DocumentSource = Schema.Struct({
|
|
447
|
-
...documentAttribution,
|
|
448
|
-
documentId: DocumentId,
|
|
449
|
-
identity: DocumentIdentity,
|
|
450
|
-
placement: DocumentPlacement,
|
|
451
|
-
markdown: Schema.String,
|
|
452
|
-
revisionId: RevisionId,
|
|
453
|
-
version: DocumentVersion,
|
|
454
|
-
publishedVersion: Schema.optionalKey(DocumentVersion)
|
|
455
|
-
}).annotate({ identifier: "DocumentSource" });
|
|
456
|
-
const DocumentSummary = Schema.Struct({
|
|
457
|
-
...documentAttribution,
|
|
458
|
-
publishedVersion: Schema.optionalKey(DocumentVersion),
|
|
459
|
-
publishedPath: Schema.optionalKey(PublicPath),
|
|
460
|
-
version: DocumentVersion,
|
|
461
|
-
document: DocumentSummaryDocument
|
|
462
|
-
}).annotate({ identifier: "DocumentSummary" });
|
|
463
|
-
const DeletedDocument = Schema.Struct({
|
|
464
|
-
title: Schema.optionalKey(Schema.String),
|
|
465
|
-
path: Schema.optionalKey(PublicPath),
|
|
466
|
-
trashBatchId: Schema.optionalKey(DocumentVersion),
|
|
467
|
-
documentId: DocumentId,
|
|
468
|
-
identity: DocumentIdentity,
|
|
469
|
-
placement: DocumentPlacement,
|
|
470
|
-
deletedAt: Schema.DateTimeUtcFromString,
|
|
471
|
-
version: DocumentVersion
|
|
472
|
-
}).annotate({ identifier: "DeletedDocument" });
|
|
473
|
-
const DocumentBrowseQuery = Schema.Struct({
|
|
474
|
-
collection: Schema.optionalKey(CollectionName),
|
|
475
|
-
locale: Schema.optionalKey(Locale)
|
|
476
|
-
}).annotate({ identifier: "DocumentBrowseQuery" });
|
|
477
|
-
const PublishedDocumentLookup = Schema.Union([
|
|
478
|
-
Schema.Struct({
|
|
479
|
-
kind: Schema.tag("id"),
|
|
480
|
-
documentId: DocumentId
|
|
481
|
-
}),
|
|
482
|
-
Schema.Struct({
|
|
483
|
-
kind: Schema.tag("path"),
|
|
484
|
-
path: PublicPath
|
|
485
|
-
}),
|
|
486
|
-
Schema.Struct({
|
|
487
|
-
kind: Schema.tag("key"),
|
|
488
|
-
key: PublicPath,
|
|
489
|
-
collection: Schema.optionalKey(CollectionName),
|
|
490
|
-
locale: Schema.optionalKey(Locale)
|
|
491
|
-
})
|
|
492
|
-
]).pipe(Schema.toTaggedUnion("kind"));
|
|
493
|
-
const DocumentQueryScalar = Schema.Union([
|
|
494
|
-
Schema.String,
|
|
495
|
-
Schema.Finite,
|
|
496
|
-
Schema.Boolean,
|
|
497
|
-
Schema.Null
|
|
498
|
-
]);
|
|
499
|
-
const validDocumentQueryField = Schema.makeFilter((field) => {
|
|
500
|
-
const segments = field.split(".");
|
|
501
|
-
return field.length <= 200 && segments.length <= 8 && segments.every((segment) => segment.length > 0);
|
|
502
|
-
}, { expected: "a non-empty field path of at most 200 characters and eight non-empty segments" });
|
|
503
|
-
const DocumentQueryField = Schema.NonEmptyString.check(validDocumentQueryField);
|
|
504
|
-
const DocumentQueryValue = Schema.Union([DocumentQueryScalar, Schema.Array(DocumentQueryScalar).check(Schema.isMaxLength(20))]);
|
|
505
|
-
const DocumentQuerySort = Schema.Struct({
|
|
506
|
-
field: DocumentQueryField,
|
|
507
|
-
direction: Schema.optionalKey(Schema.Literals(["asc", "desc"]))
|
|
508
|
-
});
|
|
509
|
-
const DocumentQueryWhere = Schema.Record(Schema.String, DocumentQueryValue).check(Schema.makeFilter((where) => Object.keys(where).every((field) => Schema.is(DocumentQueryField)(field)), { expected: "document query keys with valid bounded field paths" }), Schema.makeFilter((where) => Object.keys(where).length <= 12, { expected: "at most 12 document query filters" }));
|
|
510
|
-
const PublishedDocumentSelection = Schema.Struct({
|
|
511
|
-
collection: Schema.optionalKey(CollectionName),
|
|
512
|
-
locale: Schema.optionalKey(Locale),
|
|
513
|
-
where: Schema.optionalKey(DocumentQueryWhere),
|
|
514
|
-
sort: Schema.optionalKey(Schema.Array(DocumentQuerySort).check(Schema.isMaxLength(4)))
|
|
515
|
-
}).annotate({ identifier: "PublishedDocumentSelection" });
|
|
516
|
-
const PublishedDocumentQuery = Schema.Struct({
|
|
517
|
-
...PublishedDocumentSelection.fields,
|
|
518
|
-
offset: Schema.optionalKey(nonNegativeInt),
|
|
519
|
-
limit: Schema.Int.check(Schema.isBetween({
|
|
520
|
-
minimum: 1,
|
|
521
|
-
maximum: 100
|
|
522
|
-
}))
|
|
523
|
-
}).annotate({ identifier: "PublishedDocumentQuery" });
|
|
524
|
-
const PublishedDocumentSurroundQuery = Schema.Struct({ ...PublishedDocumentSelection.fields }).annotate({ identifier: "PublishedDocumentSurroundQuery" });
|
|
525
|
-
const PublishedDocumentPage = Schema.Struct({
|
|
526
|
-
items: Schema.Array(CompiledDocument),
|
|
527
|
-
total: nonNegativeInt
|
|
528
|
-
}).annotate({ identifier: "PublishedDocumentPage" });
|
|
529
|
-
const DocumentNavigationQuery = Schema.Struct({
|
|
530
|
-
collection: Schema.optionalKey(CollectionName),
|
|
531
|
-
locale: Schema.optionalKey(Locale)
|
|
532
|
-
}).annotate({ identifier: "DocumentNavigationQuery" });
|
|
533
|
-
const documentMutationMetadata = { reason: Schema.optionalKey(Schema.NonEmptyString.check(Schema.isMaxLength(1e3))) };
|
|
534
|
-
const DocumentNavigationItem = Schema.suspend(() => Schema.Struct({
|
|
535
|
-
key: PublicPath,
|
|
536
|
-
title: Schema.NonEmptyString,
|
|
537
|
-
path: Schema.optionalKey(PublicPath),
|
|
538
|
-
locale: Schema.optionalKey(Locale),
|
|
539
|
-
documentId: Schema.optionalKey(DocumentId),
|
|
540
|
-
children: Schema.Array(DocumentNavigationItem)
|
|
541
|
-
}));
|
|
542
|
-
const DocumentSurround = Schema.Struct({
|
|
543
|
-
previous: Schema.NullOr(CompiledDocument),
|
|
544
|
-
next: Schema.NullOr(CompiledDocument)
|
|
545
|
-
}).annotate({ identifier: "DocumentSurround" });
|
|
546
|
-
const CreateDocumentInput = Schema.Struct({
|
|
547
|
-
collection: CollectionName,
|
|
548
|
-
locale: Schema.optionalKey(Locale),
|
|
549
|
-
placement: DocumentPlacement,
|
|
550
|
-
title: Schema.NonEmptyString,
|
|
551
|
-
...documentMutationMetadata
|
|
552
|
-
}).annotate({ identifier: "CreateDocumentInput" });
|
|
553
|
-
const UpdateDocumentInput = Schema.Struct({
|
|
554
|
-
documentId: DocumentId,
|
|
555
|
-
expectedVersion: DocumentVersion,
|
|
556
|
-
markdown: Schema.String,
|
|
557
|
-
...documentMutationMetadata
|
|
558
|
-
}).annotate({ identifier: "UpdateDocumentInput" });
|
|
559
|
-
const MoveDocumentInput = Schema.Struct({
|
|
560
|
-
documentId: DocumentId,
|
|
561
|
-
expectedVersion: DocumentVersion,
|
|
562
|
-
placement: DocumentPlacement,
|
|
563
|
-
...documentMutationMetadata
|
|
564
|
-
}).annotate({ identifier: "MoveDocumentInput" });
|
|
565
|
-
const DuplicateDocumentInput = Schema.Struct({
|
|
566
|
-
...MoveDocumentInput.fields,
|
|
567
|
-
includeChildren: Schema.Boolean,
|
|
568
|
-
/** Copies into another independent locale variant when supplied. */
|
|
569
|
-
locale: Schema.optionalKey(Locale)
|
|
570
|
-
}).annotate({ identifier: "DuplicateDocumentInput" });
|
|
571
|
-
const UnpublishDocumentInput = Schema.Struct({
|
|
572
|
-
documentId: DocumentId,
|
|
573
|
-
expectedVersion: DocumentVersion,
|
|
574
|
-
...documentMutationMetadata
|
|
575
|
-
}).annotate({ identifier: "UnpublishDocumentInput" });
|
|
576
|
-
const RemoveDocumentInput = Schema.Struct({
|
|
577
|
-
documentId: DocumentId,
|
|
578
|
-
expectedVersion: DocumentVersion,
|
|
579
|
-
...documentMutationMetadata
|
|
580
|
-
}).annotate({ identifier: "RemoveDocumentInput" });
|
|
581
|
-
const PublishDocumentInput = Schema.Struct({
|
|
582
|
-
documentId: DocumentId,
|
|
583
|
-
expectedVersion: DocumentVersion,
|
|
584
|
-
...documentMutationMetadata
|
|
585
|
-
}).annotate({ identifier: "PublishDocumentInput" });
|
|
586
|
-
const RestoreDocumentInput = Schema.Struct({
|
|
587
|
-
documentId: DocumentId,
|
|
588
|
-
revisionId: RevisionId,
|
|
589
|
-
expectedVersion: DocumentVersion,
|
|
590
|
-
...documentMutationMetadata
|
|
591
|
-
}).annotate({ identifier: "RestoreDocumentInput" });
|
|
592
|
-
const UndeleteDocumentInput = Schema.Struct({
|
|
593
|
-
documentId: DocumentId,
|
|
594
|
-
expectedVersion: DocumentVersion,
|
|
595
|
-
...documentMutationMetadata
|
|
596
|
-
}).annotate({ identifier: "UndeleteDocumentInput" });
|
|
597
|
-
const DOCUMENT_REVISION_ACTIONS = [
|
|
598
|
-
"document.create",
|
|
599
|
-
"document.move",
|
|
600
|
-
"document.remove",
|
|
601
|
-
"document.restore",
|
|
602
|
-
"document.undelete",
|
|
603
|
-
"document.update"
|
|
604
|
-
];
|
|
605
|
-
const DocumentRevisionAction = Schema.Literals(DOCUMENT_REVISION_ACTIONS);
|
|
606
|
-
const DocumentMutationAction = Schema.Literals([
|
|
607
|
-
...DOCUMENT_REVISION_ACTIONS,
|
|
608
|
-
"document.publish",
|
|
609
|
-
"document.unpublish"
|
|
610
|
-
]);
|
|
611
|
-
const DocumentMutationResult = Schema.Struct({
|
|
612
|
-
action: DocumentMutationAction,
|
|
613
|
-
affectedDocumentIds: Schema.optionalKey(Schema.Array(DocumentId)),
|
|
614
|
-
documentId: DocumentId,
|
|
615
|
-
generation: DocumentGeneration,
|
|
616
|
-
revisionId: RevisionId,
|
|
617
|
-
version: DocumentVersion,
|
|
618
|
-
entry: Schema.optionalKey(DocumentSummary)
|
|
619
|
-
}).annotate({ identifier: "DocumentMutationResult" });
|
|
620
|
-
const DocumentValidationResult = Schema.Struct({
|
|
621
|
-
valid: Schema.Boolean,
|
|
622
|
-
document: Schema.optionalKey(CompiledDocument),
|
|
623
|
-
issues: Schema.Array(DocumentIssue)
|
|
624
|
-
}).annotate({ identifier: "DocumentValidationResult" });
|
|
625
|
-
|
|
626
|
-
//#endregion
|
|
627
|
-
export { MEDIA_ACTIONS as $, RestoreDocumentInput as A, SeoConfiguration as B, MoveDocumentInput as C, PublishedDocumentQuery as D, PublishedDocumentPage as E, GlobalSeoSettings as F, SeoSnapshot as G, SeoMediaUnavailable as H, PublishSeoInput as I, SeoVersionConflict as J, SeoState as K, SaveSeoInput as L, UnpublishDocumentInput as M, UpdateDocumentInput as N, PublishedDocumentSurroundQuery as O, DocumentSeo as P, DOCUMENT_ACTIONS as Q, SeoCanonicalOrigin as R, MarkdownNode as S, PublishedDocumentLookup as T, SeoMutationResult as U, SeoConfirmationRequired as V, SeoRevision as W, AccessDenied as X, SitemapEntry as Y, AuthenticationRequired as Z, DocumentSourceMapping as _, DOCUMENT_REVISION_ACTIONS as a, Locale as at, DocumentValidationResult as b, DocumentIdentity as c, DocumentNavigationItem as d, Role as et, DocumentNavigationQuery as f, DocumentSource as g, DocumentRevisionAction as h, CreateDocumentInput as i, CollectionName as it, UndeleteDocumentInput as j, RemoveDocumentInput as k, DocumentIssue as l, DocumentQueryScalar as m, CmsMarkdownDocument as n, StudioEntryDenied as nt, DeletedDocument as o, RoutePattern as ot, DocumentPlacement as p, SeoUrl as q, CompiledDocument as r, StudioRequestContext as rt, DocumentBrowseQuery as s, RequestId as st, CmsDocumentAnalysis as t, StudioActor as tt, DocumentMutationResult as u, DocumentSummary as v, PublishDocumentInput as w, DuplicateDocumentInput as x, DocumentSurround as y, SeoCapabilities as z };
|
|
628
|
-
//# sourceMappingURL=models-VmGmG19-.js.map
|