@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,126 @@
|
|
|
1
|
+
export const RMT_ACTION_EFFECT_DIAGNOSTIC_SCHEMA: 'xtend.epic18.rmt-action-effect-diagnostic.v1';
|
|
2
|
+
export const RMT_ACTION_EFFECT_RUNTIME_SCHEMA: 'xtend.epic18.rmt-action-effect-runtime.v1';
|
|
3
|
+
|
|
4
|
+
export type RmtDataSourceKind = 'fixture' | 'rest' | 'ssr' | 'host' | string;
|
|
5
|
+
export type RmtEffectKind = 'toast' | 'feedback' | 'navigation' | 'focus' | 'lazy-import' | 'side-effect' | string;
|
|
6
|
+
export type RmtResourceKind = 'object-url' | 'stream' | 'observer' | 'timer' | 'lazy-import' | string;
|
|
7
|
+
|
|
8
|
+
export interface RmtActionDefinition {
|
|
9
|
+
id: string;
|
|
10
|
+
datasource?: string;
|
|
11
|
+
dataSource?: string;
|
|
12
|
+
resultState?: string;
|
|
13
|
+
result?: string;
|
|
14
|
+
loadingState?: string;
|
|
15
|
+
statusState?: string;
|
|
16
|
+
resourceOwner?: string;
|
|
17
|
+
effects?: string[] | Array<{ id: string }>;
|
|
18
|
+
resources?: string[] | Array<{ id: string }>;
|
|
19
|
+
cancelable?: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface RmtDataSourceDefinition {
|
|
23
|
+
id: string;
|
|
24
|
+
kind?: RmtDataSourceKind;
|
|
25
|
+
type?: RmtDataSourceKind;
|
|
26
|
+
records?: unknown[];
|
|
27
|
+
data?: unknown[];
|
|
28
|
+
payload?: unknown;
|
|
29
|
+
endpoint?: string;
|
|
30
|
+
url?: string;
|
|
31
|
+
adapter?: string;
|
|
32
|
+
resultPath?: string;
|
|
33
|
+
delayMs?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface RmtEffectDefinition {
|
|
37
|
+
id: string;
|
|
38
|
+
kind?: RmtEffectKind;
|
|
39
|
+
type?: RmtEffectKind;
|
|
40
|
+
target?: string;
|
|
41
|
+
message?: unknown;
|
|
42
|
+
path?: unknown;
|
|
43
|
+
severity?: string;
|
|
44
|
+
resource?: string;
|
|
45
|
+
resources?: string[];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface RmtResourceDefinition {
|
|
49
|
+
id: string;
|
|
50
|
+
kind?: RmtResourceKind;
|
|
51
|
+
type?: RmtResourceKind;
|
|
52
|
+
owner?: string;
|
|
53
|
+
source?: unknown;
|
|
54
|
+
importId?: string;
|
|
55
|
+
module?: string;
|
|
56
|
+
delayMs?: number;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface RmtActionEffectDiagnostic {
|
|
60
|
+
schema: typeof RMT_ACTION_EFFECT_DIAGNOSTIC_SCHEMA;
|
|
61
|
+
code: string;
|
|
62
|
+
message: string;
|
|
63
|
+
severity: 'info' | 'warning' | 'error';
|
|
64
|
+
details?: Record<string, unknown>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface RmtActionResult {
|
|
68
|
+
schema: 'xtend.epic18.rmt-action-result.v1';
|
|
69
|
+
id: string;
|
|
70
|
+
runId: string;
|
|
71
|
+
status: 'success' | 'error' | 'cancelled';
|
|
72
|
+
data?: unknown;
|
|
73
|
+
error?: { name: string; message: string };
|
|
74
|
+
payload?: unknown;
|
|
75
|
+
metadata?: Record<string, unknown>;
|
|
76
|
+
effects?: unknown[];
|
|
77
|
+
diagnostics?: RmtActionEffectDiagnostic[];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface RmtResourceManager {
|
|
81
|
+
schema: typeof RMT_ACTION_EFFECT_RUNTIME_SCHEMA;
|
|
82
|
+
acquire(resourceId: string, ownerId?: string, context?: Record<string, unknown>): Promise<unknown>;
|
|
83
|
+
acquireMany(resourceIds: string[], ownerId?: string, context?: Record<string, unknown>): Promise<unknown[]>;
|
|
84
|
+
releaseOwner(ownerId?: string): { schema: 'xtend.epic18.rmt-resource-release.v1'; owner: string; releasedCount: number };
|
|
85
|
+
listOwned(ownerId?: string): unknown[];
|
|
86
|
+
listAcquisitions(): unknown[];
|
|
87
|
+
listDisposals(): unknown[];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface RmtActionEffectRuntime {
|
|
91
|
+
schema: typeof RMT_ACTION_EFFECT_RUNTIME_SCHEMA;
|
|
92
|
+
runAction(actionId: string, payload?: Record<string, unknown>, metadata?: Record<string, unknown>): Promise<RmtActionResult>;
|
|
93
|
+
cancelAction(actionId: string): { schema: 'xtend.epic18.rmt-action-cancel.v1'; action: string; cancelled: number };
|
|
94
|
+
runEffect(effectId: string, context?: Record<string, unknown>): Promise<unknown>;
|
|
95
|
+
resourceManager: RmtResourceManager;
|
|
96
|
+
listActions(): RmtActionDefinition[];
|
|
97
|
+
listDataSources(): RmtDataSourceDefinition[];
|
|
98
|
+
listEffects(): RmtEffectDefinition[];
|
|
99
|
+
getActionStatus(id: string): string;
|
|
100
|
+
listHistory(): RmtActionResult[];
|
|
101
|
+
listDiagnostics(): RmtActionEffectDiagnostic[];
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface RmtActionEffectRuntimeOptions {
|
|
105
|
+
actions?: RmtActionDefinition[];
|
|
106
|
+
dataSources?: RmtDataSourceDefinition[];
|
|
107
|
+
datasources?: RmtDataSourceDefinition[];
|
|
108
|
+
effects?: RmtEffectDefinition[];
|
|
109
|
+
resources?: RmtResourceDefinition[];
|
|
110
|
+
stateRuntime?: unknown;
|
|
111
|
+
resourceManager?: RmtResourceManager;
|
|
112
|
+
dataSourceAdapters?: Record<string, unknown>;
|
|
113
|
+
resourceAdapters?: Record<string, unknown>;
|
|
114
|
+
feedbackAdapter?: { publish(payload: unknown, context?: unknown): unknown };
|
|
115
|
+
navigationAdapter?: { navigate(path: unknown, context?: unknown): unknown };
|
|
116
|
+
focusAdapter?: { focus(target: unknown, context?: unknown): unknown };
|
|
117
|
+
effectAdapter?: { invoke(effect: unknown, context?: unknown): unknown };
|
|
118
|
+
objectUrlFactory?: { create(value: unknown): string; revoke(value: string): unknown };
|
|
119
|
+
importAdapter?: { load(id: string, context?: unknown): Promise<unknown> | unknown };
|
|
120
|
+
timerAdapter?: { set(delayMs: number, context?: unknown): unknown; clear(handle: unknown): unknown };
|
|
121
|
+
diagnosticsHub?: { publish(channel: string, payload: unknown, meta?: Record<string, unknown>): unknown };
|
|
122
|
+
diagnosticChannel?: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function createRmtResourceManager(options?: RmtActionEffectRuntimeOptions): RmtResourceManager;
|
|
126
|
+
export function createRmtActionEffectRuntime(options?: RmtActionEffectRuntimeOptions): RmtActionEffectRuntime;
|
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
(function attachRmtActionEffectRuntime(globalTarget) {
|
|
2
|
+
const RMT_ACTION_EFFECT_RUNTIME_SCHEMA = 'xtend.epic18.rmt-action-effect-runtime.v1';
|
|
3
|
+
const RMT_ACTION_EFFECT_DIAGNOSTIC_SCHEMA = 'xtend.epic18.rmt-action-effect-diagnostic.v1';
|
|
4
|
+
const DEFAULT_DIAGNOSTIC_CHANNEL = 'rmt.app_platform.action_effect';
|
|
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 resolveValue(value, context = {}) {
|
|
43
|
+
if (typeof value !== 'string') return value;
|
|
44
|
+
if (value === '$payload') return context.payload;
|
|
45
|
+
if (value.startsWith('$payload.')) return readPath(context.payload, value.slice(9));
|
|
46
|
+
if (value === '$result') return context.result;
|
|
47
|
+
if (value.startsWith('$result.')) return readPath(context.result, value.slice(8));
|
|
48
|
+
if (value === '$error') return context.error;
|
|
49
|
+
if (value.startsWith('$error.')) return readPath(context.error, value.slice(7));
|
|
50
|
+
if (value === '$action') return context.action;
|
|
51
|
+
if (value.startsWith('$state.') && context.stateRuntime && typeof context.stateRuntime.getState === 'function') {
|
|
52
|
+
return context.stateRuntime.getState(`state.${value.slice(7)}`);
|
|
53
|
+
}
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function createDiagnosticsRecorder(deps = {}) {
|
|
58
|
+
const diagnostics = [];
|
|
59
|
+
const diagnosticsHub = deps.diagnosticsHub || null;
|
|
60
|
+
const channel = clampString(deps.diagnosticChannel, DEFAULT_DIAGNOSTIC_CHANNEL);
|
|
61
|
+
return {
|
|
62
|
+
diagnostics,
|
|
63
|
+
publish(diagnostic) {
|
|
64
|
+
diagnostics.push(diagnostic);
|
|
65
|
+
if (diagnosticsHub && typeof diagnosticsHub.publish === 'function') {
|
|
66
|
+
diagnosticsHub.publish(channel, diagnostic, {
|
|
67
|
+
schema: RMT_ACTION_EFFECT_DIAGNOSTIC_SCHEMA
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return diagnostic;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function createDiagnostic(code, message, details = {}, severity = 'info') {
|
|
76
|
+
return {
|
|
77
|
+
schema: RMT_ACTION_EFFECT_DIAGNOSTIC_SCHEMA,
|
|
78
|
+
code,
|
|
79
|
+
message,
|
|
80
|
+
severity,
|
|
81
|
+
details: cloneValue(details, {})
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function normalizeActions(actions) {
|
|
86
|
+
return toArray(actions).map((action) => ({
|
|
87
|
+
...objectRecord(action),
|
|
88
|
+
id: clampString(action && action.id),
|
|
89
|
+
datasource: clampString(action && (action.datasource || action.dataSource), ''),
|
|
90
|
+
resultState: clampString(action && (action.resultState || action.result), ''),
|
|
91
|
+
loadingState: clampString(action && action.loadingState, ''),
|
|
92
|
+
statusState: clampString(action && action.statusState, ''),
|
|
93
|
+
resourceOwner: clampString(action && action.resourceOwner, action && action.id),
|
|
94
|
+
effects: toArray(action && (action.effects || action.effect)).map((effect) => typeof effect === 'string' ? effect : clampString(effect && effect.id)).filter(Boolean),
|
|
95
|
+
resources: toArray(action && action.resources).map((resource) => typeof resource === 'string' ? resource : clampString(resource && resource.id)).filter(Boolean),
|
|
96
|
+
cancelable: action && action.cancelable !== false
|
|
97
|
+
})).filter((action) => action.id);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function normalizeDataSources(dataSources) {
|
|
101
|
+
return toArray(dataSources).map((source) => ({
|
|
102
|
+
...objectRecord(source),
|
|
103
|
+
id: clampString(source && source.id),
|
|
104
|
+
kind: clampString(source && (source.kind || source.type), 'fixture'),
|
|
105
|
+
records: cloneValue(source && (source.records || source.data), []),
|
|
106
|
+
payload: cloneValue(source && source.payload, null),
|
|
107
|
+
endpoint: clampString(source && (source.endpoint || source.url), ''),
|
|
108
|
+
adapter: clampString(source && source.adapter, ''),
|
|
109
|
+
resultPath: clampString(source && source.resultPath, ''),
|
|
110
|
+
delayMs: Number.isFinite(source && source.delayMs) ? source.delayMs : 0
|
|
111
|
+
})).filter((source) => source.id);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function normalizeEffects(effects) {
|
|
115
|
+
return toArray(effects).map((effect) => ({
|
|
116
|
+
...objectRecord(effect),
|
|
117
|
+
id: clampString(effect && effect.id),
|
|
118
|
+
kind: clampString(effect && (effect.kind || effect.type), 'side-effect'),
|
|
119
|
+
target: clampString(effect && effect.target, ''),
|
|
120
|
+
message: effect && Object.prototype.hasOwnProperty.call(effect, 'message') ? effect.message : '',
|
|
121
|
+
path: effect && Object.prototype.hasOwnProperty.call(effect, 'path') ? effect.path : '',
|
|
122
|
+
severity: clampString(effect && effect.severity, 'info'),
|
|
123
|
+
resource: clampString(effect && effect.resource, ''),
|
|
124
|
+
resources: toArray(effect && effect.resources).map((entry) => typeof entry === 'string' ? entry : clampString(entry && entry.id)).filter(Boolean)
|
|
125
|
+
})).filter((effect) => effect.id);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function normalizeResources(resources) {
|
|
129
|
+
return toArray(resources).map((resource) => ({
|
|
130
|
+
...objectRecord(resource),
|
|
131
|
+
id: clampString(resource && resource.id),
|
|
132
|
+
kind: clampString(resource && (resource.kind || resource.type), 'generic'),
|
|
133
|
+
owner: clampString(resource && resource.owner, ''),
|
|
134
|
+
source: resource && Object.prototype.hasOwnProperty.call(resource, 'source') ? resource.source : null,
|
|
135
|
+
importId: clampString(resource && (resource.importId || resource.module), ''),
|
|
136
|
+
delayMs: Number.isFinite(resource && resource.delayMs) ? resource.delayMs : 0
|
|
137
|
+
})).filter((resource) => resource.id);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function createRmtResourceManager(options = {}) {
|
|
141
|
+
const resources = normalizeResources(options.resources);
|
|
142
|
+
const resourceIndex = new Map(resources.map((resource) => [resource.id, resource]));
|
|
143
|
+
const ownership = new Map();
|
|
144
|
+
const acquisitions = [];
|
|
145
|
+
const disposals = [];
|
|
146
|
+
const adapters = objectRecord(options.resourceAdapters);
|
|
147
|
+
|
|
148
|
+
function addOwned(ownerId, record) {
|
|
149
|
+
const owner = clampString(ownerId, 'global');
|
|
150
|
+
const list = ownership.get(owner) || [];
|
|
151
|
+
list.push(record);
|
|
152
|
+
ownership.set(owner, list);
|
|
153
|
+
acquisitions.push({ owner, resourceId: record.resourceId, kind: record.kind });
|
|
154
|
+
return record;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
async function acquire(resourceId, ownerId = 'global', context = {}) {
|
|
158
|
+
const resource = resourceIndex.get(clampString(resourceId));
|
|
159
|
+
if (!resource) throw new Error(`RMT Resource ${resourceId} ist nicht definiert.`);
|
|
160
|
+
const owner = clampString(ownerId || resource.owner, 'global');
|
|
161
|
+
let value = cloneValue(resource.source, resource.source);
|
|
162
|
+
let dispose = () => undefined;
|
|
163
|
+
|
|
164
|
+
if (resource.kind === 'object-url') {
|
|
165
|
+
const factory = options.objectUrlFactory || adapters.objectUrl || null;
|
|
166
|
+
if (factory && typeof factory.create === 'function') {
|
|
167
|
+
value = factory.create(resolveValue(resource.source, context));
|
|
168
|
+
dispose = () => {
|
|
169
|
+
if (typeof factory.revoke === 'function') factory.revoke(value);
|
|
170
|
+
};
|
|
171
|
+
} else {
|
|
172
|
+
value = `rmt-object-url:${resource.id}`;
|
|
173
|
+
}
|
|
174
|
+
} else if (resource.kind === 'lazy-import') {
|
|
175
|
+
const importer = options.importAdapter || adapters.import || null;
|
|
176
|
+
value = importer && typeof importer.load === 'function'
|
|
177
|
+
? await importer.load(resource.importId || resource.id, context)
|
|
178
|
+
: { module: resource.importId || resource.id, loaded: true };
|
|
179
|
+
} else if (resource.kind === 'timer') {
|
|
180
|
+
const timer = options.timerAdapter || adapters.timer || null;
|
|
181
|
+
value = timer && typeof timer.set === 'function'
|
|
182
|
+
? timer.set(resource.delayMs, context)
|
|
183
|
+
: { delayMs: resource.delayMs, scheduled: true };
|
|
184
|
+
dispose = () => {
|
|
185
|
+
if (timer && typeof timer.clear === 'function') timer.clear(value);
|
|
186
|
+
};
|
|
187
|
+
} else if (resource.kind === 'stream' || resource.kind === 'observer') {
|
|
188
|
+
const adapter = adapters[resource.kind] || null;
|
|
189
|
+
value = adapter && typeof adapter.open === 'function'
|
|
190
|
+
? await adapter.open(resource, context)
|
|
191
|
+
: { id: resource.id, kind: resource.kind, open: true };
|
|
192
|
+
dispose = () => {
|
|
193
|
+
if (adapter && typeof adapter.close === 'function') adapter.close(value);
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return addOwned(owner, {
|
|
198
|
+
resourceId: resource.id,
|
|
199
|
+
kind: resource.kind,
|
|
200
|
+
value,
|
|
201
|
+
dispose
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
async function acquireMany(resourceIds, ownerId, context = {}) {
|
|
206
|
+
const records = [];
|
|
207
|
+
for (const resourceId of toArray(resourceIds)) {
|
|
208
|
+
records.push(await acquire(resourceId, ownerId, context));
|
|
209
|
+
}
|
|
210
|
+
return records;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function releaseOwner(ownerId = 'global') {
|
|
214
|
+
const owner = clampString(ownerId, 'global');
|
|
215
|
+
const list = ownership.get(owner) || [];
|
|
216
|
+
list.forEach((record) => {
|
|
217
|
+
if (record && typeof record.dispose === 'function') record.dispose();
|
|
218
|
+
disposals.push({ owner, resourceId: record.resourceId, kind: record.kind });
|
|
219
|
+
});
|
|
220
|
+
ownership.delete(owner);
|
|
221
|
+
return {
|
|
222
|
+
schema: 'xtend.epic18.rmt-resource-release.v1',
|
|
223
|
+
owner,
|
|
224
|
+
releasedCount: list.length
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return Object.freeze({
|
|
229
|
+
schema: RMT_ACTION_EFFECT_RUNTIME_SCHEMA,
|
|
230
|
+
acquire,
|
|
231
|
+
acquireMany,
|
|
232
|
+
releaseOwner,
|
|
233
|
+
listOwned(ownerId) {
|
|
234
|
+
return (ownership.get(clampString(ownerId, 'global')) || []).map((entry) => ({
|
|
235
|
+
resourceId: entry.resourceId,
|
|
236
|
+
kind: entry.kind,
|
|
237
|
+
value: cloneValue(entry.value, entry.value)
|
|
238
|
+
}));
|
|
239
|
+
},
|
|
240
|
+
listAcquisitions() {
|
|
241
|
+
return acquisitions.map((entry) => cloneValue(entry, entry));
|
|
242
|
+
},
|
|
243
|
+
listDisposals() {
|
|
244
|
+
return disposals.map((entry) => cloneValue(entry, entry));
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
async function runDataSource(source, payload, options = {}) {
|
|
250
|
+
const context = options.context || {};
|
|
251
|
+
const adapters = objectRecord(options.dataSourceAdapters);
|
|
252
|
+
if (source.kind === 'fixture') {
|
|
253
|
+
return cloneValue(source.records, []);
|
|
254
|
+
}
|
|
255
|
+
if (source.kind === 'ssr') {
|
|
256
|
+
const response = cloneValue(source.payload, source.payload);
|
|
257
|
+
return source.resultPath ? readPath(response, source.resultPath) : response;
|
|
258
|
+
}
|
|
259
|
+
if (source.kind === 'host') {
|
|
260
|
+
const adapter = adapters[source.adapter] || adapters[source.id] || adapters.host;
|
|
261
|
+
if (!adapter || typeof adapter.invoke !== 'function') throw new Error(`RMT Host DataSource Adapter fuer ${source.id} fehlt.`);
|
|
262
|
+
const response = await adapter.invoke({ source, payload, context });
|
|
263
|
+
return source.resultPath ? readPath(response, source.resultPath) : response;
|
|
264
|
+
}
|
|
265
|
+
if (source.kind === 'rest') {
|
|
266
|
+
const adapter = adapters[source.adapter] || adapters.rest || null;
|
|
267
|
+
if (!adapter || typeof adapter.fetch !== 'function') throw new Error(`RMT REST DataSource Adapter fuer ${source.id} fehlt.`);
|
|
268
|
+
const response = await adapter.fetch(source.endpoint, { payload, source, context });
|
|
269
|
+
return source.resultPath ? readPath(response, source.resultPath) : response;
|
|
270
|
+
}
|
|
271
|
+
throw new Error(`RMT DataSource Kind ${source.kind} wird nicht unterstuetzt.`);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
function normalizeError(error) {
|
|
275
|
+
return {
|
|
276
|
+
name: clampString(error && error.name, 'Error'),
|
|
277
|
+
message: clampString(error && error.message, String(error || 'Unbekannter RMT Action Fehler.'))
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
function writeState(stateRuntime, stateId, value, metadata = {}) {
|
|
282
|
+
if (!stateRuntime || !stateId) return null;
|
|
283
|
+
if (typeof stateRuntime.setState === 'function') return stateRuntime.setState(stateId, value, metadata);
|
|
284
|
+
return null;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function patchState(stateRuntime, stateId, patch, metadata = {}) {
|
|
288
|
+
if (!stateRuntime || !stateId) return null;
|
|
289
|
+
if (typeof stateRuntime.patchState === 'function') return stateRuntime.patchState(stateId, patch, metadata);
|
|
290
|
+
return null;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
function createRmtActionEffectRuntime(options = {}) {
|
|
294
|
+
const diagnosticsRecorder = createDiagnosticsRecorder(options);
|
|
295
|
+
const actions = normalizeActions(options.actions);
|
|
296
|
+
const dataSources = normalizeDataSources(options.dataSources || options.datasources);
|
|
297
|
+
const effects = normalizeEffects(options.effects);
|
|
298
|
+
const actionIndex = new Map(actions.map((action) => [action.id, action]));
|
|
299
|
+
const dataSourceIndex = new Map(dataSources.map((source) => [source.id, source]));
|
|
300
|
+
const effectIndex = new Map(effects.map((effect) => [effect.id, effect]));
|
|
301
|
+
const stateRuntime = options.stateRuntime || null;
|
|
302
|
+
const resourceManager = options.resourceManager || createRmtResourceManager(options);
|
|
303
|
+
const feedbackAdapter = options.feedbackAdapter || null;
|
|
304
|
+
const navigationAdapter = options.navigationAdapter || null;
|
|
305
|
+
const focusAdapter = options.focusAdapter || null;
|
|
306
|
+
const effectAdapter = options.effectAdapter || null;
|
|
307
|
+
const actionStatus = {};
|
|
308
|
+
const actionHistory = [];
|
|
309
|
+
const activeRuns = new Map();
|
|
310
|
+
|
|
311
|
+
async function runEffect(effectId, context = {}) {
|
|
312
|
+
const effect = effectIndex.get(clampString(effectId));
|
|
313
|
+
if (!effect) throw new Error(`RMT Effect ${effectId} ist nicht definiert.`);
|
|
314
|
+
let value = null;
|
|
315
|
+
if (effect.kind === 'toast' || effect.kind === 'feedback') {
|
|
316
|
+
value = {
|
|
317
|
+
id: effect.id,
|
|
318
|
+
target: effect.target,
|
|
319
|
+
severity: effect.severity,
|
|
320
|
+
message: resolveValue(effect.message, context)
|
|
321
|
+
};
|
|
322
|
+
if (feedbackAdapter && typeof feedbackAdapter.publish === 'function') feedbackAdapter.publish(value, context);
|
|
323
|
+
} else if (effect.kind === 'navigation') {
|
|
324
|
+
value = resolveValue(effect.path, context);
|
|
325
|
+
if (navigationAdapter && typeof navigationAdapter.navigate === 'function') navigationAdapter.navigate(value, context);
|
|
326
|
+
} else if (effect.kind === 'focus') {
|
|
327
|
+
value = effect.target;
|
|
328
|
+
if (focusAdapter && typeof focusAdapter.focus === 'function') focusAdapter.focus(value, context);
|
|
329
|
+
} else if (effect.kind === 'lazy-import') {
|
|
330
|
+
value = await resourceManager.acquireMany(effect.resources.length ? effect.resources : [effect.resource], context.ownerId, context);
|
|
331
|
+
} else {
|
|
332
|
+
value = {
|
|
333
|
+
id: effect.id,
|
|
334
|
+
kind: effect.kind,
|
|
335
|
+
payload: cloneValue(context.result, context.result)
|
|
336
|
+
};
|
|
337
|
+
if (effectAdapter && typeof effectAdapter.invoke === 'function') effectAdapter.invoke(effect, context);
|
|
338
|
+
}
|
|
339
|
+
return {
|
|
340
|
+
id: effect.id,
|
|
341
|
+
kind: effect.kind,
|
|
342
|
+
value: cloneValue(value, value)
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
async function runAction(actionId, payload = {}, metadata = {}) {
|
|
347
|
+
const action = actionIndex.get(clampString(actionId));
|
|
348
|
+
if (!action) throw new Error(`RMT Action ${actionId} ist nicht definiert.`);
|
|
349
|
+
const source = action.datasource ? dataSourceIndex.get(action.datasource) : null;
|
|
350
|
+
const runId = `${action.id}:${Date.now()}:${actionHistory.length}`;
|
|
351
|
+
const ownerId = clampString(metadata.ownerId, action.resourceOwner || action.id);
|
|
352
|
+
const token = { cancelled: false };
|
|
353
|
+
activeRuns.set(runId, token);
|
|
354
|
+
actionStatus[action.id] = 'loading';
|
|
355
|
+
patchState(stateRuntime, action.statusState, { status: 'loading', action: action.id }, { operation: 'action.loading', action: action.id });
|
|
356
|
+
if (action.loadingState) writeState(stateRuntime, action.loadingState, true, { operation: 'action.loading', action: action.id });
|
|
357
|
+
diagnosticsRecorder.publish(createDiagnostic('rmt.action.loading', `RMT Action ${action.id} laeuft.`, { action: action.id }, 'info'));
|
|
358
|
+
try {
|
|
359
|
+
await resourceManager.acquireMany(action.resources, ownerId, { action, payload, stateRuntime });
|
|
360
|
+
if (token.cancelled) {
|
|
361
|
+
return cancelResult(action, runId, ownerId, payload, metadata);
|
|
362
|
+
}
|
|
363
|
+
const data = source
|
|
364
|
+
? await runDataSource(source, payload, { dataSourceAdapters: options.dataSourceAdapters, context: { action, payload, stateRuntime } })
|
|
365
|
+
: cloneValue(payload, payload);
|
|
366
|
+
if (token.cancelled) {
|
|
367
|
+
return cancelResult(action, runId, ownerId, payload, metadata);
|
|
368
|
+
}
|
|
369
|
+
if (action.resultState) writeState(stateRuntime, action.resultState, data, { operation: 'action.success', action: action.id });
|
|
370
|
+
if (action.loadingState) writeState(stateRuntime, action.loadingState, false, { operation: 'action.success', action: action.id });
|
|
371
|
+
patchState(stateRuntime, action.statusState, { status: 'success', action: action.id }, { operation: 'action.success', action: action.id });
|
|
372
|
+
const effectResults = [];
|
|
373
|
+
for (const effectId of action.effects) {
|
|
374
|
+
effectResults.push(await runEffect(effectId, { action, payload, result: data, stateRuntime, ownerId }));
|
|
375
|
+
}
|
|
376
|
+
actionStatus[action.id] = 'success';
|
|
377
|
+
diagnosticsRecorder.publish(createDiagnostic('rmt.action.success', `RMT Action ${action.id} war erfolgreich.`, { action: action.id }, 'info'));
|
|
378
|
+
const result = {
|
|
379
|
+
schema: 'xtend.epic18.rmt-action-result.v1',
|
|
380
|
+
id: action.id,
|
|
381
|
+
runId,
|
|
382
|
+
status: 'success',
|
|
383
|
+
data: cloneValue(data, data),
|
|
384
|
+
effects: effectResults,
|
|
385
|
+
diagnostics: diagnosticsRecorder.diagnostics.slice()
|
|
386
|
+
};
|
|
387
|
+
actionHistory.push(result);
|
|
388
|
+
return result;
|
|
389
|
+
} catch (error) {
|
|
390
|
+
if (action.loadingState) writeState(stateRuntime, action.loadingState, false, { operation: 'action.error', action: action.id });
|
|
391
|
+
patchState(stateRuntime, action.statusState, { status: 'error', action: action.id, error: normalizeError(error) }, { operation: 'action.error', action: action.id });
|
|
392
|
+
actionStatus[action.id] = 'error';
|
|
393
|
+
diagnosticsRecorder.publish(createDiagnostic('rmt.action.error', `RMT Action ${action.id} ist fehlgeschlagen.`, { action: action.id, error: normalizeError(error) }, 'error'));
|
|
394
|
+
const result = {
|
|
395
|
+
schema: 'xtend.epic18.rmt-action-result.v1',
|
|
396
|
+
id: action.id,
|
|
397
|
+
runId,
|
|
398
|
+
status: 'error',
|
|
399
|
+
error: normalizeError(error),
|
|
400
|
+
diagnostics: diagnosticsRecorder.diagnostics.slice()
|
|
401
|
+
};
|
|
402
|
+
actionHistory.push(result);
|
|
403
|
+
return result;
|
|
404
|
+
} finally {
|
|
405
|
+
activeRuns.delete(runId);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
function cancelResult(action, runId, ownerId, payload, metadata = {}) {
|
|
410
|
+
activeRuns.delete(runId);
|
|
411
|
+
actionStatus[action.id] = 'cancelled';
|
|
412
|
+
if (action.loadingState) writeState(stateRuntime, action.loadingState, false, { operation: 'action.cancelled', action: action.id });
|
|
413
|
+
patchState(stateRuntime, action.statusState, { status: 'cancelled', action: action.id }, { operation: 'action.cancelled', action: action.id });
|
|
414
|
+
resourceManager.releaseOwner(ownerId);
|
|
415
|
+
diagnosticsRecorder.publish(createDiagnostic('rmt.action.cancelled', `RMT Action ${action.id} wurde abgebrochen.`, { action: action.id }, 'warning'));
|
|
416
|
+
const result = {
|
|
417
|
+
schema: 'xtend.epic18.rmt-action-result.v1',
|
|
418
|
+
id: action.id,
|
|
419
|
+
runId,
|
|
420
|
+
status: 'cancelled',
|
|
421
|
+
payload: cloneValue(payload, payload),
|
|
422
|
+
metadata: cloneValue(metadata, {}),
|
|
423
|
+
diagnostics: diagnosticsRecorder.diagnostics.slice()
|
|
424
|
+
};
|
|
425
|
+
actionHistory.push(result);
|
|
426
|
+
return result;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
function cancelAction(actionId) {
|
|
430
|
+
const id = clampString(actionId);
|
|
431
|
+
let cancelled = 0;
|
|
432
|
+
activeRuns.forEach((token, runId) => {
|
|
433
|
+
if (runId.startsWith(`${id}:`)) {
|
|
434
|
+
token.cancelled = true;
|
|
435
|
+
cancelled += 1;
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
return {
|
|
439
|
+
schema: 'xtend.epic18.rmt-action-cancel.v1',
|
|
440
|
+
action: id,
|
|
441
|
+
cancelled
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
return Object.freeze({
|
|
446
|
+
schema: RMT_ACTION_EFFECT_RUNTIME_SCHEMA,
|
|
447
|
+
runAction,
|
|
448
|
+
cancelAction,
|
|
449
|
+
runEffect,
|
|
450
|
+
resourceManager,
|
|
451
|
+
listActions() {
|
|
452
|
+
return actions.map((entry) => cloneValue(entry, entry));
|
|
453
|
+
},
|
|
454
|
+
listDataSources() {
|
|
455
|
+
return dataSources.map((entry) => cloneValue(entry, entry));
|
|
456
|
+
},
|
|
457
|
+
listEffects() {
|
|
458
|
+
return effects.map((entry) => cloneValue(entry, entry));
|
|
459
|
+
},
|
|
460
|
+
getActionStatus(id) {
|
|
461
|
+
return actionStatus[clampString(id)] || 'idle';
|
|
462
|
+
},
|
|
463
|
+
listHistory() {
|
|
464
|
+
return actionHistory.map((entry) => cloneValue(entry, entry));
|
|
465
|
+
},
|
|
466
|
+
listDiagnostics() {
|
|
467
|
+
return diagnosticsRecorder.diagnostics.slice();
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
const api = {
|
|
473
|
+
RMT_ACTION_EFFECT_DIAGNOSTIC_SCHEMA,
|
|
474
|
+
RMT_ACTION_EFFECT_RUNTIME_SCHEMA,
|
|
475
|
+
createRmtActionEffectRuntime,
|
|
476
|
+
createRmtResourceManager
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
480
|
+
module.exports = api;
|
|
481
|
+
}
|
|
482
|
+
if (globalTarget) {
|
|
483
|
+
globalTarget.XTendRmtActionEffectRuntime = api;
|
|
484
|
+
}
|
|
485
|
+
})(typeof globalThis !== 'undefined' ? globalThis : (typeof window !== 'undefined' ? window : this));
|
|
486
|
+
|
|
487
|
+
const __XTEND_RMT_ACTION_EFFECT_RUNTIME_API__ = globalThis.XTendRmtActionEffectRuntime;
|
|
488
|
+
|
|
489
|
+
export const RMT_ACTION_EFFECT_DIAGNOSTIC_SCHEMA = __XTEND_RMT_ACTION_EFFECT_RUNTIME_API__.RMT_ACTION_EFFECT_DIAGNOSTIC_SCHEMA;
|
|
490
|
+
export const RMT_ACTION_EFFECT_RUNTIME_SCHEMA = __XTEND_RMT_ACTION_EFFECT_RUNTIME_API__.RMT_ACTION_EFFECT_RUNTIME_SCHEMA;
|
|
491
|
+
export const createRmtActionEffectRuntime = __XTEND_RMT_ACTION_EFFECT_RUNTIME_API__.createRmtActionEffectRuntime;
|
|
492
|
+
export const createRmtResourceManager = __XTEND_RMT_ACTION_EFFECT_RUNTIME_API__.createRmtResourceManager;
|
|
493
|
+
|
|
494
|
+
export default __XTEND_RMT_ACTION_EFFECT_RUNTIME_API__;
|