@antelopejs/dms 0.25.8-next.1174.ge77e0bd → 0.25.8
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 +48 -0
- package/README.md +2 -2
- package/data/mockup-example/spec.json +0 -11
- package/data/mockup-spec.schema.json +16 -399
- package/dist/e2e/index.d.mts +1 -2
- package/dist/implementations/dms-builder/engine/table-view-settings.js +33 -9
- package/dist/implementations/dms-builder/engine/table-view-settings.js.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.d.ts +0 -2
- package/dist/mcp/index.js +0 -9
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/page-verify/index.d.ts +0 -15
- package/dist/mcp/page-verify/index.js +6 -16
- package/dist/mcp/page-verify/index.js.map +1 -1
- package/dist/mcp/page-verify/mockup.d.ts +1 -3
- package/dist/mcp/page-verify/mockup.js +1 -5
- package/dist/mcp/page-verify/mockup.js.map +1 -1
- package/dist/mcp/page-verify/page-probe.d.ts +0 -5
- package/dist/mcp/page-verify/page-probe.js +0 -2
- package/dist/mcp/page-verify/page-probe.js.map +1 -1
- package/dist/mcp/page-verify/playwright.d.ts +4 -22
- package/dist/mcp/page-verify/playwright.js.map +1 -1
- package/dist/mcp/page-verify/report.d.ts +0 -1
- package/dist/mcp/tools/mockup-read-spec.js +3 -2
- package/dist/mcp/tools/mockup-read-spec.js.map +1 -1
- package/dist/mcp/tools/mockup.js +0 -4
- package/dist/mcp/tools/mockup.js.map +1 -1
- package/dist/mcp/tools/page-verify.d.ts +0 -1
- package/dist/mcp/tools/page-verify.js +2 -6
- package/dist/mcp/tools/page-verify.js.map +1 -1
- package/dist/mockup/annotations.js +2 -2
- package/dist/mockup/annotations.js.map +1 -1
- package/dist/mockup/apply-notes.js +1 -1
- package/dist/mockup/apply-notes.js.map +1 -1
- package/dist/mockup/compile.d.ts +10 -6
- package/dist/mockup/compile.js +290 -31
- package/dist/mockup/compile.js.map +1 -1
- package/dist/mockup/files.d.ts +1 -2
- package/dist/mockup/files.js +1 -2
- package/dist/mockup/files.js.map +1 -1
- package/dist/mockup/fixture-answers.d.ts +0 -1
- package/dist/mockup/fixture-answers.js +1 -1
- package/dist/mockup/fixture-answers.js.map +1 -1
- package/dist/mockup/fixtures.d.ts +27 -0
- package/dist/mockup/fixtures.js +111 -0
- package/dist/mockup/fixtures.js.map +1 -1
- package/dist/mockup/from-page.js +9 -2
- package/dist/mockup/from-page.js.map +1 -1
- package/dist/mockup/generate.js +1 -4
- package/dist/mockup/generate.js.map +1 -1
- package/dist/mockup/history-routes.d.ts +4 -2
- package/dist/mockup/history-routes.js +36 -27
- package/dist/mockup/history-routes.js.map +1 -1
- package/dist/mockup/history.js +1 -2
- package/dist/mockup/history.js.map +1 -1
- package/dist/mockup/index.d.ts +0 -10
- package/dist/mockup/index.js +0 -10
- package/dist/mockup/index.js.map +1 -1
- package/dist/mockup/json-schema-layout.d.ts +0 -1
- package/dist/mockup/json-schema-layout.js +2 -95
- package/dist/mockup/json-schema-layout.js.map +1 -1
- package/dist/mockup/json-schema.js +19 -40
- package/dist/mockup/json-schema.js.map +1 -1
- package/dist/mockup/manage-routes.d.ts +1 -3
- package/dist/mockup/manage-routes.js +1 -38
- package/dist/mockup/manage-routes.js.map +1 -1
- package/dist/mockup/manage.js +1 -1
- package/dist/mockup/manage.js.map +1 -1
- package/dist/mockup/model.d.ts +100 -137
- package/dist/mockup/model.js +86 -102
- package/dist/mockup/model.js.map +1 -1
- package/dist/mockup/modules.d.ts +9 -6
- package/dist/mockup/modules.js +24 -105
- package/dist/mockup/modules.js.map +1 -1
- package/dist/mockup/presence-board.js +1 -1
- package/dist/mockup/presence-board.js.map +1 -1
- package/dist/mockup/presence-routes.js +2 -2
- package/dist/mockup/presence-routes.js.map +1 -1
- package/dist/mockup/refusals.d.ts +0 -5
- package/dist/mockup/refusals.js +0 -16
- package/dist/mockup/refusals.js.map +1 -1
- package/dist/mockup/routes.d.ts +5 -3
- package/dist/mockup/routes.js +162 -19
- package/dist/mockup/routes.js.map +1 -1
- package/dist/mockup/row-filters.d.ts +8 -0
- package/dist/mockup/row-filters.js +107 -0
- package/dist/mockup/row-filters.js.map +1 -0
- package/dist/mockup/sketch-limits.d.ts +0 -1
- package/dist/mockup/sketch-limits.js +1 -2
- package/dist/mockup/sketch-limits.js.map +1 -1
- package/dist/mockup/sketch.d.ts +2 -2
- package/dist/mockup/sketch.js +1 -2
- package/dist/mockup/sketch.js.map +1 -1
- package/dist/mockup/source-routes.d.ts +4 -5
- package/dist/mockup/source-routes.js +17 -26
- package/dist/mockup/source-routes.js.map +1 -1
- package/dist/mockup/source.js +1 -2
- package/dist/mockup/source.js.map +1 -1
- package/dist/mockup/store.d.ts +37 -16
- package/dist/mockup/store.js +200 -85
- package/dist/mockup/store.js.map +1 -1
- package/dist/mockup/table-archive.d.ts +1 -0
- package/dist/mockup/table-archive.js +16 -0
- package/dist/mockup/table-archive.js.map +1 -1
- package/e2e/index.mjs +2 -3
- package/frontend-vue/eslint-globals.generated.mjs +38 -40
- package/frontend-vue/layers/dms-core/app/build/utils/asyncDataScope.ts +31 -3
- package/frontend-vue/layers/dms-core/app/composables/auth/useAuthFetch.ts +2 -8
- package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +0 -3
- package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +0 -3
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +30 -110
- package/frontend-vue/layers/dms-layout/app/build/components/layout/MockupSidebarMenu.vue +6 -21
- package/frontend-vue/layers/dms-layout/app/build/components/layout/SidebarUserMenu.vue +7 -19
- package/frontend-vue/layers/dms-layout/app/build/components/layout/mockupMenu.ts +9 -79
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsNav.vue +4 -17
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsShell.vue +0 -12
- package/frontend-vue/layers/dms-layout/app/build/composables/settings/useSettingsNavigation.ts +0 -39
- package/frontend-vue/layers/dms-layout/app/build/mockups/created-mockups.ts +2 -12
- package/frontend-vue/layers/dms-layout/app/build/mockups/created-toast.ts +1 -9
- package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +6 -53
- package/frontend-vue/layers/dms-layout/app/theme/actions.ts +7 -11
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/BlockPreviewSketch.vue +5 -31
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupCanvasChrome.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModules.vue +47 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverview.vue +33 -59
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSlot.vue +12 -58
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/{MockupZoomControls.vue → MockupOverviewZoom.vue} +15 -23
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPagesList.vue +0 -21
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinCard.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinLayer.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +9 -77
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +45 -130
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCapture.ts +3 -70
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewNavigation.ts +4 -44
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockInspector.ts +2 -14
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +36 -256
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupEditing.ts +1 -13
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupFrameSize.ts +5 -10
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupOverview.ts +23 -50
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageFrame.ts +29 -82
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPins.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRealData.ts +3 -10
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRoutePage.ts +14 -60
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSession.ts +3 -8
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSpec.ts +2 -6
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupToolModes.ts +7 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerPages.ts +8 -29
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerShortcuts.ts +2 -13
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useOverviewCaptures.ts +10 -39
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +0 -29
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +3 -37
- package/frontend-vue/layers/dms-ui/app/build/mockups/manage.ts +1 -20
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewChannel.ts +8 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +103 -167
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewRects.ts +0 -22
- package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +173 -75
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupCaptures.ts +9 -118
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupFrame.ts +8 -123
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupLinks.ts +2 -6
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverview.ts +3 -21
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupPageTree.ts +0 -15
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupPins.ts +8 -6
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupRealData.ts +5 -18
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupShortcuts.ts +6 -17
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupStream.ts +2 -17
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupVersions.ts +7 -2
- package/frontend-vue/layers/dms-ui/app/build/utils/previewFixturesOnly.ts +0 -8
- package/frontend-vue/layers/dms-ui/app/build/utils/previewPageLayout.ts +6 -108
- package/frontend-vue/layers/dms-ui/app/build/utils/previewPageQuery.ts +1 -5
- package/frontend-vue/layers/dms-ui/app/build/utils/sketch.ts +10 -40
- package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +6 -23
- package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +0 -2
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +4 -53
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +4 -53
- package/frontend-vue/package.json +2 -2
- package/package.json +5 -6
- package/E2E.md +0 -138
- package/dist/mcp/mockup-export/capture.d.ts +0 -19
- package/dist/mcp/mockup-export/capture.js +0 -99
- package/dist/mcp/mockup-export/capture.js.map +0 -1
- package/dist/mcp/mockup-export/document.d.ts +0 -4
- package/dist/mcp/mockup-export/document.js +0 -199
- package/dist/mcp/mockup-export/document.js.map +0 -1
- package/dist/mcp/mockup-export/index.d.ts +0 -20
- package/dist/mcp/mockup-export/index.js +0 -110
- package/dist/mcp/mockup-export/index.js.map +0 -1
- package/dist/mcp/mockup-export/jobs.d.ts +0 -32
- package/dist/mcp/mockup-export/jobs.js +0 -49
- package/dist/mcp/mockup-export/jobs.js.map +0 -1
- package/dist/mcp/mockup-export/plan.d.ts +0 -78
- package/dist/mcp/mockup-export/plan.js +0 -292
- package/dist/mcp/mockup-export/plan.js.map +0 -1
- package/dist/mcp/mockup-export/route.d.ts +0 -23
- package/dist/mcp/mockup-export/route.js +0 -91
- package/dist/mcp/mockup-export/route.js.map +0 -1
- package/dist/mcp/page-verify/modules.d.ts +0 -8
- package/dist/mcp/page-verify/modules.js +0 -49
- package/dist/mcp/page-verify/modules.js.map +0 -1
- package/dist/mcp/tools/mockup-export-pdf.d.ts +0 -1
- package/dist/mcp/tools/mockup-export-pdf.js +0 -69
- package/dist/mcp/tools/mockup-export-pdf.js.map +0 -1
- package/dist/mcp/tools/mockup-module-catalog.d.ts +0 -1
- package/dist/mcp/tools/mockup-module-catalog.js +0 -36
- package/dist/mcp/tools/mockup-module-catalog.js.map +0 -1
- package/dist/mockup/compile-layouts.d.ts +0 -5
- package/dist/mockup/compile-layouts.js +0 -74
- package/dist/mockup/compile-layouts.js.map +0 -1
- package/dist/mockup/compile-nodes.d.ts +0 -11
- package/dist/mockup/compile-nodes.js +0 -119
- package/dist/mockup/compile-nodes.js.map +0 -1
- package/dist/mockup/compile-pages.d.ts +0 -18
- package/dist/mockup/compile-pages.js +0 -189
- package/dist/mockup/compile-pages.js.map +0 -1
- package/dist/mockup/create.d.ts +0 -16
- package/dist/mockup/create.js +0 -78
- package/dist/mockup/create.js.map +0 -1
- package/dist/mockup/created-watch.d.ts +0 -18
- package/dist/mockup/created-watch.js +0 -110
- package/dist/mockup/created-watch.js.map +0 -1
- package/dist/mockup/entities.d.ts +0 -20
- package/dist/mockup/entities.js +0 -213
- package/dist/mockup/entities.js.map +0 -1
- package/dist/mockup/etag.d.ts +0 -1
- package/dist/mockup/etag.js +0 -10
- package/dist/mockup/etag.js.map +0 -1
- package/dist/mockup/extensions.d.ts +0 -18
- package/dist/mockup/extensions.js +0 -61
- package/dist/mockup/extensions.js.map +0 -1
- package/dist/mockup/fixture-batch.d.ts +0 -21
- package/dist/mockup/fixture-batch.js +0 -111
- package/dist/mockup/fixture-batch.js.map +0 -1
- package/dist/mockup/fixture-routes.d.ts +0 -21
- package/dist/mockup/fixture-routes.js +0 -136
- package/dist/mockup/fixture-routes.js.map +0 -1
- package/dist/mockup/json-schema-entities.d.ts +0 -5
- package/dist/mockup/json-schema-entities.js +0 -141
- package/dist/mockup/json-schema-entities.js.map +0 -1
- package/dist/mockup/json.d.ts +0 -8
- package/dist/mockup/json.js +0 -20
- package/dist/mockup/json.js.map +0 -1
- package/dist/mockup/layout-model.d.ts +0 -156
- package/dist/mockup/layout-model.js +0 -96
- package/dist/mockup/layout-model.js.map +0 -1
- package/dist/mockup/layouts.d.ts +0 -9
- package/dist/mockup/layouts.js +0 -40
- package/dist/mockup/layouts.js.map +0 -1
- package/dist/mockup/module-manifests.d.ts +0 -99
- package/dist/mockup/module-manifests.js +0 -95
- package/dist/mockup/module-manifests.js.map +0 -1
- package/dist/mockup/module-states.d.ts +0 -10
- package/dist/mockup/module-states.js +0 -85
- package/dist/mockup/module-states.js.map +0 -1
- package/dist/mockup/modules-schema.d.ts +0 -2
- package/dist/mockup/modules-schema.js +0 -39
- package/dist/mockup/modules-schema.js.map +0 -1
- package/dist/mockup/page-capture-routes.d.ts +0 -19
- package/dist/mockup/page-capture-routes.js +0 -92
- package/dist/mockup/page-capture-routes.js.map +0 -1
- package/dist/mockup/page-captures.d.ts +0 -61
- package/dist/mockup/page-captures.js +0 -252
- package/dist/mockup/page-captures.js.map +0 -1
- package/dist/mockup/parse-spec.d.ts +0 -10
- package/dist/mockup/parse-spec.js +0 -62
- package/dist/mockup/parse-spec.js.map +0 -1
- package/dist/mockup/places.d.ts +0 -17
- package/dist/mockup/places.js +0 -75
- package/dist/mockup/places.js.map +0 -1
- package/dist/mockup/slug.d.ts +0 -3
- package/dist/mockup/slug.js +0 -7
- package/dist/mockup/slug.js.map +0 -1
- package/dist/mockup/state-patch.d.ts +0 -22
- package/dist/mockup/state-patch.js +0 -75
- package/dist/mockup/state-patch.js.map +0 -1
- package/dist/mockup/state.d.ts +0 -112
- package/dist/mockup/state.js +0 -22
- package/dist/mockup/state.js.map +0 -1
- package/dist/mockup/store-list.d.ts +0 -28
- package/dist/mockup/store-list.js +0 -89
- package/dist/mockup/store-list.js.map +0 -1
- package/dist/mockup/tenancy.d.ts +0 -19
- package/dist/mockup/tenancy.js +0 -73
- package/dist/mockup/tenancy.js.map +0 -1
- package/dist/mockup/tenant-rows.d.ts +0 -4
- package/dist/mockup/tenant-rows.js +0 -19
- package/dist/mockup/tenant-rows.js.map +0 -1
- package/frontend-vue/layers/dms-core/app/utils/localFetchAnswers.ts +0 -124
- package/frontend-vue/layers/dms-core/app/utils/textDigest.ts +0 -29
- package/frontend-vue/layers/dms-layout/app/build/components/layout/mockupWidgets.ts +0 -65
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabase.vue +0 -153
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEmptyState.vue +0 -23
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModuleStore.vue +0 -164
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSectionLabel.vue +0 -51
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupReconnecting.vue +0 -17
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTenantBanner.vue +0 -48
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkspaceSwitcher.vue +0 -142
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useFixtureBatches.ts +0 -154
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupActivation.ts +0 -157
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupDatabase.ts +0 -165
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupFrameRender.ts +0 -126
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageZoom.ts +0 -138
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPdfExport.ts +0 -124
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupTenancy.ts +0 -37
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerActivation.ts +0 -56
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerExport.ts +0 -46
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePersistedCaptures.ts +0 -151
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCreateModal.vue +0 -130
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewNavigation.ts +0 -332
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupActivation.ts +0 -100
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupAnnotations.ts +0 -146
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupEntities.ts +0 -80
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupModuleNavigation.ts +0 -171
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupModules.ts +0 -138
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverviewSections.ts +0 -66
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSchema.ts +0 -177
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupStatePatch.ts +0 -179
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenancy.ts +0 -143
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenants.ts +0 -23
- package/frontend-vue/layers/dms-ui/app/build/utils/previewFixtureAnswers.ts +0 -156
- package/frontend-vue/layers/dms-ui/app/build/utils/previewRows.ts +0 -400
- package/frontend-vue/layers/dms-ui/app/build/utils/recordGuards.ts +0 -15
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupModuleStore.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupTenantBanner.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupWorkspaceSwitcher.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useFixtureBatches.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupActivation.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupOverview.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupPdfExport.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupRoutePage.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupSession.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupTenancy.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/usePersistedCaptures.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/json.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupActivation.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupAnnotations.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupModuleNavigation.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupOverviewSections.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSchema.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupStatePatch.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenancy.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenants.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/previewFixtureAnswers.ts +0 -1
- package/frontend-vue/layers/dms-ui/app/entries/utils/previewRows.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.25.8
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/AntelopeJS/dms/compare/v0.25.7...v0.25.8)
|
|
6
|
+
|
|
7
|
+
### 🚀 Enhancements
|
|
8
|
+
|
|
9
|
+
- **mockup:** Drop the 50-page cap of a mockup spec ([#1359](https://github.com/AntelopeJS/dms/pull/1359))
|
|
10
|
+
- **e2e:** Let a suite choose its workers with DMS_E2E_WORKERS ([#1366](https://github.com/AntelopeJS/dms/pull/1366))
|
|
11
|
+
|
|
12
|
+
### 🔥 Performance
|
|
13
|
+
|
|
14
|
+
- **e2e:** Boot the first journey's standby backend while the run starts ([#1367](https://github.com/AntelopeJS/dms/pull/1367))
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **deps:** Land the non-major dependency updates of #1353 ([#1360](https://github.com/AntelopeJS/dms/pull/1360))
|
|
19
|
+
- **frontend-vue:** Wrap the empty state of a horizontally scrolled table ([#1361](https://github.com/AntelopeJS/dms/pull/1361))
|
|
20
|
+
- **builder:** Keep the grouped and kanban options ConfigureTableView does not set ([#1364](https://github.com/AntelopeJS/dms/pull/1364))
|
|
21
|
+
- **mockup:** Carry a table's routeParamFilters between a mockup and its live page ([#1365](https://github.com/AntelopeJS/dms/pull/1365))
|
|
22
|
+
- **e2e:** Retry a failed journey once on every event ([#1387](https://github.com/AntelopeJS/dms/pull/1387))
|
|
23
|
+
- **builder:** Refuse ConfigureTableView over a display option written in code ([#1386](https://github.com/AntelopeJS/dms/pull/1386))
|
|
24
|
+
- **playground:** Typecheck the playground Vue frontend in CI ([#1389](https://github.com/AntelopeJS/dms/pull/1389))
|
|
25
|
+
|
|
26
|
+
### 📖 Documentation
|
|
27
|
+
|
|
28
|
+
- **mockup:** Name fr and en as the page locales of a mockup ([#1362](https://github.com/AntelopeJS/dms/pull/1362))
|
|
29
|
+
- **e2e:** Document the e2e kit on the docs site and delete E2E.md ([#1391](https://github.com/AntelopeJS/dms/pull/1391))
|
|
30
|
+
|
|
31
|
+
### 📦 Build
|
|
32
|
+
|
|
33
|
+
- **deps:** Update the AntelopeJS module locks ([#1385](https://github.com/AntelopeJS/dms/pull/1385))
|
|
34
|
+
|
|
35
|
+
### 🏡 Chore
|
|
36
|
+
|
|
37
|
+
- **deps:** Update dependency chai to v6 ([#1375](https://github.com/AntelopeJS/dms/pull/1375))
|
|
38
|
+
- **deps:** Update dependency globals to v17 ([#1376](https://github.com/AntelopeJS/dms/pull/1376))
|
|
39
|
+
- **deps:** Update dependency release-it to v21 ([#1381](https://github.com/AntelopeJS/dms/pull/1381))
|
|
40
|
+
- **deps:** Update dependency rethinkdb-ts to v3 ([#1382](https://github.com/AntelopeJS/dms/pull/1382))
|
|
41
|
+
|
|
42
|
+
### ✅ Tests
|
|
43
|
+
|
|
44
|
+
- **mockup:** Wait for the state frame of the events stream ([#1363](https://github.com/AntelopeJS/dms/pull/1363))
|
|
45
|
+
|
|
46
|
+
### ❤️ Contributors
|
|
47
|
+
|
|
48
|
+
- Maxime Westhoven
|
|
49
|
+
- Antony Rizzitelli
|
|
50
|
+
|
|
3
51
|
## v0.25.7
|
|
4
52
|
|
|
5
53
|
[compare changes](https://github.com/AntelopeJS/dms/compare/v0.25.6...v0.25.7)
|
package/README.md
CHANGED
|
@@ -87,9 +87,9 @@ export class SalesPage extends PageController("sales", {
|
|
|
87
87
|
| `@antelopejs/interface-database` | `>=0.4.5 <0.5.0` | `0.4.5` |
|
|
88
88
|
| `@antelopejs/interface-database-catalog` | `>=0.1.1 <0.2.0` | `0.1.1` |
|
|
89
89
|
| `@antelopejs/interface-database-decorators` | `>=0.5.4 <0.6.0` | `0.5.4` |
|
|
90
|
-
| `@antelopejs/interface-dms` | `^0.17.
|
|
90
|
+
| `@antelopejs/interface-dms` | `^0.17.5` | `0.17.5` |
|
|
91
91
|
| `@antelopejs/interface-dms-automation` | `>=0.7.0 <0.8.0` | `0.7.2` |
|
|
92
|
-
| `@antelopejs/interface-dms-builder` | `^0.6.
|
|
92
|
+
| `@antelopejs/interface-dms-builder` | `^0.6.5` | `0.6.5` |
|
|
93
93
|
| `@antelopejs/interface-email` | `>=0.2.2 <0.3.0` | `0.2.2` |
|
|
94
94
|
| `@antelopejs/interface-file-storage` | `>=0.1.10 <0.2.0` | `0.1.10` |
|
|
95
95
|
| `@antelopejs/interface-redis` | `>=0.0.9 <0.1.0` | `0.0.11` |
|
|
@@ -40,17 +40,6 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"tree": [
|
|
43
|
-
{
|
|
44
|
-
"id": "toolbar",
|
|
45
|
-
"type": "PageToolbar",
|
|
46
|
-
"children": [
|
|
47
|
-
{
|
|
48
|
-
"id": "period",
|
|
49
|
-
"type": "PeriodSelector",
|
|
50
|
-
"options": { "defaultPreset": "last-7-days" }
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
43
|
{
|
|
55
44
|
"type": "Grid",
|
|
56
45
|
"options": { "gap": "1rem", "minColumnWidth": "220px" },
|
|
@@ -87,137 +87,6 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
"entities": {
|
|
91
|
-
"type": "object",
|
|
92
|
-
"propertyNames": {
|
|
93
|
-
"pattern": "^[A-Za-z0-9_-]{1,64}$"
|
|
94
|
-
},
|
|
95
|
-
"description": "The app's data model: its tables, by name. The viewer draws them as a diagram of their relations and a browser of their rows. A page fixture { \"entity\": \"<name>\", \"rows\": [...] } holds the rows of one, checked against its fields. Declare an entity before a fixture points at it.",
|
|
96
|
-
"additionalProperties": {
|
|
97
|
-
"type": "object",
|
|
98
|
-
"required": [
|
|
99
|
-
"fields"
|
|
100
|
-
],
|
|
101
|
-
"additionalProperties": false,
|
|
102
|
-
"properties": {
|
|
103
|
-
"tenantScoped": {
|
|
104
|
-
"type": "boolean",
|
|
105
|
-
"description": "true when each tenant has its own rows of this entity, as with a tenant-scoped DMS model. The entity then has a \"tenantId\" string field right after \"id\", declared or implied, and SaaS mode shows a tenant only the rows whose \"tenantId\" is its id."
|
|
106
|
-
},
|
|
107
|
-
"fields": {
|
|
108
|
-
"type": "object",
|
|
109
|
-
"propertyNames": {
|
|
110
|
-
"pattern": "^[A-Za-z0-9_-]{1,64}$"
|
|
111
|
-
},
|
|
112
|
-
"description": "The columns of the entity, by name. \"id\" is the key of every row: leave it out and it is a string field; declare it to give it another type. The viewer draws \"id\" first, then the other fields in this order.",
|
|
113
|
-
"additionalProperties": {
|
|
114
|
-
"oneOf": [
|
|
115
|
-
{
|
|
116
|
-
"type": "object",
|
|
117
|
-
"required": [
|
|
118
|
-
"type"
|
|
119
|
-
],
|
|
120
|
-
"additionalProperties": false,
|
|
121
|
-
"description": "A plain field. Types: string; number; price (an amount); boolean; date (a string \"Date.parse\" reads, such as 2026-11-13); email; url (an absolute URL).",
|
|
122
|
-
"properties": {
|
|
123
|
-
"type": {
|
|
124
|
-
"enum": [
|
|
125
|
-
"string",
|
|
126
|
-
"number",
|
|
127
|
-
"price",
|
|
128
|
-
"boolean",
|
|
129
|
-
"date",
|
|
130
|
-
"email",
|
|
131
|
-
"url"
|
|
132
|
-
]
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"type": "object",
|
|
138
|
-
"required": [
|
|
139
|
-
"type",
|
|
140
|
-
"values"
|
|
141
|
-
],
|
|
142
|
-
"additionalProperties": false,
|
|
143
|
-
"description": "A field that takes one of a fixed list of values.",
|
|
144
|
-
"properties": {
|
|
145
|
-
"type": {
|
|
146
|
-
"const": "enum"
|
|
147
|
-
},
|
|
148
|
-
"values": {
|
|
149
|
-
"type": "array",
|
|
150
|
-
"minItems": 1,
|
|
151
|
-
"items": {
|
|
152
|
-
"type": "string",
|
|
153
|
-
"minLength": 1
|
|
154
|
-
},
|
|
155
|
-
"description": "The values it takes, at least one."
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"type": "object",
|
|
161
|
-
"required": [
|
|
162
|
-
"type",
|
|
163
|
-
"to"
|
|
164
|
-
],
|
|
165
|
-
"additionalProperties": false,
|
|
166
|
-
"description": "A field that holds the id of a row of another entity, drawn as a relation in the diagram.",
|
|
167
|
-
"properties": {
|
|
168
|
-
"type": {
|
|
169
|
-
"const": "ref"
|
|
170
|
-
},
|
|
171
|
-
"to": {
|
|
172
|
-
"type": "string",
|
|
173
|
-
"pattern": "^[A-Za-z0-9_-]{1,64}$",
|
|
174
|
-
"description": "The entity it points to. It must be one of the spec's entities."
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
"fixtures": {
|
|
185
|
-
"type": "object",
|
|
186
|
-
"required": [
|
|
187
|
-
"tenants"
|
|
188
|
-
],
|
|
189
|
-
"additionalProperties": false,
|
|
190
|
-
"description": "Data the mockup itself draws, beside the data of its pages.",
|
|
191
|
-
"properties": {
|
|
192
|
-
"tenants": {
|
|
193
|
-
"type": "array",
|
|
194
|
-
"description": "The workspaces the viewer's SaaS mode lists in its switcher. A mockup that lists the \"saas\" module can be viewed as one of them: rows of a tenant-scoped entity whose \"tenantId\" is another tenant's are hidden.",
|
|
195
|
-
"items": {
|
|
196
|
-
"type": "object",
|
|
197
|
-
"required": [
|
|
198
|
-
"id",
|
|
199
|
-
"name"
|
|
200
|
-
],
|
|
201
|
-
"additionalProperties": false,
|
|
202
|
-
"properties": {
|
|
203
|
-
"id": {
|
|
204
|
-
"type": "string",
|
|
205
|
-
"minLength": 1,
|
|
206
|
-
"description": "The tenant's id, which \"tenantId\" holds in its rows. Unique."
|
|
207
|
-
},
|
|
208
|
-
"name": {
|
|
209
|
-
"type": "string",
|
|
210
|
-
"description": "The name the switcher shows."
|
|
211
|
-
},
|
|
212
|
-
"plan": {
|
|
213
|
-
"type": "string",
|
|
214
|
-
"description": "The plan, shown under the name in the switcher."
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
90
|
"categories": {
|
|
222
91
|
"type": "array",
|
|
223
92
|
"description": "The sections of the sidebar, in the menu's order, as categories of the dashboard's menu (RootCategory). A page names one in its category.",
|
|
@@ -292,191 +161,21 @@
|
|
|
292
161
|
}
|
|
293
162
|
}
|
|
294
163
|
},
|
|
295
|
-
"layouts": {
|
|
296
|
-
"type": "array",
|
|
297
|
-
"maxItems": 10,
|
|
298
|
-
"description": "Custom layouts a page names with layout: { \"type\": \"custom\", \"id\": <id> }, each drawn around the page from sketches: a header above it, an aside beside it and a footer under it. Each region follows the sketch rules: static HTML and CSS, drawn in a sandboxed frame. The build writes a layout as a layout of the project, never in the DMS.",
|
|
299
|
-
"items": {
|
|
300
|
-
"type": "object",
|
|
301
|
-
"required": [
|
|
302
|
-
"id",
|
|
303
|
-
"title"
|
|
304
|
-
],
|
|
305
|
-
"additionalProperties": false,
|
|
306
|
-
"description": "Draws at least one of header, aside and footer.",
|
|
307
|
-
"anyOf": [
|
|
308
|
-
{
|
|
309
|
-
"required": [
|
|
310
|
-
"header"
|
|
311
|
-
]
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"required": [
|
|
315
|
-
"aside"
|
|
316
|
-
]
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"required": [
|
|
320
|
-
"footer"
|
|
321
|
-
]
|
|
322
|
-
}
|
|
323
|
-
],
|
|
324
|
-
"properties": {
|
|
325
|
-
"id": {
|
|
326
|
-
"type": "string",
|
|
327
|
-
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$",
|
|
328
|
-
"description": "Unique among the layouts."
|
|
329
|
-
},
|
|
330
|
-
"title": {
|
|
331
|
-
"type": "string"
|
|
332
|
-
},
|
|
333
|
-
"description": {
|
|
334
|
-
"type": "string"
|
|
335
|
-
},
|
|
336
|
-
"dashboard": {
|
|
337
|
-
"type": "boolean",
|
|
338
|
-
"default": true,
|
|
339
|
-
"description": "true keeps the dashboard's sidebar, top bar and page header around the page; false leaves them out, as EmptyLayout does."
|
|
340
|
-
},
|
|
341
|
-
"header": {
|
|
342
|
-
"type": "object",
|
|
343
|
-
"required": [
|
|
344
|
-
"html"
|
|
345
|
-
],
|
|
346
|
-
"additionalProperties": false,
|
|
347
|
-
"description": "Drawn above the page.",
|
|
348
|
-
"properties": {
|
|
349
|
-
"html": {
|
|
350
|
-
"type": "string",
|
|
351
|
-
"maxLength": 524288
|
|
352
|
-
},
|
|
353
|
-
"css": {
|
|
354
|
-
"type": "string",
|
|
355
|
-
"maxLength": 524288
|
|
356
|
-
},
|
|
357
|
-
"height": {
|
|
358
|
-
"type": "integer",
|
|
359
|
-
"minimum": 32,
|
|
360
|
-
"maximum": 1200,
|
|
361
|
-
"default": 64,
|
|
362
|
-
"description": "The sketch's frame height, in pixels."
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
"aside": {
|
|
367
|
-
"type": "object",
|
|
368
|
-
"required": [
|
|
369
|
-
"html"
|
|
370
|
-
],
|
|
371
|
-
"additionalProperties": false,
|
|
372
|
-
"description": "Drawn beside the page.",
|
|
373
|
-
"properties": {
|
|
374
|
-
"html": {
|
|
375
|
-
"type": "string",
|
|
376
|
-
"maxLength": 524288
|
|
377
|
-
},
|
|
378
|
-
"css": {
|
|
379
|
-
"type": "string",
|
|
380
|
-
"maxLength": 524288
|
|
381
|
-
},
|
|
382
|
-
"height": {
|
|
383
|
-
"type": "integer",
|
|
384
|
-
"minimum": 32,
|
|
385
|
-
"maximum": 1200,
|
|
386
|
-
"default": 480,
|
|
387
|
-
"description": "The sketch's frame height, in pixels."
|
|
388
|
-
},
|
|
389
|
-
"width": {
|
|
390
|
-
"type": "integer",
|
|
391
|
-
"minimum": 120,
|
|
392
|
-
"maximum": 480,
|
|
393
|
-
"default": 280,
|
|
394
|
-
"description": "The aside's width, in pixels."
|
|
395
|
-
},
|
|
396
|
-
"side": {
|
|
397
|
-
"enum": [
|
|
398
|
-
"start",
|
|
399
|
-
"end"
|
|
400
|
-
],
|
|
401
|
-
"default": "end",
|
|
402
|
-
"description": "The side of the page the aside is on: start is the left in a left-to-right language."
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
"footer": {
|
|
407
|
-
"type": "object",
|
|
408
|
-
"required": [
|
|
409
|
-
"html"
|
|
410
|
-
],
|
|
411
|
-
"additionalProperties": false,
|
|
412
|
-
"description": "Drawn under the page.",
|
|
413
|
-
"properties": {
|
|
414
|
-
"html": {
|
|
415
|
-
"type": "string",
|
|
416
|
-
"maxLength": 524288
|
|
417
|
-
},
|
|
418
|
-
"css": {
|
|
419
|
-
"type": "string",
|
|
420
|
-
"maxLength": 524288
|
|
421
|
-
},
|
|
422
|
-
"height": {
|
|
423
|
-
"type": "integer",
|
|
424
|
-
"minimum": 32,
|
|
425
|
-
"maximum": 1200,
|
|
426
|
-
"default": 48,
|
|
427
|
-
"description": "The sketch's frame height, in pixels."
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
164
|
"modules": {
|
|
435
165
|
"type": "array",
|
|
436
166
|
"uniqueItems": true,
|
|
437
|
-
"description": "The DMS modules the app
|
|
167
|
+
"description": "The DMS modules the app needs, by their ids in the module store catalog. Building the mockup installs each one (`ajs project modules add <package>`), and the viewer lists them.",
|
|
438
168
|
"items": {
|
|
439
|
-
"
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
"media",
|
|
450
|
-
"saas"
|
|
451
|
-
],
|
|
452
|
-
"description": "A catalog module's id."
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
"type": "object",
|
|
456
|
-
"required": [
|
|
457
|
-
"id",
|
|
458
|
-
"title"
|
|
459
|
-
],
|
|
460
|
-
"additionalProperties": false,
|
|
461
|
-
"description": "A custom module, listed in the module store. Spec pages with its id as `module` sit at its owner-only root, /modules/<id>. Its id is no catalog id.",
|
|
462
|
-
"properties": {
|
|
463
|
-
"id": {
|
|
464
|
-
"type": "string",
|
|
465
|
-
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
466
|
-
},
|
|
467
|
-
"title": {
|
|
468
|
-
"type": "string"
|
|
469
|
-
},
|
|
470
|
-
"icon": {
|
|
471
|
-
"type": "string",
|
|
472
|
-
"description": "An icon name, e.g. i-ph-truck."
|
|
473
|
-
},
|
|
474
|
-
"description": {
|
|
475
|
-
"type": "string",
|
|
476
|
-
"description": "A line the module store shows on its card."
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}
|
|
169
|
+
"enum": [
|
|
170
|
+
"ai",
|
|
171
|
+
"api",
|
|
172
|
+
"automation",
|
|
173
|
+
"database",
|
|
174
|
+
"lang",
|
|
175
|
+
"mailing",
|
|
176
|
+
"marketing",
|
|
177
|
+
"media",
|
|
178
|
+
"saas"
|
|
480
179
|
]
|
|
481
180
|
}
|
|
482
181
|
},
|
|
@@ -572,35 +271,7 @@
|
|
|
572
271
|
},
|
|
573
272
|
"category": {
|
|
574
273
|
"type": "string",
|
|
575
|
-
"description": "The id of the categories entry the page is listed under in the sidebar. Left out, the page is in the default \"Pages\" section.
|
|
576
|
-
},
|
|
577
|
-
"settings": {
|
|
578
|
-
"const": true,
|
|
579
|
-
"description": "true adds the page to the dashboard's Settings, under settingsCategory: its full id is settings.<id> and its path /settings/<id>. Without a layout of its own, it is drawn in the settings layout. Not with `category`, `module` or `extends`."
|
|
580
|
-
},
|
|
581
|
-
"module": {
|
|
582
|
-
"type": "string",
|
|
583
|
-
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$",
|
|
584
|
-
"description": "The id of a module the spec's modules list, a catalog id or a custom one: the page is added to that module's owner-only root, /modules/<id>, as a page declared with `module` under RegisterModule. Not with `extends`."
|
|
585
|
-
},
|
|
586
|
-
"extends": {
|
|
587
|
-
"type": "string",
|
|
588
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}(\\.[A-Za-z0-9][A-Za-z0-9_-]{0,63}){0,7}$",
|
|
589
|
-
"description": "The full dotted id of an existing page of the app or of an installed module, such as settings.workspace.members, saas.billing or orders.list. The page's blocks are the components a @RegisterPageExtension(<extends>) class injects into that page, and the mockup shows only them, around a placeholder for the page's own blocks. Several pages may extend one target. Not with `module`, and not a page of this spec."
|
|
590
|
-
},
|
|
591
|
-
"before": {
|
|
592
|
-
"type": "string",
|
|
593
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}(\\.[A-Za-z0-9][A-Za-z0-9_-]{0,63}){0,7}$",
|
|
594
|
-
"description": "Needs `extends`. The anchor on the target page the blocks go before, a static field name or a dotted path such as table or content.tasks, as .before(anchor). Not with `after`."
|
|
595
|
-
},
|
|
596
|
-
"after": {
|
|
597
|
-
"type": "string",
|
|
598
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}(\\.[A-Za-z0-9][A-Za-z0-9_-]{0,63}){0,7}$",
|
|
599
|
-
"description": "Needs `extends`. The anchor on the target page the blocks go after, as .after(anchor). Not with `before`. With neither, the blocks are appended after the target's own."
|
|
600
|
-
},
|
|
601
|
-
"order": {
|
|
602
|
-
"type": "number",
|
|
603
|
-
"description": "Needs `extends`. Orders extensions that land at the same spot, as .order(n): the lower goes first, a missing one is 0, and equal orders fall back to the page id, then the spec's order."
|
|
274
|
+
"description": "The id of the categories entry the page is listed under in the sidebar. Left out, the page is in the default \"Pages\" section."
|
|
604
275
|
},
|
|
605
276
|
"menu": {
|
|
606
277
|
"type": "boolean",
|
|
@@ -768,7 +439,7 @@
|
|
|
768
439
|
"description": "The buttons right of the title, in order, as DefaultLayout({ headerActions }) declares them."
|
|
769
440
|
},
|
|
770
441
|
"layout": {
|
|
771
|
-
"description": "The layout the page is drawn and built in: \"default\" (DefaultLayout, the dashboard frame), \"form-page\" (FormPageLayout, the frame with a readable column), \"settings\" (SettingsLayout, the frame with the settings navigation) or \"empty\" (EmptyLayout, no sidebar, no top bar and no page header). A name, or { type, options } with the layout's options.
|
|
442
|
+
"description": "The layout the page is drawn and built in: \"default\" (DefaultLayout, the dashboard frame), \"form-page\" (FormPageLayout, the frame with a readable column), \"settings\" (SettingsLayout, the frame with the settings navigation) or \"empty\" (EmptyLayout, no sidebar, no top bar and no page header). A name, or { type, options } with the layout's options. Absent, the page takes the dashboard frame.",
|
|
772
443
|
"oneOf": [
|
|
773
444
|
{
|
|
774
445
|
"enum": [
|
|
@@ -778,24 +449,6 @@
|
|
|
778
449
|
"empty"
|
|
779
450
|
]
|
|
780
451
|
},
|
|
781
|
-
{
|
|
782
|
-
"type": "object",
|
|
783
|
-
"required": [
|
|
784
|
-
"type",
|
|
785
|
-
"id"
|
|
786
|
-
],
|
|
787
|
-
"additionalProperties": false,
|
|
788
|
-
"properties": {
|
|
789
|
-
"type": {
|
|
790
|
-
"const": "custom"
|
|
791
|
-
},
|
|
792
|
-
"id": {
|
|
793
|
-
"type": "string",
|
|
794
|
-
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$",
|
|
795
|
-
"description": "The id of an entry of the spec's `layouts`."
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
},
|
|
799
452
|
{
|
|
800
453
|
"type": "object",
|
|
801
454
|
"required": [
|
|
@@ -972,30 +625,17 @@
|
|
|
972
625
|
{
|
|
973
626
|
"$ref": "#/$defs/generate"
|
|
974
627
|
},
|
|
975
|
-
{
|
|
976
|
-
"$ref": "#/$defs/entityFixture"
|
|
977
|
-
},
|
|
978
628
|
{
|
|
979
629
|
"not": {
|
|
980
630
|
"type": "object",
|
|
981
|
-
"
|
|
982
|
-
|
|
983
|
-
"required": [
|
|
984
|
-
"$generate"
|
|
985
|
-
]
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"required": [
|
|
989
|
-
"entity",
|
|
990
|
-
"rows"
|
|
991
|
-
]
|
|
992
|
-
}
|
|
631
|
+
"required": [
|
|
632
|
+
"$generate"
|
|
993
633
|
]
|
|
994
634
|
}
|
|
995
635
|
}
|
|
996
636
|
]
|
|
997
637
|
},
|
|
998
|
-
"description": "Data a block reads: an option \"fixture:<key>\" is served from here. A value { \"$generate\": { \"rows\", \"fields\" } } is replaced by generated rows
|
|
638
|
+
"description": "Data a block reads: an option \"fixture:<key>\" is served from here. A value { \"$generate\": { \"rows\", \"fields\" } } is replaced by generated rows."
|
|
999
639
|
},
|
|
1000
640
|
"tree": {
|
|
1001
641
|
"type": "array",
|
|
@@ -1110,29 +750,6 @@
|
|
|
1110
750
|
}
|
|
1111
751
|
}
|
|
1112
752
|
},
|
|
1113
|
-
"entityFixture": {
|
|
1114
|
-
"type": "object",
|
|
1115
|
-
"required": [
|
|
1116
|
-
"entity",
|
|
1117
|
-
"rows"
|
|
1118
|
-
],
|
|
1119
|
-
"additionalProperties": false,
|
|
1120
|
-
"description": "The rows of an entity, as a fixture. Read as an array of row objects, by a table's `fixture:<key>` as by any other block. Every row is checked against the entity: each key is one of its fields, each value fits the field's type (null always does), and a ref holds the id of a row of its target once the target has rows. The viewer lists them in the data browser.",
|
|
1121
|
-
"properties": {
|
|
1122
|
-
"entity": {
|
|
1123
|
-
"type": "string",
|
|
1124
|
-
"pattern": "^[A-Za-z0-9_-]{1,64}$",
|
|
1125
|
-
"description": "The name of one of the spec's entities."
|
|
1126
|
-
},
|
|
1127
|
-
"rows": {
|
|
1128
|
-
"type": "array",
|
|
1129
|
-
"items": {
|
|
1130
|
-
"type": "object"
|
|
1131
|
-
},
|
|
1132
|
-
"description": "The rows, as objects keyed by field name. A row whose id an earlier row of the entity has is dropped."
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
},
|
|
1136
753
|
"node": {
|
|
1137
754
|
"oneOf": [
|
|
1138
755
|
{
|
package/dist/e2e/index.d.mts
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* The Playwright config of a suite: two workers, or as many as
|
|
3
3
|
* `DMS_E2E_WORKERS` says, each against a run of its
|
|
4
4
|
* own that the global setup starts (one worker when `DMS_E2E_RUN` names
|
|
5
|
-
* the run to drive), one retry
|
|
6
|
-
* which reports a pass on retry as flaky, and none elsewhere, a test timeout
|
|
5
|
+
* the run to drive), one retry on every event, which reports a pass on retry as flaky, a test timeout
|
|
7
6
|
* above the kit's own waits,
|
|
8
7
|
* and the CI reporters. It is plain
|
|
9
8
|
* Playwright config, so `defineConfig(e2eConfig(), overrides)` adjusts it.
|
|
@@ -77,7 +77,23 @@ function summaryOption(entry) {
|
|
|
77
77
|
: undefined,
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
const MERGED_OPTIONS = [
|
|
81
|
+
{ option: "kanban", pointer: "/kanban", removedBy: "kanban" },
|
|
82
|
+
{ option: "grouped", pointer: "/grouped", removedBy: "grouped" },
|
|
83
|
+
{ option: "card", pointer: "/cards/fields" },
|
|
84
|
+
{ option: "displays", pointer: "/cards" },
|
|
85
|
+
{ option: "footer", pointer: "/footer", removedBy: "footer" },
|
|
86
|
+
];
|
|
87
|
+
function refuseCodeOptions(check, patch, locked, settings) {
|
|
88
|
+
for (const entry of MERGED_OPTIONS) {
|
|
89
|
+
const { option, pointer } = entry;
|
|
90
|
+
const removed = "removedBy" in entry && settings[entry.removedBy] === null;
|
|
91
|
+
if (Object.hasOwn(patch, option) && locked.has(option) && !removed) {
|
|
92
|
+
check.refuse(pointer, `the table's ${option} option is written in code, which the builder cannot merge into: edit it in code`);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function offeredAfter(current, locked, settings) {
|
|
81
97
|
const listed = Array.isArray(current.displays)
|
|
82
98
|
? current.displays.filter(isRecord)
|
|
83
99
|
: undefined;
|
|
@@ -91,9 +107,16 @@ function offeredAfter(current, settings) {
|
|
|
91
107
|
else if (settings.cards === null && listed) {
|
|
92
108
|
displays = listed.filter((entry) => entry.id !== CARDS);
|
|
93
109
|
}
|
|
94
|
-
const kanban = settings.kanban === undefined
|
|
95
|
-
|
|
110
|
+
const kanban = settings.kanban === undefined
|
|
111
|
+
? Boolean(current.kanban) || locked.has("kanban")
|
|
112
|
+
: settings.kanban;
|
|
113
|
+
const grouped = settings.grouped === undefined
|
|
114
|
+
? Boolean(current.grouped) || locked.has("grouped")
|
|
115
|
+
: settings.grouped;
|
|
96
116
|
const offered = new Set(displays ? listedIds(displays) : [TABLE]);
|
|
117
|
+
if (locked.has("displays")) {
|
|
118
|
+
offered.add(CARDS);
|
|
119
|
+
}
|
|
97
120
|
if (kanban) {
|
|
98
121
|
offered.add("kanban");
|
|
99
122
|
}
|
|
@@ -133,7 +156,7 @@ function groupedOption(check, current, setting) {
|
|
|
133
156
|
});
|
|
134
157
|
return unordered;
|
|
135
158
|
}
|
|
136
|
-
function displayPatch(check, current, settings) {
|
|
159
|
+
function displayPatch(check, current, locked, settings) {
|
|
137
160
|
const patch = {};
|
|
138
161
|
if (settings.kanban !== undefined) {
|
|
139
162
|
if (settings.kanban) {
|
|
@@ -158,7 +181,7 @@ function displayPatch(check, current, settings) {
|
|
|
158
181
|
card.fields = settings.cards.fields;
|
|
159
182
|
patch.card = card;
|
|
160
183
|
}
|
|
161
|
-
const { displays, offered } = offeredAfter(current, settings);
|
|
184
|
+
const { displays, offered } = offeredAfter(current, locked, settings);
|
|
162
185
|
if (settings.cards !== undefined) {
|
|
163
186
|
patch.displays = displays;
|
|
164
187
|
}
|
|
@@ -205,17 +228,18 @@ function footerPatch(check, current, settings) {
|
|
|
205
228
|
: kept;
|
|
206
229
|
return { footer: Object.keys(footer).length > 0 ? footer : undefined };
|
|
207
230
|
}
|
|
208
|
-
function planSettings(columns, current, settings) {
|
|
231
|
+
function planSettings(columns, current, locked, settings) {
|
|
209
232
|
const check = new table_view_checks_1.Check(columns);
|
|
210
|
-
const patch = displayPatch(check, current, settings);
|
|
233
|
+
const patch = displayPatch(check, current, locked, settings);
|
|
211
234
|
if (settings.views !== undefined) {
|
|
212
|
-
const offered = offeredAfter(current, settings).offered;
|
|
235
|
+
const offered = offeredAfter(current, locked, settings).offered;
|
|
213
236
|
patch.views =
|
|
214
237
|
settings.views === null
|
|
215
238
|
? undefined
|
|
216
239
|
: viewsOption(check, settings.views, offered);
|
|
217
240
|
}
|
|
218
241
|
Object.assign(patch, footerPatch(check, current, settings));
|
|
242
|
+
refuseCodeOptions(check, patch, locked, settings);
|
|
219
243
|
return {
|
|
220
244
|
patch,
|
|
221
245
|
issues: check.issues,
|
|
@@ -285,7 +309,7 @@ function configureTableView(ref, settings, opts) {
|
|
|
285
309
|
return resource;
|
|
286
310
|
}
|
|
287
311
|
const columns = new Map(resource.data.fields.map((field) => [field.name, (0, table_view_checks_1.columnOf)(field)]));
|
|
288
|
-
const planned = planSettings(columns, block.config ?? {}, settings);
|
|
312
|
+
const planned = planSettings(columns, block.config ?? {}, new Set(Object.keys(block.lockedOptions ?? {})), settings);
|
|
289
313
|
if (planned.issues.length > 0) {
|
|
290
314
|
return {
|
|
291
315
|
ok: false,
|