@burdenoff/microfe-admin 2026.1030.1 → 2026.1107.1
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/dist/admin/AdminRoot.d.ts +29 -0
- package/dist/admin/AdminRoot.js +34 -31
- package/dist/admin/AdminRoot.js.map +1 -1
- package/dist/admin/AdminRoutes.d.ts +28 -0
- package/dist/admin/AdminRoutes.js +17 -18
- package/dist/admin/AdminRoutes.js.map +1 -1
- package/dist/admin/components/AccessDenied.d.ts +6 -0
- package/dist/admin/components/AccessDenied.js +1 -2
- package/dist/admin/components/AccessDenied.js.map +1 -1
- package/dist/admin/components/ActivityFeed.d.ts +18 -0
- package/dist/admin/components/ActivityFeed.js +23 -24
- package/dist/admin/components/ActivityFeed.js.map +1 -1
- package/dist/admin/components/Charts.d.ts +31 -0
- package/dist/admin/components/Charts.js +14 -15
- package/dist/admin/components/Charts.js.map +1 -1
- package/dist/admin/components/ConfirmDialog.d.ts +43 -0
- package/dist/admin/components/ConfirmDialog.js +7 -8
- package/dist/admin/components/ConfirmDialog.js.map +1 -1
- package/dist/admin/components/DataTable.d.ts +62 -0
- package/dist/admin/components/DataTable.js +37 -38
- package/dist/admin/components/DataTable.js.map +1 -1
- package/dist/admin/components/FormSheet.d.ts +78 -0
- package/dist/admin/components/FormSheet.js +1 -2
- package/dist/admin/components/FormSheet.js.map +1 -1
- package/dist/admin/components/MarkdownEditor.d.ts +27 -0
- package/dist/admin/components/MarkdownEditor.js +1 -2
- package/dist/admin/components/MarkdownEditor.js.map +1 -1
- package/dist/admin/components/MetricCard.d.ts +43 -0
- package/dist/admin/components/MetricCard.js +9 -10
- package/dist/admin/components/MetricCard.js.map +1 -1
- package/dist/admin/components/PageLayout.d.ts +43 -0
- package/dist/admin/components/PageLayout.js +1 -2
- package/dist/admin/components/PageLayout.js.map +1 -1
- package/dist/admin/components/PermissionGuard.d.ts +10 -0
- package/dist/admin/components/PermissionGuard.js +1 -2
- package/dist/admin/components/PermissionGuard.js.map +1 -1
- package/dist/admin/components/RowActions.d.ts +39 -0
- package/dist/admin/components/RowActions.js +13 -14
- package/dist/admin/components/RowActions.js.map +1 -1
- package/dist/admin/components/StatusBadge.d.ts +33 -0
- package/dist/admin/components/StatusBadge.js +11 -12
- package/dist/admin/components/StatusBadge.js.map +1 -1
- package/dist/admin/components/TenantMembersPanel.d.ts +12 -0
- package/dist/admin/components/TenantMembersPanel.js +25 -26
- package/dist/admin/components/TenantMembersPanel.js.map +1 -1
- package/dist/admin/components/TenantSsoPanel.d.ts +6 -0
- package/dist/admin/components/TenantSsoPanel.js +21 -22
- package/dist/admin/components/TenantSsoPanel.js.map +1 -1
- package/dist/admin/components/Toast.d.ts +24 -0
- package/dist/admin/components/Toast.js +1 -2
- package/dist/admin/components/Toast.js.map +1 -1
- package/dist/admin/components/forms/SubscriptionForm.d.ts +56 -0
- package/dist/admin/components/forms/SubscriptionForm.js +22 -23
- package/dist/admin/components/forms/SubscriptionForm.js.map +1 -1
- package/dist/admin/components/forms/TenantForm.d.ts +67 -0
- package/dist/admin/components/forms/TenantForm.js +52 -50
- package/dist/admin/components/forms/TenantForm.js.map +1 -1
- package/dist/admin/components/forms/TicketForm.d.ts +66 -0
- package/dist/admin/components/forms/TicketForm.js +4 -5
- package/dist/admin/components/forms/TicketForm.js.map +1 -1
- package/dist/admin/components/forms/UserForm.d.ts +56 -0
- package/dist/admin/components/forms/UserForm.js +39 -40
- package/dist/admin/components/forms/UserForm.js.map +1 -1
- package/dist/admin/components/forms/index.d.ts +4 -0
- package/dist/admin/components/forms/index.js +4 -3
- package/dist/admin/components/index.d.ts +15 -0
- package/dist/admin/components/index.js +18 -17
- package/dist/admin/components/ui.d.ts +58 -0
- package/dist/admin/components/ui.js +1 -2
- package/dist/admin/components/ui.js.map +1 -1
- package/dist/admin/constants/featureFlags.d.ts +8 -0
- package/dist/admin/constants/featureFlags.js +1 -2
- package/dist/admin/constants/featureFlags.js.map +1 -1
- package/dist/admin/constants/index.d.ts +75 -0
- package/dist/admin/constants/index.js +1 -2
- package/dist/admin/constants/index.js.map +1 -1
- package/dist/admin/constants/permissions.d.ts +28 -0
- package/dist/admin/constants/permissions.js +1 -2
- package/dist/admin/constants/permissions.js.map +1 -1
- package/dist/admin/hooks/useAdminPermissions.d.ts +40 -0
- package/dist/admin/hooks/useAdminPermissions.js +2 -3
- package/dist/admin/hooks/useAdminPermissions.js.map +1 -1
- package/dist/admin/hooks/useTr.d.ts +16 -0
- package/dist/admin/hooks/useTr.js +1 -2
- package/dist/admin/hooks/useTr.js.map +1 -1
- package/dist/admin/index.d.ts +30 -0
- package/dist/admin/index.js +9 -8
- package/dist/admin/pages/AiSpendPage.d.ts +1 -0
- package/dist/admin/pages/AiSpendPage.js +130 -131
- package/dist/admin/pages/AiSpendPage.js.map +1 -1
- package/dist/admin/pages/AuditLogsPage.d.ts +4 -0
- package/dist/admin/pages/AuditLogsPage.js +17 -18
- package/dist/admin/pages/AuditLogsPage.js.map +1 -1
- package/dist/admin/pages/BillingPage.d.ts +1 -0
- package/dist/admin/pages/BillingPage.js +17 -18
- package/dist/admin/pages/BillingPage.js.map +1 -1
- package/dist/admin/pages/CommunicationsPage.d.ts +1 -0
- package/dist/admin/pages/CommunicationsPage.js +15 -16
- package/dist/admin/pages/CommunicationsPage.js.map +1 -1
- package/dist/admin/pages/ContentPagesPage.d.ts +1 -0
- package/dist/admin/pages/ContentPagesPage.js +120 -121
- package/dist/admin/pages/ContentPagesPage.js.map +1 -1
- package/dist/admin/pages/DashboardPage.d.ts +4 -0
- package/dist/admin/pages/DashboardPage.js +1 -2
- package/dist/admin/pages/DashboardPage.js.map +1 -1
- package/dist/admin/pages/ExploreConversationsPage.d.ts +12 -0
- package/dist/admin/pages/ExploreConversationsPage.js +48 -46
- package/dist/admin/pages/ExploreConversationsPage.js.map +1 -1
- package/dist/admin/pages/FeatureFlagsPage.d.ts +1 -0
- package/dist/admin/pages/FeatureFlagsPage.js +1 -2
- package/dist/admin/pages/FeatureFlagsPage.js.map +1 -1
- package/dist/admin/pages/OrganizationsListPage.d.ts +1 -0
- package/dist/admin/pages/OrganizationsListPage.js +1 -2
- package/dist/admin/pages/OrganizationsListPage.js.map +1 -1
- package/dist/admin/pages/ProductsPage.d.ts +4 -0
- package/dist/admin/pages/ProductsPage.js +27 -28
- package/dist/admin/pages/ProductsPage.js.map +1 -1
- package/dist/admin/pages/ReferralsPage.d.ts +1 -0
- package/dist/admin/pages/ReferralsPage.js +20 -25
- package/dist/admin/pages/ReferralsPage.js.map +1 -1
- package/dist/admin/pages/RolesPermissionsPage.d.ts +1 -0
- package/dist/admin/pages/RolesPermissionsPage.js +1 -2
- package/dist/admin/pages/RolesPermissionsPage.js.map +1 -1
- package/dist/admin/pages/SREPage.d.ts +4 -0
- package/dist/admin/pages/SREPage.js +22 -23
- package/dist/admin/pages/SREPage.js.map +1 -1
- package/dist/admin/pages/SandboxSettingsPage.d.ts +6 -0
- package/dist/admin/pages/SandboxSettingsPage.js +79 -84
- package/dist/admin/pages/SandboxSettingsPage.js.map +1 -1
- package/dist/admin/pages/SettingsPage.d.ts +4 -0
- package/dist/admin/pages/SettingsPage.js +39 -40
- package/dist/admin/pages/SettingsPage.js.map +1 -1
- package/dist/admin/pages/SyncFailuresPage.d.ts +13 -0
- package/dist/admin/pages/SyncFailuresPage.js +121 -122
- package/dist/admin/pages/SyncFailuresPage.js.map +1 -1
- package/dist/admin/pages/TenantDetailPage.d.ts +4 -0
- package/dist/admin/pages/TenantDetailPage.js +53 -54
- package/dist/admin/pages/TenantDetailPage.js.map +1 -1
- package/dist/admin/pages/TenantFormRoutePage.d.ts +5 -0
- package/dist/admin/pages/TenantFormRoutePage.js +45 -47
- package/dist/admin/pages/TenantFormRoutePage.js.map +1 -1
- package/dist/admin/pages/TenantsListPage.d.ts +4 -0
- package/dist/admin/pages/TenantsListPage.js +35 -36
- package/dist/admin/pages/TenantsListPage.js.map +1 -1
- package/dist/admin/pages/UsersListPage.d.ts +4 -0
- package/dist/admin/pages/UsersListPage.js +29 -30
- package/dist/admin/pages/UsersListPage.js.map +1 -1
- package/dist/admin/pages/WaitlistPage.d.ts +1 -0
- package/dist/admin/pages/WaitlistPage.js +9 -10
- package/dist/admin/pages/WaitlistPage.js.map +1 -1
- package/dist/admin/pages/WorkflowsPage.d.ts +1 -0
- package/dist/admin/pages/WorkflowsPage.js +13 -14
- package/dist/admin/pages/WorkflowsPage.js.map +1 -1
- package/dist/admin/pages/WorkspacesListPage.d.ts +2 -0
- package/dist/admin/pages/WorkspacesListPage.js +25 -26
- package/dist/admin/pages/WorkspacesListPage.js.map +1 -1
- package/dist/admin/pages/aiSpend/aiSpendFormat.d.ts +34 -0
- package/dist/admin/pages/aiSpend/aiSpendFormat.js +3 -3
- package/dist/admin/pages/aiSpend/aiSpendFormat.js.map +1 -1
- package/dist/admin/pages/index.d.ts +23 -0
- package/dist/admin/pages/index.js +1 -1
- package/dist/admin/providers/AdminProvider.d.ts +11 -0
- package/dist/admin/providers/AdminProvider.js +8 -9
- package/dist/admin/providers/AdminProvider.js.map +1 -1
- package/dist/admin/schemas/index.d.ts +337 -0
- package/dist/admin/schemas/index.js +2 -3
- package/dist/admin/schemas/index.js.map +1 -1
- package/dist/admin/store/adminStore.d.ts +26 -0
- package/dist/admin/store/adminStore.js +1 -2
- package/dist/admin/store/adminStore.js.map +1 -1
- package/dist/admin/types/index.d.ts +323 -0
- package/dist/admin/utils/cn.d.ts +5 -0
- package/dist/admin/utils/cn.js +2 -3
- package/dist/admin/utils/cn.js.map +1 -1
- package/dist/admin/utils/directActivityGraphql.d.ts +10 -0
- package/dist/admin/utils/directActivityGraphql.js +1 -2
- package/dist/admin/utils/directActivityGraphql.js.map +1 -1
- package/dist/admin/utils/formatters.d.ts +32 -0
- package/dist/admin/utils/formatters.js +12 -11
- package/dist/admin/utils/formatters.js.map +1 -1
- package/dist/admin/utils/gatewayGraphql.d.ts +8 -0
- package/dist/admin/utils/i18n.d.ts +4 -0
- package/dist/admin/utils/i18n.js +1 -2
- package/dist/admin/utils/i18n.js.map +1 -1
- package/dist/admin/utils/mappers.d.ts +13 -0
- package/dist/admin/utils/mappers.js +2 -3
- package/dist/admin/utils/mappers.js.map +1 -1
- package/dist/admin/utils/navigation.d.ts +8 -0
- package/dist/admin/utils/navigation.js +1 -2
- package/dist/admin/utils/navigation.js.map +1 -1
- package/dist/admin/utils/tenantEvents.d.ts +9 -0
- package/dist/admin/utils/tenantEvents.js +1 -2
- package/dist/admin/utils/tenantEvents.js.map +1 -1
- package/dist/dev/main.d.ts +0 -0
- package/dist/generated/global-operations.d.ts +3410 -0
- package/dist/generated/global-operations.js +137 -138
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +27174 -0
- package/dist/generated/global-types.js +1 -2
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +224 -0
- package/dist/generated/wspace-operations.js +2 -3
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +123963 -0
- package/dist/index.d.ts +5 -0
- package/dist/node_modules/@hookform/resolvers/dist/resolvers.js +4 -5
- package/dist/node_modules/@hookform/resolvers/dist/resolvers.js.map +1 -1
- package/dist/node_modules/@hookform/resolvers/zod/dist/zod.js +83 -75
- package/dist/node_modules/@hookform/resolvers/zod/dist/zod.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +1 -2
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +1 -2
- package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/formatters.js +27 -21
- package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +3 -4
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +2 -5
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +1 -2
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +2 -3
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +2 -3
- package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +1 -2
- package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -1
- package/dist/node_modules/date-fns/compareAsc.js +3 -4
- package/dist/node_modules/date-fns/compareAsc.js.map +1 -1
- package/dist/node_modules/date-fns/constants.js +5 -6
- package/dist/node_modules/date-fns/constants.js.map +1 -1
- package/dist/node_modules/date-fns/constructFrom.js +2 -3
- package/dist/node_modules/date-fns/constructFrom.js.map +1 -1
- package/dist/node_modules/date-fns/constructNow.js +3 -4
- package/dist/node_modules/date-fns/constructNow.js.map +1 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +7 -8
- package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -1
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +2 -3
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -1
- package/dist/node_modules/date-fns/differenceInMilliseconds.js +3 -4
- package/dist/node_modules/date-fns/differenceInMilliseconds.js.map +1 -1
- package/dist/node_modules/date-fns/differenceInMonths.js +3 -4
- package/dist/node_modules/date-fns/differenceInMonths.js.map +1 -1
- package/dist/node_modules/date-fns/differenceInSeconds.js +2 -3
- package/dist/node_modules/date-fns/differenceInSeconds.js.map +1 -1
- package/dist/node_modules/date-fns/endOfDay.js +2 -3
- package/dist/node_modules/date-fns/endOfDay.js.map +1 -1
- package/dist/node_modules/date-fns/endOfMonth.js +2 -3
- package/dist/node_modules/date-fns/endOfMonth.js.map +1 -1
- package/dist/node_modules/date-fns/format.js +15 -16
- package/dist/node_modules/date-fns/format.js.map +1 -1
- package/dist/node_modules/date-fns/formatDistance.js +23 -21
- package/dist/node_modules/date-fns/formatDistance.js.map +1 -1
- package/dist/node_modules/date-fns/formatDistanceToNow.js +3 -4
- package/dist/node_modules/date-fns/formatDistanceToNow.js.map +1 -1
- package/dist/node_modules/date-fns/getDayOfYear.js +7 -8
- package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -1
- package/dist/node_modules/date-fns/getISOWeek.js +6 -7
- package/dist/node_modules/date-fns/getISOWeek.js.map +1 -1
- package/dist/node_modules/date-fns/getISOWeekYear.js +8 -9
- package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/getWeek.js +6 -7
- package/dist/node_modules/date-fns/getWeek.js.map +1 -1
- package/dist/node_modules/date-fns/getWeekYear.js +9 -10
- package/dist/node_modules/date-fns/getWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/isDate.js +2 -3
- package/dist/node_modules/date-fns/isDate.js.map +1 -1
- package/dist/node_modules/date-fns/isLastDayOfMonth.js +7 -8
- package/dist/node_modules/date-fns/isLastDayOfMonth.js.map +1 -1
- package/dist/node_modules/date-fns/isValid.js +5 -6
- package/dist/node_modules/date-fns/isValid.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +1 -2
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +1 -2
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +1 -2
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +1 -2
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +1 -2
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +1 -2
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US.js +2 -3
- package/dist/node_modules/date-fns/locale/en-US.js.map +1 -1
- package/dist/node_modules/date-fns/parseISO.js +3 -4
- package/dist/node_modules/date-fns/parseISO.js.map +1 -1
- package/dist/node_modules/date-fns/startOfDay.js +2 -3
- package/dist/node_modules/date-fns/startOfDay.js.map +1 -1
- package/dist/node_modules/date-fns/startOfISOWeek.js +2 -3
- package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -1
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +7 -8
- package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/startOfWeek.js +5 -6
- package/dist/node_modules/date-fns/startOfWeek.js.map +1 -1
- package/dist/node_modules/date-fns/startOfWeekYear.js +8 -9
- package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/startOfYear.js +2 -3
- package/dist/node_modules/date-fns/startOfYear.js.map +1 -1
- package/dist/node_modules/date-fns/toDate.js +3 -4
- package/dist/node_modules/date-fns/toDate.js.map +1 -1
- package/dist/node_modules/react-hook-form/dist/index.esm.js +1145 -861
- package/dist/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/zod/v3/ZodError.js +1 -2
- package/dist/node_modules/zod/v3/ZodError.js.map +1 -1
- package/dist/node_modules/zod/v3/errors.js +2 -3
- package/dist/node_modules/zod/v3/errors.js.map +1 -1
- package/dist/node_modules/zod/v3/helpers/errorUtil.js +1 -2
- package/dist/node_modules/zod/v3/helpers/errorUtil.js.map +1 -1
- package/dist/node_modules/zod/v3/helpers/parseUtil.js +5 -6
- package/dist/node_modules/zod/v3/helpers/parseUtil.js.map +1 -1
- package/dist/node_modules/zod/v3/helpers/util.js +2 -3
- package/dist/node_modules/zod/v3/helpers/util.js.map +1 -1
- package/dist/node_modules/zod/v3/locales/en.js +26 -27
- package/dist/node_modules/zod/v3/locales/en.js.map +1 -1
- package/dist/node_modules/zod/v3/types.js +966 -956
- package/dist/node_modules/zod/v3/types.js.map +1 -1
- package/package.json +66 -59
- package/dist/node_modules/zod/v4/core/core.js +0 -35
- package/dist/node_modules/zod/v4/core/core.js.map +0 -1
- package/dist/node_modules/zod/v4/core/errors.js +0 -24
- package/dist/node_modules/zod/v4/core/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/parse.js +0 -29
- package/dist/node_modules/zod/v4/core/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/core/util.js +0 -20
- package/dist/node_modules/zod/v4/core/util.js.map +0 -1
|
@@ -2,22 +2,22 @@ import { useToast as e } from "../components/Toast.js";
|
|
|
2
2
|
import { useAdminPermissions as t } from "../hooks/useAdminPermissions.js";
|
|
3
3
|
import { Badge as n, Button as r, EmptyState as i, Input as a } from "../components/ui.js";
|
|
4
4
|
import { PageLayout as ee } from "../components/PageLayout.js";
|
|
5
|
-
import { formatDate as te } from "../utils/formatters.js";
|
|
6
|
-
import { DataTable as ne, Pagination as re } from "../components/DataTable.js";
|
|
7
|
-
import { FormRow as o, FormSection as s, FormSheet as ie, FormSheetFooter as ae } from "../components/FormSheet.js";
|
|
8
|
-
import { DeleteConfirmDialog as oe } from "../components/ConfirmDialog.js";
|
|
9
|
-
import { RowActions as se, createRowActions as ce } from "../components/RowActions.js";
|
|
10
|
-
import { PermissionGuard as le } from "../components/PermissionGuard.js";
|
|
11
|
-
import { MarkdownEditor as ue } from "../components/MarkdownEditor.js";
|
|
12
5
|
import "../components/index.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
import { DataTable as te, Pagination as ne } from "../components/DataTable.js";
|
|
7
|
+
import { FormRow as o, FormSection as s, FormSheet as re, FormSheetFooter as c } from "../components/FormSheet.js";
|
|
8
|
+
import { DeleteConfirmDialog as ie } from "../components/ConfirmDialog.js";
|
|
9
|
+
import { RowActions as ae, createRowActions as oe } from "../components/RowActions.js";
|
|
10
|
+
import { PermissionGuard as se } from "../components/PermissionGuard.js";
|
|
11
|
+
import { MarkdownEditor as ce } from "../components/MarkdownEditor.js";
|
|
12
|
+
import { formatDate as le } from "../utils/formatters.js";
|
|
13
|
+
import { useCallback as l, useEffect as u, useRef as ue, useState as d } from "react";
|
|
14
|
+
import { FileText as f, Plus as de, Search as fe } from "lucide-react";
|
|
15
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
16
|
+
import { EmphasisPanel as pe, PagePurpose as me } from "@burdenoff/fe-libs/ui";
|
|
17
|
+
import { gql as h } from "@apollo/client";
|
|
18
|
+
import { useApolloClient as he } from "@apollo/client/react";
|
|
19
|
+
// src/admin/pages/ContentPagesPage.tsx
|
|
20
|
+
var g = 20, _ = [
|
|
21
21
|
{
|
|
22
22
|
value: "blog",
|
|
23
23
|
label: "Blog",
|
|
@@ -33,11 +33,11 @@ var h = 20, g = [
|
|
|
33
33
|
label: "Changelog",
|
|
34
34
|
category: "Changelog"
|
|
35
35
|
}
|
|
36
|
-
],
|
|
36
|
+
], ge = {
|
|
37
37
|
blog: "default",
|
|
38
38
|
"case-study": "secondary",
|
|
39
39
|
changelog: "outline"
|
|
40
|
-
}, _e =
|
|
40
|
+
}, _e = h`
|
|
41
41
|
query AdminContentListProducts($limit: Int, $offset: Int) {
|
|
42
42
|
platformProducts(limit: $limit, offset: $offset) {
|
|
43
43
|
items {
|
|
@@ -47,7 +47,7 @@ var h = 20, g = [
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
`, ve =
|
|
50
|
+
`, ve = h`
|
|
51
51
|
query AdminContentPages(
|
|
52
52
|
$productId: String
|
|
53
53
|
$filter: ContentPageFilterInput
|
|
@@ -77,21 +77,21 @@ var h = 20, g = [
|
|
|
77
77
|
total
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
`, ye =
|
|
80
|
+
`, ye = h`
|
|
81
81
|
mutation AdminCreateContentPage($input: CreateContentPageInput!) {
|
|
82
82
|
createContentPage(input: $input) {
|
|
83
83
|
id
|
|
84
84
|
slug
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
`, be =
|
|
87
|
+
`, be = h`
|
|
88
88
|
mutation AdminUpdateContentPage($id: ID!, $input: UpdateContentPageInput!) {
|
|
89
89
|
updateContentPage(id: $id, input: $input) {
|
|
90
90
|
id
|
|
91
91
|
slug
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
`, xe =
|
|
94
|
+
`, xe = h`
|
|
95
95
|
mutation AdminDeleteContentPage($id: ID!) {
|
|
96
96
|
deleteContentPage(id: $id)
|
|
97
97
|
}
|
|
@@ -114,15 +114,15 @@ function Se(e) {
|
|
|
114
114
|
}
|
|
115
115
|
var y = "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50";
|
|
116
116
|
function b() {
|
|
117
|
-
let { canViewProducts:
|
|
118
|
-
|
|
117
|
+
let { canViewProducts: h, canManageProducts: b, isLoading: x } = t(), S = he(), C = e(), [w, Ce] = d([]), [T, E] = d(""), [D, we] = d(""), [O, k] = d(""), [A, Te] = d(""), [j, M] = d(1), N = ue(0);
|
|
118
|
+
u(() => {
|
|
119
119
|
let e = setTimeout(() => {
|
|
120
120
|
Te(O), M(1);
|
|
121
121
|
}, 300);
|
|
122
122
|
return () => clearTimeout(e);
|
|
123
123
|
}, [O]);
|
|
124
|
-
let [P, Ee] =
|
|
125
|
-
|
|
124
|
+
let [P, Ee] = d([]), [F, De] = d(0), [I, L] = d(!1), [R, z] = d(null), [Oe, B] = d(!1), [V, H] = d(null), [U, W] = d(v), [ke, G] = d(!1), [K, q] = d(null), [J, Y] = d(!1), X = x || !h;
|
|
125
|
+
u(() => {
|
|
126
126
|
if (X) return;
|
|
127
127
|
let e = !0;
|
|
128
128
|
return S.query({
|
|
@@ -142,7 +142,7 @@ function b() {
|
|
|
142
142
|
e = !1;
|
|
143
143
|
};
|
|
144
144
|
}, [S, X]);
|
|
145
|
-
let Z =
|
|
145
|
+
let Z = l(async () => {
|
|
146
146
|
if (X || !T) return;
|
|
147
147
|
let e = ++N.current;
|
|
148
148
|
L(!0);
|
|
@@ -155,8 +155,8 @@ function b() {
|
|
|
155
155
|
...A ? { search: A } : {},
|
|
156
156
|
...D ? { tag: D } : {}
|
|
157
157
|
},
|
|
158
|
-
limit:
|
|
159
|
-
offset: (j - 1) *
|
|
158
|
+
limit: g,
|
|
159
|
+
offset: (j - 1) * g
|
|
160
160
|
},
|
|
161
161
|
fetchPolicy: "network-only"
|
|
162
162
|
});
|
|
@@ -176,16 +176,16 @@ function b() {
|
|
|
176
176
|
D,
|
|
177
177
|
j
|
|
178
178
|
]);
|
|
179
|
-
|
|
179
|
+
u(() => {
|
|
180
180
|
Z();
|
|
181
181
|
}, [Z]);
|
|
182
|
-
let Ae = Math.ceil(F /
|
|
182
|
+
let Ae = Math.ceil(F / g), je = l(() => {
|
|
183
183
|
H(null), W({
|
|
184
184
|
...v,
|
|
185
185
|
productId: T,
|
|
186
186
|
type: D || "blog"
|
|
187
187
|
}), B(!0);
|
|
188
|
-
}, [T, D]), Me =
|
|
188
|
+
}, [T, D]), Me = l((e) => {
|
|
189
189
|
H(e), W({
|
|
190
190
|
productId: e.productId ?? "",
|
|
191
191
|
type: Se(e.tags),
|
|
@@ -200,7 +200,7 @@ function b() {
|
|
|
200
200
|
featured: e.featured,
|
|
201
201
|
isPublished: e.isPublished
|
|
202
202
|
}), B(!0);
|
|
203
|
-
}, []), Ne =
|
|
203
|
+
}, []), Ne = l(async () => {
|
|
204
204
|
let e = [
|
|
205
205
|
!U.title.trim() && "Title",
|
|
206
206
|
!U.slug.trim() && "Slug",
|
|
@@ -216,7 +216,7 @@ function b() {
|
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
218
|
G(!0);
|
|
219
|
-
let n =
|
|
219
|
+
let n = _.find((e) => e.value === U.type), r = V ? null : void 0, i = {
|
|
220
220
|
title: U.title.trim(),
|
|
221
221
|
content: U.content,
|
|
222
222
|
contentFormat: "markdown",
|
|
@@ -257,8 +257,8 @@ function b() {
|
|
|
257
257
|
S,
|
|
258
258
|
C,
|
|
259
259
|
Z
|
|
260
|
-
]), Pe =
|
|
261
|
-
if (
|
|
260
|
+
]), Pe = l(async () => {
|
|
261
|
+
if (K && !J) {
|
|
262
262
|
Y(!0);
|
|
263
263
|
try {
|
|
264
264
|
await S.mutate({
|
|
@@ -283,12 +283,12 @@ function b() {
|
|
|
283
283
|
{
|
|
284
284
|
key: "title",
|
|
285
285
|
header: "Title",
|
|
286
|
-
render: (e) => /* @__PURE__ */
|
|
286
|
+
render: (e) => /* @__PURE__ */ m("div", {
|
|
287
287
|
className: "min-w-0",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ p("div", {
|
|
289
289
|
className: "font-medium text-foreground",
|
|
290
290
|
children: e.title
|
|
291
|
-
}), /* @__PURE__ */
|
|
291
|
+
}), /* @__PURE__ */ p("div", {
|
|
292
292
|
className: "truncate text-xs text-muted-foreground",
|
|
293
293
|
children: e.slug
|
|
294
294
|
})]
|
|
@@ -299,9 +299,9 @@ function b() {
|
|
|
299
299
|
header: "Type",
|
|
300
300
|
width: "120px",
|
|
301
301
|
render: (e) => {
|
|
302
|
-
let t =
|
|
303
|
-
return /* @__PURE__ */
|
|
304
|
-
variant: t ?
|
|
302
|
+
let t = _.find((t) => e.tags.includes(t.value));
|
|
303
|
+
return /* @__PURE__ */ p(n, {
|
|
304
|
+
variant: t ? ge[t.value] : "outline",
|
|
305
305
|
className: "text-xs capitalize",
|
|
306
306
|
children: t?.label ?? "Other"
|
|
307
307
|
});
|
|
@@ -311,13 +311,13 @@ function b() {
|
|
|
311
311
|
key: "status",
|
|
312
312
|
header: "Status",
|
|
313
313
|
width: "110px",
|
|
314
|
-
render: (e) => /* @__PURE__ */
|
|
314
|
+
render: (e) => /* @__PURE__ */ m("div", {
|
|
315
315
|
className: "flex items-center gap-1",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ p(n, {
|
|
317
317
|
variant: e.isPublished ? "default" : "outline",
|
|
318
318
|
className: "text-xs",
|
|
319
319
|
children: e.isPublished ? "Published" : "Draft"
|
|
320
|
-
}), e.featured && /* @__PURE__ */
|
|
320
|
+
}), e.featured && /* @__PURE__ */ p(n, {
|
|
321
321
|
variant: "secondary",
|
|
322
322
|
className: "text-xs",
|
|
323
323
|
children: "Featured"
|
|
@@ -328,87 +328,87 @@ function b() {
|
|
|
328
328
|
key: "updatedAt",
|
|
329
329
|
header: "Updated",
|
|
330
330
|
width: "110px",
|
|
331
|
-
render: (e) =>
|
|
331
|
+
render: (e) => le(e.updatedAt)
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
334
|
key: "actions",
|
|
335
335
|
header: "",
|
|
336
336
|
width: "60px",
|
|
337
337
|
align: "right",
|
|
338
|
-
render: (e) => /* @__PURE__ */
|
|
338
|
+
render: (e) => /* @__PURE__ */ p(ae, { actions: oe({
|
|
339
339
|
onEdit: b ? () => Me(e) : void 0,
|
|
340
340
|
onDelete: b ? () => q(e) : void 0
|
|
341
341
|
}) })
|
|
342
342
|
}
|
|
343
|
-
], Q = "content-page-form", $ = !!V && !
|
|
344
|
-
return /* @__PURE__ */
|
|
345
|
-
allowed:
|
|
343
|
+
], Q = "content-page-form", $ = !!V && !_.some((e) => V.tags.includes(e.value));
|
|
344
|
+
return /* @__PURE__ */ m(se, {
|
|
345
|
+
allowed: h,
|
|
346
346
|
isLoading: x,
|
|
347
347
|
pageTitle: "Content",
|
|
348
348
|
denyMessage: "You don't have permission to manage content pages.",
|
|
349
349
|
children: [
|
|
350
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ p(ee, {
|
|
351
351
|
title: "Content",
|
|
352
352
|
gradientWord: "Content",
|
|
353
353
|
description: `Blog posts, case studies, and changelog entries${F ? ` · ${F} total` : ""}`,
|
|
354
|
-
actions: /* @__PURE__ */
|
|
354
|
+
actions: /* @__PURE__ */ m(r, {
|
|
355
355
|
onClick: je,
|
|
356
356
|
disabled: !b || !T,
|
|
357
|
-
children: [/* @__PURE__ */
|
|
357
|
+
children: [/* @__PURE__ */ p(de, { className: "mr-2 h-4 w-4" }), "New Content"]
|
|
358
358
|
}),
|
|
359
|
-
children: /* @__PURE__ */
|
|
359
|
+
children: /* @__PURE__ */ m("div", {
|
|
360
360
|
className: "space-y-4",
|
|
361
361
|
children: [
|
|
362
|
-
/* @__PURE__ */
|
|
363
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ p(me, { children: "Manage the marketing and product content that powers each product's public site — blog posts, case studies and changelog entries. Pick a product, then draft, edit and publish the stories that show up on its website." }),
|
|
363
|
+
/* @__PURE__ */ m(pe, {
|
|
364
364
|
className: "flex items-center gap-4 p-5",
|
|
365
|
-
children: [/* @__PURE__ */
|
|
365
|
+
children: [/* @__PURE__ */ p("div", {
|
|
366
366
|
className: "flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-action-primary-bg/15 text-action-primary-bg",
|
|
367
|
-
children: /* @__PURE__ */ f
|
|
368
|
-
}), /* @__PURE__ */
|
|
367
|
+
children: /* @__PURE__ */ p(f, { className: "h-6 w-6" })
|
|
368
|
+
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("div", {
|
|
369
369
|
className: "text-3xl font-bold tabular-nums text-text-primary",
|
|
370
370
|
children: F
|
|
371
|
-
}), /* @__PURE__ */
|
|
371
|
+
}), /* @__PURE__ */ p("p", {
|
|
372
372
|
className: "text-sm text-text-secondary",
|
|
373
373
|
children: "content entries for this product"
|
|
374
374
|
})] })]
|
|
375
375
|
}),
|
|
376
|
-
/* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ m("div", {
|
|
377
377
|
className: "flex flex-wrap items-center gap-3",
|
|
378
378
|
children: [
|
|
379
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ m("select", {
|
|
380
380
|
"aria-label": "Filter by product",
|
|
381
381
|
className: `${y} max-w-xs`,
|
|
382
382
|
value: T,
|
|
383
383
|
onChange: (e) => {
|
|
384
384
|
M(1), E(e.target.value);
|
|
385
385
|
},
|
|
386
|
-
children: [w.length === 0 && /* @__PURE__ */
|
|
386
|
+
children: [w.length === 0 && /* @__PURE__ */ p("option", {
|
|
387
387
|
value: "",
|
|
388
388
|
children: "Loading products…"
|
|
389
|
-
}), w.map((e) => /* @__PURE__ */
|
|
389
|
+
}), w.map((e) => /* @__PURE__ */ p("option", {
|
|
390
390
|
value: e.id,
|
|
391
391
|
children: e.name
|
|
392
392
|
}, e.id))]
|
|
393
393
|
}),
|
|
394
|
-
/* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ m("select", {
|
|
395
395
|
"aria-label": "Filter by content type",
|
|
396
396
|
className: `${y} max-w-[180px]`,
|
|
397
397
|
value: D,
|
|
398
398
|
onChange: (e) => {
|
|
399
399
|
M(1), we(e.target.value);
|
|
400
400
|
},
|
|
401
|
-
children: [/* @__PURE__ */
|
|
401
|
+
children: [/* @__PURE__ */ p("option", {
|
|
402
402
|
value: "",
|
|
403
403
|
children: "All types"
|
|
404
|
-
}),
|
|
404
|
+
}), _.map((e) => /* @__PURE__ */ p("option", {
|
|
405
405
|
value: e.value,
|
|
406
406
|
children: e.label
|
|
407
407
|
}, e.value))]
|
|
408
408
|
}),
|
|
409
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ m("div", {
|
|
410
410
|
className: "relative max-w-sm flex-1",
|
|
411
|
-
children: [/* @__PURE__ */
|
|
411
|
+
children: [/* @__PURE__ */ p(fe, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ p(a, {
|
|
412
412
|
placeholder: "Search content...",
|
|
413
413
|
value: O,
|
|
414
414
|
onChange: (e) => k(e.target.value),
|
|
@@ -417,60 +417,60 @@ function b() {
|
|
|
417
417
|
})
|
|
418
418
|
]
|
|
419
419
|
}),
|
|
420
|
-
R && /* @__PURE__ */
|
|
420
|
+
R && /* @__PURE__ */ p("div", {
|
|
421
421
|
className: "rounded-md border border-destructive/50 bg-destructive/10 p-4 text-sm text-destructive",
|
|
422
422
|
children: R
|
|
423
423
|
}),
|
|
424
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ p(te, {
|
|
425
425
|
columns: Fe,
|
|
426
426
|
data: P,
|
|
427
427
|
keyExtractor: (e) => e.id,
|
|
428
428
|
loading: I,
|
|
429
|
-
emptyState: /* @__PURE__ */
|
|
429
|
+
emptyState: /* @__PURE__ */ p(i, {
|
|
430
430
|
illustration: "empty-files",
|
|
431
|
-
icon: /* @__PURE__ */ f
|
|
431
|
+
icon: /* @__PURE__ */ p(f, { className: "h-8 w-8" }),
|
|
432
432
|
title: "No content yet",
|
|
433
433
|
description: "Create a blog post, case study, or changelog entry to get started."
|
|
434
434
|
})
|
|
435
435
|
}),
|
|
436
|
-
F >
|
|
436
|
+
F > g && /* @__PURE__ */ p(ne, {
|
|
437
437
|
page: j,
|
|
438
438
|
totalPages: Ae,
|
|
439
439
|
totalItems: F,
|
|
440
|
-
pageSize:
|
|
440
|
+
pageSize: g,
|
|
441
441
|
onPageChange: M
|
|
442
442
|
})
|
|
443
443
|
]
|
|
444
444
|
})
|
|
445
445
|
}),
|
|
446
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ p(re, {
|
|
447
447
|
open: Oe,
|
|
448
448
|
onClose: () => B(!1),
|
|
449
449
|
title: V ? "Edit content" : "New content",
|
|
450
|
-
footer: /* @__PURE__ */
|
|
450
|
+
footer: /* @__PURE__ */ p(c, {
|
|
451
451
|
formId: Q,
|
|
452
452
|
isSubmitting: ke,
|
|
453
453
|
submitLabel: V ? "Save changes" : "Create",
|
|
454
454
|
onCancel: () => B(!1)
|
|
455
455
|
}),
|
|
456
|
-
children: /* @__PURE__ */
|
|
456
|
+
children: /* @__PURE__ */ m("form", {
|
|
457
457
|
id: Q,
|
|
458
458
|
onSubmit: (e) => {
|
|
459
459
|
e.preventDefault(), Ne();
|
|
460
460
|
},
|
|
461
461
|
className: "space-y-6",
|
|
462
462
|
children: [
|
|
463
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ m(s, {
|
|
464
464
|
title: "Basics",
|
|
465
465
|
children: [
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ m(o, {
|
|
467
467
|
cols: 2,
|
|
468
|
-
children: [/* @__PURE__ */
|
|
468
|
+
children: [/* @__PURE__ */ m("label", {
|
|
469
469
|
className: "space-y-1.5",
|
|
470
|
-
children: [/* @__PURE__ */
|
|
470
|
+
children: [/* @__PURE__ */ p("span", {
|
|
471
471
|
className: "text-sm font-medium",
|
|
472
472
|
children: "Type"
|
|
473
|
-
}), /* @__PURE__ */
|
|
473
|
+
}), /* @__PURE__ */ m("select", {
|
|
474
474
|
className: y,
|
|
475
475
|
value: $ ? "__other" : U.type,
|
|
476
476
|
disabled: !!V,
|
|
@@ -478,20 +478,20 @@ function b() {
|
|
|
478
478
|
...t,
|
|
479
479
|
type: e.target.value
|
|
480
480
|
})),
|
|
481
|
-
children: [$ && /* @__PURE__ */
|
|
481
|
+
children: [$ && /* @__PURE__ */ p("option", {
|
|
482
482
|
value: "__other",
|
|
483
483
|
children: "Other"
|
|
484
|
-
}),
|
|
484
|
+
}), _.map((e) => /* @__PURE__ */ p("option", {
|
|
485
485
|
value: e.value,
|
|
486
486
|
children: e.label
|
|
487
487
|
}, e.value))]
|
|
488
488
|
})]
|
|
489
|
-
}), /* @__PURE__ */
|
|
489
|
+
}), /* @__PURE__ */ m("label", {
|
|
490
490
|
className: "space-y-1.5",
|
|
491
|
-
children: [/* @__PURE__ */
|
|
491
|
+
children: [/* @__PURE__ */ p("span", {
|
|
492
492
|
className: "text-sm font-medium",
|
|
493
493
|
children: "Product"
|
|
494
|
-
}), /* @__PURE__ */
|
|
494
|
+
}), /* @__PURE__ */ p("select", {
|
|
495
495
|
className: y,
|
|
496
496
|
value: U.productId,
|
|
497
497
|
disabled: !!V,
|
|
@@ -499,21 +499,21 @@ function b() {
|
|
|
499
499
|
...t,
|
|
500
500
|
productId: e.target.value
|
|
501
501
|
})),
|
|
502
|
-
children: w.map((e) => /* @__PURE__ */
|
|
502
|
+
children: w.map((e) => /* @__PURE__ */ p("option", {
|
|
503
503
|
value: e.id,
|
|
504
504
|
children: e.name
|
|
505
505
|
}, e.id))
|
|
506
506
|
})]
|
|
507
507
|
})]
|
|
508
508
|
}),
|
|
509
|
-
/* @__PURE__ */
|
|
509
|
+
/* @__PURE__ */ m(o, {
|
|
510
510
|
cols: 2,
|
|
511
|
-
children: [/* @__PURE__ */
|
|
511
|
+
children: [/* @__PURE__ */ m("label", {
|
|
512
512
|
className: "space-y-1.5",
|
|
513
|
-
children: [/* @__PURE__ */
|
|
513
|
+
children: [/* @__PURE__ */ p("span", {
|
|
514
514
|
className: "text-sm font-medium",
|
|
515
515
|
children: "Title"
|
|
516
|
-
}), /* @__PURE__ */
|
|
516
|
+
}), /* @__PURE__ */ p(a, {
|
|
517
517
|
value: U.title,
|
|
518
518
|
onChange: (e) => W((t) => ({
|
|
519
519
|
...t,
|
|
@@ -521,12 +521,12 @@ function b() {
|
|
|
521
521
|
})),
|
|
522
522
|
placeholder: "A clear, descriptive title"
|
|
523
523
|
})]
|
|
524
|
-
}), /* @__PURE__ */
|
|
524
|
+
}), /* @__PURE__ */ m("label", {
|
|
525
525
|
className: "space-y-1.5",
|
|
526
|
-
children: [/* @__PURE__ */
|
|
526
|
+
children: [/* @__PURE__ */ p("span", {
|
|
527
527
|
className: "text-sm font-medium",
|
|
528
528
|
children: "Slug"
|
|
529
|
-
}), /* @__PURE__ */
|
|
529
|
+
}), /* @__PURE__ */ p(a, {
|
|
530
530
|
value: U.slug,
|
|
531
531
|
disabled: !!V,
|
|
532
532
|
onChange: (e) => W((t) => ({
|
|
@@ -537,12 +537,12 @@ function b() {
|
|
|
537
537
|
})]
|
|
538
538
|
})]
|
|
539
539
|
}),
|
|
540
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ m("label", {
|
|
541
541
|
className: "block space-y-1.5",
|
|
542
|
-
children: [/* @__PURE__ */
|
|
542
|
+
children: [/* @__PURE__ */ p("span", {
|
|
543
543
|
className: "text-sm font-medium",
|
|
544
544
|
children: "Excerpt"
|
|
545
|
-
}), /* @__PURE__ */
|
|
545
|
+
}), /* @__PURE__ */ p("textarea", {
|
|
546
546
|
className: `${y} h-16 py-2`,
|
|
547
547
|
value: U.excerpt,
|
|
548
548
|
onChange: (e) => W((t) => ({
|
|
@@ -554,10 +554,10 @@ function b() {
|
|
|
554
554
|
})
|
|
555
555
|
]
|
|
556
556
|
}),
|
|
557
|
-
/* @__PURE__ */
|
|
557
|
+
/* @__PURE__ */ p(s, {
|
|
558
558
|
title: "Content",
|
|
559
559
|
description: "Markdown supported (headings, lists, links, bold). Use the toolbar to insert common syntax.",
|
|
560
|
-
children: /* @__PURE__ */
|
|
560
|
+
children: /* @__PURE__ */ p(ce, {
|
|
561
561
|
"aria-label": "Content",
|
|
562
562
|
value: U.content,
|
|
563
563
|
onChange: (e) => W((t) => ({
|
|
@@ -567,18 +567,18 @@ function b() {
|
|
|
567
567
|
placeholder: "## Heading\n\nWrite your content in markdown..."
|
|
568
568
|
})
|
|
569
569
|
}),
|
|
570
|
-
/* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ m(s, {
|
|
571
571
|
title: "Meta",
|
|
572
572
|
children: [
|
|
573
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ m(o, {
|
|
574
574
|
cols: 3,
|
|
575
575
|
children: [
|
|
576
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ m("label", {
|
|
577
577
|
className: "space-y-1.5",
|
|
578
|
-
children: [/* @__PURE__ */
|
|
578
|
+
children: [/* @__PURE__ */ p("span", {
|
|
579
579
|
className: "text-sm font-medium",
|
|
580
580
|
children: "Author"
|
|
581
|
-
}), /* @__PURE__ */
|
|
581
|
+
}), /* @__PURE__ */ p(a, {
|
|
582
582
|
value: U.author,
|
|
583
583
|
onChange: (e) => W((t) => ({
|
|
584
584
|
...t,
|
|
@@ -587,12 +587,12 @@ function b() {
|
|
|
587
587
|
placeholder: "The Team"
|
|
588
588
|
})]
|
|
589
589
|
}),
|
|
590
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ m("label", {
|
|
591
591
|
className: "space-y-1.5",
|
|
592
|
-
children: [/* @__PURE__ */
|
|
592
|
+
children: [/* @__PURE__ */ p("span", {
|
|
593
593
|
className: "text-sm font-medium",
|
|
594
594
|
children: "Published date"
|
|
595
|
-
}), /* @__PURE__ */
|
|
595
|
+
}), /* @__PURE__ */ p(a, {
|
|
596
596
|
type: "date",
|
|
597
597
|
value: U.publishedAt,
|
|
598
598
|
onChange: (e) => W((t) => ({
|
|
@@ -601,12 +601,12 @@ function b() {
|
|
|
601
601
|
}))
|
|
602
602
|
})]
|
|
603
603
|
}),
|
|
604
|
-
/* @__PURE__ */
|
|
604
|
+
/* @__PURE__ */ m("label", {
|
|
605
605
|
className: "space-y-1.5",
|
|
606
|
-
children: [/* @__PURE__ */
|
|
606
|
+
children: [/* @__PURE__ */ p("span", {
|
|
607
607
|
className: "text-sm font-medium",
|
|
608
608
|
children: "Reading time (min)"
|
|
609
|
-
}), /* @__PURE__ */
|
|
609
|
+
}), /* @__PURE__ */ p(a, {
|
|
610
610
|
type: "number",
|
|
611
611
|
min: 0,
|
|
612
612
|
value: U.readingTime,
|
|
@@ -618,12 +618,12 @@ function b() {
|
|
|
618
618
|
})
|
|
619
619
|
]
|
|
620
620
|
}),
|
|
621
|
-
/* @__PURE__ */
|
|
621
|
+
/* @__PURE__ */ m("label", {
|
|
622
622
|
className: "block space-y-1.5",
|
|
623
|
-
children: [/* @__PURE__ */
|
|
623
|
+
children: [/* @__PURE__ */ p("span", {
|
|
624
624
|
className: "text-sm font-medium",
|
|
625
625
|
children: "Thumbnail URL"
|
|
626
|
-
}), /* @__PURE__ */
|
|
626
|
+
}), /* @__PURE__ */ p(a, {
|
|
627
627
|
value: U.thumbnail,
|
|
628
628
|
onChange: (e) => W((t) => ({
|
|
629
629
|
...t,
|
|
@@ -632,11 +632,11 @@ function b() {
|
|
|
632
632
|
placeholder: "https://…/image.png"
|
|
633
633
|
})]
|
|
634
634
|
}),
|
|
635
|
-
/* @__PURE__ */
|
|
635
|
+
/* @__PURE__ */ m("div", {
|
|
636
636
|
className: "flex items-center gap-6 pt-1",
|
|
637
|
-
children: [/* @__PURE__ */
|
|
637
|
+
children: [/* @__PURE__ */ m("label", {
|
|
638
638
|
className: "flex items-center gap-2 text-sm",
|
|
639
|
-
children: [/* @__PURE__ */
|
|
639
|
+
children: [/* @__PURE__ */ p("input", {
|
|
640
640
|
type: "checkbox",
|
|
641
641
|
checked: U.featured,
|
|
642
642
|
onChange: (e) => W((t) => ({
|
|
@@ -644,9 +644,9 @@ function b() {
|
|
|
644
644
|
featured: e.target.checked
|
|
645
645
|
}))
|
|
646
646
|
}), "Featured"]
|
|
647
|
-
}), /* @__PURE__ */
|
|
647
|
+
}), /* @__PURE__ */ m("label", {
|
|
648
648
|
className: "flex items-center gap-2 text-sm",
|
|
649
|
-
children: [/* @__PURE__ */
|
|
649
|
+
children: [/* @__PURE__ */ p("input", {
|
|
650
650
|
type: "checkbox",
|
|
651
651
|
checked: U.isPublished,
|
|
652
652
|
onChange: (e) => W((t) => ({
|
|
@@ -661,7 +661,7 @@ function b() {
|
|
|
661
661
|
]
|
|
662
662
|
})
|
|
663
663
|
}),
|
|
664
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ p(ie, {
|
|
665
665
|
open: !!K,
|
|
666
666
|
onClose: () => q(null),
|
|
667
667
|
onConfirm: Pe,
|
|
@@ -672,7 +672,6 @@ function b() {
|
|
|
672
672
|
]
|
|
673
673
|
});
|
|
674
674
|
}
|
|
675
|
-
//#endregion
|
|
676
675
|
export { b as ContentPagesPage };
|
|
677
676
|
|
|
678
677
|
//# sourceMappingURL=ContentPagesPage.js.map
|