@antelopejs/dms 0.19.6 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +196 -1
- package/README.md +11 -9
- package/bin/control/backend-mode.test.mjs +72 -0
- package/bin/control/backend.mjs +41 -24
- package/bin/control/backend.test.mjs +18 -0
- package/bin/control/build-cache.mjs +18 -6
- package/bin/control/build-key.mjs +10 -7
- package/bin/control/build-key.test.mjs +25 -1
- package/bin/control/build-layout.test.mjs +53 -11
- package/bin/control/commands-stack.mjs +1 -0
- package/bin/control/forwarder.test.mjs +119 -1
- package/bin/control/helpers/ephemeral-range.mjs +18 -0
- package/bin/control/helpers/fake-run.mjs +75 -5
- package/bin/control/helpers/key-fixture.mjs +9 -6
- package/bin/control/helpers/narrow-range.mjs +35 -0
- package/bin/control/journey-load.mjs +49 -0
- package/bin/control/journey.mjs +6 -41
- package/bin/control/journey.test.mjs +68 -9
- 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/options.mjs +1 -0
- package/bin/control/processes.mjs +59 -0
- package/bin/control/run-ports.test.mjs +126 -0
- package/bin/control/run-state.mjs +9 -3
- package/bin/control/stack.mjs +77 -11
- package/bin/control/verify/map.mjs +1 -1
- package/bin/control/verify/verdict.mjs +1 -1
- package/bin/dms-control.mjs +7 -3
- package/data/mockup-example/spec.json +209 -0
- package/data/mockup-spec.schema.json +10955 -0
- 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 +63 -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/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/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/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.js +21 -60
- 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.js +1 -5
- 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 +266 -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 +84 -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/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 +63 -0
- package/dist/implementations/dms-builder/engine/index.js +82 -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/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 +195 -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 +54 -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 +183 -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 +194 -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 +199 -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 +243 -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 +181 -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 +268 -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 +113 -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.d.ts +8 -0
- package/dist/mockup/sketch.js +150 -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/two-factor-throttle.js +5 -1
- package/dist/routes/auth/two-factor-throttle.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/runtime.d.ts +2 -2
- 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 +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- 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 +8 -3
- 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/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 -8
- package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +181 -8
- 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 +158 -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-page-invariants.mjs +1 -1
- package/frontend-vue/scripts/probes/frontend-legacy.cjs +22 -22
- package/frontend-vue/server/request-body.ts +21 -0
- package/package.json +61 -20
- 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 +1 -1
- package/skills/dms-project/REFERENCE.md +4 -2
- package/skills/dms-project/SKILL.md +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,52 @@
|
|
|
1
|
+
import type { BlockDraft, BlockNode, ConfigObject } from "@antelopejs/interface-dms-builder";
|
|
2
|
+
import type { IdStamp } from "./anchor";
|
|
3
|
+
import type { WiringNote, WiringReason } from "./apply-notes";
|
|
4
|
+
import { type BlockEntry, type Matching } from "./apply-match";
|
|
5
|
+
import type { NodeOracle } from "./compile";
|
|
6
|
+
import type { MockupNode } from "./model";
|
|
7
|
+
export type Fate = {
|
|
8
|
+
kind: "preserve";
|
|
9
|
+
reason?: WiringReason;
|
|
10
|
+
} | {
|
|
11
|
+
kind: "write";
|
|
12
|
+
type: string;
|
|
13
|
+
config: ConfigObject;
|
|
14
|
+
};
|
|
15
|
+
export interface Written {
|
|
16
|
+
type: string;
|
|
17
|
+
config: ConfigObject;
|
|
18
|
+
}
|
|
19
|
+
export type Writable = {
|
|
20
|
+
ok: true;
|
|
21
|
+
block: Written;
|
|
22
|
+
} | {
|
|
23
|
+
ok: false;
|
|
24
|
+
reason: WiringReason;
|
|
25
|
+
};
|
|
26
|
+
export type Placement = Pick<BlockDraft, "slot" | "meta">;
|
|
27
|
+
export type NodeStamp = IdStamp & {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
export interface Planner {
|
|
31
|
+
readonly matching: Matching;
|
|
32
|
+
readonly routes: Readonly<Record<string, string>>;
|
|
33
|
+
readonly oracle: NodeOracle;
|
|
34
|
+
readonly fates: Map<BlockEntry, Fate>;
|
|
35
|
+
readonly anchored: Map<BlockEntry, boolean>;
|
|
36
|
+
readonly names: Map<MockupNode, string>;
|
|
37
|
+
stuck: ReadonlySet<BlockEntry>;
|
|
38
|
+
stays: ReadonlyMap<BlockEntry, BlockEntry>;
|
|
39
|
+
readonly wiring: WiringNote[];
|
|
40
|
+
readonly stamps: NodeStamp[];
|
|
41
|
+
}
|
|
42
|
+
export declare function placed(slot: string | undefined, meta: ConfigObject | undefined): Placement;
|
|
43
|
+
export declare function preservedDraft(block: BlockNode, placement: Placement): BlockDraft;
|
|
44
|
+
export declare function note(p: Planner, node: MockupNode, pointer: string, reason: WiringReason, kept?: string): void;
|
|
45
|
+
export declare function isAnchored(p: Planner, entry: BlockEntry): boolean;
|
|
46
|
+
export declare function isMoveRoot(p: Planner, entry: BlockEntry): boolean;
|
|
47
|
+
export declare function fateOf(p: Planner, entry: BlockEntry, node: MockupNode): Fate;
|
|
48
|
+
export declare function changedHeld(p: Planner, entry: BlockEntry): BlockEntry["held"];
|
|
49
|
+
export declare function copyOf(p: Planner, entry: BlockEntry, node: MockupNode): (Written & {
|
|
50
|
+
name: string;
|
|
51
|
+
}) | undefined;
|
|
52
|
+
export declare function copyable(p: Planner, entry: BlockEntry, node: MockupNode): boolean;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.placed = placed;
|
|
4
|
+
exports.preservedDraft = preservedDraft;
|
|
5
|
+
exports.note = note;
|
|
6
|
+
exports.isAnchored = isAnchored;
|
|
7
|
+
exports.isMoveRoot = isMoveRoot;
|
|
8
|
+
exports.fateOf = fateOf;
|
|
9
|
+
exports.changedHeld = changedHeld;
|
|
10
|
+
exports.copyOf = copyOf;
|
|
11
|
+
exports.copyable = copyable;
|
|
12
|
+
const apply_match_1 = require("./apply-match");
|
|
13
|
+
const apply_options_1 = require("./apply-options");
|
|
14
|
+
function placed(slot, meta) {
|
|
15
|
+
const placement = {};
|
|
16
|
+
if (slot !== undefined)
|
|
17
|
+
placement.slot = slot;
|
|
18
|
+
if (meta !== undefined)
|
|
19
|
+
placement.meta = meta;
|
|
20
|
+
return placement;
|
|
21
|
+
}
|
|
22
|
+
function preservedDraft(block, placement) {
|
|
23
|
+
const draft = { name: block.name, preserve: true, ...placement };
|
|
24
|
+
if (block.lockedOptions && block.children?.length) {
|
|
25
|
+
draft.children = block.children.map((child) => preservedDraft(child, placed(child.slot, child.meta)));
|
|
26
|
+
}
|
|
27
|
+
return draft;
|
|
28
|
+
}
|
|
29
|
+
function note(p, node, pointer, reason, kept) {
|
|
30
|
+
p.wiring.push({
|
|
31
|
+
pointer,
|
|
32
|
+
...(node.id !== undefined && { id: node.id }),
|
|
33
|
+
...(node.type !== undefined && { type: node.type }),
|
|
34
|
+
reason,
|
|
35
|
+
...(kept !== undefined && { kept }),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function isAnchored(p, entry) {
|
|
39
|
+
const known = p.anchored.get(entry);
|
|
40
|
+
if (known !== undefined)
|
|
41
|
+
return known;
|
|
42
|
+
const claim = p.matching.byEntry.get(entry);
|
|
43
|
+
const anchored = claim !== undefined &&
|
|
44
|
+
(0, apply_match_1.placeUnder)(claim.parent, p.matching) === (0, apply_match_1.livePlace)(entry) &&
|
|
45
|
+
(entry.parent === undefined || isAnchored(p, entry.parent));
|
|
46
|
+
p.anchored.set(entry, anchored);
|
|
47
|
+
return anchored;
|
|
48
|
+
}
|
|
49
|
+
function isMoveRoot(p, entry) {
|
|
50
|
+
const claim = p.matching.byEntry.get(entry);
|
|
51
|
+
return (claim !== undefined &&
|
|
52
|
+
(0, apply_match_1.placeUnder)(claim.parent, p.matching) !== (0, apply_match_1.livePlace)(entry));
|
|
53
|
+
}
|
|
54
|
+
function heldConfig(entry) {
|
|
55
|
+
const config = entry.block.config ?? {};
|
|
56
|
+
return Object.fromEntries(entry.held.flatMap((held) => Object.hasOwn(config, held.name) ? [[held.name, config[held.name]]] : []));
|
|
57
|
+
}
|
|
58
|
+
function sketchFate(node, live) {
|
|
59
|
+
if ((0, apply_options_1.sameBlock)(node, live))
|
|
60
|
+
return { kind: "preserve" };
|
|
61
|
+
if ((0, apply_match_1.isSketch)(node) && (0, apply_match_1.isSketch)(live)) {
|
|
62
|
+
return { kind: "preserve", reason: "custom-component" };
|
|
63
|
+
}
|
|
64
|
+
return { kind: "preserve", reason: (0, apply_match_1.isSketch)(live) ? "type" : "locked" };
|
|
65
|
+
}
|
|
66
|
+
function keepsSource(p, entry, node) {
|
|
67
|
+
const placedChildren = (node.children ?? []).filter((child) => p.matching.byNode.get(child)?.kind !== "held");
|
|
68
|
+
const liveChildren = entry.children.map((child) => child.node);
|
|
69
|
+
return (node.type === entry.node.type &&
|
|
70
|
+
(0, apply_options_1.placementOf)(placedChildren) === (0, apply_options_1.placementOf)(liveChildren));
|
|
71
|
+
}
|
|
72
|
+
function tableFate(p, entry, node) {
|
|
73
|
+
const { block, node: live } = entry;
|
|
74
|
+
const type = live.type;
|
|
75
|
+
if (type === undefined || node.type !== type) {
|
|
76
|
+
return { kind: "preserve", reason: "table" };
|
|
77
|
+
}
|
|
78
|
+
const options = (0, apply_options_1.tableOptionsOf)(node.options ?? {}, live.options ?? {}, block, p.routes);
|
|
79
|
+
return options.ok
|
|
80
|
+
? { kind: "write", type, config: options.config }
|
|
81
|
+
: { kind: "preserve", reason: options.reason };
|
|
82
|
+
}
|
|
83
|
+
function written(p, entry, node) {
|
|
84
|
+
if (node.type === undefined || p.oracle.kindOf(node.type) !== "block") {
|
|
85
|
+
return { ok: false, reason: "type" };
|
|
86
|
+
}
|
|
87
|
+
const options = (0, apply_options_1.liveOptionsOf)(node.options ?? {}, p.routes, entry.node.options, entry.block.lockedOptions);
|
|
88
|
+
if (!options.ok)
|
|
89
|
+
return options;
|
|
90
|
+
const config = { ...options.config, ...heldConfig(entry) };
|
|
91
|
+
return {
|
|
92
|
+
ok: true,
|
|
93
|
+
block: { type: node.type, config: (0, apply_options_1.ordered)(entry.block.config, config) },
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function decideFate(p, entry, node) {
|
|
97
|
+
if (entry.whole)
|
|
98
|
+
return sketchFate(node, entry.node);
|
|
99
|
+
if ((0, apply_match_1.isSketch)(node))
|
|
100
|
+
return { kind: "preserve", reason: "custom-component" };
|
|
101
|
+
if ((0, apply_options_1.sameBlock)(node, entry.node))
|
|
102
|
+
return { kind: "preserve" };
|
|
103
|
+
if (entry.block.lockedOptions && !keepsSource(p, entry, node)) {
|
|
104
|
+
return { kind: "preserve", reason: "locked" };
|
|
105
|
+
}
|
|
106
|
+
if (p.oracle.kindOf(entry.node.type ?? "") === "controller") {
|
|
107
|
+
return tableFate(p, entry, node);
|
|
108
|
+
}
|
|
109
|
+
const write = written(p, entry, node);
|
|
110
|
+
return write.ok
|
|
111
|
+
? { kind: "write", ...write.block }
|
|
112
|
+
: { kind: "preserve", reason: write.reason };
|
|
113
|
+
}
|
|
114
|
+
function fateOf(p, entry, node) {
|
|
115
|
+
const known = p.fates.get(entry);
|
|
116
|
+
if (known)
|
|
117
|
+
return known;
|
|
118
|
+
const fate = decideFate(p, entry, node);
|
|
119
|
+
p.fates.set(entry, fate);
|
|
120
|
+
return fate;
|
|
121
|
+
}
|
|
122
|
+
function changedHeld(p, entry) {
|
|
123
|
+
return entry.held.filter((held) => {
|
|
124
|
+
const claim = p.matching.byEntry.get(held);
|
|
125
|
+
return claim === undefined || !(0, apply_options_1.sameBlock)(claim.node, held.node);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function copyOf(p, entry, node) {
|
|
129
|
+
const { block } = entry;
|
|
130
|
+
const name = p.names.get(node);
|
|
131
|
+
if (entry.whole || (0, apply_match_1.isSketch)(node) || !block.editable)
|
|
132
|
+
return undefined;
|
|
133
|
+
if (block.lockedOptions || changedHeld(p, entry).length > 0)
|
|
134
|
+
return undefined;
|
|
135
|
+
const write = written(p, entry, node);
|
|
136
|
+
return write.ok && name !== undefined ? { ...write.block, name } : undefined;
|
|
137
|
+
}
|
|
138
|
+
function copyable(p, entry, node) {
|
|
139
|
+
if (!copyOf(p, entry, node))
|
|
140
|
+
return false;
|
|
141
|
+
return (node.children ?? []).every((child) => {
|
|
142
|
+
const claimed = p.matching.byNode.get(child);
|
|
143
|
+
return (claimed?.kind !== "block" ||
|
|
144
|
+
claimed.parent !== entry ||
|
|
145
|
+
copyable(p, claimed, child));
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=apply-fate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-fate.js","sourceRoot":"","sources":["../../src/mockup/apply-fate.ts"],"names":[],"mappings":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C,KAAK,CAAC,QAAQ;QAAE,OAAO,SAAS,CAAC;IACvE,IAAI,KAAK,CAAC,aAAa,IAAI,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,SAAS,CAAC;IAC9E,MAAM,KAAK,GAAG,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IACtC,OAAO,KAAK,CAAC,EAAE,IAAI,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/E,CAAC;AAGD,SAAgB,QAAQ,CACtB,CAAU,EACV,KAAiB,EACjB,IAAgB;IAEhB,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IAC1C,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QAC3C,MAAM,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC7C,OAAO,CACL,OAAO,EAAE,IAAI,KAAK,OAAO;YACzB,OAAO,CAAC,MAAM,KAAK,KAAK;YACxB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,CAC5B,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { BlockNode } from "@antelopejs/interface-dms-builder";
|
|
2
|
+
import type { MockupNode } from "./model";
|
|
3
|
+
export interface BlockEntry {
|
|
4
|
+
kind: "block";
|
|
5
|
+
block: BlockNode;
|
|
6
|
+
node: MockupNode;
|
|
7
|
+
parent: BlockEntry | undefined;
|
|
8
|
+
whole: boolean;
|
|
9
|
+
held: HeldEntry[];
|
|
10
|
+
children: BlockEntry[];
|
|
11
|
+
}
|
|
12
|
+
interface HeldEntry {
|
|
13
|
+
kind: "held";
|
|
14
|
+
name: string;
|
|
15
|
+
path: string;
|
|
16
|
+
node: MockupNode;
|
|
17
|
+
parent: BlockEntry;
|
|
18
|
+
}
|
|
19
|
+
type LiveEntry = BlockEntry | HeldEntry;
|
|
20
|
+
export type Place = "root" | "fresh" | BlockEntry;
|
|
21
|
+
interface Claim {
|
|
22
|
+
entry: LiveEntry;
|
|
23
|
+
node: MockupNode;
|
|
24
|
+
pointer: string;
|
|
25
|
+
parent: MockupNode | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface Matching {
|
|
28
|
+
roots: BlockEntry[];
|
|
29
|
+
byNode: Map<MockupNode, LiveEntry>;
|
|
30
|
+
byEntry: Map<LiveEntry, Claim>;
|
|
31
|
+
parents: Map<MockupNode, MockupNode | undefined>;
|
|
32
|
+
}
|
|
33
|
+
export declare function blockNameOf(id: string): string;
|
|
34
|
+
export declare function isSketch(node: MockupNode): boolean;
|
|
35
|
+
export declare function blocksAt(place: Place, roots: BlockEntry[]): BlockEntry[];
|
|
36
|
+
export declare function placeUnder(parent: MockupNode | undefined, matching: Matching): Place;
|
|
37
|
+
export declare function matchTree(blocks: readonly BlockNode[], reconverted: readonly MockupNode[], tree: readonly MockupNode[], pointer: string): Matching;
|
|
38
|
+
export declare function livePlace(entry: BlockEntry): Place;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.blockNameOf = blockNameOf;
|
|
4
|
+
exports.isSketch = isSketch;
|
|
5
|
+
exports.blocksAt = blocksAt;
|
|
6
|
+
exports.placeUnder = placeUnder;
|
|
7
|
+
exports.matchTree = matchTree;
|
|
8
|
+
exports.livePlace = livePlace;
|
|
9
|
+
const apply_options_1 = require("./apply-options");
|
|
10
|
+
const sketch_1 = require("./sketch");
|
|
11
|
+
const LISTED_NAME = /^[A-Za-z$][\w$]*$/;
|
|
12
|
+
const NOT_NAME_CHARACTERS = /[^\w$]+/g;
|
|
13
|
+
const FUNCTION_MEMBERS = new Set([
|
|
14
|
+
"arguments",
|
|
15
|
+
"caller",
|
|
16
|
+
"length",
|
|
17
|
+
"name",
|
|
18
|
+
"prototype",
|
|
19
|
+
]);
|
|
20
|
+
function isListed(name) {
|
|
21
|
+
return LISTED_NAME.test(name) && !FUNCTION_MEMBERS.has(name);
|
|
22
|
+
}
|
|
23
|
+
function blockNameOf(id) {
|
|
24
|
+
if (isListed(id))
|
|
25
|
+
return id;
|
|
26
|
+
const word = id.replaceAll(NOT_NAME_CHARACTERS, "_");
|
|
27
|
+
if (isListed(word))
|
|
28
|
+
return word;
|
|
29
|
+
return `block${word.startsWith("_") ? "" : "_"}${word}`;
|
|
30
|
+
}
|
|
31
|
+
function isSketch(node) {
|
|
32
|
+
return node.type === sketch_1.SKETCH_TYPE;
|
|
33
|
+
}
|
|
34
|
+
function nameOf(entry) {
|
|
35
|
+
return entry.kind === "block" ? entry.block.name : entry.name;
|
|
36
|
+
}
|
|
37
|
+
function canStandFor(node, entry) {
|
|
38
|
+
return !isSketch(node) || isSketch(entry.node);
|
|
39
|
+
}
|
|
40
|
+
function pick(entries, node, id, free) {
|
|
41
|
+
const fits = entries.filter((entry) => free(entry) && canStandFor(node, entry));
|
|
42
|
+
const named = [id, blockNameOf(id)]
|
|
43
|
+
.map((name) => fits.filter((entry) => nameOf(entry) === name))
|
|
44
|
+
.find((found) => found.length > 0) ?? [];
|
|
45
|
+
return (named.find((entry) => (0, apply_options_1.sameBlock)(node, entry.node)) ??
|
|
46
|
+
named.find((entry) => isSketch(entry.node) === isSketch(node)) ??
|
|
47
|
+
named[0]);
|
|
48
|
+
}
|
|
49
|
+
function entryOf(block, node, parent) {
|
|
50
|
+
const blocks = block.children ?? [];
|
|
51
|
+
const nodes = node.children ?? [];
|
|
52
|
+
const whole = isSketch(node) || nodes.length < blocks.length;
|
|
53
|
+
const entry = {
|
|
54
|
+
kind: "block",
|
|
55
|
+
block,
|
|
56
|
+
node,
|
|
57
|
+
parent,
|
|
58
|
+
whole,
|
|
59
|
+
held: [],
|
|
60
|
+
children: [],
|
|
61
|
+
};
|
|
62
|
+
if (whole)
|
|
63
|
+
return entry;
|
|
64
|
+
const heldCount = nodes.length - blocks.length;
|
|
65
|
+
entry.held = nodes.slice(0, heldCount).map((held) => ({
|
|
66
|
+
kind: "held",
|
|
67
|
+
name: held.id ?? "",
|
|
68
|
+
path: `${block.path}/${held.id ?? ""}`,
|
|
69
|
+
node: held,
|
|
70
|
+
parent: entry,
|
|
71
|
+
}));
|
|
72
|
+
entry.children = entriesOf(blocks, nodes.slice(heldCount), entry);
|
|
73
|
+
return entry;
|
|
74
|
+
}
|
|
75
|
+
function entriesOf(blocks, nodes, parent) {
|
|
76
|
+
return blocks.flatMap((block, index) => index < nodes.length ? [entryOf(block, nodes[index], parent)] : []);
|
|
77
|
+
}
|
|
78
|
+
function blocksAt(place, roots) {
|
|
79
|
+
if (place === "fresh")
|
|
80
|
+
return [];
|
|
81
|
+
return place === "root" ? roots : place.children;
|
|
82
|
+
}
|
|
83
|
+
function candidatesAt(place, roots) {
|
|
84
|
+
const held = place === "fresh" || place === "root" ? [] : place.held;
|
|
85
|
+
return [...held, ...blocksAt(place, roots)];
|
|
86
|
+
}
|
|
87
|
+
function everyBlock(entries) {
|
|
88
|
+
return entries.flatMap((entry) => [entry, ...everyBlock(entry.children)]);
|
|
89
|
+
}
|
|
90
|
+
function claimTree(nodes, pointer, parent, matching, find) {
|
|
91
|
+
const place = placeUnder(parent, matching);
|
|
92
|
+
nodes.forEach((node, index) => {
|
|
93
|
+
const at = `${pointer}/${index}`;
|
|
94
|
+
matching.parents.set(node, parent);
|
|
95
|
+
if (!matching.byNode.has(node) && node.id !== undefined) {
|
|
96
|
+
const entry = find(node, node.id, place);
|
|
97
|
+
if (entry) {
|
|
98
|
+
matching.byNode.set(node, entry);
|
|
99
|
+
matching.byEntry.set(entry, { entry, node, pointer: at, parent });
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
claimTree(node.children ?? [], `${at}/children`, node, matching, find);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function placeUnder(parent, matching) {
|
|
106
|
+
if (parent === undefined)
|
|
107
|
+
return "root";
|
|
108
|
+
const entry = matching.byNode.get(parent);
|
|
109
|
+
return entry?.kind === "block" ? entry : "fresh";
|
|
110
|
+
}
|
|
111
|
+
function matchTree(blocks, reconverted, tree, pointer) {
|
|
112
|
+
const roots = entriesOf(blocks, reconverted, undefined);
|
|
113
|
+
const matching = {
|
|
114
|
+
roots,
|
|
115
|
+
byNode: new Map(),
|
|
116
|
+
byEntry: new Map(),
|
|
117
|
+
parents: new Map(),
|
|
118
|
+
};
|
|
119
|
+
const free = (entry) => !matching.byEntry.has(entry);
|
|
120
|
+
const inPlace = (node, id, place) => pick(candidatesAt(place, roots), node, id, free);
|
|
121
|
+
claimTree(tree, pointer, undefined, matching, inPlace);
|
|
122
|
+
const anywhere = everyBlock(roots);
|
|
123
|
+
claimTree(tree, pointer, undefined, matching, (node, id, place) => inPlace(node, id, place) ?? pick(anywhere, node, id, free));
|
|
124
|
+
return matching;
|
|
125
|
+
}
|
|
126
|
+
function livePlace(entry) {
|
|
127
|
+
return entry.parent ?? "root";
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=apply-match.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-match.js","sourceRoot":"","sources":["../../src/mockup/apply-match.ts"],"names":[],"mappings":";;AA6EA,kCAKC;AAED,4BAEC;AAgFD,4BAGC;AA0CD,gCAOC;AAcD,8BA2BC;AAGD,8BAEC;AAvQD,mDAA4C;AAE5C,qCAAuC;AAqDvC,MAAM,WAAW,GAAG,mBAAmB,CAAC;AACxC,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAEvC,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAA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EAAE,EAAE,IAAI,CAAC,CAC7D,CAAC;IACF,OAAO,QAAQ,CAAC;AAClB,CAAC;AAGD,SAAgB,SAAS,CAAC,KAAiB;IACzC,OAAO,KAAK,CAAC,MAAM,IAAI,MAAM,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.namePlaces = namePlaces;
|
|
4
|
+
const apply_fate_1 = require("./apply-fate");
|
|
5
|
+
const apply_match_1 = require("./apply-match");
|
|
6
|
+
const UNTYPED_NAME = "block";
|
|
7
|
+
function writtenNew(p, node) {
|
|
8
|
+
const entry = p.matching.byNode.get(node);
|
|
9
|
+
if (entry === undefined)
|
|
10
|
+
return true;
|
|
11
|
+
return entry.kind === "block" && !(0, apply_fate_1.isAnchored)(p, entry);
|
|
12
|
+
}
|
|
13
|
+
function childPlace(p, node) {
|
|
14
|
+
const entry = p.matching.byNode.get(node);
|
|
15
|
+
return entry?.kind === "block" && (0, apply_fate_1.isAnchored)(p, entry) ? entry : "fresh";
|
|
16
|
+
}
|
|
17
|
+
function typedName(type) {
|
|
18
|
+
if (type === undefined)
|
|
19
|
+
return UNTYPED_NAME;
|
|
20
|
+
return (0, apply_match_1.blockNameOf)(`${type.charAt(0).toLowerCase()}${type.slice(1)}`);
|
|
21
|
+
}
|
|
22
|
+
function unusedName(base, taken) {
|
|
23
|
+
let name = base;
|
|
24
|
+
for (let suffix = 2; taken.has(name); suffix += 1)
|
|
25
|
+
name = `${base}${suffix}`;
|
|
26
|
+
taken.add(name);
|
|
27
|
+
return name;
|
|
28
|
+
}
|
|
29
|
+
function namePlaces(p, nodes, place) {
|
|
30
|
+
const owned = new Set((0, apply_match_1.blocksAt)(place, p.matching.roots).map(({ block }) => block.name));
|
|
31
|
+
const taken = new Set([
|
|
32
|
+
...owned,
|
|
33
|
+
...nodes.flatMap(({ id }) => id === undefined ? [] : [id, (0, apply_match_1.blockNameOf)(id)]),
|
|
34
|
+
]);
|
|
35
|
+
for (const node of nodes) {
|
|
36
|
+
if (!writtenNew(p, node))
|
|
37
|
+
continue;
|
|
38
|
+
if (node.id === undefined) {
|
|
39
|
+
p.names.set(node, unusedName(typedName(node.type), taken));
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
const name = (0, apply_match_1.blockNameOf)(node.id);
|
|
43
|
+
if (owned.has(name))
|
|
44
|
+
continue;
|
|
45
|
+
owned.add(name);
|
|
46
|
+
p.names.set(node, name);
|
|
47
|
+
}
|
|
48
|
+
for (const node of nodes) {
|
|
49
|
+
namePlaces(p, node.children ?? [], childPlace(p, node));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=apply-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-names.js","sourceRoot":"","sources":["../../src/mockup/apply-names.ts"],"names":[],"mappings":";;AAwCA,gCA4BC;AApED,6CAAwD;AACxD,+CAAkE;AAGlE,MAAM,YAAY,GAAG,OAAO,CAAC;AAG7B,SAAS,UAAU,CAAC,CAAU,EAAE,IAAgB;IAC9C,MAAM,KAAK,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1C,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACrC,OAAO,KAAK,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,IAAA,uBAAU,EAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAGD,SAAS,UAAU,CAAC,CAAU,EAAE,IAAgB;IAC9C,MAAM,KAAK,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1C,OAAO,KAAK,EAAE,IAAI,KAAK,OAAO,IAAI,IAAA,uBAAU,EAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CA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C,EAAE,IAAI,CAAC;YAAE,SAAS;QACnC,IAAI,IAAI,CAAC,EAAE,KAAK,SAAS,EAAE,CAAC;YAC1B,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;YAC3D,SAAS;QACX,CAAC;QACD,MAAM,IAAI,GAAG,IAAA,yBAAW,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClC,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,SAAS;QAC9B,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1B,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,IAAI,EAAE,EAAE,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type WiringReason = "data" | "custom-component" | "table" | "held-block" | "move" | "parent" | "locked" | "type" | "name" | "placement";
|
|
2
|
+
export declare const WIRING_REASONS: Readonly<Record<WiringReason, string>>;
|
|
3
|
+
export type WiringNote = {
|
|
4
|
+
pointer: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
reason: WiringReason;
|
|
8
|
+
kept?: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WIRING_REASONS = void 0;
|
|
4
|
+
exports.WIRING_REASONS = {
|
|
5
|
+
data: "it reads data the live page does not serve: a fixture: reference standing for none of the page's liveRoutes, or a static* option its live block lacks. Wire it to a route or a query.",
|
|
6
|
+
"custom-component": "a Custom sketch that is new, edited, or put in place of a block. Build it as a custom component, or with blocks.",
|
|
7
|
+
table: "a table the mockup added, retyped, or whose columns, rows or source changed. Bind it to its resource with builder_configure_table_view.",
|
|
8
|
+
"held-block": "a block held in an option of its parent, such as a ChartCard's chart, changed or was removed. The option keeps its live value.",
|
|
9
|
+
move: "a live block the mockup moved to another parent, where the builder cannot rewrite it. It stays at kept: move it with builder_move_block.",
|
|
10
|
+
parent: "kept is a block the mockup removed, left in place with everything in it because the block of the node at pointer could not move out of it (that node's 'move' note says where it stays). Remove kept once that block is moved.",
|
|
11
|
+
locked: "a change the page's source locks: an option set in code, the type of such a block, or the order, slot or span of its children.",
|
|
12
|
+
type: "a type the builder cannot write here: one no block registers, or a real block put in place of a live sketch.",
|
|
13
|
+
name: "a new block whose id gives it the block name of another block at its place. Give the node an id of its own.",
|
|
14
|
+
placement: "a slot or colSpan on a block at the page's top level, which the builder lays out in order only: the block was written without it.",
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=apply-notes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-notes.js","sourceRoot":"","sources":["../../src/mockup/apply-notes.ts"],"names":[],"mappings":";;;AAaa,QAAA,cAAc,GAA2C;IACpE,IAAI,EAAE,uLAAuL;IAC7L,kBAAkB,EAChB,kHAAkH;IACpH,KAAK,EACH,yIAAyI;IAC3I,YAAY,EACV,gIAAgI;IAClI,IAAI,EAAE,0IAA0I;IAChJ,MAAM,EACJ,gOAAgO;IAClO,MAAM,EACJ,gIAAgI;IAClI,IAAI,EAAE,8GAA8G;IACpH,IAAI,EAAE,6GAA6G;IACnH,SAAS,EACP,mIAAmI;CACtI,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BlockNode, ConfigObject } from "@antelopejs/interface-dms-builder";
|
|
2
|
+
import type { WiringReason } from "./apply-notes";
|
|
3
|
+
import type { JsonObject, MockupNode } from "./model";
|
|
4
|
+
export type LiveOptions = {
|
|
5
|
+
ok: true;
|
|
6
|
+
config: ConfigObject;
|
|
7
|
+
} | {
|
|
8
|
+
ok: false;
|
|
9
|
+
reason: Extract<WiringReason, "data" | "locked" | "table">;
|
|
10
|
+
};
|
|
11
|
+
type Routes = Readonly<Record<string, string>>;
|
|
12
|
+
export declare function liveOptionsOf(options: JsonObject, routes: Routes, live: JsonObject | undefined, locked: Readonly<Record<string, string>> | undefined): LiveOptions;
|
|
13
|
+
export declare function ordered(live: ConfigObject | undefined, next: ConfigObject): ConfigObject;
|
|
14
|
+
export declare function tableOptionsOf(node: JsonObject, live: JsonObject, block: BlockNode, routes: Routes): LiveOptions;
|
|
15
|
+
export declare function metaOf(live: ConfigObject | undefined, colSpan: number | undefined): ConfigObject | undefined;
|
|
16
|
+
export declare function sameBlock(node: MockupNode, live: MockupNode): boolean;
|
|
17
|
+
export declare function placementOf(nodes: readonly MockupNode[]): string;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.liveOptionsOf = liveOptionsOf;
|
|
4
|
+
exports.ordered = ordered;
|
|
5
|
+
exports.tableOptionsOf = tableOptionsOf;
|
|
6
|
+
exports.metaOf = metaOf;
|
|
7
|
+
exports.sameBlock = sameBlock;
|
|
8
|
+
exports.placementOf = placementOf;
|
|
9
|
+
const node_util_1 = require("node:util");
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
const controller_blocks_1 = require("./controller-blocks");
|
|
12
|
+
const fixtures_1 = require("./fixtures");
|
|
13
|
+
const ROUTE_KEY_SUFFIX = "Url";
|
|
14
|
+
const STATIC_OPTION = /^static[A-Z]/;
|
|
15
|
+
const COL_SPAN = "colSpan";
|
|
16
|
+
const colSpanSchema = zod_1.z.number();
|
|
17
|
+
function isJsonObject(value) {
|
|
18
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19
|
+
}
|
|
20
|
+
function liveValue(value, key, routes) {
|
|
21
|
+
const fixture = (0, fixtures_1.fixtureKeyOf)(value);
|
|
22
|
+
if (fixture !== undefined) {
|
|
23
|
+
return key?.endsWith(ROUTE_KEY_SUFFIX) && Object.hasOwn(routes, fixture)
|
|
24
|
+
? routes[fixture]
|
|
25
|
+
: undefined;
|
|
26
|
+
}
|
|
27
|
+
if (Array.isArray(value)) {
|
|
28
|
+
const entries = value.map((entry) => liveValue(entry, undefined, routes));
|
|
29
|
+
return entries.every((entry) => entry !== undefined)
|
|
30
|
+
? entries
|
|
31
|
+
: undefined;
|
|
32
|
+
}
|
|
33
|
+
return isJsonObject(value) ? liveObject(value, routes) : value;
|
|
34
|
+
}
|
|
35
|
+
function liveObject(object, routes) {
|
|
36
|
+
const result = {};
|
|
37
|
+
for (const [key, entry] of Object.entries(object)) {
|
|
38
|
+
const value = liveValue(entry, key, routes);
|
|
39
|
+
if (value === undefined)
|
|
40
|
+
return undefined;
|
|
41
|
+
result[key] = value;
|
|
42
|
+
}
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
function liveOptionsOf(options, routes, live, locked) {
|
|
46
|
+
for (const key of Object.keys(options)) {
|
|
47
|
+
if (locked && Object.hasOwn(locked, key)) {
|
|
48
|
+
return { ok: false, reason: "locked" };
|
|
49
|
+
}
|
|
50
|
+
if (STATIC_OPTION.test(key) && !(live && Object.hasOwn(live, key))) {
|
|
51
|
+
return { ok: false, reason: "data" };
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const config = liveObject(options, routes);
|
|
55
|
+
return config ? { ok: true, config } : { ok: false, reason: "data" };
|
|
56
|
+
}
|
|
57
|
+
function ordered(live, next) {
|
|
58
|
+
const result = {};
|
|
59
|
+
for (const key of Object.keys(live ?? {})) {
|
|
60
|
+
if (Object.hasOwn(next, key))
|
|
61
|
+
result[key] = next[key];
|
|
62
|
+
}
|
|
63
|
+
for (const [key, value] of Object.entries(next)) {
|
|
64
|
+
if (!Object.hasOwn(result, key))
|
|
65
|
+
result[key] = value;
|
|
66
|
+
}
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
function splitTable(options) {
|
|
70
|
+
const picked = {};
|
|
71
|
+
const rest = {};
|
|
72
|
+
for (const [key, value] of Object.entries(options)) {
|
|
73
|
+
if (Object.hasOwn(controller_blocks_1.TABLE_SOURCE_PICKED, key))
|
|
74
|
+
picked[key] = value;
|
|
75
|
+
else
|
|
76
|
+
rest[key] = value;
|
|
77
|
+
}
|
|
78
|
+
return [picked, rest];
|
|
79
|
+
}
|
|
80
|
+
function tableOptionsOf(node, live, block, routes) {
|
|
81
|
+
const [picked, rest] = splitTable(node);
|
|
82
|
+
const [livePicked, liveRest] = splitTable(live);
|
|
83
|
+
if (!(0, node_util_1.isDeepStrictEqual)(rest, liveRest))
|
|
84
|
+
return { ok: false, reason: "table" };
|
|
85
|
+
const mapped = liveOptionsOf(picked, routes, livePicked, block.lockedOptions);
|
|
86
|
+
if (!mapped.ok)
|
|
87
|
+
return mapped;
|
|
88
|
+
const kept = Object.fromEntries(Object.entries(block.config ?? {}).filter(([key]) => !Object.hasOwn(controller_blocks_1.TABLE_SOURCE_PICKED, key)));
|
|
89
|
+
return {
|
|
90
|
+
ok: true,
|
|
91
|
+
config: ordered(block.config, { ...kept, ...mapped.config }),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function metaOf(live, colSpan) {
|
|
95
|
+
const meta = {};
|
|
96
|
+
for (const [key, value] of Object.entries(live ?? {})) {
|
|
97
|
+
if (key !== COL_SPAN || !colSpanSchema.safeParse(value).success) {
|
|
98
|
+
meta[key] = value;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (colSpan !== undefined)
|
|
102
|
+
meta[COL_SPAN] = colSpan;
|
|
103
|
+
return Object.keys(meta).length > 0 ? ordered(live, meta) : undefined;
|
|
104
|
+
}
|
|
105
|
+
function sameBlock(node, live) {
|
|
106
|
+
const content = ({ type, componentName, options, children }) => ({
|
|
107
|
+
type,
|
|
108
|
+
componentName,
|
|
109
|
+
options,
|
|
110
|
+
children,
|
|
111
|
+
});
|
|
112
|
+
return (0, node_util_1.isDeepStrictEqual)(content(node), content(live));
|
|
113
|
+
}
|
|
114
|
+
function placementOf(nodes) {
|
|
115
|
+
return JSON.stringify(nodes.map(({ id, slot, colSpan }) => ({ id, slot, colSpan })));
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=apply-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-options.js","sourceRoot":"","sources":["../../src/mockup/apply-options.ts"],"names":[],"mappings":";;AAwEA,sCAgBC;AAGD,0BAYC;AAiBD,wCAoBC;AAMD,wBAYC;AAGD,8BAQC;AAGD,kCAIC;AAhLD,yCAA8C;AAK9C,6BAAwB;AAExB,2DAA0D;AAC1D,yCAA0C;AAG1C,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAC/B,MAAM,aAAa,GAAG,cAAc,CAAC;AACrC,MAAM,QAAQ,GAAG,SAAS,CAAC;AAC3B,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC;AASjC,SAAS,YAAY,CAAC,KAAW;IAC/B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAQD,SAAS,SAAS,CAChB,KAAW,EACX,GAAuB,EACvB,MAAc;IAEd,MAAM,OAAO,GAAG,IAAA,uBAAY,EAAC,KAAK,CAAC,CAAC;IACpC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,GAAG,EAAE,QAAQ,CAAC,gBAAgB,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;YACtE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;YACjB,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;I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