@ccslabs/xtend 0.1.0-rc.1 → 0.1.2
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 +2 -0
- package/README.md +4 -0
- package/catalog/component-catalog-coverage.js +2 -0
- package/catalog/epic13-package-export-lock.js +11 -1
- package/catalog/epic13-rmt-production-readiness.js +0 -1
- package/catalog/epic18-rmt-action-effect-runtime.d.ts +36 -0
- package/catalog/epic18-rmt-action-effect-runtime.js +249 -0
- package/catalog/epic18-rmt-app-platform-authoring.d.ts +39 -0
- package/catalog/epic18-rmt-app-platform-authoring.js +319 -0
- package/catalog/epic18-rmt-app-platform-fixture.d.ts +33 -0
- package/catalog/epic18-rmt-app-platform-fixture.js +221 -0
- package/catalog/epic18-rmt-app-platform-release-handoff.d.ts +30 -0
- package/catalog/epic18-rmt-app-platform-release-handoff.js +231 -0
- package/catalog/epic18-rmt-app-platform-tooling.d.ts +38 -0
- package/catalog/epic18-rmt-app-platform-tooling.js +242 -0
- package/catalog/epic18-rmt-component-template-primitives.d.ts +33 -0
- package/catalog/epic18-rmt-component-template-primitives.js +240 -0
- package/catalog/epic18-rmt-dom-descriptor-renderer.d.ts +35 -0
- package/catalog/epic18-rmt-dom-descriptor-renderer.js +232 -0
- package/catalog/epic18-rmt-event-routing-runtime.d.ts +35 -0
- package/catalog/epic18-rmt-event-routing-runtime.js +234 -0
- package/catalog/epic18-rmt-state-selector-runtime.d.ts +34 -0
- package/catalog/epic18-rmt-state-selector-runtime.js +216 -0
- package/catalog/epic18-rmt-surface-resource-graph-runtime.d.ts +36 -0
- package/catalog/epic18-rmt-surface-resource-graph-runtime.js +256 -0
- package/catalog/surface-manager-controller.js +5 -1
- package/catalog/surface-manager-materialization.js +7 -1
- package/catalog/surface-manager-overlay-bridge.js +41 -6
- package/catalog/surface-manager-workbench-fixture.js +1 -1
- package/catalog/surface-type-capability-matrix.d.ts +61 -0
- package/catalog/surface-type-capability-matrix.js +183 -0
- package/catalog/type-exports-rmt.js +37 -1
- package/catalog/type-exports.js +3 -3
- package/components/icon-packs/lucide.js +4 -0
- package/components/manifest.json +2 -0
- package/components/prism-rmt.d.ts +34 -0
- package/components/prism-rmt.js +130 -0
- package/components/xcards.js +15 -0
- package/components/xcode.d.ts +36 -1
- package/components/xcode.js +215 -20
- package/components/xfooter.js +17 -0
- package/components/xheader.js +14 -0
- package/components/xhero.js +16 -1
- package/components/xlink.js +97 -14
- package/components/xmasonry.js +15 -0
- package/components/xplayer.d.ts +44 -2
- package/components/xplayer.js +242 -15
- package/components/xrouter.js +27 -2
- package/components/xsection.js +15 -0
- package/components/xsidepanel.js +10 -2
- package/components/xsurfacemanager-controller.d.ts +2 -1
- package/components/xsurfacemanager-controller.js +27 -3
- package/components/xsurfacemanager.d.ts +2 -0
- package/components/xsurfacemanager.js +20 -8
- package/components/xsurfaceoverlay-bridge.d.ts +20 -5
- package/components/xsurfaceoverlay-bridge.js +114 -18
- package/components/xsurfaceportal.d.ts +29 -0
- package/components/xsurfaceportal.js +122 -0
- package/components/xsurfaceregion.d.ts +50 -0
- package/components/xsurfaceregion.js +285 -0
- package/components/xsurfacewindow.js +2 -1
- package/components/xtooltip.js +89 -23
- package/docs/README.md +222 -298
- package/docs/changelog.md +107 -0
- package/docs/component-catalog-coverage.md +9 -9
- package/docs/component-platform.md +19 -1
- package/docs/component-ux-app-authoring.md +56 -63
- package/docs/components/xcode.md +83 -53
- package/docs/components/xsurfaceportal.md +32 -0
- package/docs/components/xsurfaceregion.md +37 -0
- package/docs/components.md +105 -69
- package/docs/de/README.md +264 -0
- package/docs/de/XTend-ADR.md +221 -0
- package/docs/de/a11y-keyboard-smokes.md +62 -0
- package/docs/de/about.md +18 -0
- package/docs/de/api.md +157 -0
- package/docs/de/best-practices.md +76 -0
- package/docs/de/changelog.md +107 -0
- package/docs/de/component-catalog-coverage.md +58 -0
- package/docs/de/component-lab.md +103 -0
- package/docs/de/component-long-tail-migration.md +41 -0
- package/docs/de/component-platform.md +177 -0
- package/docs/de/component-ux-app-authoring.md +123 -0
- package/docs/de/component-ux-authoring.md +96 -0
- package/docs/de/component-ux-gates.md +45 -0
- package/docs/de/components/x-rmt-lifecycle-demo-build.md +60 -0
- package/docs/de/components/xalert.md +81 -0
- package/docs/de/components/xbutton.md +103 -0
- package/docs/de/components/xcalendar.md +82 -0
- package/docs/de/components/xcards.md +128 -0
- package/docs/de/components/xcheckbox.md +102 -0
- package/docs/de/components/xcode.md +156 -0
- package/docs/de/components/xdialog.md +92 -0
- package/docs/de/components/xdrawer.md +84 -0
- package/docs/de/components/xfooter.md +126 -0
- package/docs/de/components/xform.md +128 -0
- package/docs/de/components/xheader.md +308 -0
- package/docs/de/components/xhero.md +142 -0
- package/docs/de/components/xicon.md +125 -0
- package/docs/de/components/xinput.md +129 -0
- package/docs/de/components/xlightbox.md +98 -0
- package/docs/de/components/xlink.md +109 -0
- package/docs/de/components/xmasonry.md +124 -0
- package/docs/de/components/xmenu.md +158 -0
- package/docs/de/components/xmodal.md +82 -0
- package/docs/de/components/xplayer.md +104 -0
- package/docs/de/components/xpopover.md +67 -0
- package/docs/de/components/xprogress.md +56 -0
- package/docs/de/components/xradio.md +103 -0
- package/docs/de/components/xrouter.md +260 -0
- package/docs/de/components/xsection.md +125 -0
- package/docs/de/components/xselect.md +105 -0
- package/docs/de/components/xsidepanel.md +30 -0
- package/docs/de/components/xspinner.md +102 -0
- package/docs/de/components/xstate.md +148 -0
- package/docs/de/components/xstatus.md +55 -0
- package/docs/de/components/xsummary.md +78 -0
- package/docs/de/components/xsurfacemanager.md +27 -0
- package/docs/de/components/xsurfacewindow.md +21 -0
- package/docs/de/components/xtabs.md +160 -0
- package/docs/de/components/xtextarea.md +98 -0
- package/docs/de/components/xtheme.md +167 -0
- package/docs/de/components/xtoast.md +62 -0
- package/docs/de/components/xtooltip.md +66 -0
- package/docs/de/components/xtype.md +82 -0
- package/docs/de/components/xutils.md +144 -0
- package/docs/de/components/xwriter.md +94 -0
- package/docs/de/components.md +153 -0
- package/docs/de/conditional-network-evidence-ci.md +38 -0
- package/docs/de/conditional-network-evidence.md +50 -0
- package/docs/de/core-migration-guide.md +110 -0
- package/docs/de/design-tokens.md +116 -0
- package/docs/de/docs-rmt-production-hardening.md +31 -0
- package/docs/de/enterprise-adoption.md +413 -0
- package/docs/de/enterprise-component-flex-release-handoff.md +129 -0
- package/docs/de/epic10-platform-gates.md +62 -0
- package/docs/de/epic10-release-handoff.md +81 -0
- package/docs/de/epic11-enterprise-ux-handoff.md +70 -0
- package/docs/de/epic12-rc0-handoff.md +61 -0
- package/docs/de/epic18-media-manager-vendor-upstream.md +318 -0
- package/docs/de/epic18-rmt-app-platform-release-handoff.md +67 -0
- package/docs/de/epic18-vendor-bugfixes.md +34 -0
- package/docs/de/existing-component-metadata.md +67 -0
- package/docs/de/hydration-performance-closure.md +34 -0
- package/docs/de/hydration-policies.md +71 -0
- package/docs/de/known-residual-triage.md +22 -0
- package/docs/de/manifest-import-policy.md +79 -0
- package/docs/de/manifest.md +112 -0
- package/docs/de/motion-contrast.md +67 -0
- package/docs/de/package-export-lock.md +44 -0
- package/docs/de/performance-measurements.md +106 -0
- package/docs/de/performance-regression.md +89 -0
- package/docs/de/performance.md +94 -0
- package/docs/de/previews/README.md +17 -0
- package/docs/de/prod-browser-csp-smokes.md +40 -0
- package/docs/de/public-component-types.md +79 -0
- package/docs/de/quick-start-guide.md +220 -0
- package/docs/de/rc0-adoption-guide.md +102 -0
- package/docs/de/rc0-gate-matrix.md +58 -0
- package/docs/de/rc1-gate-matrix-ci-handoff.md +56 -0
- package/docs/de/rc1-migration-notes.md +69 -0
- package/docs/de/rc1-readiness.md +46 -0
- package/docs/de/release-owner-acceptance.md +56 -0
- package/docs/de/release-report-pack-dry-run-evidence.md +39 -0
- package/docs/de/rmt-action-effect-runtime.md +81 -0
- package/docs/de/rmt-app-platform-authoring.md +54 -0
- package/docs/de/rmt-app-platform-fixture.md +46 -0
- package/docs/de/rmt-app-platform-migration-guide.md +88 -0
- package/docs/de/rmt-app-platform-tooling.md +79 -0
- package/docs/de/rmt-component-template-primitives.md +57 -0
- package/docs/de/rmt-dom-descriptor-renderer.md +64 -0
- package/docs/de/rmt-dsl-authoring-polish.md +145 -0
- package/docs/de/rmt-event-routing-runtime.md +81 -0
- package/docs/de/rmt-first-demo-app.md +77 -0
- package/docs/de/rmt-first-xtend-apps.md +129 -0
- package/docs/de/rmt-kernel-panic-recovery-incident-handoff.md +61 -0
- package/docs/de/rmt-kernel-security-hardening-migration.md +50 -0
- package/docs/de/rmt-kernel-trusted-output-authoring.md +69 -0
- package/docs/de/rmt-language-server.md +234 -0
- package/docs/de/rmt-lifecycle-demo.md +24 -0
- package/docs/de/rmt-linter.md +140 -0
- package/docs/de/rmt-node-ssr-adapter.md +100 -0
- package/docs/de/rmt-php-ssr-adapter.md +120 -0
- package/docs/de/rmt-production-readiness.md +63 -0
- package/docs/de/rmt-state-selector-runtime.md +47 -0
- package/docs/de/rmt-surface-resource-graph-runtime.md +92 -0
- package/docs/de/rmt-tooling-release-gates.md +77 -0
- package/docs/de/rmt-vnext-authoring.md +170 -0
- package/docs/de/rmt-vnext-component-primitives.md +188 -0
- package/docs/de/rmt-vnext-cross-surface-events.md +68 -0
- package/docs/de/rmt-vnext-enterprise-mfe-handoff.md +70 -0
- package/docs/de/rmt-vnext-fabric-bridge-evidence.md +81 -0
- package/docs/de/rmt-vnext-migration-notes.md +62 -0
- package/docs/de/rmt-vnext-primitive-authoring-tooling.md +247 -0
- package/docs/de/rmt-vnext-primitive-grammar-design.md +289 -0
- package/docs/de/rmt-vnext-primitive-lowering.md +108 -0
- package/docs/de/rmt-vnext-primitive-migration.md +119 -0
- package/docs/de/rmt-vnext-primitive-parser-ast.md +76 -0
- package/docs/de/rmt-vnext-primitive-semantic-graph.md +118 -0
- package/docs/de/rmt-vnext-primitives-compiler-backlog.md +739 -0
- package/docs/de/rmt-vnext-release-handoff.md +83 -0
- package/docs/de/rmt-vnext-remote-surfaces.md +90 -0
- package/docs/de/rmt-vnext-source-to-sea-gate.md +612 -0
- package/docs/de/rmt-vnext-surface-registry-enterprise.md +76 -0
- package/docs/de/screenreader-signals.md +56 -0
- package/docs/de/supply-chain-gates.md +100 -0
- package/docs/de/surface-manager-authoring-guide.md +94 -0
- package/docs/de/surface-manager-browser-lab.md +45 -0
- package/docs/de/surface-manager-component-lab.md +43 -0
- package/docs/de/surface-manager-controller.md +66 -0
- package/docs/de/surface-manager-layout-engines.md +32 -0
- package/docs/de/surface-manager-lazy-hydration.md +63 -0
- package/docs/de/surface-manager-migration-guide.md +122 -0
- package/docs/de/surface-manager-native-rmt-surfaces.md +38 -0
- package/docs/de/surface-manager-overlay-bridge.md +53 -0
- package/docs/de/surface-manager-persistence.md +30 -0
- package/docs/de/surface-manager-quality-gates.md +51 -0
- package/docs/de/surface-manager-release-handoff.md +68 -0
- package/docs/de/surface-manager-remote-policy.md +54 -0
- package/docs/de/surface-manager-rmt-authoring.md +102 -0
- package/docs/de/surface-manager-route-lifecycle.md +59 -0
- package/docs/de/surface-manager-runtime-release-handoff.md +69 -0
- package/docs/de/surface-manager-side-panel-runtime.md +36 -0
- package/docs/de/surface-manager-stack-policy.md +39 -0
- package/docs/de/surface-manager-window-runtime.md +47 -0
- package/docs/de/surface-manager-workbench-fixture.md +43 -0
- package/docs/de/third-party-design-authoring.md +406 -0
- package/docs/de/trusted-dom-boundary-browser-proof.md +32 -0
- package/docs/de/trusted-dom-sanitizing.md +110 -0
- package/docs/de/type-exports.md +61 -0
- package/docs/de/typescript-components.md +63 -0
- package/docs/de/visual-browser-regression.md +83 -0
- package/docs/de/visual-owner-artifacts.md +46 -0
- package/docs/de/visual-snapshot-automation.md +87 -0
- package/docs/de/xtend-api-types.md +55 -0
- package/docs/de/xtend-builder-types.md +55 -0
- package/docs/de/xtend-catalog-types.md +44 -0
- package/docs/de/xtend-fabric-rmt-lane-mapping.md +143 -0
- package/docs/de/xtend-fabric.md +474 -0
- package/docs/de/xtend-loader-types.md +58 -0
- package/docs/de/xtend-loader.md +265 -0
- package/docs/de/xtend-policy-types.md +38 -0
- package/docs/de/xtend-rmt-types.md +40 -0
- package/docs/de/xtend-vendor-types.md +36 -0
- package/docs/de/xtendrmt-app-dsl.md +334 -0
- package/docs/de/xtendrmt-migration-guide.md +266 -0
- package/docs/de/xtendrmt-native-authoring.md +333 -0
- package/docs/de/xtendrmt-overview.md +109 -0
- package/docs/de/xtendrmt-parsedown-scheduling.md +301 -0
- package/docs/de/xtendrmt-runtime-bridge.md +155 -0
- package/docs/en/README.md +163 -0
- package/docs/en/XTend-ADR.md +221 -0
- package/docs/en/a11y-keyboard-smokes.md +68 -0
- package/docs/en/about.md +25 -0
- package/docs/en/api.md +171 -0
- package/docs/en/best-practices.md +125 -0
- package/docs/en/changelog.md +104 -0
- package/docs/en/component-catalog-coverage.md +104 -0
- package/docs/en/component-lab.md +103 -0
- package/docs/en/component-long-tail-migration.md +41 -0
- package/docs/en/component-platform.md +243 -0
- package/docs/en/component-ux-app-authoring.md +118 -0
- package/docs/en/component-ux-authoring.md +96 -0
- package/docs/en/component-ux-gates.md +45 -0
- package/docs/en/components/x-rmt-lifecycle-demo-build.md +75 -0
- package/docs/en/components/xalert.md +94 -0
- package/docs/en/components/xbutton.md +118 -0
- package/docs/en/components/xcalendar.md +95 -0
- package/docs/en/components/xcards.md +139 -0
- package/docs/en/components/xcheckbox.md +118 -0
- package/docs/en/components/xcode.md +153 -0
- package/docs/en/components/xdialog.md +108 -0
- package/docs/en/components/xdrawer.md +110 -0
- package/docs/en/components/xfooter.md +138 -0
- package/docs/en/components/xform.md +147 -0
- package/docs/en/components/xheader.md +308 -0
- package/docs/en/components/xhero.md +157 -0
- package/docs/en/components/xicon.md +149 -0
- package/docs/en/components/xinput.md +147 -0
- package/docs/en/components/xlightbox.md +113 -0
- package/docs/en/components/xlink.md +130 -0
- package/docs/en/components/xmasonry.md +136 -0
- package/docs/en/components/xmenu.md +185 -0
- package/docs/en/components/xmodal.md +102 -0
- package/docs/en/components/xplayer.md +114 -0
- package/docs/en/components/xpopover.md +87 -0
- package/docs/en/components/xprogress.md +73 -0
- package/docs/en/components/xradio.md +119 -0
- package/docs/en/components/xrouter.md +260 -0
- package/docs/en/components/xsection.md +136 -0
- package/docs/en/components/xselect.md +122 -0
- package/docs/en/components/xsidepanel.md +48 -0
- package/docs/en/components/xspinner.md +118 -0
- package/docs/en/components/xstate.md +163 -0
- package/docs/en/components/xstatus.md +71 -0
- package/docs/en/components/xsummary.md +90 -0
- package/docs/en/components/xsurfacemanager.md +42 -0
- package/docs/en/components/xsurfacewindow.md +31 -0
- package/docs/en/components/xtabs.md +187 -0
- package/docs/en/components/xtextarea.md +115 -0
- package/docs/en/components/xtheme.md +203 -0
- package/docs/en/components/xtoast.md +78 -0
- package/docs/en/components/xtooltip.md +85 -0
- package/docs/en/components/xtype.md +91 -0
- package/docs/en/components/xutils.md +161 -0
- package/docs/en/components/xwriter.md +106 -0
- package/docs/en/components.md +151 -0
- package/docs/en/conditional-network-evidence-ci.md +38 -0
- package/docs/en/conditional-network-evidence.md +50 -0
- package/docs/en/core-migration-guide.md +110 -0
- package/docs/en/design-tokens.md +137 -0
- package/docs/en/docs-rmt-production-hardening.md +31 -0
- package/docs/en/enterprise-adoption.md +413 -0
- package/docs/en/enterprise-component-flex-release-handoff.md +129 -0
- package/docs/en/epic10-platform-gates.md +62 -0
- package/docs/en/epic10-release-handoff.md +81 -0
- package/docs/en/epic11-enterprise-ux-handoff.md +70 -0
- package/docs/en/epic12-rc0-handoff.md +61 -0
- package/docs/en/epic18-media-manager-vendor-upstream.md +232 -0
- package/docs/en/epic18-rmt-app-platform-release-handoff.md +60 -0
- package/docs/en/epic18-vendor-bugfixes.md +29 -0
- package/docs/en/existing-component-metadata.md +67 -0
- package/docs/en/hydration-performance-closure.md +34 -0
- package/docs/en/hydration-policies.md +75 -0
- package/docs/en/known-residual-triage.md +22 -0
- package/docs/en/manifest-import-policy.md +81 -0
- package/docs/en/manifest.md +135 -0
- package/docs/en/motion-contrast.md +67 -0
- package/docs/en/package-export-lock.md +44 -0
- package/docs/en/performance-measurements.md +106 -0
- package/docs/en/performance-regression.md +89 -0
- package/docs/en/performance.md +132 -0
- package/docs/en/previews/README.md +17 -0
- package/docs/en/prod-browser-csp-smokes.md +40 -0
- package/docs/en/public-component-types.md +79 -0
- package/docs/en/quick-start-guide.md +189 -0
- package/docs/en/rc0-adoption-guide.md +102 -0
- package/docs/en/rc0-gate-matrix.md +58 -0
- package/docs/en/rc1-gate-matrix-ci-handoff.md +56 -0
- package/docs/en/rc1-migration-notes.md +69 -0
- package/docs/en/rc1-readiness.md +46 -0
- package/docs/en/release-owner-acceptance.md +56 -0
- package/docs/en/release-report-pack-dry-run-evidence.md +39 -0
- package/docs/en/rmt-action-effect-runtime.md +101 -0
- package/docs/en/rmt-app-platform-authoring.md +47 -0
- package/docs/en/rmt-app-platform-fixture.md +35 -0
- package/docs/en/rmt-app-platform-migration-guide.md +75 -0
- package/docs/en/rmt-app-platform-tooling.md +58 -0
- package/docs/en/rmt-component-template-primitives.md +49 -0
- package/docs/en/rmt-dom-descriptor-renderer.md +54 -0
- package/docs/en/rmt-dsl-authoring-polish.md +143 -0
- package/docs/en/rmt-event-routing-runtime.md +98 -0
- package/docs/en/rmt-first-demo-app.md +87 -0
- package/docs/en/rmt-first-xtend-apps.md +127 -0
- package/docs/en/rmt-kernel-panic-recovery-incident-handoff.md +60 -0
- package/docs/en/rmt-kernel-security-hardening-migration.md +49 -0
- package/docs/en/rmt-kernel-trusted-output-authoring.md +68 -0
- package/docs/en/rmt-language-server.md +243 -0
- package/docs/en/rmt-lifecycle-demo.md +23 -0
- package/docs/en/rmt-linter.md +146 -0
- package/docs/en/rmt-node-ssr-adapter.md +99 -0
- package/docs/en/rmt-php-ssr-adapter.md +118 -0
- package/docs/en/rmt-production-readiness.md +63 -0
- package/docs/en/rmt-state-selector-runtime.md +34 -0
- package/docs/en/rmt-surface-resource-graph-runtime.md +68 -0
- package/docs/en/rmt-tooling-release-gates.md +77 -0
- package/docs/en/rmt-vnext-authoring.md +102 -0
- package/docs/en/rmt-vnext-component-primitives.md +185 -0
- package/docs/en/rmt-vnext-cross-surface-events.md +59 -0
- package/docs/en/rmt-vnext-enterprise-mfe-handoff.md +62 -0
- package/docs/en/rmt-vnext-fabric-bridge-evidence.md +64 -0
- package/docs/en/rmt-vnext-migration-notes.md +62 -0
- package/docs/en/rmt-vnext-primitive-authoring-tooling.md +174 -0
- package/docs/en/rmt-vnext-primitive-grammar-design.md +268 -0
- package/docs/en/rmt-vnext-primitive-lowering.md +91 -0
- package/docs/en/rmt-vnext-primitive-migration.md +93 -0
- package/docs/en/rmt-vnext-primitive-parser-ast.md +59 -0
- package/docs/en/rmt-vnext-primitive-semantic-graph.md +103 -0
- package/docs/en/rmt-vnext-primitives-compiler-backlog.md +327 -0
- package/docs/en/rmt-vnext-release-handoff.md +83 -0
- package/docs/en/rmt-vnext-remote-surfaces.md +81 -0
- package/docs/en/rmt-vnext-source-to-sea-gate.md +482 -0
- package/docs/en/rmt-vnext-surface-registry-enterprise.md +68 -0
- package/docs/en/screenreader-signals.md +56 -0
- package/docs/en/supply-chain-gates.md +106 -0
- package/docs/en/surface-manager-authoring-guide.md +94 -0
- package/docs/en/surface-manager-browser-lab.md +45 -0
- package/docs/en/surface-manager-component-lab.md +43 -0
- package/docs/en/surface-manager-controller.md +66 -0
- package/docs/en/surface-manager-layout-engines.md +32 -0
- package/docs/en/surface-manager-lazy-hydration.md +63 -0
- package/docs/en/surface-manager-migration-guide.md +113 -0
- package/docs/en/surface-manager-native-rmt-surfaces.md +38 -0
- package/docs/en/surface-manager-overlay-bridge.md +53 -0
- package/docs/en/surface-manager-persistence.md +30 -0
- package/docs/en/surface-manager-quality-gates.md +51 -0
- package/docs/en/surface-manager-release-handoff.md +68 -0
- package/docs/en/surface-manager-remote-policy.md +54 -0
- package/docs/en/surface-manager-rmt-authoring.md +89 -0
- package/docs/en/surface-manager-route-lifecycle.md +59 -0
- package/docs/en/surface-manager-runtime-release-handoff.md +69 -0
- package/docs/en/surface-manager-side-panel-runtime.md +36 -0
- package/docs/en/surface-manager-stack-policy.md +39 -0
- package/docs/en/surface-manager-window-runtime.md +47 -0
- package/docs/en/surface-manager-workbench-fixture.md +43 -0
- package/docs/en/third-party-design-authoring.md +406 -0
- package/docs/en/trusted-dom-boundary-browser-proof.md +32 -0
- package/docs/en/trusted-dom-sanitizing.md +124 -0
- package/docs/en/type-exports.md +61 -0
- package/docs/en/typescript-components.md +63 -0
- package/docs/en/visual-browser-regression.md +83 -0
- package/docs/en/visual-owner-artifacts.md +46 -0
- package/docs/en/visual-snapshot-automation.md +87 -0
- package/docs/en/xtend-api-types.md +55 -0
- package/docs/en/xtend-builder-types.md +55 -0
- package/docs/en/xtend-catalog-types.md +44 -0
- package/docs/en/xtend-fabric-rmt-lane-mapping.md +143 -0
- package/docs/en/xtend-fabric.md +474 -0
- package/docs/en/xtend-loader-types.md +58 -0
- package/docs/en/xtend-loader.md +265 -0
- package/docs/en/xtend-policy-types.md +38 -0
- package/docs/en/xtend-rmt-types.md +40 -0
- package/docs/en/xtend-vendor-types.md +36 -0
- package/docs/en/xtendrmt-app-dsl.md +331 -0
- package/docs/en/xtendrmt-migration-guide.md +256 -0
- package/docs/en/xtendrmt-native-authoring.md +336 -0
- package/docs/en/xtendrmt-overview.md +63 -0
- package/docs/en/xtendrmt-parsedown-scheduling.md +301 -0
- package/docs/en/xtendrmt-runtime-bridge.md +155 -0
- package/docs/enterprise-adoption.md +4 -2
- package/docs/epic18-media-manager-vendor-upstream.md +318 -0
- package/docs/epic18-rmt-app-platform-release-handoff.md +67 -0
- package/docs/epic18-vendor-bugfixes.md +34 -0
- package/docs/index.php +1056 -109
- package/docs/manifest.md +8 -2
- package/docs/menu.json +986 -133
- package/docs/package-export-lock.md +2 -2
- package/docs/public-component-types.md +2 -2
- package/docs/quick-start-guide.md +126 -58
- package/docs/rmt-action-effect-runtime.md +101 -0
- package/docs/rmt-app-platform-authoring.md +54 -0
- package/docs/rmt-app-platform-fixture.md +46 -0
- package/docs/rmt-app-platform-migration-guide.md +88 -0
- package/docs/rmt-app-platform-tooling.md +79 -0
- package/docs/rmt-component-template-primitives.md +57 -0
- package/docs/rmt-dom-descriptor-renderer.md +64 -0
- package/docs/rmt-dsl-authoring-polish.md +67 -44
- package/docs/rmt-event-routing-runtime.md +98 -0
- package/docs/rmt-first-demo-app.md +2 -2
- package/docs/rmt-first-xtend-apps.md +70 -46
- package/docs/rmt-language-server.md +61 -4
- package/docs/rmt-lifecycle-demo.md +1 -2
- package/docs/rmt-node-ssr-adapter.md +144 -0
- package/docs/rmt-php-ssr-adapter.md +158 -0
- package/docs/rmt-state-selector-runtime.md +47 -0
- package/docs/rmt-surface-resource-graph-runtime.md +92 -0
- package/docs/rmt-vnext-authoring.md +128 -18
- package/docs/rmt-vnext-component-primitives.md +188 -0
- package/docs/rmt-vnext-fabric-bridge-evidence.md +81 -0
- package/docs/rmt-vnext-primitive-authoring-tooling.md +247 -0
- package/docs/rmt-vnext-primitive-grammar-design.md +289 -0
- package/docs/rmt-vnext-primitive-lowering.md +108 -0
- package/docs/rmt-vnext-primitive-migration.md +119 -0
- package/docs/rmt-vnext-primitive-parser-ast.md +76 -0
- package/docs/rmt-vnext-primitive-semantic-graph.md +118 -0
- package/docs/rmt-vnext-primitives-compiler-backlog.md +742 -0
- package/docs/rmt-vnext-release-handoff.md +14 -0
- package/docs/rmt-vnext-source-to-sea-gate.md +629 -0
- package/docs/surface-manager-migration-guide.md +34 -6
- package/docs/surface-manager-overlay-bridge.md +9 -4
- package/docs/surface-manager-rmt-authoring.md +50 -34
- package/docs/surface-manager-workbench-fixture.md +1 -2
- package/docs/third-party-design-authoring.md +1 -1
- package/docs/type-exports.md +3 -3
- package/docs/utils/pageloader.js +811 -62
- package/docs/visual-browser-regression.md +1 -1
- package/docs/xtend-rmt-types.md +3 -2
- package/docs/xtendrmt-app-dsl.md +187 -122
- package/docs/xtendrmt-docs-shell-vnext.rmt +165 -0
- package/docs/xtendrmt-migration-guide.md +48 -17
- package/docs/xtendrmt-native-authoring.md +213 -217
- package/docs/xtendrmt-overview.md +81 -61
- package/docs/xtendrmt-parsedown-scheduling.md +23 -8
- package/fabric/package.json +1 -1
- package/package.json +684 -21
- package/tools/package.json +5 -1
- package/tools/rmt-editor/vscode/README.md +72 -5
- package/tools/rmt-editor/vscode/XTend-Logo.png +0 -0
- package/tools/rmt-editor/vscode/extension.d.ts +33 -0
- package/tools/rmt-editor/vscode/extension.js +1816 -7
- package/tools/rmt-editor/vscode/language-configuration.json +2 -1
- package/tools/rmt-editor/vscode/package.json +193 -2
- package/tools/rmt-editor/vscode/snippets/rmt.code-snippets +41 -0
- package/tools/rmt-editor/vscode/syntaxes/rmt.tmLanguage.json +103 -1
- package/tools/rmt-editor/vscode/templates/launch.json +70 -0
- package/tools/rmt-editor/vscode/templates/tasks.json +172 -0
- package/tools/rmt-editor/vscode/xtend-rmt-language-0.0.0-enterprise-readiness.vsix +0 -0
- package/tools/rmt-language/app-platform-tooling.d.ts +128 -0
- package/tools/rmt-language/app-platform-tooling.js +677 -0
- package/tools/rmt-language/completions.d.ts +5 -0
- package/tools/rmt-language/completions.js +185 -3
- package/tools/rmt-language/diagnostics.js +54 -0
- package/tools/rmt-language/hover.js +36 -0
- package/tools/rmt-language/rmt-tooling-public-types.d.ts +7 -0
- package/tools/rmt-language/rules/app-platform-policy.js +39 -0
- package/tools/rmt-language/rules/index.js +5 -1
- package/tools/rmt-language/semantic-graph.d.ts +6 -0
- package/tools/rmt-language/semantic-graph.js +928 -0
- package/tools/rmt-language/snippets/index.js +44 -0
- package/tools/rmt-language/snippets/rmt.code-snippets +41 -0
- package/tools/rmt-language/vnext-compatibility.d.ts +10 -0
- package/tools/rmt-language/vnext-compatibility.js +642 -0
- package/tools/rmt-language/vnext-compiler.d.ts +5 -0
- package/tools/rmt-language/vnext-compiler.js +863 -17
- package/tools/rmt-language/vnext-parser.js +725 -9
- package/tools/rmt-language/vnext-release.d.ts +1 -0
- package/tools/rmt-language/vnext-release.js +20 -0
- package/tools/rmt-language/vnext-source-to-sea.d.ts +33 -0
- package/tools/rmt-language/vnext-source-to-sea.js +2227 -0
- package/tools/rmt-language/vnext-surfaces.js +111 -52
- package/tools/rmt-language/vnext-tooling.d.ts +19 -1
- package/tools/rmt-language/vnext-tooling.js +1247 -5
- package/tools/rmt-language-server/protocol.js +3 -0
- package/tools/rmt-language-server/server.d.ts +2 -0
- package/tools/rmt-language-server/server.js +176 -22
- package/tools/rmt-linter/cli.d.ts +2 -0
- package/tools/rmt-linter/cli.js +62 -0
- package/xtend-builder/generators/registry.js +11 -0
- package/xtend-builder/generators/rmt-app-platform.js +239 -0
- package/xtend-builder/generators/rmt-lifecycle-demo.js +3 -11
- package/xtend-builder/lib/cli.js +38 -0
- package/xtend-builder/package.json +3 -3
- package/xtend-builder/scaffold.config.js +29 -2
- package/xtend.css +49 -2
- package/xtendrmt/package.json +49 -1
- package/xtendrmt/rmt-action-effect-runtime.d.ts +126 -0
- package/xtendrmt/rmt-action-effect-runtime.js +494 -0
- package/xtendrmt/rmt-component-capability-registry.d.ts +180 -0
- package/xtendrmt/rmt-component-capability-registry.js +636 -0
- package/xtendrmt/rmt-core.d.ts +6 -0
- package/xtendrmt/rmt-core.esm.js +32 -6
- package/xtendrmt/rmt-dom-descriptor-renderer.d.ts +107 -0
- package/xtendrmt/rmt-dom-descriptor-renderer.js +1066 -0
- package/xtendrmt/rmt-event-routing-runtime.d.ts +144 -0
- package/xtendrmt/rmt-event-routing-runtime.js +666 -0
- package/xtendrmt/rmt-lifecycle-demo.app.js +2 -2
- package/xtendrmt/rmt-lifecycle-demo.core.json +4 -0
- package/xtendrmt/rmt-lifecycle-demo.rmt-build.app.js +1 -1
- package/xtendrmt/rmt-lifecycle-demo.rmt-build.scaffold.json +2 -2
- package/xtendrmt/rmt-lifecycle-demo.scaffold.json +4 -4
- package/xtendrmt/rmt-native-shell-runtime.d.ts +77 -0
- package/xtendrmt/rmt-native-shell-runtime.js +309 -0
- package/xtendrmt/rmt-node-ssr-adapter.d.ts +197 -0
- package/xtendrmt/rmt-node-ssr-adapter.js +1006 -0
- package/xtendrmt/rmt-php-ssr-adapter.php +976 -0
- package/xtendrmt/rmt-runtime.browser.js +32 -6
- package/xtendrmt/rmt-runtime.esm.js +32 -6
- package/xtendrmt/rmt-state-selector-runtime.d.ts +166 -0
- package/xtendrmt/rmt-state-selector-runtime.js +866 -0
- package/xtendrmt/rmt-surface-resource-graph-runtime.d.ts +224 -0
- package/xtendrmt/rmt-surface-resource-graph-runtime.js +932 -0
- package/xtendrmt/rmt-vnext-enterprise-mfe-demo.core.json +3 -0
- package/xtendrmt/rmt-vnext-reference-demo.core.json +3 -0
- package/xtendrmt/xtendrmt-bestcase-demo.core.json +3420 -372
- package/xtendrmt/xtendrmt-bestcase-demo.js +424 -8
- package/xtendrmt/xtendrmt-bestcase-demo.rmt +214 -6
|
@@ -0,0 +1,666 @@
|
|
|
1
|
+
(function attachRmtEventRoutingRuntime(globalTarget) {
|
|
2
|
+
const RMT_EVENT_ROUTING_RUNTIME_SCHEMA = 'xtend.epic18.rmt-event-routing-runtime.v1';
|
|
3
|
+
const RMT_EVENT_ROUTING_DIAGNOSTIC_SCHEMA = 'xtend.epic18.rmt-event-routing-diagnostic.v1';
|
|
4
|
+
const DEFAULT_DIAGNOSTIC_CHANNEL = 'rmt.app_platform.event_routing';
|
|
5
|
+
|
|
6
|
+
function clampString(value, fallback = '') {
|
|
7
|
+
const normalized = String(value == null ? '' : value).trim();
|
|
8
|
+
return normalized || fallback;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function toArray(value) {
|
|
12
|
+
return Array.isArray(value) ? value : (value == null ? [] : [value]);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function objectRecord(value) {
|
|
16
|
+
return value && typeof value === 'object' && !Array.isArray(value) ? value : {};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function cloneValue(value, fallback = null) {
|
|
20
|
+
if (typeof value === 'undefined') return fallback;
|
|
21
|
+
if (value === null || typeof value !== 'object') return value;
|
|
22
|
+
try {
|
|
23
|
+
return JSON.parse(JSON.stringify(value));
|
|
24
|
+
} catch (_) {
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function readPath(source, path) {
|
|
30
|
+
if (!path) return source;
|
|
31
|
+
if (source && typeof source === 'object' && Object.prototype.hasOwnProperty.call(source, path)) return source[path];
|
|
32
|
+
const parts = String(path).split('.').filter(Boolean);
|
|
33
|
+
let cursor = source;
|
|
34
|
+
for (const part of parts) {
|
|
35
|
+
if (cursor == null) return undefined;
|
|
36
|
+
if (part === 'length' && (Array.isArray(cursor) || typeof cursor === 'string')) return cursor.length;
|
|
37
|
+
cursor = cursor[part];
|
|
38
|
+
}
|
|
39
|
+
return cursor;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function toDatasetRecord(target) {
|
|
43
|
+
const dataset = target && target.dataset && typeof target.dataset === 'object' ? target.dataset : {};
|
|
44
|
+
const result = {};
|
|
45
|
+
Object.keys(dataset).forEach((key) => {
|
|
46
|
+
result[key] = dataset[key];
|
|
47
|
+
});
|
|
48
|
+
return result;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function getAttributeValue(target, name) {
|
|
52
|
+
if (!target || !name) return undefined;
|
|
53
|
+
if (typeof target.getAttribute === 'function') return target.getAttribute(name);
|
|
54
|
+
if (target.attributes && Object.prototype.hasOwnProperty.call(target.attributes, name)) return target.attributes[name];
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function eventPath(event) {
|
|
59
|
+
if (event && typeof event.composedPath === 'function') {
|
|
60
|
+
const path = event.composedPath();
|
|
61
|
+
if (Array.isArray(path)) return path;
|
|
62
|
+
}
|
|
63
|
+
const path = [];
|
|
64
|
+
let cursor = event && event.target || null;
|
|
65
|
+
while (cursor) {
|
|
66
|
+
path.push(cursor);
|
|
67
|
+
cursor = cursor.parentElement || cursor.parentNode || null;
|
|
68
|
+
}
|
|
69
|
+
return path;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function matchesSelector(target, selector) {
|
|
73
|
+
if (!target || !selector) return false;
|
|
74
|
+
if (typeof target.matches === 'function') return target.matches(selector);
|
|
75
|
+
if (selector.startsWith('[data-') && selector.endsWith(']')) {
|
|
76
|
+
const match = selector.match(/^\[([^=\]]+)(?:="([^"]*)")?\]$/u);
|
|
77
|
+
if (!match) return false;
|
|
78
|
+
const value = getAttributeValue(target, match[1]);
|
|
79
|
+
return typeof match[2] === 'undefined' ? value != null : String(value) === match[2];
|
|
80
|
+
}
|
|
81
|
+
if (selector.startsWith('#')) return target.id === selector.slice(1);
|
|
82
|
+
if (selector.startsWith('.')) return String(target.className || '').split(/\s+/u).includes(selector.slice(1));
|
|
83
|
+
return String(target.tagName || target.localName || '').toLowerCase() === selector.toLowerCase();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function closestTarget(event, selector, fallback) {
|
|
87
|
+
if (!selector) return fallback;
|
|
88
|
+
const start = event && event.target || fallback;
|
|
89
|
+
if (start && typeof start.closest === 'function') {
|
|
90
|
+
const nativeClosest = start.closest;
|
|
91
|
+
const closest = nativeClosest.call(start, selector);
|
|
92
|
+
if (closest) return closest;
|
|
93
|
+
}
|
|
94
|
+
return eventPath(event).find((entry) => matchesSelector(entry, selector)) || fallback;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function fileSummary(file) {
|
|
98
|
+
return {
|
|
99
|
+
name: clampString(file && file.name, ''),
|
|
100
|
+
size: Number.isFinite(file && file.size) ? file.size : 0,
|
|
101
|
+
type: clampString(file && file.type, ''),
|
|
102
|
+
lastModified: Number.isFinite(file && file.lastModified) ? file.lastModified : null
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function fileListToArray(files) {
|
|
107
|
+
if (!files) return [];
|
|
108
|
+
try {
|
|
109
|
+
return Array.from(files).map(fileSummary);
|
|
110
|
+
} catch (_) {
|
|
111
|
+
const result = [];
|
|
112
|
+
for (let index = 0; index < (files.length || 0); index += 1) {
|
|
113
|
+
result.push(fileSummary(files[index]));
|
|
114
|
+
}
|
|
115
|
+
return result;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function resolveEventSource(binding, event) {
|
|
120
|
+
const governance = objectRecord(binding.governance);
|
|
121
|
+
if (governance.retarget === 'current-target') return event && event.currentTarget || null;
|
|
122
|
+
if (governance.retarget === 'composed-path' && event && typeof event.composedPath === 'function') {
|
|
123
|
+
const path = event.composedPath();
|
|
124
|
+
return Array.isArray(path) && path.length ? path[0] : event.target || null;
|
|
125
|
+
}
|
|
126
|
+
return event && event.target || null;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function resolveValue(value, context = {}) {
|
|
130
|
+
if (Array.isArray(value)) return value.map((entry) => resolveValue(entry, context));
|
|
131
|
+
if (value && typeof value === 'object') {
|
|
132
|
+
const result = {};
|
|
133
|
+
Object.entries(value).forEach(([key, entry]) => {
|
|
134
|
+
result[key] = resolveValue(entry, context);
|
|
135
|
+
});
|
|
136
|
+
return result;
|
|
137
|
+
}
|
|
138
|
+
if (typeof value !== 'string') return value;
|
|
139
|
+
if (value === '$event') return context.event;
|
|
140
|
+
if (value.startsWith('$event.')) return readPath(context.event, value.slice(7));
|
|
141
|
+
if (value === '$target') return context.target;
|
|
142
|
+
if (value.startsWith('$target.')) return readPath(context.target, value.slice(8));
|
|
143
|
+
if (value === '$currentTarget') return context.currentTarget;
|
|
144
|
+
if (value.startsWith('$currentTarget.')) return readPath(context.currentTarget, value.slice(15));
|
|
145
|
+
if (value === '$source') return context.source;
|
|
146
|
+
if (value.startsWith('$source.')) return readPath(context.source, value.slice(8));
|
|
147
|
+
if (value === '$detail') return context.event && context.event.detail;
|
|
148
|
+
if (value.startsWith('$detail.')) return readPath(context.event && context.event.detail, value.slice(8));
|
|
149
|
+
if (value === '$metadata') return context.metadata;
|
|
150
|
+
if (value.startsWith('$metadata.')) return readPath(context.metadata, value.slice(10));
|
|
151
|
+
if (value === '$binding') return context.binding;
|
|
152
|
+
if (value.startsWith('$binding.')) return readPath(context.binding, value.slice(9));
|
|
153
|
+
return value;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function createDiagnosticsRecorder(deps = {}) {
|
|
157
|
+
const diagnostics = [];
|
|
158
|
+
const diagnosticsHub = deps.diagnosticsHub || null;
|
|
159
|
+
const channel = clampString(deps.diagnosticChannel, DEFAULT_DIAGNOSTIC_CHANNEL);
|
|
160
|
+
return {
|
|
161
|
+
diagnostics,
|
|
162
|
+
publish(diagnostic) {
|
|
163
|
+
diagnostics.push(diagnostic);
|
|
164
|
+
if (diagnosticsHub && typeof diagnosticsHub.publish === 'function') {
|
|
165
|
+
diagnosticsHub.publish(channel, diagnostic, {
|
|
166
|
+
schema: RMT_EVENT_ROUTING_DIAGNOSTIC_SCHEMA
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
return diagnostic;
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function createDiagnostic(code, message, details = {}, severity = 'info') {
|
|
175
|
+
return {
|
|
176
|
+
schema: RMT_EVENT_ROUTING_DIAGNOSTIC_SCHEMA,
|
|
177
|
+
code,
|
|
178
|
+
message,
|
|
179
|
+
severity,
|
|
180
|
+
details: cloneValue(details, {})
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function normalizeBindings(input) {
|
|
185
|
+
return toArray(input).map((binding) => {
|
|
186
|
+
const source = objectRecord(binding);
|
|
187
|
+
const eventName = clampString(source.event || source.eventName || source.type, '');
|
|
188
|
+
return {
|
|
189
|
+
...source,
|
|
190
|
+
id: clampString(source.id),
|
|
191
|
+
kind: clampString(source.kind, 'dom'),
|
|
192
|
+
event: eventName,
|
|
193
|
+
target: source.target || source.selector || source.ref || '',
|
|
194
|
+
component: clampString(source.component || source.componentId, ''),
|
|
195
|
+
action: clampString(source.action || source.actionId, ''),
|
|
196
|
+
actionMode: clampString(source.actionMode || source.operation || source.mode, 'run-action'),
|
|
197
|
+
owner: clampString(source.owner || source.ownerId || source.scope, source.id),
|
|
198
|
+
payload: Object.prototype.hasOwnProperty.call(source, 'payload') ? source.payload : '$detail',
|
|
199
|
+
payloadContract: source.payloadContract || source.contract || null,
|
|
200
|
+
governance: {
|
|
201
|
+
capture: Boolean(source.capture || source.governance && source.governance.capture),
|
|
202
|
+
passive: Boolean(source.passive || source.governance && source.governance.passive),
|
|
203
|
+
once: Boolean(source.once || source.governance && source.governance.once),
|
|
204
|
+
preventDefault: Boolean(source.preventDefault || source.governance && source.governance.preventDefault),
|
|
205
|
+
stopPropagation: Boolean(source.stopPropagation || source.governance && source.governance.stopPropagation),
|
|
206
|
+
stopImmediatePropagation: Boolean(source.stopImmediatePropagation || source.governance && source.governance.stopImmediatePropagation),
|
|
207
|
+
retarget: clampString(source.retarget || source.governance && source.governance.retarget, 'target')
|
|
208
|
+
},
|
|
209
|
+
payloadAdapter: source.payloadAdapter || source.adapter || source.payloadKind || null,
|
|
210
|
+
closest: source.closest || source.closestSelector || source.delegate || null,
|
|
211
|
+
guard: source.guard || source.confirm || null,
|
|
212
|
+
postAction: toArray(source.postAction || source.after || source.afterAction),
|
|
213
|
+
condition: source.condition || source.when || null,
|
|
214
|
+
enabled: source.enabled !== false
|
|
215
|
+
};
|
|
216
|
+
}).filter((binding) => binding.id);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function typeOfValue(value) {
|
|
220
|
+
if (Array.isArray(value)) return 'array';
|
|
221
|
+
if (value === null) return 'null';
|
|
222
|
+
return typeof value;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function validateShape(value, shape, path = '$payload') {
|
|
226
|
+
const contract = objectRecord(shape);
|
|
227
|
+
const expectedType = clampString(contract.type, '');
|
|
228
|
+
const errors = [];
|
|
229
|
+
if (!expectedType) return errors;
|
|
230
|
+
const actualType = typeOfValue(value);
|
|
231
|
+
if (expectedType === 'array') {
|
|
232
|
+
if (!Array.isArray(value)) errors.push(`${path} expected array but got ${actualType}`);
|
|
233
|
+
return errors;
|
|
234
|
+
}
|
|
235
|
+
if (expectedType === 'object') {
|
|
236
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
237
|
+
errors.push(`${path} expected object but got ${actualType}`);
|
|
238
|
+
return errors;
|
|
239
|
+
}
|
|
240
|
+
toArray(contract.required).forEach((key) => {
|
|
241
|
+
if (!Object.prototype.hasOwnProperty.call(value, key)) errors.push(`${path}.${key} is required`);
|
|
242
|
+
});
|
|
243
|
+
Object.entries(objectRecord(contract.properties)).forEach(([key, propertyShape]) => {
|
|
244
|
+
if (!Object.prototype.hasOwnProperty.call(value, key)) return;
|
|
245
|
+
const normalizedShape = typeof propertyShape === 'string' ? { type: propertyShape } : objectRecord(propertyShape);
|
|
246
|
+
errors.push(...validateShape(value[key], normalizedShape, `${path}.${key}`));
|
|
247
|
+
});
|
|
248
|
+
return errors;
|
|
249
|
+
}
|
|
250
|
+
if (expectedType === 'nullable') return errors;
|
|
251
|
+
if (actualType !== expectedType) errors.push(`${path} expected ${expectedType} but got ${actualType}`);
|
|
252
|
+
return errors;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
function evaluateCondition(condition, context) {
|
|
256
|
+
if (!condition) return true;
|
|
257
|
+
const source = objectRecord(condition);
|
|
258
|
+
const left = resolveValue(source.left, context);
|
|
259
|
+
const right = resolveValue(source.right, context);
|
|
260
|
+
const op = clampString(source.op || source.operator, source.equals !== undefined ? 'equals' : 'truthy');
|
|
261
|
+
if (op === 'equals') return left === (source.equals !== undefined ? resolveValue(source.equals, context) : right);
|
|
262
|
+
if (op === 'not-equals') return left !== right;
|
|
263
|
+
if (op === 'truthy') return Boolean(source.value !== undefined ? resolveValue(source.value, context) : left);
|
|
264
|
+
if (op === 'falsy') return !Boolean(source.value !== undefined ? resolveValue(source.value, context) : left);
|
|
265
|
+
if (op === 'includes') return Array.isArray(left) ? left.includes(right) : String(left || '').includes(String(right || ''));
|
|
266
|
+
return true;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
function applyGovernance(binding, event) {
|
|
270
|
+
const governance = objectRecord(binding.governance);
|
|
271
|
+
if (governance.preventDefault && event && event.cancelable !== false && typeof event.preventDefault === 'function') {
|
|
272
|
+
event.preventDefault();
|
|
273
|
+
}
|
|
274
|
+
if (governance.stopPropagation && event && typeof event.stopPropagation === 'function') {
|
|
275
|
+
event.stopPropagation();
|
|
276
|
+
}
|
|
277
|
+
if (governance.stopImmediatePropagation && event && typeof event.stopImmediatePropagation === 'function') {
|
|
278
|
+
event.stopImmediatePropagation();
|
|
279
|
+
}
|
|
280
|
+
return {
|
|
281
|
+
preventDefault: Boolean(governance.preventDefault),
|
|
282
|
+
stopPropagation: Boolean(governance.stopPropagation),
|
|
283
|
+
stopImmediatePropagation: Boolean(governance.stopImmediatePropagation),
|
|
284
|
+
retarget: governance.retarget || 'target'
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function createPayload(binding, event, metadata = {}) {
|
|
289
|
+
const context = {
|
|
290
|
+
binding,
|
|
291
|
+
event,
|
|
292
|
+
metadata,
|
|
293
|
+
target: event && event.target || null,
|
|
294
|
+
currentTarget: event && event.currentTarget || null,
|
|
295
|
+
source: resolveEventSource(binding, event)
|
|
296
|
+
};
|
|
297
|
+
const adapterPayload = createAdapterPayload(binding, event, context);
|
|
298
|
+
const explicitPayload = binding.payload === '$detail' && adapterPayload !== null
|
|
299
|
+
? null
|
|
300
|
+
: resolveValue(binding.payload, context);
|
|
301
|
+
const payload = adapterPayload && explicitPayload && typeof adapterPayload === 'object' && typeof explicitPayload === 'object' && !Array.isArray(adapterPayload) && !Array.isArray(explicitPayload)
|
|
302
|
+
? { ...adapterPayload, ...explicitPayload }
|
|
303
|
+
: (adapterPayload !== null ? adapterPayload : explicitPayload);
|
|
304
|
+
return cloneValue(payload, payload);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
function normalizePayloadAdapter(binding) {
|
|
308
|
+
const adapter = binding.payloadAdapter;
|
|
309
|
+
if (!adapter) return null;
|
|
310
|
+
return typeof adapter === 'string' ? { kind: adapter } : objectRecord(adapter);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
function createAdapterPayload(binding, event, context) {
|
|
314
|
+
const adapter = normalizePayloadAdapter(binding);
|
|
315
|
+
if (!adapter) return null;
|
|
316
|
+
const kind = clampString(adapter.kind || adapter.type, '');
|
|
317
|
+
const delegated = closestTarget(event, adapter.closest || binding.closest, context.source || context.target);
|
|
318
|
+
const target = delegated || context.source || context.target || {};
|
|
319
|
+
if (kind === 'dataset') {
|
|
320
|
+
return {
|
|
321
|
+
dataset: toDatasetRecord(target),
|
|
322
|
+
action: getAttributeValue(target, 'data-action') || undefined,
|
|
323
|
+
id: getAttributeValue(target, 'data-id') || getAttributeValue(target, 'data-record-id') || undefined
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
if (kind === 'input' || kind === 'change') {
|
|
327
|
+
return {
|
|
328
|
+
name: target.name || getAttributeValue(target, 'name') || '',
|
|
329
|
+
value: typeof target.value === 'undefined' ? getAttributeValue(target, 'value') : target.value,
|
|
330
|
+
checked: typeof target.checked === 'boolean' ? target.checked : undefined,
|
|
331
|
+
dataset: toDatasetRecord(target)
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
if (kind === 'file-input') {
|
|
335
|
+
const files = fileListToArray(target.files);
|
|
336
|
+
return {
|
|
337
|
+
name: target.name || getAttributeValue(target, 'name') || '',
|
|
338
|
+
files,
|
|
339
|
+
fileCount: files.length,
|
|
340
|
+
dataset: toDatasetRecord(target)
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
if (kind === 'drop-files' || kind === 'drag-drop') {
|
|
344
|
+
const dataTransfer = event && event.dataTransfer || {};
|
|
345
|
+
const files = fileListToArray(dataTransfer.files);
|
|
346
|
+
return {
|
|
347
|
+
files,
|
|
348
|
+
fileCount: files.length,
|
|
349
|
+
types: Array.isArray(dataTransfer.types) ? dataTransfer.types.slice() : fileListToArray(dataTransfer.items).map((entry) => entry.type).filter(Boolean),
|
|
350
|
+
dataset: toDatasetRecord(target)
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
if (kind === 'surface-event') {
|
|
354
|
+
return {
|
|
355
|
+
surfaceId: getAttributeValue(target, 'surface-id') || getAttributeValue(target, 'data-rmt-surface') || readPath(event && event.detail, 'surfaceId') || '',
|
|
356
|
+
detail: cloneValue(event && event.detail, {}),
|
|
357
|
+
dataset: toDatasetRecord(target)
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
if (kind === 'beforeunload') {
|
|
361
|
+
return {
|
|
362
|
+
returnValue: event && event.returnValue,
|
|
363
|
+
detail: cloneValue(event && event.detail, {})
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
return null;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
function shouldConfirm(binding, payload, event, metadata, options = {}) {
|
|
370
|
+
const guard = binding.guard;
|
|
371
|
+
if (!guard) return true;
|
|
372
|
+
const record = guard === true ? { kind: 'confirm' } : (typeof guard === 'string' ? { kind: guard } : objectRecord(guard));
|
|
373
|
+
const kind = clampString(record.kind || record.type, '');
|
|
374
|
+
if (kind !== 'confirm') return true;
|
|
375
|
+
const adapter = options.confirmAdapter || null;
|
|
376
|
+
const message = resolveValue(record.message || binding.confirmMessage || 'Confirm action?', { binding, event, payload, metadata });
|
|
377
|
+
if (adapter && typeof adapter.confirm === 'function') return adapter.confirm(message, { binding, payload, event, metadata }) !== false;
|
|
378
|
+
if (typeof globalTarget !== 'undefined' && globalTarget && typeof globalTarget.confirm === 'function') return globalTarget.confirm(message);
|
|
379
|
+
return record.default !== false;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
function applyPostAction(binding, event, routeResult, metadata, options = {}) {
|
|
383
|
+
const operations = [];
|
|
384
|
+
binding.postAction.forEach((entry) => {
|
|
385
|
+
const action = typeof entry === 'string' ? { kind: entry } : objectRecord(entry);
|
|
386
|
+
const kind = clampString(action.kind || action.type, '');
|
|
387
|
+
if (kind !== 'reset-file-input' && kind !== 'reset-input') return;
|
|
388
|
+
const target = action.target
|
|
389
|
+
? defaultResolveTarget({ ...binding, target: action.target }, options.root || null, options)
|
|
390
|
+
: closestTarget(event, action.closest || binding.closest, event && event.target || null);
|
|
391
|
+
if (target && Object.prototype.hasOwnProperty.call(target, 'value')) {
|
|
392
|
+
target.value = '';
|
|
393
|
+
operations.push({ kind, target: action.target || binding.target || '', reset: true });
|
|
394
|
+
}
|
|
395
|
+
});
|
|
396
|
+
return operations;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function defaultResolveTarget(binding, root, options = {}) {
|
|
400
|
+
const target = binding.target;
|
|
401
|
+
if (target && typeof target === 'object' && typeof target.addEventListener === 'function') return target;
|
|
402
|
+
const targets = objectRecord(options.targets);
|
|
403
|
+
if (typeof target === 'string' && targets[target]) return targets[target];
|
|
404
|
+
if (typeof options.targetResolver === 'function') {
|
|
405
|
+
const resolved = options.targetResolver(binding, root);
|
|
406
|
+
if (resolved) return resolved;
|
|
407
|
+
}
|
|
408
|
+
if (root && typeof root.querySelector === 'function' && typeof target === 'string' && target) {
|
|
409
|
+
const byRef = root.querySelector(`[data-rmt-ref="${target}"]`);
|
|
410
|
+
if (byRef) return byRef;
|
|
411
|
+
return root.querySelector(target);
|
|
412
|
+
}
|
|
413
|
+
return null;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
function listenerOptions(binding) {
|
|
417
|
+
const governance = objectRecord(binding.governance);
|
|
418
|
+
return {
|
|
419
|
+
capture: Boolean(governance.capture),
|
|
420
|
+
passive: Boolean(governance.passive),
|
|
421
|
+
once: Boolean(governance.once)
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
function createRouteResult(binding, status, payload, details = {}) {
|
|
426
|
+
return {
|
|
427
|
+
schema: 'xtend.epic18.rmt-event-route-result.v1',
|
|
428
|
+
bindingId: binding.id,
|
|
429
|
+
event: binding.event,
|
|
430
|
+
component: binding.component,
|
|
431
|
+
action: binding.action,
|
|
432
|
+
status,
|
|
433
|
+
payload: cloneValue(payload, payload),
|
|
434
|
+
...cloneValue(details, {})
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
function createRmtEventRoutingRuntime(options = {}) {
|
|
439
|
+
const bindings = normalizeBindings(options.bindings || options.events || options.eventBindings);
|
|
440
|
+
const bindingIndex = new Map(bindings.map((binding) => [binding.id, binding]));
|
|
441
|
+
const diagnosticsRecorder = createDiagnosticsRecorder(options);
|
|
442
|
+
const actionRuntime = options.actionRuntime || null;
|
|
443
|
+
const rootTarget = options.root || null;
|
|
444
|
+
const routeHistory = [];
|
|
445
|
+
const listenerRecords = [];
|
|
446
|
+
|
|
447
|
+
async function routeEvent(bindingId, event = {}, metadata = {}) {
|
|
448
|
+
const binding = bindingIndex.get(clampString(bindingId));
|
|
449
|
+
if (!binding) throw new Error(`RMT Event Binding ${bindingId} ist nicht definiert.`);
|
|
450
|
+
const eventContext = {
|
|
451
|
+
binding,
|
|
452
|
+
event,
|
|
453
|
+
metadata,
|
|
454
|
+
target: event && event.target || null,
|
|
455
|
+
currentTarget: event && event.currentTarget || null,
|
|
456
|
+
source: resolveEventSource(binding, event)
|
|
457
|
+
};
|
|
458
|
+
if (!binding.enabled) {
|
|
459
|
+
const skipped = createRouteResult(binding, 'skipped', null, { reason: 'disabled' });
|
|
460
|
+
routeHistory.push(skipped);
|
|
461
|
+
return skipped;
|
|
462
|
+
}
|
|
463
|
+
if (!evaluateCondition(binding.condition, eventContext)) {
|
|
464
|
+
const skipped = createRouteResult(binding, 'skipped', null, { reason: 'condition' });
|
|
465
|
+
diagnosticsRecorder.publish(createDiagnostic('rmt.event.condition.skipped', `RMT Event ${binding.id} wurde durch eine Bedingung uebersprungen.`, {
|
|
466
|
+
bindingId: binding.id,
|
|
467
|
+
event: binding.event,
|
|
468
|
+
component: binding.component,
|
|
469
|
+
action: binding.action
|
|
470
|
+
}, 'info'));
|
|
471
|
+
routeHistory.push(skipped);
|
|
472
|
+
return skipped;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
const governanceResult = applyGovernance(binding, event);
|
|
476
|
+
const payload = createPayload(binding, event, metadata);
|
|
477
|
+
if (!shouldConfirm(binding, payload, event, metadata, options)) {
|
|
478
|
+
const blocked = createRouteResult(binding, 'blocked', payload, {
|
|
479
|
+
reason: 'confirm-declined',
|
|
480
|
+
governance: governanceResult
|
|
481
|
+
});
|
|
482
|
+
diagnosticsRecorder.publish(createDiagnostic('rmt.event.guard.confirm_declined', `RMT Event ${binding.id} wurde durch Confirm Guard blockiert.`, {
|
|
483
|
+
bindingId: binding.id,
|
|
484
|
+
event: binding.event,
|
|
485
|
+
component: binding.component,
|
|
486
|
+
action: binding.action
|
|
487
|
+
}, 'warning'));
|
|
488
|
+
routeHistory.push(blocked);
|
|
489
|
+
return blocked;
|
|
490
|
+
}
|
|
491
|
+
const contractErrors = validateShape(payload, binding.payloadContract);
|
|
492
|
+
if (contractErrors.length > 0) {
|
|
493
|
+
const blocked = createRouteResult(binding, 'blocked', payload, {
|
|
494
|
+
contractErrors,
|
|
495
|
+
governance: governanceResult
|
|
496
|
+
});
|
|
497
|
+
diagnosticsRecorder.publish(createDiagnostic('rmt.event.payload_contract.invalid', `RMT Event ${binding.id} verletzt den Payload Contract.`, {
|
|
498
|
+
bindingId: binding.id,
|
|
499
|
+
event: binding.event,
|
|
500
|
+
component: binding.component,
|
|
501
|
+
action: binding.action,
|
|
502
|
+
payload,
|
|
503
|
+
contractErrors
|
|
504
|
+
}, 'error'));
|
|
505
|
+
routeHistory.push(blocked);
|
|
506
|
+
return blocked;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
if (!actionRuntime) {
|
|
510
|
+
const blocked = createRouteResult(binding, 'blocked', payload, {
|
|
511
|
+
reason: 'missing-action-runtime',
|
|
512
|
+
governance: governanceResult
|
|
513
|
+
});
|
|
514
|
+
diagnosticsRecorder.publish(createDiagnostic('rmt.event.action_runtime.missing', `RMT Event ${binding.id} hat keine Action Runtime.`, {
|
|
515
|
+
bindingId: binding.id,
|
|
516
|
+
event: binding.event,
|
|
517
|
+
component: binding.component,
|
|
518
|
+
action: binding.action
|
|
519
|
+
}, 'error'));
|
|
520
|
+
routeHistory.push(blocked);
|
|
521
|
+
return blocked;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
let actionResult = null;
|
|
525
|
+
if (binding.actionMode === 'cancel-action') {
|
|
526
|
+
if (typeof actionRuntime.cancelAction !== 'function') throw new Error('RMT Action Runtime unterstuetzt cancelAction nicht.');
|
|
527
|
+
actionResult = actionRuntime.cancelAction(binding.action);
|
|
528
|
+
} else {
|
|
529
|
+
if (typeof actionRuntime.runAction !== 'function') throw new Error('RMT Action Runtime unterstuetzt runAction nicht.');
|
|
530
|
+
actionResult = await actionRuntime.runAction(binding.action, payload, {
|
|
531
|
+
eventId: binding.id,
|
|
532
|
+
eventName: binding.event,
|
|
533
|
+
component: binding.component,
|
|
534
|
+
ownerId: binding.owner,
|
|
535
|
+
...objectRecord(metadata)
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
const status = actionResult && actionResult.status || (binding.actionMode === 'cancel-action' ? 'cancelled' : 'success');
|
|
540
|
+
const postAction = applyPostAction(binding, event, null, metadata, options);
|
|
541
|
+
const result = createRouteResult(binding, status, payload, {
|
|
542
|
+
actionResult: cloneValue(actionResult, actionResult),
|
|
543
|
+
governance: governanceResult,
|
|
544
|
+
postAction
|
|
545
|
+
});
|
|
546
|
+
diagnosticsRecorder.publish(createDiagnostic('rmt.event.route.success', `RMT Event ${binding.id} wurde an Action ${binding.action} geroutet.`, {
|
|
547
|
+
bindingId: binding.id,
|
|
548
|
+
event: binding.event,
|
|
549
|
+
component: binding.component,
|
|
550
|
+
action: binding.action,
|
|
551
|
+
actionStatus: status,
|
|
552
|
+
payload,
|
|
553
|
+
payloadContract: Boolean(binding.payloadContract)
|
|
554
|
+
}, 'info'));
|
|
555
|
+
routeHistory.push(result);
|
|
556
|
+
return result;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
function attach(root = rootTarget) {
|
|
560
|
+
const attached = [];
|
|
561
|
+
bindings.forEach((binding) => {
|
|
562
|
+
if (!binding.enabled || !binding.event) return;
|
|
563
|
+
const target = defaultResolveTarget(binding, root, options);
|
|
564
|
+
if (!target || typeof target.addEventListener !== 'function') {
|
|
565
|
+
diagnosticsRecorder.publish(createDiagnostic('rmt.event.target.missing', `RMT Event ${binding.id} hat kein bindbares Ziel.`, {
|
|
566
|
+
bindingId: binding.id,
|
|
567
|
+
target: binding.target,
|
|
568
|
+
event: binding.event,
|
|
569
|
+
component: binding.component
|
|
570
|
+
}, 'error'));
|
|
571
|
+
return;
|
|
572
|
+
}
|
|
573
|
+
const listener = (event) => routeEvent(binding.id, event, { source: 'listener' });
|
|
574
|
+
const optionsForListener = listenerOptions(binding);
|
|
575
|
+
target.addEventListener(binding.event, listener, optionsForListener);
|
|
576
|
+
const record = {
|
|
577
|
+
bindingId: binding.id,
|
|
578
|
+
owner: binding.owner,
|
|
579
|
+
event: binding.event,
|
|
580
|
+
target,
|
|
581
|
+
listener,
|
|
582
|
+
options: optionsForListener
|
|
583
|
+
};
|
|
584
|
+
listenerRecords.push(record);
|
|
585
|
+
attached.push({
|
|
586
|
+
bindingId: binding.id,
|
|
587
|
+
owner: binding.owner,
|
|
588
|
+
event: binding.event,
|
|
589
|
+
component: binding.component
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
return {
|
|
593
|
+
schema: 'xtend.epic18.rmt-event-attach-report.v1',
|
|
594
|
+
attachedCount: attached.length,
|
|
595
|
+
attached
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
function detachOwner(ownerId = '') {
|
|
600
|
+
const owner = clampString(ownerId);
|
|
601
|
+
let detached = 0;
|
|
602
|
+
for (let index = listenerRecords.length - 1; index >= 0; index -= 1) {
|
|
603
|
+
const record = listenerRecords[index];
|
|
604
|
+
if (owner && record.owner !== owner) continue;
|
|
605
|
+
if (record.target && typeof record.target.removeEventListener === 'function') {
|
|
606
|
+
record.target.removeEventListener(record.event, record.listener, record.options);
|
|
607
|
+
}
|
|
608
|
+
listenerRecords.splice(index, 1);
|
|
609
|
+
detached += 1;
|
|
610
|
+
}
|
|
611
|
+
return {
|
|
612
|
+
schema: 'xtend.epic18.rmt-event-detach-report.v1',
|
|
613
|
+
owner: owner || 'all',
|
|
614
|
+
detachedCount: detached
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
return Object.freeze({
|
|
619
|
+
schema: RMT_EVENT_ROUTING_RUNTIME_SCHEMA,
|
|
620
|
+
attach,
|
|
621
|
+
detachOwner,
|
|
622
|
+
detachAll() {
|
|
623
|
+
return detachOwner('');
|
|
624
|
+
},
|
|
625
|
+
routeEvent,
|
|
626
|
+
createPayload,
|
|
627
|
+
listBindings() {
|
|
628
|
+
return bindings.map((binding) => cloneValue(binding, binding));
|
|
629
|
+
},
|
|
630
|
+
listAttached() {
|
|
631
|
+
return listenerRecords.map((record) => ({
|
|
632
|
+
bindingId: record.bindingId,
|
|
633
|
+
owner: record.owner,
|
|
634
|
+
event: record.event
|
|
635
|
+
}));
|
|
636
|
+
},
|
|
637
|
+
listRoutes() {
|
|
638
|
+
return routeHistory.map((entry) => cloneValue(entry, entry));
|
|
639
|
+
},
|
|
640
|
+
listDiagnostics() {
|
|
641
|
+
return diagnosticsRecorder.diagnostics.slice();
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
const api = {
|
|
647
|
+
RMT_EVENT_ROUTING_DIAGNOSTIC_SCHEMA,
|
|
648
|
+
RMT_EVENT_ROUTING_RUNTIME_SCHEMA,
|
|
649
|
+
createRmtEventRoutingRuntime
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
653
|
+
module.exports = api;
|
|
654
|
+
}
|
|
655
|
+
if (globalTarget) {
|
|
656
|
+
globalTarget.XTendRmtEventRoutingRuntime = api;
|
|
657
|
+
}
|
|
658
|
+
})(typeof globalThis !== 'undefined' ? globalThis : (typeof window !== 'undefined' ? window : this));
|
|
659
|
+
|
|
660
|
+
const __XTEND_RMT_EVENT_ROUTING_RUNTIME_API__ = globalThis.XTendRmtEventRoutingRuntime;
|
|
661
|
+
|
|
662
|
+
export const RMT_EVENT_ROUTING_DIAGNOSTIC_SCHEMA = __XTEND_RMT_EVENT_ROUTING_RUNTIME_API__.RMT_EVENT_ROUTING_DIAGNOSTIC_SCHEMA;
|
|
663
|
+
export const RMT_EVENT_ROUTING_RUNTIME_SCHEMA = __XTEND_RMT_EVENT_ROUTING_RUNTIME_API__.RMT_EVENT_ROUTING_RUNTIME_SCHEMA;
|
|
664
|
+
export const createRmtEventRoutingRuntime = __XTEND_RMT_EVENT_ROUTING_RUNTIME_API__.createRmtEventRoutingRuntime;
|
|
665
|
+
|
|
666
|
+
export default __XTEND_RMT_EVENT_ROUTING_RUNTIME_API__;
|
|
@@ -17,7 +17,7 @@ const BUILD_FINGERPRINT = Object.freeze({
|
|
|
17
17
|
"source": "xtendrmt/rmt-lifecycle-demo.rmt",
|
|
18
18
|
"sourceSha256": "77ca654f845c8dd26e5c6ab58471548f24299b393baa27485653706771b06f0d",
|
|
19
19
|
"core": "xtendrmt/rmt-lifecycle-demo.core.json",
|
|
20
|
-
"coreSha256": "
|
|
20
|
+
"coreSha256": "24e6ef71f8baeaa4a483c0f51895c5599ba17ace4e657d913da36644c4fc452a",
|
|
21
21
|
"scaffoldReport": "xtendrmt/rmt-lifecycle-demo.scaffold.json",
|
|
22
22
|
"generatedComponent": "components/x-rmt-lifecycle-demo.js",
|
|
23
23
|
"generatedBy": "node xtend-builder/scaffold.js rmt-lifecycle-demo --write --json",
|
|
@@ -56,7 +56,7 @@ const BUILD_FINGERPRINT = Object.freeze({
|
|
|
56
56
|
{
|
|
57
57
|
"id": "http",
|
|
58
58
|
"label": "HTTP/Test",
|
|
59
|
-
"artifact": "
|
|
59
|
+
"artifact": "tests/browser/fixtures/rmt-lifecycle-demo-smoke.html",
|
|
60
60
|
"status": "servable",
|
|
61
61
|
"detail": "Host und Browser-Smoke laufen ueber den lokalen XTend Dev Server."
|
|
62
62
|
}
|