convex-cms 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -101
- package/admin/src/components/BreakingChangesWarningDialog.tsx +5 -5
- package/admin/src/components/BulkOperationModal.tsx +14 -14
- package/admin/src/components/ContentEntryEditor.tsx +8 -8
- package/admin/src/components/ContentTypeFormModal.tsx +122 -82
- package/admin/src/components/Header.tsx +5 -2
- package/admin/src/components/SchemaDriftWarning.tsx +126 -0
- package/admin/src/components/TaxonomyEditor.tsx +2 -2
- package/admin/src/components/TermTree.tsx +3 -3
- package/admin/src/components/UploadDropzone.tsx +7 -7
- package/admin/src/components/VersionCompare.tsx +13 -13
- package/admin/src/components/VersionHistory.tsx +2 -2
- package/admin/src/components/VersionRollbackModal.tsx +5 -5
- package/admin/src/components/cmsds/CmsButton.tsx +2 -2
- package/admin/src/components/cmsds/CmsDialog.tsx +4 -1
- package/admin/src/components/cmsds/CmsStatusBadge.tsx +5 -5
- package/admin/src/components/fields/JsonField.tsx +1 -1
- package/admin/src/components/fields/ReferenceField.tsx +9 -9
- package/admin/src/components/fields/TagField.tsx +1 -1
- package/admin/src/contexts/SettingsConfigContext.tsx +10 -3
- package/admin/src/embed/index.tsx +29 -9
- package/admin/src/embed/pages/ContentTypeEntries.tsx +25 -0
- package/admin/src/embed/pages/Entry.tsx +114 -0
- package/admin/src/embed/pages/Media.tsx +3 -1
- package/admin/src/embed/pages/NewEntry.tsx +83 -0
- package/admin/src/embed/pages/index.ts +3 -0
- package/admin/src/pages/ContentPage.tsx +27 -20
- package/admin/src/pages/ContentTypeEntriesPage.tsx +466 -0
- package/admin/src/pages/ContentTypesPage.tsx +65 -19
- package/admin/src/pages/DashboardPage.tsx +3 -0
- package/admin/src/pages/SettingsPage.tsx +4 -4
- package/admin/src/pages/index.ts +1 -0
- package/admin/src/routes/__root.tsx +10 -10
- package/admin/src/routes/entries/$entryId.tsx +1 -1
- package/admin/src/routes/entries/type/$contentTypeId.tsx +1 -1
- package/admin/src/styles/globals.css +31 -5
- package/admin/src/styles/tailwind-config.css +25 -0
- package/admin/src/styles/theme.css +50 -0
- package/admin-dist/nitro.json +1 -1
- package/admin-dist/public/assets/CmsEmptyState-6-PLaXtD.js +1 -0
- package/admin-dist/public/assets/CmsPageHeader-SoF4Epu9.js +1 -0
- package/admin-dist/public/assets/CmsStatusBadge-D7kYaohx.js +1 -0
- package/admin-dist/public/assets/{CmsSurface-DBy5Lumx.js → CmsSurface-BvksBm6W.js} +1 -1
- package/admin-dist/public/assets/CmsToolbar-DlZPMe2B.js +1 -0
- package/admin-dist/public/assets/ContentEntryEditor-C6n9xLS9.js +4 -0
- package/admin-dist/public/assets/TaxonomyFilter-CFX1_g8s.js +1 -0
- package/admin-dist/public/assets/_contentTypeId-DTv8UoTp.js +1 -0
- package/admin-dist/public/assets/_entryId-D3lr5Dvy.js +1 -0
- package/admin-dist/public/assets/alert-BAHTL6ao.js +1 -0
- package/admin-dist/public/assets/badge-oJv4Eai8.js +1 -0
- package/admin-dist/public/assets/{circle-check-big-CpLxAvEj.js → circle-check-big-3OHxNDhO.js} +1 -1
- package/admin-dist/public/assets/command-DwgQs69u.js +1 -0
- package/admin-dist/public/assets/content-CKQ4QwW2.js +1 -0
- package/admin-dist/public/assets/content-types-BrttaLpc.js +1 -0
- package/admin-dist/public/assets/globals-CoCRjt0K.css +1 -0
- package/admin-dist/public/assets/index-DOkgTSx0.js +1 -0
- package/admin-dist/public/assets/main-DV6oxWnU.js +102 -0
- package/admin-dist/public/assets/media-B2i-mCbx.js +1 -0
- package/admin-dist/public/assets/new._contentTypeId-VF63rpic.js +1 -0
- package/admin-dist/public/assets/pencil-CX1CiTDD.js +1 -0
- package/admin-dist/public/assets/refresh-cw-Cm-YOeFI.js +1 -0
- package/admin-dist/public/assets/{rotate-ccw-BZpZtw0N.js → rotate-ccw-B45JsL5f.js} +1 -1
- package/admin-dist/public/assets/scroll-area-b3A1HHR7.js +1 -0
- package/admin-dist/public/assets/{search-BvgYr-c9.js → search-DKKh_DdH.js} +1 -1
- package/admin-dist/public/assets/settings-CGVDEV1r.js +1 -0
- package/admin-dist/public/assets/switch-BTMY8Qnk.js +1 -0
- package/admin-dist/public/assets/tabs-DUQwUoIb.js +1 -0
- package/admin-dist/public/assets/tanstack-adapter-f7AHmQ5L.js +1 -0
- package/admin-dist/public/assets/taxonomies-DvMppdiD.js +1 -0
- package/admin-dist/public/assets/trash-D7e0uKd9.js +1 -0
- package/admin-dist/public/assets/{useBreadcrumbLabel-D00rvqjw.js → useBreadcrumbLabel-CF2KYwsw.js} +1 -1
- package/admin-dist/public/assets/usePermissions-DWBImEOW.js +1 -0
- package/admin-dist/server/_chunks/_libs/@date-fns/tz.mjs +2 -2
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-avatar.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-collection.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-context.mjs +2 -2
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-dialog.mjs +2 -2
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-label.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-menu.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-popover.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-primitive.mjs +6 -72
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-select.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-separator.mjs +1 -1
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-slot.mjs +20 -435
- package/admin-dist/server/_chunks/_libs/@radix-ui/react-visually-hidden.mjs +30 -3
- package/admin-dist/server/_chunks/_libs/@tanstack/history.mjs +0 -376
- package/admin-dist/server/_chunks/_libs/@tanstack/react-router.mjs +168 -383
- package/admin-dist/server/_chunks/_libs/@tanstack/router-core.mjs +451 -1195
- package/admin-dist/server/_chunks/_libs/react-dom.mjs +5 -5
- package/admin-dist/server/_chunks/_libs/react.mjs +2 -2
- package/admin-dist/server/_libs/cmdk.mjs +1 -1
- package/admin-dist/server/_libs/convex.mjs +3 -3
- package/admin-dist/server/_libs/cookie-es.mjs +1 -58
- package/admin-dist/server/_libs/date-fns.mjs +1 -1
- package/admin-dist/server/_libs/lucide-react.mjs +117 -103
- package/admin-dist/server/_libs/seroval-plugins.mjs +1 -58
- package/admin-dist/server/_libs/seroval.mjs +1 -1765
- package/admin-dist/server/_libs/zod.mjs +1 -1
- package/admin-dist/server/_ssr/CmsEmptyState-BM8DghTl.mjs +38 -0
- package/admin-dist/server/_ssr/{CmsPageHeader-ClNPU7Up.mjs → CmsPageHeader-BHUmrIWD.mjs} +1 -1
- package/admin-dist/server/_ssr/{CmsStatusBadge-CojMbrY7.mjs → CmsStatusBadge-D0Zb0oRl.mjs} +7 -7
- package/admin-dist/server/_ssr/{CmsSurface-Dcv440rp.mjs → CmsSurface-B2eBr-47.mjs} +1 -1
- package/admin-dist/server/_ssr/{CmsToolbar-BKv1nL6u.mjs → CmsToolbar-BCrwg7OL.mjs} +2 -3
- package/admin-dist/server/_ssr/{ContentEntryEditor-weiXSBdZ.mjs → ContentEntryEditor-Cjfm0uhr.mjs} +46 -49
- package/admin-dist/server/_ssr/{TaxonomyFilter-BPQ57Mwk.mjs → TaxonomyFilter-C4pD0kfM.mjs} +4 -5
- package/admin-dist/server/_ssr/{_contentTypeId-DyyauLOs.mjs → _contentTypeId-CiDiX-p7.mjs} +34 -43
- package/admin-dist/server/_ssr/{_entryId-9Cafwxmw.mjs → _entryId-9GxatOkL.mjs} +35 -47
- package/admin-dist/server/_ssr/_tanstack-start-manifest_v-CC7UrHKE.mjs +4 -0
- package/admin-dist/server/_ssr/badge-EI998zba.mjs +39 -0
- package/admin-dist/server/_ssr/{command-CEf8YBxY.mjs → command-BLAWQhUw.mjs} +2 -2
- package/admin-dist/server/_ssr/{config.server-D7JHDcDv.mjs → config.server-BOr7Jxr4.mjs} +5 -14
- package/admin-dist/server/_ssr/{content-ZFWVzO25.mjs → content-BHX39L4D.mjs} +63 -63
- package/admin-dist/server/_ssr/content-types-DCzrBhTH.mjs +459 -0
- package/admin-dist/server/_ssr/{index-BlSIlH4Z.mjs → index-DwM_5VNP.mjs} +114 -30
- package/admin-dist/server/_ssr/index.mjs +3459 -62
- package/admin-dist/server/_ssr/{media-CD2_NUMw.mjs → media-CbzgTRRQ.mjs} +31 -43
- package/admin-dist/server/_ssr/{new._contentTypeId-dmZy6PBX.mjs → new._contentTypeId-6Ph-Gtlw.mjs} +33 -45
- package/admin-dist/server/_ssr/router-vd1nySeP.mjs +3041 -0
- package/admin-dist/server/_ssr/{scroll-area-BH_1K-WT.mjs → scroll-area--B9snFTJ.mjs} +1 -1
- package/admin-dist/server/_ssr/{settings-DVdsoWoh.mjs → settings-DlTO2JSj.mjs} +34 -43
- package/admin-dist/server/_ssr/{switch-DX_X8vZl.mjs → switch-C05NgNW0.mjs} +1 -1
- package/admin-dist/server/_ssr/{tabs-4FWM0sn8.mjs → tabs-DAk2J5xy.mjs} +9 -10
- package/admin-dist/server/_ssr/{tanstack-adapter-D3ZcKtbY.mjs → tanstack-adapter-DWbaPByn.mjs} +15 -1
- package/admin-dist/server/_ssr/{taxonomies-BHFfO9Yr.mjs → taxonomies-B8nqce6u.mjs} +35 -44
- package/admin-dist/server/_ssr/{trash-9tUB2KwI.mjs → trash-zdlZgpTo.mjs} +30 -39
- package/admin-dist/server/_ssr/{useBreadcrumbLabel-DVme3DSb.mjs → useBreadcrumbLabel-DpEKyG1h.mjs} +1 -1
- package/admin-dist/server/_ssr/{usePermissions-zAQj-ruE.mjs → usePermissions-olYRd9S9.mjs} +1 -1
- package/admin-dist/server/index.mjs +168 -203
- package/dist/cli/templates/cmsClient.d.ts +1 -1
- package/dist/cli/templates/cmsClient.d.ts.map +1 -1
- package/dist/cli/templates/cmsClient.js +30 -11
- package/dist/cli/templates/cmsClient.js.map +1 -1
- package/dist/cli/templates/cmsConfig.d.ts +1 -1
- package/dist/cli/templates/cmsConfig.d.ts.map +1 -1
- package/dist/cli/templates/cmsConfig.js +3 -3
- package/dist/client/admin/contentLock.d.ts +4 -4
- package/dist/client/admin/contentLock.d.ts.map +1 -1
- package/dist/client/admin/contentLock.js +1 -1
- package/dist/client/admin/contentLock.js.map +1 -1
- package/dist/client/admin/contentTypes.d.ts +328 -290
- package/dist/client/admin/contentTypes.d.ts.map +1 -1
- package/dist/client/admin/contentTypes.js +307 -9
- package/dist/client/admin/contentTypes.js.map +1 -1
- package/dist/client/admin/entries.d.ts +18 -19
- package/dist/client/admin/entries.d.ts.map +1 -1
- package/dist/client/admin/entries.js +33 -8
- package/dist/client/admin/entries.js.map +1 -1
- package/dist/client/admin/index.d.ts +694 -642
- package/dist/client/admin/index.d.ts.map +1 -1
- package/dist/client/admin/index.js +45 -5
- package/dist/client/admin/index.js.map +1 -1
- package/dist/client/admin/media.d.ts.map +1 -1
- package/dist/client/admin/taxonomies.d.ts.map +1 -1
- package/dist/client/admin/trash.d.ts +3 -4
- package/dist/client/admin/trash.d.ts.map +1 -1
- package/dist/client/admin/types.d.ts +185 -4
- package/dist/client/admin/types.d.ts.map +1 -1
- package/dist/client/admin/validators.d.ts +2009 -25
- package/dist/client/admin/validators.d.ts.map +1 -1
- package/dist/client/admin/validators.js +15 -4
- package/dist/client/admin/validators.js.map +1 -1
- package/dist/client/admin/versions.d.ts +1 -1
- package/dist/client/admin/versions.d.ts.map +1 -1
- package/dist/client/agentTools.d.ts +1 -4
- package/dist/client/agentTools.d.ts.map +1 -1
- package/dist/client/agentTools.js +9 -21
- package/dist/client/agentTools.js.map +1 -1
- package/dist/client/config.d.ts +10 -0
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/config.js +1 -0
- package/dist/client/config.js.map +1 -1
- package/dist/client/defineContent.d.ts +338 -0
- package/dist/client/defineContent.d.ts.map +1 -0
- package/dist/client/defineContent.js +368 -0
- package/dist/client/defineContent.js.map +1 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/queryBuilder.d.ts +0 -15
- package/dist/client/queryBuilder.d.ts.map +1 -1
- package/dist/client/queryBuilder.js +0 -23
- package/dist/client/queryBuilder.js.map +1 -1
- package/dist/client/registry.d.ts +77 -0
- package/dist/client/registry.d.ts.map +1 -0
- package/dist/client/registry.js +95 -0
- package/dist/client/registry.js.map +1 -0
- package/dist/client/schema/defineContentType.d.ts +36 -24
- package/dist/client/schema/defineContentType.d.ts.map +1 -1
- package/dist/client/schema/defineContentType.js +176 -128
- package/dist/client/schema/defineContentType.js.map +1 -1
- package/dist/client/schema/typedClient.d.ts.map +1 -1
- package/dist/client/schema/typedClient.js +2 -10
- package/dist/client/schema/typedClient.js.map +1 -1
- package/dist/client/schema/types.d.ts +16 -9
- package/dist/client/schema/types.d.ts.map +1 -1
- package/dist/client/schema/types.js.map +1 -1
- package/dist/client/utils/toSlug.d.ts +60 -0
- package/dist/client/utils/toSlug.d.ts.map +1 -0
- package/dist/client/utils/toSlug.js +31 -0
- package/dist/client/utils/toSlug.js.map +1 -0
- package/dist/client/wrapper.d.ts +2 -2
- package/dist/client/wrapper.d.ts.map +1 -1
- package/dist/client/wrapper.js +22 -30
- package/dist/client/wrapper.js.map +1 -1
- package/dist/component/_generated/component.d.ts +24 -28
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/authorizationHooks.d.ts +1 -1
- package/dist/component/authorizationHooks.d.ts.map +1 -1
- package/dist/component/authorizationHooks.js +2 -2
- package/dist/component/authorizationHooks.js.map +1 -1
- package/dist/component/bulkOperations.d.ts.map +1 -1
- package/dist/component/bulkOperations.js +7 -4
- package/dist/component/bulkOperations.js.map +1 -1
- package/dist/component/contentEntries.d.ts +18 -56
- package/dist/component/contentEntries.d.ts.map +1 -1
- package/dist/component/contentEntries.js +45 -137
- package/dist/component/contentEntries.js.map +1 -1
- package/dist/component/contentEntryMutations.d.ts +14 -14
- package/dist/component/contentEntryMutations.d.ts.map +1 -1
- package/dist/component/contentEntryMutations.js +40 -43
- package/dist/component/contentEntryMutations.js.map +1 -1
- package/dist/component/contentEntryValidation.d.ts +3 -3
- package/dist/component/contentEntryValidation.js +6 -9
- package/dist/component/contentEntryValidation.js.map +1 -1
- package/dist/component/contentLock.d.ts +7 -7
- package/dist/component/contentLock.js +3 -3
- package/dist/component/contentLock.js.map +1 -1
- package/dist/component/contentTypeMigration.d.ts +1 -1
- package/dist/component/contentTypeMigration.js +2 -2
- package/dist/component/contentTypeMigration.js.map +1 -1
- package/dist/component/contentTypeMutations.d.ts.map +1 -1
- package/dist/component/contentTypeMutations.js +7 -6
- package/dist/component/contentTypeMutations.js.map +1 -1
- package/dist/component/convex.config.d.ts.map +1 -1
- package/dist/component/convex.config.js +1 -1
- package/dist/component/convex.config.js.map +1 -1
- package/dist/component/eventEmitter.d.ts +0 -1
- package/dist/component/eventEmitter.d.ts.map +1 -1
- package/dist/component/eventEmitter.js.map +1 -1
- package/dist/component/exportImport.d.ts +37 -37
- package/dist/component/exportImport.d.ts.map +1 -1
- package/dist/component/exportImport.js +34 -34
- package/dist/component/exportImport.js.map +1 -1
- package/dist/component/lib/deepReferenceResolver.d.ts +2 -2
- package/dist/component/lib/deepReferenceResolver.d.ts.map +1 -1
- package/dist/component/lib/deepReferenceResolver.js +13 -8
- package/dist/component/lib/deepReferenceResolver.js.map +1 -1
- package/dist/component/lib/ragContentChunker.d.ts +3 -3
- package/dist/component/lib/ragContentChunker.d.ts.map +1 -1
- package/dist/component/lib/ragContentChunker.js +4 -4
- package/dist/component/lib/ragContentChunker.js.map +1 -1
- package/dist/component/lib/referenceResolver.d.ts.map +1 -1
- package/dist/component/lib/referenceResolver.js +10 -17
- package/dist/component/lib/referenceResolver.js.map +1 -1
- package/dist/component/mediaAssetMutations.js +4 -4
- package/dist/component/mediaAssetMutations.js.map +1 -1
- package/dist/component/ragContentIndexer.d.ts +2 -2
- package/dist/component/ragContentIndexer.d.ts.map +1 -1
- package/dist/component/ragContentIndexer.js +44 -48
- package/dist/component/ragContentIndexer.js.map +1 -1
- package/dist/component/roles.d.ts +3 -3
- package/dist/component/scheduledPublish.d.ts +4 -4
- package/dist/component/scheduledPublish.js +3 -3
- package/dist/component/scheduledPublish.js.map +1 -1
- package/dist/component/schema.d.ts +18 -18
- package/dist/component/schema.js +5 -5
- package/dist/component/schema.js.map +1 -1
- package/dist/component/trash.d.ts +6 -9
- package/dist/component/trash.d.ts.map +1 -1
- package/dist/component/trash.js +12 -36
- package/dist/component/trash.js.map +1 -1
- package/dist/component/userContext.d.ts +1 -2
- package/dist/component/userContext.d.ts.map +1 -1
- package/dist/component/userContext.js +1 -2
- package/dist/component/userContext.js.map +1 -1
- package/dist/component/validators.d.ts +27 -33
- package/dist/component/validators.d.ts.map +1 -1
- package/dist/component/validators.js +3 -5
- package/dist/component/validators.js.map +1 -1
- package/dist/component/versionMutations.d.ts +1 -1
- package/dist/component/webhookTrigger.d.ts +14 -14
- package/dist/test.d.ts +30 -30
- package/dist/test.d.ts.map +1 -1
- package/dist/test.js +24 -24
- package/dist/test.js.map +1 -1
- package/package.json +1 -1
- package/admin-dist/public/assets/CmsEmptyState-Do_erIgn.js +0 -5
- package/admin-dist/public/assets/CmsPageHeader-qDwPGi48.js +0 -1
- package/admin-dist/public/assets/CmsStatusBadge-Dd9uToHE.js +0 -1
- package/admin-dist/public/assets/CmsToolbar-D1-Y-7SK.js +0 -1
- package/admin-dist/public/assets/ContentEntryEditor-CWBiIx52.js +0 -4
- package/admin-dist/public/assets/TaxonomyFilter-CdYQawxb.js +0 -1
- package/admin-dist/public/assets/_contentTypeId-D9VMP6Gs.js +0 -1
- package/admin-dist/public/assets/_entryId-2FlCfqE7.js +0 -1
- package/admin-dist/public/assets/alert-GxZx0y5c.js +0 -1
- package/admin-dist/public/assets/badge-BAlGIjop.js +0 -1
- package/admin-dist/public/assets/command-di7XCqcv.js +0 -1
- package/admin-dist/public/assets/content-D8zELsDG.js +0 -1
- package/admin-dist/public/assets/content-types-BmzD0krT.js +0 -2
- package/admin-dist/public/assets/globals-BvFfH-v9.css +0 -1
- package/admin-dist/public/assets/index-zqfj4T_v.js +0 -1
- package/admin-dist/public/assets/label-B6PPtKR5.js +0 -1
- package/admin-dist/public/assets/link-2-W2fVnVOf.js +0 -1
- package/admin-dist/public/assets/list-F8O0lZXC.js +0 -1
- package/admin-dist/public/assets/main-dZT72bAG.js +0 -97
- package/admin-dist/public/assets/media-CETueFbV.js +0 -1
- package/admin-dist/public/assets/new._contentTypeId-BV2-TyyR.js +0 -1
- package/admin-dist/public/assets/plus-AABQIF0N.js +0 -1
- package/admin-dist/public/assets/scroll-area-CDfk-zrz.js +0 -1
- package/admin-dist/public/assets/select-BuiHcMzS.js +0 -1
- package/admin-dist/public/assets/settings-DBxbYDvn.js +0 -1
- package/admin-dist/public/assets/switch-DiJvolcs.js +0 -1
- package/admin-dist/public/assets/tabs-Cgz6G_Xy.js +0 -1
- package/admin-dist/public/assets/tanstack-adapter-BknsSgra.js +0 -1
- package/admin-dist/public/assets/taxonomies-DOErsLl5.js +0 -1
- package/admin-dist/public/assets/textarea-CgggMxUX.js +0 -1
- package/admin-dist/public/assets/trash-BU4ANuaW.js +0 -1
- package/admin-dist/public/assets/triangle-alert-lvCbwp0s.js +0 -1
- package/admin-dist/public/assets/usePermissions-D7tQowaF.js +0 -1
- package/admin-dist/server/_libs/h3-v2.mjs +0 -277
- package/admin-dist/server/_ssr/CmsButton-DbzfJru_.mjs +0 -125
- package/admin-dist/server/_ssr/CmsEmptyState-CuvcXr3Z.mjs +0 -290
- package/admin-dist/server/_ssr/_tanstack-start-manifest_v-Dk-FIYPN.mjs +0 -4
- package/admin-dist/server/_ssr/content-types-D25lUE-j.mjs +0 -1312
- package/admin-dist/server/_ssr/label-PblVvdRv.mjs +0 -22
- package/admin-dist/server/_ssr/router-x6Ab8T4s.mjs +0 -1622
- package/admin-dist/server/_ssr/select-CrfEkFJw.mjs +0 -142
- package/admin-dist/server/_ssr/textarea-CZVaroMc.mjs +0 -18
|
@@ -108,7 +108,7 @@ function floatSafeRemainder(val, step) {
|
|
|
108
108
|
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
109
109
|
return valInt % stepInt / 10 ** decCount;
|
|
110
110
|
}
|
|
111
|
-
const EVALUATING = Symbol("evaluating");
|
|
111
|
+
const EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
112
112
|
function defineLazy(object2, key, getter) {
|
|
113
113
|
let value = void 0;
|
|
114
114
|
Object.defineProperty(object2, key, {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "../_chunks/_libs/react.mjs";
|
|
2
|
+
import { C as CmsButton, f as cn } from "./router-vd1nySeP.mjs";
|
|
3
|
+
function CmsEmptyState({
|
|
4
|
+
icon,
|
|
5
|
+
title,
|
|
6
|
+
description,
|
|
7
|
+
action,
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: cn(
|
|
15
|
+
"flex flex-col items-center justify-center py-12 text-center",
|
|
16
|
+
className
|
|
17
|
+
),
|
|
18
|
+
...props,
|
|
19
|
+
children: [
|
|
20
|
+
icon && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mb-4 flex size-12 items-center justify-center rounded-full bg-muted text-muted-foreground", children: icon }),
|
|
21
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-base font-semibold text-foreground", children: title }),
|
|
22
|
+
description && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "mt-1 max-w-sm text-sm text-muted-foreground", children: description }),
|
|
23
|
+
action && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24
|
+
CmsButton,
|
|
25
|
+
{
|
|
26
|
+
variant: action.variant ?? "primary",
|
|
27
|
+
onClick: action.onClick,
|
|
28
|
+
className: "mt-4",
|
|
29
|
+
children: action.label
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
CmsEmptyState as C
|
|
38
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../_chunks/_libs/react.mjs";
|
|
2
|
-
import { B as Badge } from "./
|
|
3
|
-
import {
|
|
2
|
+
import { B as Badge } from "./badge-EI998zba.mjs";
|
|
3
|
+
import { f as cn } from "./router-vd1nySeP.mjs";
|
|
4
4
|
const statusConfig = {
|
|
5
5
|
draft: {
|
|
6
6
|
label: "Draft",
|
|
@@ -65,12 +65,12 @@ const statusConfig = {
|
|
|
65
65
|
};
|
|
66
66
|
const colorToClassName = {
|
|
67
67
|
gray: "bg-muted text-muted-foreground",
|
|
68
|
-
yellow: "bg-
|
|
69
|
-
blue: "bg-
|
|
70
|
-
green: "bg-
|
|
71
|
-
red: "bg-
|
|
68
|
+
yellow: "bg-diff-modified-bg text-diff-modified-foreground",
|
|
69
|
+
blue: "bg-info-bg text-info-foreground",
|
|
70
|
+
green: "bg-diff-added-bg text-diff-added-foreground",
|
|
71
|
+
red: "bg-diff-removed-bg text-diff-removed-foreground",
|
|
72
72
|
purple: "bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-400",
|
|
73
|
-
orange: "bg-
|
|
73
|
+
orange: "bg-diff-modified-bg text-diff-modified-foreground"
|
|
74
74
|
};
|
|
75
75
|
function getDefaultIcon() {
|
|
76
76
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { className: "size-3", fill: "currentColor", viewBox: "0 0 8 8", children: /* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "4", cy: "4", r: "3" }) });
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../_chunks/_libs/react.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { N as Search } from "../_libs/lucide-react.mjs";
|
|
2
|
+
import { I as Input, f as cn } from "./router-vd1nySeP.mjs";
|
|
3
|
+
import { a1 as Search } from "../_libs/lucide-react.mjs";
|
|
5
4
|
function CmsToolbar({
|
|
6
5
|
left,
|
|
7
6
|
right,
|
package/admin-dist/server/_ssr/{ContentEntryEditor-weiXSBdZ.mjs → ContentEntryEditor-Cjfm0uhr.mjs}
RENAMED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../_chunks/_libs/react.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { c as CmsDialog, I as Input, b as CmsConfirmDialog, D as Dialog, d as DialogContent, e as DialogHeader, f as DialogTitle, C as CmsEmptyState, g as DialogFooter, a as Checkbox } from "./CmsEmptyState-CuvcXr3Z.mjs";
|
|
5
|
-
import { S as Switch } from "./switch-DX_X8vZl.mjs";
|
|
6
|
-
import { T as Textarea } from "./textarea-CZVaroMc.mjs";
|
|
2
|
+
import { t as useSettingsConfig, h as api, f as cn, C as CmsButton, i as CmsDialog, I as Input, g as CmsConfirmDialog, T as Textarea, P as Popover, y as PopoverTrigger, z as PopoverContent, B as Button, D as Dialog, k as DialogContent, r as DialogHeader, l as DialogTitle, S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem, s as DialogFooter, e as Checkbox, L as Label, J as buttonVariants } from "./router-vd1nySeP.mjs";
|
|
3
|
+
import { S as Switch } from "./switch-C05NgNW0.mjs";
|
|
7
4
|
import { R as Root } from "../_chunks/_libs/@radix-ui/react-separator.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { C as
|
|
11
|
-
import {
|
|
12
|
-
import { C as CmsStatusBadge } from "./CmsStatusBadge-
|
|
13
|
-
import { S as ScrollArea } from "./scroll-area
|
|
5
|
+
import { T as Tabs, a as TabsList, b as TabsTrigger, c as TabsContent, U as UploadDropzone } from "./tabs-DAk2J5xy.mjs";
|
|
6
|
+
import { C as CmsEmptyState } from "./CmsEmptyState-BM8DghTl.mjs";
|
|
7
|
+
import { C as Command, a as CommandInput, b as CommandList, d as CommandGroup, f as CommandItem, c as CommandEmpty } from "./command-BLAWQhUw.mjs";
|
|
8
|
+
import { B as Badge } from "./badge-EI998zba.mjs";
|
|
9
|
+
import { C as CmsStatusBadge } from "./CmsStatusBadge-D0Zb0oRl.mjs";
|
|
10
|
+
import { S as ScrollArea } from "./scroll-area--B9snFTJ.mjs";
|
|
14
11
|
import { d as useMutation, u as useQuery } from "../_libs/convex.mjs";
|
|
15
|
-
import { L as LoaderCircle,
|
|
12
|
+
import { L as LoaderCircle, al as CircleCheckBig, j as CircleAlert, ao as RefreshCw, aq as History, x as Clock, X, d as ChevronDown, W as Tag, P as Plus, Z as Link2, Q as FileText, i as Check, a3 as Pencil, O as Image, V as FolderOpen, ab as Upload, a1 as Search, y as Calendar$1, ar as GitCompare, as as ArrowRight, a0 as TriangleAlert, h as ChevronRight, ag as File, ah as Music, ai as Video, a9 as ChevronLeft, at as Bold, au as Italic, av as Heading2, w as Link, Y as List, aw as Quote, c as Code, ax as Minus } from "../_libs/lucide-react.mjs";
|
|
16
13
|
import { g as getDefaultClassNames, D as DayPicker } from "../_libs/react-day-picker.mjs";
|
|
17
14
|
function FieldWrapper({
|
|
18
15
|
field,
|
|
@@ -949,7 +946,7 @@ function JsonField({
|
|
|
949
946
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CircleAlert, { className: "size-3" }),
|
|
950
947
|
"Invalid"
|
|
951
948
|
] }),
|
|
952
|
-
!syntaxError && textValue.trim() !== "" && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "flex items-center gap-1 text-
|
|
949
|
+
!syntaxError && textValue.trim() !== "" && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "flex items-center gap-1 text-success", children: [
|
|
953
950
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Check, { className: "size-3" }),
|
|
954
951
|
"Valid JSON"
|
|
955
952
|
] })
|
|
@@ -1286,7 +1283,7 @@ function ReferenceField({
|
|
|
1286
1283
|
const entriesResult = useQuery(
|
|
1287
1284
|
api.admin.listEntries,
|
|
1288
1285
|
showPicker ? {
|
|
1289
|
-
|
|
1286
|
+
contentTypeName: contentTypeFilter || void 0,
|
|
1290
1287
|
search: searchQuery || void 0,
|
|
1291
1288
|
paginationOpts: { numItems: 50, cursor: null }
|
|
1292
1289
|
} : "skip"
|
|
@@ -1294,14 +1291,14 @@ function ReferenceField({
|
|
|
1294
1291
|
const filteredEntries = reactExports.useMemo(() => {
|
|
1295
1292
|
if (!entriesResult?.page) return [];
|
|
1296
1293
|
if (allowedContentTypes.length === 0) return entriesResult.page;
|
|
1297
|
-
const
|
|
1294
|
+
const allowedNames = filteredContentTypes.map((ct) => ct.name);
|
|
1298
1295
|
return entriesResult.page.filter(
|
|
1299
|
-
(entry) =>
|
|
1296
|
+
(entry) => allowedNames.includes(entry.contentTypeName)
|
|
1300
1297
|
);
|
|
1301
1298
|
}, [entriesResult?.page, allowedContentTypes, filteredContentTypes]);
|
|
1302
|
-
const
|
|
1303
|
-
(
|
|
1304
|
-
const ct = contentTypes?.page?.find((c) => c.
|
|
1299
|
+
const getContentTypeDisplayName = reactExports.useCallback(
|
|
1300
|
+
(contentTypeName) => {
|
|
1301
|
+
const ct = contentTypes?.page?.find((c) => c.name === contentTypeName);
|
|
1305
1302
|
return ct?.displayName || ct?.name || "Unknown";
|
|
1306
1303
|
},
|
|
1307
1304
|
[contentTypes?.page]
|
|
@@ -1345,7 +1342,7 @@ function ReferenceField({
|
|
|
1345
1342
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
1346
1343
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "truncate text-sm font-medium text-foreground", children: getEntryDisplayTitle(entry) }),
|
|
1347
1344
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1348
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-muted-foreground", children:
|
|
1345
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-muted-foreground", children: getContentTypeDisplayName(entry.contentTypeName) }),
|
|
1349
1346
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CmsStatusBadge, { status: entry.status })
|
|
1350
1347
|
] })
|
|
1351
1348
|
] }),
|
|
@@ -1451,7 +1448,7 @@ function ReferenceField({
|
|
|
1451
1448
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
1452
1449
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "truncate text-sm font-medium", children: getEntryDisplayTitle(entry) }),
|
|
1453
1450
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1454
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-muted-foreground", children:
|
|
1451
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs text-muted-foreground", children: getContentTypeDisplayName(entry.contentTypeName) }),
|
|
1455
1452
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1456
1453
|
Badge,
|
|
1457
1454
|
{
|
|
@@ -1776,7 +1773,7 @@ function TagField({
|
|
|
1776
1773
|
value?.length ?? 0,
|
|
1777
1774
|
" tag",
|
|
1778
1775
|
(value?.length ?? 0) !== 1 ? "s" : "",
|
|
1779
|
-
minTags && (value?.length ?? 0) < minTags && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-
|
|
1776
|
+
minTags && (value?.length ?? 0) < minTags && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-warning", children: [
|
|
1780
1777
|
" (minimum ",
|
|
1781
1778
|
minTags,
|
|
1782
1779
|
")"
|
|
@@ -2342,11 +2339,11 @@ function VersionCompare({
|
|
|
2342
2339
|
const getChangeStyles = (changeType) => {
|
|
2343
2340
|
switch (changeType) {
|
|
2344
2341
|
case "added":
|
|
2345
|
-
return "
|
|
2342
|
+
return "diff-added border";
|
|
2346
2343
|
case "removed":
|
|
2347
|
-
return "
|
|
2344
|
+
return "diff-removed border";
|
|
2348
2345
|
case "modified":
|
|
2349
|
-
return "
|
|
2346
|
+
return "diff-modified border";
|
|
2350
2347
|
default:
|
|
2351
2348
|
return "border-border bg-card";
|
|
2352
2349
|
}
|
|
@@ -2354,11 +2351,11 @@ function VersionCompare({
|
|
|
2354
2351
|
const getChangeIconStyles = (changeType) => {
|
|
2355
2352
|
switch (changeType) {
|
|
2356
2353
|
case "added":
|
|
2357
|
-
return "
|
|
2354
|
+
return "diff-icon-added";
|
|
2358
2355
|
case "removed":
|
|
2359
|
-
return "
|
|
2356
|
+
return "diff-icon-removed";
|
|
2360
2357
|
case "modified":
|
|
2361
|
-
return "
|
|
2358
|
+
return "diff-icon-modified";
|
|
2362
2359
|
default:
|
|
2363
2360
|
return "bg-muted text-muted-foreground";
|
|
2364
2361
|
}
|
|
@@ -2397,7 +2394,7 @@ function VersionCompare({
|
|
|
2397
2394
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ScrollArea, { className: "min-h-0 flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-4", children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col items-center justify-center py-8", children: [
|
|
2398
2395
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "size-6 animate-spin rounded-full border-2 border-muted border-t-primary" }),
|
|
2399
2396
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "mt-2 text-sm text-muted-foreground", children: "Loading comparison..." })
|
|
2400
|
-
] }) : !comparison ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "rounded-lg border
|
|
2397
|
+
] }) : !comparison ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "diff-removed rounded-lg border px-4 py-3 text-sm", children: "Could not load version comparison" }) : !comparison.hasChanges ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "py-8 text-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm text-muted-foreground", children: "No differences found between these versions" }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
2401
2398
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-4 flex items-center justify-center gap-3 rounded-lg border bg-muted/30 p-3", children: [
|
|
2402
2399
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-center", children: [
|
|
2403
2400
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Badge, { variant: "secondary", className: "font-mono", children: [
|
|
@@ -2439,13 +2436,13 @@ function VersionCompare({
|
|
|
2439
2436
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { variant: "outline", className: "text-xs capitalize", children: change.changeType })
|
|
2440
2437
|
] }),
|
|
2441
2438
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-2 space-y-2", children: [
|
|
2442
|
-
change.changeType !== "added" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rounded border border-
|
|
2443
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "mb-1 text-xs font-medium text-
|
|
2444
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "overflow-x-auto whitespace-pre-wrap break-words font-mono text-xs text-
|
|
2439
|
+
change.changeType !== "added" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rounded border border-diff-removed-border bg-card p-2", children: [
|
|
2440
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "mb-1 text-xs font-medium text-diff-removed", children: "Before:" }),
|
|
2441
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "overflow-x-auto whitespace-pre-wrap break-words font-mono text-xs text-diff-removed-foreground", children: formatValue(change.fromValue) })
|
|
2445
2442
|
] }),
|
|
2446
|
-
change.changeType !== "removed" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rounded border border-
|
|
2447
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "mb-1 text-xs font-medium text-
|
|
2448
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "overflow-x-auto whitespace-pre-wrap break-words font-mono text-xs text-
|
|
2443
|
+
change.changeType !== "removed" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rounded border border-diff-added-border bg-card p-2", children: [
|
|
2444
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "mb-1 text-xs font-medium text-diff-added", children: "After:" }),
|
|
2445
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "overflow-x-auto whitespace-pre-wrap break-words font-mono text-xs text-diff-added-foreground", children: formatValue(change.toValue) })
|
|
2449
2446
|
] })
|
|
2450
2447
|
] })
|
|
2451
2448
|
]
|
|
@@ -2501,11 +2498,11 @@ function VersionRollbackModal({
|
|
|
2501
2498
|
] }),
|
|
2502
2499
|
"."
|
|
2503
2500
|
] }),
|
|
2504
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "rounded-lg border
|
|
2505
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TriangleAlert, { className: "mt-0.5 size-4 shrink-0 text-
|
|
2501
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "diff-modified rounded-lg border p-3", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-2", children: [
|
|
2502
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TriangleAlert, { className: "mt-0.5 size-4 shrink-0 text-diff-modified" }),
|
|
2506
2503
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
|
|
2507
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm font-medium text-
|
|
2508
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: "space-y-1 text-sm text-
|
|
2504
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm font-medium text-diff-modified", children: "This action will:" }),
|
|
2505
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: "space-y-1 text-sm text-diff-modified-foreground", children: [
|
|
2509
2506
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
|
|
2510
2507
|
"• Create a new version with the content from version",
|
|
2511
2508
|
" ",
|
|
@@ -2516,7 +2513,7 @@ function VersionRollbackModal({
|
|
|
2516
2513
|
] })
|
|
2517
2514
|
] })
|
|
2518
2515
|
] }) }),
|
|
2519
|
-
error && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "rounded-lg border
|
|
2516
|
+
error && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "diff-removed rounded-lg border px-3 py-2 text-sm", children: [
|
|
2520
2517
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-medium", children: "Error:" }),
|
|
2521
2518
|
" ",
|
|
2522
2519
|
error
|
|
@@ -2632,7 +2629,7 @@ function VersionHistory({
|
|
|
2632
2629
|
}
|
|
2633
2630
|
)
|
|
2634
2631
|
] }),
|
|
2635
|
-
rollbackSuccess && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 border-b bg-
|
|
2632
|
+
rollbackSuccess && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 border-b bg-diff-added-bg px-4 py-2 text-sm text-diff-added-foreground", children: [
|
|
2636
2633
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CircleCheckBig, { className: "size-4" }),
|
|
2637
2634
|
"Successfully rolled back to previous version"
|
|
2638
2635
|
] }),
|
|
@@ -2668,7 +2665,7 @@ function VersionHistory({
|
|
|
2668
2665
|
Badge,
|
|
2669
2666
|
{
|
|
2670
2667
|
variant: "outline",
|
|
2671
|
-
className: "border-
|
|
2668
|
+
className: "border-success/50 text-success",
|
|
2672
2669
|
children: "Published"
|
|
2673
2670
|
}
|
|
2674
2671
|
)
|
|
@@ -3313,7 +3310,7 @@ function ContentEntryEditor({
|
|
|
3313
3310
|
});
|
|
3314
3311
|
} else {
|
|
3315
3312
|
savedEntry = await createEntry({
|
|
3316
|
-
|
|
3313
|
+
contentTypeName: contentType.name,
|
|
3317
3314
|
data: dataForBackend
|
|
3318
3315
|
});
|
|
3319
3316
|
}
|
|
@@ -3382,8 +3379,8 @@ function ContentEntryEditor({
|
|
|
3382
3379
|
className: cn(
|
|
3383
3380
|
"flex items-center gap-1.5 text-sm",
|
|
3384
3381
|
autosaveStatus === "saving" && "text-muted-foreground",
|
|
3385
|
-
autosaveStatus === "saved" && "text-
|
|
3386
|
-
autosaveStatus === "error" && "text-
|
|
3382
|
+
autosaveStatus === "saved" && "text-success",
|
|
3383
|
+
autosaveStatus === "error" && "text-destructive"
|
|
3387
3384
|
),
|
|
3388
3385
|
"data-testid": "autosave-status",
|
|
3389
3386
|
children: [
|
|
@@ -3405,13 +3402,13 @@ function ContentEntryEditor({
|
|
|
3405
3402
|
}
|
|
3406
3403
|
)
|
|
3407
3404
|
] }),
|
|
3408
|
-
isDirty && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm text-
|
|
3405
|
+
isDirty && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm text-warning", children: "Unsaved changes" })
|
|
3409
3406
|
] })
|
|
3410
3407
|
] }),
|
|
3411
3408
|
saveSuccess && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
3412
3409
|
"div",
|
|
3413
3410
|
{
|
|
3414
|
-
className: "flex items-center gap-2 rounded-lg border
|
|
3411
|
+
className: "diff-added flex items-center gap-2 rounded-lg border px-4 py-3 text-sm",
|
|
3415
3412
|
role: "status",
|
|
3416
3413
|
children: [
|
|
3417
3414
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CircleCheckBig, { className: "size-4" }),
|
|
@@ -3422,7 +3419,7 @@ function ContentEntryEditor({
|
|
|
3422
3419
|
(submitError || publishError) && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
3423
3420
|
"div",
|
|
3424
3421
|
{
|
|
3425
|
-
className: "rounded-lg border
|
|
3422
|
+
className: "diff-removed rounded-lg border px-4 py-3 text-sm",
|
|
3426
3423
|
role: "alert",
|
|
3427
3424
|
children: [
|
|
3428
3425
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-medium", children: "Error:" }),
|
|
@@ -3512,7 +3509,7 @@ function ContentEntryEditor({
|
|
|
3512
3509
|
settings?.features.scheduling && entry.status === "scheduled" && entry.scheduledPublishAt && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
3513
3510
|
"span",
|
|
3514
3511
|
{
|
|
3515
|
-
className: "flex items-center gap-1 text-xs text-
|
|
3512
|
+
className: "flex items-center gap-1 text-xs text-info",
|
|
3516
3513
|
"data-testid": "scheduled-time",
|
|
3517
3514
|
children: [
|
|
3518
3515
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Clock, { className: "size-3" }),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../_chunks/_libs/react.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { C as
|
|
4
|
-
import {
|
|
5
|
-
import { a as Checkbox } from "./CmsEmptyState-CuvcXr3Z.mjs";
|
|
2
|
+
import { h as api, P as Popover, y as PopoverTrigger, C as CmsButton, f as cn, z as PopoverContent, e as Checkbox } from "./router-vd1nySeP.mjs";
|
|
3
|
+
import { C as Command, a as CommandInput, b as CommandList, c as CommandEmpty, d as CommandGroup, e as CommandSeparator, f as CommandItem } from "./command-BLAWQhUw.mjs";
|
|
4
|
+
import { B as Badge } from "./badge-EI998zba.mjs";
|
|
6
5
|
import { u as useQuery } from "../_libs/convex.mjs";
|
|
7
|
-
import {
|
|
6
|
+
import { N as Tags, d as ChevronDown, X, i as Check } from "../_libs/lucide-react.mjs";
|
|
8
7
|
function TaxonomyFilter({
|
|
9
8
|
selectedTermIds,
|
|
10
9
|
onChange,
|
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../_chunks/_libs/react.mjs";
|
|
2
2
|
import { d as useNavigate, L as Link } from "../_chunks/_libs/@tanstack/react-router.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { u as usePermissions } from "./usePermissions-
|
|
5
|
-
import { u as useBreadcrumbLabel } from "./useBreadcrumbLabel-
|
|
6
|
-
import { C as CmsPageHeader } from "./CmsPageHeader-
|
|
7
|
-
import { C as CmsToolbar } from "./CmsToolbar-
|
|
8
|
-
import { C as
|
|
9
|
-
import { C as
|
|
10
|
-
import {
|
|
11
|
-
import { T as TaxonomyFilter } from "./TaxonomyFilter-BPQ57Mwk.mjs";
|
|
12
|
-
import { S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem } from "./select-CrfEkFJw.mjs";
|
|
3
|
+
import { x as Route$1, h as api, C as CmsButton, I as Input, S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem, g as CmsConfirmDialog } from "./router-vd1nySeP.mjs";
|
|
4
|
+
import { u as usePermissions } from "./usePermissions-olYRd9S9.mjs";
|
|
5
|
+
import { u as useBreadcrumbLabel } from "./useBreadcrumbLabel-DpEKyG1h.mjs";
|
|
6
|
+
import { C as CmsPageHeader } from "./CmsPageHeader-BHUmrIWD.mjs";
|
|
7
|
+
import { C as CmsToolbar } from "./CmsToolbar-BCrwg7OL.mjs";
|
|
8
|
+
import { C as CmsStatusBadge } from "./CmsStatusBadge-D0Zb0oRl.mjs";
|
|
9
|
+
import { C as CmsEmptyState } from "./CmsEmptyState-BM8DghTl.mjs";
|
|
10
|
+
import { T as TaxonomyFilter } from "./TaxonomyFilter-C4pD0kfM.mjs";
|
|
13
11
|
import { d as useMutation, u as useQuery } from "../_libs/convex.mjs";
|
|
14
|
-
import {
|
|
12
|
+
import { Q as FileText, P as Plus, a1 as Search, ap as ArrowUpDown, g as ChevronUp, d as ChevronDown } from "../_libs/lucide-react.mjs";
|
|
15
13
|
import "../_libs/tiny-warning.mjs";
|
|
16
14
|
import "../_chunks/_libs/@tanstack/router-core.mjs";
|
|
17
|
-
import "../_libs/cookie-es.mjs";
|
|
18
15
|
import "../_chunks/_libs/@tanstack/store.mjs";
|
|
19
16
|
import "../_chunks/_libs/@tanstack/history.mjs";
|
|
20
17
|
import "../_libs/tiny-invariant.mjs";
|
|
21
|
-
import "../_libs/seroval.mjs";
|
|
22
|
-
import "../_libs/seroval-plugins.mjs";
|
|
23
18
|
import "node:stream/web";
|
|
24
19
|
import "node:stream";
|
|
25
20
|
import "../_chunks/_libs/react-dom.mjs";
|
|
@@ -42,25 +37,13 @@ import "../_chunks/_libs/@radix-ui/react-primitive.mjs";
|
|
|
42
37
|
import "../_chunks/_libs/@radix-ui/react-slot.mjs";
|
|
43
38
|
import "../_chunks/_libs/@radix-ui/react-presence.mjs";
|
|
44
39
|
import "../_chunks/_libs/@radix-ui/react-id.mjs";
|
|
45
|
-
import "../_chunks/_libs/@radix-ui/react-
|
|
46
|
-
import "../_chunks/_libs/@radix-ui/react-menu.mjs";
|
|
47
|
-
import "../_chunks/_libs/@radix-ui/react-collection.mjs";
|
|
48
|
-
import "../_chunks/_libs/@radix-ui/react-direction.mjs";
|
|
40
|
+
import "../_chunks/_libs/@radix-ui/react-dialog.mjs";
|
|
49
41
|
import "../_chunks/_libs/@radix-ui/react-dismissable-layer.mjs";
|
|
50
42
|
import "../_chunks/_libs/@radix-ui/react-use-callback-ref.mjs";
|
|
51
43
|
import "../_chunks/_libs/@radix-ui/react-use-escape-keydown.mjs";
|
|
52
|
-
import "../_chunks/_libs/@radix-ui/react-focus-guards.mjs";
|
|
53
44
|
import "../_chunks/_libs/@radix-ui/react-focus-scope.mjs";
|
|
54
|
-
import "../_chunks/_libs/@radix-ui/react-popper.mjs";
|
|
55
|
-
import "../_chunks/_libs/@floating-ui/react-dom.mjs";
|
|
56
|
-
import "../_chunks/_libs/@floating-ui/dom.mjs";
|
|
57
|
-
import "../_chunks/_libs/@floating-ui/core.mjs";
|
|
58
|
-
import "../_chunks/_libs/@floating-ui/utils.mjs";
|
|
59
|
-
import "../_chunks/_libs/@radix-ui/react-arrow.mjs";
|
|
60
|
-
import "../_chunks/_libs/@radix-ui/react-use-size.mjs";
|
|
61
45
|
import "../_chunks/_libs/@radix-ui/react-portal.mjs";
|
|
62
|
-
import "../_chunks/_libs/@radix-ui/react-
|
|
63
|
-
import "../_libs/aria-hidden.mjs";
|
|
46
|
+
import "../_chunks/_libs/@radix-ui/react-focus-guards.mjs";
|
|
64
47
|
import "../_libs/react-remove-scroll.mjs";
|
|
65
48
|
import "../_libs/tslib.mjs";
|
|
66
49
|
import "../_libs/react-remove-scroll-bar.mjs";
|
|
@@ -68,27 +51,35 @@ import "../_libs/react-style-singleton.mjs";
|
|
|
68
51
|
import "../_libs/get-nonce.mjs";
|
|
69
52
|
import "../_libs/use-sidecar.mjs";
|
|
70
53
|
import "../_libs/use-callback-ref.mjs";
|
|
54
|
+
import "../_libs/aria-hidden.mjs";
|
|
55
|
+
import "../_libs/class-variance-authority.mjs";
|
|
56
|
+
import "../_chunks/_libs/@radix-ui/react-label.mjs";
|
|
57
|
+
import "../_chunks/_libs/@radix-ui/react-checkbox.mjs";
|
|
58
|
+
import "../_chunks/_libs/@radix-ui/react-use-previous.mjs";
|
|
59
|
+
import "../_chunks/_libs/@radix-ui/react-use-size.mjs";
|
|
60
|
+
import "../_chunks/_libs/@radix-ui/react-select.mjs";
|
|
61
|
+
import "../_chunks/_libs/@radix-ui/number.mjs";
|
|
62
|
+
import "../_chunks/_libs/@radix-ui/react-collection.mjs";
|
|
63
|
+
import "../_chunks/_libs/@radix-ui/react-direction.mjs";
|
|
64
|
+
import "../_chunks/_libs/@radix-ui/react-popper.mjs";
|
|
65
|
+
import "../_chunks/_libs/@floating-ui/react-dom.mjs";
|
|
66
|
+
import "../_chunks/_libs/@floating-ui/dom.mjs";
|
|
67
|
+
import "../_chunks/_libs/@floating-ui/core.mjs";
|
|
68
|
+
import "../_chunks/_libs/@floating-ui/utils.mjs";
|
|
69
|
+
import "../_chunks/_libs/@radix-ui/react-arrow.mjs";
|
|
70
|
+
import "../_chunks/_libs/@radix-ui/react-visually-hidden.mjs";
|
|
71
|
+
import "../_chunks/_libs/@radix-ui/react-dropdown-menu.mjs";
|
|
72
|
+
import "../_chunks/_libs/@radix-ui/react-menu.mjs";
|
|
73
|
+
import "../_chunks/_libs/@radix-ui/react-roving-focus.mjs";
|
|
71
74
|
import "../_chunks/_libs/@radix-ui/react-avatar.mjs";
|
|
72
75
|
import "../_chunks/_libs/@radix-ui/react-use-is-hydrated.mjs";
|
|
73
|
-
import "../_libs/class-variance-authority.mjs";
|
|
74
76
|
import "../_chunks/_libs/@radix-ui/react-popover.mjs";
|
|
75
77
|
import "./index.mjs";
|
|
76
78
|
import "node:async_hooks";
|
|
77
|
-
import "../_libs/h3-v2.mjs";
|
|
78
|
-
import "../_libs/rou3.mjs";
|
|
79
|
-
import "../_libs/srvx.mjs";
|
|
80
|
-
import "node:http";
|
|
81
|
-
import "node:https";
|
|
82
|
-
import "node:http2";
|
|
83
79
|
import "../_libs/zod.mjs";
|
|
84
|
-
import "
|
|
85
|
-
import "
|
|
86
|
-
import "../_chunks/_libs/@radix-ui/react-use-previous.mjs";
|
|
87
|
-
import "./command-CEf8YBxY.mjs";
|
|
80
|
+
import "./badge-EI998zba.mjs";
|
|
81
|
+
import "./command-BLAWQhUw.mjs";
|
|
88
82
|
import "../_libs/cmdk.mjs";
|
|
89
|
-
import "../_chunks/_libs/@radix-ui/react-select.mjs";
|
|
90
|
-
import "../_chunks/_libs/@radix-ui/number.mjs";
|
|
91
|
-
import "../_chunks/_libs/@radix-ui/react-visually-hidden.mjs";
|
|
92
83
|
function ContentTypeEntriesPage() {
|
|
93
84
|
const {
|
|
94
85
|
contentTypeId
|
|
@@ -124,7 +115,7 @@ function ContentTypeEntriesPage() {
|
|
|
124
115
|
});
|
|
125
116
|
useBreadcrumbLabel(`/entries/type/${contentTypeId}`, contentType?.displayName);
|
|
126
117
|
const entriesResult = useQuery(api.admin.listEntries, {
|
|
127
|
-
|
|
118
|
+
contentTypeName: contentType?.name,
|
|
128
119
|
status: selectedStatus === "all" ? void 0 : selectedStatus,
|
|
129
120
|
search: debouncedSearch || void 0,
|
|
130
121
|
paginationOpts: {
|