@phtngyn/cms 0.2.0-beta.8 → 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 -404
- 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 +1040 -152
- 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 +8793 -39395
- package/studio/host.js.br +0 -0
- package/studio/host.js.gz +0 -0
- package/CHANGELOG.md +0 -14
- package/bin/cms.mjs +0 -2
- package/src/ApplicationTypes.d.ts +0 -84
- package/src/ApplicationTypes.js +0 -1
- package/src/Configuration-CMweD9bn.js +0 -1191
- package/src/Configuration-CMweD9bn.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-tYtwbBjr.js +0 -978
- package/src/DocumentEngine-tYtwbBjr.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-Be3vshPJ.js +0 -20
- package/src/HttpPaths-Be3vshPJ.js.map +0 -1
- package/src/I18n-wxswIRyY.d.ts +0 -30
- 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-BXfjaZOu.js +0 -2756
- package/src/S3MediaObjects-BXfjaZOu.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-3I_pozUl.js +0 -535
- package/src/dev-lifecycle-3I_pozUl.js.map +0 -1
- package/src/installation-DxqSSVbH.js +0 -9105
- package/src/installation-DxqSSVbH.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 -104
- 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 -58
- 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-C4_JBo1w.js +0 -335
- package/studio/SelectMenu-wXqxymUw.js +0 -34045
- package/studio/collaboration-DcK2F6v9.js +0 -4566
- package/studio/editor-P2rB7Csp.js +0 -30128
- package/studio/rolldown-runtime-Dy4uBu1J.js +0 -11
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { $ as e, Lt as t, b as n, d as r, h as i, y as a } from "./Button-BT3ztSPx.js";
|
|
2
|
+
import { b as o } from "./useApi-CUWMwLLw-B3Q3g2nf.js";
|
|
3
|
+
import { $t as s, A as c, Ci as l, E as u, M as d, Or as f, Pn as p, V as m, aa as h, gi as g, gn as _, ir as v, mr as y, pt as b, ra as x } from "./runtime-core.esm-bundler-DKFA9Rep.js";
|
|
4
|
+
import { i as S, t as C } from "./overlay-DnqFLZTc.js";
|
|
5
|
+
import { n as w, r as T } from "./DropdownMenu-CA9fB0uZ.js";
|
|
6
|
+
//#region virtual:nuxt-ui-templates/ui/popover.ts
|
|
7
|
+
var E = { slots: {
|
|
8
|
+
content: "bg-default shadow-lg rounded-md ring ring-default data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)] origin-(--reka-popover-content-transform-origin) focus:outline-none pointer-events-auto",
|
|
9
|
+
arrow: "fill-bg stroke-default"
|
|
10
|
+
} }, D = {
|
|
11
|
+
__name: "Popover",
|
|
12
|
+
props: {
|
|
13
|
+
mode: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: !1,
|
|
16
|
+
default: "click"
|
|
17
|
+
},
|
|
18
|
+
content: {
|
|
19
|
+
type: Object,
|
|
20
|
+
required: !1
|
|
21
|
+
},
|
|
22
|
+
arrow: {
|
|
23
|
+
type: [Boolean, Object],
|
|
24
|
+
required: !1
|
|
25
|
+
},
|
|
26
|
+
portal: {
|
|
27
|
+
type: [Boolean, String],
|
|
28
|
+
required: !1,
|
|
29
|
+
skipCheck: !0,
|
|
30
|
+
default: !0
|
|
31
|
+
},
|
|
32
|
+
reference: {
|
|
33
|
+
type: null,
|
|
34
|
+
required: !1
|
|
35
|
+
},
|
|
36
|
+
dismissible: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
required: !1,
|
|
39
|
+
default: !0
|
|
40
|
+
},
|
|
41
|
+
class: {
|
|
42
|
+
type: null,
|
|
43
|
+
required: !1
|
|
44
|
+
},
|
|
45
|
+
ui: {
|
|
46
|
+
type: null,
|
|
47
|
+
required: !1
|
|
48
|
+
},
|
|
49
|
+
defaultOpen: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
required: !1
|
|
52
|
+
},
|
|
53
|
+
open: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
required: !1
|
|
56
|
+
},
|
|
57
|
+
modal: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
required: !1
|
|
60
|
+
},
|
|
61
|
+
openDelay: {
|
|
62
|
+
type: Number,
|
|
63
|
+
required: !1,
|
|
64
|
+
default: 0
|
|
65
|
+
},
|
|
66
|
+
closeDelay: {
|
|
67
|
+
type: Number,
|
|
68
|
+
required: !1,
|
|
69
|
+
default: 0
|
|
70
|
+
},
|
|
71
|
+
enableTouch: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
required: !1
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
emits: ["close:prevent", "update:open"],
|
|
77
|
+
setup(D, { emit: O }) {
|
|
78
|
+
let k = D, A = O, j = y(), M = n("popover", k), N = e(), P = M.mode === "hover" ? t(M, "defaultOpen", "open", "openDelay", "closeDelay", "enableTouch") : t(M, "defaultOpen", "open", "modal"), F = i(P, A), I = S(g(() => M.portal)), L = g(() => o(M.content, {
|
|
79
|
+
side: "bottom",
|
|
80
|
+
sideOffset: 8,
|
|
81
|
+
collisionPadding: 8
|
|
82
|
+
})), R = u(() => M.dismissible ? { pointerDownOutside: C } : ["interactOutside", "escapeKeyDown"].reduce((e, t) => (e[t] = (e) => {
|
|
83
|
+
e.preventDefault(), A("close:prevent");
|
|
84
|
+
}, e), {})), z = g(() => o(M.arrow, { rounded: !0 })), B = u(() => a({
|
|
85
|
+
extend: E,
|
|
86
|
+
...N.ui?.popover || {}
|
|
87
|
+
})({ side: L.value.side })), V = u(() => M.mode === "hover" ? w : T);
|
|
88
|
+
return (e, t) => (_(), c(l(V).Root, h(b(l(F))), {
|
|
89
|
+
default: f(({ open: t, close: n }) => [
|
|
90
|
+
j.default ? (_(), c(l(V).Trigger, {
|
|
91
|
+
key: 0,
|
|
92
|
+
"as-child": "",
|
|
93
|
+
class: x(l(M).class)
|
|
94
|
+
}, {
|
|
95
|
+
default: f(() => [p(e.$slots, "default", { open: t })]),
|
|
96
|
+
_: 2
|
|
97
|
+
}, 1032, ["class"])) : d("", !0),
|
|
98
|
+
"Anchor" in V.value && j.anchor ? (_(), c(l(V).Anchor, {
|
|
99
|
+
key: 1,
|
|
100
|
+
"as-child": ""
|
|
101
|
+
}, {
|
|
102
|
+
default: f(() => [p(e.$slots, "anchor", h(b(n ? { close: n } : {})))]),
|
|
103
|
+
_: 2
|
|
104
|
+
}, 1024)) : d("", !0),
|
|
105
|
+
m(l(V).Portal, h(b(l(I))), {
|
|
106
|
+
default: f(() => [m(l(r), null, {
|
|
107
|
+
default: f(() => [m(l(V).Content, s(L.value, {
|
|
108
|
+
reference: l(M).reference ?? l(M).content?.reference,
|
|
109
|
+
"data-slot": "content",
|
|
110
|
+
class: B.value.content({ class: [!j.default && l(M).class, l(M).ui?.content] })
|
|
111
|
+
}, v(R.value)), {
|
|
112
|
+
default: f(() => [p(e.$slots, "content", h(b(n ? { close: n } : {}))), l(M).arrow ? (_(), c(l(V).Arrow, s({ key: 0 }, z.value, {
|
|
113
|
+
"data-slot": "arrow",
|
|
114
|
+
class: B.value.arrow({ class: l(M).ui?.arrow })
|
|
115
|
+
}), null, 16, ["class"])) : d("", !0)]),
|
|
116
|
+
_: 2
|
|
117
|
+
}, 1040, ["reference", "class"])]),
|
|
118
|
+
_: 2
|
|
119
|
+
}, 1024)]),
|
|
120
|
+
_: 2
|
|
121
|
+
}, 1040)
|
|
122
|
+
]),
|
|
123
|
+
_: 3
|
|
124
|
+
}, 16));
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
//#endregion
|
|
128
|
+
export { D as t };
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { t as e } from "./Button-BT3ztSPx.js";
|
|
2
|
+
import { st as t } from "./Search-BEgCe9Aj.js";
|
|
3
|
+
import { d as n, i as r, r as i } from "./studioContext-I8HozGU1.js";
|
|
4
|
+
import { $r as a, A as o, B as s, Ci as c, E as l, In as u, K as d, M as f, N as p, Nn as m, Or as h, V as g, Yr as _, fa as v, gn as y, k as b, o as x, ui as S, un as C } from "./runtime-core.esm-bundler-DKFA9Rep.js";
|
|
5
|
+
import { n as w } from "./overlay-DnqFLZTc.js";
|
|
6
|
+
import { t as T } from "./Switch-qKl1aDn7.js";
|
|
7
|
+
import { t as E } from "./FormField-CgM6l2Yn.js";
|
|
8
|
+
import { r as D } from "./leaveGuards-D22fTGgr.js";
|
|
9
|
+
import { t as O } from "./english-Cs_Adu-u.js";
|
|
10
|
+
import { t as ee } from "./Alert-D0D24z_a.js";
|
|
11
|
+
import { t as k } from "./Modal-D6hSvxHd.js";
|
|
12
|
+
import { t as A } from "./useDocumentMessage-BAWvc38w.js";
|
|
13
|
+
//#region src/publication/usePublicationIntent.ts
|
|
14
|
+
function j(e, i) {
|
|
15
|
+
let { t: o } = t(), s = n().requests.publication, c = S(null), u = S(!1), d = A(), f = d.message, p = S(e.initialSchedule ?? !1), m = S(""), h = S(""), g = l(() => e.selection.every((e) => e.action === "unpublish")), _ = l(() => g.value ? o("publication.takeContentOffline") : o("publication.reviewPublication")), v = !1;
|
|
16
|
+
a(() => {
|
|
17
|
+
v = !0;
|
|
18
|
+
}), D(async () => !u.value), C(() => void y());
|
|
19
|
+
async function y() {
|
|
20
|
+
if (!(u.value || v)) {
|
|
21
|
+
u.value = !0, d.clear(), c.value = null;
|
|
22
|
+
try {
|
|
23
|
+
if (await e.prepare?.(), v) return;
|
|
24
|
+
let t = await s.plan({ payload: e.selection });
|
|
25
|
+
v || (c.value = t);
|
|
26
|
+
} catch (e) {
|
|
27
|
+
v || d.set(() => r(e, o, o("publication.couldNotCheckPublication")));
|
|
28
|
+
} finally {
|
|
29
|
+
v || (u.value = !1);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
async function b() {
|
|
34
|
+
let e = c.value;
|
|
35
|
+
if (!e || e.issues.length || u.value || v) return;
|
|
36
|
+
let t = p.value;
|
|
37
|
+
u.value = !0, d.clear();
|
|
38
|
+
try {
|
|
39
|
+
if (t) {
|
|
40
|
+
let t = new Date(m.value);
|
|
41
|
+
if (!m.value || !Number.isFinite(t.getTime()) || t.getTime() <= Date.now()) {
|
|
42
|
+
d.set(() => o("publication.chooseAFutureDateAndTime"));
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
await s.createRelease({ payload: {
|
|
46
|
+
label: h.value.trim(),
|
|
47
|
+
changes: e.changes,
|
|
48
|
+
stamp: e.stamp,
|
|
49
|
+
publishAt: t.toISOString()
|
|
50
|
+
} });
|
|
51
|
+
} else await s.apply({ payload: {
|
|
52
|
+
changes: e.changes,
|
|
53
|
+
stamp: e.stamp
|
|
54
|
+
} });
|
|
55
|
+
v || i(t);
|
|
56
|
+
} catch (e) {
|
|
57
|
+
v || d.set(() => r(e, o, o("publication.publicationCouldNotBeCompleted")));
|
|
58
|
+
} finally {
|
|
59
|
+
v || (u.value = !1);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
plan: c,
|
|
64
|
+
busy: u,
|
|
65
|
+
error: f,
|
|
66
|
+
scheduled: p,
|
|
67
|
+
date: m,
|
|
68
|
+
label: h,
|
|
69
|
+
takingOffline: g,
|
|
70
|
+
title: _,
|
|
71
|
+
load: y,
|
|
72
|
+
apply: b
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/publication/publicationState.ts
|
|
77
|
+
function M(e, t = O) {
|
|
78
|
+
return t(`documents.publication.${e}`);
|
|
79
|
+
}
|
|
80
|
+
function N(e, t) {
|
|
81
|
+
return e.publishedPath ? t || e.status !== "published" ? "changes" : "published" : "draft";
|
|
82
|
+
}
|
|
83
|
+
function P(e, t, n = O) {
|
|
84
|
+
switch (e.status) {
|
|
85
|
+
case "pending": return n(t === "publish" ? "publication.scheduledPublish" : "publication.scheduledOffline");
|
|
86
|
+
case "completed": return n(t === "publish" ? "documents.publication.published" : "publication.takenOffline");
|
|
87
|
+
case "failed": return n("publication.failed");
|
|
88
|
+
case "cancelled": return n("publication.cancelled");
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function F(e, t = O) {
|
|
92
|
+
switch (e) {
|
|
93
|
+
case "details": return t("documents.workspace.details");
|
|
94
|
+
case "content": return t("documents.workspace.content");
|
|
95
|
+
case "new": return t("publication.new");
|
|
96
|
+
case "offline": return t("publication.takenOffline");
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/publication/PublicationActionDialog.vue?vue&type=script&setup=true&lang.ts
|
|
101
|
+
var I = { class: "space-y-5" }, L = {
|
|
102
|
+
key: 0,
|
|
103
|
+
class: "text-sm text-muted",
|
|
104
|
+
role: "status"
|
|
105
|
+
}, R = { class: "text-sm text-muted" }, z = { class: "divide-y divide-default rounded-lg border border-default" }, B = { class: "text-sm font-medium" }, V = { class: "text-xs text-muted" }, H = { class: "wrap-break-word font-mono text-xs text-muted" }, U = {
|
|
106
|
+
key: 0,
|
|
107
|
+
class: "text-xs text-muted"
|
|
108
|
+
}, W = {
|
|
109
|
+
key: 0,
|
|
110
|
+
class: "space-y-2",
|
|
111
|
+
role: "alert"
|
|
112
|
+
}, G = { class: "text-sm font-medium text-error" }, K = {
|
|
113
|
+
key: 1,
|
|
114
|
+
class: "text-sm text-muted"
|
|
115
|
+
}, q = {
|
|
116
|
+
key: 2,
|
|
117
|
+
class: "space-y-3"
|
|
118
|
+
}, J = { class: "text-xs text-muted" }, Y = { class: "flex w-full justify-end gap-2" }, X = /* @__PURE__ */ d({
|
|
119
|
+
__name: "PublicationActionDialog",
|
|
120
|
+
props: {
|
|
121
|
+
selection: {},
|
|
122
|
+
prepare: { type: Function },
|
|
123
|
+
initialSchedule: { type: Boolean },
|
|
124
|
+
confirmationTitle: {},
|
|
125
|
+
confirmationDescription: {},
|
|
126
|
+
confirmLabel: {},
|
|
127
|
+
returnFocus: { type: Function }
|
|
128
|
+
},
|
|
129
|
+
emits: ["close", "completed"],
|
|
130
|
+
setup(n, { emit: a }) {
|
|
131
|
+
let { t: l } = t(), d = i(), S = n, C = a, { plan: D, busy: O, error: A, scheduled: M, date: N, label: P, title: X, takingOffline: Z, load: te, apply: ne } = j(S, (e) => C("completed", e)), re = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
132
|
+
return (t, i) => {
|
|
133
|
+
let a = u("RouterLink"), S = T, j = w, Q = E, ie = ee, $ = e, ae = k;
|
|
134
|
+
return y(), o(ae, {
|
|
135
|
+
open: !0,
|
|
136
|
+
title: n.confirmationTitle ?? c(X),
|
|
137
|
+
description: n.confirmationDescription ?? c(l)("publication.checkWhatWillChangeOnYourWebsite"),
|
|
138
|
+
content: { onCloseAutoFocus: n.returnFocus },
|
|
139
|
+
dismissible: !c(O),
|
|
140
|
+
"onUpdate:open": i[4] ||= (e) => !e && !c(O) && C("close")
|
|
141
|
+
}, {
|
|
142
|
+
body: h(() => [b("div", I, [
|
|
143
|
+
c(O) && !c(D) ? (y(), p("p", L, v(c(l)("publication.checkingContentAndPublicAddresses")), 1)) : f("", !0),
|
|
144
|
+
c(D) ? (y(), p(x, { key: 1 }, [
|
|
145
|
+
b("p", R, v(c(l)("publication.selectedDocuments", { count: c(D).changes.length })), 1),
|
|
146
|
+
b("div", z, [(y(!0), p(x, null, m(c(D).documents, (e) => (y(), p("div", {
|
|
147
|
+
key: e.documentId,
|
|
148
|
+
class: "space-y-1 p-3"
|
|
149
|
+
}, [
|
|
150
|
+
b("p", B, v(e.title || c(d).document.untitled), 1),
|
|
151
|
+
b("p", V, v(e.sections.map((e) => c(F)(e, c(l))).join(", ") || c(l)("publication.publicAddressChanges")), 1),
|
|
152
|
+
b("p", H, v(e.beforePath ?? c(l)("publication.offline")) + " → " + v(e.afterPath ?? c(l)("publication.offline")), 1),
|
|
153
|
+
e.beforePath && e.afterPath && e.beforePath !== e.afterPath ? (y(), p("p", U, v(c(l)("publication.thePreviousAddressWillRedirectWhenIt")), 1)) : f("", !0)
|
|
154
|
+
]))), 128))]),
|
|
155
|
+
c(D).issues.length ? (y(), p("div", W, [b("h3", G, v(c(l)("publication.resolveTheseIssuesFirst")), 1), (y(!0), p(x, null, m(c(D).issues, (e, t) => (y(), p("p", {
|
|
156
|
+
key: t,
|
|
157
|
+
class: "text-sm text-error"
|
|
158
|
+
}, [e.documentId ? (y(), o(a, {
|
|
159
|
+
key: 0,
|
|
160
|
+
to: {
|
|
161
|
+
name: "editor",
|
|
162
|
+
params: { documentId: e.documentId }
|
|
163
|
+
},
|
|
164
|
+
class: "underline"
|
|
165
|
+
}, {
|
|
166
|
+
default: h(() => [s(v(c(l)("publication.openDocument")), 1)]),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 8, ["to"])) : f("", !0), s(" " + v(c(r)(e, c(l))), 1)]))), 128))])) : f("", !0),
|
|
169
|
+
c(D).changes.some((e) => e.action === "unpublish") ? (y(), p("p", K, v(c(l)("publication.documentsRemainAvailableInStudioOutstandingPublication")), 1)) : f("", !0),
|
|
170
|
+
g(S, {
|
|
171
|
+
modelValue: c(M),
|
|
172
|
+
"onUpdate:modelValue": i[0] ||= (e) => _(M) ? M.value = e : null,
|
|
173
|
+
label: c(l)("publication.scheduleForLater"),
|
|
174
|
+
disabled: c(O)
|
|
175
|
+
}, null, 8, [
|
|
176
|
+
"modelValue",
|
|
177
|
+
"label",
|
|
178
|
+
"disabled"
|
|
179
|
+
]),
|
|
180
|
+
c(M) ? (y(), p("div", q, [
|
|
181
|
+
n.selection.length > 1 ? (y(), o(Q, {
|
|
182
|
+
key: 0,
|
|
183
|
+
label: c(l)("publication.nameOptional")
|
|
184
|
+
}, {
|
|
185
|
+
default: h(() => [g(j, {
|
|
186
|
+
modelValue: c(P),
|
|
187
|
+
"onUpdate:modelValue": i[1] ||= (e) => _(P) ? P.value = e : null,
|
|
188
|
+
maxlength: 120,
|
|
189
|
+
class: "w-full"
|
|
190
|
+
}, null, 8, ["modelValue"])]),
|
|
191
|
+
_: 1
|
|
192
|
+
}, 8, ["label"])) : f("", !0),
|
|
193
|
+
g(Q, { label: c(l)("publication.dateAndTime") }, {
|
|
194
|
+
default: h(() => [g(j, {
|
|
195
|
+
modelValue: c(N),
|
|
196
|
+
"onUpdate:modelValue": i[2] ||= (e) => _(N) ? N.value = e : null,
|
|
197
|
+
type: "datetime-local",
|
|
198
|
+
class: "w-full"
|
|
199
|
+
}, null, 8, ["modelValue"])]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 8, ["label"]),
|
|
202
|
+
b("p", J, v(c(l)("publication.scheduleExplanation", { timeZone: c(re) })), 1)
|
|
203
|
+
])) : f("", !0)
|
|
204
|
+
], 64)) : f("", !0),
|
|
205
|
+
c(A) ? (y(), o(ie, {
|
|
206
|
+
key: 2,
|
|
207
|
+
color: "error",
|
|
208
|
+
title: c(l)("publication.publicationNeedsAttention"),
|
|
209
|
+
description: c(A),
|
|
210
|
+
role: "alert"
|
|
211
|
+
}, null, 8, ["title", "description"])) : f("", !0)
|
|
212
|
+
])]),
|
|
213
|
+
footer: h(() => [b("div", Y, [
|
|
214
|
+
g($, {
|
|
215
|
+
color: "neutral",
|
|
216
|
+
variant: "ghost",
|
|
217
|
+
label: c(d).actions.cancel,
|
|
218
|
+
disabled: c(O),
|
|
219
|
+
onClick: i[3] ||= (e) => C("close")
|
|
220
|
+
}, null, 8, ["label", "disabled"]),
|
|
221
|
+
g($, {
|
|
222
|
+
color: "neutral",
|
|
223
|
+
variant: "outline",
|
|
224
|
+
label: c(l)("publication.checkAgain"),
|
|
225
|
+
disabled: c(O),
|
|
226
|
+
onClick: c(te)
|
|
227
|
+
}, null, 8, [
|
|
228
|
+
"label",
|
|
229
|
+
"disabled",
|
|
230
|
+
"onClick"
|
|
231
|
+
]),
|
|
232
|
+
g($, {
|
|
233
|
+
label: c(M) ? c(d).publication.schedule : c(Z) ? c(d).publication.takeOffline : n.selection.length === 1 ? n.confirmLabel ?? c(d).publication.publish : c(l)("publication.publishTogether"),
|
|
234
|
+
loading: c(O),
|
|
235
|
+
disabled: !c(D) || !!c(D).issues.length || c(O),
|
|
236
|
+
onClick: c(ne)
|
|
237
|
+
}, null, 8, [
|
|
238
|
+
"label",
|
|
239
|
+
"loading",
|
|
240
|
+
"disabled",
|
|
241
|
+
"onClick"
|
|
242
|
+
])
|
|
243
|
+
])]),
|
|
244
|
+
_: 1
|
|
245
|
+
}, 8, [
|
|
246
|
+
"title",
|
|
247
|
+
"description",
|
|
248
|
+
"content",
|
|
249
|
+
"dismissible"
|
|
250
|
+
]);
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
//#endregion
|
|
255
|
+
export { P as i, N as n, M as r, X as t };
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { dt as e } from "./Search-BEgCe9Aj.js";
|
|
2
|
+
//#region ../model/src/Routes.ts
|
|
3
|
+
function t(t, r, i) {
|
|
4
|
+
let a = new Map(t.map((e) => [e.identity.documentId, e])), s = new Map(r.map((e) => [e.collection, e.pattern])), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set(), d = [], f = /* @__PURE__ */ new Set(), p = i?.prefixDefault ? `/${i.defaultLocale}` : "";
|
|
5
|
+
function m(e, t, n) {
|
|
6
|
+
d.push(n.details ? {
|
|
7
|
+
code: e,
|
|
8
|
+
documentId: t,
|
|
9
|
+
message: n.message,
|
|
10
|
+
details: n.details
|
|
11
|
+
} : {
|
|
12
|
+
code: e,
|
|
13
|
+
documentId: t,
|
|
14
|
+
message: n.message
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function h(t) {
|
|
18
|
+
let { documentId: r, collection: d } = t.identity;
|
|
19
|
+
if (l.has(r)) return l.get(r);
|
|
20
|
+
if (u.has(r)) return m("cycle", r, e("errors.route.cycle"));
|
|
21
|
+
let g = s.get(d);
|
|
22
|
+
if (!g) return m("collection", r, e("errors.route.collection", { collection: d }));
|
|
23
|
+
if (!g.startsWith("/") || g.startsWith("//") || !g.endsWith("/:path*")) return m("pattern", r, e("errors.route.pattern", { collection: d }));
|
|
24
|
+
let _ = `${p}${g.slice(0, -7)}`;
|
|
25
|
+
u.add(r);
|
|
26
|
+
let v = [];
|
|
27
|
+
if (t.placement.kind === "home") {
|
|
28
|
+
let t = d;
|
|
29
|
+
f.has(t) && m("home", r, e("errors.route.home")), f.add(t);
|
|
30
|
+
} else {
|
|
31
|
+
let n = a.get(t.placement.parentDocumentId);
|
|
32
|
+
if (!n || n.identity.collection !== d) return u.delete(r), m("parent", r, e("errors.route.parent"));
|
|
33
|
+
let i = h(n);
|
|
34
|
+
if (!i) {
|
|
35
|
+
u.delete(r);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
v = [...i.slice(_.length).split("/").filter(Boolean).map(decodeURIComponent), t.placement.slug];
|
|
39
|
+
}
|
|
40
|
+
u.delete(r);
|
|
41
|
+
let y = n(`${_}/${v.map(encodeURIComponent).join("/")}`);
|
|
42
|
+
return l.set(r, y), i && (o(y, i) !== i.defaultLocale || c(y, i) !== y) && m("locale", r, e("errors.route.locale", { path: y })), y;
|
|
43
|
+
}
|
|
44
|
+
let g = [], _ = /* @__PURE__ */ new Map();
|
|
45
|
+
for (let n of t) {
|
|
46
|
+
let t = h(n);
|
|
47
|
+
if (!t) continue;
|
|
48
|
+
let r = _.get(t);
|
|
49
|
+
r && r !== n.identity.documentId ? m("collision", n.identity.documentId, e("errors.route.collision", { path: t })) : _.set(t, n.identity.documentId), g.push({
|
|
50
|
+
documentId: n.identity.documentId,
|
|
51
|
+
path: t
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
routes: g,
|
|
56
|
+
issues: d
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function n(e) {
|
|
60
|
+
return e === "/" ? e : e.replace(/\/$/u, "");
|
|
61
|
+
}
|
|
62
|
+
function r(e) {
|
|
63
|
+
let t = e.search(/[?#]/u), n = t === -1 ? e : e.slice(0, t);
|
|
64
|
+
if (!n.startsWith("/") || n.startsWith("//")) throw Error("A locale path must start with one slash.");
|
|
65
|
+
return {
|
|
66
|
+
pathname: n,
|
|
67
|
+
suffix: t === -1 ? "" : e.slice(t)
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function i(e, t) {
|
|
71
|
+
let n = e.split("/")[1] ?? "";
|
|
72
|
+
return t.supported.some((e) => e.code === n) ? n : void 0;
|
|
73
|
+
}
|
|
74
|
+
function a(e, t) {
|
|
75
|
+
let { pathname: n, suffix: a } = r(e);
|
|
76
|
+
if (!t) return e;
|
|
77
|
+
let o = i(n, t);
|
|
78
|
+
return `${o ? n.slice(o.length + 1) || "/" : n}${a}`;
|
|
79
|
+
}
|
|
80
|
+
function o(e, t) {
|
|
81
|
+
if (t) return i(r(e).pathname, t) ?? t.defaultLocale;
|
|
82
|
+
}
|
|
83
|
+
function s(e, t, n) {
|
|
84
|
+
let { pathname: i, suffix: a } = r(e);
|
|
85
|
+
if (!n) return e;
|
|
86
|
+
if (!n.supported.some((e) => e.code === t)) throw Error(`Unknown locale "${t}".`);
|
|
87
|
+
return `${`${n.prefixDefault || t !== n.defaultLocale ? `/${t}` : ""}${i === "/" ? "" : i}` || "/"}${a}`;
|
|
88
|
+
}
|
|
89
|
+
function c(e, t) {
|
|
90
|
+
let { pathname: n } = r(e);
|
|
91
|
+
if (!t) return e;
|
|
92
|
+
let o = i(n, t);
|
|
93
|
+
return s(a(e, t), o ?? t.defaultLocale, t);
|
|
94
|
+
}
|
|
95
|
+
function l(e, t, n) {
|
|
96
|
+
return s(a(e, n), t, n);
|
|
97
|
+
}
|
|
98
|
+
function u(e, t) {
|
|
99
|
+
return t ? l(e, t.defaultLocale, t) : e;
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
export { l as i, o as n, t as r, u as t };
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { E as e, O as t } from "./Button-BT3ztSPx.js";
|
|
2
|
+
import { A as n, Ci as r, Cr as i, E as a, K as o, Or as s, Pn as c, V as l, en as u, gn as d, mn as f, un as p } from "./runtime-core.esm-bundler-DKFA9Rep.js";
|
|
3
|
+
import { o as m } from "./overlay-DnqFLZTc.js";
|
|
4
|
+
import { a as h } from "./DropdownMenu-CA9fB0uZ.js";
|
|
5
|
+
import { a as g, i as _, o as v } from "./utils-mdScC0v0.js";
|
|
6
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.6.0-rc.10_typescript-native-bridge@6.0.3-bridge.18.tsgo.7.0.2_/node_modules/reka-ui/dist/RovingFocus/RovingFocusItem.js
|
|
7
|
+
var y = /* @__PURE__ */ o({
|
|
8
|
+
__name: "RovingFocusItem",
|
|
9
|
+
props: {
|
|
10
|
+
tabStopId: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: !1
|
|
13
|
+
},
|
|
14
|
+
focusable: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
required: !1,
|
|
17
|
+
default: !0
|
|
18
|
+
},
|
|
19
|
+
active: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
required: !1
|
|
22
|
+
},
|
|
23
|
+
allowShiftKey: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
required: !1
|
|
26
|
+
},
|
|
27
|
+
asChild: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
required: !1
|
|
30
|
+
},
|
|
31
|
+
as: {
|
|
32
|
+
type: null,
|
|
33
|
+
required: !1,
|
|
34
|
+
default: "span"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
setup(o) {
|
|
38
|
+
let y = o, b = h(), x = t(), S = a(() => y.tabStopId || x), C = a(() => b.currentTabStopId.value === S.value), { getItems: w, CollectionItem: T } = m();
|
|
39
|
+
p(() => {
|
|
40
|
+
y.focusable && b.onFocusableItemAdd();
|
|
41
|
+
}), f(() => {
|
|
42
|
+
y.focusable && b.onFocusableItemRemove();
|
|
43
|
+
}), i(() => y.focusable, (e, t) => {
|
|
44
|
+
e !== t && (e ? b.onFocusableItemAdd() : b.onFocusableItemRemove());
|
|
45
|
+
});
|
|
46
|
+
function E(e) {
|
|
47
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
48
|
+
b.onItemShiftTab();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (e.target !== e.currentTarget) return;
|
|
52
|
+
let t = g(e, b.orientation.value, b.dir.value);
|
|
53
|
+
if (t !== void 0) {
|
|
54
|
+
if (e.metaKey || e.ctrlKey || e.altKey || !y.allowShiftKey && e.shiftKey) return;
|
|
55
|
+
e.preventDefault();
|
|
56
|
+
let n = [...w().map((e) => e.ref).filter((e) => e.dataset.disabled !== "")];
|
|
57
|
+
if (t === "last") n.reverse();
|
|
58
|
+
else if (t === "prev" || t === "next") {
|
|
59
|
+
t === "prev" && n.reverse();
|
|
60
|
+
let r = n.indexOf(e.currentTarget);
|
|
61
|
+
n = b.loop.value ? v(n, r + 1) : n.slice(r + 1);
|
|
62
|
+
}
|
|
63
|
+
u(() => _(n));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return (t, i) => (d(), n(r(T), null, {
|
|
67
|
+
default: s(() => [l(r(e), {
|
|
68
|
+
tabindex: C.value ? 0 : -1,
|
|
69
|
+
"data-orientation": r(b).orientation.value,
|
|
70
|
+
"data-active": t.active ? "" : void 0,
|
|
71
|
+
"data-disabled": t.focusable ? void 0 : "",
|
|
72
|
+
as: t.as,
|
|
73
|
+
"as-child": t.asChild,
|
|
74
|
+
onMousedown: i[0] ||= (e) => {
|
|
75
|
+
t.focusable ? r(b).onItemFocus(S.value) : e.preventDefault();
|
|
76
|
+
},
|
|
77
|
+
onFocus: i[1] ||= (e) => r(b).onItemFocus(S.value),
|
|
78
|
+
onKeydown: E
|
|
79
|
+
}, {
|
|
80
|
+
default: s(() => [c(t.$slots, "default")]),
|
|
81
|
+
_: 3
|
|
82
|
+
}, 8, [
|
|
83
|
+
"tabindex",
|
|
84
|
+
"data-orientation",
|
|
85
|
+
"data-active",
|
|
86
|
+
"data-disabled",
|
|
87
|
+
"as",
|
|
88
|
+
"as-child"
|
|
89
|
+
])]),
|
|
90
|
+
_: 3
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
//#endregion
|
|
95
|
+
export { y as t };
|
|
Binary file
|
|
Binary file
|