@ccslabs/xtend 0.1.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -0
- package/LICENSE +201 -0
- package/README.md +184 -0
- package/a11y/motion-contrast-policy.d.ts +32 -0
- package/a11y/motion-contrast-policy.js +261 -0
- package/a11y/runtime-a11y-contract.d.ts +44 -0
- package/a11y/runtime-a11y-contract.js +385 -0
- package/a11y/screenreader-signals.d.ts +32 -0
- package/a11y/screenreader-signals.js +372 -0
- package/api.d.ts +168 -0
- package/api.js +864 -0
- package/catalog/catalog-public-types.d.ts +66 -0
- package/catalog/component-catalog-coverage.d.ts +20 -0
- package/catalog/component-catalog-coverage.js +377 -0
- package/catalog/component-long-tail-migration.d.ts +18 -0
- package/catalog/component-long-tail-migration.js +305 -0
- package/catalog/component-regression-priority.d.ts +20 -0
- package/catalog/component-regression-priority.js +305 -0
- package/catalog/enterprise-component-flex-release-handoff.d.ts +32 -0
- package/catalog/enterprise-component-flex-release-handoff.js +437 -0
- package/catalog/enterprise-component-style-audit.d.ts +22 -0
- package/catalog/enterprise-component-style-audit.js +353 -0
- package/catalog/enterprise-form-control-theme-a11y.d.ts +19 -0
- package/catalog/enterprise-form-control-theme-a11y.js +220 -0
- package/catalog/enterprise-icon-control-audit.d.ts +21 -0
- package/catalog/enterprise-icon-control-audit.js +258 -0
- package/catalog/enterprise-layout-display-media-tokenization.d.ts +20 -0
- package/catalog/enterprise-layout-display-media-tokenization.js +237 -0
- package/catalog/enterprise-navigation-routing-state-hardening.d.ts +20 -0
- package/catalog/enterprise-navigation-routing-state-hardening.js +255 -0
- package/catalog/enterprise-overlay-mode-token-parity.d.ts +15 -0
- package/catalog/enterprise-overlay-mode-token-parity.js +178 -0
- package/catalog/enterprise-third-party-authoring-guide.d.ts +23 -0
- package/catalog/enterprise-third-party-authoring-guide.js +310 -0
- package/catalog/enterprise-visual-dom-snapshot-matrix.d.ts +31 -0
- package/catalog/enterprise-visual-dom-snapshot-matrix.js +357 -0
- package/catalog/epic10-existing-component-metadata.d.ts +25 -0
- package/catalog/epic10-existing-component-metadata.js +534 -0
- package/catalog/epic10-p0-component-wave.d.ts +28 -0
- package/catalog/epic10-p0-component-wave.js +688 -0
- package/catalog/epic10-platform-gates.d.ts +31 -0
- package/catalog/epic10-platform-gates.js +425 -0
- package/catalog/epic10-release-handoff.d.ts +30 -0
- package/catalog/epic10-release-handoff.js +195 -0
- package/catalog/epic11-enterprise-ux-handoff.d.ts +29 -0
- package/catalog/epic11-enterprise-ux-handoff.js +403 -0
- package/catalog/epic12-docs-adoption.d.ts +29 -0
- package/catalog/epic12-docs-adoption.js +183 -0
- package/catalog/epic12-rc0-gate-matrix.d.ts +36 -0
- package/catalog/epic12-rc0-gate-matrix.js +439 -0
- package/catalog/epic12-rc0-handoff.d.ts +30 -0
- package/catalog/epic12-rc0-handoff.js +385 -0
- package/catalog/epic13-conditional-network-evidence-ci.d.ts +35 -0
- package/catalog/epic13-conditional-network-evidence-ci.js +278 -0
- package/catalog/epic13-conditional-network-evidence.d.ts +34 -0
- package/catalog/epic13-conditional-network-evidence.js +280 -0
- package/catalog/epic13-docs-rmt-production-hardening.d.ts +39 -0
- package/catalog/epic13-docs-rmt-production-hardening.js +286 -0
- package/catalog/epic13-hydration-performance-closure.d.ts +33 -0
- package/catalog/epic13-hydration-performance-closure.js +234 -0
- package/catalog/epic13-known-residual-triage.d.ts +32 -0
- package/catalog/epic13-known-residual-triage.js +339 -0
- package/catalog/epic13-package-export-lock.d.ts +41 -0
- package/catalog/epic13-package-export-lock.js +604 -0
- package/catalog/epic13-prod-browser-csp-smoke.d.ts +35 -0
- package/catalog/epic13-prod-browser-csp-smoke.js +218 -0
- package/catalog/epic13-rc1-gate-matrix-ci-handoff.d.ts +36 -0
- package/catalog/epic13-rc1-gate-matrix-ci-handoff.js +418 -0
- package/catalog/epic13-rc1-migration-notes.d.ts +36 -0
- package/catalog/epic13-rc1-migration-notes.js +271 -0
- package/catalog/epic13-rc1-readiness.d.ts +33 -0
- package/catalog/epic13-rc1-readiness.js +487 -0
- package/catalog/epic13-release-owner-acceptance.d.ts +33 -0
- package/catalog/epic13-release-owner-acceptance.js +354 -0
- package/catalog/epic13-release-report-pack-dry-run-evidence.d.ts +36 -0
- package/catalog/epic13-release-report-pack-dry-run-evidence.js +253 -0
- package/catalog/epic13-rmt-production-readiness.d.ts +35 -0
- package/catalog/epic13-rmt-production-readiness.js +314 -0
- package/catalog/epic13-trusted-dom-boundary.d.ts +36 -0
- package/catalog/epic13-trusted-dom-boundary.js +230 -0
- package/catalog/epic13-visual-owner-artifact.d.ts +35 -0
- package/catalog/epic13-visual-owner-artifact.js +233 -0
- package/catalog/epic14-lsp-handoff.d.ts +28 -0
- package/catalog/epic14-lsp-handoff.js +312 -0
- package/catalog/epic14-rmt-tooling.d.ts +33 -0
- package/catalog/epic14-rmt-tooling.js +282 -0
- package/catalog/surface-manager-adapter-runtime.d.ts +37 -0
- package/catalog/surface-manager-adapter-runtime.js +203 -0
- package/catalog/surface-manager-browser-lab.d.ts +39 -0
- package/catalog/surface-manager-browser-lab.js +225 -0
- package/catalog/surface-manager-controller.d.ts +43 -0
- package/catalog/surface-manager-controller.js +290 -0
- package/catalog/surface-manager-layout-engines.d.ts +32 -0
- package/catalog/surface-manager-layout-engines.js +161 -0
- package/catalog/surface-manager-lazy-loading.d.ts +35 -0
- package/catalog/surface-manager-lazy-loading.js +173 -0
- package/catalog/surface-manager-materialization.d.ts +37 -0
- package/catalog/surface-manager-materialization.js +202 -0
- package/catalog/surface-manager-native-rmt-surfaces.d.ts +48 -0
- package/catalog/surface-manager-native-rmt-surfaces.js +325 -0
- package/catalog/surface-manager-overlay-bridge.d.ts +42 -0
- package/catalog/surface-manager-overlay-bridge.js +247 -0
- package/catalog/surface-manager-persistence.d.ts +37 -0
- package/catalog/surface-manager-persistence.js +178 -0
- package/catalog/surface-manager-quality-gates.d.ts +48 -0
- package/catalog/surface-manager-quality-gates.js +324 -0
- package/catalog/surface-manager-release-handoff.d.ts +47 -0
- package/catalog/surface-manager-release-handoff.js +274 -0
- package/catalog/surface-manager-remote-policy.d.ts +34 -0
- package/catalog/surface-manager-remote-policy.js +199 -0
- package/catalog/surface-manager-rmt-authoring.d.ts +44 -0
- package/catalog/surface-manager-rmt-authoring.js +368 -0
- package/catalog/surface-manager-route-lifecycle.d.ts +32 -0
- package/catalog/surface-manager-route-lifecycle.js +162 -0
- package/catalog/surface-manager-runtime-release-handoff.d.ts +36 -0
- package/catalog/surface-manager-runtime-release-handoff.js +245 -0
- package/catalog/surface-manager-side-panel-runtime.d.ts +46 -0
- package/catalog/surface-manager-side-panel-runtime.js +307 -0
- package/catalog/surface-manager-stack-policy.d.ts +32 -0
- package/catalog/surface-manager-stack-policy.js +169 -0
- package/catalog/surface-manager-window-runtime.d.ts +45 -0
- package/catalog/surface-manager-window-runtime.js +285 -0
- package/catalog/surface-manager-workbench-fixture.d.ts +50 -0
- package/catalog/surface-manager-workbench-fixture.js +315 -0
- package/catalog/type-exports-api.js +236 -0
- package/catalog/type-exports-builder.js +405 -0
- package/catalog/type-exports-catalog.js +394 -0
- package/catalog/type-exports-loader.js +266 -0
- package/catalog/type-exports-policy.js +461 -0
- package/catalog/type-exports-rmt.js +407 -0
- package/catalog/type-exports-vendor.js +365 -0
- package/catalog/type-exports.js +574 -0
- package/components/icon-packs/core.js +154 -0
- package/components/icon-packs/lucide.js +136 -0
- package/components/manifest.json +44 -0
- package/components/prism.d.ts +73 -0
- package/components/prism.js +300 -0
- package/components/turndown.d.ts +34 -0
- package/components/turndown.js +107 -0
- package/components/x-rmt-lifecycle-demo-build.d.ts +78 -0
- package/components/x-rmt-lifecycle-demo-build.js +1175 -0
- package/components/x-rmt-lifecycle-demo.d.ts +83 -0
- package/components/x-rmt-lifecycle-demo.js +1175 -0
- package/components/xalert.d.ts +42 -0
- package/components/xalert.js +538 -0
- package/components/xbutton.d.ts +127 -0
- package/components/xbutton.js +612 -0
- package/components/xcalendar.d.ts +39 -0
- package/components/xcalendar.js +338 -0
- package/components/xcards.d.ts +34 -0
- package/components/xcards.js +253 -0
- package/components/xcheckbox.d.ts +48 -0
- package/components/xcheckbox.js +448 -0
- package/components/xcode.d.ts +35 -0
- package/components/xcode.js +370 -0
- package/components/xdialog.d.ts +48 -0
- package/components/xdialog.js +763 -0
- package/components/xdrawer.d.ts +61 -0
- package/components/xdrawer.js +654 -0
- package/components/xfooter.d.ts +41 -0
- package/components/xfooter.js +351 -0
- package/components/xform.d.ts +43 -0
- package/components/xform.js +456 -0
- package/components/xheader.d.ts +68 -0
- package/components/xheader.js +1253 -0
- package/components/xhero.d.ts +42 -0
- package/components/xhero.js +475 -0
- package/components/xicon.d.ts +146 -0
- package/components/xicon.js +688 -0
- package/components/xinput.d.ts +37 -0
- package/components/xinput.js +444 -0
- package/components/xlightbox.d.ts +48 -0
- package/components/xlightbox.js +571 -0
- package/components/xlink.d.ts +63 -0
- package/components/xlink.js +565 -0
- package/components/xmasonry.d.ts +35 -0
- package/components/xmasonry.js +666 -0
- package/components/xmenu.d.ts +118 -0
- package/components/xmenu.js +1005 -0
- package/components/xmodal.d.ts +64 -0
- package/components/xmodal.js +831 -0
- package/components/xplayer.d.ts +57 -0
- package/components/xplayer.js +1748 -0
- package/components/xpopover.d.ts +54 -0
- package/components/xpopover.js +466 -0
- package/components/xprogress.d.ts +40 -0
- package/components/xprogress.js +345 -0
- package/components/xradio.d.ts +50 -0
- package/components/xradio.js +474 -0
- package/components/xrouter.d.ts +244 -0
- package/components/xrouter.js +1841 -0
- package/components/xsection.d.ts +34 -0
- package/components/xsection.js +253 -0
- package/components/xselect.d.ts +46 -0
- package/components/xselect.js +463 -0
- package/components/xsidepanel.d.ts +56 -0
- package/components/xsidepanel.js +728 -0
- package/components/xspinner.d.ts +38 -0
- package/components/xspinner.js +388 -0
- package/components/xstate.d.ts +137 -0
- package/components/xstate.js +493 -0
- package/components/xstatus.d.ts +41 -0
- package/components/xstatus.js +381 -0
- package/components/xsummary.d.ts +43 -0
- package/components/xsummary.js +293 -0
- package/components/xsurfacemanager-controller.d.ts +130 -0
- package/components/xsurfacemanager-controller.js +699 -0
- package/components/xsurfacemanager.d.ts +452 -0
- package/components/xsurfacemanager.js +3775 -0
- package/components/xsurfaceoverlay-bridge.d.ts +43 -0
- package/components/xsurfaceoverlay-bridge.js +238 -0
- package/components/xsurfacewindow.d.ts +50 -0
- package/components/xsurfacewindow.js +576 -0
- package/components/xtabs.d.ts +73 -0
- package/components/xtabs.js +611 -0
- package/components/xtend-public-types.d.ts +208 -0
- package/components/xtextarea.d.ts +46 -0
- package/components/xtextarea.js +451 -0
- package/components/xtheme.d.ts +253 -0
- package/components/xtheme.js +1438 -0
- package/components/xtoast.d.ts +39 -0
- package/components/xtoast.js +389 -0
- package/components/xtooltip.d.ts +53 -0
- package/components/xtooltip.js +432 -0
- package/components/xtype.d.ts +42 -0
- package/components/xtype.js +244 -0
- package/components/xutils.d.ts +164 -0
- package/components/xutils.js +496 -0
- package/components/xwriter.d.ts +67 -0
- package/components/xwriter.js +854 -0
- package/design-tokens/themes/enterprise-light.json +40 -0
- package/design-tokens/themes/xtend-signature.json +126 -0
- package/design-tokens/xtend-design-tokens.d.ts +95 -0
- package/design-tokens/xtend-design-tokens.js +395 -0
- package/design-tokens/xtheme-token-alias-layer.d.ts +84 -0
- package/design-tokens/xtheme-token-alias-layer.js +423 -0
- package/docs/.htaccess +51 -0
- package/docs/README.md +340 -0
- package/docs/XTend-ADR.md +221 -0
- package/docs/a11y-keyboard-smokes.md +62 -0
- package/docs/about.md +18 -0
- package/docs/api.md +157 -0
- package/docs/best-practices.md +76 -0
- package/docs/component-catalog-coverage.md +58 -0
- package/docs/component-lab.md +103 -0
- package/docs/component-long-tail-migration.md +41 -0
- package/docs/component-platform.md +159 -0
- package/docs/component-ux-app-authoring.md +130 -0
- package/docs/component-ux-authoring.md +96 -0
- package/docs/component-ux-gates.md +45 -0
- package/docs/components/x-rmt-lifecycle-demo-build.md +60 -0
- package/docs/components/xalert.md +81 -0
- package/docs/components/xbutton.md +103 -0
- package/docs/components/xcalendar.md +82 -0
- package/docs/components/xcards.md +128 -0
- package/docs/components/xcheckbox.md +102 -0
- package/docs/components/xcode.md +126 -0
- package/docs/components/xdialog.md +92 -0
- package/docs/components/xdrawer.md +84 -0
- package/docs/components/xfooter.md +126 -0
- package/docs/components/xform.md +128 -0
- package/docs/components/xheader.md +308 -0
- package/docs/components/xhero.md +142 -0
- package/docs/components/xicon.md +125 -0
- package/docs/components/xinput.md +129 -0
- package/docs/components/xlightbox.md +98 -0
- package/docs/components/xlink.md +109 -0
- package/docs/components/xmasonry.md +124 -0
- package/docs/components/xmenu.md +158 -0
- package/docs/components/xmodal.md +82 -0
- package/docs/components/xplayer.md +104 -0
- package/docs/components/xpopover.md +67 -0
- package/docs/components/xprogress.md +56 -0
- package/docs/components/xradio.md +103 -0
- package/docs/components/xrouter.md +260 -0
- package/docs/components/xsection.md +125 -0
- package/docs/components/xselect.md +105 -0
- package/docs/components/xsidepanel.md +30 -0
- package/docs/components/xspinner.md +102 -0
- package/docs/components/xstate.md +148 -0
- package/docs/components/xstatus.md +55 -0
- package/docs/components/xsummary.md +78 -0
- package/docs/components/xsurfacemanager.md +27 -0
- package/docs/components/xsurfacewindow.md +21 -0
- package/docs/components/xtabs.md +160 -0
- package/docs/components/xtextarea.md +98 -0
- package/docs/components/xtheme.md +167 -0
- package/docs/components/xtoast.md +62 -0
- package/docs/components/xtooltip.md +66 -0
- package/docs/components/xtype.md +82 -0
- package/docs/components/xutils.md +144 -0
- package/docs/components/xwriter.md +94 -0
- package/docs/components.md +117 -0
- package/docs/conditional-network-evidence-ci.md +38 -0
- package/docs/conditional-network-evidence.md +50 -0
- package/docs/core-migration-guide.md +110 -0
- package/docs/design-tokens.md +116 -0
- package/docs/docs-rmt-production-hardening.md +31 -0
- package/docs/enterprise-adoption.md +411 -0
- package/docs/enterprise-component-flex-release-handoff.md +129 -0
- package/docs/epic10-platform-gates.md +62 -0
- package/docs/epic10-release-handoff.md +81 -0
- package/docs/epic11-enterprise-ux-handoff.md +70 -0
- package/docs/epic12-rc0-handoff.md +61 -0
- package/docs/existing-component-metadata.md +67 -0
- package/docs/hydration-performance-closure.md +34 -0
- package/docs/hydration-policies.md +71 -0
- package/docs/index.php +1625 -0
- package/docs/known-residual-triage.md +22 -0
- package/docs/manifest-import-policy.md +79 -0
- package/docs/manifest.md +106 -0
- package/docs/menu.json +1190 -0
- package/docs/motion-contrast.md +67 -0
- package/docs/package-export-lock.md +44 -0
- package/docs/performance-measurements.md +106 -0
- package/docs/performance-regression.md +89 -0
- package/docs/performance.md +94 -0
- package/docs/previews/README.md +17 -0
- package/docs/prod-browser-csp-smokes.md +40 -0
- package/docs/public-component-types.md +79 -0
- package/docs/quick-start-guide.md +152 -0
- package/docs/rc0-adoption-guide.md +102 -0
- package/docs/rc0-gate-matrix.md +58 -0
- package/docs/rc1-gate-matrix-ci-handoff.md +56 -0
- package/docs/rc1-migration-notes.md +69 -0
- package/docs/rc1-readiness.md +46 -0
- package/docs/release-owner-acceptance.md +56 -0
- package/docs/release-report-pack-dry-run-evidence.md +39 -0
- package/docs/rmt-dsl-authoring-polish.md +122 -0
- package/docs/rmt-first-demo-app.md +77 -0
- package/docs/rmt-first-xtend-apps.md +105 -0
- package/docs/rmt-kernel-panic-recovery-incident-handoff.md +61 -0
- package/docs/rmt-kernel-security-hardening-migration.md +50 -0
- package/docs/rmt-kernel-trusted-output-authoring.md +69 -0
- package/docs/rmt-language-server.md +177 -0
- package/docs/rmt-lifecycle-demo.md +25 -0
- package/docs/rmt-linter.md +140 -0
- package/docs/rmt-production-readiness.md +63 -0
- package/docs/rmt-tooling-release-gates.md +77 -0
- package/docs/rmt-vnext-authoring.md +60 -0
- package/docs/rmt-vnext-cross-surface-events.md +68 -0
- package/docs/rmt-vnext-enterprise-mfe-handoff.md +70 -0
- package/docs/rmt-vnext-migration-notes.md +62 -0
- package/docs/rmt-vnext-release-handoff.md +69 -0
- package/docs/rmt-vnext-remote-surfaces.md +90 -0
- package/docs/rmt-vnext-surface-registry-enterprise.md +76 -0
- package/docs/screenreader-signals.md +56 -0
- package/docs/supply-chain-gates.md +100 -0
- package/docs/surface-manager-authoring-guide.md +94 -0
- package/docs/surface-manager-browser-lab.md +45 -0
- package/docs/surface-manager-component-lab.md +43 -0
- package/docs/surface-manager-controller.md +66 -0
- package/docs/surface-manager-layout-engines.md +32 -0
- package/docs/surface-manager-lazy-hydration.md +63 -0
- package/docs/surface-manager-migration-guide.md +94 -0
- package/docs/surface-manager-native-rmt-surfaces.md +38 -0
- package/docs/surface-manager-overlay-bridge.md +53 -0
- package/docs/surface-manager-persistence.md +30 -0
- package/docs/surface-manager-quality-gates.md +51 -0
- package/docs/surface-manager-release-handoff.md +68 -0
- package/docs/surface-manager-remote-policy.md +54 -0
- package/docs/surface-manager-rmt-authoring.md +86 -0
- package/docs/surface-manager-route-lifecycle.md +59 -0
- package/docs/surface-manager-runtime-release-handoff.md +69 -0
- package/docs/surface-manager-side-panel-runtime.md +36 -0
- package/docs/surface-manager-stack-policy.md +39 -0
- package/docs/surface-manager-window-runtime.md +47 -0
- package/docs/surface-manager-workbench-fixture.md +43 -0
- package/docs/third-party-design-authoring.md +406 -0
- package/docs/trusted-dom-boundary-browser-proof.md +32 -0
- package/docs/trusted-dom-sanitizing.md +110 -0
- package/docs/type-exports.md +61 -0
- package/docs/typescript-components.md +63 -0
- package/docs/utils/fabric-runtime.js +650 -0
- package/docs/utils/pageloader.js +2823 -0
- package/docs/utils/parsedown.php +298 -0
- package/docs/visual-browser-regression.md +83 -0
- package/docs/visual-owner-artifacts.md +46 -0
- package/docs/visual-snapshot-automation.md +87 -0
- package/docs/xtend-api-types.md +55 -0
- package/docs/xtend-builder-types.md +55 -0
- package/docs/xtend-catalog-types.md +44 -0
- package/docs/xtend-fabric-rmt-lane-mapping.md +143 -0
- package/docs/xtend-fabric.md +474 -0
- package/docs/xtend-loader-types.md +58 -0
- package/docs/xtend-loader.md +265 -0
- package/docs/xtend-policy-types.md +38 -0
- package/docs/xtend-rmt-types.md +39 -0
- package/docs/xtend-vendor-types.md +36 -0
- package/docs/xtendrmt-app-dsl.md +269 -0
- package/docs/xtendrmt-migration-guide.md +235 -0
- package/docs/xtendrmt-native-authoring.md +337 -0
- package/docs/xtendrmt-overview.md +89 -0
- package/docs/xtendrmt-parsedown-docs.rmt +956 -0
- package/docs/xtendrmt-parsedown-scheduling.md +301 -0
- package/docs/xtendrmt-runtime-bridge.md +155 -0
- package/fabric/hydration-policy.d.ts +27 -0
- package/fabric/hydration-policy.js +306 -0
- package/fabric/package.json +58 -0
- package/fabric/rmt-lane-mapping.d.ts +47 -0
- package/fabric/rmt-lane-mapping.js +504 -0
- package/fabric/xtend-fabric.d.ts +81 -0
- package/fabric/xtend-fabric.js +2669 -0
- package/fabric/xtend-policy-public-types.d.ts +135 -0
- package/package.json +8225 -0
- package/security/README.md +54 -0
- package/security/manifest-import-policy.d.ts +43 -0
- package/security/manifest-import-policy.js +260 -0
- package/security/supply-chain-gate-policy.d.ts +45 -0
- package/security/supply-chain-gate-policy.js +249 -0
- package/security/trusted-dom-policy.d.ts +36 -0
- package/security/trusted-dom-policy.js +316 -0
- package/tools/package.json +77 -0
- package/tools/rmt-editor/vscode/README.md +33 -0
- package/tools/rmt-editor/vscode/extension.d.ts +9 -0
- package/tools/rmt-editor/vscode/extension.js +55 -0
- package/tools/rmt-editor/vscode/language-configuration.json +28 -0
- package/tools/rmt-editor/vscode/package.json +83 -0
- package/tools/rmt-editor/vscode/snippets/rmt.code-snippets +243 -0
- package/tools/rmt-editor/vscode/syntaxes/rmt.tmLanguage.json +13 -0
- package/tools/rmt-editor/vscode/xtend-rmt-language-0.0.0-enterprise-readiness.vsix +0 -0
- package/tools/rmt-language/code-actions.d.ts +15 -0
- package/tools/rmt-language/code-actions.js +566 -0
- package/tools/rmt-language/completions.d.ts +22 -0
- package/tools/rmt-language/completions.js +475 -0
- package/tools/rmt-language/definitions.d.ts +13 -0
- package/tools/rmt-language/definitions.js +212 -0
- package/tools/rmt-language/diagnostics.d.ts +23 -0
- package/tools/rmt-language/diagnostics.js +486 -0
- package/tools/rmt-language/format-adapter.d.ts +16 -0
- package/tools/rmt-language/format-adapter.js +270 -0
- package/tools/rmt-language/hover.d.ts +12 -0
- package/tools/rmt-language/hover.js +326 -0
- package/tools/rmt-language/kernel-escalation.d.ts +122 -0
- package/tools/rmt-language/kernel-escalation.js +427 -0
- package/tools/rmt-language/kernel-panic-monitor.d.ts +176 -0
- package/tools/rmt-language/kernel-panic-monitor.js +674 -0
- package/tools/rmt-language/kernel-policy-parity.d.ts +142 -0
- package/tools/rmt-language/kernel-policy-parity.js +629 -0
- package/tools/rmt-language/kernel-recovery.d.ts +173 -0
- package/tools/rmt-language/kernel-recovery.js +666 -0
- package/tools/rmt-language/kernel-scheduler-failure.d.ts +136 -0
- package/tools/rmt-language/kernel-scheduler-failure.js +486 -0
- package/tools/rmt-language/kernel-security-regression.d.ts +154 -0
- package/tools/rmt-language/kernel-security-regression.js +465 -0
- package/tools/rmt-language/kernel-trust-authority.d.ts +120 -0
- package/tools/rmt-language/kernel-trust-authority.js +549 -0
- package/tools/rmt-language/parser.d.ts +14 -0
- package/tools/rmt-language/parser.js +111 -0
- package/tools/rmt-language/rmt-tooling-public-types.d.ts +179 -0
- package/tools/rmt-language/rules/boundary-policy.js +81 -0
- package/tools/rmt-language/rules/document-policy.js +65 -0
- package/tools/rmt-language/rules/index.js +29 -0
- package/tools/rmt-language/rules/route-policy.js +81 -0
- package/tools/rmt-language/rules/scheduler-policy.js +66 -0
- package/tools/rmt-language/rules/template-policy.js +130 -0
- package/tools/rmt-language/semantic-graph.d.ts +18 -0
- package/tools/rmt-language/semantic-graph.js +827 -0
- package/tools/rmt-language/snippets/README.md +17 -0
- package/tools/rmt-language/snippets/index.d.ts +17 -0
- package/tools/rmt-language/snippets/index.js +417 -0
- package/tools/rmt-language/snippets/rmt.code-snippets +243 -0
- package/tools/rmt-language/source-model.d.ts +14 -0
- package/tools/rmt-language/source-model.js +731 -0
- package/tools/rmt-language/symbols.d.ts +13 -0
- package/tools/rmt-language/symbols.js +183 -0
- package/tools/rmt-language/vnext-compatibility.d.ts +28 -0
- package/tools/rmt-language/vnext-compatibility.js +675 -0
- package/tools/rmt-language/vnext-compiler.d.ts +17 -0
- package/tools/rmt-language/vnext-compiler.js +716 -0
- package/tools/rmt-language/vnext-composition.d.ts +30 -0
- package/tools/rmt-language/vnext-composition.js +595 -0
- package/tools/rmt-language/vnext-conditions.d.ts +25 -0
- package/tools/rmt-language/vnext-conditions.js +474 -0
- package/tools/rmt-language/vnext-cross-surface-events.d.ts +30 -0
- package/tools/rmt-language/vnext-cross-surface-events.js +607 -0
- package/tools/rmt-language/vnext-degradation.d.ts +23 -0
- package/tools/rmt-language/vnext-degradation.js +428 -0
- package/tools/rmt-language/vnext-enterprise-fixtures.d.ts +28 -0
- package/tools/rmt-language/vnext-enterprise-fixtures.js +487 -0
- package/tools/rmt-language/vnext-enterprise-registry.d.ts +21 -0
- package/tools/rmt-language/vnext-enterprise-registry.js +495 -0
- package/tools/rmt-language/vnext-enterprise-release.d.ts +44 -0
- package/tools/rmt-language/vnext-enterprise-release.js +472 -0
- package/tools/rmt-language/vnext-event-governance.d.ts +29 -0
- package/tools/rmt-language/vnext-event-governance.js +488 -0
- package/tools/rmt-language/vnext-events.d.ts +44 -0
- package/tools/rmt-language/vnext-events.js +680 -0
- package/tools/rmt-language/vnext-import-resolver.d.ts +28 -0
- package/tools/rmt-language/vnext-import-resolver.js +642 -0
- package/tools/rmt-language/vnext-lifecycle.d.ts +22 -0
- package/tools/rmt-language/vnext-lifecycle.js +404 -0
- package/tools/rmt-language/vnext-parser.d.ts +21 -0
- package/tools/rmt-language/vnext-parser.js +1391 -0
- package/tools/rmt-language/vnext-regression.d.ts +25 -0
- package/tools/rmt-language/vnext-regression.js +394 -0
- package/tools/rmt-language/vnext-release.d.ts +29 -0
- package/tools/rmt-language/vnext-release.js +293 -0
- package/tools/rmt-language/vnext-remote-compatibility.d.ts +33 -0
- package/tools/rmt-language/vnext-remote-compatibility.js +892 -0
- package/tools/rmt-language/vnext-remote-compiler.d.ts +14 -0
- package/tools/rmt-language/vnext-remote-compiler.js +520 -0
- package/tools/rmt-language/vnext-remote-manifest.d.ts +33 -0
- package/tools/rmt-language/vnext-remote-manifest.js +538 -0
- package/tools/rmt-language/vnext-remote-security.d.ts +27 -0
- package/tools/rmt-language/vnext-remote-security.js +380 -0
- package/tools/rmt-language/vnext-remote-tooling.d.ts +25 -0
- package/tools/rmt-language/vnext-remote-tooling.js +805 -0
- package/tools/rmt-language/vnext-scheduler.d.ts +24 -0
- package/tools/rmt-language/vnext-scheduler.js +469 -0
- package/tools/rmt-language/vnext-security.d.ts +28 -0
- package/tools/rmt-language/vnext-security.js +597 -0
- package/tools/rmt-language/vnext-streaming.d.ts +28 -0
- package/tools/rmt-language/vnext-streaming.js +593 -0
- package/tools/rmt-language/vnext-surfaces.d.ts +24 -0
- package/tools/rmt-language/vnext-surfaces.js +406 -0
- package/tools/rmt-language/vnext-tooling.d.ts +25 -0
- package/tools/rmt-language/vnext-tooling.js +728 -0
- package/tools/rmt-language-server/protocol.d.ts +22 -0
- package/tools/rmt-language-server/protocol.js +352 -0
- package/tools/rmt-language-server/server.d.ts +15 -0
- package/tools/rmt-language-server/server.js +622 -0
- package/tools/rmt-linter/cli.d.ts +14 -0
- package/tools/rmt-linter/cli.js +450 -0
- package/tools/rmt-linter/reporter.d.ts +16 -0
- package/tools/rmt-linter/reporter.js +472 -0
- package/xtend-builder/README.md +83 -0
- package/xtend-builder/a11y/README.md +42 -0
- package/xtend-builder/a11y/component-a11y-profile.d.ts +14 -0
- package/xtend-builder/a11y/component-a11y-profile.js +314 -0
- package/xtend-builder/blueprints/README.md +105 -0
- package/xtend-builder/blueprints/component-blueprint.contract.d.ts +16 -0
- package/xtend-builder/blueprints/component-blueprint.contract.js +343 -0
- package/xtend-builder/builder-public-types.d.ts +234 -0
- package/xtend-builder/extensions/README.md +26 -0
- package/xtend-builder/extensions/component-extension-points.d.ts +11 -0
- package/xtend-builder/extensions/component-extension-points.js +277 -0
- package/xtend-builder/generators/README.md +149 -0
- package/xtend-builder/generators/component-files.d.ts +5 -0
- package/xtend-builder/generators/component-files.js +769 -0
- package/xtend-builder/generators/component-plan.d.ts +4 -0
- package/xtend-builder/generators/component-plan.js +104 -0
- package/xtend-builder/generators/registry.d.ts +6 -0
- package/xtend-builder/generators/registry.js +118 -0
- package/xtend-builder/generators/rmt-build.js +738 -0
- package/xtend-builder/generators/rmt-lifecycle-demo.js +922 -0
- package/xtend-builder/lib/cli.d.ts +9 -0
- package/xtend-builder/lib/cli.js +543 -0
- package/xtend-builder/lib/layout.d.ts +6 -0
- package/xtend-builder/lib/layout.js +153 -0
- package/xtend-builder/lib/package-resolver.js +25 -0
- package/xtend-builder/package.json +90 -0
- package/xtend-builder/performance/README.md +31 -0
- package/xtend-builder/performance/component-performance-profile.d.ts +11 -0
- package/xtend-builder/performance/component-performance-profile.js +347 -0
- package/xtend-builder/performance/component-ux-performance-contract.d.ts +27 -0
- package/xtend-builder/performance/component-ux-performance-contract.js +424 -0
- package/xtend-builder/preview/README.md +61 -0
- package/xtend-builder/preview/component-lab-ux-inspector.d.ts +20 -0
- package/xtend-builder/preview/component-lab-ux-inspector.js +448 -0
- package/xtend-builder/preview/component-lab.d.ts +14 -0
- package/xtend-builder/preview/component-lab.js +278 -0
- package/xtend-builder/preview/component-preview.d.ts +5 -0
- package/xtend-builder/preview/component-preview.js +160 -0
- package/xtend-builder/scaffold.config.d.ts +4 -0
- package/xtend-builder/scaffold.config.js +2056 -0
- package/xtend-builder/scaffold.d.ts +3 -0
- package/xtend-builder/scaffold.js +11 -0
- package/xtend-builder/templates/README.md +33 -0
- package/xtend-builder/templates/component/a11y.template.ts +11 -0
- package/xtend-builder/templates/component/component-suite.template.d.ts +2 -0
- package/xtend-builder/templates/component/component-suite.template.js +108 -0
- package/xtend-builder/templates/component/contract.template.ts +10 -0
- package/xtend-builder/templates/component/demo-plan.template.md +73 -0
- package/xtend-builder/templates/component/docs.template.md +301 -0
- package/xtend-builder/templates/component/fixture-data.template.ts +28 -0
- package/xtend-builder/templates/component/fixture.template.html +37 -0
- package/xtend-builder/templates/component/manifest-plan.template.json +22 -0
- package/xtend-builder/templates/component/performance.template.ts +13 -0
- package/xtend-builder/templates/component/rmt.template.ts +12 -0
- package/xtend-builder/templates/component/source.template.d.ts +2 -0
- package/xtend-builder/templates/component/source.template.js +137 -0
- package/xtend-builder/templates/component/source.template.ts +110 -0
- package/xtend-builder/templates/component/types.template.d.ts +423 -0
- package/xtend-builder/templates/loader.d.ts +4 -0
- package/xtend-builder/templates/loader.js +51 -0
- package/xtend-builder/templates/registry.d.ts +6 -0
- package/xtend-builder/templates/registry.js +119 -0
- package/xtend-builder/typing/README.md +130 -0
- package/xtend-builder/typing/component-contract-v2.d.ts +15 -0
- package/xtend-builder/typing/component-contract-v2.js +248 -0
- package/xtend-builder/typing/component-network-contract.d.ts +22 -0
- package/xtend-builder/typing/component-network-contract.js +478 -0
- package/xtend-builder/typing/component-shell-contract.d.ts +21 -0
- package/xtend-builder/typing/component-shell-contract.js +312 -0
- package/xtend-builder/typing/component-styling-contract.d.ts +22 -0
- package/xtend-builder/typing/component-styling-contract.js +301 -0
- package/xtend-builder/typing/component-types.d.ts +10 -0
- package/xtend-builder/typing/component-types.js +551 -0
- package/xtend-builder/typing/enterprise-component-flex-hardening-contract.d.ts +20 -0
- package/xtend-builder/typing/enterprise-component-flex-hardening-contract.js +332 -0
- package/xtend-builder/typing/feedback-status-ux-contract.d.ts +25 -0
- package/xtend-builder/typing/feedback-status-ux-contract.js +347 -0
- package/xtend-builder/typing/form-controls-ux-contract.d.ts +25 -0
- package/xtend-builder/typing/form-controls-ux-contract.js +357 -0
- package/xtend-builder/typing/layout-display-media-ux-contract.d.ts +25 -0
- package/xtend-builder/typing/layout-display-media-ux-contract.js +420 -0
- package/xtend-builder/typing/navigation-routing-ux-contract.d.ts +17 -0
- package/xtend-builder/typing/navigation-routing-ux-contract.js +297 -0
- package/xtend-builder/typing/overlay-interaction-ux-contract.d.ts +25 -0
- package/xtend-builder/typing/overlay-interaction-ux-contract.js +383 -0
- package/xtend-builder/typing/rmt-dsl-authoring-polish.d.ts +27 -0
- package/xtend-builder/typing/rmt-dsl-authoring-polish.js +419 -0
- package/xtend-builder/typing/rmt-shell-authoring-contract.d.ts +26 -0
- package/xtend-builder/typing/rmt-shell-authoring-contract.js +315 -0
- package/xtend-builder/utils/README.md +8 -0
- package/xtend-builder/utils/naming.d.ts +7 -0
- package/xtend-builder/utils/naming.js +36 -0
- package/xtend-builder/utils/validation.d.ts +5 -0
- package/xtend-builder/utils/validation.js +95 -0
- package/xtend-builder/wiring/README.md +46 -0
- package/xtend-builder/wiring/features.d.ts +5 -0
- package/xtend-builder/wiring/features.js +165 -0
- package/xtend-builder/wiring/hydration.d.ts +4 -0
- package/xtend-builder/wiring/hydration.js +44 -0
- package/xtend-builder/wiring/manifest.d.ts +5 -0
- package/xtend-builder/wiring/manifest.js +48 -0
- package/xtend-builder/workflows/README.md +47 -0
- package/xtend-builder/workflows/developer-workflow.d.ts +6 -0
- package/xtend-builder/workflows/developer-workflow.js +125 -0
- package/xtend-builder/writing/manifest-patcher.d.ts +49 -0
- package/xtend-builder/writing/manifest-patcher.js +391 -0
- package/xtend-builder/writing/write-plan.d.ts +148 -0
- package/xtend-builder/writing/write-plan.js +646 -0
- package/xtend-dev.d.ts +23 -0
- package/xtend-dev.js +4 -0
- package/xtend-loader.d.ts +201 -0
- package/xtend-loader.js +1704 -0
- package/xtend.css +402 -0
- package/xtendrmt/package.json +64 -0
- package/xtendrmt/rmt-core.d.ts +4452 -0
- package/xtendrmt/rmt-core.esm.js +25793 -0
- package/xtendrmt/rmt-first-demo-app.js +265 -0
- package/xtendrmt/rmt-first-demo-app.rmt +737 -0
- package/xtendrmt/rmt-lifecycle-demo.app.js +493 -0
- package/xtendrmt/rmt-lifecycle-demo.core.json +810 -0
- package/xtendrmt/rmt-lifecycle-demo.rmt +35 -0
- package/xtendrmt/rmt-lifecycle-demo.rmt-build.app.js +153 -0
- package/xtendrmt/rmt-lifecycle-demo.rmt-build.core.json +810 -0
- package/xtendrmt/rmt-lifecycle-demo.rmt-build.scaffold.json +202 -0
- package/xtendrmt/rmt-lifecycle-demo.scaffold.json +187 -0
- package/xtendrmt/rmt-manifest.json +548 -0
- package/xtendrmt/rmt-runtime.browser.js +26183 -0
- package/xtendrmt/rmt-runtime.esm.js +26214 -0
- package/xtendrmt/rmt-vnext-enterprise-mfe-demo.core.json +849 -0
- package/xtendrmt/rmt-vnext-enterprise-mfe-demo.rmt +50 -0
- package/xtendrmt/rmt-vnext-reference-demo.core.json +1069 -0
- package/xtendrmt/rmt-vnext-reference-demo.rmt +50 -0
- package/xtendrmt/rmt.schema.json +3145 -0
- package/xtendrmt/surface-workbench.js +316 -0
- package/xtendrmt/surface-workbench.rmt +762 -0
- package/xtendrmt/xtendrmt-bestcase-demo.core.json +1187 -0
- package/xtendrmt/xtendrmt-bestcase-demo.js +1728 -0
- package/xtendrmt/xtendrmt-bestcase-demo.rmt +57 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
const ENTERPRISE_ICON_CONTROL_AUDIT_SCHEMA = 'xtend.enterprise.icon-control-audit.v1';
|
|
5
|
+
const ENTERPRISE_ICON_CONTROL_AUDIT_FINDING_SCHEMA = 'xtend.enterprise.icon-control-audit-finding.v1';
|
|
6
|
+
const ENTERPRISE_ICON_CONTROL_AUDIT_REPORT_SCHEMA = 'xtend.enterprise.icon-control-audit-report.v1';
|
|
7
|
+
const ENTERPRISE_ICON_CONTROL_AUDIT_WORKPACKAGE = 'ECH-WP-04';
|
|
8
|
+
const ENTERPRISE_ICON_CONTROL_AUDIT_LOCAL_GATE = 'node scripts/run_xtend_tests.js enterprise-icon-control-audit --json';
|
|
9
|
+
|
|
10
|
+
const PRODUCTION_SCAN_PATHS = Object.freeze([
|
|
11
|
+
'components',
|
|
12
|
+
'src/components',
|
|
13
|
+
'xtend.js',
|
|
14
|
+
'xtend-dev.js',
|
|
15
|
+
'xtend-loader.js'
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
const IGNORED_FILES = Object.freeze([
|
|
19
|
+
'components/prism.js'
|
|
20
|
+
]);
|
|
21
|
+
|
|
22
|
+
const SCAN_EXTENSIONS = Object.freeze(['.js', '.ts']);
|
|
23
|
+
|
|
24
|
+
const REQUIRED_CORE_ICONS = Object.freeze([
|
|
25
|
+
'close',
|
|
26
|
+
'menu',
|
|
27
|
+
'chevron-left',
|
|
28
|
+
'chevron-right',
|
|
29
|
+
'chevron-up',
|
|
30
|
+
'chevron-down',
|
|
31
|
+
'success',
|
|
32
|
+
'warning',
|
|
33
|
+
'error',
|
|
34
|
+
'info',
|
|
35
|
+
'pin',
|
|
36
|
+
'minus',
|
|
37
|
+
'maximize'
|
|
38
|
+
]);
|
|
39
|
+
|
|
40
|
+
const CONTROL_KEYWORDS = Object.freeze([
|
|
41
|
+
'close',
|
|
42
|
+
'dismiss',
|
|
43
|
+
'menu',
|
|
44
|
+
'collapse',
|
|
45
|
+
'expand',
|
|
46
|
+
'minimize',
|
|
47
|
+
'maximize',
|
|
48
|
+
'pin',
|
|
49
|
+
'previous',
|
|
50
|
+
'next',
|
|
51
|
+
'scroll',
|
|
52
|
+
'copy'
|
|
53
|
+
]);
|
|
54
|
+
|
|
55
|
+
const TEXT_GLYPH_ENTITIES = Object.freeze([
|
|
56
|
+
'×',
|
|
57
|
+
'×',
|
|
58
|
+
'×',
|
|
59
|
+
'×',
|
|
60
|
+
'<',
|
|
61
|
+
'>',
|
|
62
|
+
'☰',
|
|
63
|
+
'✓',
|
|
64
|
+
'⚠'
|
|
65
|
+
]);
|
|
66
|
+
|
|
67
|
+
const TEXT_GLYPH_LITERALS = Object.freeze([
|
|
68
|
+
'x',
|
|
69
|
+
'X',
|
|
70
|
+
'_',
|
|
71
|
+
'[]',
|
|
72
|
+
'-',
|
|
73
|
+
'+',
|
|
74
|
+
'P',
|
|
75
|
+
'\\u00d7',
|
|
76
|
+
'\\u2630',
|
|
77
|
+
'\\u2713',
|
|
78
|
+
'\\u26a0',
|
|
79
|
+
'\\u2191',
|
|
80
|
+
'\\u2192',
|
|
81
|
+
'\\u2193',
|
|
82
|
+
'\\u2190'
|
|
83
|
+
]);
|
|
84
|
+
|
|
85
|
+
function normalizePath(value) {
|
|
86
|
+
return String(value || '').replace(/\\/g, '/');
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function resolveRootDir(rootDir) {
|
|
90
|
+
return rootDir || path.resolve(__dirname, '..');
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function walkFiles(rootDir, relativePath, output = []) {
|
|
94
|
+
const normalized = normalizePath(relativePath);
|
|
95
|
+
if (IGNORED_FILES.includes(normalized)) return output;
|
|
96
|
+
const absolutePath = path.join(rootDir, relativePath);
|
|
97
|
+
if (!fs.existsSync(absolutePath)) return output;
|
|
98
|
+
const stat = fs.statSync(absolutePath);
|
|
99
|
+
if (stat.isFile()) {
|
|
100
|
+
if (SCAN_EXTENSIONS.includes(path.extname(absolutePath))) output.push(normalized);
|
|
101
|
+
return output;
|
|
102
|
+
}
|
|
103
|
+
fs.readdirSync(absolutePath).forEach((entry) => {
|
|
104
|
+
walkFiles(rootDir, path.join(relativePath, entry), output);
|
|
105
|
+
});
|
|
106
|
+
return output;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function lineNumberAt(text, index) {
|
|
110
|
+
return text.slice(0, index).split(/\r?\n/u).length;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function stripTags(value) {
|
|
114
|
+
return String(value || '')
|
|
115
|
+
.replace(/<[^>]+>/gu, '')
|
|
116
|
+
.replace(/\$\{[^}]+\}/gu, '')
|
|
117
|
+
.trim();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function isTextGlyphControlContent(value) {
|
|
121
|
+
const text = stripTags(value);
|
|
122
|
+
const lowered = text.toLowerCase();
|
|
123
|
+
if (!text) return false;
|
|
124
|
+
if (TEXT_GLYPH_ENTITIES.includes(lowered)) return true;
|
|
125
|
+
return TEXT_GLYPH_LITERALS.some((glyph) => text === glyph || text === JSON.parse(`"${glyph}"`));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function isControlButton(attrs, body) {
|
|
129
|
+
const haystack = `${attrs || ''} ${body || ''}`.toLowerCase();
|
|
130
|
+
return CONTROL_KEYWORDS.some((keyword) => new RegExp(`(?:^|[^a-z0-9-])${keyword}(?:$|[^a-z0-9-])`, 'u').test(haystack)) ||
|
|
131
|
+
/class=["'][^"']*(close|copy|burger|trigger)[^"']*["']/u.test(haystack) ||
|
|
132
|
+
/data-action=["'][^"']*(close|pin|collapse|minimize|maximize)[^"']*["']/u.test(haystack);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function hasAccessibleName(attrs) {
|
|
136
|
+
return /\s(aria-label|aria-labelledby|title)=["'][^"']+["']/u.test(attrs || '');
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function hasControlPart(attrs) {
|
|
140
|
+
return /part=["'][^"']*\bcontrol\b[^"']*["']/u.test(attrs || '');
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function hasIconGraphic(body) {
|
|
144
|
+
return /<\s*(svg|x-icon)\b/iu.test(body || '') ||
|
|
145
|
+
/part=["'][^"']*\bicon\b[^"']*["']/iu.test(body || '') ||
|
|
146
|
+
/xtendLegacyControlIcon/u.test(body || '');
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function hasIconPart(body) {
|
|
150
|
+
return /part=["'][^"']*\bicon\b[^"']*["']/iu.test(body || '') ||
|
|
151
|
+
/xtendLegacyControlIcon/u.test(body || '');
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function addFinding(findings, category, file, line, message, excerpt) {
|
|
155
|
+
findings.push({
|
|
156
|
+
schema: ENTERPRISE_ICON_CONTROL_AUDIT_FINDING_SCHEMA,
|
|
157
|
+
category,
|
|
158
|
+
file,
|
|
159
|
+
line,
|
|
160
|
+
message,
|
|
161
|
+
excerpt: String(excerpt || '').trim().slice(0, 220),
|
|
162
|
+
blocking: true
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function scanFile(rootDir, relativePath) {
|
|
167
|
+
const file = normalizePath(relativePath);
|
|
168
|
+
const text = fs.readFileSync(path.join(rootDir, file), 'utf8');
|
|
169
|
+
const findings = [];
|
|
170
|
+
const buttonPattern = /<button\b([^>]*)>([\s\S]*?)<\/button>/giu;
|
|
171
|
+
let match;
|
|
172
|
+
|
|
173
|
+
while ((match = buttonPattern.exec(text))) {
|
|
174
|
+
const attrs = match[1] || '';
|
|
175
|
+
const body = match[2] || '';
|
|
176
|
+
const block = match[0];
|
|
177
|
+
const line = lineNumberAt(text, match.index);
|
|
178
|
+
const control = isControlButton(attrs, body);
|
|
179
|
+
|
|
180
|
+
if (isTextGlyphControlContent(body)) {
|
|
181
|
+
addFinding(findings, 'control.text-glyph', file, line, 'visible text glyph used as a control graphic', block);
|
|
182
|
+
}
|
|
183
|
+
if (control && hasIconGraphic(body) && !hasAccessibleName(attrs)) {
|
|
184
|
+
addFinding(findings, 'control.missing-accessible-name', file, line, 'icon control is missing an accessible name', block);
|
|
185
|
+
}
|
|
186
|
+
if (control && hasIconGraphic(body) && !hasControlPart(attrs)) {
|
|
187
|
+
addFinding(findings, 'control.missing-control-part', file, line, 'icon control button must expose a control CSS part', block);
|
|
188
|
+
}
|
|
189
|
+
if (control && hasIconGraphic(body) && !hasIconPart(body)) {
|
|
190
|
+
addFinding(findings, 'control.missing-icon-part', file, line, 'icon control graphic must expose an icon CSS part', block);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return findings;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function createEnterpriseIconControlAuditReport(options = {}) {
|
|
198
|
+
const rootDir = resolveRootDir(options.rootDir);
|
|
199
|
+
const files = (options.files && options.files.length ? options.files : PRODUCTION_SCAN_PATHS.flatMap((entry) => walkFiles(rootDir, entry)))
|
|
200
|
+
.map(normalizePath)
|
|
201
|
+
.filter((file) => !IGNORED_FILES.includes(file));
|
|
202
|
+
const findings = files.flatMap((file) => scanFile(rootDir, file));
|
|
203
|
+
const summary = findings.reduce((result, finding) => {
|
|
204
|
+
result.total += 1;
|
|
205
|
+
result.byCategory[finding.category] = (result.byCategory[finding.category] || 0) + 1;
|
|
206
|
+
return result;
|
|
207
|
+
}, { total: 0, byCategory: {} });
|
|
208
|
+
|
|
209
|
+
return {
|
|
210
|
+
schema: ENTERPRISE_ICON_CONTROL_AUDIT_SCHEMA,
|
|
211
|
+
reportSchema: ENTERPRISE_ICON_CONTROL_AUDIT_REPORT_SCHEMA,
|
|
212
|
+
findingSchema: ENTERPRISE_ICON_CONTROL_AUDIT_FINDING_SCHEMA,
|
|
213
|
+
workpackage: ENTERPRISE_ICON_CONTROL_AUDIT_WORKPACKAGE,
|
|
214
|
+
localGate: ENTERPRISE_ICON_CONTROL_AUDIT_LOCAL_GATE,
|
|
215
|
+
scanPaths: PRODUCTION_SCAN_PATHS.slice(),
|
|
216
|
+
ignoredFiles: IGNORED_FILES.slice(),
|
|
217
|
+
requiredCoreIcons: REQUIRED_CORE_ICONS.slice(),
|
|
218
|
+
files,
|
|
219
|
+
findings,
|
|
220
|
+
summary,
|
|
221
|
+
ok: findings.length === 0
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function validateEnterpriseIconControlAuditReport(report = {}) {
|
|
226
|
+
const errors = [];
|
|
227
|
+
if (report.schema !== ENTERPRISE_ICON_CONTROL_AUDIT_SCHEMA) errors.push(`schema must be ${ENTERPRISE_ICON_CONTROL_AUDIT_SCHEMA}`);
|
|
228
|
+
if (report.reportSchema !== ENTERPRISE_ICON_CONTROL_AUDIT_REPORT_SCHEMA) errors.push(`reportSchema must be ${ENTERPRISE_ICON_CONTROL_AUDIT_REPORT_SCHEMA}`);
|
|
229
|
+
if (report.findingSchema !== ENTERPRISE_ICON_CONTROL_AUDIT_FINDING_SCHEMA) errors.push(`findingSchema must be ${ENTERPRISE_ICON_CONTROL_AUDIT_FINDING_SCHEMA}`);
|
|
230
|
+
if (report.workpackage !== ENTERPRISE_ICON_CONTROL_AUDIT_WORKPACKAGE) errors.push(`workpackage must be ${ENTERPRISE_ICON_CONTROL_AUDIT_WORKPACKAGE}`);
|
|
231
|
+
if (!Array.isArray(report.requiredCoreIcons) || !REQUIRED_CORE_ICONS.every((name) => report.requiredCoreIcons.includes(name))) errors.push('requiredCoreIcons must include every ECH-WP-04 core icon');
|
|
232
|
+
if (!report.summary || typeof report.summary.total !== 'number') errors.push('summary.total must be numeric');
|
|
233
|
+
if (!Array.isArray(report.findings)) errors.push('findings must be an array');
|
|
234
|
+
if (report.ok !== (Array.isArray(report.findings) && report.findings.length === 0)) errors.push('ok must reflect finding count');
|
|
235
|
+
return {
|
|
236
|
+
schema: ENTERPRISE_ICON_CONTROL_AUDIT_REPORT_SCHEMA,
|
|
237
|
+
ok: errors.length === 0,
|
|
238
|
+
errors
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
module.exports = {
|
|
243
|
+
CONTROL_KEYWORDS,
|
|
244
|
+
ENTERPRISE_ICON_CONTROL_AUDIT_FINDING_SCHEMA,
|
|
245
|
+
ENTERPRISE_ICON_CONTROL_AUDIT_LOCAL_GATE,
|
|
246
|
+
ENTERPRISE_ICON_CONTROL_AUDIT_REPORT_SCHEMA,
|
|
247
|
+
ENTERPRISE_ICON_CONTROL_AUDIT_SCHEMA,
|
|
248
|
+
ENTERPRISE_ICON_CONTROL_AUDIT_WORKPACKAGE,
|
|
249
|
+
IGNORED_FILES,
|
|
250
|
+
PRODUCTION_SCAN_PATHS,
|
|
251
|
+
REQUIRED_CORE_ICONS,
|
|
252
|
+
SCAN_EXTENSIONS,
|
|
253
|
+
TEXT_GLYPH_ENTITIES,
|
|
254
|
+
TEXT_GLYPH_LITERALS,
|
|
255
|
+
createEnterpriseIconControlAuditReport,
|
|
256
|
+
isTextGlyphControlContent,
|
|
257
|
+
validateEnterpriseIconControlAuditReport
|
|
258
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
XtendCatalogConstant,
|
|
3
|
+
XtendCatalogOptions,
|
|
4
|
+
XtendCatalogRecord,
|
|
5
|
+
XtendCatalogReport
|
|
6
|
+
} from './catalog-public-types';
|
|
7
|
+
|
|
8
|
+
export declare const ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_FINDING_SCHEMA: string;
|
|
9
|
+
export declare const ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_LOCAL_GATE: string;
|
|
10
|
+
export declare const ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_REPORT_SCHEMA: string;
|
|
11
|
+
export declare const ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_SCHEMA: string;
|
|
12
|
+
export declare const ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_WORKPACKAGE: string;
|
|
13
|
+
export declare const LAYOUT_DISPLAY_MEDIA_TARGETS: readonly XtendCatalogRecord[];
|
|
14
|
+
export declare const REQUIRED_DOC_MARKERS: readonly XtendCatalogConstant[];
|
|
15
|
+
export declare const REQUIRED_FIXTURE_MARKERS: readonly XtendCatalogConstant[];
|
|
16
|
+
export declare const REQUIRED_LAYOUT_TOKENS: readonly XtendCatalogConstant[];
|
|
17
|
+
export declare const REQUIRED_SOURCE_MARKERS: readonly XtendCatalogConstant[];
|
|
18
|
+
export declare const TEXT_GLYPH_CONTROL_PATTERNS: readonly XtendCatalogConstant[];
|
|
19
|
+
export declare function createEnterpriseLayoutDisplayMediaTokenizationReport(options?: XtendCatalogOptions): XtendCatalogReport;
|
|
20
|
+
export declare function validateEnterpriseLayoutDisplayMediaTokenizationReport(report?: unknown): XtendCatalogReport;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
const ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_SCHEMA = 'xtend.enterprise.layout-display-media-tokenization.v1';
|
|
5
|
+
const ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_FINDING_SCHEMA = 'xtend.enterprise.layout-display-media-tokenization-finding.v1';
|
|
6
|
+
const ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_REPORT_SCHEMA = 'xtend.enterprise.layout-display-media-tokenization-report.v1';
|
|
7
|
+
const ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_WORKPACKAGE = 'ECH-WP-07';
|
|
8
|
+
const ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_LOCAL_GATE = 'node scripts/run_xtend_tests.js enterprise-layout-display-media-tokenization --json';
|
|
9
|
+
|
|
10
|
+
const REQUIRED_LAYOUT_TOKENS = Object.freeze([
|
|
11
|
+
'--xtend-layout-surface',
|
|
12
|
+
'--xtend-layout-text',
|
|
13
|
+
'--xtend-layout-border-color',
|
|
14
|
+
'--xtend-layout-radius',
|
|
15
|
+
'--xtend-layout-elevation',
|
|
16
|
+
'--xtend-layout-spacing',
|
|
17
|
+
'--xtend-layout-gap',
|
|
18
|
+
'--xtend-layout-font-family',
|
|
19
|
+
'--xtend-layout-font-size',
|
|
20
|
+
'--xtend-layout-media-radius',
|
|
21
|
+
'--xtend-layout-focus-ring',
|
|
22
|
+
'--xtend-layout-grid-min',
|
|
23
|
+
'--xtend-layout-content-max'
|
|
24
|
+
]);
|
|
25
|
+
|
|
26
|
+
const REQUIRED_DOC_MARKERS = Object.freeze([
|
|
27
|
+
'ECH-WP-07',
|
|
28
|
+
'Token-Tabelle',
|
|
29
|
+
'signatureDesign',
|
|
30
|
+
'Fremdtheme'
|
|
31
|
+
]);
|
|
32
|
+
|
|
33
|
+
const REQUIRED_SOURCE_MARKERS = Object.freeze([
|
|
34
|
+
'signatureDesign',
|
|
35
|
+
'overflow-wrap: anywhere',
|
|
36
|
+
'prefers-reduced-motion',
|
|
37
|
+
'forced-colors'
|
|
38
|
+
]);
|
|
39
|
+
|
|
40
|
+
const REQUIRED_FIXTURE_MARKERS = Object.freeze([
|
|
41
|
+
'data-xtend-layout-theme="enterprise-foreign"',
|
|
42
|
+
'--xtend-layout-surface',
|
|
43
|
+
'--xtend-layout-text',
|
|
44
|
+
'--xtend-layout-radius',
|
|
45
|
+
'--xtend-layout-font-family'
|
|
46
|
+
]);
|
|
47
|
+
|
|
48
|
+
const TEXT_GLYPH_CONTROL_PATTERNS = Object.freeze([
|
|
49
|
+
'textContent = "▼"',
|
|
50
|
+
'textContent = "▶"',
|
|
51
|
+
'×',
|
|
52
|
+
'>x</button>',
|
|
53
|
+
'>X</button>'
|
|
54
|
+
]);
|
|
55
|
+
|
|
56
|
+
const LAYOUT_DISPLAY_MEDIA_TARGETS = Object.freeze([
|
|
57
|
+
{
|
|
58
|
+
tag: 'x-header',
|
|
59
|
+
file: 'components/xheader.js',
|
|
60
|
+
docs: 'docs/components/xheader.md',
|
|
61
|
+
fixture: 'tests/components/fixtures/xheader.component.html',
|
|
62
|
+
signatureRole: 'enterprise-app-shell'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
tag: 'x-footer',
|
|
66
|
+
file: 'components/xfooter.js',
|
|
67
|
+
docs: 'docs/components/xfooter.md',
|
|
68
|
+
fixture: 'tests/components/fixtures/xfooter.component.html',
|
|
69
|
+
signatureRole: 'enterprise-footer'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
tag: 'x-hero',
|
|
73
|
+
file: 'components/xhero.js',
|
|
74
|
+
docs: 'docs/components/xhero.md',
|
|
75
|
+
fixture: 'tests/components/fixtures/xhero.component.html',
|
|
76
|
+
signatureRole: 'editorial-hero'
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
tag: 'x-section',
|
|
80
|
+
file: 'components/xsection.js',
|
|
81
|
+
docs: 'docs/components/xsection.md',
|
|
82
|
+
fixture: 'tests/components/fixtures/xsection.component.html',
|
|
83
|
+
signatureRole: 'content-section'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
tag: 'x-cards',
|
|
87
|
+
file: 'components/xcards.js',
|
|
88
|
+
docs: 'docs/components/xcards.md',
|
|
89
|
+
fixture: 'tests/components/fixtures/xcards.component.html',
|
|
90
|
+
signatureRole: 'card-grid'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
tag: 'x-masonry',
|
|
94
|
+
file: 'components/xmasonry.js',
|
|
95
|
+
docs: 'docs/components/xmasonry.md',
|
|
96
|
+
fixture: 'tests/components/fixtures/xmasonry.component.html',
|
|
97
|
+
signatureRole: 'masonry-grid'
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
tag: 'x-code',
|
|
101
|
+
file: 'components/xcode.js',
|
|
102
|
+
docs: 'docs/components/xcode.md',
|
|
103
|
+
fixture: 'tests/components/fixtures/xcode.component.html',
|
|
104
|
+
signatureRole: 'code-surface'
|
|
105
|
+
}
|
|
106
|
+
]);
|
|
107
|
+
|
|
108
|
+
function resolveRootDir(rootDir) {
|
|
109
|
+
return rootDir || path.resolve(__dirname, '..');
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function readFile(rootDir, relativePath) {
|
|
113
|
+
return fs.readFileSync(path.join(rootDir, relativePath), 'utf8');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function addFinding(findings, target, category, message, pattern, surface) {
|
|
117
|
+
findings.push({
|
|
118
|
+
schema: ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_FINDING_SCHEMA,
|
|
119
|
+
category,
|
|
120
|
+
tag: target.tag,
|
|
121
|
+
file: surface || target.file,
|
|
122
|
+
message,
|
|
123
|
+
pattern,
|
|
124
|
+
blocking: true
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function inspectTarget(rootDir, target) {
|
|
129
|
+
const source = readFile(rootDir, target.file);
|
|
130
|
+
const docs = readFile(rootDir, target.docs);
|
|
131
|
+
const fixture = readFile(rootDir, target.fixture);
|
|
132
|
+
const findings = [];
|
|
133
|
+
|
|
134
|
+
REQUIRED_LAYOUT_TOKENS.forEach((token) => {
|
|
135
|
+
if (!source.includes(token)) {
|
|
136
|
+
addFinding(findings, target, 'layout.token.source-missing', `${target.tag} source must consume ${token}`, token);
|
|
137
|
+
}
|
|
138
|
+
if (!docs.includes(token)) {
|
|
139
|
+
addFinding(findings, target, 'layout.token.docs-missing', `${target.tag} docs must document ${token}`, token, target.docs);
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
REQUIRED_SOURCE_MARKERS.forEach((marker) => {
|
|
144
|
+
if (!source.includes(marker)) {
|
|
145
|
+
addFinding(findings, target, 'layout.source-marker.missing', `${target.tag} source must include ${marker}`, marker);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
REQUIRED_DOC_MARKERS.forEach((marker) => {
|
|
150
|
+
if (!docs.includes(marker)) {
|
|
151
|
+
addFinding(findings, target, 'layout.docs-marker.missing', `${target.tag} docs must include ${marker}`, marker, target.docs);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
REQUIRED_FIXTURE_MARKERS.forEach((marker) => {
|
|
156
|
+
if (!fixture.includes(marker)) {
|
|
157
|
+
addFinding(findings, target, 'layout.fixture-theme.missing', `${target.tag} fixture must show a foreign enterprise theme marker ${marker}`, marker, target.fixture);
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
TEXT_GLYPH_CONTROL_PATTERNS.forEach((pattern) => {
|
|
162
|
+
if (source.includes(pattern)) {
|
|
163
|
+
addFinding(findings, target, 'layout.control.text-glyph', `${target.tag} must not use visible text glyphs as controls`, pattern);
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
return {
|
|
168
|
+
tag: target.tag,
|
|
169
|
+
file: target.file,
|
|
170
|
+
docs: target.docs,
|
|
171
|
+
fixture: target.fixture,
|
|
172
|
+
signatureRole: target.signatureRole,
|
|
173
|
+
tokenCount: REQUIRED_LAYOUT_TOKENS.length,
|
|
174
|
+
findings
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function createEnterpriseLayoutDisplayMediaTokenizationReport(options = {}) {
|
|
179
|
+
const rootDir = resolveRootDir(options.rootDir);
|
|
180
|
+
const targets = LAYOUT_DISPLAY_MEDIA_TARGETS.map((target) => inspectTarget(rootDir, target));
|
|
181
|
+
const findings = targets.flatMap((target) => target.findings);
|
|
182
|
+
const summary = findings.reduce((result, finding) => {
|
|
183
|
+
result.total += 1;
|
|
184
|
+
result.byCategory[finding.category] = (result.byCategory[finding.category] || 0) + 1;
|
|
185
|
+
return result;
|
|
186
|
+
}, { total: 0, byCategory: {} });
|
|
187
|
+
|
|
188
|
+
return {
|
|
189
|
+
schema: ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_SCHEMA,
|
|
190
|
+
reportSchema: ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_REPORT_SCHEMA,
|
|
191
|
+
findingSchema: ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_FINDING_SCHEMA,
|
|
192
|
+
workpackage: ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_WORKPACKAGE,
|
|
193
|
+
localGate: ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_LOCAL_GATE,
|
|
194
|
+
requiredTokens: REQUIRED_LAYOUT_TOKENS.slice(),
|
|
195
|
+
requiredDocMarkers: REQUIRED_DOC_MARKERS.slice(),
|
|
196
|
+
requiredFixtureMarkers: REQUIRED_FIXTURE_MARKERS.slice(),
|
|
197
|
+
targets,
|
|
198
|
+
findings,
|
|
199
|
+
summary,
|
|
200
|
+
ok: findings.length === 0
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
function validateEnterpriseLayoutDisplayMediaTokenizationReport(report = {}) {
|
|
205
|
+
const errors = [];
|
|
206
|
+
if (report.schema !== ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_SCHEMA) errors.push(`schema must be ${ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_SCHEMA}`);
|
|
207
|
+
if (report.reportSchema !== ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_REPORT_SCHEMA) errors.push(`reportSchema must be ${ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_REPORT_SCHEMA}`);
|
|
208
|
+
if (report.findingSchema !== ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_FINDING_SCHEMA) errors.push(`findingSchema must be ${ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_FINDING_SCHEMA}`);
|
|
209
|
+
if (report.workpackage !== ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_WORKPACKAGE) errors.push(`workpackage must be ${ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_WORKPACKAGE}`);
|
|
210
|
+
if (report.localGate !== ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_LOCAL_GATE) errors.push('invalid local gate');
|
|
211
|
+
if (!Array.isArray(report.requiredTokens) || !REQUIRED_LAYOUT_TOKENS.every((token) => report.requiredTokens.includes(token))) errors.push('requiredTokens must include every layout token');
|
|
212
|
+
if (!Array.isArray(report.targets) || report.targets.length !== LAYOUT_DISPLAY_MEDIA_TARGETS.length) errors.push('targets must cover every WP-07 target');
|
|
213
|
+
if (!Array.isArray(report.findings)) errors.push('findings must be an array');
|
|
214
|
+
if (!report.summary || typeof report.summary.total !== 'number') errors.push('summary.total must be numeric');
|
|
215
|
+
if (report.ok !== (Array.isArray(report.findings) && report.findings.length === 0)) errors.push('ok must reflect finding count');
|
|
216
|
+
return {
|
|
217
|
+
schema: ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_REPORT_SCHEMA,
|
|
218
|
+
ok: errors.length === 0,
|
|
219
|
+
errors
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
module.exports = {
|
|
224
|
+
ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_FINDING_SCHEMA,
|
|
225
|
+
ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_LOCAL_GATE,
|
|
226
|
+
ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_REPORT_SCHEMA,
|
|
227
|
+
ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_SCHEMA,
|
|
228
|
+
ENTERPRISE_LAYOUT_DISPLAY_MEDIA_TOKENIZATION_WORKPACKAGE,
|
|
229
|
+
LAYOUT_DISPLAY_MEDIA_TARGETS,
|
|
230
|
+
REQUIRED_DOC_MARKERS,
|
|
231
|
+
REQUIRED_FIXTURE_MARKERS,
|
|
232
|
+
REQUIRED_LAYOUT_TOKENS,
|
|
233
|
+
REQUIRED_SOURCE_MARKERS,
|
|
234
|
+
TEXT_GLYPH_CONTROL_PATTERNS,
|
|
235
|
+
createEnterpriseLayoutDisplayMediaTokenizationReport,
|
|
236
|
+
validateEnterpriseLayoutDisplayMediaTokenizationReport
|
|
237
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
XtendCatalogConstant,
|
|
3
|
+
XtendCatalogOptions,
|
|
4
|
+
XtendCatalogRecord,
|
|
5
|
+
XtendCatalogReport
|
|
6
|
+
} from './catalog-public-types';
|
|
7
|
+
|
|
8
|
+
export declare const ENTERPRISE_NAVIGATION_ROUTING_STATE_HARDENING_FINDING_SCHEMA: string;
|
|
9
|
+
export declare const ENTERPRISE_NAVIGATION_ROUTING_STATE_HARDENING_LOCAL_GATE: string;
|
|
10
|
+
export declare const ENTERPRISE_NAVIGATION_ROUTING_STATE_HARDENING_REPORT_SCHEMA: string;
|
|
11
|
+
export declare const ENTERPRISE_NAVIGATION_ROUTING_STATE_HARDENING_SCHEMA: string;
|
|
12
|
+
export declare const ENTERPRISE_NAVIGATION_ROUTING_STATE_HARDENING_WORKPACKAGE: string;
|
|
13
|
+
export declare const NAVIGATION_ROUTING_STATE_TARGETS: readonly XtendCatalogRecord[];
|
|
14
|
+
export declare const REQUIRED_DOC_MARKERS: readonly XtendCatalogConstant[];
|
|
15
|
+
export declare const REQUIRED_FIXTURE_MARKERS: readonly XtendCatalogConstant[];
|
|
16
|
+
export declare const REQUIRED_NAVIGATION_TOKENS: readonly XtendCatalogConstant[];
|
|
17
|
+
export declare const REQUIRED_SOURCE_MARKERS: readonly XtendCatalogConstant[];
|
|
18
|
+
export declare const TEXT_GLYPH_CONTROL_PATTERNS: readonly XtendCatalogConstant[];
|
|
19
|
+
export declare function createEnterpriseNavigationRoutingStateHardeningReport(options?: XtendCatalogOptions): XtendCatalogReport;
|
|
20
|
+
export declare function validateEnterpriseNavigationRoutingStateHardeningReport(report?: unknown): XtendCatalogReport;
|