@antelopejs/dms 0.25.6 → 0.25.7-next.1111.gaba637e
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/CHANGELOG.md +0 -60
- package/README.md +1 -1
- package/data/mockup-spec.schema.json +223 -303
- package/dist/implementations/dms-auth/account-emails.js +2 -2
- package/dist/implementations/dms-auth/account-emails.js.map +1 -1
- package/dist/implementations/dms-auth/index.js +2 -1
- package/dist/implementations/dms-auth/index.js.map +1 -1
- package/dist/implementations/dms-base/search-route.js +5 -8
- package/dist/implementations/dms-base/search-route.js.map +1 -1
- package/dist/implementations/dms-builder/engine/cell-displays.js +1 -4
- package/dist/implementations/dms-builder/engine/cell-displays.js.map +1 -1
- package/dist/implementations/dms-builder/engine/mapped-displays.js +1 -5
- package/dist/implementations/dms-builder/engine/mapped-displays.js.map +1 -1
- package/dist/implementations/dms-builder/engine/resource-emit.js +0 -4
- package/dist/implementations/dms-builder/engine/resource-emit.js.map +1 -1
- package/dist/implementations/dms-builder/engine/theme-assets.js +17 -5
- package/dist/implementations/dms-builder/engine/theme-assets.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.js +5 -0
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/mockup-export/capture.d.ts +15 -0
- package/dist/mcp/mockup-export/capture.js +97 -0
- package/dist/mcp/mockup-export/capture.js.map +1 -0
- package/dist/mcp/mockup-export/document.d.ts +4 -0
- package/dist/mcp/mockup-export/document.js +199 -0
- package/dist/mcp/mockup-export/document.js.map +1 -0
- package/dist/mcp/mockup-export/index.d.ts +23 -0
- package/dist/mcp/mockup-export/index.js +90 -0
- package/dist/mcp/mockup-export/index.js.map +1 -0
- package/dist/mcp/mockup-export/plan.d.ts +78 -0
- package/dist/mcp/mockup-export/plan.js +257 -0
- package/dist/mcp/mockup-export/plan.js.map +1 -0
- package/dist/mcp/mockup-export/route.d.ts +13 -0
- package/dist/mcp/mockup-export/route.js +66 -0
- package/dist/mcp/mockup-export/route.js.map +1 -0
- package/dist/mcp/page-verify/index.d.ts +14 -0
- package/dist/mcp/page-verify/index.js +9 -5
- package/dist/mcp/page-verify/index.js.map +1 -1
- package/dist/mcp/page-verify/mockup.d.ts +2 -1
- package/dist/mcp/page-verify/mockup.js +1 -0
- package/dist/mcp/page-verify/mockup.js.map +1 -1
- package/dist/mcp/page-verify/playwright.d.ts +22 -4
- package/dist/mcp/page-verify/playwright.js.map +1 -1
- package/dist/mcp/tools/mockup-apply-to-page.js +1 -1
- package/dist/mcp/tools/mockup-apply-to-page.js.map +1 -1
- package/dist/mcp/tools/mockup-export-pdf.d.ts +1 -0
- package/dist/mcp/tools/mockup-export-pdf.js +71 -0
- package/dist/mcp/tools/mockup-export-pdf.js.map +1 -0
- package/dist/mcp/tools/mockup-patch-spec.js +1 -1
- package/dist/mcp/tools/mockup-patch-spec.js.map +1 -1
- package/dist/mcp/tools/mockup-read-spec.js +10 -3
- package/dist/mcp/tools/mockup-read-spec.js.map +1 -1
- package/dist/mcp/tools/mockup-write-spec.js +1 -1
- package/dist/mcp/tools/mockup-write-spec.js.map +1 -1
- package/dist/mcp/tools/mockup.js +2 -0
- package/dist/mcp/tools/mockup.js.map +1 -1
- package/dist/mcp/tools/page-verify.d.ts +1 -0
- package/dist/mcp/tools/page-verify.js +5 -1
- package/dist/mcp/tools/page-verify.js.map +1 -1
- package/dist/mockup/apply-notes.d.ts +1 -1
- package/dist/mockup/apply-notes.js +1 -2
- package/dist/mockup/apply-notes.js.map +1 -1
- package/dist/mockup/apply-plan.js +0 -3
- package/dist/mockup/apply-plan.js.map +1 -1
- package/dist/mockup/compile.d.ts +6 -1
- package/dist/mockup/compile.js +29 -25
- package/dist/mockup/compile.js.map +1 -1
- package/dist/mockup/controller-blocks.js +10 -62
- package/dist/mockup/controller-blocks.js.map +1 -1
- package/dist/mockup/database-manifest.d.ts +2 -0
- package/dist/mockup/database-manifest.js +75 -0
- package/dist/mockup/database-manifest.js.map +1 -0
- package/dist/mockup/display-values.js +1 -1
- package/dist/mockup/display-values.js.map +1 -1
- package/dist/mockup/entities.d.ts +20 -0
- package/dist/mockup/entities.js +213 -0
- package/dist/mockup/entities.js.map +1 -0
- package/dist/mockup/files.d.ts +2 -2
- package/dist/mockup/files.js +2 -2
- package/dist/mockup/files.js.map +1 -1
- package/dist/mockup/fixture-answers.d.ts +1 -0
- package/dist/mockup/fixture-answers.js +1 -1
- package/dist/mockup/fixture-answers.js.map +1 -1
- package/dist/mockup/{capture-routes.d.ts → fixture-routes.d.ts} +11 -6
- package/dist/mockup/fixture-routes.js +155 -0
- package/dist/mockup/fixture-routes.js.map +1 -0
- package/dist/mockup/fixtures.d.ts +1 -3
- package/dist/mockup/fixtures.js +2 -25
- package/dist/mockup/fixtures.js.map +1 -1
- package/dist/mockup/form-fields.js +1 -10
- package/dist/mockup/form-fields.js.map +1 -1
- package/dist/mockup/generate.js +4 -1
- package/dist/mockup/generate.js.map +1 -1
- package/dist/mockup/history-routes.js +2 -17
- package/dist/mockup/history-routes.js.map +1 -1
- package/dist/mockup/index.d.ts +3 -0
- package/dist/mockup/index.js +3 -0
- package/dist/mockup/index.js.map +1 -1
- package/dist/mockup/json-schema-entities.d.ts +5 -0
- package/dist/mockup/json-schema-entities.js +141 -0
- package/dist/mockup/json-schema-entities.js.map +1 -0
- package/dist/mockup/json-schema.js +23 -24
- package/dist/mockup/json-schema.js.map +1 -1
- package/dist/mockup/json.d.ts +8 -0
- package/dist/mockup/json.js +20 -0
- package/dist/mockup/json.js.map +1 -0
- package/dist/mockup/manage.js +1 -1
- package/dist/mockup/manage.js.map +1 -1
- package/dist/mockup/manifest-blocks.d.ts +19 -0
- package/dist/mockup/manifest-blocks.js +65 -0
- package/dist/mockup/manifest-blocks.js.map +1 -0
- package/dist/mockup/model.d.ts +106 -255
- package/dist/mockup/model.js +86 -82
- package/dist/mockup/model.js.map +1 -1
- package/dist/mockup/module-manifests.d.ts +22 -0
- package/dist/mockup/module-manifests.js +28 -0
- package/dist/mockup/module-manifests.js.map +1 -0
- package/dist/mockup/modules-schema.d.ts +2 -0
- package/dist/mockup/modules-schema.js +42 -0
- package/dist/mockup/modules-schema.js.map +1 -0
- package/dist/mockup/modules.d.ts +20 -9
- package/dist/mockup/modules.js +146 -22
- package/dist/mockup/modules.js.map +1 -1
- package/dist/mockup/page-links.d.ts +1 -2
- package/dist/mockup/page-links.js +3 -14
- package/dist/mockup/page-links.js.map +1 -1
- package/dist/mockup/refusals.d.ts +4 -1
- package/dist/mockup/refusals.js +15 -1
- package/dist/mockup/refusals.js.map +1 -1
- package/dist/mockup/routes.d.ts +1 -5
- package/dist/mockup/routes.js +9 -171
- package/dist/mockup/routes.js.map +1 -1
- package/dist/mockup/saas-manifest.d.ts +2 -0
- package/dist/mockup/saas-manifest.js +496 -0
- package/dist/mockup/saas-manifest.js.map +1 -0
- package/dist/mockup/sample-rows.js +0 -4
- package/dist/mockup/sample-rows.js.map +1 -1
- package/dist/mockup/state.d.ts +76 -0
- package/dist/mockup/state.js +22 -0
- package/dist/mockup/state.js.map +1 -0
- package/dist/mockup/{summary-fields.js → store-summary.js} +1 -1
- package/dist/mockup/store-summary.js.map +1 -0
- package/dist/mockup/store.d.ts +1 -2
- package/dist/mockup/store.js +16 -22
- package/dist/mockup/store.js.map +1 -1
- package/dist/mockup/table-columns.js +3 -9
- package/dist/mockup/table-columns.js.map +1 -1
- package/dist/mockup/table-options.d.ts +1 -4
- package/dist/mockup/table-options.js +2 -40
- package/dist/mockup/table-options.js.map +1 -1
- package/dist/mockup/tenancy.d.ts +19 -0
- package/dist/mockup/tenancy.js +73 -0
- package/dist/mockup/tenancy.js.map +1 -0
- package/dist/mockup/tenant-rows.d.ts +4 -0
- package/dist/mockup/tenant-rows.js +19 -0
- package/dist/mockup/tenant-rows.js.map +1 -0
- package/dist/mockup/validate.d.ts +1 -7
- package/dist/mockup/validate.js +3 -76
- package/dist/mockup/validate.js.map +1 -1
- package/dist/pages/account.d.ts +0 -1
- package/dist/pages/account.js +0 -1
- package/dist/pages/account.js.map +1 -1
- package/dist/pages/settings/overview/account-summary.d.ts +0 -2
- package/dist/pages/settings/overview/account-summary.js +8 -17
- package/dist/pages/settings/overview/account-summary.js.map +1 -1
- package/dist/pages/settings/settings-index.js +1 -2
- package/dist/pages/settings/settings-index.js.map +1 -1
- package/dist/realtime/sse.js +4 -2
- package/dist/realtime/sse.js.map +1 -1
- package/dist/store/internal/frontend/dev-reload.js +1 -7
- package/dist/store/internal/frontend/dev-reload.js.map +1 -1
- package/dist/utils/account-notifications.js +0 -1
- package/dist/utils/account-notifications.js.map +1 -1
- package/dist/utils/email-change-mail.js +2 -2
- package/dist/utils/email-change-mail.js.map +1 -1
- package/dist/utils/export-jobs.js +2 -2
- package/dist/utils/export-jobs.js.map +1 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/validation/index.d.ts +0 -1
- package/dist/validation/index.js +0 -1
- package/dist/validation/index.js.map +1 -1
- package/frontend-vue/eslint-globals.generated.mjs +2 -2
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/2fa.vue +0 -3
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/backup.vue +0 -3
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot-validation.vue +0 -3
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot.vue +0 -3
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/login.vue +1 -4
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/recover.vue +0 -3
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/signup.vue +1 -17
- package/frontend-vue/layers/dms-auth/app/custom-pages/auth/validate.vue +0 -3
- package/frontend-vue/layers/dms-auth/i18n/locales/auth-fr-FR.json +10 -10
- package/frontend-vue/layers/dms-core/app/build/composables/api-error.ts +0 -8
- package/frontend-vue/layers/dms-core/app/composables/data-types/useDataType.ts +2 -3
- package/frontend-vue/layers/dms-core/app/composables/translation/useUniqueLocales.ts +5 -23
- package/frontend-vue/layers/dms-core/app/composables/useApiErrorPresenter.ts +0 -1
- package/frontend-vue/layers/dms-core/app/composables/useFieldErrors.ts +443 -12
- package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +0 -8
- package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +0 -8
- package/frontend-vue/layers/dms-core/shared/types/app-config.ts +0 -2
- package/frontend-vue/layers/dms-layout/app/app.config.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardHeader.vue +4 -7
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +29 -14
- package/frontend-vue/layers/dms-layout/app/build/components/layout/LayoutFooter.vue +0 -2
- package/frontend-vue/layers/dms-layout/app/build/components/layout/MockupSidebarMenu.vue +21 -6
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PreviewPageHeader.vue +3 -19
- package/frontend-vue/layers/dms-layout/app/build/components/layout/mockupMenu.ts +110 -9
- package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationPopover.vue +2 -8
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxItem.vue +9 -6
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationMatrixCategory.vue +2 -6
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationMatrixSubject.vue +22 -27
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationPreferencesForm.vue +10 -8
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/notificationDisplay.ts +3 -39
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsShell.vue +5 -38
- package/frontend-vue/layers/dms-layout/app/build/composables/settings/profile/useProfilePreferences.ts +3 -1
- package/frontend-vue/layers/dms-layout/app/build/utils/dev-reload-stream.ts +4 -23
- package/frontend-vue/layers/dms-layout/app/custom-layouts/EmptyLayout.vue +31 -39
- package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +9 -60
- package/frontend-vue/layers/dms-layout/app/error.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/middleware/module-routing.global.ts +1 -7
- package/frontend-vue/layers/dms-layout/app/plugins/dms-menu-sync.client.ts +1 -14
- package/frontend-vue/layers/dms-layout/app/utils/breadcrumb.ts +0 -13
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-en-GB.json +1 -1
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +5 -5
- package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/steps/StepPlatform.vue +0 -3
- package/frontend-vue/layers/dms-onboarding/app/components/onboarding/steps/StepRegister.vue +1 -3
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/BlockPreviewSketch.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabase.vue +165 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupHeaderActions.vue +4 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspector.vue +1 -2
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIssues.vue +1 -22
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModules.vue +11 -6
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverview.vue +182 -125
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSlot.vue +12 -114
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinLayer.vue +4 -10
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTenantBanner.vue +48 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +76 -8
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +65 -9
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkspaceSwitcher.vue +142 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/ExpandedRowDetail.vue +6 -26
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewNavigation.ts +8 -8
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +6 -46
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupDatabase.ts +175 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupOverview.ts +35 -109
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageFrame.ts +18 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPdfExport.ts +76 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRoutePage.ts +1 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupTenancy.ts +63 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerPages.ts +1 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerShortcuts.ts +6 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +13 -68
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewLinks.ts +7 -17
- package/frontend-vue/layers/dms-ui/app/build/composables/confirm/fetchedConfirmDialog.ts +0 -6
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultDisplayComponents.ts +0 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultPrimitiveTypes.ts +0 -38
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/registerFieldTypes.ts +3 -69
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/useColumnValueRenderer.ts +7 -20
- package/frontend-vue/layers/dms-ui/app/build/composables/form/keyValueRows.ts +0 -36
- package/frontend-vue/layers/dms-ui/app/build/composables/form/useInstantForm.ts +0 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewGrouping.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewListing.ts +5 -21
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewSorting.ts +0 -8
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useGroupedRows.ts +4 -32
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableFooter.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableRows.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/displayOptions.ts +2 -14
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/groupedRows.ts +6 -68
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +0 -5
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCard.vue +48 -73
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +11 -18
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupThumbnail.vue +125 -34
- package/frontend-vue/layers/dms-ui/app/build/mockups/manage.ts +3 -7
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +149 -84
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewNavigation.ts +119 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +72 -43
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupEntities.ts +80 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupFrame.ts +92 -8
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupLinks.ts +1 -35
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverview.ts +17 -44
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSchema.ts +177 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupShortcuts.ts +14 -3
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +14 -26
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenancy.ts +151 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenants.ts +23 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/recordGuards.ts +15 -0
- package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +6 -56
- package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +3 -0
- package/frontend-vue/layers/dms-ui/app/components/confirm/ConfirmModal.vue +7 -7
- package/frontend-vue/layers/dms-ui/app/components/flow-canvas/FlowCanvas.vue +7 -4
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputPhone.vue +0 -5
- package/frontend-vue/layers/dms-ui/app/components/form/components/KeyValue.vue +20 -2
- package/frontend-vue/layers/dms-ui/app/components/key-value-list/KeyValueList.vue +15 -51
- package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +8 -3
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/config.ts +0 -10
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupTenantBanner.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupWorkspaceSwitcher.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupPdfExport.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupTenancy.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/blockPreview.ts +0 -3
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSchema.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenancy.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenants.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/types/table/query.ts +0 -5
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +28 -2
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +38 -12
- package/frontend-vue/scripts/check-invariants.mjs +0 -101
- package/package.json +5 -5
- package/skills/dms/SKILL.md +2 -4
- package/skills/dms-module/SKILL.md +0 -3
- package/dist/implementations/dms-base/group-order.d.ts +0 -18
- package/dist/implementations/dms-base/group-order.js +0 -66
- package/dist/implementations/dms-base/group-order.js.map +0 -1
- package/dist/mockup/capture-routes.js +0 -101
- package/dist/mockup/capture-routes.js.map +0 -1
- package/dist/mockup/capture.d.ts +0 -10
- package/dist/mockup/capture.js +0 -64
- package/dist/mockup/capture.js.map +0 -1
- package/dist/mockup/header-action.d.ts +0 -47
- package/dist/mockup/header-action.js +0 -46
- package/dist/mockup/header-action.js.map +0 -1
- package/dist/mockup/json-schema-header.d.ts +0 -2
- package/dist/mockup/json-schema-header.js +0 -69
- package/dist/mockup/json-schema-header.js.map +0 -1
- package/dist/mockup/json-schema-layout.d.ts +0 -2
- package/dist/mockup/json-schema-layout.js +0 -61
- package/dist/mockup/json-schema-layout.js.map +0 -1
- package/dist/mockup/summary-fields.js.map +0 -1
- package/dist/mockup/table-param-filters.d.ts +0 -52
- package/dist/mockup/table-param-filters.js +0 -83
- package/dist/mockup/table-param-filters.js.map +0 -1
- package/dist/mockup/table-row-actions.d.ts +0 -2
- package/dist/mockup/table-row-actions.js +0 -85
- package/dist/mockup/table-row-actions.js.map +0 -1
- package/dist/mockup/unknown-keys.d.ts +0 -3
- package/dist/mockup/unknown-keys.js +0 -45
- package/dist/mockup/unknown-keys.js.map +0 -1
- package/dist/utils/email-plain-text.d.ts +0 -1
- package/dist/utils/email-plain-text.js +0 -95
- package/dist/utils/email-plain-text.js.map +0 -1
- package/dist/utils/html-email.d.ts +0 -8
- package/dist/utils/html-email.js +0 -9
- package/dist/utils/html-email.js.map +0 -1
- package/dist/utils/image-signatures.d.ts +0 -3
- package/dist/utils/image-signatures.js +0 -22
- package/dist/utils/image-signatures.js.map +0 -1
- package/dist/utils/sse-keepalive/index.d.ts +0 -3
- package/dist/utils/sse-keepalive/index.js +0 -8
- package/dist/utils/sse-keepalive/index.js.map +0 -1
- package/dist/validation/allowed-keys.d.ts +0 -2
- package/dist/validation/allowed-keys.js +0 -16
- package/dist/validation/allowed-keys.js.map +0 -1
- package/frontend-vue/layers/dms-core/app/build/composables/field-errors.ts +0 -485
- package/frontend-vue/layers/dms-core/app/build/composables/useHydrated.ts +0 -27
- package/frontend-vue/layers/dms-core/app/entries/composables/useHydrated.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/build/components/layout/EmptyLayoutBrand.vue +0 -49
- package/frontend-vue/layers/dms-layout/app/entries/components/pages/settings/shell/SettingsShell.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewArrows.vue +0 -110
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewFrameImage.vue +0 -75
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewZoom.vue +0 -67
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCapture.ts +0 -247
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCaptureAssets.ts +0 -181
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewRaster.ts +0 -45
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useOverviewCaptures.ts +0 -136
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewCapture.ts +0 -96
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewChannel.ts +0 -10
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewRects.ts +0 -61
- package/frontend-vue/layers/dms-ui/app/build/utils/dotGrid.ts +0 -37
- package/frontend-vue/layers/dms-ui/app/build/utils/legalIdentifier.ts +0 -279
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupCaptures.ts +0 -130
- package/frontend-vue/layers/dms-ui/app/build/utils/previewHeader.ts +0 -154
- package/frontend-vue/layers/dms-ui/app/build/utils/previewPageLayout.ts +0 -149
- package/frontend-vue/layers/dms-ui/app/build/utils/previewPageQuery.ts +0 -42
- package/frontend-vue/layers/dms-ui/app/components/form/components/InputIdentifier.vue +0 -90
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/previewCapture.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/previewCaptureAssets.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/usePreviewFrame.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/table-view/utils/displayOptions.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/mockups/manage.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/legalIdentifier.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupCaptures.ts +0 -1
- /package/dist/mockup/{summary-fields.d.ts → store-summary.d.ts} +0 -0
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paramFilterIssues = paramFilterIssues;
|
|
4
|
-
exports.fixtureQueryIssue = fixtureQueryIssue;
|
|
5
|
-
exports.paramFilterOptions = paramFilterOptions;
|
|
6
|
-
const VIEWER_QUERY_KEYS = new Set([
|
|
7
|
-
"name",
|
|
8
|
-
"page",
|
|
9
|
-
"width",
|
|
10
|
-
"data",
|
|
11
|
-
"state",
|
|
12
|
-
"fixtures",
|
|
13
|
-
]);
|
|
14
|
-
function routeParamIssue(param, route) {
|
|
15
|
-
if (!route) {
|
|
16
|
-
return `the page has no route, so it has no parameter "${param}": give it a parent and "route": ":${param}"`;
|
|
17
|
-
}
|
|
18
|
-
if (route.param === param)
|
|
19
|
-
return undefined;
|
|
20
|
-
return `the page's route has no parameter "${param}": its parameter is "${route.param}"`;
|
|
21
|
-
}
|
|
22
|
-
function paramFilterIssues(options, pointer, route) {
|
|
23
|
-
const issues = [];
|
|
24
|
-
const routeParams = Object.keys(options.routeParamFilters ?? {});
|
|
25
|
-
const queryParams = Object.keys(options.queryParamFilters ?? {});
|
|
26
|
-
const filters = options.capabilities?.filter ?? !options.capabilities;
|
|
27
|
-
if (!filters) {
|
|
28
|
-
for (const [name, params] of [
|
|
29
|
-
["routeParamFilters", routeParams],
|
|
30
|
-
["queryParamFilters", queryParams],
|
|
31
|
-
]) {
|
|
32
|
-
if (params.length === 0)
|
|
33
|
-
continue;
|
|
34
|
-
issues.push({
|
|
35
|
-
path: `${pointer}/${name}`,
|
|
36
|
-
message: `${name} needs capabilities.filter: the rows route applies the filters`,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
for (const param of routeParams) {
|
|
41
|
-
const message = routeParamIssue(param, route);
|
|
42
|
-
if (message) {
|
|
43
|
-
issues.push({ path: `${pointer}/routeParamFilters/${param}`, message });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
for (const param of queryParams) {
|
|
47
|
-
if (!VIEWER_QUERY_KEYS.has(param))
|
|
48
|
-
continue;
|
|
49
|
-
issues.push({
|
|
50
|
-
path: `${pointer}/queryParamFilters/${param}`,
|
|
51
|
-
message: `the viewer reads "?${param}=" itself, so no filter sees it: name the parameter otherwise, or filter by the open row with routeParamFilters`,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
return issues;
|
|
55
|
-
}
|
|
56
|
-
const QUERY_START = "?";
|
|
57
|
-
function fixtureQueryIssue(key, pointer) {
|
|
58
|
-
const start = key.indexOf(QUERY_START);
|
|
59
|
-
if (start === -1)
|
|
60
|
-
return undefined;
|
|
61
|
-
return {
|
|
62
|
-
path: pointer,
|
|
63
|
-
message: `a fixture key takes no query: read "fixture:${key.slice(0, start)}" and filter its rows with routeParamFilters or queryParamFilters`,
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function paramFilterOptions(config) {
|
|
67
|
-
const { routeParamFilters, queryParamFilters } = config;
|
|
68
|
-
return {
|
|
69
|
-
...(routeParamFilters && {
|
|
70
|
-
routeParamFilters: {
|
|
71
|
-
...routeParamFilters,
|
|
72
|
-
description: 'Filters the rows by a route parameter of the page, as on a real TableView: { "<param>": { field, mode? } }, mode "is" by default. On a page with "route": ":id", { "id": { "field": "orderId" } } lists the rows whose orderId is the id of the row the page shows, its sample row until a link names one. The parameter must be the page\'s route parameter.',
|
|
73
|
-
},
|
|
74
|
-
}),
|
|
75
|
-
...(queryParamFilters && {
|
|
76
|
-
queryParamFilters: {
|
|
77
|
-
...queryParamFilters,
|
|
78
|
-
description: "Filters the rows by a query parameter of the page's URL, as on a real TableView: { \"<param>\": { field, mode?, visible?, label? } }. In the viewer, the page's query is the viewer's, ?record= included, without the parameters the viewer reads itself: name, page, width, data, state and fixtures. To follow the row a page with a route shows, prefer routeParamFilters.",
|
|
79
|
-
},
|
|
80
|
-
}),
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=table-param-filters.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-param-filters.js","sourceRoot":"","sources":["../../src/mockup/table-param-filters.ts"],"names":[],"mappings":";;;;;AAWA,MAAM,iBAAiB,GAAwB,IAAI,GAAG,CAAC;IACrD,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,UAAU;CACX,CAAC,CAAC;AAQH,SAAS,eAAe,CACtB,KAAa,EACb,KAA4B;IAE5B,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,kDAAkD,KAAK,sCAAsC,KAAK,GAAG,CAAC;IAC/G,CAAC;IACD,IAAI,KAAK,CAAC,KAAK,KAAK,KAAK;QAAE,OAAO,SAAS,CAAC;IAC5C,OAAO,sCAAsC,KAAK,wBAAwB,KAAK,CAAC,KAAK,GAAG,CAAC;AAC3F,CAAC;AAQD,2BACE,OAA2B,EAC3B,OAAe,EACf,KAA4B;IAE5B,MAAM,MAAM,GAAkB,EAAE,CAAC;IACjC,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;IACjE,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;IACjE,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM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I,EAAE,OAAO;QACb,OAAO,EAAE,+CAA+C,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,mEAAmE;KAC/I,CAAC;AACJ,CAAC;AAMD,4BAAmC,MAAqC;IACtE,MAAM,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;IACxD,OAAO;QACL,GAAG,CAAC,iBAAiB,IAAI;YACvB,iBAAiB,EAAE;gBACjB,GAAG,iBAAiB;gBACpB,WAAW,EACT,+VAA+V;aAClW;SACF,CAAC;QACF,GAAG,CAAC,iBAAiB,IAAI;YACvB,iBAAiB,EAAE;gBACjB,GAAG,iBAAiB;gBACpB,WAAW,EACT,+WAA+W;aAClX;SACF,CAAC;KACH,CAAC;AACJ,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.customRowActionIssues = customRowActionIssues;
|
|
4
|
-
const type_check_1 = require("@antelopejs/interface-dms/utils/internal/type-check");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
const model_1 = require("./model");
|
|
7
|
-
const TARGET_TYPES = {
|
|
8
|
-
drawer: true,
|
|
9
|
-
modal: true,
|
|
10
|
-
sidePanel: true,
|
|
11
|
-
page: true,
|
|
12
|
-
external: true,
|
|
13
|
-
quickAction: true,
|
|
14
|
-
api: true,
|
|
15
|
-
exportJob: true,
|
|
16
|
-
download: true,
|
|
17
|
-
};
|
|
18
|
-
const TARGET_LIST = Object.keys(TARGET_TYPES).join(", ");
|
|
19
|
-
const entriesSchema = zod_1.z.array(model_1.jsonSchema);
|
|
20
|
-
function targetIssue(target, at) {
|
|
21
|
-
const written = model_1.jsonObjectSchema.safeParse(target);
|
|
22
|
-
if (!written.success) {
|
|
23
|
-
return [
|
|
24
|
-
{
|
|
25
|
-
path: `${at}/target`,
|
|
26
|
-
message: `a custom row action needs a target, an object whose type is one of ${TARGET_LIST}`,
|
|
27
|
-
},
|
|
28
|
-
];
|
|
29
|
-
}
|
|
30
|
-
const { type } = written.data;
|
|
31
|
-
if ((0, type_check_1.isString)(type) && Object.hasOwn(TARGET_TYPES, type))
|
|
32
|
-
return [];
|
|
33
|
-
return [
|
|
34
|
-
{
|
|
35
|
-
path: `${at}/target/type`,
|
|
36
|
-
message: `${JSON.stringify(type ?? null)} is not an action target type; the types are ${TARGET_LIST}`,
|
|
37
|
-
},
|
|
38
|
-
];
|
|
39
|
-
}
|
|
40
|
-
function confirmFieldIssues(confirm, at) {
|
|
41
|
-
const dialog = model_1.jsonObjectSchema.safeParse(confirm);
|
|
42
|
-
if (!dialog.success)
|
|
43
|
-
return [];
|
|
44
|
-
const fields = entriesSchema.safeParse(dialog.data.fields);
|
|
45
|
-
if (!fields.success)
|
|
46
|
-
return [];
|
|
47
|
-
return fields.data.flatMap((entry, index) => {
|
|
48
|
-
const field = model_1.jsonObjectSchema.safeParse(entry);
|
|
49
|
-
if (field.success &&
|
|
50
|
-
model_1.jsonObjectSchema.safeParse(field.data.inputComponent).success) {
|
|
51
|
-
return [];
|
|
52
|
-
}
|
|
53
|
-
return [
|
|
54
|
-
{
|
|
55
|
-
path: `${at}/confirm/fields/${index}/inputComponent`,
|
|
56
|
-
message: `confirm.fields[${index}] needs an inputComponent, { "componentName": "dms-input-text", "options": {} }: a popup field does not take its input from its type`,
|
|
57
|
-
},
|
|
58
|
-
];
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
function customRowActionIssues(rowActions, pointer) {
|
|
62
|
-
const actions = model_1.jsonObjectSchema.safeParse(rowActions);
|
|
63
|
-
if (!actions.success)
|
|
64
|
-
return [];
|
|
65
|
-
const custom = entriesSchema.safeParse(actions.data.custom);
|
|
66
|
-
if (!custom.success)
|
|
67
|
-
return [];
|
|
68
|
-
return custom.data.flatMap((entry, index) => {
|
|
69
|
-
const at = `${pointer}/rowActions/custom/${index}`;
|
|
70
|
-
const action = model_1.jsonObjectSchema.safeParse(entry);
|
|
71
|
-
if (!action.success) {
|
|
72
|
-
return [
|
|
73
|
-
{
|
|
74
|
-
path: at,
|
|
75
|
-
message: "a custom row action is an object: { label, target }",
|
|
76
|
-
},
|
|
77
|
-
];
|
|
78
|
-
}
|
|
79
|
-
return [
|
|
80
|
-
...targetIssue(action.data.target, at),
|
|
81
|
-
...confirmFieldIssues(action.data.confirm, at),
|
|
82
|
-
];
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=table-row-actions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-row-actions.js","sourceRoot":"","sources":["../../src/mockup/table-row-actions.ts"],"names":[],"mappings":";;;AACA,oFAA+E;AAC/E,6BAAwB;AAExB,mCAAuD;AAGvD,MAAM,YAAY,GAAuC;IACvD,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,IAAI;IACV,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;IACjB,GAAG,EAAE,IAAI;IACT,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEzD,MAAM,aAAa,GAAG,OAAC,CAAC,KAAK,CAAC,kBAAU,CAAC,CAAC;AAE1C,SAAS,WAAW,CAAC,MAAwB,EAAE,EAAU;IACvD,MAAM,OAAO,GAAG,wBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACnD,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QACrB,OAAO;YACL;gBACE,IAAI,EAAE,GAAG,EAAE,SAAS;gBACpB,OAAO,EAAE,sEAAsE,WAAW,EAAE;aAC7F;SACF,CAAC;IACJ,CAAC;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC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AAO;QAAE,OAAO,EAAE,CAAC;IAChC,MAAM,MAAM,GAAG,aAAa,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5D,IAAI,CAAC,MAAM,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAC/B,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAC1C,MAAM,EAAE,GAAG,GAAG,OAAO,sBAAsB,KAAK,EAAE,CAAC;QACnD,MAAM,MAAM,GAAG,wBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO;gBACL;oBACE,IAAI,EAAE,EAAE;oBACR,OAAO,EAAE,qDAAqD;iBAC/D;aACF,CAAC;QACJ,CAAC;QACD,OAAO;YACL,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC;YACtC,GAAG,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;SAC/C,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.unknownKeyWarnings = unknownKeyWarnings;
|
|
4
|
-
const model_1 = require("./model");
|
|
5
|
-
function collectDropped(written, kept, at, found) {
|
|
6
|
-
if (Array.isArray(written)) {
|
|
7
|
-
if (!Array.isArray(kept) || kept.length !== written.length)
|
|
8
|
-
return;
|
|
9
|
-
written.forEach((item, index) => {
|
|
10
|
-
collectDropped(item, kept[index], [...at, index], found);
|
|
11
|
-
});
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (!(0, model_1.isJsonObject)(written) || !(0, model_1.isJsonObject)(kept))
|
|
15
|
-
return;
|
|
16
|
-
for (const [key, value] of Object.entries(written)) {
|
|
17
|
-
if (Object.hasOwn(kept, key)) {
|
|
18
|
-
collectDropped(value, kept[key], [...at, key], found);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
found.push([...at, key]);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function keptBy(schema, written) {
|
|
26
|
-
const parsed = schema.safeParse(written);
|
|
27
|
-
if (!parsed.success)
|
|
28
|
-
return undefined;
|
|
29
|
-
const kept = model_1.jsonSchema.safeParse(JSON.parse(JSON.stringify(parsed.data ?? null)));
|
|
30
|
-
return kept.success ? kept.data : undefined;
|
|
31
|
-
}
|
|
32
|
-
function unknownKeyWarnings(blockType, written, schema, pointer, skip = new Set()) {
|
|
33
|
-
const kept = keptBy(schema, written);
|
|
34
|
-
if (kept === undefined)
|
|
35
|
-
return [];
|
|
36
|
-
const found = [];
|
|
37
|
-
collectDropped(written, kept, [], found);
|
|
38
|
-
return found
|
|
39
|
-
.filter((path) => !(path.length === 1 && skip.has(String(path[0]))))
|
|
40
|
-
.map((path) => ({
|
|
41
|
-
path: `${pointer}${(0, model_1.jsonPointer)(path)}`,
|
|
42
|
-
message: `${blockType} does not know the key "${path.join(".")}", so the mockup draws nothing from it`,
|
|
43
|
-
}));
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=unknown-keys.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unknown-keys.js","sourceRoot":"","sources":["../../src/mockup/unknown-keys.ts"],"names":[],"mappings":";;;AAEA,mCAAgE;AAIhE,SAAS,cAAc,CACrB,OAAa,EACb,IAAU,EACV,EAAsB,EACtB,KAAkB;IAElB,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM;YAAE,OAAO;QACnE,OAAO,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,EACjB,OAAe,EACf,IAAI,GAAwB,IAAI,GAAG,EAAE;IAErC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IAClC,MAAM,KAAK,GAAgB,EAAE,CAAC;IAC9B,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACzC,OAAO,KAAK;SACT,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SACnE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACd,IAAI,EAAE,GAAG,OAAO,GAAG,IAAA,mBAAW,EAAC,IAAI,CAAC,EAAE;QACtC,OAAO,EAAE,GAAG,SAAS,2BAA2B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,wCAAwC;KACvG,CAAC,CAAC,CAAC;AACR,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function emailPlainText(html: string): string;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.emailPlainText = emailPlainText;
|
|
4
|
-
const parse5_1 = require("parse5");
|
|
5
|
-
const LINE_BREAK = "\n";
|
|
6
|
-
const PARAGRAPH_BREAK = "\n\n";
|
|
7
|
-
const SPACE = " ";
|
|
8
|
-
const UNREAD_ELEMENTS = new Set([
|
|
9
|
-
"head",
|
|
10
|
-
"img",
|
|
11
|
-
"noscript",
|
|
12
|
-
"picture",
|
|
13
|
-
"script",
|
|
14
|
-
"style",
|
|
15
|
-
"svg",
|
|
16
|
-
"template",
|
|
17
|
-
"title",
|
|
18
|
-
]);
|
|
19
|
-
const BLOCK_ELEMENTS = new Set([
|
|
20
|
-
"address",
|
|
21
|
-
"article",
|
|
22
|
-
"aside",
|
|
23
|
-
"blockquote",
|
|
24
|
-
"dd",
|
|
25
|
-
"div",
|
|
26
|
-
"dl",
|
|
27
|
-
"dt",
|
|
28
|
-
"footer",
|
|
29
|
-
"h1",
|
|
30
|
-
"h2",
|
|
31
|
-
"h3",
|
|
32
|
-
"h4",
|
|
33
|
-
"h5",
|
|
34
|
-
"h6",
|
|
35
|
-
"header",
|
|
36
|
-
"hr",
|
|
37
|
-
"li",
|
|
38
|
-
"main",
|
|
39
|
-
"ol",
|
|
40
|
-
"p",
|
|
41
|
-
"pre",
|
|
42
|
-
"section",
|
|
43
|
-
"table",
|
|
44
|
-
"td",
|
|
45
|
-
"th",
|
|
46
|
-
"tr",
|
|
47
|
-
"ul",
|
|
48
|
-
]);
|
|
49
|
-
const HIDDEN_STYLE = /(?:^|;)\s*display\s*:\s*none/i;
|
|
50
|
-
const WEB_LINK = /^https?:\/\//i;
|
|
51
|
-
const WHITESPACE_RUN = /\s+/g;
|
|
52
|
-
const BLANK_LINES = /\n{3,}/g;
|
|
53
|
-
function attributeOf(element, name) {
|
|
54
|
-
return element.attrs.find((entry) => entry.name === name)?.value ?? "";
|
|
55
|
-
}
|
|
56
|
-
function isRead(element) {
|
|
57
|
-
return (!UNREAD_ELEMENTS.has(element.tagName) &&
|
|
58
|
-
!HIDDEN_STYLE.test(attributeOf(element, "style")));
|
|
59
|
-
}
|
|
60
|
-
function linkAddress(element, label) {
|
|
61
|
-
const address = attributeOf(element, "href").trim();
|
|
62
|
-
if (element.tagName !== "a" || !WEB_LINK.test(address))
|
|
63
|
-
return "";
|
|
64
|
-
const shown = label.trim();
|
|
65
|
-
if (shown === address)
|
|
66
|
-
return "";
|
|
67
|
-
return shown === "" ? address : `: ${address}`;
|
|
68
|
-
}
|
|
69
|
-
function asBlock(element, text) {
|
|
70
|
-
return BLOCK_ELEMENTS.has(element.tagName)
|
|
71
|
-
? `${PARAGRAPH_BREAK}${text}${PARAGRAPH_BREAK}`
|
|
72
|
-
: text;
|
|
73
|
-
}
|
|
74
|
-
function readNode(node) {
|
|
75
|
-
if (parse5_1.defaultTreeAdapter.isTextNode(node)) {
|
|
76
|
-
return node.value.replaceAll(WHITESPACE_RUN, SPACE);
|
|
77
|
-
}
|
|
78
|
-
if (!parse5_1.defaultTreeAdapter.isElementNode(node) || !isRead(node))
|
|
79
|
-
return "";
|
|
80
|
-
if (node.tagName === "br")
|
|
81
|
-
return LINE_BREAK;
|
|
82
|
-
const inner = node.childNodes.map((child) => readNode(child)).join("");
|
|
83
|
-
return asBlock(node, `${inner}${linkAddress(node, inner)}`);
|
|
84
|
-
}
|
|
85
|
-
function emailPlainText(html) {
|
|
86
|
-
return (0, parse5_1.parse)(html)
|
|
87
|
-
.childNodes.map((node) => readNode(node))
|
|
88
|
-
.join("")
|
|
89
|
-
.split(LINE_BREAK)
|
|
90
|
-
.map((line) => line.trim())
|
|
91
|
-
.join(LINE_BREAK)
|
|
92
|
-
.replaceAll(BLANK_LINES, PARAGRAPH_BREAK)
|
|
93
|
-
.trim();
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=email-plain-text.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"email-plain-text.js","sourceRoot":"","sources":["../../src/utils/email-plain-text.ts"],"names":[],"mappings":";;;AAAA,mCAIgB;AAKhB,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,eAAe,GAAG,MAAM,CAAC;AAC/B,MAAM,KAAK,GAAG,GAAG,CAAC;AAGlB,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;IAC9B,MAAM;IACN,KAAK;IACL,UAAU;IACV,SAAS;IACT,QAAQ;IACR,OAAO;IACP,KAAK;IACL,UAAU;IACV,OAAO;CACR,CAAC,CAAC;AAGH,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;IAC7B,SAAS;IACT,SAAS;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EAAE,CAAC;SAC1B,IAAI,CAAC,UAAU,CAAC;SAChB,UAAU,CAAC,WAAW,EAAE,eAAe,CAAC;SACxC,IAAI,EAAE,CAAC;AACZ,CAAC"}
|
package/dist/utils/html-email.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sendHtmlEmail = sendHtmlEmail;
|
|
4
|
-
const interface_email_1 = require("@antelopejs/interface-email");
|
|
5
|
-
const email_plain_text_1 = require("./email-plain-text");
|
|
6
|
-
function sendHtmlEmail(email) {
|
|
7
|
-
return (0, interface_email_1.Send)({ ...email, text: (0, email_plain_text_1.emailPlainText)(email.html) });
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=html-email.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html-email.js","sourceRoot":"","sources":["../../src/utils/html-email.ts"],"names":[],"mappings":";;;AAAA,iEAAmD;AACnD,yDAAoD;AAapD,uBAA8B,KAAgB;IAC5C,OAAO,IAAA,sBAAI,EAAC,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,IAAA,iCAAc,EAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.startsWith = startsWith;
|
|
4
|
-
exports.isPng = isPng;
|
|
5
|
-
exports.isWebp = isWebp;
|
|
6
|
-
const PNG_SIGNATURE = Buffer.from([
|
|
7
|
-
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a,
|
|
8
|
-
]);
|
|
9
|
-
const RIFF_SIGNATURE = Buffer.from("RIFF");
|
|
10
|
-
const WEBP_SIGNATURE = Buffer.from("WEBP");
|
|
11
|
-
const WEBP_SIGNATURE_OFFSET = 8;
|
|
12
|
-
function startsWith(bytes, signature, offset = 0) {
|
|
13
|
-
return bytes.subarray(offset, offset + signature.length).equals(signature);
|
|
14
|
-
}
|
|
15
|
-
function isPng(bytes) {
|
|
16
|
-
return startsWith(bytes, PNG_SIGNATURE);
|
|
17
|
-
}
|
|
18
|
-
function isWebp(bytes) {
|
|
19
|
-
return (startsWith(bytes, RIFF_SIGNATURE) &&
|
|
20
|
-
startsWith(bytes, WEBP_SIGNATURE, WEBP_SIGNATURE_OFFSET));
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=image-signatures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image-signatures.js","sourceRoot":"","sources":["../../src/utils/image-signatures.ts"],"names":[],"mappings":";;;;;AAAA,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC;IAChC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;CAC/C,CAAC,CAAC;AACH,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC3C,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC3C,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAGhC,oBACE,KAAa,EACb,SAAiB,EACjB,MAAM,GAAG,CAAC;IAEV,OAAO,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AAC7E,CAAC;AAGD,eAAsB,KAAa;IACjC,OAAO,UAAU,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;AAC1C,CAAC;AAGD,gBAAuB,KAAa;IAClC,OAAO,CACL,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC;QACjC,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,qBAAqB,CAAC,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.startKeepalive = void 0;
|
|
4
|
-
const SSE_KEEPALIVE_INTERVAL_MS = 20_000;
|
|
5
|
-
const KEEPALIVE_FRAME = ": keepalive\n\n";
|
|
6
|
-
const startKeepalive = (writer) => setInterval(() => writer.write(KEEPALIVE_FRAME), SSE_KEEPALIVE_INTERVAL_MS);
|
|
7
|
-
exports.startKeepalive = startKeepalive;
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/sse-keepalive/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,yBAAyB,GAAG,MAAM,CAAC;AACzC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAOnC,MAAM,cAAc,GAAG,CAAC,MAE9B,EAAkB,EAAE,CACnB,WAAW,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,yBAAyB,CAAC,CAAC;AAHjE,QAAA,cAAc,GAAd,cAAc,CAGmD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.allowedKeysError = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const allowedKeysError = (issue) => {
|
|
6
|
-
if (issue.code !== "unrecognized_keys")
|
|
7
|
-
return undefined;
|
|
8
|
-
if (!(issue.inst instanceof zod_1.z.core.$ZodObject))
|
|
9
|
-
return undefined;
|
|
10
|
-
const written = issue.keys.map((key) => `"${key}"`).join(", ");
|
|
11
|
-
const allowed = Object.keys(issue.inst._zod.def.shape).join(", ");
|
|
12
|
-
const noun = issue.keys.length === 1 ? "key" : "keys";
|
|
13
|
-
return `Unrecognized ${noun}: ${written}; the keys are ${allowed}`;
|
|
14
|
-
};
|
|
15
|
-
exports.allowedKeysError = allowedKeysError;
|
|
16
|
-
//# sourceMappingURL=allowed-keys.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allowed-keys.js","sourceRoot":"","sources":["../../src/validation/allowed-keys.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAOjB,MAAM,gBAAgB,GAAwB,CAAC,KAAK,EAAE,EAAE;IAC7D,IAAI,KAAK,CAAC,IAAI,KAAK,mBAAmB;QAAE,OAAO,SAAS,CAAC;IACzD,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,YAAY,OAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QAAE,OAAO,SAAS,CAAC;IACjE,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/D,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClE,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;IACtD,OAAO,gBAAgB,IAAI,KAAK,OAAO,kBAAkB,OAAO,EAAE,CAAC;AACrE,CAAC,CAAC;AAPW,QAAA,gBAAgB,GAAhB,gBAAgB,CAO3B"}
|