@cosmicdrift/kumiko-samples 0.378.0 → 0.380.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/bundled-features/package.json +18 -17
- package/packages/bundled-features/src/account-security/feature.ts +2 -2
- package/packages/bundled-features/src/account-security/index.ts +8 -8
- package/packages/bundled-features/src/account-security/{constants.ts → web/constants.ts} +0 -2
- package/packages/bundled-features/src/account-security/{i18n.ts → web/i18n.ts} +0 -1
- package/packages/bundled-features/src/admin-shell/feature.ts +10 -9
- package/packages/bundled-features/src/admin-shell/index.ts +8 -8
- package/packages/bundled-features/src/admin-shell/web/client-plugin.tsx +2 -3
- package/packages/bundled-features/src/admin-shell/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/admin-shell/web/default-translations.ts +10 -0
- package/packages/bundled-features/src/admin-shell/web/i18n.ts +51 -9
- package/packages/bundled-features/src/admin-shell/web/index.ts +0 -1
- package/packages/bundled-features/src/audit/changes.json +7 -0
- package/packages/bundled-features/src/audit/feature.ts +72 -64
- package/packages/bundled-features/src/audit/handlers/audit-events.ts +153 -0
- package/packages/bundled-features/src/audit/handlers/audit-system-db.ts +13 -0
- package/packages/bundled-features/src/audit/handlers/details-all-tenants.query.ts +26 -0
- package/packages/bundled-features/src/audit/handlers/details.query.ts +11 -39
- package/packages/bundled-features/src/audit/handlers/list-all-tenants.query.ts +47 -0
- package/packages/bundled-features/src/audit/handlers/list.query.ts +16 -123
- package/packages/bundled-features/src/audit/handlers/resolve-audit-tenant.ts +21 -7
- package/packages/bundled-features/src/audit/index.ts +1 -1
- package/packages/bundled-features/src/audit/run-escape-hatch-retention.ts +4 -4
- package/packages/bundled-features/src/audit/screens.ts +82 -0
- package/packages/bundled-features/src/audit/web/client-plugin.tsx +2 -3
- package/packages/bundled-features/src/audit/{constants.ts → web/constants.ts} +11 -1
- package/packages/bundled-features/src/audit/web/default-translations.ts +7 -0
- package/packages/bundled-features/src/audit/web/i18n.ts +33 -7
- package/packages/bundled-features/src/audit/web/index.ts +0 -2
- package/packages/bundled-features/src/auth-email-password/bootstrap.ts +6 -6
- package/packages/bundled-features/src/auth-email-password/changes.json +6 -0
- package/packages/bundled-features/src/auth-email-password/errors.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/feature.ts +2 -2
- package/packages/bundled-features/src/auth-email-password/handlers/confirm-account-unlock.write.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/handlers/invite-accept-with-login.write.ts +4 -4
- package/packages/bundled-features/src/auth-email-password/handlers/invite-create.write.ts +3 -3
- package/packages/bundled-features/src/auth-email-password/handlers/invite-info.query.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/handlers/login.write.ts +38 -4
- package/packages/bundled-features/src/auth-email-password/handlers/request-account-unlock.write.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/handlers/request-email-verification.write.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/handlers/request-password-reset.write.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/handlers/reset-password.write.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/handlers/verify-email.write.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/index.ts +6 -1
- package/packages/bundled-features/src/auth-email-password/mail-notifications.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/signup-activation.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/web/auth-client.ts +0 -1
- package/packages/bundled-features/src/auth-email-password/web/auth-form-logic.ts +0 -1
- package/packages/bundled-features/src/auth-email-password/web/auth-form-primitives.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/web/auth-gate.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/web/auth-redirect.ts +0 -1
- package/packages/bundled-features/src/auth-email-password/web/client-actions.ts +0 -1
- package/packages/bundled-features/src/auth-email-password/web/client-plugin.ts +1 -2
- package/packages/bundled-features/src/auth-email-password/web/confirm-account-unlock-screen.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/{constants.ts → web/constants.ts} +3 -6
- package/packages/bundled-features/src/auth-email-password/web/default-topbar-actions.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/web/forgot-password-screen.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/{i18n.ts → web/i18n.ts} +3 -4
- package/packages/bundled-features/src/auth-email-password/web/index.ts +1 -2
- package/packages/bundled-features/src/auth-email-password/web/invite-accept-screen.tsx +2 -3
- package/packages/bundled-features/src/auth-email-password/web/login-screen.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/{mail-i18n.ts → web/mail-i18n.ts} +0 -1
- package/packages/bundled-features/src/auth-email-password/web/request-account-unlock-screen.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/web/reset-password-screen.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/web/session-bootstrap-error.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/web/session.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/web/signup-complete-screen.tsx +2 -3
- package/packages/bundled-features/src/auth-email-password/web/signup-screen.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/web/tenant-menu-items.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/web/tenant-switcher.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/web/use-shell-user.ts +0 -1
- package/packages/bundled-features/src/auth-email-password/web/user-menu.tsx +0 -1
- package/packages/bundled-features/src/auth-email-password/web/verify-email-screen.tsx +0 -1
- package/packages/bundled-features/src/auth-mfa/changes.json +6 -0
- package/packages/bundled-features/src/auth-mfa/errors.ts +2 -2
- package/packages/bundled-features/src/auth-mfa/handlers/enable-confirm-preauth.write.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/handlers/enable-start-preauth.write.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/handlers/enable-start.write.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/handlers/verify.write.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/index.ts +8 -8
- package/packages/bundled-features/src/auth-mfa/mfa-status-checker.ts +4 -4
- package/packages/bundled-features/src/auth-mfa/screens.ts +1 -1
- package/packages/bundled-features/src/auth-mfa/web/client-plugin.ts +0 -1
- package/packages/bundled-features/src/auth-mfa/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/auth-mfa/web/i18n.ts +0 -1
- package/packages/bundled-features/src/auth-mfa/web/index.ts +0 -1
- package/packages/bundled-features/src/auth-mfa/web/mfa-client.ts +0 -1
- package/packages/bundled-features/src/auth-mfa/web/mfa-disable-dialog.tsx +1 -2
- package/packages/bundled-features/src/auth-mfa/web/mfa-recovery-codes-reveal.tsx +0 -1
- package/packages/bundled-features/src/auth-mfa/web/mfa-regenerate-recovery-dialog.tsx +1 -2
- package/packages/bundled-features/src/auth-mfa/web/mfa-setup-preauth-screen.tsx +21 -23
- package/packages/bundled-features/src/auth-mfa/web/mfa-verify-screen.tsx +0 -1
- package/packages/bundled-features/src/billing-foundation/changes.json +18 -0
- package/packages/bundled-features/src/billing-foundation/checkout-core.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/consumer-protection/consent-text.ts +2 -2
- package/packages/bundled-features/src/billing-foundation/consumer-protection/issue-confirmation.ts +11 -3
- package/packages/bundled-features/src/billing-foundation/consumer-protection/mail-notifications.ts +11 -1
- package/packages/bundled-features/src/billing-foundation/consumer-protection/register-consent.ts +1 -1
- package/packages/bundled-features/src/billing-foundation/consumer-protection/register-termination.ts +12 -1
- package/packages/bundled-features/src/billing-foundation/consumer-protection/stored-user-email.ts +12 -0
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-mail.ts +6 -1
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-notify.ts +1 -1
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-pages.ts +167 -28
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-record.ts +102 -3
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-request.ts +43 -12
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-revoke.ts +202 -0
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-texts.ts +70 -0
- package/packages/bundled-features/src/billing-foundation/events.ts +20 -2
- package/packages/bundled-features/src/billing-foundation/feature.ts +5 -5
- package/packages/bundled-features/src/billing-foundation/handlers/process-event.write.ts +82 -9
- package/packages/bundled-features/src/billing-foundation/handlers/switch-plan.write.ts +1 -1
- package/packages/bundled-features/src/billing-foundation/handlers/sync-subscription.write.ts +1 -1
- package/packages/bundled-features/src/billing-foundation/index.ts +27 -27
- package/packages/bundled-features/src/billing-foundation/plan-catalog.ts +7 -7
- package/packages/bundled-features/src/billing-foundation/screens.ts +1 -1
- package/packages/bundled-features/src/billing-foundation/subscription-tier-sync.ts +1 -1
- package/packages/bundled-features/src/billing-foundation/types.ts +17 -3
- package/packages/bundled-features/src/billing-foundation/validate-options.ts +3 -3
- package/packages/bundled-features/src/billing-foundation/web/billing-contact-plan.tsx +1 -3
- package/packages/bundled-features/src/billing-foundation/web/billing-plans-panel.tsx +5 -7
- package/packages/bundled-features/src/billing-foundation/web/cancel-contract-dialog.tsx +1 -3
- package/packages/bundled-features/src/billing-foundation/web/checkout-consent-dialog.tsx +1 -3
- package/packages/bundled-features/src/billing-foundation/web/client-plugin.tsx +1 -2
- package/packages/bundled-features/src/billing-foundation/{constants.ts → web/constants.ts} +37 -31
- package/packages/bundled-features/src/billing-foundation/{consumer-protection → web/consumer-protection}/consent-locale.ts +0 -1
- package/packages/bundled-features/src/billing-foundation/{contact-card.ts → web/contact-card.ts} +0 -2
- package/packages/bundled-features/src/billing-foundation/web/index.ts +14 -15
- package/packages/bundled-features/src/billing-foundation/web/localized-params.ts +0 -2
- package/packages/bundled-features/src/billing-foundation/webhook-handler.ts +5 -2
- package/packages/bundled-features/src/cap-overview/feature.ts +1 -1
- package/packages/bundled-features/src/cap-overview/handlers/caps-usage.query.ts +1 -1
- package/packages/bundled-features/src/cap-overview/handlers/tenant-caps-list.query.ts +2 -2
- package/packages/bundled-features/src/cap-overview/index.ts +9 -9
- package/packages/bundled-features/src/cap-overview/screens.ts +2 -2
- package/packages/bundled-features/src/cap-overview/web/cap-cards-panel.tsx +1 -2
- package/packages/bundled-features/src/cap-overview/web/cap-usage-bar.tsx +1 -2
- package/packages/bundled-features/src/cap-overview/web/cap-usage-cell.tsx +0 -2
- package/packages/bundled-features/src/cap-overview/web/client-plugin.tsx +3 -4
- package/packages/bundled-features/src/cap-overview/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/cap-overview/web/index.ts +0 -1
- package/packages/bundled-features/src/cap-overview/{usage-math.ts → web/usage-math.ts} +1 -2
- package/packages/bundled-features/src/compliance-profiles/feature.ts +5 -5
- package/packages/bundled-features/src/compliance-profiles/index.ts +6 -6
- package/packages/bundled-features/src/compliance-profiles/web/client-plugin.tsx +2 -3
- package/packages/bundled-features/src/compliance-profiles/web/compliance-profile-catalog.tsx +1 -2
- package/packages/bundled-features/src/compliance-profiles/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/compliance-profiles/web/i18n.ts +0 -1
- package/packages/bundled-features/src/compliance-profiles/web/index.ts +0 -1
- package/packages/bundled-features/src/config/index.ts +6 -6
- package/packages/bundled-features/src/config/web/client-plugin.ts +1 -2
- package/packages/bundled-features/src/config/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/config/web/i18n.ts +0 -1
- package/packages/bundled-features/src/config/web/index.ts +1 -3
- package/packages/bundled-features/src/config/write-helpers.ts +1 -1
- package/packages/bundled-features/src/custom-fields/feature.ts +8 -8
- package/packages/bundled-features/src/custom-fields/handlers/clear-custom-field.write.ts +1 -1
- package/packages/bundled-features/src/custom-fields/handlers/define-tenant-field.write.ts +1 -1
- package/packages/bundled-features/src/custom-fields/handlers/delete-system-field.write.ts +1 -1
- package/packages/bundled-features/src/custom-fields/handlers/delete-tenant-field.write.ts +4 -4
- package/packages/bundled-features/src/custom-fields/handlers/set-custom-field.write.ts +1 -1
- package/packages/bundled-features/src/custom-fields/handlers/update-tenant-field.write.ts +1 -1
- package/packages/bundled-features/src/custom-fields/index.ts +8 -8
- package/packages/bundled-features/src/custom-fields/lib/value-schema.ts +1 -1
- package/packages/bundled-features/src/custom-fields/schemas.ts +1 -1
- package/packages/bundled-features/src/custom-fields/web/client-plugin.tsx +1 -2
- package/packages/bundled-features/src/custom-fields/{constants.ts → web/constants.ts} +18 -19
- package/packages/bundled-features/src/custom-fields/web/custom-fields-form-section.tsx +1 -2
- package/packages/bundled-features/src/custom-fields/web/i18n.ts +0 -1
- package/packages/bundled-features/src/custom-fields/web/index.ts +2 -3
- package/packages/bundled-features/src/custom-fields/wire-for-entity.ts +1 -2
- package/packages/bundled-features/src/delivery/address-opt-out.ts +1 -1
- package/packages/bundled-features/src/delivery/attempt-log-retention.ts +24 -8
- package/packages/bundled-features/src/delivery/changes.json +6 -0
- package/packages/bundled-features/src/delivery/constants.ts +2 -2
- package/packages/bundled-features/src/delivery/i18n.ts +1 -1
- package/packages/bundled-features/src/delivery/unsubscribe-page.ts +1 -1
- package/packages/bundled-features/src/delivery/web/client-plugin.tsx +6 -7
- package/packages/bundled-features/src/delivery/web/delivery-channel-cell.tsx +0 -1
- package/packages/bundled-features/src/delivery/web/delivery-error-cell.tsx +0 -1
- package/packages/bundled-features/src/delivery/web/delivery-status-cell.tsx +1 -2
- package/packages/bundled-features/src/delivery/web/delivery-time-cell.tsx +0 -1
- package/packages/bundled-features/src/delivery/web/delivery-type-cell.tsx +0 -1
- package/packages/bundled-features/src/delivery/web/index.ts +0 -1
- package/packages/bundled-features/src/delivery/{public-names.ts → web/public-names.ts} +0 -1
- package/packages/bundled-features/src/document-ingest-foundation/changes.json +6 -0
- package/packages/bundled-features/src/document-ingest-foundation/events.ts +4 -0
- package/packages/bundled-features/src/document-ingest-foundation/executor.ts +2 -1
- package/packages/bundled-features/src/document-ingest-foundation/feature.ts +18 -4
- package/packages/bundled-features/src/document-ingest-foundation/index.ts +1 -0
- package/packages/bundled-features/src/feature-toggles/feature.ts +7 -7
- package/packages/bundled-features/src/feature-toggles/global-feature-state-table.ts +14 -13
- package/packages/bundled-features/src/feature-toggles/handlers/list.query.ts +1 -1
- package/packages/bundled-features/src/feature-toggles/handlers/registered.query.ts +1 -1
- package/packages/bundled-features/src/feature-toggles/handlers/set.write.ts +3 -3
- package/packages/bundled-features/src/feature-toggles/index.ts +6 -6
- package/packages/bundled-features/src/feature-toggles/web/client-plugin.tsx +1 -2
- package/packages/bundled-features/src/feature-toggles/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/feature-toggles/web/i18n.ts +0 -1
- package/packages/bundled-features/src/feature-toggles/web/index.ts +0 -1
- package/packages/bundled-features/src/files/changes.json +7 -0
- package/packages/bundled-features/src/folders/feature.ts +1 -1
- package/packages/bundled-features/src/folders/handlers/clear-folder.write.ts +1 -1
- package/packages/bundled-features/src/folders/handlers/delete-folder.write.ts +1 -1
- package/packages/bundled-features/src/folders/handlers/set-folder.write.ts +1 -1
- package/packages/bundled-features/src/folders/index.ts +8 -8
- package/packages/bundled-features/src/folders/web/client-plugin.tsx +1 -3
- package/packages/bundled-features/src/folders/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/folders/web/folder-manager.tsx +1 -2
- package/packages/bundled-features/src/folders/web/folder-section.tsx +1 -2
- package/packages/bundled-features/src/folders/web/i18n.ts +0 -1
- package/packages/bundled-features/src/folders/web/index.ts +1 -2
- package/packages/bundled-features/src/folders/web/tree.ts +0 -1
- package/packages/bundled-features/src/form-draft/changes.json +7 -0
- package/packages/bundled-features/src/form-draft/db/queries/cleanup.ts +25 -11
- package/packages/bundled-features/src/form-draft/decrypt-draft.ts +24 -0
- package/packages/bundled-features/src/form-draft/entity.ts +6 -9
- package/packages/bundled-features/src/form-draft/feature.ts +1 -1
- package/packages/bundled-features/src/form-draft/handlers/cleanup.job.ts +26 -5
- package/packages/bundled-features/src/form-draft/handlers/discard.write.ts +1 -1
- package/packages/bundled-features/src/form-draft/handlers/get.query.ts +6 -7
- package/packages/bundled-features/src/form-draft/handlers/list.query.ts +13 -7
- package/packages/bundled-features/src/form-draft/handlers/save.write.ts +5 -5
- package/packages/bundled-features/src/form-draft/index.ts +8 -8
- package/packages/bundled-features/src/form-draft/lookup.ts +10 -4
- package/packages/bundled-features/src/form-draft/schemas.ts +1 -1
- package/packages/bundled-features/src/form-draft/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/form-draft-user-data/hooks.ts +2 -2
- package/packages/bundled-features/src/inbound-mail-foundation/retention-sweep.ts +10 -10
- package/packages/bundled-features/src/jobs/feature.ts +7 -7
- package/packages/bundled-features/src/jobs/handlers/retry.write.ts +1 -1
- package/packages/bundled-features/src/jobs/handlers/trigger.write.ts +1 -1
- package/packages/bundled-features/src/jobs/index.ts +1 -1
- package/packages/bundled-features/src/jobs/job-run-table.ts +4 -3
- package/packages/bundled-features/src/jobs/web/client-plugin.tsx +2 -3
- package/packages/bundled-features/src/jobs/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/jobs/web/default-translations.ts +7 -0
- package/packages/bundled-features/src/jobs/web/i18n.ts +53 -7
- package/packages/bundled-features/src/jobs/web/index.ts +0 -1
- package/packages/bundled-features/src/ledger/changes.json +7 -0
- package/packages/bundled-features/src/ledger/entity.ts +1 -1
- package/packages/bundled-features/src/ledger/feature.ts +1 -1
- package/packages/bundled-features/src/ledger/handlers/confirm-schedule-period.write.ts +2 -10
- package/packages/bundled-features/src/ledger/handlers/create-transaction.write.ts +1 -1
- package/packages/bundled-features/src/ledger/handlers/reports.query.ts +1 -1
- package/packages/bundled-features/src/ledger/handlers/reverse-transaction.write.ts +1 -1
- package/packages/bundled-features/src/ledger/index.ts +13 -13
- package/packages/bundled-features/src/ledger/recurring.ts +1 -1
- package/packages/bundled-features/src/ledger/reports.ts +1 -1
- package/packages/bundled-features/src/ledger/schemas.ts +1 -1
- package/packages/bundled-features/src/ledger/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/ledger/web/index.ts +11 -12
- package/packages/bundled-features/src/legal-pages/README.md +1 -1
- package/packages/bundled-features/src/legal-pages/feature.ts +5 -5
- package/packages/bundled-features/src/legal-pages/index.ts +11 -11
- package/packages/bundled-features/src/legal-pages/lib/boot-check.ts +1 -1
- package/packages/bundled-features/src/legal-pages/lib/validate-routes.ts +1 -1
- package/packages/bundled-features/src/legal-pages/web/client-plugin.ts +1 -2
- package/packages/bundled-features/src/legal-pages/{constants.ts → web/constants.ts} +6 -8
- package/packages/bundled-features/src/legal-pages/web/index.ts +0 -1
- package/packages/bundled-features/src/managed-pages/feature.ts +1 -1
- package/packages/bundled-features/src/managed-pages/web/client-plugin.tsx +1 -2
- package/packages/bundled-features/src/managed-pages/web/default-translations.ts +17 -0
- package/packages/bundled-features/src/managed-pages/web/i18n.ts +59 -16
- package/packages/bundled-features/src/managed-pages/web/index.ts +1 -2
- package/packages/bundled-features/src/metrics/compute.ts +1 -1
- package/packages/bundled-features/src/metrics/feature.ts +6 -6
- package/packages/bundled-features/src/metrics/index.ts +8 -8
- package/packages/bundled-features/src/metrics/types.ts +1 -1
- package/packages/bundled-features/src/metrics/validate.ts +1 -1
- package/packages/bundled-features/src/metrics/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/metrics/window.ts +1 -1
- package/packages/bundled-features/src/notes-history/feature.ts +1 -1
- package/packages/bundled-features/src/notes-history/handlers/add-note.write.ts +1 -1
- package/packages/bundled-features/src/notes-history/index.ts +8 -8
- package/packages/bundled-features/src/notes-history/web/client-plugin.tsx +1 -3
- package/packages/bundled-features/src/notes-history/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/notes-history/web/i18n.ts +0 -1
- package/packages/bundled-features/src/notes-history/web/index.ts +2 -3
- package/packages/bundled-features/src/notes-history/web/notes-section.tsx +2 -3
- package/packages/bundled-features/src/personal-access-tokens/feature.ts +12 -10
- package/packages/bundled-features/src/personal-access-tokens/handlers/available-scopes.query.ts +1 -1
- package/packages/bundled-features/src/personal-access-tokens/handlers/create.write.ts +1 -1
- package/packages/bundled-features/src/personal-access-tokens/handlers/revoke.write.ts +1 -1
- package/packages/bundled-features/src/personal-access-tokens/hash.ts +1 -1
- package/packages/bundled-features/src/personal-access-tokens/i18n.ts +2 -2
- package/packages/bundled-features/src/personal-access-tokens/index.ts +5 -5
- package/packages/bundled-features/src/personal-access-tokens/resolver.ts +1 -1
- package/packages/bundled-features/src/personal-access-tokens/schema/api-token.ts +3 -3
- package/packages/bundled-features/src/personal-access-tokens/screens.ts +2 -2
- package/packages/bundled-features/src/personal-access-tokens/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/personal-access-tokens/{scopes.ts → web/scopes.ts} +0 -1
- package/packages/bundled-features/src/presets/changes.json +7 -0
- package/packages/bundled-features/src/presets/index.ts +0 -1
- package/packages/bundled-features/src/presets/security-baseline.ts +1 -1
- package/packages/bundled-features/src/renderer-foundation/types.ts +1 -1
- package/packages/bundled-features/src/secrets/feature.ts +1 -1
- package/packages/bundled-features/src/secrets/handlers/delete.write.ts +1 -1
- package/packages/bundled-features/src/secrets/handlers/list.query.ts +1 -1
- package/packages/bundled-features/src/secrets/handlers/set.write.ts +1 -1
- package/packages/bundled-features/src/secrets/i18n.ts +1 -1
- package/packages/bundled-features/src/secrets/index.ts +8 -8
- package/packages/bundled-features/src/secrets/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/secrets/write-gate.ts +1 -1
- package/packages/bundled-features/src/sessions/feature.ts +7 -4
- package/packages/bundled-features/src/sessions/schema/user-session.ts +2 -3
- package/packages/bundled-features/src/sessions/{i18n.ts → web/i18n.ts} +0 -1
- package/packages/bundled-features/src/shared/index.ts +6 -1
- package/packages/bundled-features/src/shared/purge-files-reaching-subject.ts +10 -2
- package/packages/bundled-features/src/shared/web/translate-or-raw.ts +0 -1
- package/packages/bundled-features/src/subscription-stripe/feature.ts +2 -0
- package/packages/bundled-features/src/subscription-stripe/plugin-methods.ts +19 -0
- package/packages/bundled-features/src/subscription-stripe/verify-webhook.ts +1 -0
- package/packages/bundled-features/src/tags/changes.json +6 -0
- package/packages/bundled-features/src/tags/feature.ts +1 -1
- package/packages/bundled-features/src/tags/handlers/assign-tag.write.ts +11 -7
- package/packages/bundled-features/src/tags/handlers/create-tag.write.ts +1 -1
- package/packages/bundled-features/src/tags/handlers/delete-tag.write.ts +4 -1
- package/packages/bundled-features/src/tags/handlers/remove-tag.write.ts +1 -1
- package/packages/bundled-features/src/tags/handlers/update-tag.write.ts +1 -1
- package/packages/bundled-features/src/tags/index.ts +12 -12
- package/packages/bundled-features/src/tags/screens.ts +1 -1
- package/packages/bundled-features/src/tags/web/client-plugin.tsx +1 -3
- package/packages/bundled-features/src/tags/{constants.ts → web/constants.ts} +4 -1
- package/packages/bundled-features/src/tags/web/entity-tags.tsx +1 -2
- package/packages/bundled-features/src/tags/web/i18n.ts +2 -2
- package/packages/bundled-features/src/tags/web/index.ts +2 -3
- package/packages/bundled-features/src/tags/web/tag-chip.tsx +0 -1
- package/packages/bundled-features/src/tags/web/tag-filter.tsx +1 -2
- package/packages/bundled-features/src/tags/web/tag-manager.tsx +5 -4
- package/packages/bundled-features/src/tags/web/tag-picker.tsx +0 -1
- package/packages/bundled-features/src/tags/web/tag-section.tsx +1 -2
- package/packages/bundled-features/src/tags/web/tags-cell.tsx +1 -2
- package/packages/bundled-features/src/template-resolver/README.md +1 -1
- package/packages/bundled-features/src/template-resolver/api.ts +75 -28
- package/packages/bundled-features/src/template-resolver/changes.json +43 -0
- package/packages/bundled-features/src/template-resolver/compile-document-body.ts +1 -1
- package/packages/bundled-features/src/template-resolver/compile-steps-block.ts +2 -2
- package/packages/bundled-features/src/template-resolver/document-ops.ts +5 -5
- package/packages/bundled-features/src/template-resolver/document-sanitizer.ts +4 -4
- package/packages/bundled-features/src/template-resolver/feature.ts +13 -4
- package/packages/bundled-features/src/template-resolver/handlers/by-slug.query.ts +6 -1
- package/packages/bundled-features/src/template-resolver/handlers/by-tenant.query.ts +6 -2
- package/packages/bundled-features/src/template-resolver/handlers/collection-item.query.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/collection-list.query.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/collection-set.write.ts +19 -2
- package/packages/bundled-features/src/template-resolver/handlers/copy-locale.write.ts +2 -2
- package/packages/bundled-features/src/template-resolver/handlers/diff-to-system.query.ts +7 -1
- package/packages/bundled-features/src/template-resolver/handlers/discard-draft.write.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/document-base.ts +8 -2
- package/packages/bundled-features/src/template-resolver/handlers/document-blocks.query.ts +2 -2
- package/packages/bundled-features/src/template-resolver/handlers/export-bundle.query.ts +5 -2
- package/packages/bundled-features/src/template-resolver/handlers/find-by-id.query.ts +4 -2
- package/packages/bundled-features/src/template-resolver/handlers/layout-source.query.ts +10 -5
- package/packages/bundled-features/src/template-resolver/handlers/list.query.ts +5 -2
- package/packages/bundled-features/src/template-resolver/handlers/overview.query.ts +68 -10
- package/packages/bundled-features/src/template-resolver/handlers/patch-draft.write.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/resource-shared.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/resource-upload.write.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/send-test.write.ts +2 -2
- package/packages/bundled-features/src/template-resolver/handlers/set.write.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/shared.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/template-gates.ts +6 -6
- package/packages/bundled-features/src/template-resolver/handlers/template-write.ts +2 -2
- package/packages/bundled-features/src/template-resolver/handlers/usage.query.ts +8 -2
- package/packages/bundled-features/src/template-resolver/handlers/validate.query.ts +4 -2
- package/packages/bundled-features/src/template-resolver/i18n.ts +25 -0
- package/packages/bundled-features/src/template-resolver/index.ts +60 -59
- package/packages/bundled-features/src/template-resolver/layout-appearance.ts +1 -1
- package/packages/bundled-features/src/template-resolver/layout-regions.ts +1 -1
- package/packages/bundled-features/src/template-resolver/seeding.ts +16 -7
- package/packages/bundled-features/src/template-resolver/store-template-resource.ts +2 -2
- package/packages/bundled-features/src/template-resolver/table.ts +1 -1
- package/packages/bundled-features/src/template-resolver/template-bundle.ts +2 -2
- package/packages/bundled-features/src/template-resolver/template-delivery-policy.ts +82 -0
- package/packages/bundled-features/src/template-resolver/template-draft.ts +1 -1
- package/packages/bundled-features/src/template-resolver/template-edit-policy.ts +2 -2
- package/packages/bundled-features/src/template-resolver/template-meta.ts +2 -2
- package/packages/bundled-features/src/template-resolver/template-preview.ts +14 -10
- package/packages/bundled-features/src/template-resolver/template-usage.ts +1 -1
- package/packages/bundled-features/src/template-resolver/template-validation.ts +2 -2
- package/packages/bundled-features/src/template-resolver/testing.ts +2 -2
- package/packages/bundled-features/src/template-resolver/user-content-table.ts +1 -1
- package/packages/bundled-features/src/template-resolver/web/client-plugin.tsx +4 -5
- package/packages/bundled-features/src/template-resolver/{constants.ts → web/constants.ts} +7 -10
- package/packages/bundled-features/src/template-resolver/{document-blocks.ts → web/document-blocks.ts} +0 -1
- package/packages/bundled-features/src/template-resolver/web/document-editor-extensions.ts +2 -3
- package/packages/bundled-features/src/template-resolver/web/document-editor.tsx +0 -1
- package/packages/bundled-features/src/template-resolver/{document-images.ts → web/document-images.ts} +0 -1
- package/packages/bundled-features/src/template-resolver/{document-schema.ts → web/document-schema.ts} +0 -1
- package/packages/bundled-features/src/template-resolver/{document-steps.ts → web/document-steps.ts} +0 -1
- package/packages/bundled-features/src/template-resolver/web/document-tiptap-editor.tsx +6 -7
- package/packages/bundled-features/src/template-resolver/web/document-toolbar-blocks.ts +2 -3
- package/packages/bundled-features/src/template-resolver/web/editor-handle.ts +1 -2
- package/packages/bundled-features/src/template-resolver/web/i18n.ts +2 -1
- package/packages/bundled-features/src/template-resolver/web/index.ts +13 -14
- package/packages/bundled-features/src/template-resolver/{mail-constants.ts → web/mail-constants.ts} +0 -1
- package/packages/bundled-features/src/template-resolver/{pdf-constants.ts → web/pdf-constants.ts} +0 -1
- package/packages/bundled-features/src/template-resolver/web/placeholder-line-editor-lazy.tsx +0 -1
- package/packages/bundled-features/src/template-resolver/web/placeholder-line-editor.tsx +5 -4
- package/packages/bundled-features/src/template-resolver/{placeholder-text.ts → web/placeholder-text.ts} +0 -1
- package/packages/bundled-features/src/template-resolver/{qualified-names.ts → web/qualified-names.ts} +0 -1
- package/packages/bundled-features/src/template-resolver/web/use-stable-by-key.ts +0 -1
- package/packages/bundled-features/src/tenant/handlers/add-member.write.ts +1 -1
- package/packages/bundled-features/src/tenant/index.ts +7 -7
- package/packages/bundled-features/src/tenant/invitation-table.ts +1 -1
- package/packages/bundled-features/src/tenant/invited-membership.ts +1 -1
- package/packages/bundled-features/src/tenant/last-tenant-admin.ts +1 -1
- package/packages/bundled-features/src/tenant/member-role-options.ts +1 -1
- package/packages/bundled-features/src/tenant/screens.ts +2 -2
- package/packages/bundled-features/src/tenant/web/client-plugin.tsx +1 -2
- package/packages/bundled-features/src/tenant/{constants.ts → web/constants.ts} +3 -6
- package/packages/bundled-features/src/tenant/web/index.ts +0 -1
- package/packages/bundled-features/src/tenant/web/member-roles-cell.tsx +0 -1
- package/packages/bundled-features/src/tenant/web/member-status-cell.tsx +0 -1
- package/packages/bundled-features/src/tenant-lifecycle/stages.ts +2 -2
- package/packages/bundled-features/src/tier-engine/entity.ts +1 -1
- package/packages/bundled-features/src/tier-engine/feature.ts +7 -7
- package/packages/bundled-features/src/tier-engine/handlers/set-tenant-tier.write.ts +1 -1
- package/packages/bundled-features/src/tier-engine/index.ts +8 -8
- package/packages/bundled-features/src/tier-engine/web/client-plugin.tsx +2 -3
- package/packages/bundled-features/src/tier-engine/{constants.ts → web/constants.ts} +2 -3
- package/packages/bundled-features/src/tier-engine/{i18n.ts → web/i18n.ts} +0 -1
- package/packages/bundled-features/src/tier-engine/web/index.ts +0 -1
- package/packages/bundled-features/src/user/handlers/create.write.ts +1 -1
- package/packages/bundled-features/src/user/handlers/update-roles.ts +1 -1
- package/packages/bundled-features/src/user/handlers/update.write.ts +1 -1
- package/packages/bundled-features/src/user/index.ts +1 -1
- package/packages/bundled-features/src/user/invited-global-roles.ts +1 -1
- package/packages/bundled-features/src/user/schema/user.ts +1 -1
- package/packages/bundled-features/src/user/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/user-data-rights/changes.json +14 -0
- package/packages/bundled-features/src/user-data-rights/env.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/feature.ts +9 -9
- package/packages/bundled-features/src/user-data-rights/index.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/lib/resolve-tenant-model.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/mail-notifications.ts +1 -1
- package/packages/bundled-features/src/user-data-rights/web/client-plugin.tsx +2 -3
- package/packages/bundled-features/src/user-data-rights/web/confirm-deletion-screen.tsx +0 -1
- package/packages/bundled-features/src/user-data-rights/{constants.ts → web/constants.ts} +11 -12
- package/packages/bundled-features/src/user-data-rights/web/default-translations.ts +91 -0
- package/packages/bundled-features/src/user-data-rights/web/i18n.ts +41 -91
- package/packages/bundled-features/src/user-data-rights/web/index.ts +1 -2
- package/packages/bundled-features/src/user-data-rights/web/privacy-center-screen.tsx +1 -2
- package/packages/bundled-features/src/user-data-rights/web/public-deletion-gate.tsx +0 -1
- package/packages/bundled-features/src/user-data-rights/web/request-deletion-screen.tsx +0 -1
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/file-ref.userdata-hook.ts +10 -1
- package/packages/bundled-features/src/user-profile/feature.ts +2 -2
- package/packages/bundled-features/src/user-profile/handlers/change-email.write.ts +1 -1
- package/packages/bundled-features/src/user-profile/index.ts +3 -2
- package/packages/bundled-features/src/user-profile/web/client-plugin.ts +2 -3
- package/packages/bundled-features/src/user-profile/{constants.ts → web/constants.ts} +0 -1
- package/packages/bundled-features/src/user-profile/{i18n.ts → web/i18n.ts} +0 -1
- package/packages/bundled-features/src/user-profile/web/profile-screen.tsx +2 -3
- package/packages/bundled-features/src/waitlist/changes.json +6 -0
- package/packages/bundled-features/src/waitlist/entity.ts +1 -1
- package/packages/bundled-features/src/waitlist/feature.ts +5 -5
- package/packages/bundled-features/src/waitlist/handlers/export-purge.write.ts +3 -3
- package/packages/bundled-features/src/waitlist/handlers/invite.write.ts +5 -1
- package/packages/bundled-features/src/waitlist/handlers/reject.write.ts +1 -1
- package/packages/bundled-features/src/waitlist/handlers/submit.write.ts +3 -3
- package/packages/bundled-features/src/waitlist/import.ts +1 -1
- package/packages/bundled-features/src/waitlist/index.ts +11 -11
- package/packages/bundled-features/src/waitlist/legacy-migrate.ts +1 -1
- package/packages/bundled-features/src/waitlist/link-on-signup.ts +1 -1
- package/packages/bundled-features/src/waitlist/mail.ts +7 -6
- package/packages/bundled-features/src/waitlist/payloads.ts +1 -1
- package/packages/bundled-features/src/waitlist/screens.ts +1 -1
- package/packages/bundled-features/src/waitlist/{constants.ts → web/constants.ts} +0 -1
- package/samples/apps/styleguide/src/features/content/web.tsx +0 -1
- package/samples/apps/ui-walkthrough/src/app/client.tsx +2 -0
- package/samples/apps/ui-walkthrough/src/app/seed-rental.ts +17 -1
- package/samples/apps/ui-walkthrough/src/app/seed-templates.ts +11 -0
- package/samples/apps/ui-walkthrough/src/app/server.ts +2 -1
- package/samples/apps/ui-walkthrough/src/features/billing/feature.ts +35 -7
- package/samples/apps/ui-walkthrough/src/features/billing/i18n.ts +6 -0
- package/samples/apps/ui-walkthrough/src/features/rental/entities.ts +27 -0
- package/samples/apps/ui-walkthrough/src/features/rental/feature.ts +61 -7
- package/samples/apps/ui-walkthrough/src/features/rental/i18n.ts +48 -24
- package/samples/apps/ui-walkthrough/src/features/rental/invoice-receive.ts +0 -1
- package/samples/apps/ui-walkthrough/src/features/rental/lease-support.ts +17 -1
- package/samples/apps/ui-walkthrough/src/features/rental/qualified-names.ts +3 -0
- package/samples/apps/ui-walkthrough/src/features/rental/receipts-upload.ts +70 -0
- package/samples/apps/ui-walkthrough/src/features/rental/screens.ts +90 -13
- package/samples/apps/ui-walkthrough/src/features/rental/web/index.ts +0 -2
- package/samples/apps/ui-walkthrough/src/features/subscription-plans/feature.ts +103 -0
- package/samples/apps/ui-walkthrough/src/features/subscription-plans/i18n.ts +36 -0
- package/samples/apps/ui-walkthrough/src/features/subscription-plans/index.ts +2 -0
- package/samples/apps/ui-walkthrough/src/features/subscription-plans/seed.ts +21 -0
- package/samples/apps/ui-walkthrough/src/run-config.ts +11 -0
- package/samples/apps/use-all-bundled/e2e-billing-gallery/server.ts +1 -1
- package/samples/apps/use-all-bundled/feature-manifest.json +4 -4
- package/samples/apps/use-all-bundled/scripts/check-coverage.ts +1 -1
- package/samples/apps/use-all-bundled/src/app/dev-app-options.ts +3 -1
- package/samples/recipes/compose-stacks/README.md +1 -2
- package/samples/recipes/embedded/README.md +5 -5
- package/samples/recipes/embedded/src/handlers/invoice-receive.write.ts +0 -1
- package/samples/recipes/embedded/src/screens/invoice-receive.screen.ts +9 -12
- package/samples/recipes/legal-pages/README.md +2 -2
- package/samples/recipes/legal-pages/src/feature.ts +1 -1
- package/samples/recipes/reference-data/src/feature.ts +3 -7
- package/packages/bundled-features/src/admin-shell/i18n.ts +0 -54
- package/packages/bundled-features/src/audit/i18n.ts +0 -25
- package/packages/bundled-features/src/auth-mfa/web/qrcode-browser.d.ts +0 -11
- package/packages/bundled-features/src/jobs/i18n.ts +0 -55
- package/packages/bundled-features/src/managed-pages/i18n.ts +0 -63
- package/packages/bundled-features/src/presets/dsgvo-self-service.ts +0 -35
- package/packages/bundled-features/src/user-data-rights/i18n.ts +0 -44
- package/samples/apps/ui-walkthrough/src/features/rental/web/upload-standard-layout.tsx +0 -61
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @runtime client
|
|
2
1
|
//
|
|
3
2
|
// tiptap-backed implementation behind DocumentContentEditor's lazy() boundary —
|
|
4
3
|
// never import this file statically, tiptap must only load when a "document"
|
|
@@ -41,6 +40,10 @@ import {
|
|
|
41
40
|
} from "lucide-react";
|
|
42
41
|
import { Fragment, type ReactNode, useEffect, useMemo, useState } from "react";
|
|
43
42
|
import { createPortal } from "react-dom";
|
|
43
|
+
import {
|
|
44
|
+
createDocumentEditorExtensions,
|
|
45
|
+
DOCUMENT_BLOCK_ATTRIBUTE,
|
|
46
|
+
} from "./document-editor-extensions.ts";
|
|
44
47
|
import {
|
|
45
48
|
DOCUMENT_TEXT_ALIGNMENTS,
|
|
46
49
|
type DocumentTextAlignment,
|
|
@@ -48,12 +51,8 @@ import {
|
|
|
48
51
|
isDocumentPlaceholderHref,
|
|
49
52
|
isDocumentReferenceName,
|
|
50
53
|
isDocumentResourceKey,
|
|
51
|
-
} from "
|
|
52
|
-
import { parseDocumentStepsInput } from "
|
|
53
|
-
import {
|
|
54
|
-
createDocumentEditorExtensions,
|
|
55
|
-
DOCUMENT_BLOCK_ATTRIBUTE,
|
|
56
|
-
} from "./document-editor-extensions.ts";
|
|
54
|
+
} from "./document-schema.ts";
|
|
55
|
+
import { parseDocumentStepsInput } from "./document-steps.ts";
|
|
57
56
|
import {
|
|
58
57
|
type DocumentEditorProps,
|
|
59
58
|
type DocumentResourcePreview,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
// @runtime client
|
|
2
1
|
import type { ContentEditorProps } from "@cosmicdrift/kumiko-renderer";
|
|
3
2
|
import type { ReactNode } from "react";
|
|
4
|
-
import type { DocumentToolbarBlock } from "
|
|
3
|
+
import type { DocumentToolbarBlock } from "./document-blocks.ts";
|
|
5
4
|
|
|
6
5
|
/** Imperative access for an outside panel (placeholder list, resource list). */
|
|
7
6
|
export type DocumentEditorHandle = {
|
|
@@ -48,4 +47,4 @@ export {
|
|
|
48
47
|
documentBlocksForKind,
|
|
49
48
|
MAIL_DOCUMENT_BLOCKS,
|
|
50
49
|
PDF_DOCUMENT_BLOCKS,
|
|
51
|
-
} from "
|
|
50
|
+
} from "./document-blocks.ts";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
// @runtime client
|
|
2
1
|
import type { Editor } from "@tiptap/core";
|
|
3
|
-
import { isDocumentReferenceName, isDocumentResourceKey } from "
|
|
2
|
+
import { isDocumentReferenceName, isDocumentResourceKey } from "./document-schema.ts";
|
|
4
3
|
import type { DocumentEditorHandle } from "./document-toolbar-blocks.ts";
|
|
5
4
|
|
|
6
5
|
export function createEditorHandle(editor: Editor): DocumentEditorHandle {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @runtime client
|
|
2
1
|
// Default translation bundle for the text-block editor. textBlocksClient()
|
|
3
2
|
// hangs it into the LocaleProvider as a fallback bundle — apps override
|
|
4
3
|
// individual keys via mergeTranslations at the createKumikoApp level.
|
|
@@ -128,6 +127,8 @@ export const defaultTranslations: TranslationsByLocale = {
|
|
|
128
127
|
"Only the platform maintains this template; it cannot be overridden per tenant.",
|
|
129
128
|
"templateResolver.errors.templateNotTenantEditable":
|
|
130
129
|
"Only the platform may edit this template.",
|
|
130
|
+
"templateResolver.overview.lockedOverride":
|
|
131
|
+
"Own version stored but not delivered: the template is not unlocked for tenants.",
|
|
131
132
|
"templateResolver.errors.template.invalidMeta": "The template settings are invalid.",
|
|
132
133
|
"templateResolver.errors.template.meta.subject.required": "The subject is missing.",
|
|
133
134
|
"templateResolver.errors.template.meta.subject.invalid":
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
// @runtime client
|
|
2
1
|
// Public exports for the browser side of template-resolver. Consumed through
|
|
3
2
|
// the sub-path export `@cosmicdrift/kumiko-bundled-features/template-resolver/web`
|
|
4
3
|
// — the server side (defineFeature) lives in
|
|
5
4
|
// `@cosmicdrift/kumiko-bundled-features/template-resolver` and has no React or
|
|
6
5
|
// DOM deps.
|
|
7
6
|
|
|
8
|
-
export { MAIL_TONES, type MailTone } from "../mail-constants.ts";
|
|
9
|
-
export {
|
|
10
|
-
PDF_DEFAULT_MARGIN_MM,
|
|
11
|
-
PDF_FOOTER_MARGIN_MM,
|
|
12
|
-
PDF_HEADER_MARGIN_MM,
|
|
13
|
-
PDF_ORIENTATIONS,
|
|
14
|
-
PDF_PAGE_FORMATS,
|
|
15
|
-
} from "../pdf-constants.ts";
|
|
16
|
-
export {
|
|
17
|
-
TemplateResolverErrors,
|
|
18
|
-
TemplateResolverHandlers,
|
|
19
|
-
TemplateResolverQueries,
|
|
20
|
-
} from "../qualified-names.ts";
|
|
21
7
|
export { textBlocksClient } from "./client-plugin.tsx";
|
|
22
8
|
export { DocumentContentEditor } from "./document-editor.tsx";
|
|
23
9
|
export {
|
|
@@ -29,7 +15,20 @@ export {
|
|
|
29
15
|
MAIL_DOCUMENT_BLOCKS,
|
|
30
16
|
PDF_DOCUMENT_BLOCKS,
|
|
31
17
|
} from "./document-toolbar-blocks.ts";
|
|
18
|
+
export { MAIL_TONES, type MailTone } from "./mail-constants.ts";
|
|
19
|
+
export {
|
|
20
|
+
PDF_DEFAULT_MARGIN_MM,
|
|
21
|
+
PDF_FOOTER_MARGIN_MM,
|
|
22
|
+
PDF_HEADER_MARGIN_MM,
|
|
23
|
+
PDF_ORIENTATIONS,
|
|
24
|
+
PDF_PAGE_FORMATS,
|
|
25
|
+
} from "./pdf-constants.ts";
|
|
32
26
|
export {
|
|
33
27
|
PlaceholderLineEditor,
|
|
34
28
|
type PlaceholderLineEditorProps,
|
|
35
29
|
} from "./placeholder-line-editor-lazy.tsx";
|
|
30
|
+
export {
|
|
31
|
+
TemplateResolverErrors,
|
|
32
|
+
TemplateResolverHandlers,
|
|
33
|
+
TemplateResolverQueries,
|
|
34
|
+
} from "./qualified-names.ts";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @runtime client
|
|
2
1
|
//
|
|
3
2
|
// Single-line editor for plain-text fields that carry {{placeholders}}
|
|
4
3
|
// (subject, preheader). The stored value stays plain text; placeholders show
|
|
@@ -10,11 +9,11 @@ import { Placeholder, UndoRedo } from "@tiptap/extensions";
|
|
|
10
9
|
import { EditorContent, useEditor } from "@tiptap/react";
|
|
11
10
|
import StarterKit from "@tiptap/starter-kit";
|
|
12
11
|
import { type ReactNode, useMemo, useState } from "react";
|
|
13
|
-
import { DocumentVariable } from "../document-schema.ts";
|
|
14
|
-
import { contentToLine, lineToContent, singleLine } from "../placeholder-text.ts";
|
|
15
12
|
import { createVariableView } from "./document-editor-extensions.ts";
|
|
13
|
+
import { DocumentVariable } from "./document-schema.ts";
|
|
16
14
|
import type { DocumentEditorHandle } from "./document-toolbar-blocks.ts";
|
|
17
15
|
import { createEditorHandle } from "./editor-handle.ts";
|
|
16
|
+
import { contentToLine, lineToContent, singleLine } from "./placeholder-text.ts";
|
|
18
17
|
import { useStableByKey } from "./use-stable-by-key.ts";
|
|
19
18
|
|
|
20
19
|
export type PlaceholderLineEditorProps = {
|
|
@@ -132,7 +131,9 @@ function LineEditorBody({
|
|
|
132
131
|
flat ? "min-h-10" : "min-h-9 rounded-md border border-input px-3",
|
|
133
132
|
"[&_.ProseMirror]:w-full [&_.ProseMirror]:whitespace-nowrap [&_.ProseMirror]:outline-none",
|
|
134
133
|
"[&_p]:m-0",
|
|
135
|
-
|
|
134
|
+
// Absolute and truncated: a hint longer than the field ends in an ellipsis instead of
|
|
135
|
+
// running past the frame or over the text below it.
|
|
136
|
+
"[&_.is-editor-empty]:relative [&_.is-editor-empty]:before:pointer-events-none [&_.is-editor-empty]:before:absolute [&_.is-editor-empty]:before:inset-x-0 [&_.is-editor-empty]:before:truncate [&_.is-editor-empty]:before:text-muted-foreground [&_.is-editor-empty]:before:content-[attr(data-placeholder)]",
|
|
136
137
|
readOnly && "opacity-60",
|
|
137
138
|
)}
|
|
138
139
|
/>
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
writeFailure,
|
|
13
13
|
} from "@cosmicdrift/kumiko-framework/errors";
|
|
14
14
|
import * as z from "zod";
|
|
15
|
-
import { TenantErrors } from "../constants.ts";
|
|
16
15
|
import { findForbiddenMembershipRole, reservedMembershipRoleError } from "../membership-roles.ts";
|
|
17
16
|
import { tenantMembershipEntity, tenantMembershipsTable } from "../membership-table.ts";
|
|
17
|
+
import { TenantErrors } from "../web/constants.ts";
|
|
18
18
|
|
|
19
19
|
const executor = createEventStoreExecutor(tenantMembershipsTable, tenantMembershipEntity, {
|
|
20
20
|
entityName: "tenant-membership",
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
export { cancelPendingInvitation } from "./cancel-pending-invitation.ts";
|
|
2
2
|
export { TenantCommandSchemas } from "./command-schemas.ts";
|
|
3
|
-
export {
|
|
4
|
-
OWNER_INVITE_ROLE_OPTIONS,
|
|
5
|
-
TENANT_FEATURE,
|
|
6
|
-
TenantErrors,
|
|
7
|
-
TenantHandlers,
|
|
8
|
-
TenantQueries,
|
|
9
|
-
} from "./constants.ts";
|
|
10
3
|
export { decryptTenantNames } from "./decrypt-tenant-names.ts";
|
|
11
4
|
export { collectAssignableAppRoles, createTenantFeature } from "./feature.ts";
|
|
12
5
|
export type { InvitationStatus } from "./invitation-table.ts";
|
|
@@ -24,3 +17,10 @@ export {
|
|
|
24
17
|
tenantEntity,
|
|
25
18
|
tenantTable,
|
|
26
19
|
} from "./schema/tenant.ts";
|
|
20
|
+
export {
|
|
21
|
+
OWNER_INVITE_ROLE_OPTIONS,
|
|
22
|
+
TENANT_FEATURE,
|
|
23
|
+
TenantErrors,
|
|
24
|
+
TenantHandlers,
|
|
25
|
+
TenantQueries,
|
|
26
|
+
} from "./web/constants.ts";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
createTimestampField,
|
|
33
33
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
34
34
|
// kumiko-lint-ignore cross-feature-import global-role options are owned by the user feature
|
|
35
|
-
import { GLOBAL_ROLE_OPTIONS } from "../user/constants.ts";
|
|
35
|
+
import { GLOBAL_ROLE_OPTIONS } from "../user/web/constants.ts";
|
|
36
36
|
|
|
37
37
|
// Status-const-Object damit Handler-Code keine Magic-Strings nutzt.
|
|
38
38
|
// Bei rename (z.B. "cancelled" → "revoked") fällt jeder caller auf
|
|
@@ -9,10 +9,10 @@ import { createSystemUser, type TenantId } from "@cosmicdrift/kumiko-framework/e
|
|
|
9
9
|
import { ConflictError, writeFailure } from "@cosmicdrift/kumiko-framework/errors";
|
|
10
10
|
import { parseRoles } from "@cosmicdrift/kumiko-framework/utils";
|
|
11
11
|
import { Temporal } from "@cosmicdrift/kumiko-types/temporal";
|
|
12
|
-
import { TenantErrors } from "./constants.ts";
|
|
13
12
|
import { findForbiddenMembershipRole, reservedMembershipRoleError } from "./membership-roles.ts";
|
|
14
13
|
import { tenantMembershipEntity, tenantMembershipsTable } from "./membership-table.ts";
|
|
15
14
|
import { seedTenantMembership } from "./seeding.ts";
|
|
15
|
+
import { TenantErrors } from "./web/constants.ts";
|
|
16
16
|
|
|
17
17
|
const membershipExecutor = createEventStoreExecutor(
|
|
18
18
|
tenantMembershipsTable,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { acquireNamespacedAdvisoryLock, selectMany } from "@cosmicdrift/kumiko-framework/db";
|
|
2
2
|
import { ConflictError, writeFailure } from "@cosmicdrift/kumiko-framework/errors";
|
|
3
3
|
import { parseRoles } from "@cosmicdrift/kumiko-framework/utils";
|
|
4
|
-
import { TenantErrors } from "./constants.ts";
|
|
5
4
|
import { tenantMembershipsTable } from "./membership-table.ts";
|
|
5
|
+
import { TenantErrors } from "./web/constants.ts";
|
|
6
6
|
|
|
7
7
|
// Serializes last-TenantAdmin demotion/removal checks per tenant inside the write TX
|
|
8
8
|
// (dispatcher batch wraps handlers in transaction — xact lock holds through update).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AssignableAppRoles } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
-
import { OWNER_INVITE_ROLE_OPTIONS } from "./constants.ts";
|
|
2
|
+
import { OWNER_INVITE_ROLE_OPTIONS } from "./web/constants.ts";
|
|
3
3
|
|
|
4
4
|
export function memberRoleOptions(assignableAppRoles: AssignableAppRoles): readonly string[] {
|
|
5
5
|
return [...OWNER_INVITE_ROLE_OPTIONS, ...assignableAppRoles.keys()];
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
isAssignableByRole,
|
|
9
9
|
type ScreenDefinition,
|
|
10
10
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
11
|
+
import { memberRoleOptions } from "./member-role-options.ts";
|
|
11
12
|
import {
|
|
12
13
|
DEFAULT_INVITE_ROLE_OPTIONS,
|
|
13
14
|
INVITE_CREATE_SCREEN_ID,
|
|
@@ -17,8 +18,7 @@ import {
|
|
|
17
18
|
MEMBERS_SCREEN_ID,
|
|
18
19
|
TenantHandlers,
|
|
19
20
|
TenantQueries,
|
|
20
|
-
} from "./constants.ts";
|
|
21
|
-
import { memberRoleOptions } from "./member-role-options.ts";
|
|
21
|
+
} from "./web/constants.ts";
|
|
22
22
|
|
|
23
23
|
// Cross-tenant SystemAdmin platform view of the tenants themselves. The tenant
|
|
24
24
|
// feature runs with `r.systemScope()`, so the entityList returns every tenant.
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
// @runtime client
|
|
2
1
|
import { mergeTranslations, type TranslationsByLocale } from "@cosmicdrift/kumiko-renderer";
|
|
3
2
|
import type { ClientFeatureDefinition } from "@cosmicdrift/kumiko-renderer/web";
|
|
4
3
|
import {
|
|
5
4
|
MEMBER_ROLES_CELL_COMPONENT,
|
|
6
5
|
MEMBER_STATUS_CELL_COMPONENT,
|
|
7
6
|
TENANT_FEATURE,
|
|
8
|
-
} from "
|
|
7
|
+
} from "./constants.ts";
|
|
9
8
|
import { MemberRolesCell } from "./member-roles-cell.tsx";
|
|
10
9
|
import { MemberStatusCell } from "./member-status-cell.tsx";
|
|
11
10
|
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// MemberStatusCell column renderer) can import them too (see
|
|
4
|
-
// auth-email-password/constants.ts for the rationale). Runtime imports
|
|
5
|
-
// client → server can keep using them as well.
|
|
1
|
+
// Pure string constants, client-safe because they live under web/ (see
|
|
2
|
+
// auth-email-password/web/constants.ts); server code may import them too.
|
|
6
3
|
|
|
7
4
|
// Feature name
|
|
8
5
|
export const TENANT_FEATURE = "tenant" as const;
|
|
@@ -64,7 +61,7 @@ export const TenantQueries = {
|
|
|
64
61
|
tenantDirectory: "tenant:query:tenant-directory",
|
|
65
62
|
activeTenantIds: "tenant:query:active-tenant-ids",
|
|
66
63
|
resolveUserIds: "tenant:query:resolve-user-ids",
|
|
67
|
-
// Pending
|
|
64
|
+
// Pending invitations of the current tenant (admin UI list).
|
|
68
65
|
invitations: "tenant:query:invitations",
|
|
69
66
|
// Combined active-members + pending-invitations list backing /members.
|
|
70
67
|
teamList: "tenant:query:team:list",
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
} from "@cosmicdrift/kumiko-framework/crypto";
|
|
6
6
|
import {
|
|
7
7
|
createEventStoreExecutor,
|
|
8
|
+
createTenantDataDestroyDb,
|
|
8
9
|
createTenantDb,
|
|
9
10
|
type DbRunner,
|
|
10
11
|
selectMany,
|
|
@@ -143,10 +144,9 @@ async function runTenantDataHooks(ctx: DestructionStageCtx): Promise<StageRunOut
|
|
|
143
144
|
log: ctx.escapeHatchAuditLog ?? createFallbackLogger("tenant-lifecycle"),
|
|
144
145
|
});
|
|
145
146
|
const hookCtx: TenantDataHookCtx = {
|
|
146
|
-
db:
|
|
147
|
+
db: createTenantDataDestroyDb({
|
|
147
148
|
db: ctx.db,
|
|
148
149
|
tenantId: ctx.tenantId,
|
|
149
|
-
mode: "tenant",
|
|
150
150
|
grants: {
|
|
151
151
|
unsafeRaw: reason !== undefined ? { reason } : undefined,
|
|
152
152
|
report,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createSelectField,
|
|
4
4
|
createTextField,
|
|
5
5
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
6
|
-
import { type TierAssignmentSource, TierAssignmentSources } from "./constants.ts";
|
|
6
|
+
import { type TierAssignmentSource, TierAssignmentSources } from "./web/constants.ts";
|
|
7
7
|
|
|
8
8
|
// tier-assignment — pro Plattform-Tenant genau ein Aggregat. Aggregate-ID
|
|
9
9
|
// wird deterministisch aus tenantId abgeleitet (uuidv5, siehe aggregate-id.ts).
|
|
@@ -76,18 +76,18 @@ import * as z from "zod";
|
|
|
76
76
|
import { tenantTable } from "../tenant/index.ts";
|
|
77
77
|
import { tierAssignmentAggregateId } from "./aggregate-id.ts";
|
|
78
78
|
import type { TierMap } from "./compose-app.ts";
|
|
79
|
-
import {
|
|
80
|
-
TIER_ADMIN_SCREEN_ID,
|
|
81
|
-
TIER_ENGINE_FEATURE,
|
|
82
|
-
TierAssignmentSources,
|
|
83
|
-
TierEngineHandlers,
|
|
84
|
-
} from "./constants.ts";
|
|
85
79
|
import { tierAssignmentEntity } from "./entity.ts";
|
|
86
80
|
import { getActiveTierQuery } from "./handlers/active-tier.query.ts";
|
|
87
81
|
import { getTenantTierQuery } from "./handlers/get-tenant-tier.query.ts";
|
|
88
82
|
import { createSetTenantTierWrite } from "./handlers/set-tenant-tier.write.ts";
|
|
89
|
-
import { TIER_ENGINE_I18N } from "./i18n.ts";
|
|
90
83
|
import { isTrialActive, type TrialPolicy } from "./trial.ts";
|
|
84
|
+
import {
|
|
85
|
+
TIER_ADMIN_SCREEN_ID,
|
|
86
|
+
TIER_ENGINE_FEATURE,
|
|
87
|
+
TierAssignmentSources,
|
|
88
|
+
TierEngineHandlers,
|
|
89
|
+
} from "./web/constants.ts";
|
|
90
|
+
import { TIER_ENGINE_I18N } from "./web/i18n.ts";
|
|
91
91
|
|
|
92
92
|
// Drizzle-table for the tier-assignment-entity. Built once at module-load
|
|
93
93
|
// from the entity definition — same shape buildEntityTable would produce
|
|
@@ -7,8 +7,8 @@ import { defineWriteHandler, type TenantId } from "@cosmicdrift/kumiko-framework
|
|
|
7
7
|
import * as z from "zod";
|
|
8
8
|
import { requireForTenant } from "../../shared/index.ts";
|
|
9
9
|
import { tierAssignmentAggregateId } from "../aggregate-id.ts";
|
|
10
|
-
import { type TierAssignmentSource, TierAssignmentSources } from "../constants.ts";
|
|
11
10
|
import { type TierAssignmentRow, tierAssignmentEntity } from "../entity.ts";
|
|
11
|
+
import { type TierAssignmentSource, TierAssignmentSources } from "../web/constants.ts";
|
|
12
12
|
|
|
13
13
|
// SystemAdmin setzt das Tier eines BELIEBIGEN Tenants — manueller Grant ohne
|
|
14
14
|
// Billing. Cross-tenant, daher SystemAdmin-only (kein TenantAdmin: sonst
|
|
@@ -17,14 +17,6 @@ export {
|
|
|
17
17
|
type TierDefinition,
|
|
18
18
|
type TierMap,
|
|
19
19
|
} from "./compose-app.ts";
|
|
20
|
-
export {
|
|
21
|
-
isTierAssignmentSource,
|
|
22
|
-
TIER_ENGINE_FEATURE,
|
|
23
|
-
type TierAssignmentSource,
|
|
24
|
-
TierAssignmentSources,
|
|
25
|
-
TierEngineHandlers,
|
|
26
|
-
TierEngineQueries,
|
|
27
|
-
} from "./constants.ts";
|
|
28
20
|
export { tierAssignmentEntity } from "./entity.ts";
|
|
29
21
|
export {
|
|
30
22
|
type CreateTierEngineOptions,
|
|
@@ -43,3 +35,11 @@ export {
|
|
|
43
35
|
type TierResolverDeps,
|
|
44
36
|
} from "./tier-resolver.ts";
|
|
45
37
|
export { isTrialActive, type TrialPolicy } from "./trial.ts";
|
|
38
|
+
export {
|
|
39
|
+
isTierAssignmentSource,
|
|
40
|
+
TIER_ENGINE_FEATURE,
|
|
41
|
+
type TierAssignmentSource,
|
|
42
|
+
TierAssignmentSources,
|
|
43
|
+
TierEngineHandlers,
|
|
44
|
+
TierEngineQueries,
|
|
45
|
+
} from "./web/constants.ts";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @runtime client
|
|
2
1
|
// Client-feature factory for tier-engine. Supplies the default translations
|
|
3
2
|
// for the declarative tier-admin actionForm (registered server-side via
|
|
4
3
|
// r.screen in the feature); the app places the screen only via r.nav.
|
|
@@ -9,8 +8,8 @@ import {
|
|
|
9
8
|
translationsByLocaleFromKeys,
|
|
10
9
|
} from "@cosmicdrift/kumiko-renderer";
|
|
11
10
|
import type { ClientFeatureDefinition } from "@cosmicdrift/kumiko-renderer/web";
|
|
12
|
-
import { TIER_ENGINE_FEATURE } from "
|
|
13
|
-
import { TIER_ENGINE_I18N } from "
|
|
11
|
+
import { TIER_ENGINE_FEATURE } from "./constants.ts";
|
|
12
|
+
import { TIER_ENGINE_I18N } from "./i18n.ts";
|
|
14
13
|
|
|
15
14
|
const defaultTranslations: TranslationsByLocale = translationsByLocaleFromKeys(TIER_ENGINE_I18N);
|
|
16
15
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @runtime client
|
|
2
1
|
// Pure string-literal QNs/ids — imported by both server (feature.ts) and
|
|
3
2
|
// client (web/client-plugin.tsx). Marked `client`, the most permissive
|
|
4
3
|
// category in the kumiko isolation model (runtime may import client, client
|
|
@@ -39,6 +38,6 @@ export const TierEngineQueries = {
|
|
|
39
38
|
tierOptions: "tier-engine:query:tier-options",
|
|
40
39
|
} as const;
|
|
41
40
|
|
|
42
|
-
// Screen
|
|
43
|
-
//
|
|
41
|
+
// Screen id of the manual tier-grant screen. Apps reference it qualified in
|
|
42
|
+
// r.nav: `tier-engine:screen:tier-admin`.
|
|
44
43
|
export const TIER_ADMIN_SCREEN_ID = "tier-admin" as const;
|
|
@@ -14,9 +14,9 @@ import { canonicalizeLocaleTag, isValidLocaleTag } from "@cosmicdrift/kumiko-fra
|
|
|
14
14
|
import { isValidIanaTimeZone } from "@cosmicdrift/kumiko-framework/time";
|
|
15
15
|
import { parseRoles } from "@cosmicdrift/kumiko-framework/utils";
|
|
16
16
|
import * as z from "zod";
|
|
17
|
-
import { UserErrors } from "../constants.ts";
|
|
18
17
|
import { rolesInputSchema } from "../roles-input-schema.ts";
|
|
19
18
|
import { userEntity, userTable } from "../schema/user.ts";
|
|
19
|
+
import { UserErrors } from "../web/constants.ts";
|
|
20
20
|
|
|
21
21
|
const crud = createEventStoreExecutor(userTable, userEntity, { entityName: "user" });
|
|
22
22
|
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
writeFailure,
|
|
23
23
|
} from "@cosmicdrift/kumiko-framework/errors";
|
|
24
24
|
import { parseRoles } from "@cosmicdrift/kumiko-framework/utils";
|
|
25
|
-
import { UserErrors } from "../constants.ts";
|
|
26
25
|
import { USER_STATUS, userEntity, userTable } from "../schema/user.ts";
|
|
26
|
+
import { UserErrors } from "../web/constants.ts";
|
|
27
27
|
|
|
28
28
|
const crud = createEventStoreExecutor(userTable, userEntity, { entityName: "user" });
|
|
29
29
|
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
import { canonicalizeLocaleTag, isValidLocaleTag } from "@cosmicdrift/kumiko-framework/i18n";
|
|
9
9
|
import { isValidIanaTimeZone } from "@cosmicdrift/kumiko-framework/time";
|
|
10
10
|
import * as z from "zod";
|
|
11
|
-
import { UserErrors } from "../constants.ts";
|
|
12
11
|
import { rolesInputSchema } from "../roles-input-schema.ts";
|
|
13
12
|
import { userEntity, userTable } from "../schema/user.ts";
|
|
13
|
+
import { UserErrors } from "../web/constants.ts";
|
|
14
14
|
import { applyUserRolesUpdate } from "./update-roles.ts";
|
|
15
15
|
|
|
16
16
|
const crud = createEventStoreExecutor(userTable, userEntity, { entityName: "user" });
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { UserCommandSchemas } from "./command-schemas.ts";
|
|
2
|
-
export { USER_FEATURE, UserErrors, UserHandlers, UserQueries } from "./constants.ts";
|
|
3
2
|
export {
|
|
4
3
|
backfillUserStreamTenants,
|
|
5
4
|
type UserStreamBackfillResult,
|
|
@@ -22,3 +21,4 @@ export {
|
|
|
22
21
|
userEntity,
|
|
23
22
|
userTable,
|
|
24
23
|
} from "./schema/user.ts";
|
|
24
|
+
export { USER_FEATURE, UserErrors, UserHandlers, UserQueries } from "./web/constants.ts";
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
import { createSystemUser, SYSTEM_TENANT_ID } from "@cosmicdrift/kumiko-framework/engine";
|
|
8
8
|
import { NotFoundError, writeFailure } from "@cosmicdrift/kumiko-framework/errors";
|
|
9
9
|
import { parseRoles } from "@cosmicdrift/kumiko-framework/utils";
|
|
10
|
-
import { GLOBAL_ROLE_OPTIONS, type GlobalRole } from "./constants.ts";
|
|
11
10
|
import { userEntity, userTable } from "./schema/user.ts";
|
|
11
|
+
import { GLOBAL_ROLE_OPTIONS, type GlobalRole } from "./web/constants.ts";
|
|
12
12
|
|
|
13
13
|
const userExecutor = createEventStoreExecutor(userTable, userEntity, { entityName: "user" });
|
|
14
14
|
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
createTimestampField,
|
|
11
11
|
createTzField,
|
|
12
12
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
13
|
-
import { GLOBAL_ROLE_OPTIONS } from "../constants.ts";
|
|
13
|
+
import { GLOBAL_ROLE_OPTIONS } from "../web/constants.ts";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* User-Lifecycle-Status (S2.U1). Single source of truth — Auth-Middleware
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.379.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Client files of a feature live under web/",
|
|
6
|
+
"detail": "Files that carried a runtime-client marker moved into <feature>/web/ (constants.ts, i18n.ts, qualified-names and similar), so the runtime-isolation guard reads the runtime from the path. Export subpaths such as ./tenant/constants are unchanged; only relative imports into the old file locations break. The web-side translation glue of user-data-rights, managed-pages, admin-shell, audit, jobs and the document designer is now web/default-translations.ts.",
|
|
7
|
+
"migration": "Run bun kumiko-upgrade --apply, or bun kumiko codemod feature-layout . --write. It moves every file marked as runtime client from src/features/<feature>/ into src/features/<feature>/web/, rewrites the relative imports and drops the marker. Add --check to list what is left.",
|
|
8
|
+
"codemod": "scripts/codemod/feature-layout.ts"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"version": "0.379.0",
|
|
12
|
+
"type": "fix",
|
|
13
|
+
"title": "DELETION_TOKEN_SECRET description corrected",
|
|
14
|
+
"detail": "The env description no longer claims a fallback to JWT_SECRET; without the secret the anonymous deletion-confirmation flow stays off."
|
|
15
|
+
},
|
|
2
16
|
{
|
|
3
17
|
"version": "0.376.0",
|
|
4
18
|
"type": "improvement",
|
|
@@ -9,7 +9,7 @@ export const deletionTokenSecretEnvSchema = z.object({
|
|
|
9
9
|
.min(MIN_DELETION_TOKEN_SECRET_LENGTH)
|
|
10
10
|
.optional()
|
|
11
11
|
.describe(
|
|
12
|
-
"Dedicated HMAC secret for the anonymous deletion-confirmation links. Unset:
|
|
12
|
+
"Dedicated HMAC secret for the anonymous deletion-confirmation links. At least 32 characters. Unset: the anonymous deletion-confirmation flow stays off; there is no fallback to JWT_SECRET.",
|
|
13
13
|
)
|
|
14
14
|
.meta({ kumiko: { pulumi: { generator: "openssl rand -hex 24", secret: true } } }),
|
|
15
15
|
});
|
|
@@ -18,13 +18,6 @@ import {
|
|
|
18
18
|
import { isPlainObject } from "@cosmicdrift/kumiko-types/type-guards";
|
|
19
19
|
import { createConfigAccessor } from "../config/index.ts";
|
|
20
20
|
import { validateGdprHookCompleteness, validateGdprPiiHookCoverage } from "./boot-checks.ts";
|
|
21
|
-
import {
|
|
22
|
-
EXPORT_SECTION_EXTENSION_NAME,
|
|
23
|
-
PRIVACY_CENTER_SCREEN_ID,
|
|
24
|
-
STATUS_OPTION_KEY_PREFIX,
|
|
25
|
-
USER_ME_QUERY,
|
|
26
|
-
UserDataRightsHandlers,
|
|
27
|
-
} from "./constants.ts";
|
|
28
21
|
import { deletionTokenSecretEnvSchema } from "./env.ts";
|
|
29
22
|
import { cancelDeletionWrite } from "./handlers/cancel-deletion.write.ts";
|
|
30
23
|
import { createConfirmDeletionByTokenHandler } from "./handlers/confirm-deletion-by-token.write.ts";
|
|
@@ -48,7 +41,6 @@ import {
|
|
|
48
41
|
import { requestExportWrite } from "./handlers/request-export.write.ts";
|
|
49
42
|
import { restrictAccountWrite } from "./handlers/restrict-account.write.ts";
|
|
50
43
|
import { createRunForgetCleanupHandler } from "./handlers/run-forget-cleanup.write.ts";
|
|
51
|
-
import { USER_DATA_RIGHTS_I18N } from "./i18n.ts";
|
|
52
44
|
import {
|
|
53
45
|
type GdprMailDefaults,
|
|
54
46
|
isGdprMailDeliveryAvailable,
|
|
@@ -82,6 +74,14 @@ import {
|
|
|
82
74
|
exportJobDetailScreen,
|
|
83
75
|
exportJobListScreen,
|
|
84
76
|
} from "./screens.ts";
|
|
77
|
+
import {
|
|
78
|
+
EXPORT_SECTION_EXTENSION_NAME,
|
|
79
|
+
PRIVACY_CENTER_SCREEN_ID,
|
|
80
|
+
STATUS_OPTION_KEY_PREFIX,
|
|
81
|
+
USER_ME_QUERY,
|
|
82
|
+
UserDataRightsHandlers,
|
|
83
|
+
} from "./web/constants.ts";
|
|
84
|
+
import { USER_DATA_RIGHTS_I18N } from "./web/i18n.ts";
|
|
85
85
|
|
|
86
86
|
// user-data-rights — DSGVO Art. 15 (Auskunft) + Art. 17 (Löschung) +
|
|
87
87
|
// Art. 18 (Restriction) + Art. 20 (Portabilität) als Core-Feature.
|
|
@@ -343,7 +343,7 @@ export function createUserDataRightsFeature(opts: UserDataRightsOptions = {}): F
|
|
|
343
343
|
r.translations({ keys: USER_DATA_RIGHTS_I18N });
|
|
344
344
|
registerGdprMails(r);
|
|
345
345
|
// Privacy-center dot-form labels (i18nKey()-marked below), duplicated in
|
|
346
|
-
// web/
|
|
346
|
+
// web/default-translations.ts's client bundle since privacy-center-screen.tsx renders
|
|
347
347
|
// them client-side.
|
|
348
348
|
r.translations({
|
|
349
349
|
keys: {
|