@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,636 @@
|
|
|
1
|
+
(function attachRmtComponentCapabilityRegistry(globalTarget) {
|
|
2
|
+
const RMT_COMPONENT_CAPABILITY_REGISTRY_SCHEMA = 'xtend.rmt.component-capability-registry.v1';
|
|
3
|
+
const RMT_COMPONENT_CAPABILITY_REPORT_SCHEMA = 'xtend.rmt.component-capability-registry-report.v1';
|
|
4
|
+
const RMT_COMPONENT_BINDING_SCHEMA = 'xtend.rmt.component-binding.v1';
|
|
5
|
+
const RMT_COMPONENT_DESCRIPTOR_SCHEMA = 'xtend.rmt.component-descriptor.v1';
|
|
6
|
+
const RMT_COMPONENT_DIAGNOSTIC_SCHEMA = 'xtend.rmt.component-capability-diagnostic.v1';
|
|
7
|
+
const RMT_COMPONENT_KERNEL_BOUNDARY = 'no-rmt-kernel-import-of-xtend-types';
|
|
8
|
+
const RMT_COMPONENT_IMPORT_POLICY = 'explicit-importer-only';
|
|
9
|
+
|
|
10
|
+
const FORM_COMPONENTS = new Set(['x-calendar', 'x-checkbox', 'x-form', 'x-input', 'x-radio', 'x-select', 'x-textarea']);
|
|
11
|
+
const NAVIGATION_COMPONENTS = new Set(['x-router', 'x-link', 'x-menu', 'x-drawer']);
|
|
12
|
+
const OVERLAY_SURFACE_COMPONENTS = new Set(['x-dialog', 'x-lightbox', 'x-modal', 'x-popover', 'x-side-panel', 'x-surface-manager', 'x-surface-window', 'x-toast', 'x-tooltip']);
|
|
13
|
+
const MEDIA_FEEDBACK_LAYOUT_COMPONENTS = new Set(['x-alert', 'x-button', 'x-cards', 'x-code', 'x-icon', 'x-masonry', 'x-player', 'x-progress', 'x-spinner', 'x-status', 'x-summary', 'x-type', 'x-writer']);
|
|
14
|
+
const THEME_LAYOUT_COMPONENTS = new Set(['x-footer', 'x-header', 'x-hero', 'x-section', 'x-tabs', 'x-theme', 'xstate']);
|
|
15
|
+
const NON_VISUAL_COMPONENTS = new Set(['x-utils']);
|
|
16
|
+
const DEMO_COMPONENTS = new Set(['x-rmt-lifecycle-demo-build']);
|
|
17
|
+
const INFRASTRUCTURE_COMPONENTS = new Set(['x-theme', 'xstate']);
|
|
18
|
+
const BROWSER_SMOKE_FAMILIES = Object.freeze(['form', 'navigation', 'overlay-surface', 'media-feedback-layout', 'theme-layout']);
|
|
19
|
+
|
|
20
|
+
function clampString(value, fallback = '') {
|
|
21
|
+
const normalized = String(value == null ? '' : value).trim();
|
|
22
|
+
return normalized || fallback;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function toArray(value) {
|
|
26
|
+
return Array.isArray(value) ? value : (value == null ? [] : [value]);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function objectRecord(value) {
|
|
30
|
+
return value && typeof value === 'object' && !Array.isArray(value) ? value : {};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function cloneValue(value, fallback = null) {
|
|
34
|
+
if (typeof value === 'undefined') return fallback;
|
|
35
|
+
if (value === null || typeof value !== 'object') return value;
|
|
36
|
+
try {
|
|
37
|
+
return JSON.parse(JSON.stringify(value));
|
|
38
|
+
} catch (_) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function unique(values) {
|
|
44
|
+
return Array.from(new Set(toArray(values).map((entry) => clampString(entry)).filter(Boolean)));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function normalizeTag(tag) {
|
|
48
|
+
return clampString(tag).toLowerCase();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function stripLocalModulePath(modulePath) {
|
|
52
|
+
return clampString(modulePath).replace(/^\.\//u, '');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function sourceTextFor(tag, modulePath, options = {}) {
|
|
56
|
+
const sourceTexts = objectRecord(options.sourceTexts || options.sources);
|
|
57
|
+
const normalizedTag = normalizeTag(tag);
|
|
58
|
+
const normalizedModulePath = clampString(modulePath);
|
|
59
|
+
const localModulePath = stripLocalModulePath(normalizedModulePath);
|
|
60
|
+
return String(
|
|
61
|
+
sourceTexts[normalizedTag]
|
|
62
|
+
|| sourceTexts[normalizedModulePath]
|
|
63
|
+
|| sourceTexts[localModulePath]
|
|
64
|
+
|| ''
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function extractStringValues(sourceText, pattern) {
|
|
69
|
+
const values = [];
|
|
70
|
+
for (const match of String(sourceText || '').matchAll(pattern)) {
|
|
71
|
+
values.push(match[1]);
|
|
72
|
+
}
|
|
73
|
+
return unique(values);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function extractArrayGetterStrings(sourceText, getterName) {
|
|
77
|
+
const escapedGetter = getterName.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&');
|
|
78
|
+
const pattern = new RegExp(`static\\s+get\\s+${escapedGetter}\\s*\\(\\)\\s*\\{[\\s\\S]*?return\\s*\\[([\\s\\S]*?)\\]`, 'u');
|
|
79
|
+
const match = String(sourceText || '').match(pattern);
|
|
80
|
+
if (!match) return [];
|
|
81
|
+
return extractStringValues(match[1], /['"]([^'"]+)['"]/gu);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function extractStringProperty(sourceText, propertyName) {
|
|
85
|
+
const escapedName = propertyName.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&');
|
|
86
|
+
const pattern = new RegExp(`${escapedName}\\s*:\\s*['"]([^'"]+)['"]`, 'u');
|
|
87
|
+
const match = String(sourceText || '').match(pattern);
|
|
88
|
+
return match ? match[1] : '';
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function extractEvents(sourceText) {
|
|
92
|
+
return extractStringValues(sourceText, /dispatchEvent\s*\(\s*new\s+(?:CustomEvent|Event)\s*\(\s*['"]([^'"]+)['"]/gu);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function extractParts(sourceText) {
|
|
96
|
+
return unique(extractStringValues(sourceText, /part=["']([^"']+)["']/gu).flatMap((entry) => entry.split(/\s+/u)));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function extractSlots(sourceText) {
|
|
100
|
+
const source = String(sourceText || '');
|
|
101
|
+
const namedSlots = extractStringValues(source, /<slot\b[^>]*\bname=["']([^"']+)["'][^>]*>/gu);
|
|
102
|
+
if (/<slot\b/u.test(source)) namedSlots.unshift('default');
|
|
103
|
+
return unique(namedSlots);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function safeStaticValue(componentClass, propertyName) {
|
|
107
|
+
try {
|
|
108
|
+
return componentClass && componentClass[propertyName];
|
|
109
|
+
} catch (_) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function resolveComponentClass(tag, options = {}) {
|
|
115
|
+
const constructors = options.componentConstructors || options.constructors || {};
|
|
116
|
+
if (constructors instanceof Map && constructors.has(tag)) return constructors.get(tag);
|
|
117
|
+
if (constructors && constructors[tag]) return constructors[tag];
|
|
118
|
+
const customElementsRegistry = options.customElements || (globalTarget && globalTarget.customElements);
|
|
119
|
+
if (customElementsRegistry && typeof customElementsRegistry.get === 'function') {
|
|
120
|
+
return customElementsRegistry.get(tag) || null;
|
|
121
|
+
}
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function classifyComponentFamily(tag, sourceText = '', metadata = {}) {
|
|
126
|
+
const normalizedTag = normalizeTag(tag);
|
|
127
|
+
if (NON_VISUAL_COMPONENTS.has(normalizedTag)) return 'non-visual-utility';
|
|
128
|
+
if (DEMO_COMPONENTS.has(normalizedTag)) return 'demo-non-production';
|
|
129
|
+
if (INFRASTRUCTURE_COMPONENTS.has(normalizedTag)) return 'infrastructure-module';
|
|
130
|
+
if (FORM_COMPONENTS.has(normalizedTag) || metadata.formAssociated === true) return 'form';
|
|
131
|
+
if (NAVIGATION_COMPONENTS.has(normalizedTag)) return 'navigation';
|
|
132
|
+
if (OVERLAY_SURFACE_COMPONENTS.has(normalizedTag) || /surface|overlay|modal|popover|tooltip|toast/u.test(normalizedTag)) return 'overlay-surface';
|
|
133
|
+
if (MEDIA_FEEDBACK_LAYOUT_COMPONENTS.has(normalizedTag)) return 'media-feedback-layout';
|
|
134
|
+
if (THEME_LAYOUT_COMPONENTS.has(normalizedTag)) return 'theme-layout';
|
|
135
|
+
if (/formAssociated\s*=\s*true/u.test(sourceText)) return 'form';
|
|
136
|
+
return 'general-ui';
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function sourceRmtMetadata(tag, sourceText) {
|
|
140
|
+
if (!String(sourceText || '').includes('xtendRmtMetadata')) return null;
|
|
141
|
+
return {
|
|
142
|
+
schema: 'xtend.rmt.component-contract.v1',
|
|
143
|
+
adapter: extractStringProperty(sourceText, 'adapter') || 'xtend.component',
|
|
144
|
+
tag,
|
|
145
|
+
templateMode: extractStringProperty(sourceText, 'templateMode') || 'dom_descriptor',
|
|
146
|
+
eventBindingMode: extractStringProperty(sourceText, 'eventBindingMode') || 'dom-event-to-rmt-command',
|
|
147
|
+
kernelBoundary: String(sourceText).includes(RMT_COMPONENT_KERNEL_BOUNDARY) ? RMT_COMPONENT_KERNEL_BOUNDARY : ''
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function sourceComponentContract(tag, sourceText, modulePath) {
|
|
152
|
+
if (!String(sourceText || '').includes('xtendComponentContract')) return null;
|
|
153
|
+
return {
|
|
154
|
+
schema: 'xtend.component.contract.v2',
|
|
155
|
+
tag,
|
|
156
|
+
runtime: {
|
|
157
|
+
format: 'esm',
|
|
158
|
+
artifact: `components/${stripLocalModulePath(modulePath)}`,
|
|
159
|
+
localOnly: true,
|
|
160
|
+
cdnAllowed: false
|
|
161
|
+
},
|
|
162
|
+
rmt: {
|
|
163
|
+
adapter: 'xtend.component',
|
|
164
|
+
kernelBoundary: RMT_COMPONENT_KERNEL_BOUNDARY
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function normalizeCapability(tag, modulePath, options = {}) {
|
|
170
|
+
const normalizedTag = normalizeTag(tag);
|
|
171
|
+
const sourceText = sourceTextFor(normalizedTag, modulePath, options);
|
|
172
|
+
const componentClass = resolveComponentClass(normalizedTag, options);
|
|
173
|
+
const metadataRecord = objectRecord(options.componentMetadata && options.componentMetadata[normalizedTag]);
|
|
174
|
+
const contract = safeStaticValue(componentClass, 'xtendComponentContract') || metadataRecord.xtendComponentContract || sourceComponentContract(normalizedTag, sourceText, modulePath);
|
|
175
|
+
const rmtMetadata = safeStaticValue(componentClass, 'xtendRmtMetadata') || metadataRecord.xtendRmtMetadata || sourceRmtMetadata(normalizedTag, sourceText);
|
|
176
|
+
const a11yProfile = safeStaticValue(componentClass, 'xtendScaffoldA11yProfile') || metadataRecord.xtendScaffoldA11yProfile || null;
|
|
177
|
+
const performanceProfile = safeStaticValue(componentClass, 'xtendScaffoldPerformanceProfile') || metadataRecord.xtendScaffoldPerformanceProfile || null;
|
|
178
|
+
const observedAttributes = unique(
|
|
179
|
+
safeStaticValue(componentClass, 'observedAttributes')
|
|
180
|
+
|| metadataRecord.observedAttributes
|
|
181
|
+
|| extractArrayGetterStrings(sourceText, 'observedAttributes')
|
|
182
|
+
);
|
|
183
|
+
const events = unique([
|
|
184
|
+
...toArray(rmtMetadata && rmtMetadata.shellAuthoring && rmtMetadata.shellAuthoring.events),
|
|
185
|
+
...toArray(metadataRecord.events),
|
|
186
|
+
...extractEvents(sourceText)
|
|
187
|
+
]);
|
|
188
|
+
const parts = unique([
|
|
189
|
+
...toArray(metadataRecord.parts),
|
|
190
|
+
...extractParts(sourceText)
|
|
191
|
+
]);
|
|
192
|
+
const slots = unique([
|
|
193
|
+
...toArray(metadataRecord.slots),
|
|
194
|
+
...extractSlots(sourceText)
|
|
195
|
+
]);
|
|
196
|
+
const formAssociated = Boolean(
|
|
197
|
+
safeStaticValue(componentClass, 'formAssociated')
|
|
198
|
+
|| metadataRecord.formAssociated
|
|
199
|
+
|| /static\s+formAssociated\s*=\s*true/u.test(sourceText)
|
|
200
|
+
);
|
|
201
|
+
const family = classifyComponentFamily(normalizedTag, sourceText, { formAssociated });
|
|
202
|
+
const visualKind = family === 'non-visual-utility' || family === 'demo-non-production' || family === 'infrastructure-module'
|
|
203
|
+
? family
|
|
204
|
+
: 'public-ui';
|
|
205
|
+
const hasCustomElement = Boolean(componentClass || new RegExp(`customElements\\.define\\(\\s*['"]${normalizedTag}['"]`, 'u').test(sourceText));
|
|
206
|
+
const diagnostics = [];
|
|
207
|
+
|
|
208
|
+
if (visualKind === 'public-ui' && !rmtMetadata) {
|
|
209
|
+
diagnostics.push({
|
|
210
|
+
schema: RMT_COMPONENT_DIAGNOSTIC_SCHEMA,
|
|
211
|
+
code: 'rmt.component.rmt-metadata-missing',
|
|
212
|
+
severity: 'error',
|
|
213
|
+
tag: normalizedTag,
|
|
214
|
+
message: `${normalizedTag} needs xtendRmtMetadata for RMT primitive compatibility.`
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
if (visualKind === 'public-ui' && !contract) {
|
|
218
|
+
diagnostics.push({
|
|
219
|
+
schema: RMT_COMPONENT_DIAGNOSTIC_SCHEMA,
|
|
220
|
+
code: 'rmt.component.contract-missing',
|
|
221
|
+
severity: 'error',
|
|
222
|
+
tag: normalizedTag,
|
|
223
|
+
message: `${normalizedTag} needs xtendComponentContract for RMT primitive compatibility.`
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
return Object.freeze({
|
|
228
|
+
schema: RMT_COMPONENT_CAPABILITY_REGISTRY_SCHEMA,
|
|
229
|
+
tag: normalizedTag,
|
|
230
|
+
modulePath: clampString(modulePath),
|
|
231
|
+
importPolicy: RMT_COMPONENT_IMPORT_POLICY,
|
|
232
|
+
visualKind,
|
|
233
|
+
family,
|
|
234
|
+
customElement: hasCustomElement,
|
|
235
|
+
formAssociated,
|
|
236
|
+
componentContract: cloneValue(contract, null),
|
|
237
|
+
rmt: cloneValue(rmtMetadata, null),
|
|
238
|
+
a11yProfile: cloneValue(a11yProfile, null),
|
|
239
|
+
performanceProfile: cloneValue(performanceProfile, null),
|
|
240
|
+
observedAttributes,
|
|
241
|
+
events,
|
|
242
|
+
slots,
|
|
243
|
+
parts,
|
|
244
|
+
sourceToSeaRisk: BROWSER_SMOKE_FAMILIES.includes(family) ? 'browser-smoke-representative' : 'contract-runtime-matrix',
|
|
245
|
+
kernelBoundary: (rmtMetadata && rmtMetadata.kernelBoundary) || (contract && contract.rmt && contract.rmt.kernelBoundary) || (sourceText.includes(RMT_COMPONENT_KERNEL_BOUNDARY) ? RMT_COMPONENT_KERNEL_BOUNDARY : ''),
|
|
246
|
+
diagnostics
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function stateKeyForElement(tag, element, kind = 'value') {
|
|
251
|
+
const normalizedTag = normalizeTag(tag).replace(/-/gu, '');
|
|
252
|
+
const id = clampString(
|
|
253
|
+
element && (element.getAttribute && (element.getAttribute('id') || element.getAttribute('name')))
|
|
254
|
+
|| element && (element.id || element.name),
|
|
255
|
+
'default'
|
|
256
|
+
);
|
|
257
|
+
if (tag === 'x-checkbox') return `xcheckbox-checked-${id}`;
|
|
258
|
+
if (tag === 'x-radio' && kind === 'groupValue') return `xradio-value-${id}`;
|
|
259
|
+
if (tag === 'x-radio') return `xradio-checked-${id}`;
|
|
260
|
+
if (tag === 'x-status') return `xstatus-state-${id}`;
|
|
261
|
+
if (tag === 'x-progress') return `xprogress-value-${id}`;
|
|
262
|
+
return `${normalizedTag}-value-${id}`;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
function readElementValue(element, capability = null) {
|
|
266
|
+
if (!element) return undefined;
|
|
267
|
+
const tag = capability && capability.tag || normalizeTag(element.localName || element.tagName);
|
|
268
|
+
if ((tag === 'x-checkbox' || tag === 'x-radio') && 'checked' in element && typeof element.checked === 'boolean') return element.checked;
|
|
269
|
+
if ('value' in element) return element.value;
|
|
270
|
+
if ('checked' in element && typeof element.checked === 'boolean') return element.checked;
|
|
271
|
+
if (typeof element.getAttribute === 'function') return element.getAttribute('value');
|
|
272
|
+
return undefined;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
function writeElementValue(element, value) {
|
|
276
|
+
if (!element) return;
|
|
277
|
+
if ('checked' in element && typeof value === 'boolean') element.checked = value;
|
|
278
|
+
if ('value' in element) element.value = value;
|
|
279
|
+
if (typeof element.setAttribute === 'function' && (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean')) {
|
|
280
|
+
element.setAttribute('value', String(value));
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function datasetRecord(target) {
|
|
285
|
+
const dataset = target && target.dataset && typeof target.dataset === 'object' ? target.dataset : {};
|
|
286
|
+
const result = {};
|
|
287
|
+
Object.keys(dataset).forEach((key) => {
|
|
288
|
+
result[key] = dataset[key];
|
|
289
|
+
});
|
|
290
|
+
return result;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
function fileSummary(file) {
|
|
294
|
+
return {
|
|
295
|
+
name: clampString(file && file.name),
|
|
296
|
+
size: Number.isFinite(file && file.size) ? file.size : 0,
|
|
297
|
+
type: clampString(file && file.type),
|
|
298
|
+
lastModified: Number.isFinite(file && file.lastModified) ? file.lastModified : null
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function filesToArray(files) {
|
|
303
|
+
if (!files) return [];
|
|
304
|
+
try {
|
|
305
|
+
return Array.from(files).map(fileSummary);
|
|
306
|
+
} catch (_) {
|
|
307
|
+
const result = [];
|
|
308
|
+
for (let index = 0; index < (files.length || 0); index += 1) {
|
|
309
|
+
result.push(fileSummary(files[index]));
|
|
310
|
+
}
|
|
311
|
+
return result;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
function adaptComponentEventPayload(capability, event) {
|
|
316
|
+
const target = event && (event.target || event.currentTarget) || null;
|
|
317
|
+
const detail = event && event.detail && typeof event.detail === 'object' ? event.detail : {};
|
|
318
|
+
return {
|
|
319
|
+
schema: 'xtend.rmt.component-event-payload.v1',
|
|
320
|
+
tag: capability && capability.tag || normalizeTag(target && (target.localName || target.tagName)),
|
|
321
|
+
family: capability && capability.family || 'unknown',
|
|
322
|
+
eventName: clampString(event && event.type),
|
|
323
|
+
detail: cloneValue(detail, {}),
|
|
324
|
+
value: readElementValue(target, capability),
|
|
325
|
+
checked: target && typeof target.checked === 'boolean' ? target.checked : undefined,
|
|
326
|
+
files: filesToArray(target && target.files),
|
|
327
|
+
dataset: datasetRecord(target),
|
|
328
|
+
validity: target && target.validity ? cloneValue(target.validity, {}) : undefined
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
function normalizeEventBindings(input) {
|
|
333
|
+
if (Array.isArray(input)) {
|
|
334
|
+
return input.map((entry) => (typeof entry === 'string' ? { event: entry, action: entry } : objectRecord(entry)))
|
|
335
|
+
.filter((entry) => clampString(entry.event || entry.eventName));
|
|
336
|
+
}
|
|
337
|
+
return Object.entries(objectRecord(input)).map(([eventName, action]) => ({
|
|
338
|
+
event: eventName,
|
|
339
|
+
action
|
|
340
|
+
}));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
function createRmtComponentCapabilityRegistry(options = {}) {
|
|
344
|
+
const manifest = objectRecord(options.manifest);
|
|
345
|
+
const diagnostics = [];
|
|
346
|
+
const capabilityMap = new Map();
|
|
347
|
+
|
|
348
|
+
Object.entries(manifest).forEach(([tag, modulePath]) => {
|
|
349
|
+
const capability = normalizeCapability(tag, modulePath, options);
|
|
350
|
+
capabilityMap.set(capability.tag, capability);
|
|
351
|
+
diagnostics.push(...capability.diagnostics);
|
|
352
|
+
});
|
|
353
|
+
|
|
354
|
+
function resolveComponentCapability(tag) {
|
|
355
|
+
return capabilityMap.get(normalizeTag(tag)) || null;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
function listCapabilities(filter = {}) {
|
|
359
|
+
const family = clampString(filter.family);
|
|
360
|
+
const visualKind = clampString(filter.visualKind);
|
|
361
|
+
return Array.from(capabilityMap.values()).filter((capability) => {
|
|
362
|
+
if (family && capability.family !== family) return false;
|
|
363
|
+
if (visualKind && capability.visualKind !== visualKind) return false;
|
|
364
|
+
return true;
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
function buildComponentDescriptor(input = {}, descriptorOptions = {}) {
|
|
369
|
+
const record = objectRecord(input);
|
|
370
|
+
const tag = normalizeTag(record.tag || record.componentTag || record.component || record.host);
|
|
371
|
+
const capability = resolveComponentCapability(tag);
|
|
372
|
+
if (!capability) {
|
|
373
|
+
diagnostics.push({
|
|
374
|
+
schema: RMT_COMPONENT_DIAGNOSTIC_SCHEMA,
|
|
375
|
+
code: 'rmt.component.capability-missing',
|
|
376
|
+
severity: 'error',
|
|
377
|
+
tag,
|
|
378
|
+
message: `${tag} is not registered in the RMT component capability registry.`
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
const key = clampString(record.key || record.id || record.ref, `${tag || 'component'}:default`);
|
|
382
|
+
const attributes = {
|
|
383
|
+
...objectRecord(record.attributes),
|
|
384
|
+
'data-rmt-component-capability': tag,
|
|
385
|
+
'data-rmt-component-family': capability ? capability.family : 'unknown',
|
|
386
|
+
'data-rmt-kernel-boundary': capability ? capability.kernelBoundary : RMT_COMPONENT_KERNEL_BOUNDARY
|
|
387
|
+
};
|
|
388
|
+
if (capability && capability.modulePath) {
|
|
389
|
+
attributes['data-rmt-lazy-import'] = capability.modulePath;
|
|
390
|
+
}
|
|
391
|
+
return {
|
|
392
|
+
schema: RMT_COMPONENT_DESCRIPTOR_SCHEMA,
|
|
393
|
+
type: 'component',
|
|
394
|
+
component: clampString(record.component || record.id, tag),
|
|
395
|
+
tag,
|
|
396
|
+
key,
|
|
397
|
+
attributes,
|
|
398
|
+
properties: {
|
|
399
|
+
...objectRecord(record.properties),
|
|
400
|
+
...objectRecord(record.props)
|
|
401
|
+
},
|
|
402
|
+
slots: objectRecord(record.slots),
|
|
403
|
+
parts: unique([...toArray(record.parts), ...toArray(record.part)]),
|
|
404
|
+
events: objectRecord(record.events || record.eventBindings),
|
|
405
|
+
bindings: toArray(record.bindings),
|
|
406
|
+
capability: capability ? {
|
|
407
|
+
schema: capability.schema,
|
|
408
|
+
tag: capability.tag,
|
|
409
|
+
family: capability.family,
|
|
410
|
+
visualKind: capability.visualKind,
|
|
411
|
+
modulePath: capability.modulePath
|
|
412
|
+
} : null,
|
|
413
|
+
source: descriptorOptions.source || record.source || null
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
async function ensureComponentLoaded(tag, loadOptions = {}) {
|
|
418
|
+
const capability = resolveComponentCapability(tag);
|
|
419
|
+
if (!capability) {
|
|
420
|
+
return {
|
|
421
|
+
schema: RMT_COMPONENT_CAPABILITY_REPORT_SCHEMA,
|
|
422
|
+
status: 'missing-capability',
|
|
423
|
+
ok: false,
|
|
424
|
+
tag: normalizeTag(tag)
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
const customElementsRegistry = loadOptions.customElements || options.customElements || (globalTarget && globalTarget.customElements);
|
|
428
|
+
if (customElementsRegistry && typeof customElementsRegistry.get === 'function' && customElementsRegistry.get(capability.tag)) {
|
|
429
|
+
return {
|
|
430
|
+
schema: RMT_COMPONENT_CAPABILITY_REPORT_SCHEMA,
|
|
431
|
+
status: 'already-defined',
|
|
432
|
+
ok: true,
|
|
433
|
+
tag: capability.tag,
|
|
434
|
+
modulePath: capability.modulePath
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
const importer = loadOptions.importComponent || loadOptions.importer || options.importComponent || options.importer;
|
|
438
|
+
if (typeof importer === 'function') {
|
|
439
|
+
await importer(capability.modulePath, capability);
|
|
440
|
+
if (customElementsRegistry && typeof customElementsRegistry.whenDefined === 'function') {
|
|
441
|
+
await customElementsRegistry.whenDefined(capability.tag);
|
|
442
|
+
}
|
|
443
|
+
return {
|
|
444
|
+
schema: RMT_COMPONENT_CAPABILITY_REPORT_SCHEMA,
|
|
445
|
+
status: 'loaded',
|
|
446
|
+
ok: true,
|
|
447
|
+
tag: capability.tag,
|
|
448
|
+
modulePath: capability.modulePath,
|
|
449
|
+
importPolicy: RMT_COMPONENT_IMPORT_POLICY
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
return {
|
|
453
|
+
schema: RMT_COMPONENT_CAPABILITY_REPORT_SCHEMA,
|
|
454
|
+
status: 'importer-required',
|
|
455
|
+
ok: false,
|
|
456
|
+
tag: capability.tag,
|
|
457
|
+
modulePath: capability.modulePath,
|
|
458
|
+
importPolicy: RMT_COMPONENT_IMPORT_POLICY
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
function bindComponentInstance(element, binding = {}, bindOptions = {}) {
|
|
463
|
+
const localName = normalizeTag(
|
|
464
|
+
binding.tag
|
|
465
|
+
|| bindOptions.tag
|
|
466
|
+
|| element && (element.localName || element.tagName)
|
|
467
|
+
);
|
|
468
|
+
const capability = resolveComponentCapability(localName);
|
|
469
|
+
const dispatcher = binding.dispatchEvent || binding.dispatchAction || bindOptions.dispatchEvent || bindOptions.dispatchAction || options.dispatchEvent || options.dispatchAction;
|
|
470
|
+
const stateBridge = binding.stateBridge || bindOptions.stateBridge || options.stateBridge || null;
|
|
471
|
+
const explicitBindings = normalizeEventBindings(binding.events || binding.eventBindings || bindOptions.events || bindOptions.eventBindings);
|
|
472
|
+
const inferredEvents = explicitBindings.length
|
|
473
|
+
? explicitBindings
|
|
474
|
+
: unique([
|
|
475
|
+
...(capability ? capability.events : []),
|
|
476
|
+
...(capability && capability.family === 'form' ? ['input', 'change'] : [])
|
|
477
|
+
]).map((eventName) => ({ event: eventName, action: eventName }));
|
|
478
|
+
const listeners = [];
|
|
479
|
+
|
|
480
|
+
if (stateBridge && typeof stateBridge.read === 'function') {
|
|
481
|
+
const initialValue = stateBridge.read(stateKeyForElement(localName, element));
|
|
482
|
+
if (typeof initialValue !== 'undefined') writeElementValue(element, initialValue);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
inferredEvents.forEach((entry) => {
|
|
486
|
+
const eventName = clampString(entry.event || entry.eventName);
|
|
487
|
+
if (!eventName || !element || typeof element.addEventListener !== 'function') return;
|
|
488
|
+
const listener = (event) => {
|
|
489
|
+
const payload = adaptComponentEventPayload(capability, event);
|
|
490
|
+
if (stateBridge && typeof stateBridge.write === 'function' && capability && capability.family === 'form') {
|
|
491
|
+
stateBridge.write(stateKeyForElement(localName, event && event.target || element), payload.value);
|
|
492
|
+
}
|
|
493
|
+
if (typeof dispatcher === 'function') {
|
|
494
|
+
dispatcher({
|
|
495
|
+
id: entry.action || entry.actionId || eventName,
|
|
496
|
+
action: entry.action || entry.actionId || eventName,
|
|
497
|
+
eventName,
|
|
498
|
+
source: localName,
|
|
499
|
+
payload
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
element.addEventListener(eventName, listener, objectRecord(entry.options));
|
|
504
|
+
listeners.push({ eventName, listener });
|
|
505
|
+
});
|
|
506
|
+
|
|
507
|
+
return {
|
|
508
|
+
schema: RMT_COMPONENT_BINDING_SCHEMA,
|
|
509
|
+
tag: localName,
|
|
510
|
+
family: capability ? capability.family : 'unknown',
|
|
511
|
+
eventCount: listeners.length,
|
|
512
|
+
stateBridge: Boolean(stateBridge),
|
|
513
|
+
destroy() {
|
|
514
|
+
listeners.forEach(({ eventName, listener }) => {
|
|
515
|
+
if (element && typeof element.removeEventListener === 'function') {
|
|
516
|
+
element.removeEventListener(eventName, listener);
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
listeners.length = 0;
|
|
520
|
+
return {
|
|
521
|
+
schema: RMT_COMPONENT_BINDING_SCHEMA,
|
|
522
|
+
tag: localName,
|
|
523
|
+
destroyed: true
|
|
524
|
+
};
|
|
525
|
+
},
|
|
526
|
+
snapshot() {
|
|
527
|
+
return {
|
|
528
|
+
schema: RMT_COMPONENT_BINDING_SCHEMA,
|
|
529
|
+
tag: localName,
|
|
530
|
+
family: capability ? capability.family : 'unknown',
|
|
531
|
+
eventCount: listeners.length,
|
|
532
|
+
value: readElementValue(element, capability)
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
function createMatrixReport() {
|
|
539
|
+
const capabilities = listCapabilities();
|
|
540
|
+
const publicUi = capabilities.filter((capability) => capability.visualKind === 'public-ui');
|
|
541
|
+
const familyCounts = {};
|
|
542
|
+
capabilities.forEach((capability) => {
|
|
543
|
+
familyCounts[capability.family] = (familyCounts[capability.family] || 0) + 1;
|
|
544
|
+
});
|
|
545
|
+
return {
|
|
546
|
+
schema: RMT_COMPONENT_CAPABILITY_REPORT_SCHEMA,
|
|
547
|
+
registrySchema: RMT_COMPONENT_CAPABILITY_REGISTRY_SCHEMA,
|
|
548
|
+
status: diagnostics.length === 0 ? 'passed' : 'blocked',
|
|
549
|
+
ok: diagnostics.length === 0,
|
|
550
|
+
manifestCount: capabilities.length,
|
|
551
|
+
publicComponentCount: publicUi.length,
|
|
552
|
+
nonVisualCount: capabilities.length - publicUi.length,
|
|
553
|
+
withRmtMetadata: capabilities.filter((capability) => capability.rmt).length,
|
|
554
|
+
withComponentContract: capabilities.filter((capability) => capability.componentContract).length,
|
|
555
|
+
customElementCount: capabilities.filter((capability) => capability.customElement).length,
|
|
556
|
+
formAssociatedCount: capabilities.filter((capability) => capability.formAssociated).length,
|
|
557
|
+
familyCounts,
|
|
558
|
+
browserSmokeFamilies: BROWSER_SMOKE_FAMILIES.slice(),
|
|
559
|
+
importPolicy: RMT_COMPONENT_IMPORT_POLICY,
|
|
560
|
+
kernelBoundary: RMT_COMPONENT_KERNEL_BOUNDARY,
|
|
561
|
+
diagnostics: diagnostics.slice(),
|
|
562
|
+
components: capabilities.map((capability) => ({
|
|
563
|
+
tag: capability.tag,
|
|
564
|
+
modulePath: capability.modulePath,
|
|
565
|
+
family: capability.family,
|
|
566
|
+
visualKind: capability.visualKind,
|
|
567
|
+
customElement: capability.customElement,
|
|
568
|
+
formAssociated: capability.formAssociated,
|
|
569
|
+
observedAttributeCount: capability.observedAttributes.length,
|
|
570
|
+
eventCount: capability.events.length,
|
|
571
|
+
slotCount: capability.slots.length,
|
|
572
|
+
partCount: capability.parts.length,
|
|
573
|
+
hasRmtMetadata: Boolean(capability.rmt),
|
|
574
|
+
hasComponentContract: Boolean(capability.componentContract),
|
|
575
|
+
sourceToSeaRisk: capability.sourceToSeaRisk
|
|
576
|
+
}))
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
return Object.freeze({
|
|
581
|
+
schema: RMT_COMPONENT_CAPABILITY_REGISTRY_SCHEMA,
|
|
582
|
+
importPolicy: RMT_COMPONENT_IMPORT_POLICY,
|
|
583
|
+
kernelBoundary: RMT_COMPONENT_KERNEL_BOUNDARY,
|
|
584
|
+
resolveComponentCapability,
|
|
585
|
+
listCapabilities,
|
|
586
|
+
buildComponentDescriptor,
|
|
587
|
+
bindComponentInstance,
|
|
588
|
+
ensureComponentLoaded,
|
|
589
|
+
createMatrixReport,
|
|
590
|
+
listDiagnostics() {
|
|
591
|
+
return diagnostics.slice();
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
function createRmtComponentPrimitiveMatrix(options = {}) {
|
|
597
|
+
return createRmtComponentCapabilityRegistry(options).createMatrixReport();
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
const api = {
|
|
601
|
+
RMT_COMPONENT_BINDING_SCHEMA,
|
|
602
|
+
RMT_COMPONENT_CAPABILITY_REGISTRY_SCHEMA,
|
|
603
|
+
RMT_COMPONENT_CAPABILITY_REPORT_SCHEMA,
|
|
604
|
+
RMT_COMPONENT_DESCRIPTOR_SCHEMA,
|
|
605
|
+
RMT_COMPONENT_DIAGNOSTIC_SCHEMA,
|
|
606
|
+
RMT_COMPONENT_IMPORT_POLICY,
|
|
607
|
+
RMT_COMPONENT_KERNEL_BOUNDARY,
|
|
608
|
+
adaptComponentEventPayload,
|
|
609
|
+
classifyComponentFamily,
|
|
610
|
+
createRmtComponentCapabilityRegistry,
|
|
611
|
+
createRmtComponentPrimitiveMatrix
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
615
|
+
module.exports = api;
|
|
616
|
+
}
|
|
617
|
+
if (globalTarget) {
|
|
618
|
+
globalTarget.XTendRmtComponentCapabilityRegistry = api;
|
|
619
|
+
}
|
|
620
|
+
})(typeof globalThis !== 'undefined' ? globalThis : (typeof window !== 'undefined' ? window : this));
|
|
621
|
+
|
|
622
|
+
const __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__ = globalThis.XTendRmtComponentCapabilityRegistry;
|
|
623
|
+
|
|
624
|
+
export const RMT_COMPONENT_BINDING_SCHEMA = __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__.RMT_COMPONENT_BINDING_SCHEMA;
|
|
625
|
+
export const RMT_COMPONENT_CAPABILITY_REGISTRY_SCHEMA = __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__.RMT_COMPONENT_CAPABILITY_REGISTRY_SCHEMA;
|
|
626
|
+
export const RMT_COMPONENT_CAPABILITY_REPORT_SCHEMA = __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__.RMT_COMPONENT_CAPABILITY_REPORT_SCHEMA;
|
|
627
|
+
export const RMT_COMPONENT_DESCRIPTOR_SCHEMA = __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__.RMT_COMPONENT_DESCRIPTOR_SCHEMA;
|
|
628
|
+
export const RMT_COMPONENT_DIAGNOSTIC_SCHEMA = __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__.RMT_COMPONENT_DIAGNOSTIC_SCHEMA;
|
|
629
|
+
export const RMT_COMPONENT_IMPORT_POLICY = __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__.RMT_COMPONENT_IMPORT_POLICY;
|
|
630
|
+
export const RMT_COMPONENT_KERNEL_BOUNDARY = __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__.RMT_COMPONENT_KERNEL_BOUNDARY;
|
|
631
|
+
export const adaptComponentEventPayload = __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__.adaptComponentEventPayload;
|
|
632
|
+
export const classifyComponentFamily = __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__.classifyComponentFamily;
|
|
633
|
+
export const createRmtComponentCapabilityRegistry = __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__.createRmtComponentCapabilityRegistry;
|
|
634
|
+
export const createRmtComponentPrimitiveMatrix = __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__.createRmtComponentPrimitiveMatrix;
|
|
635
|
+
|
|
636
|
+
export default __XTEND_RMT_COMPONENT_CAPABILITY_REGISTRY_API__;
|
package/xtendrmt/rmt-core.d.ts
CHANGED
|
@@ -873,6 +873,7 @@ export interface RmtSurfaceMappedSurface {
|
|
|
873
873
|
surfaceId: string;
|
|
874
874
|
schema: 'xtend.surface.record.v1' | string;
|
|
875
875
|
type: RmtSurfaceType | string;
|
|
876
|
+
kind?: string;
|
|
876
877
|
adapter: 'xtend.surface' | string;
|
|
877
878
|
manager: string;
|
|
878
879
|
component: string;
|
|
@@ -1172,6 +1173,10 @@ export type RmtSurfaceType =
|
|
|
1172
1173
|
| 'drawer'
|
|
1173
1174
|
| 'popover'
|
|
1174
1175
|
| 'tooltip'
|
|
1176
|
+
| 'region'
|
|
1177
|
+
| 'toast'
|
|
1178
|
+
| 'lightbox'
|
|
1179
|
+
| 'menu'
|
|
1175
1180
|
| string;
|
|
1176
1181
|
|
|
1177
1182
|
export interface RmtSurfaceBounds {
|
|
@@ -1198,6 +1203,7 @@ export interface RmtSurfaceDomainRecord {
|
|
|
1198
1203
|
id: string;
|
|
1199
1204
|
schema?: 'xtend.surface.record.v1' | string;
|
|
1200
1205
|
type: RmtSurfaceType;
|
|
1206
|
+
kind?: string;
|
|
1201
1207
|
adapter?: 'xtend.surface' | string;
|
|
1202
1208
|
manager: string;
|
|
1203
1209
|
component: string;
|