@antelopejs/dms 0.19.6 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +257 -1
- package/README.md +23 -14
- package/bin/control/backend-mode.test.mjs +112 -0
- package/bin/control/backend-records.test.mjs +154 -100
- package/bin/control/backend.mjs +42 -25
- package/bin/control/backend.test.mjs +22 -1
- package/bin/control/base.mjs +6 -1
- package/bin/control/build-cache.mjs +18 -6
- package/bin/control/build-key-refusals.test.mjs +8 -8
- package/bin/control/build-key.mjs +18 -13
- package/bin/control/build-key.test.mjs +26 -1
- package/bin/control/build-layout.test.mjs +57 -14
- package/bin/control/commands-stack.mjs +1 -0
- package/bin/control/forwarder.test.mjs +128 -2
- package/bin/control/helpers/ephemeral-range.mjs +18 -0
- package/bin/control/helpers/fake-run.mjs +86 -17
- package/bin/control/helpers/key-fixture.mjs +9 -6
- package/bin/control/helpers/narrow-range.mjs +35 -0
- package/bin/control/helpers/pids.mjs +10 -0
- package/bin/control/helpers/tree.mjs +4 -4
- package/bin/control/journey-load.mjs +49 -0
- package/bin/control/journey.mjs +6 -41
- package/bin/control/journey.test.mjs +100 -41
- package/bin/control/mail.mjs +8 -2
- package/bin/control/module-root.mjs +7 -3
- package/bin/control/module-root.test.mjs +7 -5
- package/bin/control/mongo-server.test.mjs +64 -19
- package/bin/control/mongo.mjs +12 -3
- package/bin/control/namespaces.test.mjs +50 -31
- package/bin/control/options.mjs +1 -0
- package/bin/control/processes.mjs +72 -1
- package/bin/control/processes.test.mjs +98 -64
- package/bin/control/renderer.test.mjs +2 -2
- package/bin/control/run-ports.test.mjs +141 -0
- package/bin/control/run-state.mjs +9 -3
- package/bin/control/stack.mjs +93 -14
- package/bin/control/tab.test.mjs +1 -1
- package/bin/control/verify/formal.test.mjs +2 -2
- package/bin/control/verify/map.mjs +1 -1
- package/bin/control/verify/verdict.mjs +1 -1
- package/bin/dms-control.mjs +7 -3
- package/checks/dms-components.d.mts +38 -0
- package/data/mockup-example/spec.json +209 -0
- package/data/mockup-spec.schema.json +10957 -0
- package/data/module-store/catalog.json +1 -7
- package/dist/attachments/read.js +2 -1
- package/dist/attachments/read.js.map +1 -1
- package/dist/attachments/save.js +2 -1
- package/dist/attachments/save.js.map +1 -1
- package/dist/attachments/stored-claims.d.ts +2 -0
- package/dist/attachments/stored-claims.js +21 -0
- package/dist/attachments/stored-claims.js.map +1 -0
- package/dist/branding/index.d.ts +2 -0
- package/dist/branding/index.js +19 -0
- package/dist/branding/index.js.map +1 -0
- package/dist/branding/page.d.ts +10 -0
- package/dist/branding/page.js +22 -0
- package/dist/branding/page.js.map +1 -0
- package/dist/branding/register.d.ts +1 -0
- package/dist/branding/register.js +10 -0
- package/dist/branding/register.js.map +1 -0
- package/dist/branding/routes.d.ts +18 -0
- package/dist/branding/routes.js +78 -0
- package/dist/branding/routes.js.map +1 -0
- package/dist/branding/theme-schemas.d.ts +484 -0
- package/dist/branding/theme-schemas.js +52 -0
- package/dist/branding/theme-schemas.js.map +1 -0
- package/dist/builder.d.ts +2 -0
- package/dist/builder.js +64 -0
- package/dist/builder.js.map +1 -0
- package/dist/config/internal/state.d.ts +20 -0
- package/dist/config/internal/state.js +12 -0
- package/dist/config/internal/state.js.map +1 -1
- package/dist/crons/cleanup-user-invites.js +7 -1
- package/dist/crons/cleanup-user-invites.js.map +1 -1
- package/dist/db/guard-row.d.ts +2 -2
- package/dist/db/guard-row.js +1 -1
- package/dist/db/guard-row.js.map +1 -1
- package/dist/db/index.d.ts +1 -0
- package/dist/db/index.js +1 -0
- package/dist/db/index.js.map +1 -1
- package/dist/db/models/attachments.model.d.ts +3 -3
- package/dist/db/models/setupToken.model.d.ts +3 -3
- package/dist/db/models/signInAttempts.model.d.ts +3 -3
- package/dist/db/models/systemState.model.d.ts +3 -3
- package/dist/db/models/userEmailChanges.model.d.ts +3 -3
- package/dist/db/models/userKnownDevices.model.d.ts +3 -3
- package/dist/db/models/userNotificationPreferences.model.d.ts +3 -3
- package/dist/db/models/userNotificationPreferences.model.js +2 -1
- package/dist/db/models/userNotificationPreferences.model.js.map +1 -1
- package/dist/db/models/userNotifications.model.d.ts +3 -3
- package/dist/db/row-id.d.ts +4 -0
- package/dist/db/row-id.js +10 -0
- package/dist/db/row-id.js.map +1 -0
- package/dist/dev/module-update-notifications.js +2 -4
- package/dist/dev/module-update-notifications.js.map +1 -1
- package/dist/implementations/dms/connection-access.d.ts +8 -0
- package/dist/implementations/dms/connection-access.js +23 -0
- package/dist/implementations/dms/connection-access.js.map +1 -0
- package/dist/implementations/dms/dev-handshake.js +2 -5
- package/dist/implementations/dms/dev-handshake.js.map +1 -1
- package/dist/implementations/dms/page/access.d.ts +8 -0
- package/dist/implementations/dms/page/access.js +15 -3
- package/dist/implementations/dms/page/access.js.map +1 -1
- package/dist/implementations/dms/page/controller.d.ts +5 -5
- package/dist/implementations/dms/page/controller.js +9 -6
- package/dist/implementations/dms/page/controller.js.map +1 -1
- package/dist/implementations/dms/page/preview-menu.js +1 -1
- package/dist/implementations/dms/page/preview-menu.js.map +1 -1
- package/dist/implementations/dms/page/preview-models.d.ts +10 -10
- package/dist/implementations/dms/page/registry.js +2 -2
- package/dist/implementations/dms/page/registry.js.map +1 -1
- package/dist/implementations/dms/page/types.d.ts +1 -1
- package/dist/implementations/dms/page.d.ts +2 -1
- package/dist/implementations/dms/page.js +2 -1
- package/dist/implementations/dms/page.js.map +1 -1
- package/dist/implementations/dms-auth/index.d.ts +3 -4
- package/dist/implementations/dms-auth/index.js +39 -62
- package/dist/implementations/dms-auth/index.js.map +1 -1
- package/dist/implementations/dms-auth/session-handoff.d.ts +1 -1
- package/dist/implementations/dms-auth/session-handoff.js +7 -22
- package/dist/implementations/dms-auth/session-handoff.js.map +1 -1
- package/dist/implementations/dms-auth/token-secret.d.ts +7 -1
- package/dist/implementations/dms-auth/token-secret.js +59 -4
- package/dist/implementations/dms-auth/token-secret.js.map +1 -1
- package/dist/implementations/dms-auth/token-session.d.ts +2 -2
- package/dist/implementations/dms-auth/token-session.js +0 -7
- package/dist/implementations/dms-auth/token-session.js.map +1 -1
- package/dist/implementations/dms-base/bulk-selection.js +5 -2
- package/dist/implementations/dms-base/bulk-selection.js.map +1 -1
- package/dist/implementations/dms-base/export-jobs.d.ts +1 -4
- package/dist/implementations/dms-base/export-jobs.js +8 -12
- package/dist/implementations/dms-base/export-jobs.js.map +1 -1
- package/dist/implementations/dms-base/footer-summary.d.ts +2 -1
- package/dist/implementations/dms-base/footer-summary.js +1 -1
- package/dist/implementations/dms-base/footer-summary.js.map +1 -1
- package/dist/implementations/dms-base/search-route.d.ts +3 -3
- package/dist/implementations/dms-base/search-route.js +6 -3
- package/dist/implementations/dms-base/search-route.js.map +1 -1
- package/dist/implementations/dms-base/table-view.d.ts +2 -2
- package/dist/implementations/dms-base/table-view.js +21 -12
- package/dist/implementations/dms-base/table-view.js.map +1 -1
- package/dist/implementations/dms-builder/database.d.ts +13 -0
- package/dist/implementations/dms-builder/database.js +126 -0
- package/dist/implementations/dms-builder/database.js.map +1 -0
- package/dist/implementations/dms-builder/engine/access-grant.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/access-grant.js +275 -0
- package/dist/implementations/dms-builder/engine/access-grant.js.map +1 -0
- package/dist/implementations/dms-builder/engine/access-mongodb.d.ts +20 -0
- package/dist/implementations/dms-builder/engine/access-mongodb.js +30 -0
- package/dist/implementations/dms-builder/engine/access-mongodb.js.map +1 -0
- package/dist/implementations/dms-builder/engine/access-mysql.d.ts +8 -0
- package/dist/implementations/dms-builder/engine/access-mysql.js +11 -0
- package/dist/implementations/dms-builder/engine/access-mysql.js.map +1 -0
- package/dist/implementations/dms-builder/engine/access-postgres.d.ts +8 -0
- package/dist/implementations/dms-builder/engine/access-postgres.js +11 -0
- package/dist/implementations/dms-builder/engine/access-postgres.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis-fields.d.ts +25 -0
- package/dist/implementations/dms-builder/engine/analysis-fields.js +272 -0
- package/dist/implementations/dms-builder/engine/analysis-fields.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis-input.d.ts +28 -0
- package/dist/implementations/dms-builder/engine/analysis-input.js +38 -0
- package/dist/implementations/dms-builder/engine/analysis-input.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis-job.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/analysis-job.js +195 -0
- package/dist/implementations/dms-builder/engine/analysis-job.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis-names.d.ts +14 -0
- package/dist/implementations/dms-builder/engine/analysis-names.js +94 -0
- package/dist/implementations/dms-builder/engine/analysis-names.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis-relations.d.ts +19 -0
- package/dist/implementations/dms-builder/engine/analysis-relations.js +145 -0
- package/dist/implementations/dms-builder/engine/analysis-relations.js.map +1 -0
- package/dist/implementations/dms-builder/engine/analysis.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/analysis.js +185 -0
- package/dist/implementations/dms-builder/engine/analysis.js.map +1 -0
- package/dist/implementations/dms-builder/engine/block-target.d.ts +23 -0
- package/dist/implementations/dms-builder/engine/block-target.js +80 -0
- package/dist/implementations/dms-builder/engine/block-target.js.map +1 -0
- package/dist/implementations/dms-builder/engine/block-tree.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/block-tree.js +130 -0
- package/dist/implementations/dms-builder/engine/block-tree.js.map +1 -0
- package/dist/implementations/dms-builder/engine/catalog-connection.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/catalog-connection.js +73 -0
- package/dist/implementations/dms-builder/engine/catalog-connection.js.map +1 -0
- package/dist/implementations/dms-builder/engine/catalog-inference.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/catalog-inference.js +387 -0
- package/dist/implementations/dms-builder/engine/catalog-inference.js.map +1 -0
- package/dist/implementations/dms-builder/engine/catalog.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/catalog.js +128 -0
- package/dist/implementations/dms-builder/engine/catalog.js.map +1 -0
- package/dist/implementations/dms-builder/engine/chain.d.ts +21 -0
- package/dist/implementations/dms-builder/engine/chain.js +98 -0
- package/dist/implementations/dms-builder/engine/chain.js.map +1 -0
- package/dist/implementations/dms-builder/engine/column-display.d.ts +41 -0
- package/dist/implementations/dms-builder/engine/column-display.js +267 -0
- package/dist/implementations/dms-builder/engine/column-display.js.map +1 -0
- package/dist/implementations/dms-builder/engine/column-label.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/column-label.js +21 -0
- package/dist/implementations/dms-builder/engine/column-label.js.map +1 -0
- package/dist/implementations/dms-builder/engine/compose-page.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/compose-page.js +346 -0
- package/dist/implementations/dms-builder/engine/compose-page.js.map +1 -0
- package/dist/implementations/dms-builder/engine/config-literal.d.ts +30 -0
- package/dist/implementations/dms-builder/engine/config-literal.js +401 -0
- package/dist/implementations/dms-builder/engine/config-literal.js.map +1 -0
- package/dist/implementations/dms-builder/engine/connection-access-config.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/connection-access-config.js +261 -0
- package/dist/implementations/dms-builder/engine/connection-access-config.js.map +1 -0
- package/dist/implementations/dms-builder/engine/connection-access.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/connection-access.js +207 -0
- package/dist/implementations/dms-builder/engine/connection-access.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-access.d.ts +21 -0
- package/dist/implementations/dms-builder/engine/database-access.js +98 -0
- package/dist/implementations/dms-builder/engine/database-access.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-check-input.d.ts +22 -0
- package/dist/implementations/dms-builder/engine/database-check-input.js +42 -0
- package/dist/implementations/dms-builder/engine/database-check-input.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-check.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/database-check.js +37 -0
- package/dist/implementations/dms-builder/engine/database-check.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-connection-remove.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/database-connection-remove.js +167 -0
- package/dist/implementations/dms-builder/engine/database-connection-remove.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-connection.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/database-connection.js +310 -0
- package/dist/implementations/dms-builder/engine/database-connection.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-host.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/database-host.js +37 -0
- package/dist/implementations/dms-builder/engine/database-host.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-pin.d.ts +12 -0
- package/dist/implementations/dms-builder/engine/database-pin.js +157 -0
- package/dist/implementations/dms-builder/engine/database-pin.js.map +1 -0
- package/dist/implementations/dms-builder/engine/database-repair.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/database-repair.js +91 -0
- package/dist/implementations/dms-builder/engine/database-repair.js.map +1 -0
- package/dist/implementations/dms-builder/engine/describe-value.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/describe-value.js +16 -0
- package/dist/implementations/dms-builder/engine/describe-value.js.map +1 -0
- package/dist/implementations/dms-builder/engine/display-defaults.d.ts +15 -0
- package/dist/implementations/dms-builder/engine/display-defaults.js +96 -0
- package/dist/implementations/dms-builder/engine/display-defaults.js.map +1 -0
- package/dist/implementations/dms-builder/engine/dms-database.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/dms-database.js +70 -0
- package/dist/implementations/dms-builder/engine/dms-database.js.map +1 -0
- package/dist/implementations/dms-builder/engine/driver-packages.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/driver-packages.js +87 -0
- package/dist/implementations/dms-builder/engine/driver-packages.js.map +1 -0
- package/dist/implementations/dms-builder/engine/emit.d.ts +12 -0
- package/dist/implementations/dms-builder/engine/emit.js +157 -0
- package/dist/implementations/dms-builder/engine/emit.js.map +1 -0
- package/dist/implementations/dms-builder/engine/entry-connections.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/entry-connections.js +123 -0
- package/dist/implementations/dms-builder/engine/entry-connections.js.map +1 -0
- package/dist/implementations/dms-builder/engine/env-lines.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/env-lines.js +66 -0
- package/dist/implementations/dms-builder/engine/env-lines.js.map +1 -0
- package/dist/implementations/dms-builder/engine/expression.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/expression.js +90 -0
- package/dist/implementations/dms-builder/engine/expression.js.map +1 -0
- package/dist/implementations/dms-builder/engine/file-batch.d.ts +17 -0
- package/dist/implementations/dms-builder/engine/file-batch.js +154 -0
- package/dist/implementations/dms-builder/engine/file-batch.js.map +1 -0
- package/dist/implementations/dms-builder/engine/file-paths.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/file-paths.js +18 -0
- package/dist/implementations/dms-builder/engine/file-paths.js.map +1 -0
- package/dist/implementations/dms-builder/engine/guards.d.ts +8 -0
- package/dist/implementations/dms-builder/engine/guards.js +27 -0
- package/dist/implementations/dms-builder/engine/guards.js.map +1 -0
- package/dist/implementations/dms-builder/engine/held-value.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/held-value.js +37 -0
- package/dist/implementations/dms-builder/engine/held-value.js.map +1 -0
- package/dist/implementations/dms-builder/engine/index.d.ts +65 -0
- package/dist/implementations/dms-builder/engine/index.js +84 -0
- package/dist/implementations/dms-builder/engine/index.js.map +1 -0
- package/dist/implementations/dms-builder/engine/indexed-project.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/indexed-project.js +18 -0
- package/dist/implementations/dms-builder/engine/indexed-project.js.map +1 -0
- package/dist/implementations/dms-builder/engine/inherited-variables.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/inherited-variables.js +19 -0
- package/dist/implementations/dms-builder/engine/inherited-variables.js.map +1 -0
- package/dist/implementations/dms-builder/engine/interface-capabilities.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/interface-capabilities.js +28 -0
- package/dist/implementations/dms-builder/engine/interface-capabilities.js.map +1 -0
- package/dist/implementations/dms-builder/engine/interface-ids.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/interface-ids.js +6 -0
- package/dist/implementations/dms-builder/engine/interface-ids.js.map +1 -0
- package/dist/implementations/dms-builder/engine/literal-overrides.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/literal-overrides.js +54 -0
- package/dist/implementations/dms-builder/engine/literal-overrides.js.map +1 -0
- package/dist/implementations/dms-builder/engine/literals.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/literals.js +68 -0
- package/dist/implementations/dms-builder/engine/literals.js.map +1 -0
- package/dist/implementations/dms-builder/engine/local-bindings.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/local-bindings.js +165 -0
- package/dist/implementations/dms-builder/engine/local-bindings.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources-batch.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/map-resources-batch.js +142 -0
- package/dist/implementations/dms-builder/engine/map-resources-batch.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources-pages.d.ts +12 -0
- package/dist/implementations/dms-builder/engine/map-resources-pages.js +242 -0
- package/dist/implementations/dms-builder/engine/map-resources-pages.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources-plan.d.ts +54 -0
- package/dist/implementations/dms-builder/engine/map-resources-plan.js +269 -0
- package/dist/implementations/dms-builder/engine/map-resources-plan.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources-references.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/map-resources-references.js +74 -0
- package/dist/implementations/dms-builder/engine/map-resources-references.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources-repairs.d.ts +18 -0
- package/dist/implementations/dms-builder/engine/map-resources-repairs.js +105 -0
- package/dist/implementations/dms-builder/engine/map-resources-repairs.js.map +1 -0
- package/dist/implementations/dms-builder/engine/map-resources.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/map-resources.js +347 -0
- package/dist/implementations/dms-builder/engine/map-resources.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mapped-choices.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/mapped-choices.js +153 -0
- package/dist/implementations/dms-builder/engine/mapped-choices.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mapped-displays.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/mapped-displays.js +56 -0
- package/dist/implementations/dms-builder/engine/mapped-displays.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mapped-modules.d.ts +10 -0
- package/dist/implementations/dms-builder/engine/mapped-modules.js +120 -0
- package/dist/implementations/dms-builder/engine/mapped-modules.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mapped-routes.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/mapped-routes.js +11 -0
- package/dist/implementations/dms-builder/engine/mapped-routes.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mapping-refusal.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/mapping-refusal.js +11 -0
- package/dist/implementations/dms-builder/engine/mapping-refusal.js.map +1 -0
- package/dist/implementations/dms-builder/engine/mixed-types.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/mixed-types.js +32 -0
- package/dist/implementations/dms-builder/engine/mixed-types.js.map +1 -0
- package/dist/implementations/dms-builder/engine/model-methods-keep.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/model-methods-keep.js +25 -0
- package/dist/implementations/dms-builder/engine/model-methods-keep.js.map +1 -0
- package/dist/implementations/dms-builder/engine/module-loader.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/module-loader.js +30 -0
- package/dist/implementations/dms-builder/engine/module-loader.js.map +1 -0
- package/dist/implementations/dms-builder/engine/module-reload.d.ts +21 -0
- package/dist/implementations/dms-builder/engine/module-reload.js +90 -0
- package/dist/implementations/dms-builder/engine/module-reload.js.map +1 -0
- package/dist/implementations/dms-builder/engine/modules.d.ts +17 -0
- package/dist/implementations/dms-builder/engine/modules.js +193 -0
- package/dist/implementations/dms-builder/engine/modules.js.map +1 -0
- package/dist/implementations/dms-builder/engine/name-words.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/name-words.js +26 -0
- package/dist/implementations/dms-builder/engine/name-words.js.map +1 -0
- package/dist/implementations/dms-builder/engine/native-kind.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/native-kind.js +41 -0
- package/dist/implementations/dms-builder/engine/native-kind.js.map +1 -0
- package/dist/implementations/dms-builder/engine/ops-blocks.d.ts +25 -0
- package/dist/implementations/dms-builder/engine/ops-blocks.js +334 -0
- package/dist/implementations/dms-builder/engine/ops-blocks.js.map +1 -0
- package/dist/implementations/dms-builder/engine/ops-categories.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/ops-categories.js +178 -0
- package/dist/implementations/dms-builder/engine/ops-categories.js.map +1 -0
- package/dist/implementations/dms-builder/engine/ops.d.ts +40 -0
- package/dist/implementations/dms-builder/engine/ops.js +383 -0
- package/dist/implementations/dms-builder/engine/ops.js.map +1 -0
- package/dist/implementations/dms-builder/engine/options-patch.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/options-patch.js +58 -0
- package/dist/implementations/dms-builder/engine/options-patch.js.map +1 -0
- package/dist/implementations/dms-builder/engine/own-connections.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/own-connections.js +21 -0
- package/dist/implementations/dms-builder/engine/own-connections.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-access.d.ts +31 -0
- package/dist/implementations/dms-builder/engine/page-access.js +159 -0
- package/dist/implementations/dms-builder/engine/page-access.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-category-move.d.ts +16 -0
- package/dist/implementations/dms-builder/engine/page-category-move.js +121 -0
- package/dist/implementations/dms-builder/engine/page-category-move.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-delete.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/page-delete.js +53 -0
- package/dist/implementations/dms-builder/engine/page-delete.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-draft-validation.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/page-draft-validation.js +200 -0
- package/dist/implementations/dms-builder/engine/page-draft-validation.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-draft.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/page-draft.js +336 -0
- package/dist/implementations/dms-builder/engine/page-draft.js.map +1 -0
- package/dist/implementations/dms-builder/engine/page-structure.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/page-structure.js +48 -0
- package/dist/implementations/dms-builder/engine/page-structure.js.map +1 -0
- package/dist/implementations/dms-builder/engine/paths.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/paths.js +31 -0
- package/dist/implementations/dms-builder/engine/paths.js.map +1 -0
- package/dist/implementations/dms-builder/engine/permissions.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/permissions.js +43 -0
- package/dist/implementations/dms-builder/engine/permissions.js.map +1 -0
- package/dist/implementations/dms-builder/engine/placement.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/placement.js +55 -0
- package/dist/implementations/dms-builder/engine/placement.js.map +1 -0
- package/dist/implementations/dms-builder/engine/planned-page.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/planned-page.js +14 -0
- package/dist/implementations/dms-builder/engine/planned-page.js.map +1 -0
- package/dist/implementations/dms-builder/engine/preview.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/preview.js +346 -0
- package/dist/implementations/dms-builder/engine/preview.js.map +1 -0
- package/dist/implementations/dms-builder/engine/price-currency.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/price-currency.js +53 -0
- package/dist/implementations/dms-builder/engine/price-currency.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-client.d.ts +15 -0
- package/dist/implementations/dms-builder/engine/probe-client.js +41 -0
- package/dist/implementations/dms-builder/engine/probe-client.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-connections.d.ts +10 -0
- package/dist/implementations/dms-builder/engine/probe-connections.js +43 -0
- package/dist/implementations/dms-builder/engine/probe-connections.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-mongodb.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/probe-mongodb.js +92 -0
- package/dist/implementations/dms-builder/engine/probe-mongodb.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-mysql.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/probe-mysql.js +136 -0
- package/dist/implementations/dms-builder/engine/probe-mysql.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-postgres.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/probe-postgres.js +80 -0
- package/dist/implementations/dms-builder/engine/probe-postgres.js.map +1 -0
- package/dist/implementations/dms-builder/engine/probe-rethinkdb.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/probe-rethinkdb.js +92 -0
- package/dist/implementations/dms-builder/engine/probe-rethinkdb.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-entry.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/project-config-entry.js +164 -0
- package/dist/implementations/dms-builder/engine/project-config-entry.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-ops.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/project-config-ops.js +184 -0
- package/dist/implementations/dms-builder/engine/project-config-ops.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-readers.d.ts +15 -0
- package/dist/implementations/dms-builder/engine/project-config-readers.js +125 -0
- package/dist/implementations/dms-builder/engine/project-config-readers.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-remove.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/project-config-remove.js +104 -0
- package/dist/implementations/dms-builder/engine/project-config-remove.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-steps.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/project-config-steps.js +30 -0
- package/dist/implementations/dms-builder/engine/project-config-steps.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config-text.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/project-config-text.js +36 -0
- package/dist/implementations/dms-builder/engine/project-config-text.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-config.d.ts +34 -0
- package/dist/implementations/dms-builder/engine/project-config.js +236 -0
- package/dist/implementations/dms-builder/engine/project-config.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-env-loading.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/project-env-loading.js +175 -0
- package/dist/implementations/dms-builder/engine/project-env-loading.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-env.d.ts +16 -0
- package/dist/implementations/dms-builder/engine/project-env.js +199 -0
- package/dist/implementations/dms-builder/engine/project-env.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project-scaffold.d.ts +31 -0
- package/dist/implementations/dms-builder/engine/project-scaffold.js +209 -0
- package/dist/implementations/dms-builder/engine/project-scaffold.js.map +1 -0
- package/dist/implementations/dms-builder/engine/project.d.ts +24 -0
- package/dist/implementations/dms-builder/engine/project.js +281 -0
- package/dist/implementations/dms-builder/engine/project.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-chain-series.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/query-chain-series.js +288 -0
- package/dist/implementations/dms-builder/engine/query-chain-series.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-chain.d.ts +40 -0
- package/dist/implementations/dms-builder/engine/query-chain.js +181 -0
- package/dist/implementations/dms-builder/engine/query-chain.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-emit.d.ts +42 -0
- package/dist/implementations/dms-builder/engine/query-emit.js +200 -0
- package/dist/implementations/dms-builder/engine/query-emit.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-ops-emit.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/query-ops-emit.js +284 -0
- package/dist/implementations/dms-builder/engine/query-ops-emit.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-ops.d.ts +32 -0
- package/dist/implementations/dms-builder/engine/query-ops.js +216 -0
- package/dist/implementations/dms-builder/engine/query-ops.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-plan-execute.d.ts +51 -0
- package/dist/implementations/dms-builder/engine/query-plan-execute.js +129 -0
- package/dist/implementations/dms-builder/engine/query-plan-execute.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-plan.d.ts +39 -0
- package/dist/implementations/dms-builder/engine/query-plan.js +235 -0
- package/dist/implementations/dms-builder/engine/query-plan.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-preview.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/query-preview.js +184 -0
- package/dist/implementations/dms-builder/engine/query-preview.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-route-response.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/query-route-response.js +90 -0
- package/dist/implementations/dms-builder/engine/query-route-response.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-structure.d.ts +35 -0
- package/dist/implementations/dms-builder/engine/query-structure.js +330 -0
- package/dist/implementations/dms-builder/engine/query-structure.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-sync.d.ts +12 -0
- package/dist/implementations/dms-builder/engine/query-sync.js +153 -0
- package/dist/implementations/dms-builder/engine/query-sync.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-template-emit.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/query-template-emit.js +103 -0
- package/dist/implementations/dms-builder/engine/query-template-emit.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-template-series.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/query-template-series.js +206 -0
- package/dist/implementations/dms-builder/engine/query-template-series.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-template.d.ts +53 -0
- package/dist/implementations/dms-builder/engine/query-template.js +211 -0
- package/dist/implementations/dms-builder/engine/query-template.js.map +1 -0
- package/dist/implementations/dms-builder/engine/query-where.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/query-where.js +73 -0
- package/dist/implementations/dms-builder/engine/query-where.js.map +1 -0
- package/dist/implementations/dms-builder/engine/relabel-columns.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/relabel-columns.js +79 -0
- package/dist/implementations/dms-builder/engine/relabel-columns.js.map +1 -0
- package/dist/implementations/dms-builder/engine/reserved-names.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/reserved-names.js +20 -0
- package/dist/implementations/dms-builder/engine/reserved-names.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-data.d.ts +1 -0
- package/dist/implementations/dms-builder/engine/resource-data.js +18 -0
- package/dist/implementations/dms-builder/engine/resource-data.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-emit-types.d.ts +42 -0
- package/dist/implementations/dms-builder/engine/resource-emit-types.js +383 -0
- package/dist/implementations/dms-builder/engine/resource-emit-types.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-emit.d.ts +64 -0
- package/dist/implementations/dms-builder/engine/resource-emit.js +242 -0
- package/dist/implementations/dms-builder/engine/resource-emit.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-index.d.ts +30 -0
- package/dist/implementations/dms-builder/engine/resource-index.js +259 -0
- package/dist/implementations/dms-builder/engine/resource-index.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-ops-delete.d.ts +10 -0
- package/dist/implementations/dms-builder/engine/resource-ops-delete.js +379 -0
- package/dist/implementations/dms-builder/engine/resource-ops-delete.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-ops.d.ts +23 -0
- package/dist/implementations/dms-builder/engine/resource-ops.js +210 -0
- package/dist/implementations/dms-builder/engine/resource-ops.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-schema.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/resource-schema.js +20 -0
- package/dist/implementations/dms-builder/engine/resource-schema.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-structure.d.ts +18 -0
- package/dist/implementations/dms-builder/engine/resource-structure.js +299 -0
- package/dist/implementations/dms-builder/engine/resource-structure.js.map +1 -0
- package/dist/implementations/dms-builder/engine/resource-summary-route.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/resource-summary-route.js +49 -0
- package/dist/implementations/dms-builder/engine/resource-summary-route.js.map +1 -0
- package/dist/implementations/dms-builder/engine/rethinkdb-client.d.ts +34 -0
- package/dist/implementations/dms-builder/engine/rethinkdb-client.js +3 -0
- package/dist/implementations/dms-builder/engine/rethinkdb-client.js.map +1 -0
- package/dist/implementations/dms-builder/engine/scalar-guards.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/scalar-guards.js +23 -0
- package/dist/implementations/dms-builder/engine/scalar-guards.js.map +1 -0
- package/dist/implementations/dms-builder/engine/scan.d.ts +37 -0
- package/dist/implementations/dms-builder/engine/scan.js +249 -0
- package/dist/implementations/dms-builder/engine/scan.js.map +1 -0
- package/dist/implementations/dms-builder/engine/source-index.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/source-index.js +66 -0
- package/dist/implementations/dms-builder/engine/source-index.js.map +1 -0
- package/dist/implementations/dms-builder/engine/source-options.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/source-options.js +65 -0
- package/dist/implementations/dms-builder/engine/source-options.js.map +1 -0
- package/dist/implementations/dms-builder/engine/table-readers.d.ts +17 -0
- package/dist/implementations/dms-builder/engine/table-readers.js +141 -0
- package/dist/implementations/dms-builder/engine/table-readers.js.map +1 -0
- package/dist/implementations/dms-builder/engine/table-view-checks.d.ts +30 -0
- package/dist/implementations/dms-builder/engine/table-view-checks.js +146 -0
- package/dist/implementations/dms-builder/engine/table-view-checks.js.map +1 -0
- package/dist/implementations/dms-builder/engine/table-view-settings.d.ts +4 -0
- package/dist/implementations/dms-builder/engine/table-view-settings.js +298 -0
- package/dist/implementations/dms-builder/engine/table-view-settings.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-app-config.d.ts +17 -0
- package/dist/implementations/dms-builder/engine/theme-app-config.js +317 -0
- package/dist/implementations/dms-builder/engine/theme-app-config.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-assets.d.ts +18 -0
- package/dist/implementations/dms-builder/engine/theme-assets.js +160 -0
- package/dist/implementations/dms-builder/engine/theme-assets.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-config-imports.d.ts +7 -0
- package/dist/implementations/dms-builder/engine/theme-config-imports.js +80 -0
- package/dist/implementations/dms-builder/engine/theme-config-imports.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-draft.d.ts +2 -0
- package/dist/implementations/dms-builder/engine/theme-draft.js +35 -0
- package/dist/implementations/dms-builder/engine/theme-draft.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-entry.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/theme-entry.js +41 -0
- package/dist/implementations/dms-builder/engine/theme-entry.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-font-catalog.d.ts +15 -0
- package/dist/implementations/dms-builder/engine/theme-font-catalog.js +82 -0
- package/dist/implementations/dms-builder/engine/theme-font-catalog.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-fonts.d.ts +12 -0
- package/dist/implementations/dms-builder/engine/theme-fonts.js +154 -0
- package/dist/implementations/dms-builder/engine/theme-fonts.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-layer.d.ts +11 -0
- package/dist/implementations/dms-builder/engine/theme-layer.js +99 -0
- package/dist/implementations/dms-builder/engine/theme-layer.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-literals.d.ts +9 -0
- package/dist/implementations/dms-builder/engine/theme-literals.js +108 -0
- package/dist/implementations/dms-builder/engine/theme-literals.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-scaffold.d.ts +3 -0
- package/dist/implementations/dms-builder/engine/theme-scaffold.js +248 -0
- package/dist/implementations/dms-builder/engine/theme-scaffold.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-stylesheet.d.ts +14 -0
- package/dist/implementations/dms-builder/engine/theme-stylesheet.js +167 -0
- package/dist/implementations/dms-builder/engine/theme-stylesheet.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme-svg.d.ts +6 -0
- package/dist/implementations/dms-builder/engine/theme-svg.js +182 -0
- package/dist/implementations/dms-builder/engine/theme-svg.js.map +1 -0
- package/dist/implementations/dms-builder/engine/theme.d.ts +5 -0
- package/dist/implementations/dms-builder/engine/theme.js +275 -0
- package/dist/implementations/dms-builder/engine/theme.js.map +1 -0
- package/dist/implementations/dms-builder/engine/value.d.ts +35 -0
- package/dist/implementations/dms-builder/engine/value.js +152 -0
- package/dist/implementations/dms-builder/engine/value.js.map +1 -0
- package/dist/implementations/dms-builder/engine/writable.d.ts +28 -0
- package/dist/implementations/dms-builder/engine/writable.js +310 -0
- package/dist/implementations/dms-builder/engine/writable.js.map +1 -0
- package/dist/implementations/dms-builder/index.d.ts +129 -0
- package/dist/implementations/dms-builder/index.js +293 -0
- package/dist/implementations/dms-builder/index.js.map +1 -0
- package/dist/implementations/dms-notifications/index.d.ts +0 -1
- package/dist/implementations/dms-notifications/index.js +0 -4
- package/dist/implementations/dms-notifications/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp/access.d.ts +4 -0
- package/dist/mcp/access.js +11 -0
- package/dist/mcp/access.js.map +1 -0
- package/dist/mcp/backend-url.d.ts +8 -0
- package/dist/mcp/backend-url.js +39 -0
- package/dist/mcp/backend-url.js.map +1 -0
- package/dist/mcp/bridge.d.ts +8 -0
- package/dist/mcp/bridge.js +169 -0
- package/dist/mcp/bridge.js.map +1 -0
- package/dist/mcp/confirmation-gate.d.ts +13 -0
- package/dist/mcp/confirmation-gate.js +79 -0
- package/dist/mcp/confirmation-gate.js.map +1 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.js +73 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/json.d.ts +5 -0
- package/dist/mcp/json.js +14 -0
- package/dist/mcp/json.js.map +1 -0
- package/dist/mcp/log-buffer.d.ts +14 -0
- package/dist/mcp/log-buffer.js +65 -0
- package/dist/mcp/log-buffer.js.map +1 -0
- package/dist/mcp/page-verify/accounts.d.ts +35 -0
- package/dist/mcp/page-verify/accounts.js +106 -0
- package/dist/mcp/page-verify/accounts.js.map +1 -0
- package/dist/mcp/page-verify/browser.d.ts +2 -0
- package/dist/mcp/page-verify/browser.js +58 -0
- package/dist/mcp/page-verify/browser.js.map +1 -0
- package/dist/mcp/page-verify/controls.d.ts +13 -0
- package/dist/mcp/page-verify/controls.js +48 -0
- package/dist/mcp/page-verify/controls.js.map +1 -0
- package/dist/mcp/page-verify/failures.d.ts +2 -0
- package/dist/mcp/page-verify/failures.js +52 -0
- package/dist/mcp/page-verify/failures.js.map +1 -0
- package/dist/mcp/page-verify/forms.d.ts +12 -0
- package/dist/mcp/page-verify/forms.js +257 -0
- package/dist/mcp/page-verify/forms.js.map +1 -0
- package/dist/mcp/page-verify/index.d.ts +20 -0
- package/dist/mcp/page-verify/index.js +283 -0
- package/dist/mcp/page-verify/index.js.map +1 -0
- package/dist/mcp/page-verify/interactions.d.ts +8 -0
- package/dist/mcp/page-verify/interactions.js +191 -0
- package/dist/mcp/page-verify/interactions.js.map +1 -0
- package/dist/mcp/page-verify/mockup.d.ts +13 -0
- package/dist/mcp/page-verify/mockup.js +132 -0
- package/dist/mcp/page-verify/mockup.js.map +1 -0
- package/dist/mcp/page-verify/page-probe.d.ts +191 -0
- package/dist/mcp/page-verify/page-probe.js +107 -0
- package/dist/mcp/page-verify/page-probe.js.map +1 -0
- package/dist/mcp/page-verify/playwright.d.ts +147 -0
- package/dist/mcp/page-verify/playwright.js +15 -0
- package/dist/mcp/page-verify/playwright.js.map +1 -0
- package/dist/mcp/page-verify/render.d.ts +41 -0
- package/dist/mcp/page-verify/render.js +293 -0
- package/dist/mcp/page-verify/render.js.map +1 -0
- package/dist/mcp/page-verify/report.d.ts +116 -0
- package/dist/mcp/page-verify/report.js +8 -0
- package/dist/mcp/page-verify/report.js.map +1 -0
- package/dist/mcp/page-verify/targets.d.ts +8 -0
- package/dist/mcp/page-verify/targets.js +39 -0
- package/dist/mcp/page-verify/targets.js.map +1 -0
- package/dist/mcp/project-files.d.ts +20 -0
- package/dist/mcp/project-files.js +175 -0
- package/dist/mcp/project-files.js.map +1 -0
- package/dist/mcp/protocol.d.ts +9 -0
- package/dist/mcp/protocol.js +129 -0
- package/dist/mcp/protocol.js.map +1 -0
- package/dist/mcp/route.d.ts +9 -0
- package/dist/mcp/route.js +109 -0
- package/dist/mcp/route.js.map +1 -0
- package/dist/mcp/server.d.ts +8 -0
- package/dist/mcp/server.js +27 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/tool.d.ts +39 -0
- package/dist/mcp/tool.js +50 -0
- package/dist/mcp/tool.js.map +1 -0
- package/dist/mcp/tools/builder-catalog.d.ts +1 -0
- package/dist/mcp/tools/builder-catalog.js +73 -0
- package/dist/mcp/tools/builder-catalog.js.map +1 -0
- package/dist/mcp/tools/builder-compose.d.ts +1 -0
- package/dist/mcp/tools/builder-compose.js +95 -0
- package/dist/mcp/tools/builder-compose.js.map +1 -0
- package/dist/mcp/tools/builder-pages.d.ts +1 -0
- package/dist/mcp/tools/builder-pages.js +185 -0
- package/dist/mcp/tools/builder-pages.js.map +1 -0
- package/dist/mcp/tools/builder-project.d.ts +1 -0
- package/dist/mcp/tools/builder-project.js +304 -0
- package/dist/mcp/tools/builder-project.js.map +1 -0
- package/dist/mcp/tools/builder-queries.d.ts +12 -0
- package/dist/mcp/tools/builder-queries.js +110 -0
- package/dist/mcp/tools/builder-queries.js.map +1 -0
- package/dist/mcp/tools/builder-resources.d.ts +1 -0
- package/dist/mcp/tools/builder-resources.js +154 -0
- package/dist/mcp/tools/builder-resources.js.map +1 -0
- package/dist/mcp/tools/builder-shared.d.ts +14 -0
- package/dist/mcp/tools/builder-shared.js +44 -0
- package/dist/mcp/tools/builder-shared.js.map +1 -0
- package/dist/mcp/tools/builder-table-view.d.ts +246 -0
- package/dist/mcp/tools/builder-table-view.js +145 -0
- package/dist/mcp/tools/builder-table-view.js.map +1 -0
- package/dist/mcp/tools/builder-theme.d.ts +1 -0
- package/dist/mcp/tools/builder-theme.js +39 -0
- package/dist/mcp/tools/builder-theme.js.map +1 -0
- package/dist/mcp/tools/database.d.ts +1 -0
- package/dist/mcp/tools/database.js +114 -0
- package/dist/mcp/tools/database.js.map +1 -0
- package/dist/mcp/tools/index.d.ts +2 -0
- package/dist/mcp/tools/index.js +36 -0
- package/dist/mcp/tools/index.js.map +1 -0
- package/dist/mcp/tools/json-patch.d.ts +82 -0
- package/dist/mcp/tools/json-patch.js +144 -0
- package/dist/mcp/tools/json-patch.js.map +1 -0
- package/dist/mcp/tools/mockup-annotations.d.ts +1 -0
- package/dist/mcp/tools/mockup-annotations.js +32 -0
- package/dist/mcp/tools/mockup-annotations.js.map +1 -0
- package/dist/mcp/tools/mockup-apply-to-page.d.ts +1 -0
- package/dist/mcp/tools/mockup-apply-to-page.js +32 -0
- package/dist/mcp/tools/mockup-apply-to-page.js.map +1 -0
- package/dist/mcp/tools/mockup-from-page.d.ts +1 -0
- package/dist/mcp/tools/mockup-from-page.js +29 -0
- package/dist/mcp/tools/mockup-from-page.js.map +1 -0
- package/dist/mcp/tools/mockup-patch-spec.d.ts +1 -0
- package/dist/mcp/tools/mockup-patch-spec.js +67 -0
- package/dist/mcp/tools/mockup-patch-spec.js.map +1 -0
- package/dist/mcp/tools/mockup-resolve-annotation.d.ts +1 -0
- package/dist/mcp/tools/mockup-resolve-annotation.js +28 -0
- package/dist/mcp/tools/mockup-resolve-annotation.js.map +1 -0
- package/dist/mcp/tools/mockup-support.d.ts +9 -0
- package/dist/mcp/tools/mockup-support.js +45 -0
- package/dist/mcp/tools/mockup-support.js.map +1 -0
- package/dist/mcp/tools/mockup-write-spec.d.ts +1 -0
- package/dist/mcp/tools/mockup-write-spec.js +16 -0
- package/dist/mcp/tools/mockup-write-spec.js.map +1 -0
- package/dist/mcp/tools/mockup.d.ts +2 -0
- package/dist/mcp/tools/mockup.js +18 -0
- package/dist/mcp/tools/mockup.js.map +1 -0
- package/dist/mcp/tools/page-verify.d.ts +1 -0
- package/dist/mcp/tools/page-verify.js +116 -0
- package/dist/mcp/tools/page-verify.js.map +1 -0
- package/dist/mcp/tools/pages.d.ts +3 -0
- package/dist/mcp/tools/pages.js +77 -0
- package/dist/mcp/tools/pages.js.map +1 -0
- package/dist/mcp/tools/preview-blocks.d.ts +1 -0
- package/dist/mcp/tools/preview-blocks.js +252 -0
- package/dist/mcp/tools/preview-blocks.js.map +1 -0
- package/dist/mcp/tools/query-logs.d.ts +1 -0
- package/dist/mcp/tools/query-logs.js +25 -0
- package/dist/mcp/tools/query-logs.js.map +1 -0
- package/dist/mcp/tools/typecheck.d.ts +1 -0
- package/dist/mcp/tools/typecheck.js +110 -0
- package/dist/mcp/tools/typecheck.js.map +1 -0
- package/dist/mockup/anchor.d.ts +43 -0
- package/dist/mockup/anchor.js +193 -0
- package/dist/mockup/anchor.js.map +1 -0
- package/dist/mockup/annotations.d.ts +88 -0
- package/dist/mockup/annotations.js +169 -0
- package/dist/mockup/annotations.js.map +1 -0
- package/dist/mockup/apply-fate.d.ts +52 -0
- package/dist/mockup/apply-fate.js +148 -0
- package/dist/mockup/apply-fate.js.map +1 -0
- package/dist/mockup/apply-match.d.ts +39 -0
- package/dist/mockup/apply-match.js +129 -0
- package/dist/mockup/apply-match.js.map +1 -0
- package/dist/mockup/apply-names.d.ts +4 -0
- package/dist/mockup/apply-names.js +52 -0
- package/dist/mockup/apply-names.js.map +1 -0
- package/dist/mockup/apply-notes.d.ts +9 -0
- package/dist/mockup/apply-notes.js +16 -0
- package/dist/mockup/apply-notes.js.map +1 -0
- package/dist/mockup/apply-options.d.ts +18 -0
- package/dist/mockup/apply-options.js +117 -0
- package/dist/mockup/apply-options.js.map +1 -0
- package/dist/mockup/apply-plan.d.ts +23 -0
- package/dist/mockup/apply-plan.js +237 -0
- package/dist/mockup/apply-plan.js.map +1 -0
- package/dist/mockup/apply-to-page.d.ts +35 -0
- package/dist/mockup/apply-to-page.js +145 -0
- package/dist/mockup/apply-to-page.js.map +1 -0
- package/dist/mockup/built-sync.d.ts +16 -0
- package/dist/mockup/built-sync.js +53 -0
- package/dist/mockup/built-sync.js.map +1 -0
- package/dist/mockup/compile.d.ts +24 -0
- package/dist/mockup/compile.js +264 -0
- package/dist/mockup/compile.js.map +1 -0
- package/dist/mockup/controller-blocks.d.ts +35 -0
- package/dist/mockup/controller-blocks.js +204 -0
- package/dist/mockup/controller-blocks.js.map +1 -0
- package/dist/mockup/files.d.ts +18 -0
- package/dist/mockup/files.js +36 -0
- package/dist/mockup/files.js.map +1 -0
- package/dist/mockup/fixtures.d.ts +45 -0
- package/dist/mockup/fixtures.js +139 -0
- package/dist/mockup/fixtures.js.map +1 -0
- package/dist/mockup/form-fields.d.ts +3 -0
- package/dist/mockup/form-fields.js +75 -0
- package/dist/mockup/form-fields.js.map +1 -0
- package/dist/mockup/from-page-routes.d.ts +13 -0
- package/dist/mockup/from-page-routes.js +75 -0
- package/dist/mockup/from-page-routes.js.map +1 -0
- package/dist/mockup/from-page-sketch.d.ts +8 -0
- package/dist/mockup/from-page-sketch.js +53 -0
- package/dist/mockup/from-page-sketch.js.map +1 -0
- package/dist/mockup/from-page.d.ts +19 -0
- package/dist/mockup/from-page.js +296 -0
- package/dist/mockup/from-page.js.map +1 -0
- package/dist/mockup/index.d.ts +19 -0
- package/dist/mockup/index.js +59 -0
- package/dist/mockup/index.js.map +1 -0
- package/dist/mockup/json-schema.d.ts +3 -0
- package/dist/mockup/json-schema.js +253 -0
- package/dist/mockup/json-schema.js.map +1 -0
- package/dist/mockup/live-page.d.ts +45 -0
- package/dist/mockup/live-page.js +188 -0
- package/dist/mockup/live-page.js.map +1 -0
- package/dist/mockup/model.d.ts +372 -0
- package/dist/mockup/model.js +125 -0
- package/dist/mockup/model.js.map +1 -0
- package/dist/mockup/owner-controller.d.ts +12 -0
- package/dist/mockup/owner-controller.js +41 -0
- package/dist/mockup/owner-controller.js.map +1 -0
- package/dist/mockup/page.d.ts +19 -0
- package/dist/mockup/page.js +83 -0
- package/dist/mockup/page.js.map +1 -0
- package/dist/mockup/queue.d.ts +1 -0
- package/dist/mockup/queue.js +17 -0
- package/dist/mockup/queue.js.map +1 -0
- package/dist/mockup/routes.d.ts +30 -0
- package/dist/mockup/routes.js +274 -0
- package/dist/mockup/routes.js.map +1 -0
- package/dist/mockup/sample-rows.d.ts +7 -0
- package/dist/mockup/sample-rows.js +30 -0
- package/dist/mockup/sample-rows.js.map +1 -0
- package/dist/mockup/sketch-allowlist.d.ts +11 -0
- package/dist/mockup/sketch-allowlist.js +368 -0
- package/dist/mockup/sketch-allowlist.js.map +1 -0
- package/dist/mockup/sketch-css.d.ts +3 -0
- package/dist/mockup/sketch-css.js +306 -0
- package/dist/mockup/sketch-css.js.map +1 -0
- package/dist/mockup/sketch-html.d.ts +7 -0
- package/dist/mockup/sketch-html.js +243 -0
- package/dist/mockup/sketch-html.js.map +1 -0
- package/dist/mockup/sketch-limits.d.ts +1 -0
- package/dist/mockup/sketch-limits.js +5 -0
- package/dist/mockup/sketch-limits.js.map +1 -0
- package/dist/mockup/sketch-scan.d.ts +1 -0
- package/dist/mockup/sketch-scan.js +136 -0
- package/dist/mockup/sketch-scan.js.map +1 -0
- package/dist/mockup/sketch-tokens.d.ts +22 -0
- package/dist/mockup/sketch-tokens.js +42 -0
- package/dist/mockup/sketch-tokens.js.map +1 -0
- package/dist/mockup/sketch.d.ts +26 -0
- package/dist/mockup/sketch.js +134 -0
- package/dist/mockup/sketch.js.map +1 -0
- package/dist/mockup/source-routes.d.ts +24 -0
- package/dist/mockup/source-routes.js +105 -0
- package/dist/mockup/source-routes.js.map +1 -0
- package/dist/mockup/source.d.ts +29 -0
- package/dist/mockup/source.js +131 -0
- package/dist/mockup/source.js.map +1 -0
- package/dist/mockup/store.d.ts +63 -0
- package/dist/mockup/store.js +296 -0
- package/dist/mockup/store.js.map +1 -0
- package/dist/mockup/validate.d.ts +9 -0
- package/dist/mockup/validate.js +172 -0
- package/dist/mockup/validate.js.map +1 -0
- package/dist/pages/public/preview/index.d.ts +4 -0
- package/dist/pages/public/preview/index.js +3 -3
- package/dist/pages/public/preview/index.js.map +1 -1
- package/dist/pages/settings/users/invite-extension-routes.js.map +1 -1
- package/dist/pages/settings/users/notifications.d.ts +3 -4
- package/dist/pages/settings/users/notifications.js +8 -24
- package/dist/pages/settings/users/notifications.js.map +1 -1
- package/dist/pages/settings/users/permission-tree-nodes.d.ts +3 -3
- package/dist/pages/settings/users/permission-tree-nodes.js.map +1 -1
- package/dist/pages/settings/users/permission-warnings.js.map +1 -1
- package/dist/pages/settings/users/role-editor-store.d.ts +1 -0
- package/dist/pages/settings/users/role-editor-store.js +27 -7
- package/dist/pages/settings/users/role-editor-store.js.map +1 -1
- package/dist/pages/settings/users/role-preview.js +1 -1
- package/dist/pages/settings/users/role-preview.js.map +1 -1
- package/dist/pages/settings/users/roles.js +14 -0
- package/dist/pages/settings/users/roles.js.map +1 -1
- package/dist/pages/settings/users/two-factor-operations.d.ts +0 -1
- package/dist/pages/settings/users/two-factor-operations.js +0 -1
- package/dist/pages/settings/users/two-factor-operations.js.map +1 -1
- package/dist/realtime/sessions.d.ts +9 -0
- package/dist/realtime/sessions.js +6 -0
- package/dist/realtime/sessions.js.map +1 -1
- package/dist/routes/auth/logout.d.ts +2 -2
- package/dist/routes/auth/logout.js +3 -9
- package/dist/routes/auth/logout.js.map +1 -1
- package/dist/routes/auth/refresh.js +6 -8
- package/dist/routes/auth/refresh.js.map +1 -1
- package/dist/routes/auth/switch-tenant.js +8 -11
- package/dist/routes/auth/switch-tenant.js.map +1 -1
- package/dist/routes/auth/two-factor-throttle.js +5 -1
- package/dist/routes/auth/two-factor-throttle.js.map +1 -1
- package/dist/routes/auth.js +1 -1
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/files.d.ts +2 -2
- package/dist/routes/files.js +2 -2
- package/dist/routes/files.js.map +1 -1
- package/dist/routes/onboarding.js +4 -6
- package/dist/routes/onboarding.js.map +1 -1
- package/dist/routes/realtime.d.ts +3 -3
- package/dist/routes/realtime.js +22 -18
- package/dist/routes/realtime.js.map +1 -1
- package/dist/routes/system-state.d.ts +6 -6
- package/dist/routes/system-state.js +1 -1
- package/dist/routes/system-state.js.map +1 -1
- package/dist/store/catalog.d.ts +2 -2
- package/dist/store/declarations.d.ts +0 -3
- package/dist/store/declarations.js +5 -74
- package/dist/store/declarations.js.map +1 -1
- package/dist/store/internal/frontend/frontend-ready.d.ts +2 -2
- package/dist/store/registry.js +2 -4
- package/dist/store/registry.js.map +1 -1
- package/dist/store/runtime.d.ts +2 -2
- package/dist/store/tarball.js +12 -6
- package/dist/store/tarball.js.map +1 -1
- package/dist/utils/export-jobs-run.d.ts +6 -6
- package/dist/utils/export-jobs-run.js +3 -7
- package/dist/utils/export-jobs-run.js.map +1 -1
- package/dist/utils/export-jobs.js +20 -1
- package/dist/utils/export-jobs.js.map +1 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/owner-only-file.d.ts +1 -0
- package/dist/utils/owner-only-file.js +60 -0
- package/dist/utils/owner-only-file.js.map +1 -0
- package/dist/utils/package-manager/index.d.ts +1 -0
- package/dist/utils/package-manager/index.js +18 -0
- package/dist/utils/package-manager/index.js.map +1 -0
- package/dist/utils/package-manager.d.ts +12 -0
- package/dist/utils/package-manager.js +28 -0
- package/dist/utils/package-manager.js.map +1 -0
- package/dist/utils/page-access.d.ts +4 -0
- package/dist/utils/page-access.js +10 -3
- package/dist/utils/page-access.js.map +1 -1
- package/dist/utils/query-text.d.ts +2 -0
- package/dist/utils/query-text.js +7 -0
- package/dist/utils/query-text.js.map +1 -0
- package/dist/utils/row-action-rule-evaluator.d.ts +2 -2
- package/dist/utils/tenant-instances.js +3 -3
- package/dist/utils/tenant-instances.js.map +1 -1
- package/dist/validation/auth.schema.d.ts +6 -6
- package/dist/validation/regional-preferences.schema.d.ts +4 -4
- package/dist/validation/user-notification-preferences.schema.d.ts +0 -1
- package/dist/validation/user-notification-preferences.schema.js +6 -3
- package/dist/validation/user-notification-preferences.schema.js.map +1 -1
- package/frontend-vue/deferred-plugins.ts +2 -0
- package/frontend-vue/dms.frontend.ts +34 -1
- package/frontend-vue/dms.server.ts +3 -1
- package/frontend-vue/eslint-globals.generated.mjs +7 -1
- package/frontend-vue/layers/dms-auth/app/components/OAuthButtons.vue +1 -1
- package/frontend-vue/layers/dms-auth/app/middleware/auth.ts +18 -9
- package/frontend-vue/layers/dms-auth/server/accounts.ts +2 -8
- package/frontend-vue/layers/dms-auth/server/actions.ts +83 -60
- package/frontend-vue/layers/dms-auth/server/backend-answers.ts +95 -0
- package/frontend-vue/layers/dms-auth/server/oauth.ts +26 -29
- package/frontend-vue/layers/dms-auth/server/session.ts +62 -27
- package/frontend-vue/layers/dms-core/app/build/composables/auth/usePermissionPreview.ts +20 -9
- package/frontend-vue/layers/dms-core/app/build/composables/user/tablePreferences.ts +9 -7
- package/frontend-vue/layers/dms-core/app/build/utils/permission-preview.ts +4 -4
- package/frontend-vue/layers/dms-core/app/build/utils/sharedRealtimeConnection.ts +10 -0
- package/frontend-vue/layers/dms-core/app/composables/realtime/useUserRealtime.ts +2 -0
- package/frontend-vue/layers/dms-core/app/composables/useApiErrorPresenter.ts +1 -1
- package/frontend-vue/layers/dms-core/app/composables/user/usePreferences.ts +0 -16
- package/frontend-vue/layers/dms-core/app/composables/watch/useWatch.ts +4 -0
- package/frontend-vue/layers/dms-core/app/types/menu.ts +5 -0
- package/frontend-vue/layers/dms-core/app/types/page.ts +4 -6
- package/frontend-vue/layers/dms-core/app/utils/regional.ts +1 -2
- package/frontend-vue/layers/dms-layout/app/assets/css/main.css +28 -32
- package/frontend-vue/layers/dms-layout/app/assets/css/status.css +137 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingColorPair.vue +77 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingDeveloperPanel.vue +266 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingEditor.vue +316 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingLogoTile.vue +67 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingPaletteSwatches.vue +63 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingPreview.vue +138 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingSimplePanel.vue +171 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/BrandingValueInput.vue +36 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/api.ts +55 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/catalog.ts +209 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/color-input.ts +35 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/device-draft.ts +290 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/errors.ts +23 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/fonts.ts +106 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/header-action.ts +19 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/logo-tiles.ts +73 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/logos.ts +180 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/model.ts +391 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/preview-style.ts +182 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/raster.ts +97 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/theme-types.ts +105 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/useBrandingEditor.ts +256 -0
- package/frontend-vue/layers/dms-layout/app/build/branding/values.ts +103 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardFrame.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeaderActionsOutlet.vue +50 -32
- package/frontend-vue/layers/dms-layout/app/build/components/layout/PreviewSidebar.vue +62 -0
- package/frontend-vue/layers/dms-layout/app/build/components/layout/StageCard.vue +5 -5
- package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationCard.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleCatalogTile.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleStoreBanners.vue +4 -4
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxDisplay.vue +3 -3
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationPreferencesForm.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/profile/ProfilePersonalInfo.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/region/RegionFormatPreview.vue +3 -3
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RoleEditor.vue +5 -5
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RoleOwnerPanel.vue +3 -3
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePermissionArea.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePermissionLeaf.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolesList.vue +5 -5
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolesListItem.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/role-permissions.ts +34 -0
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/role-types.ts +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/useRoleEditor.ts +13 -10
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityBackupCodesModal.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityDialogFrame.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityEmail.vue +6 -6
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityPassword.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecuritySessions.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityTwoFactor.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceAccessibility.vue +2 -2
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/CssVariablesList.vue +15 -7
- package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/ScalePreview.vue +1 -0
- package/frontend-vue/layers/dms-layout/app/build/composables/general/useGithubStarPrompt.ts +7 -3
- package/frontend-vue/layers/dms-layout/app/build/composables/notification/useNotificationGroupsOpen.ts +7 -3
- package/frontend-vue/layers/dms-layout/app/build/composables/settings/security/useSecurityOverview.ts +0 -1
- package/frontend-vue/layers/dms-layout/app/build/mockup/header-action.ts +125 -0
- package/frontend-vue/layers/dms-layout/app/build/mockups/header-action.ts +19 -0
- package/frontend-vue/layers/dms-layout/app/build/utils/module-store-catalog.ts +5 -7
- package/frontend-vue/layers/dms-layout/app/build/utils/modules-catalog.ts +1 -6
- package/frontend-vue/layers/dms-layout/app/components/AppWidgetsDock.vue +36 -2
- package/frontend-vue/layers/dms-layout/app/components/layout/HStack.vue +2 -0
- package/frontend-vue/layers/dms-layout/app/components/layout/VStack.vue +2 -0
- package/frontend-vue/layers/dms-layout/app/components/navigation/CollapsedMenuItem.vue +20 -12
- package/frontend-vue/layers/dms-layout/app/components/navigation/NavigationMenu.vue +63 -2
- package/frontend-vue/layers/dms-layout/app/composables/layout/useServedHeaderActions.ts +10 -3
- package/frontend-vue/layers/dms-layout/app/composables/profile/useUserLanguage.ts +5 -0
- package/frontend-vue/layers/dms-layout/app/composables/useAppWidgets.ts +12 -0
- package/frontend-vue/layers/dms-layout/app/composables/useHeaderActions.ts +4 -4
- package/frontend-vue/layers/dms-layout/app/composables/useMenuLocks.ts +48 -0
- package/frontend-vue/layers/dms-layout/app/custom-layouts/EmptyLayout.vue +1 -1
- package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +47 -5
- package/frontend-vue/layers/dms-layout/app/custom-pages/modules-store.vue +11 -8
- package/frontend-vue/layers/dms-layout/app/custom-pages/modules.vue +10 -10
- package/frontend-vue/layers/dms-layout/app/custom-pages/settings/shortcuts.vue +4 -4
- package/frontend-vue/layers/dms-layout/app/entries/branding/BrandingEditor.ts +1 -0
- package/frontend-vue/layers/dms-layout/app/entries/branding/header-action.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/entries/branding/model.ts +5 -0
- package/frontend-vue/layers/dms-layout/app/entries/components/layout/LayoutFooter.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/entries/mockup/header-action.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/entries/mockups/header-action.ts +2 -0
- package/frontend-vue/layers/dms-layout/app/pages/[...slug].vue +4 -0
- package/frontend-vue/layers/dms-layout/app/plugins/dms-mcp-navigate.client.ts +13 -0
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-en-GB.json +181 -12
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +181 -12
- package/frontend-vue/layers/dms-layout/server/html-render.ts +3 -6
- package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/StepMeta.vue +1 -1
- package/frontend-vue/layers/dms-onboarding/app/custom-pages/onboarding.vue +3 -3
- package/frontend-vue/layers/dms-onboarding/app/entries/components/onboarding/steps/StepReady.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/BlockPreviewSketch.vue +77 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupAnnotations.vue +93 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupBlockCatalog.vue +76 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupCommentPanel.vue +85 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEditOverlay.vue +240 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEditPanel.vue +91 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIndex.vue +66 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspector.vue +182 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspectorField.vue +172 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIssues.vue +32 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupLayers.vue +44 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPageInspector.vue +92 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPagesList.vue +125 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPromptModal.vue +51 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +138 -0
- package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +493 -0
- package/frontend-vue/layers/dms-ui/app/build/components/containers/TargetComponentTree.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormFieldControl.vue +16 -8
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormSectionNav.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/build/components/form/FormSections.vue +7 -4
- package/frontend-vue/layers/dms-ui/app/build/components/section/context.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/stat/StatCell.vue +3 -3
- package/frontend-vue/layers/dms-ui/app/build/components/table/FiltersRow.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuColumns.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuDensity.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuFilter.vue +5 -5
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuImport.vue +6 -6
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuPage.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuRoot.vue +6 -6
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuSort.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/MenuViewMode.vue +5 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/RowSelection.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/Table.types.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Actions.vue → TableActions.vue} +22 -22
- package/frontend-vue/layers/dms-ui/app/build/components/table/TableBody.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Empty.vue → TableEmpty.vue} +2 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Menu.vue → TableMenu.vue} +1 -0
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Pagination.vue → TablePagination.vue} +1 -1
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Table.vue → TableRoot.vue} +3 -3
- package/frontend-vue/layers/dms-ui/app/build/components/table/{Views.vue → TableViews.vue} +37 -14
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardRowActions.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardsDisplay.vue +9 -5
- package/frontend-vue/layers/dms-ui/app/build/components/table-view/ExpandedRowDetail.vue +4 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewGeometry.ts +53 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewNavigation.ts +23 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockInspector.ts +115 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +78 -9
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupCatalog.ts +45 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupComments.ts +95 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupEditing.ts +323 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupHandoff.ts +62 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSession.ts +115 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSpec.ts +433 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +94 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/metricCells.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/form/fieldComponentProps.ts +113 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formLayout.ts +4 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/form/formState.ts +7 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/form/useFormModel.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/live/liveStorage.ts +11 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/page/blockAnchors.ts +65 -0
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionDescriptors.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionRendering.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnActionSizing.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnHeaders.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnStructure.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/tableColumnTypes.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTable.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableColumns.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableConfigClipboard.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableContext.ts +4 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableStates.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/clearTableFilters.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/filterEditorValue.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/formatFilterValue.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableRowActionContainers.ts +3 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewBindings.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewCounts.ts +4 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewDisplays.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewFilters.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewNavigation.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewQuickFilters.ts +18 -13
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewViews.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useGroupedRows.ts +4 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableFooter.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViews.ts +19 -22
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/groupedRows.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/quickFilters.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableCounts.ts +5 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/urlFilters.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/views.ts +48 -3
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +188 -0
- package/frontend-vue/layers/dms-ui/app/build/mockups/MockupThumbnail.vue +137 -0
- package/frontend-vue/layers/dms-ui/app/build/mockups/resync.ts +56 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreview.ts +77 -105
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +362 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/eyebrow.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +436 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupCatalog.ts +437 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupDrop.ts +260 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupEdit.ts +487 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupHandoff.ts +20 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupHistory.ts +80 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupInspector.ts +120 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupOutline.ts +91 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +219 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupStamp.ts +265 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupStream.ts +98 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/sanitizedNodes.ts +27 -0
- package/frontend-vue/layers/dms-ui/app/build/utils/sketch.ts +167 -0
- package/frontend-vue/layers/dms-ui/app/components/RecursiveComponent.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/components/activity-feed/ActivityFeed.vue +4 -4
- package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +32 -6
- package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +38 -0
- package/frontend-vue/layers/dms-ui/app/components/blocks/BannerBlock.vue +3 -3
- package/frontend-vue/layers/dms-ui/app/components/blocks/CardBlock.vue +3 -3
- package/frontend-vue/layers/dms-ui/app/components/blocks/KeyValueListBlock.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/blocks/LiveToggleBlock.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/card/{Card.vue → CardPanel.vue} +2 -2
- package/frontend-vue/layers/dms-ui/app/components/chart/ChartCard.vue +4 -4
- package/frontend-vue/layers/dms-ui/app/components/confirm/ConfirmModal.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/components/flow-canvas/FlowCanvas.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/form/{Form.vue → FormBlock.vue} +1 -1
- package/frontend-vue/layers/dms-ui/app/components/form/LocalizedField.vue +34 -25
- package/frontend-vue/layers/dms-ui/app/components/form/components/DatePicker.vue +17 -16
- package/frontend-vue/layers/dms-ui/app/components/form/components/DisplayImage.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/DisplayRichText.vue +12 -4
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Calendar.vue → InputCalendar.vue} +11 -10
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Cascader.vue → InputCascader.vue} +0 -6
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Image.vue → InputImage.vue} +1 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Relation.vue → InputRelation.vue} +14 -11
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Repeater.vue → InputRepeater.vue} +1 -0
- package/frontend-vue/layers/dms-ui/app/components/form/components/{Select.vue → InputSelect.vue} +9 -5
- package/frontend-vue/layers/dms-ui/app/components/form/components/KeyValue.vue +4 -3
- package/frontend-vue/layers/dms-ui/app/components/form/components/SegmentedSelect.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/kpi/KpiCard.vue +7 -7
- package/frontend-vue/layers/dms-ui/app/components/meter/MeterBlock.vue +5 -5
- package/frontend-vue/layers/dms-ui/app/components/period/PeriodSelector.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/section-header/SectionHeader.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/status/StatusSummary.vue +3 -3
- package/frontend-vue/layers/dms-ui/app/components/table-view/ImagePreview.vue +1 -0
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanBoard.vue +20 -18
- package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanDisplay.vue +1 -1
- package/frontend-vue/layers/dms-ui/app/components/table-view/TableView.vue +6 -5
- package/frontend-vue/layers/dms-ui/app/components/top-list/TopListCard.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/components/top-list/internal/TopListRow.vue +2 -2
- package/frontend-vue/layers/dms-ui/app/composables/chart/formatValue.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/chart/types.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/confirm/types.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/form/types/props.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/composables/tab/useTab.ts +6 -7
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/index.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewDelete.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewShiftA.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/shortcuts/tableViewShiftN.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/types/display.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/composables/table-view/useTableViewEmptyState.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/BlockPreviewSketch.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/table/TableActions.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/table/TableEmpty.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/table/TablePagination.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/table/TableRoot.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/components/table/TableViews.ts +2 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/previewNavigation.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useBlockInspector.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupSpec.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/mockups/MockupCards.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/mockups/MockupThumbnail.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/blockPreview.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockup.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupCatalog.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupDrop.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupEdit.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupHistory.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupInspector.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupOutline.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSpec.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/entries/utils/sketch.ts +1 -0
- package/frontend-vue/layers/dms-ui/app/types/table/base.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/utils/mockupAssistant.ts +59 -0
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +122 -1
- package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +122 -1
- package/frontend-vue/package.json +4 -3
- package/frontend-vue/scripts/check-autoimport-boundaries.mjs +12 -7
- package/frontend-vue/scripts/check-dms-components.mjs +519 -0
- package/frontend-vue/scripts/check-invariants.mjs +7 -1
- package/frontend-vue/scripts/check-page-invariants.mjs +1 -1
- package/frontend-vue/scripts/dms-components-dependencies.mjs +89 -0
- package/frontend-vue/scripts/probes/frontend-legacy.cjs +22 -22
- package/frontend-vue/scripts/test-dms-components.mjs +255 -0
- package/frontend-vue/server/request-body.ts +21 -0
- package/package.json +79 -25
- package/skills/dms/REFERENCE.md +1 -1
- package/skills/dms/SKILL.md +7 -6
- package/skills/dms-auth/SKILL.md +4 -3
- package/skills/dms-module/REFERENCE.md +1 -1
- package/skills/dms-module/SKILL.md +2 -2
- package/skills/dms-module/cases.json +3 -3
- package/skills/dms-project/REFERENCE.md +4 -2
- package/skills/dms-project/SKILL.md +2 -2
- package/skills/dms-project/scripts/dms-dev.sh +1 -1
- package/frontend-vue/layers/dms-layout/app/entries/components/layout/Footer.ts +0 -2
- package/frontend-vue/layers/dms-onboarding/app/entries/components/onboarding/steps/ready.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/confirm/actionError.ts +0 -21
- package/frontend-vue/layers/dms-ui/app/entries/components/table/Actions.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/components/table/Empty.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/components/table/Pagination.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/components/table/Table.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/components/table/Views.ts +0 -2
- package/frontend-vue/layers/dms-ui/app/entries/composables/confirm/actionError.ts +0 -1
- package/skills/dms-best-practices/REFERENCE.md +0 -95
- package/skills/dms-best-practices/SKILL.md +0 -81
- package/skills/dms-best-practices/cases.json +0 -82
- package/skills/dms-pages/REFERENCE.md +0 -277
- package/skills/dms-pages/SKILL.md +0 -115
- package/skills/dms-pages/cases.json +0 -96
- /package/frontend-vue/layers/dms-layout/app/build/components/layout/{Container.vue → LayoutContainer.vue} +0 -0
- /package/frontend-vue/layers/dms-layout/app/build/components/layout/{Footer.vue → LayoutFooter.vue} +0 -0
- /package/frontend-vue/layers/dms-layout/app/components/layout/{Spacer.vue → StackSpacer.vue} +0 -0
- /package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/steps/{platform.vue → StepPlatform.vue} +0 -0
- /package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/steps/{ready.vue → StepReady.vue} +0 -0
- /package/frontend-vue/layers/dms-onboarding/app/components/onboarding/steps/{register.vue → StepRegister.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/build/components/table/{Tabs.vue → TableTabs.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/{types → build/types}/shortcuts-aggregated.d.ts +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/{Placeholder.vue → PlaceholderBlock.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/banner/{Banner.vue → NoticeBanner.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/chart/{Chart.vue → ChartBlock.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/chart/internal/{Sparkline.vue → SparklineChart.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{Display.vue → DisplayValue.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{Checkbox.vue → InputCheckbox.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{File.vue → InputFile.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{Slider.vue → InputSlider.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{Switch.vue → InputSwitch.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/form/components/{Textarea.vue → InputTextarea.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/grid/{Grid.vue → GridBlock.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/guard/{Guard.vue → GuardBlock.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/meter/{Meter.vue → MeterBar.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/section/{Section.vue → SectionPanel.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/section-header/{Eyebrow.vue → EyebrowLabel.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/segmented/{Segmented.vue → SegmentedControl.vue} +0 -0
- /package/frontend-vue/layers/dms-ui/app/components/tab/{Tab.vue → TabBlock.vue} +0 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAX_JSON_DEPTH = void 0;
|
|
4
|
+
exports.openOracle = openOracle;
|
|
5
|
+
exports.compileSpec = compileSpec;
|
|
6
|
+
exports.parseSpec = parseSpec;
|
|
7
|
+
const block_types_1 = require("@antelopejs/interface-dms/base/block-types");
|
|
8
|
+
const anchor_1 = require("./anchor");
|
|
9
|
+
const controller_blocks_1 = require("./controller-blocks");
|
|
10
|
+
const fixtures_1 = require("./fixtures");
|
|
11
|
+
const form_fields_1 = require("./form-fields");
|
|
12
|
+
const model_1 = require("./model");
|
|
13
|
+
const sketch_1 = require("./sketch");
|
|
14
|
+
const validate_1 = require("./validate");
|
|
15
|
+
function normalizeComponentName(name) {
|
|
16
|
+
return name
|
|
17
|
+
.replace(/^dms[-_]?/i, "")
|
|
18
|
+
.replace(/[^a-z0-9]/gi, "")
|
|
19
|
+
.toLowerCase();
|
|
20
|
+
}
|
|
21
|
+
function readCatalog() {
|
|
22
|
+
const descriptors = (0, block_types_1.ListBlockTypes)();
|
|
23
|
+
const byComponent = new Map();
|
|
24
|
+
for (const descriptor of descriptors) {
|
|
25
|
+
const key = normalizeComponentName(descriptor.componentName);
|
|
26
|
+
if (!byComponent.has(key))
|
|
27
|
+
byComponent.set(key, descriptor);
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
byType: new Map(descriptors.map((descriptor) => [descriptor.type, descriptor])),
|
|
31
|
+
byComponent,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function descriptorOf(node, catalog) {
|
|
35
|
+
if (node.type !== undefined)
|
|
36
|
+
return catalog.byType.get(node.type);
|
|
37
|
+
if (node.componentName === undefined)
|
|
38
|
+
return undefined;
|
|
39
|
+
return catalog.byComponent.get(normalizeComponentName(node.componentName));
|
|
40
|
+
}
|
|
41
|
+
function compileChildren(node, pointer, layoutPath, scope) {
|
|
42
|
+
if (!node.children)
|
|
43
|
+
return node;
|
|
44
|
+
const children = node.children.map((child, index) => {
|
|
45
|
+
const childPointer = `${pointer}/children/${index}`;
|
|
46
|
+
const childPath = `${layoutPath}.${child.id ?? index}`;
|
|
47
|
+
if (Object.hasOwn(scope.paths, childPath)) {
|
|
48
|
+
scope.issues.push({
|
|
49
|
+
path: child.id === undefined ? childPointer : `${childPointer}/id`,
|
|
50
|
+
message: `another child of this block already has the id "${child.id ?? index}"`,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return compileNode(child, childPointer, childPath, scope);
|
|
54
|
+
});
|
|
55
|
+
return { ...node, children };
|
|
56
|
+
}
|
|
57
|
+
function withOptions(node, pointer, scope) {
|
|
58
|
+
return {
|
|
59
|
+
...node,
|
|
60
|
+
options: (0, fixtures_1.rewriteObject)(node.options ?? {}, `${pointer}/options`, scope),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
const sketchKind = {
|
|
64
|
+
resolve: (node, scope) => node.type === sketch_1.SKETCH_TYPE
|
|
65
|
+
? (pointer) => (0, sketch_1.compileSketch)(node, pointer, scope.issues)
|
|
66
|
+
: undefined,
|
|
67
|
+
};
|
|
68
|
+
const controllerKind = {
|
|
69
|
+
resolve(node, scope) {
|
|
70
|
+
const descriptor = descriptorOf(node, scope.catalog);
|
|
71
|
+
if (!descriptor?.controllerArg)
|
|
72
|
+
return undefined;
|
|
73
|
+
const block = controller_blocks_1.CONTROLLER_BLOCKS.get(descriptor.type);
|
|
74
|
+
return (pointer, layoutPath) => {
|
|
75
|
+
if (block) {
|
|
76
|
+
const built = block.compile(node, pointer, scope);
|
|
77
|
+
return compileChildren(built, pointer, layoutPath, scope);
|
|
78
|
+
}
|
|
79
|
+
scope.issues.push({
|
|
80
|
+
path: pointer,
|
|
81
|
+
message: `${descriptor.type} needs a controller class, which a mockup cannot build: draw it with a sketch`,
|
|
82
|
+
});
|
|
83
|
+
return compileChildren(withOptions(node, pointer, scope), pointer, layoutPath, scope);
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
const blockKind = {
|
|
88
|
+
resolve(node, scope) {
|
|
89
|
+
const descriptor = descriptorOf(node, scope.catalog);
|
|
90
|
+
if (!descriptor)
|
|
91
|
+
return undefined;
|
|
92
|
+
return (pointer, layoutPath) => {
|
|
93
|
+
const compiled = withOptions(node, pointer, scope);
|
|
94
|
+
(0, validate_1.validateBlockOptions)(descriptor, node, compiled.options, `${pointer}/options`, scope.issues);
|
|
95
|
+
(0, validate_1.validateBlockChildren)(descriptor, node, pointer, scope.issues, (child) => descriptorOf(child, scope.catalog)?.type ?? child.type);
|
|
96
|
+
const options = (0, form_fields_1.withFieldInputs)(descriptor, compiled.options, `${pointer}/options`, scope.issues);
|
|
97
|
+
return compileChildren({ ...compiled, options: (0, validate_1.componentOptionsOf)(descriptor, options) }, pointer, layoutPath, scope);
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
function unknownIssue(node, pointer) {
|
|
102
|
+
if (node.type !== undefined) {
|
|
103
|
+
return {
|
|
104
|
+
path: `${pointer}/type`,
|
|
105
|
+
message: `no block type is registered as "${node.type}"`,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
if (node.componentName !== undefined) {
|
|
109
|
+
return {
|
|
110
|
+
path: `${pointer}/componentName`,
|
|
111
|
+
message: `no registered block emits the component "${node.componentName}"`,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
return { path: pointer, message: "a node needs a type or a componentName" };
|
|
115
|
+
}
|
|
116
|
+
const unknownKind = {
|
|
117
|
+
resolve: (node, scope) => (pointer, layoutPath) => {
|
|
118
|
+
scope.issues.push(unknownIssue(node, pointer));
|
|
119
|
+
return compileChildren(withOptions(node, pointer, scope), pointer, layoutPath, scope);
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
const NODE_KINDS = [
|
|
123
|
+
sketchKind,
|
|
124
|
+
controllerKind,
|
|
125
|
+
blockKind,
|
|
126
|
+
unknownKind,
|
|
127
|
+
];
|
|
128
|
+
function compileNode(node, pointer, layoutPath, scope) {
|
|
129
|
+
scope.paths[layoutPath] = pointer;
|
|
130
|
+
for (const kind of NODE_KINDS) {
|
|
131
|
+
const compile = kind.resolve(node, scope);
|
|
132
|
+
if (compile)
|
|
133
|
+
return compile(pointer, layoutPath);
|
|
134
|
+
}
|
|
135
|
+
return node;
|
|
136
|
+
}
|
|
137
|
+
const ROOT_LAYOUT_PREFIX = "block-";
|
|
138
|
+
exports.MAX_JSON_DEPTH = 100;
|
|
139
|
+
const OPENERS = new Set(["{", "["]);
|
|
140
|
+
const CLOSERS = new Set(["}", "]"]);
|
|
141
|
+
function jsonDepth(text) {
|
|
142
|
+
let depth = 0;
|
|
143
|
+
let deepest = 0;
|
|
144
|
+
let inString = false;
|
|
145
|
+
let escaped = false;
|
|
146
|
+
for (const char of text) {
|
|
147
|
+
if (inString) {
|
|
148
|
+
if (escaped)
|
|
149
|
+
escaped = false;
|
|
150
|
+
else if (char === "\\")
|
|
151
|
+
escaped = true;
|
|
152
|
+
else if (char === '"')
|
|
153
|
+
inString = false;
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
if (char === '"')
|
|
157
|
+
inString = true;
|
|
158
|
+
else if (OPENERS.has(char))
|
|
159
|
+
deepest = Math.max(deepest, ++depth);
|
|
160
|
+
else if (CLOSERS.has(char))
|
|
161
|
+
depth -= 1;
|
|
162
|
+
}
|
|
163
|
+
return deepest;
|
|
164
|
+
}
|
|
165
|
+
function compileTree(page, pointer, scope) {
|
|
166
|
+
return page.tree.map((node, index) => compileNode(node, `${pointer}/tree/${index}`, `${ROOT_LAYOUT_PREFIX}${index}`, scope));
|
|
167
|
+
}
|
|
168
|
+
function compilePage(name, page, pointer, scope) {
|
|
169
|
+
const onPage = { name, pageId: page.id, fixtures: page.fixtures ?? {} };
|
|
170
|
+
const pageScope = { ...scope, ...onPage, paths: {} };
|
|
171
|
+
const state = {
|
|
172
|
+
id: page.id,
|
|
173
|
+
title: page.title,
|
|
174
|
+
options: page.options ?? {},
|
|
175
|
+
tree: compileTree(page, pointer, pageScope),
|
|
176
|
+
paths: pageScope.paths,
|
|
177
|
+
};
|
|
178
|
+
if (page.liveRoutes) {
|
|
179
|
+
state.realTree = compileTree(page, pointer, {
|
|
180
|
+
catalog: scope.catalog,
|
|
181
|
+
...onPage,
|
|
182
|
+
issues: [],
|
|
183
|
+
paths: {},
|
|
184
|
+
routes: page.liveRoutes,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
if (page.livePage)
|
|
188
|
+
state.livePage = { ref: page.livePage.ref };
|
|
189
|
+
return state;
|
|
190
|
+
}
|
|
191
|
+
const STYLE_GROUPS = new Set([
|
|
192
|
+
"appearance",
|
|
193
|
+
"layout",
|
|
194
|
+
]);
|
|
195
|
+
function openOracle(name, pageId) {
|
|
196
|
+
const catalog = readCatalog();
|
|
197
|
+
return {
|
|
198
|
+
kindOf(type) {
|
|
199
|
+
const descriptor = catalog.byType.get(type);
|
|
200
|
+
if (!descriptor)
|
|
201
|
+
return "unknown";
|
|
202
|
+
return descriptor.controllerArg ? "controller" : "block";
|
|
203
|
+
},
|
|
204
|
+
isStyleOption(type, key) {
|
|
205
|
+
const config = catalog.byType.get(type)?.config;
|
|
206
|
+
const option = config && Object.hasOwn(config, key) ? config[key] : undefined;
|
|
207
|
+
return STYLE_GROUPS.has(option?.ui?.group);
|
|
208
|
+
},
|
|
209
|
+
issuesOf(node, fixtures) {
|
|
210
|
+
const scope = {
|
|
211
|
+
catalog,
|
|
212
|
+
issues: [],
|
|
213
|
+
name,
|
|
214
|
+
pageId,
|
|
215
|
+
fixtures,
|
|
216
|
+
paths: {},
|
|
217
|
+
};
|
|
218
|
+
compileNode(node, "", `${ROOT_LAYOUT_PREFIX}0`, scope);
|
|
219
|
+
return scope.issues;
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
function compileSpec(name, spec) {
|
|
224
|
+
const scope = {
|
|
225
|
+
catalog: readCatalog(),
|
|
226
|
+
issues: [],
|
|
227
|
+
};
|
|
228
|
+
const pages = spec.pages.map((page, index) => compilePage(name, page, `/pages/${index}`, scope));
|
|
229
|
+
return {
|
|
230
|
+
title: spec.title,
|
|
231
|
+
pages,
|
|
232
|
+
fixtures: new Map(spec.pages.map((page) => [page.id, page.fixtures ?? {}])),
|
|
233
|
+
issues: [...scope.issues, ...(0, anchor_1.stampedIdIssues)(spec)],
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
function parseSpec(text) {
|
|
237
|
+
let raw;
|
|
238
|
+
try {
|
|
239
|
+
raw = JSON.parse(text);
|
|
240
|
+
}
|
|
241
|
+
catch (error) {
|
|
242
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
243
|
+
return {
|
|
244
|
+
ok: false,
|
|
245
|
+
issues: [{ path: "", message: `invalid JSON: ${message}` }],
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
if (jsonDepth(text) > exports.MAX_JSON_DEPTH) {
|
|
249
|
+
return {
|
|
250
|
+
ok: false,
|
|
251
|
+
issues: [
|
|
252
|
+
{
|
|
253
|
+
path: "",
|
|
254
|
+
message: `the spec nests deeper than ${exports.MAX_JSON_DEPTH} levels`,
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
const parsed = model_1.specSchema.safeParse(raw);
|
|
260
|
+
return parsed.success
|
|
261
|
+
? { ok: true, spec: parsed.data }
|
|
262
|
+
: { ok: false, issues: (0, model_1.zodIssues)("", parsed.error) };
|
|
263
|
+
}
|
|
264
|
+
//# sourceMappingURL=compile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compile.js","sourceRoot":"","sources":["../../src/mockup/compile.ts"],"names":[],"mappings":";;;AA8UA,gCA2BC;AAgBD,kCAcC;AAQD,8BA0BC;AAzaD,4EAGoD;AACpD,qCAA2C;AAC3C,2DAAwD;AAExD,yCAA2C;AAC3C,+CAAgD;AAUhD,mCAAgD;AAChD,qCAAsD;AACtD,yCAIoB;AASpB,SAAS,sBAAsB,CAAC,IAAY;IAC1C,OAAO,IAAI;SACR,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;SACzB,OAAO,CAAC,a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AAE,KAAK;YACT,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,iBAAiB,OAAO,EAAE,EAAE,CAAC;SAC5D,CAAC;IACJ,CAAC;IACD,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,sBAAc,EAAE,CAAC;QACrC,OAAO;YACL,EAAE,EAAE,KAAK;YACT,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,EAAE;oBACR,OAAO,EAAE,8BAA8B,sBAAc,SAAS;iBAC/D;aACF;SACF,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,kBAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACzC,OAAO,MAAM,CAAC,OAAO;QACnB,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE;QACjC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAA,iBAAS,EAAC,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AACzD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type BlockOptionSchema, type BlockTypeDescriptor } from "@antelopejs/interface-dms/base/block-types";
|
|
2
|
+
import type { FixtureScope } from "./fixtures";
|
|
3
|
+
import type { MockupNode } from "./model";
|
|
4
|
+
export interface ControllerBlock {
|
|
5
|
+
options(descriptor: BlockTypeDescriptor): Record<string, BlockOptionSchema>;
|
|
6
|
+
compile(node: MockupNode, pointer: string, scope: FixtureScope): MockupNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const TABLE_SOURCE_PICKED: {
|
|
9
|
+
readonly caption: true;
|
|
10
|
+
readonly layout: true;
|
|
11
|
+
readonly density: true;
|
|
12
|
+
readonly maxHeight: true;
|
|
13
|
+
readonly rowClick: true;
|
|
14
|
+
readonly pageSize: true;
|
|
15
|
+
readonly searchPlaceholder: true;
|
|
16
|
+
readonly searchShortcut: true;
|
|
17
|
+
readonly labelKey: true;
|
|
18
|
+
readonly customButtons: true;
|
|
19
|
+
readonly displays: true;
|
|
20
|
+
readonly defaultDisplay: true;
|
|
21
|
+
readonly mobileDisplay: true;
|
|
22
|
+
readonly card: true;
|
|
23
|
+
readonly expandable: true;
|
|
24
|
+
readonly tabs: true;
|
|
25
|
+
readonly quickFilters: true;
|
|
26
|
+
readonly defaultSort: true;
|
|
27
|
+
readonly pinnedRows: true;
|
|
28
|
+
readonly realtimeTopic: true;
|
|
29
|
+
readonly liveHold: true;
|
|
30
|
+
readonly queryParamFilters: true;
|
|
31
|
+
readonly rowIdKey: true;
|
|
32
|
+
readonly rowActions: true;
|
|
33
|
+
readonly footer: true;
|
|
34
|
+
};
|
|
35
|
+
export declare const CONTROLLER_BLOCKS: Map<string, ControllerBlock>;
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONTROLLER_BLOCKS = exports.TABLE_SOURCE_PICKED = void 0;
|
|
4
|
+
const block_types_1 = require("@antelopejs/interface-dms/base/block-types");
|
|
5
|
+
const data_types_1 = require("@antelopejs/interface-dms/base/data-types");
|
|
6
|
+
const table_view_1 = require("@antelopejs/interface-dms/base/table-view");
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
const form_fields_1 = require("./form-fields");
|
|
9
|
+
const fixtures_1 = require("./fixtures");
|
|
10
|
+
const model_1 = require("./model");
|
|
11
|
+
const validate_1 = require("./validate");
|
|
12
|
+
const columnSchema = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
name: zod_1.z.string().optional(),
|
|
15
|
+
description: zod_1.z.string().optional(),
|
|
16
|
+
type: zod_1.z.string(),
|
|
17
|
+
order: zod_1.z.number().optional(),
|
|
18
|
+
isVisible: zod_1.z.boolean().optional(),
|
|
19
|
+
filterable: zod_1.z.boolean().optional(),
|
|
20
|
+
cellWrap: zod_1.z.boolean().optional(),
|
|
21
|
+
size: zod_1.z.number().optional(),
|
|
22
|
+
sortable: zod_1.z.boolean().optional(),
|
|
23
|
+
})
|
|
24
|
+
.strict();
|
|
25
|
+
const capabilitiesSchema = zod_1.z
|
|
26
|
+
.object({
|
|
27
|
+
search: zod_1.z.boolean().optional(),
|
|
28
|
+
sort: zod_1.z.boolean().optional(),
|
|
29
|
+
paginate: zod_1.z.boolean().optional(),
|
|
30
|
+
filter: zod_1.z.boolean().optional(),
|
|
31
|
+
})
|
|
32
|
+
.strict();
|
|
33
|
+
exports.TABLE_SOURCE_PICKED = {
|
|
34
|
+
caption: true,
|
|
35
|
+
layout: true,
|
|
36
|
+
density: true,
|
|
37
|
+
maxHeight: true,
|
|
38
|
+
rowClick: true,
|
|
39
|
+
pageSize: true,
|
|
40
|
+
searchPlaceholder: true,
|
|
41
|
+
searchShortcut: true,
|
|
42
|
+
labelKey: true,
|
|
43
|
+
customButtons: true,
|
|
44
|
+
displays: true,
|
|
45
|
+
defaultDisplay: true,
|
|
46
|
+
mobileDisplay: true,
|
|
47
|
+
card: true,
|
|
48
|
+
expandable: true,
|
|
49
|
+
tabs: true,
|
|
50
|
+
quickFilters: true,
|
|
51
|
+
defaultSort: true,
|
|
52
|
+
pinnedRows: true,
|
|
53
|
+
realtimeTopic: true,
|
|
54
|
+
liveHold: true,
|
|
55
|
+
queryParamFilters: true,
|
|
56
|
+
rowIdKey: true,
|
|
57
|
+
rowActions: true,
|
|
58
|
+
footer: true,
|
|
59
|
+
};
|
|
60
|
+
const tableSourceSchema = table_view_1.TableViewSchema.pick(exports.TABLE_SOURCE_PICKED)
|
|
61
|
+
.extend({
|
|
62
|
+
fetchUrl: zod_1.z.string(),
|
|
63
|
+
fetchRowUrl: zod_1.z.string().optional(),
|
|
64
|
+
periodScope: zod_1.z.string().optional(),
|
|
65
|
+
capabilities: capabilitiesSchema.optional(),
|
|
66
|
+
columns: zod_1.z.record(columnSchema),
|
|
67
|
+
pagination: (0, block_types_1.opaqueOption)().optional(),
|
|
68
|
+
emptyStates: (0, block_types_1.opaqueOption)().optional(),
|
|
69
|
+
})
|
|
70
|
+
.strict();
|
|
71
|
+
const ROWS_CAPABILITIES = { search: true, sort: true, paginate: true };
|
|
72
|
+
function rowsUrlOf(node, pointer, scope) {
|
|
73
|
+
const at = `${pointer}/fetchUrl`;
|
|
74
|
+
const key = (0, fixtures_1.fixtureKeyOf)(node.options?.fetchUrl);
|
|
75
|
+
if (key === undefined) {
|
|
76
|
+
scope.issues.push({
|
|
77
|
+
path: at,
|
|
78
|
+
message: 'a mockup table reads its rows from "fixture:<key>"',
|
|
79
|
+
});
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
if (!(0, fixtures_1.checkFixture)(scope, key, at))
|
|
83
|
+
return undefined;
|
|
84
|
+
if (!(0, fixtures_1.parseRows)(scope.fixtures[key])) {
|
|
85
|
+
scope.issues.push({
|
|
86
|
+
path: at,
|
|
87
|
+
message: `the fixture "${key}" is not an array of row objects`,
|
|
88
|
+
});
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
return (0, fixtures_1.dataUrl)(scope, key, "rows");
|
|
92
|
+
}
|
|
93
|
+
function buildTable(source, rowsUrl, pointer, scope) {
|
|
94
|
+
const columns = {};
|
|
95
|
+
for (const [key, column] of Object.entries(source.columns)) {
|
|
96
|
+
try {
|
|
97
|
+
const type = (0, data_types_1.CreateDataType)(column.type);
|
|
98
|
+
columns[key] = { ...column, name: column.name ?? key, type };
|
|
99
|
+
}
|
|
100
|
+
catch {
|
|
101
|
+
scope.issues.push({
|
|
102
|
+
path: `${pointer}/columns/${key}/type`,
|
|
103
|
+
message: `no data type is registered as "${column.type}"`,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (Object.keys(columns).length !== Object.keys(source.columns).length) {
|
|
108
|
+
return undefined;
|
|
109
|
+
}
|
|
110
|
+
try {
|
|
111
|
+
const built = table_view_1.TableView.fromSource({
|
|
112
|
+
...source,
|
|
113
|
+
fetchUrl: rowsUrl,
|
|
114
|
+
capabilities: source.capabilities ?? ROWS_CAPABILITIES,
|
|
115
|
+
columns,
|
|
116
|
+
}).serializeSync();
|
|
117
|
+
const options = model_1.jsonObjectSchema.safeParse(JSON.parse(JSON.stringify(built.options)));
|
|
118
|
+
return options.success ? options.data : undefined;
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
scope.issues.push({
|
|
122
|
+
path: pointer,
|
|
123
|
+
message: error instanceof Error ? error.message : String(error),
|
|
124
|
+
});
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
const tableView = {
|
|
129
|
+
options: (descriptor) => ({
|
|
130
|
+
...Object.fromEntries(Object.entries(descriptor.config).filter(([key]) => Object.hasOwn(exports.TABLE_SOURCE_PICKED, key))),
|
|
131
|
+
fetchUrl: {
|
|
132
|
+
type: "string",
|
|
133
|
+
description: '"fixture:<key>" naming an array of row objects.',
|
|
134
|
+
},
|
|
135
|
+
columns: {
|
|
136
|
+
type: "record",
|
|
137
|
+
description: "The columns, keyed by row field.",
|
|
138
|
+
values: {
|
|
139
|
+
type: "object",
|
|
140
|
+
properties: {
|
|
141
|
+
name: { type: "string", optional: true },
|
|
142
|
+
type: {
|
|
143
|
+
type: "string",
|
|
144
|
+
description: 'A data type id: "string", "number", "date"...',
|
|
145
|
+
},
|
|
146
|
+
sortable: { type: "boolean", optional: true },
|
|
147
|
+
order: { type: "number", optional: true },
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
capabilities: {
|
|
152
|
+
type: "object",
|
|
153
|
+
optional: true,
|
|
154
|
+
description: "Defaults to search, sort and paginate, all on.",
|
|
155
|
+
},
|
|
156
|
+
}),
|
|
157
|
+
compile(node, pointer, scope) {
|
|
158
|
+
const optionsAt = `${pointer}/options`;
|
|
159
|
+
const written = node.options ?? {};
|
|
160
|
+
const rowsUrl = rowsUrlOf(node, optionsAt, scope);
|
|
161
|
+
const parsed = tableSourceSchema.safeParse(written);
|
|
162
|
+
if (!parsed.success)
|
|
163
|
+
scope.issues.push(...(0, model_1.zodIssues)(optionsAt, parsed.error));
|
|
164
|
+
const options = rowsUrl && parsed.success
|
|
165
|
+
? buildTable(parsed.data, rowsUrl, optionsAt, scope)
|
|
166
|
+
: undefined;
|
|
167
|
+
return { ...node, options: options ?? written };
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
const FORM_TYPE = "Form";
|
|
171
|
+
const resourceForm = {
|
|
172
|
+
options() {
|
|
173
|
+
const form = (0, block_types_1.GetBlockType)(FORM_TYPE);
|
|
174
|
+
return form ? (0, validate_1.previewOptionsOf)(form) : {};
|
|
175
|
+
},
|
|
176
|
+
compile(node, pointer, scope) {
|
|
177
|
+
const optionsAt = `${pointer}/options`;
|
|
178
|
+
const written = node.options ?? {};
|
|
179
|
+
if ((0, fixtures_1.fixtureKeyOf)(written.fetchUrl) === undefined) {
|
|
180
|
+
scope.issues.push({
|
|
181
|
+
path: `${optionsAt}/fetchUrl`,
|
|
182
|
+
message: 'a mockup form reads its record from "fixture:<key>"',
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
if (Object.hasOwn(written, "submitUrl")) {
|
|
186
|
+
scope.issues.push({
|
|
187
|
+
path: `${optionsAt}/submitUrl`,
|
|
188
|
+
message: "a mockup form saves nowhere: leave submitUrl out",
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
const options = (0, fixtures_1.rewriteObject)(written, optionsAt, scope);
|
|
192
|
+
const form = (0, block_types_1.GetBlockType)(FORM_TYPE);
|
|
193
|
+
if (!form)
|
|
194
|
+
return { ...node, options };
|
|
195
|
+
(0, validate_1.validateBlockOptions)(form, node, options, optionsAt, scope.issues);
|
|
196
|
+
const filled = (0, form_fields_1.withFieldInputs)(form, options, optionsAt, scope.issues);
|
|
197
|
+
return { ...node, options: (0, validate_1.componentOptionsOf)(form, filled) };
|
|
198
|
+
},
|
|
199
|
+
};
|
|
200
|
+
exports.CONTROLLER_BLOCKS = new Map([
|
|
201
|
+
["TableView", tableView],
|
|
202
|
+
["ResourceForm", resourceForm],
|
|
203
|
+
]);
|
|
204
|
+
//# sourceMappingURL=controller-blocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller-blocks.js","sourceRoot":"","sources":["../../src/mockup/controller-blocks.ts"],"names":[],"mappings":";;;AAAA,4EAKoD;AACpD,0EAA2E;AAC3E,0EAKmD;AACnD,6BAAwB;AAExB,+CAAgD;AAChD,yCAMoB;AAEpB,mCAAsD;AACtD,yCAIoB;AAYpB,MAAM,YAAY,GAAG,OAAC;KACnB,MAAM,CAAC;IACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,kBAAkB,GAAG,OAAC;KACzB,MAAM,CAAC;IACN,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ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EAAE,kDAAkD;aAC5D,CAAC,CAAC;QACL,CAAC;QACD,MAAM,OAAO,GAAG,IAAA,wBAAa,EAAC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QACzD,MAAM,IAAI,GAAG,IAAA,0BAAY,EAAC,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,CAAC;QACvC,IAAA,+BAAoB,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,IAAA,6BAAe,EAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACvE,OAAO,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,IAAA,6BAAkB,EAAC,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC;IAChE,CAAC;CACF,CAAC;AAGW,QAAA,iBAAiB,GAAG,IAAI,GAAG,CAA0B;IAChE,CAAC,WAAW,EAAE,SAAS,CAAC;IACxB,CAAC,cAAc,EAAE,YAAY,CAAC;CAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { MockupName } from "./model";
|
|
3
|
+
export declare const SPEC_FILE = "spec.json";
|
|
4
|
+
export declare const ANNOTATIONS_FILE = "annotations.json";
|
|
5
|
+
export declare function defaultMockupsDir(): string;
|
|
6
|
+
export declare function mockupDirectory(mockupsDir: string, name: MockupName): string;
|
|
7
|
+
declare const fsErrorSchema: z.ZodCatch<z.ZodObject<{
|
|
8
|
+
code: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
code?: string | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
code?: string | undefined;
|
|
13
|
+
}>>;
|
|
14
|
+
export type FsError = z.infer<typeof fsErrorSchema>;
|
|
15
|
+
export declare function parseFsError(error: unknown): FsError;
|
|
16
|
+
export declare const MISSING_FILE = "ENOENT";
|
|
17
|
+
export declare function writeAtomically(path: string, content: string): Promise<void>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MISSING_FILE = exports.ANNOTATIONS_FILE = exports.SPEC_FILE = void 0;
|
|
4
|
+
exports.defaultMockupsDir = defaultMockupsDir;
|
|
5
|
+
exports.mockupDirectory = mockupDirectory;
|
|
6
|
+
exports.parseFsError = parseFsError;
|
|
7
|
+
exports.writeAtomically = writeAtomically;
|
|
8
|
+
const node_crypto_1 = require("node:crypto");
|
|
9
|
+
const promises_1 = require("node:fs/promises");
|
|
10
|
+
const node_path_1 = require("node:path");
|
|
11
|
+
const zod_1 = require("zod");
|
|
12
|
+
exports.SPEC_FILE = "spec.json";
|
|
13
|
+
exports.ANNOTATIONS_FILE = "annotations.json";
|
|
14
|
+
function defaultMockupsDir() {
|
|
15
|
+
return (0, node_path_1.join)(process.cwd(), "mockups");
|
|
16
|
+
}
|
|
17
|
+
function mockupDirectory(mockupsDir, name) {
|
|
18
|
+
return (0, node_path_1.join)(mockupsDir, name);
|
|
19
|
+
}
|
|
20
|
+
const fsErrorSchema = zod_1.z.object({ code: zod_1.z.string().optional() }).catch({});
|
|
21
|
+
function parseFsError(error) {
|
|
22
|
+
return fsErrorSchema.parse(error);
|
|
23
|
+
}
|
|
24
|
+
exports.MISSING_FILE = "ENOENT";
|
|
25
|
+
async function writeAtomically(path, content) {
|
|
26
|
+
const temporary = `${path}.${(0, node_crypto_1.randomBytes)(6).toString("hex")}.tmp`;
|
|
27
|
+
try {
|
|
28
|
+
await (0, promises_1.writeFile)(temporary, content, "utf8");
|
|
29
|
+
await (0, promises_1.rename)(temporary, path);
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
await (0, promises_1.rm)(temporary, { force: true });
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/mockup/files.ts"],"names":[],"mappings":";;;AAaA,8CAEC;AAMD,0CAEC;AAQD,oCAEC;AASD,0CAYC;AAtDD,6CAA0C;AAC1C,+CAAyD;AACzD,yCAAiC;AACjC,6BAAwB;AAIX,QAAA,SAAS,GAAG,WAAW,CAAC;AAGxB,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AAGnD,SAAgB,iBAAiB;IAC/B,OAAO,IAAA,gBAAI,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,CAAC,CAAC;AACxC,CAAC;AAMD,SAAgB,eAAe,CAAC,UAAkB,EAAE,IAAgB;IAClE,OAAO,IAAA,gBAAI,EAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAM1E,SAAgB,YAAY,CAAC,KAAc;IACzC,OAAO,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC;AAGY,QAAA,YAAY,GAAG,QAAQ,CAAC;AAM9B,KAAK,UAAU,eAAe,CACnC,IAAY,EACZ,OAAe;IAEf,MAAM,SAAS,GAAG,GAAG,IAAI,IAAI,IAAA,yBAAW,EAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC;IAClE,IAAI,CAAC;QACH,MAAM,IAAA,oBAAS,EAAC,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAC5C,MAAM,IAAA,iBAAM,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAA,aAAE,EAAC,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACrC,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { Json, JsonObject, MockupIssue, MockupName } from "./model";
|
|
3
|
+
export declare const MOCKUP_API = "/api/mockup";
|
|
4
|
+
export declare function fixtureUrl(name: MockupName, pageId: string, key: string): string;
|
|
5
|
+
export declare function fixtureKeyOf(value: Json | undefined): string | undefined;
|
|
6
|
+
export interface FixtureScope {
|
|
7
|
+
name: MockupName;
|
|
8
|
+
pageId: string;
|
|
9
|
+
fixtures: JsonObject;
|
|
10
|
+
issues: MockupIssue[];
|
|
11
|
+
routes?: Readonly<Record<string, string>>;
|
|
12
|
+
}
|
|
13
|
+
export type DataKind = "fixture" | "rows";
|
|
14
|
+
export declare function dataUrl(scope: FixtureScope, key: string, kind: DataKind): string;
|
|
15
|
+
export declare function checkFixture(scope: FixtureScope, key: string, pointer: string): boolean;
|
|
16
|
+
export declare function rewriteFixtures(value: Json, pointer: string, scope: FixtureScope): Json;
|
|
17
|
+
export declare function rewriteObject(object: JsonObject, pointer: string, scope: FixtureScope): JsonObject;
|
|
18
|
+
declare const rowsQuerySchema: z.ZodObject<{
|
|
19
|
+
offset: z.ZodCatch<z.ZodNumber>;
|
|
20
|
+
limit: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
21
|
+
search: z.ZodCatch<z.ZodString>;
|
|
22
|
+
sortKey: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
sortDirection: z.ZodCatch<z.ZodEnum<["asc", "desc"]>>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
search: string;
|
|
26
|
+
offset: number;
|
|
27
|
+
sortDirection: "asc" | "desc";
|
|
28
|
+
limit?: number | undefined;
|
|
29
|
+
sortKey?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
search?: unknown;
|
|
32
|
+
limit?: unknown;
|
|
33
|
+
offset?: unknown;
|
|
34
|
+
sortKey?: unknown;
|
|
35
|
+
sortDirection?: unknown;
|
|
36
|
+
}>;
|
|
37
|
+
export type RowsQuery = z.infer<typeof rowsQuerySchema>;
|
|
38
|
+
export declare function parseRowsQuery(params: URLSearchParams): RowsQuery;
|
|
39
|
+
export interface RowsPage {
|
|
40
|
+
results: JsonObject[];
|
|
41
|
+
total: number;
|
|
42
|
+
}
|
|
43
|
+
export declare function parseRows(fixture: Json): JsonObject[] | undefined;
|
|
44
|
+
export declare function listRows(rows: JsonObject[], query: RowsQuery): RowsPage;
|
|
45
|
+
export {};
|