@antelopejs/dms 0.25.8-next.1175.g5f8cc4d → 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 -41
- 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
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.exportOptionsSchema = void 0;
|
|
4
|
-
exports.planExport = planExport;
|
|
5
|
-
exports.planScreens = planScreens;
|
|
6
|
-
exports.describeRefusal = describeRefusal;
|
|
7
|
-
const zod_1 = require("zod");
|
|
8
|
-
const mockup_1 = require("../../mockup");
|
|
9
|
-
exports.exportOptionsSchema = zod_1.z
|
|
10
|
-
.object({
|
|
11
|
-
pages: zod_1.z
|
|
12
|
-
.array(zod_1.z.string().min(1))
|
|
13
|
-
.min(1)
|
|
14
|
-
.optional()
|
|
15
|
-
.describe("The page ids to print. Default: every page."),
|
|
16
|
-
annotations: zod_1.z
|
|
17
|
-
.boolean()
|
|
18
|
-
.describe("Print each page's open annotations under its screen."),
|
|
19
|
-
saasTenant: zod_1.z
|
|
20
|
-
.string()
|
|
21
|
-
.min(1)
|
|
22
|
-
.optional()
|
|
23
|
-
.describe("The id of a tenant of the spec's fixtures.tenants to draw every page as, in SaaS mode. Default: the first tenant, when an installed module provides tenancy."),
|
|
24
|
-
includeSchema: zod_1.z
|
|
25
|
-
.boolean()
|
|
26
|
-
.describe("End with the data model (ERD and entity table) when the spec has entities."),
|
|
27
|
-
})
|
|
28
|
-
.strict();
|
|
29
|
-
const APP_GROUP = "App";
|
|
30
|
-
const SETTINGS_SECTION = "Settings";
|
|
31
|
-
const SKETCH_TYPE = "sketch";
|
|
32
|
-
const CUSTOM_PAGE_BLOCK = "Custom page (sketch)";
|
|
33
|
-
const DATE_FORMAT = new Intl.DateTimeFormat("en-GB", {
|
|
34
|
-
day: "numeric",
|
|
35
|
-
month: "short",
|
|
36
|
-
year: "numeric",
|
|
37
|
-
timeZone: "UTC",
|
|
38
|
-
});
|
|
39
|
-
function nodeLabel(node) {
|
|
40
|
-
if (node.type === SKETCH_TYPE)
|
|
41
|
-
return "Sketch";
|
|
42
|
-
return node.componentName ?? node.type ?? "Block";
|
|
43
|
-
}
|
|
44
|
-
function blockList(pages) {
|
|
45
|
-
const counts = new Map();
|
|
46
|
-
const count = (label) => {
|
|
47
|
-
counts.set(label, (counts.get(label) ?? 0) + 1);
|
|
48
|
-
};
|
|
49
|
-
const visit = (nodes) => {
|
|
50
|
-
for (const node of nodes) {
|
|
51
|
-
count(nodeLabel(node));
|
|
52
|
-
visit(node.children ?? []);
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
for (const page of pages) {
|
|
56
|
-
if (page.custom === true)
|
|
57
|
-
count(CUSTOM_PAGE_BLOCK);
|
|
58
|
-
else
|
|
59
|
-
visit(page.tree);
|
|
60
|
-
}
|
|
61
|
-
return [...counts].map(([label, total]) => total > 1 ? `${label} ×${total}` : label);
|
|
62
|
-
}
|
|
63
|
-
function rootPage(page, byId) {
|
|
64
|
-
let root = page;
|
|
65
|
-
const seen = new Set([page.id]);
|
|
66
|
-
for (let parent = page.parent ? byId.get(page.parent) : undefined; parent && !seen.has(parent.id); parent = parent.parent ? byId.get(parent.parent) : undefined) {
|
|
67
|
-
seen.add(parent.id);
|
|
68
|
-
root = parent;
|
|
69
|
-
}
|
|
70
|
-
return root;
|
|
71
|
-
}
|
|
72
|
-
function categoryTitle(spec, page) {
|
|
73
|
-
return spec.categories?.find((category) => category.id === page.category)
|
|
74
|
-
?.title;
|
|
75
|
-
}
|
|
76
|
-
function sectionTitle(spec, root, group, isSettings) {
|
|
77
|
-
if (group.kind !== "app")
|
|
78
|
-
return group.title;
|
|
79
|
-
if (isSettings)
|
|
80
|
-
return SETTINGS_SECTION;
|
|
81
|
-
return categoryTitle(spec, root) ?? group.title;
|
|
82
|
-
}
|
|
83
|
-
function parentTitles(page, byId) {
|
|
84
|
-
const titles = [];
|
|
85
|
-
const seen = new Set();
|
|
86
|
-
for (let parent = page.parent && byId.get(page.parent); parent && !seen.has(parent.id); parent = parent.parent ? byId.get(parent.parent) : undefined) {
|
|
87
|
-
seen.add(parent.id);
|
|
88
|
-
titles.unshift(parent.title);
|
|
89
|
-
}
|
|
90
|
-
return titles;
|
|
91
|
-
}
|
|
92
|
-
function rootsOf(pages) {
|
|
93
|
-
const byId = new Map(pages.map((page) => [page.id, page]));
|
|
94
|
-
return new Map(pages.map((page) => [page.id, rootPage(page, byId).id]));
|
|
95
|
-
}
|
|
96
|
-
function withSubPages(tops, pages, roots, placed) {
|
|
97
|
-
const taken = [];
|
|
98
|
-
for (const page of tops.flatMap((top) => [
|
|
99
|
-
top,
|
|
100
|
-
...pages.filter((under) => under.id !== top.id && roots.get(under.id) === top.id),
|
|
101
|
-
])) {
|
|
102
|
-
if (placed.has(page.id))
|
|
103
|
-
continue;
|
|
104
|
-
placed.add(page.id);
|
|
105
|
-
taken.push(page);
|
|
106
|
-
}
|
|
107
|
-
return taken;
|
|
108
|
-
}
|
|
109
|
-
function menuOrder(tops, categories) {
|
|
110
|
-
const known = new Set(categories.map((category) => category.id));
|
|
111
|
-
const sectionOf = (page) => page.category !== undefined && known.has(page.category)
|
|
112
|
-
? page.category
|
|
113
|
-
: undefined;
|
|
114
|
-
return [
|
|
115
|
-
...tops.filter((page) => sectionOf(page) === undefined),
|
|
116
|
-
...categories.flatMap((category) => tops.filter((page) => sectionOf(page) === category.id)),
|
|
117
|
-
];
|
|
118
|
-
}
|
|
119
|
-
function screensOf(spec) {
|
|
120
|
-
return (0, mockup_1.placePages)(spec.modules ?? [], spec.pages).map((entry) => {
|
|
121
|
-
const page = (0, mockup_1.leadOf)(entry);
|
|
122
|
-
if (entry.kind === "page") {
|
|
123
|
-
return {
|
|
124
|
-
page,
|
|
125
|
-
contributors: [page],
|
|
126
|
-
isSettings: entry.place.kind === "settings",
|
|
127
|
-
...(entry.place.kind === "module" && { module: entry.place.module }),
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
const module = (0, mockup_1.menuModule)(entry.menu);
|
|
131
|
-
return {
|
|
132
|
-
page,
|
|
133
|
-
contributors: entry.pages,
|
|
134
|
-
isSettings: entry.menu === "settings",
|
|
135
|
-
...(module !== undefined && { module }),
|
|
136
|
-
};
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
function draftGroups(spec, screened) {
|
|
140
|
-
const pages = screened.map((entry) => entry.page);
|
|
141
|
-
const roots = rootsOf(pages);
|
|
142
|
-
const tops = (module) => {
|
|
143
|
-
const own = screened.filter((entry) => entry.module === module);
|
|
144
|
-
const ids = new Set(own.map((entry) => entry.page.id));
|
|
145
|
-
return own
|
|
146
|
-
.map((entry) => entry.page)
|
|
147
|
-
.filter((page) => page.parent === undefined || !ids.has(page.parent));
|
|
148
|
-
};
|
|
149
|
-
const listed = (0, mockup_1.moduleStates)(spec.modules ?? []).map((module) => ({
|
|
150
|
-
module,
|
|
151
|
-
tops: tops(module.id),
|
|
152
|
-
}));
|
|
153
|
-
const placed = new Set(listed.flatMap((entry) => entry.tops.map((page) => page.id)));
|
|
154
|
-
const app = {
|
|
155
|
-
title: APP_GROUP,
|
|
156
|
-
kind: "app",
|
|
157
|
-
pages: withSubPages(menuOrder(tops(undefined), spec.categories ?? []), pages, roots, placed),
|
|
158
|
-
};
|
|
159
|
-
for (const entry of listed)
|
|
160
|
-
for (const page of entry.tops)
|
|
161
|
-
placed.delete(page.id);
|
|
162
|
-
const modules = listed.map(({ module, tops: moduleTops }) => ({
|
|
163
|
-
title: module.title,
|
|
164
|
-
kind: module.package === undefined ? "custom" : "catalog",
|
|
165
|
-
pages: withSubPages(moduleTops, pages, roots, placed),
|
|
166
|
-
}));
|
|
167
|
-
return [app, ...modules].filter((group) => group.pages.length > 0);
|
|
168
|
-
}
|
|
169
|
-
function refuseUnknownPages(groups, asked) {
|
|
170
|
-
if (asked === undefined)
|
|
171
|
-
return undefined;
|
|
172
|
-
const known = groups.flatMap((group) => group.pages.map((page) => page.id));
|
|
173
|
-
const ids = asked.filter((id) => !known.includes(id));
|
|
174
|
-
return ids.length ? { kind: "unknown_pages", ids, known } : undefined;
|
|
175
|
-
}
|
|
176
|
-
function schemaOf(spec) {
|
|
177
|
-
return Object.entries(spec.entities ?? {}).map(([name, entity]) => ({
|
|
178
|
-
name,
|
|
179
|
-
tenantScoped: entity.tenantScoped === true,
|
|
180
|
-
fields: Object.entries(entity.fields).map(([field, type]) => ({
|
|
181
|
-
name: field,
|
|
182
|
-
type: type.type,
|
|
183
|
-
...(type.type === "ref" && { to: type.to }),
|
|
184
|
-
})),
|
|
185
|
-
}));
|
|
186
|
-
}
|
|
187
|
-
function tenantOf(spec, id) {
|
|
188
|
-
const tenancy = (0, mockup_1.hasTenancy)(spec.modules ?? []);
|
|
189
|
-
if (id !== undefined && !tenancy)
|
|
190
|
-
return { kind: "no_saas" };
|
|
191
|
-
if (!tenancy)
|
|
192
|
-
return { ok: true };
|
|
193
|
-
const tenants = spec.fixtures?.tenants ?? [];
|
|
194
|
-
if (id === undefined) {
|
|
195
|
-
const first = tenants[0];
|
|
196
|
-
return first
|
|
197
|
-
? { ok: true, tenant: { id: first.id, name: first.name } }
|
|
198
|
-
: { ok: true };
|
|
199
|
-
}
|
|
200
|
-
const found = tenants.find((tenant) => tenant.id === id);
|
|
201
|
-
if (!found)
|
|
202
|
-
return {
|
|
203
|
-
kind: "unknown_tenant",
|
|
204
|
-
id,
|
|
205
|
-
known: tenants.map((tenant) => tenant.id),
|
|
206
|
-
};
|
|
207
|
-
return { ok: true, tenant: { id: found.id, name: found.name } };
|
|
208
|
-
}
|
|
209
|
-
function planExport(spec, notes, options, now) {
|
|
210
|
-
const tenant = tenantOf(spec, options.saasTenant);
|
|
211
|
-
if (!("ok" in tenant))
|
|
212
|
-
return { ok: false, refusal: tenant };
|
|
213
|
-
const screened = screensOf(spec);
|
|
214
|
-
const drafts = draftGroups(spec, screened);
|
|
215
|
-
const unknown = refuseUnknownPages(drafts, options.pages);
|
|
216
|
-
if (unknown)
|
|
217
|
-
return { ok: false, refusal: unknown };
|
|
218
|
-
const asked = options.pages && new Set(options.pages);
|
|
219
|
-
const byId = new Map(spec.pages.map((page) => [page.id, page]));
|
|
220
|
-
const contributors = new Map(screened.map((entry) => [entry.page.id, entry.contributors]));
|
|
221
|
-
const settings = new Set(screened.flatMap((entry) => (entry.isSettings ? [entry.page.id] : [])));
|
|
222
|
-
const groups = drafts
|
|
223
|
-
.map((draft) => ({
|
|
224
|
-
...draft,
|
|
225
|
-
pages: draft.pages.filter((page) => !asked || asked.has(page.id)),
|
|
226
|
-
}))
|
|
227
|
-
.filter((draft) => draft.pages.length > 0)
|
|
228
|
-
.map((draft, index) => ({
|
|
229
|
-
number: index + 1,
|
|
230
|
-
title: draft.title,
|
|
231
|
-
kind: draft.kind,
|
|
232
|
-
screens: draft.pages.map((page, at) => ({
|
|
233
|
-
number: `${index + 1}.${at + 1}`,
|
|
234
|
-
pageId: page.id,
|
|
235
|
-
title: page.title,
|
|
236
|
-
path: [
|
|
237
|
-
sectionTitle(spec, rootPage(page, byId), draft, settings.has(page.id)),
|
|
238
|
-
...parentTitles(page, byId),
|
|
239
|
-
page.title,
|
|
240
|
-
],
|
|
241
|
-
mode: [
|
|
242
|
-
{
|
|
243
|
-
app: "App page",
|
|
244
|
-
custom: "Custom module",
|
|
245
|
-
catalog: "Catalog module",
|
|
246
|
-
}[draft.kind],
|
|
247
|
-
page.custom === true ? "custom page" : "fixtures",
|
|
248
|
-
...(tenant.tenant ? [`SaaS mode: ${tenant.tenant.name}`] : []),
|
|
249
|
-
],
|
|
250
|
-
blocks: blockList(contributors.get(page.id) ?? [page]),
|
|
251
|
-
notes: options.annotations
|
|
252
|
-
? notes.flatMap((note, at) => (contributors.get(page.id) ?? [page]).some((own) => own.id === note.page) && note.status === "open"
|
|
253
|
-
? [{ number: at + 1, text: note.text }]
|
|
254
|
-
: [])
|
|
255
|
-
: [],
|
|
256
|
-
})),
|
|
257
|
-
}));
|
|
258
|
-
if (groups.length === 0)
|
|
259
|
-
return { ok: false, refusal: { kind: "no_pages" } };
|
|
260
|
-
const schema = schemaOf(spec);
|
|
261
|
-
return {
|
|
262
|
-
ok: true,
|
|
263
|
-
plan: {
|
|
264
|
-
title: spec.title ?? "Mockup",
|
|
265
|
-
date: DATE_FORMAT.format(now),
|
|
266
|
-
counts: {
|
|
267
|
-
pages: groups.reduce((sum, group) => sum + group.screens.length, 0),
|
|
268
|
-
modules: spec.modules?.length ?? 0,
|
|
269
|
-
entities: schema.length,
|
|
270
|
-
},
|
|
271
|
-
groups,
|
|
272
|
-
...(tenant.tenant && { tenant: tenant.tenant }),
|
|
273
|
-
...(options.includeSchema && schema.length > 0 && { schema }),
|
|
274
|
-
},
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
function planScreens(plan) {
|
|
278
|
-
return plan.groups.flatMap((group) => group.screens);
|
|
279
|
-
}
|
|
280
|
-
function describeRefusal(refusal) {
|
|
281
|
-
switch (refusal.kind) {
|
|
282
|
-
case "unknown_pages":
|
|
283
|
-
return `No page of the mockup has the id ${refusal.ids.map((id) => `"${id}"`).join(", ")}. Its pages: ${refusal.known.join(", ") || "none"}.`;
|
|
284
|
-
case "no_saas":
|
|
285
|
-
return 'saasTenant draws a page in SaaS mode, which a mockup has once an installed module provides tenancy, such as "saas".';
|
|
286
|
-
case "unknown_tenant":
|
|
287
|
-
return `No tenant of the spec's fixtures.tenants has the id "${refusal.id}". Its tenants: ${refusal.known.join(", ") || "none"}.`;
|
|
288
|
-
case "no_pages":
|
|
289
|
-
return "The mockup has no page to export.";
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
//# sourceMappingURL=plan.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../src/mcp/mockup-export/plan.ts"],"names":[],"mappings":";;;;;;AAAA,6BAAwB;AACxB,yCAUsB;AAGT,QAAA,mBAAmB,GAAG,OAAC;KACjC,MAAM,CAAC;IACN,KAAK,EAAE,OAAC;SACL,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACxB,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,6CAA6C,CAAC;IAC1D,WAAW,EAAE,OAAC;SACX,OAAO,EAAE;SACT,QAAQ,CAAC,sDAAsD,CAAC;IACnE,UAAU,EAAE,OAAC;SACV,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,8JAA8J,CAC/J;IACH,aAAa,EAAE,OAAC;SACb,OAAO,EAAE;SACT,QAAQ,CACP,4EAA4E,CAC7E;CACJ,CAAC;KACD,MAAM,EAAE,C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AC,IAAI,CAAC,IAAI,MAAM,GAAG,CAAC;QAChJ,KAAK,SAAS;YACZ,OAAO,qHAAqH,CAAC;QAC/H,KAAK,gBAAgB;YACnB,OAAO,wDAAwD,OAAO,CAAC,EAAE,mBAAmB,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,MAAM,GAAG,CAAC;QACpI,KAAK,UAAU;YACb,OAAO,mCAAmC,CAAC;IAC/C,CAAC;AACH,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type ExportJobView } from ".";
|
|
2
|
-
export type ExportStartAnswer = {
|
|
3
|
-
ok: true;
|
|
4
|
-
id: string;
|
|
5
|
-
} | {
|
|
6
|
-
ok: false;
|
|
7
|
-
message: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function registerMockupExportRoute(mockupsDir: string): {
|
|
10
|
-
new (...args: any[]): {
|
|
11
|
-
assertOwner(): Promise<void>;
|
|
12
|
-
owner(): Promise<import("../../mockup").Who>;
|
|
13
|
-
start(rawName: string, body: unknown): Promise<ExportStartAnswer>;
|
|
14
|
-
status(rawName: string, id: string): Promise<ExportJobView>;
|
|
15
|
-
download(rawName: string, id: string): Promise<void>;
|
|
16
|
-
requestContext: import("@antelopejs/interface-api").RequestContext;
|
|
17
|
-
roleModel: import("@antelopejs/interface-dms/db").RoleModel;
|
|
18
|
-
memberModel: import("@antelopejs/interface-dms/db").TenantMemberModel;
|
|
19
|
-
user: import("@antelopejs/interface-dms/auth/db").User | undefined;
|
|
20
|
-
};
|
|
21
|
-
extend: <T extends import("@antelopejs/interface-api").ControllerClass>(this: T, location: string) => T;
|
|
22
|
-
location: string;
|
|
23
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.registerMockupExportRoute = registerMockupExportRoute;
|
|
16
|
-
const promises_1 = require("node:fs/promises");
|
|
17
|
-
const node_path_1 = require("node:path");
|
|
18
|
-
const interface_api_1 = require("@antelopejs/interface-api");
|
|
19
|
-
const mockup_1 = require("../../mockup");
|
|
20
|
-
const page_verify_1 = require("../tools/page-verify");
|
|
21
|
-
const _1 = require(".");
|
|
22
|
-
const plan_1 = require("./plan");
|
|
23
|
-
function registerMockupExportRoute(mockupsDir) {
|
|
24
|
-
class MockupExportController extends (0, interface_api_1.Controller)(mockup_1.MOCKUP_API, mockup_1.MockupOwnerController) {
|
|
25
|
-
async start(rawName, body) {
|
|
26
|
-
await this.assertOwner();
|
|
27
|
-
const name = (0, mockup_1.nameOf)(rawName);
|
|
28
|
-
const options = plan_1.exportOptionsSchema.safeParse(body ?? {});
|
|
29
|
-
if (!options.success) {
|
|
30
|
-
return { ok: false, message: options.error.message };
|
|
31
|
-
}
|
|
32
|
-
const started = await (0, _1.startExport)({
|
|
33
|
-
name,
|
|
34
|
-
mockupsDir,
|
|
35
|
-
origin: (0, page_verify_1.dashboardOrigin)(),
|
|
36
|
-
options: options.data,
|
|
37
|
-
});
|
|
38
|
-
if (started.ok)
|
|
39
|
-
return { ok: true, id: started.id };
|
|
40
|
-
if (started.reason === "no_mockup")
|
|
41
|
-
throw (0, mockup_1.notFound)("mockup");
|
|
42
|
-
return { ok: false, message: started.message };
|
|
43
|
-
}
|
|
44
|
-
async status(rawName, id) {
|
|
45
|
-
await this.assertOwner();
|
|
46
|
-
const view = _1.exportJobs.status((0, mockup_1.nameOf)(rawName), id);
|
|
47
|
-
if (view === undefined)
|
|
48
|
-
throw (0, mockup_1.notFound)("export");
|
|
49
|
-
return view;
|
|
50
|
-
}
|
|
51
|
-
async download(rawName, id) {
|
|
52
|
-
await this.assertOwner();
|
|
53
|
-
const name = (0, mockup_1.nameOf)(rawName);
|
|
54
|
-
if (_1.exportJobs.status(name, id)?.status !== "done") {
|
|
55
|
-
throw (0, mockup_1.notFound)("export");
|
|
56
|
-
}
|
|
57
|
-
const pdf = await (0, promises_1.readFile)((0, node_path_1.join)((0, mockup_1.mockupDirectory)(mockupsDir, name), mockup_1.EXPORT_PDF_FILE));
|
|
58
|
-
const { response } = this.requestContext;
|
|
59
|
-
response.addHeader("Content-Disposition", `attachment; filename="${name}.pdf"`);
|
|
60
|
-
response.addHeader("Content-Length", String(pdf.length));
|
|
61
|
-
response.addHeader("Access-Control-Expose-Headers", "Content-Disposition, Content-Length");
|
|
62
|
-
response.getWriteStream("application/pdf").end(pdf);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, interface_api_1.Post)(":name/export"),
|
|
67
|
-
__param(0, (0, interface_api_1.Parameter)("name")),
|
|
68
|
-
__param(1, (0, interface_api_1.JSONBody)()),
|
|
69
|
-
__metadata("design:type", Function),
|
|
70
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
71
|
-
__metadata("design:returntype", Promise)
|
|
72
|
-
], MockupExportController.prototype, "start", null);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, interface_api_1.Get)(":name/export/:id"),
|
|
75
|
-
__param(0, (0, interface_api_1.Parameter)("name")),
|
|
76
|
-
__param(1, (0, interface_api_1.Parameter)("id")),
|
|
77
|
-
__metadata("design:type", Function),
|
|
78
|
-
__metadata("design:paramtypes", [String, String]),
|
|
79
|
-
__metadata("design:returntype", Promise)
|
|
80
|
-
], MockupExportController.prototype, "status", null);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, interface_api_1.Get)(":name/export/:id/pdf"),
|
|
83
|
-
__param(0, (0, interface_api_1.Parameter)("name")),
|
|
84
|
-
__param(1, (0, interface_api_1.Parameter)("id")),
|
|
85
|
-
__metadata("design:type", Function),
|
|
86
|
-
__metadata("design:paramtypes", [String, String]),
|
|
87
|
-
__metadata("design:returntype", Promise)
|
|
88
|
-
], MockupExportController.prototype, "download", null);
|
|
89
|
-
return MockupExportController;
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=route.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../src/mcp/mockup-export/route.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA4C;AAC5C,yCAAiC;AACjC,6DAMmC;AACnC,yCAOsB;AACtB,sDAAuD;AACvD,wBAAgE;AAChE,iCAA6C;AAe7C,mCAA0C,UAAkB;IAC1D,MAAM,sBAAuB,SAAQ,IAAA,0BAAU,EAC7C,mBAAU,EACV,8BAAqB,CACtB;QAEO,AAAN,KAAK,CAAC,KAAK,CACU,OAAe,EACtB,IAAa;YAEzB,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;YACzB,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,OAAO,CAAC,CAAC;YAC7B,MAAM,OAAO,GAAG,0BAAmB,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;YAC1D,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;gBACrB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,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U,EAAE,IAAI,CAAC,EAAE,wBAAe,CAAC,CACzD,CAAC;YACF,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,cAAc,CAAC;YACzC,QAAQ,CAAC,SAAS,CAChB,qBAAqB,EACrB,yBAAyB,IAAI,OAAO,CACrC,CAAC;YACF,QAAQ,CAAC,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;YACzD,QAAQ,CAAC,SAAS,CAChB,+BAA+B,EAC/B,qCAAqC,CACtC,CAAC;YACF,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACtD,CAAC;KACF;IAzDO;QADL,IAAA,oBAAI,EAAC,cAAc,CAAC;QAElB,WAAA,IAAA,yBAAS,EAAC,MAAM,CAAC,CAAA;QACjB,WAAA,IAAA,wBAAQ,GAAE,CAAA;;;;uDAiBZ;IAGK;QADL,IAAA,mBAAG,EAAC,kBAAkB,CAAC;QAErB,WAAA,IAAA,yBAAS,EAAC,MAAM,CAAC,CAAA;QACjB,WAAA,IAAA,yBAAS,EAAC,IAAI,CAAC,CAAA;;;;wDAMjB;IAGK;QADL,IAAA,mBAAG,EAAC,sBAAsB,CAAC;QAEzB,WAAA,IAAA,yBAAS,EAAC,MAAM,CAAC,CAAA;QACjB,WAAA,IAAA,yBAAS,EAAC,IAAI,CAAC,CAAA;;;;0DAqBjB;IAEH,OAAO,sBAAsB,CAAC;AAChC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ListedCatalogModule } from "../../mockup";
|
|
2
|
-
import { type RuntimeModule, type StoreDeclaration } from "../../store";
|
|
3
|
-
export interface InstalledModules {
|
|
4
|
-
declarations: ReadonlyMap<string, StoreDeclaration>;
|
|
5
|
-
runtime: readonly RuntimeModule[];
|
|
6
|
-
}
|
|
7
|
-
export declare function uninstalledModuleFailures(modules: readonly ListedCatalogModule[], installed: InstalledModules): string[];
|
|
8
|
-
export declare function mockupModuleFailures(name: string): Promise<string[]>;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uninstalledModuleFailures = uninstalledModuleFailures;
|
|
4
|
-
exports.mockupModuleFailures = mockupModuleFailures;
|
|
5
|
-
const mockup_1 = require("../../mockup");
|
|
6
|
-
const store_1 = require("../../store");
|
|
7
|
-
function uninstalledModuleFailures(modules, installed) {
|
|
8
|
-
return modules.flatMap(({ id, package: name }) => {
|
|
9
|
-
const runs = installed.runtime.some((module) => module.packageName === name && (0, store_1.isLive)(module));
|
|
10
|
-
if (runs)
|
|
11
|
-
return [];
|
|
12
|
-
const declaration = installed.declarations.get(id);
|
|
13
|
-
const installs = `modules: the mockup installs ${id} (${name})`;
|
|
14
|
-
if (declaration === undefined)
|
|
15
|
-
return [
|
|
16
|
-
`${installs}, which the project does not have: run \`ajs project modules add ${name}\` in the project, then restart the backend`,
|
|
17
|
-
];
|
|
18
|
-
if (declaration.disabled)
|
|
19
|
-
return [
|
|
20
|
-
`${installs}, which antelope.config.ts disables: enable it from the Modules page or in antelope.config.ts, then restart the backend`,
|
|
21
|
-
];
|
|
22
|
-
return [
|
|
23
|
-
`${installs}, which antelope.config.ts declares but the backend does not run: read the backend log for why it did not start`,
|
|
24
|
-
];
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
async function mockupCatalogModules(name) {
|
|
28
|
-
const mockup = mockup_1.mockupNameSchema.safeParse(name);
|
|
29
|
-
if (!mockup.success)
|
|
30
|
-
return [];
|
|
31
|
-
const text = await (0, mockup_1.readSpecText)((0, mockup_1.defaultMockupsDir)(), mockup.data);
|
|
32
|
-
return text === undefined
|
|
33
|
-
? []
|
|
34
|
-
: (0, mockup_1.listedCatalogModules)((0, mockup_1.parseSpecObject)(text)?.modules);
|
|
35
|
-
}
|
|
36
|
-
async function mockupModuleFailures(name) {
|
|
37
|
-
const modules = await mockupCatalogModules(name);
|
|
38
|
-
if (modules.length === 0)
|
|
39
|
-
return [];
|
|
40
|
-
const [declarations, runtime] = await Promise.all([
|
|
41
|
-
(0, store_1.listCatalogDeclarations)((0, store_1.bundledCatalog)()).catch(() => new Map()),
|
|
42
|
-
(0, store_1.listRuntimeModules)(),
|
|
43
|
-
]);
|
|
44
|
-
return uninstalledModuleFailures(modules, {
|
|
45
|
-
declarations,
|
|
46
|
-
runtime: [...runtime.values()],
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=modules.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../../../src/mcp/page-verify/modules.ts"],"names":[],"mappings":";;;;AAAA,yCAOsB;AACtB,uCAOqB;AAerB,mCACE,OAAuC,EACvC,SAA2B;IAE3B,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;QAC/C,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,CACjC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,KAAK,IAAI,IAAI,IAAA,cAAM,EAAC,MAAM,CAAC,CAC1D,CAAC;QACF,IAAI,IAAI;YAAE,OAAO,EAAE,CAAC;QACpB,MAAM,WAAW,GAAG,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,gCAAgC,EAAE,KAAK,IAAI,GAAG,CAAC;QAChE,IAAI,WAAW,KAAK,SAAS;YAC3B,OAAO;gBACL,GAAG,QAAQ,oEAAoE,IAAI,6CAA6C;aACjI,CAAC;QACJ,IAAI,WAAW,CAAC,QAAQ;YACtB,OAAO;gBACL,GAAG,QAAQ,yHAAyH;aACrI,CAAC;QACJ,OAAO;YACL,GAAG,QAAQ,iHAAiH;SAC7H,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAGD,KAAK,UAAU,oBAAoB,CACjC,IAAY;IAEZ,MAAM,MAAM,GAAG,yBAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAChD,IAAI,CAAC,MAAM,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAC/B,MAAM,IAAI,GAAG,MAAM,IAAA,qBAAY,EAAC,IAAA,0BAAiB,GAAE,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAClE,OAAO,IAAI,KAAK,SAAS;QACvB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,IAAA,6BAAoB,EAAC,IAAA,wBAAe,EAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;AAC3D,CAAC;AAMM,KAAK,+BAA+B,IAAY;IACrD,MAAM,OAAO,GAAG,MAAM,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACjD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACpC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAChD,IAAA,+BAAuB,EAAC,IAAA,sBAAc,GAAE,CAAC,CAAC,KAAK,CAC7C,GAAG,EAAE,CAAC,IAAI,GAAG,EAA4B,CAC1C;QACD,IAAA,0BAAkB,GAAE;KACrB,CAAC,CAAC;IACH,OAAO,yBAAyB,CAAC,OAAO,EAAE;QACxC,YAAY;QACZ,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;KAC/B,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mockupExportPdfTool: import("../tool").McpTool;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.mockupExportPdfTool = void 0;
|
|
37
|
-
const mockup_1 = require("../../mockup");
|
|
38
|
-
const plan_1 = require("../mockup-export/plan");
|
|
39
|
-
const tool_1 = require("../tool");
|
|
40
|
-
const mockup_support_1 = require("./mockup-support");
|
|
41
|
-
const page_verify_1 = require("./page-verify");
|
|
42
|
-
exports.mockupExportPdfTool = (0, tool_1.defineTool)({
|
|
43
|
-
name: "mockup_export_pdf",
|
|
44
|
-
title: "Export a mockup to PDF",
|
|
45
|
-
description: "Prints a mockup to one PDF at mockups/<name>/export.pdf: a cover with its title, the date, its counts and a contents list grouped by module; one sheet per screen, drawn in the dashboard's /mockup viewer by page_verify's headless Chromium (the real sidebar and header, on the spec's fixtures), with its menu path, its mode and its block list, and its open annotations when annotations is true; then the data model, an ERD and an entity table, when includeSchema is true and the spec has entities. Screens print grouped like the contents: the app's own pages, then each module in the spec's order, each page followed by its sub-pages. pages keeps only those page ids. A mockup whose installed module provides tenancy (saas) prints in SaaS mode, as saasTenant names a tenant of fixtures.tenants, the first one when it is absent; without such a module every page prints single-tenant and saasTenant is refused. Refused while another export of the mockup runs, from this tool or the viewer's Export PDF button. Answers { path, screens, undrawn, schema }: undrawn lists the pages the viewer did not draw in time, printed without a picture. The first call installs Chromium, as page_verify's does. Development only.",
|
|
46
|
-
effect: "builder",
|
|
47
|
-
input: plan_1.exportOptionsSchema.extend({ name: mockup_support_1.mockupArgument }),
|
|
48
|
-
run: ({ name: raw, ...options }) => (0, mockup_support_1.withMockup)(raw, async (name) => {
|
|
49
|
-
const { startExport } = await Promise.resolve().then(() => __importStar(require("../mockup-export")));
|
|
50
|
-
const started = await startExport({
|
|
51
|
-
name,
|
|
52
|
-
mockupsDir: (0, mockup_1.defaultMockupsDir)(),
|
|
53
|
-
origin: (0, page_verify_1.dashboardOrigin)(),
|
|
54
|
-
options,
|
|
55
|
-
});
|
|
56
|
-
if (!started.ok)
|
|
57
|
-
return (0, tool_1.textResult)(started.message, true);
|
|
58
|
-
const outcome = await started.finished;
|
|
59
|
-
if (outcome.status === "failed")
|
|
60
|
-
return (0, tool_1.textResult)(outcome.message, true);
|
|
61
|
-
return (0, tool_1.jsonResult)({
|
|
62
|
-
path: `mockups/${name}/${mockup_1.EXPORT_PDF_FILE}`,
|
|
63
|
-
screens: outcome.screens,
|
|
64
|
-
undrawn: outcome.undrawn,
|
|
65
|
-
schema: outcome.schema,
|
|
66
|
-
});
|
|
67
|
-
}),
|
|
68
|
-
});
|
|
69
|
-
//# sourceMappingURL=mockup-export-pdf.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockup-export-pdf.js","sourceRoot":"","sources":["../../../src/mcp/tools/mockup-export-pdf.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAkE;AAClE,gDAA4D;AAC5D,kCAA6D;AAC7D,qDAA8D;AAC9D,+CAAgD;AAGnC,QAAA,mBAAmB,GAAG,IAAA,iBAAU,EAAC;IAC5C,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EACT,0rCAA0rC;IAC5rC,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,0BAAmB,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,+BAAc,EAAE,CAAC;IAC3D,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,EAAE,EAAE,CACjC,IAAA,2BAAU,EAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QAC7B,MAAM,EAAE,WAAW,EAAE,GAAG,wDAAa,kBAAkB,GAAC,CAAC;QACzD,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC;YAChC,IAAI;YACJ,UAAU,EAAE,IAAA,0BAAiB,GAAE;YAC/B,MAAM,EAAE,IAAA,6BAAe,GAAE;YACzB,OAAO;SACR,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,CAAC,EAAE;YAAE,OAAO,IAAA,iBAAU,EAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC1D,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC;QACvC,IAAI,OAAO,CAAC,MAAM,KAAK,QAAQ;YAAE,OAAO,IAAA,iBAAU,EAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC1E,OAAO,IAAA,iBAAU,EAAC;YAChB,IAAI,EAAE,WAAW,IAAI,IAAI,wBAAe,EAAE;YAC1C,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC,CAAC;IACL,CAAC,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mockupModuleCatalogTool: import("../tool").McpTool;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mockupModuleCatalogTool = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const mockup_1 = require("../../mockup");
|
|
6
|
-
const store_1 = require("../../store");
|
|
7
|
-
const tool_1 = require("../tool");
|
|
8
|
-
function describeModule(entry) {
|
|
9
|
-
const base = {
|
|
10
|
-
id: entry.id,
|
|
11
|
-
package: entry.package,
|
|
12
|
-
category: entry.category,
|
|
13
|
-
};
|
|
14
|
-
const manifest = (0, mockup_1.manifestOf)(entry.id);
|
|
15
|
-
if (manifest === undefined)
|
|
16
|
-
return { ...base, manifest: null };
|
|
17
|
-
return {
|
|
18
|
-
...base,
|
|
19
|
-
title: manifest.title,
|
|
20
|
-
purpose: manifest.description,
|
|
21
|
-
manifest: {
|
|
22
|
-
tenancy: manifest.tenancy === true,
|
|
23
|
-
widgets: manifest.widgets.map((widget) => widget.id),
|
|
24
|
-
settings: manifest.settings.map((page) => page.id),
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
exports.mockupModuleCatalogTool = (0, tool_1.defineTool)({
|
|
29
|
-
name: "mockup_module_catalog",
|
|
30
|
-
title: "List the DMS modules",
|
|
31
|
-
description: "Lists every official DMS module of the module store: the remote catalog of `store.catalogUrl` when it is configured and readable, the catalog @antelopejs/dms ships otherwise. Answers `{ modules }`, each `{ id, package, category, title?, purpose?, manifest }`. `id` is what a mockup's `modules` lists, `package` what `ajs project modules add` installs. `manifest` is what the module shows in a mockup: `tenancy` (it makes the app multi-tenant), the ids of its sidebar `widgets` and of the `settings` pages it adds. A module with `manifest: null` has no manifest in this dms version: a mockup cannot list it yet. Call it before proposing a module in a mockup interview, rather than relying on a list you remember. Changes nothing.",
|
|
32
|
-
effect: "read",
|
|
33
|
-
input: zod_1.z.object({}),
|
|
34
|
-
run: async () => (0, tool_1.jsonResult)({ modules: (await (0, store_1.loadStoreCatalog)()).map(describeModule) }),
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=mockup-module-catalog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockup-module-catalog.js","sourceRoot":"","sources":["../../../src/mcp/tools/mockup-module-catalog.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA0C;AAC1C,uCAAuE;AACvE,kCAAiD;AAsBjD,SAAS,cAAc,CAAC,KAAwB;IAC9C,MAAM,IAAI,GAAG;QACX,EAAE,EAAE,KAAK,CAAC,EAAE;QACZ,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;KACzB,CAAC;IACF,MAAM,QAAQ,GAAG,IAAA,mBAAU,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACtC,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,EAAE,GAAG,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC/D,OAAO;QACL,GAAG,IAAI;QACP,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,OAAO,EAAE,QAAQ,CAAC,WAAW;QAC7B,QAAQ,EAAE;YACR,OAAO,EAAE,QAAQ,CAAC,OAAO,KAAK,IAAI;YAClC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;YACpD,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;SACnD;KACF,CAAC;AACJ,CAAC;AAGY,QAAA,uBAAuB,GAAG,IAAA,iBAAU,EAAC;IAChD,IAAI,EAAE,uBAAuB;IAC7B,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EACT,0tBAA0tB;IAC5tB,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IACnB,GAAG,EAAE,KAAK,IAAI,EAAE,CACd,IAAA,iBAAU,EAAC,EAAE,OAAO,EAAE,CAAC,MAAM,IAAA,wBAAgB,GAAE,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC;CAC1E,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { MockupCustomLayout, MockupCustomLayoutState, MockupIssue, MockupPageLayout, MockupPageLayoutState } from "./model";
|
|
2
|
-
export type CustomLayouts = ReadonlyMap<string, MockupCustomLayoutState>;
|
|
3
|
-
export declare function compileLayouts(layouts: readonly MockupCustomLayout[], issues: MockupIssue[]): CustomLayouts;
|
|
4
|
-
export declare const SETTINGS_LAYOUT_STATE: MockupPageLayoutState;
|
|
5
|
-
export declare function layoutStateOf(layout: MockupPageLayout | undefined, inSettings: boolean, layouts: CustomLayouts): MockupPageLayoutState | undefined;
|