@cyberskill/design 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +3 -3
- package/README.md +6 -5
- package/SECURITY.md +4 -4
- package/VERSION +1 -1
- package/_ds_bundle.js +2 -2
- package/_ds_bundle.js.map +1 -1
- package/_ds_manifest.json +0 -96
- package/_esm/cs.mjs +2 -2
- package/base/a11y.css +6 -11
- package/components/ai/ai-conversation.card.html +1 -1
- package/components/ai/ai-lumi.card.html +1 -1
- package/components/ai/ai.card.html +1 -1
- package/components/api-discovery.json +6 -6
- package/components/api-index.json +57 -16
- package/components/brand/brand.card.html +1 -1
- package/components/button/buttons.card.html +1 -1
- package/components/contracts.json +5 -5
- package/components/data/collections.card.html +1 -1
- package/components/data/data.card.html +1 -1
- package/components/datatable/datatable.card.html +1 -1
- package/components/dialog/dialog.card.html +1 -1
- package/components/feedback/feedback-2.card.html +1 -1
- package/components/feedback/feedback.card.html +2 -2
- package/components/forms/Cascader.jsx +1 -1
- package/components/forms/ColorPicker.jsx +1 -1
- package/components/forms/InlineEdit.jsx +12 -2
- package/components/forms/SearchField.jsx +1 -1
- package/components/forms/TreeSelect.jsx +1 -1
- package/components/forms/forms-2.card.html +1 -1
- package/components/forms/forms.card.html +1 -1
- package/components/i18n/i18n.card.html +1 -1
- package/components/icon/icon.card.html +1 -1
- package/components/lifecycle.json +51 -10
- package/components/logo/logo.card.html +2 -2
- package/components/navigation/navigation.card.html +1 -1
- package/components/navigation/shell.card.html +1 -1
- package/components/overlays/alertdialog.card.html +1 -1
- package/components/overlays/overlays.card.html +1 -1
- package/components/prompt-api.json +3 -3
- package/components/release-compatibility.json +1 -1
- package/components/scenarios.json +15 -15
- package/components/specifications.json +453 -453
- package/components/static-html-reference.json +25 -25
- package/components/textfield/textfield.card.html +1 -1
- package/dist/esm/_esm/react.mjs +5 -5
- package/dist/esm/build.json +52 -52
- package/dist/esm/chunks/{chunk-GLPQBE2J.mjs → chunk-4D7SFITE.mjs} +17 -3
- package/dist/esm/chunks/chunk-4D7SFITE.mjs.map +7 -0
- package/dist/esm/chunks/{chunk-MRXEJSQQ.mjs → chunk-B5V7HN5G.mjs} +5 -2
- package/dist/esm/chunks/{chunk-MRXEJSQQ.mjs.map → chunk-B5V7HN5G.mjs.map} +2 -2
- package/dist/esm/chunks/{chunk-5FQGNCKS.mjs → chunk-LU45KTWU.mjs} +2 -1
- package/dist/esm/chunks/{chunk-5FQGNCKS.mjs.map → chunk-LU45KTWU.mjs.map} +2 -2
- package/dist/esm/chunks/{chunk-D7A4ZCMJ.mjs → chunk-RUB6XN27.mjs} +5 -2
- package/dist/esm/chunks/{chunk-D7A4ZCMJ.mjs.map → chunk-RUB6XN27.mjs.map} +2 -2
- package/dist/esm/chunks/{chunk-FF5D53IP.mjs → chunk-SA7L22XE.mjs} +5 -2
- package/dist/esm/chunks/{chunk-FF5D53IP.mjs.map → chunk-SA7L22XE.mjs.map} +2 -2
- package/dist/esm/components/forms/Cascader.mjs +1 -1
- package/dist/esm/components/forms/ColorPicker.mjs +1 -1
- package/dist/esm/components/forms/InlineEdit.mjs +1 -1
- package/dist/esm/components/forms/SearchField.mjs +1 -1
- package/dist/esm/components/forms/TreeSelect.mjs +1 -1
- package/dist/styles.css +3177 -0
- package/dist/styles.min.css +1 -1
- package/docs/UPSTREAM.md +39 -0
- package/docs/consuming.md +1 -1
- package/docs/contrast-report.md +1 -1
- package/docs/conventions.md +1 -1
- package/docs/guideline-language.md +2 -2
- package/docs/reference-catalog.json +36 -24
- package/docs/release-notes.md +25 -1
- package/docs/static-html-reference.md +23 -23
- package/docs/template-inventory.json +125 -125
- package/docs/vi/UPSTREAM.md +39 -0
- package/docs/vi/consuming.md +1 -1
- package/docs/vi/contrast-report.md +1 -1
- package/docs/vi/conventions.md +1 -1
- package/docs/vi/entrypoints/DESIGN.md +3 -3
- package/docs/vi/entrypoints/README.md +6 -5
- package/docs/vi/guideline-language.md +2 -2
- package/docs/vi/release-notes.md +25 -1
- package/docs/vi/static-html-reference.md +23 -23
- package/docs/viewer.html +2 -2
- package/guidelines/atomic-view.html +5 -5
- package/guidelines/brand-iconography.html +1 -1
- package/guidelines/brand-imagery.html +1 -1
- package/guidelines/brand-interaction.html +1 -1
- package/guidelines/brand-voice.html +1 -1
- package/guidelines/colors-anchors.html +1 -1
- package/guidelines/colors-semantic.html +1 -1
- package/guidelines/colors-surfaces.html +1 -1
- package/guidelines/colors-text.html +1 -1
- package/guidelines/documents.html +1 -1
- package/guidelines/elements-components.html +1 -1
- package/guidelines/elements-concept.html +1 -1
- package/guidelines/elements-geometry.html +1 -1
- package/guidelines/elements-variants.html +1 -1
- package/guidelines/guideline-language.js +6 -5
- package/guidelines/motion-interaction.html +1 -1
- package/guidelines/motion.html +1 -1
- package/guidelines/responsive-bilingual.html +1 -1
- package/guidelines/rtl-preview.html +1 -1
- package/guidelines/spacing-breakpoints.html +1 -1
- package/guidelines/spacing-radius.html +1 -1
- package/guidelines/spacing-scale.html +1 -1
- package/guidelines/surfaces-aurora.html +1 -1
- package/guidelines/surfaces-depth.html +1 -1
- package/guidelines/surfaces-glass.html +1 -1
- package/guidelines/surfaces-shadow.html +1 -1
- package/guidelines/type-families.html +1 -1
- package/guidelines/type-lineheight.html +1 -1
- package/guidelines/type-scale.html +1 -1
- package/guidelines/type-weights.html +1 -1
- package/package.json +12 -4
- package/styles/components/manifest.json +130 -130
- package/styles.layered.css +8 -10
- package/styles.layered.provenance.json +3 -3
- package/templates/_ds-base.canonical.js +6 -4
- package/templates/app-shell/ds-base.js +6 -4
- package/templates/article/ds-base.js +6 -4
- package/templates/auth/ds-base.js +6 -4
- package/templates/bod-deck/ds-base.js +6 -4
- package/templates/bod-investor-update/ds-base.js +6 -4
- package/templates/bod-memo/ds-base.js +6 -4
- package/templates/bod-minutes/ds-base.js +6 -4
- package/templates/bod-report/ds-base.js +6 -4
- package/templates/bod-resolution/ds-base.js +6 -4
- package/templates/culture-event-invite/ds-base.js +6 -4
- package/templates/dashboard/ds-base.js +6 -4
- package/templates/delivery-change-note/ds-base.js +6 -4
- package/templates/delivery-kickoff/ds-base.js +6 -4
- package/templates/delivery-qbr-deck/ds-base.js +6 -4
- package/templates/delivery-runbook/ds-base.js +6 -4
- package/templates/delivery-status-email/ds-base.js +6 -4
- package/templates/doc-style-guide/ds-base.js +6 -4
- package/templates/doc-suite-index/ds-base.js +6 -4
- package/templates/doc-templates/ds-base.js +6 -4
- package/templates/email/ds-base.js +6 -4
- package/templates/finance-dunning-email/ds-base.js +6 -4
- package/templates/finance-expense-report/ds-base.js +6 -4
- package/templates/finance-invoice/ds-base.js +6 -4
- package/templates/finance-quote/ds-base.js +6 -4
- package/templates/hr-announcement/ds-base.js +6 -4
- package/templates/hr-interview-kit/ds-base.js +6 -4
- package/templates/hr-offboarding/ds-base.js +6 -4
- package/templates/hr-performance-review/ds-base.js +6 -4
- package/templates/hr-pip/ds-base.js +6 -4
- package/templates/kitchen-sink.html +1 -1
- package/templates/legal-msa/ds-base.js +6 -4
- package/templates/legal-sow/ds-base.js +6 -4
- package/templates/marketing-campaign-brief/ds-base.js +6 -4
- package/templates/marketing-case-study/ds-base.js +6 -4
- package/templates/marketing-launch/ds-base.js +6 -4
- package/templates/marketing-newsletter/ds-base.js +6 -4
- package/templates/marketing-page/ds-base.js +6 -4
- package/templates/marketing-press-release/ds-base.js +6 -4
- package/templates/marketing-social-kit/ds-base.js +6 -4
- package/templates/sales-one-pager/ds-base.js +6 -4
- package/templates/sales-proposal-deck/ds-base.js +6 -4
- package/templates/settings/ds-base.js +6 -4
- package/templates/slide-deck/ds-base.js +6 -4
- package/templates/team-meeting-agenda/ds-base.js +6 -4
- package/templates/tech-incident-report/ds-base.js +6 -4
- package/templates/tech-release-notes/ds-base.js +6 -4
- package/templates/tech-retro/ds-base.js +6 -4
- package/templates/tech-rfc/ds-base.js +6 -4
- package/templates/vn-appointment-transfer/ds-base.js +6 -4
- package/templates/vn-certificate-of-employment/ds-base.js +6 -4
- package/templates/vn-code-of-conduct/ds-base.js +6 -4
- package/templates/vn-compensation-regulation/ds-base.js +6 -4
- package/templates/vn-contract-amendment/ds-base.js +6 -4
- package/templates/vn-contractor-agreement/ds-base.js +6 -4
- package/templates/vn-data-protection-policy/ds-base.js +6 -4
- package/templates/vn-disciplinary-case-file/ds-base.js +6 -4
- package/templates/vn-disciplinary-schedule/ds-base.js +6 -4
- package/templates/vn-employee-request/ds-base.js +6 -4
- package/templates/vn-exit-handover/ds-base.js +6 -4
- package/templates/vn-foreign-employee-pack/ds-base.js +6 -4
- package/templates/vn-framework-agreement/ds-base.js +6 -4
- package/templates/vn-grassroots-democracy/ds-base.js +6 -4
- package/templates/vn-infosec-policy/ds-base.js +6 -4
- package/templates/vn-internal-labor-regulations/ds-base.js +6 -4
- package/templates/vn-internship-agreement/ds-base.js +6 -4
- package/templates/vn-job-description/ds-base.js +6 -4
- package/templates/vn-labor-contract/ds-base.js +6 -4
- package/templates/vn-labour-management-book/ds-base.js +6 -4
- package/templates/vn-mutual-nda/ds-base.js +6 -4
- package/templates/vn-ndnca-ip/ds-base.js +6 -4
- package/templates/vn-offer-letter/ds-base.js +6 -4
- package/templates/vn-onboarding-checklist/ds-base.js +6 -4
- package/templates/vn-pdpl-consent/ds-base.js +6 -4
- package/templates/vn-performance-evaluation-regulation/ds-base.js +6 -4
- package/templates/vn-performance-review-form/ds-base.js +6 -4
- package/templates/vn-phantom-stock/ds-base.js +6 -4
- package/templates/vn-probation-contract/ds-base.js +6 -4
- package/templates/vn-receipt-acknowledgement/ds-base.js +6 -4
- package/templates/vn-remote-work-policy/ds-base.js +6 -4
- package/templates/vn-resignation-letter/ds-base.js +6 -4
- package/templates/vn-salary-scale/ds-base.js +6 -4
- package/templates/vn-sow-appendix/ds-base.js +6 -4
- package/templates/vn-termination-decision/ds-base.js +6 -4
- package/templates/vn-total-rewards-appendix/ds-base.js +6 -4
- package/templates/vn-training-commitment/ds-base.js +6 -4
- package/templates/vn-travel-expense-policy/ds-base.js +6 -4
- package/tokens/declarations.json +2 -128
- package/tokens/element-seeds.json +1 -1
- package/tokens/modes/dark__default__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__default__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__default__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__default__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__hoa-lava__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__hoa-lava__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__hoa-lava__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__hoa-lava__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__hoa-plasma__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__hoa-plasma__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__hoa-plasma__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__hoa-plasma__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__hoa__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__hoa__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__hoa__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__hoa__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__kim-steel__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__kim-steel__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__kim-steel__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__kim-steel__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__kim-titanium__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__kim-titanium__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__kim-titanium__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__kim-titanium__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__kim__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__kim__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__kim__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__kim__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__moc-bamboo__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__moc-bamboo__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__moc-bamboo__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__moc-bamboo__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__moc-forest__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__moc-forest__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__moc-forest__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__moc-forest__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__moc__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__moc__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__moc__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__moc__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__tho-clay__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__tho-clay__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__tho-clay__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__tho-clay__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__tho-sand__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__tho-sand__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__tho-sand__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__tho-sand__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__tho__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__tho__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__tho__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__tho__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__thuy-mist__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__thuy-mist__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__thuy-mist__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__thuy-mist__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__thuy-ocean__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__thuy-ocean__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__thuy-ocean__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__thuy-ocean__compact__standard.dtcg.json +1 -1
- package/tokens/modes/dark__thuy__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/dark__thuy__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/dark__thuy__compact__high.dtcg.json +1 -1
- package/tokens/modes/dark__thuy__compact__standard.dtcg.json +1 -1
- package/tokens/modes/index.json +260 -260
- package/tokens/modes/light__default__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__default__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__default__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__default__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__hoa-lava__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__hoa-lava__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__hoa-lava__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__hoa-lava__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__hoa-plasma__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__hoa-plasma__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__hoa-plasma__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__hoa-plasma__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__hoa__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__hoa__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__hoa__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__hoa__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__kim-steel__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__kim-steel__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__kim-steel__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__kim-steel__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__kim-titanium__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__kim-titanium__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__kim-titanium__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__kim-titanium__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__kim__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__kim__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__kim__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__kim__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__moc-bamboo__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__moc-bamboo__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__moc-bamboo__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__moc-bamboo__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__moc-forest__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__moc-forest__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__moc-forest__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__moc-forest__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__moc__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__moc__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__moc__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__moc__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__tho-clay__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__tho-clay__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__tho-clay__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__tho-clay__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__tho-sand__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__tho-sand__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__tho-sand__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__tho-sand__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__tho__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__tho__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__tho__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__tho__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__thuy-mist__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__thuy-mist__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__thuy-mist__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__thuy-mist__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__thuy-ocean__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__thuy-ocean__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__thuy-ocean__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__thuy-ocean__compact__standard.dtcg.json +1 -1
- package/tokens/modes/light__thuy__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/light__thuy__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/light__thuy__compact__high.dtcg.json +1 -1
- package/tokens/modes/light__thuy__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__default__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__default__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__default__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__default__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa-lava__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa-lava__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa-lava__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa-lava__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa-plasma__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa-plasma__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa-plasma__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa-plasma__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__hoa__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim-steel__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim-steel__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim-steel__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim-steel__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim-titanium__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim-titanium__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim-titanium__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim-titanium__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__kim__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc-bamboo__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc-bamboo__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc-bamboo__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc-bamboo__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc-forest__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc-forest__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc-forest__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc-forest__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__moc__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho-clay__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho-clay__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho-clay__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho-clay__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho-sand__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho-sand__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho-sand__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho-sand__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__tho__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy-mist__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy-mist__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy-mist__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy-mist__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy-ocean__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy-ocean__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy-ocean__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy-ocean__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-dark__thuy__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__default__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__default__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__default__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__default__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa-lava__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa-lava__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa-lava__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa-lava__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa-plasma__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa-plasma__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa-plasma__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa-plasma__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__hoa__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__kim-steel__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__kim-steel__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__kim-steel__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__kim-steel__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__kim-titanium__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__kim-titanium__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__kim-titanium__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__kim-titanium__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__kim__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__kim__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__kim__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__kim__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__moc-bamboo__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__moc-bamboo__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__moc-bamboo__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__moc-bamboo__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__moc-forest__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__moc-forest__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__moc-forest__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__moc-forest__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__moc__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__moc__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__moc__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__moc__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__tho-clay__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__tho-clay__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__tho-clay__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__tho-clay__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__tho-sand__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__tho-sand__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__tho-sand__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__tho-sand__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__tho__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__tho__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__tho__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__tho__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy-mist__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy-mist__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy-mist__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy-mist__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy-ocean__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy-ocean__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy-ocean__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy-ocean__compact__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy__comfortable__high.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy__comfortable__standard.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy__compact__high.dtcg.json +1 -1
- package/tokens/modes/system-light__thuy__compact__standard.dtcg.json +1 -1
- package/tokens/native/CSModes.kt +3 -3
- package/tokens/native/CSModes.swift +3 -3
- package/tokens/native/CSTokens.kt +1 -1
- package/tokens/native/CSTokens.swift +1 -1
- package/tokens/native/cs_modes.dart +3 -3
- package/tokens/native/cs_tokens.dart +1 -1
- package/tokens/native/mode-provenance.json +6 -6
- package/tokens/provenance.json +6 -6
- package/tokens/styles.css +1 -1
- package/tokens/tokens.dtcg.json +4 -4
- package/tokens/tokens.js +5 -5
- package/tokens/tokens.json +4 -4
- package/tokens/variables.css +0 -9
- package/ui_kits/deck/index.html +1 -1
- package/ui_kits/status-hub/index.html +1 -1
- package/ui_kits/status-hub/login.html +1 -1
- package/ui_kits/status-hub/project.html +1 -1
- package/ui_kits/status-hub/settings.html +1 -1
- package/ui_kits/status-hub/static-locale.js +2 -0
- package/ui_kits/website/careers.html +1 -1
- package/ui_kits/website/chat.html +1 -1
- package/ui_kits/website/index.html +1 -1
- package/ui_kits/website/work.html +1 -1
- package/dist/esm/chunks/chunk-GLPQBE2J.mjs.map +0 -7
package/styles.layered.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by scripts/generate-layered-styles.mjs. Opt-in only; styles.css remains default. Input graph SHA-256
|
|
1
|
+
/* Generated by scripts/generate-layered-styles.mjs. Opt-in only; styles.css remains default. Input graph SHA-256 6fc8ba446924ee36ee25780faee54b58c315d393cddc34e270a901ec409ba32e */@layer cs-safety, cs-reset, cs-tokens, cs-components, cs-accessibility, cs-responsive, cs-overrides;@layer cs-safety {@media print {
|
|
2
2
|
[class*="cs-surface-"], .cs-glass-card, .cs-dialog, .cs-ai-disclosure__panel {
|
|
3
3
|
-webkit-backdrop-filter: none !important; backdrop-filter: none !important;
|
|
4
4
|
background: #fff !important; box-shadow: none !important; border: 1px solid #ccc !important;
|
|
@@ -1283,7 +1283,7 @@
|
|
|
1283
1283
|
*/:root {
|
|
1284
1284
|
--cs-style-pack: liquid-glass; /* @kind other */
|
|
1285
1285
|
}[data-cs-style="liquid-glass"] {
|
|
1286
|
-
--cs-style-pack: liquid-glass;
|
|
1286
|
+
--cs-style-pack: liquid-glass; /* @kind other */
|
|
1287
1287
|
}/* Source: tokens/theme-attributes.css *//* CyberSkill — Theme attributes: density + contrast (TASK-IMP-027 / CDS-THEME-002).
|
|
1288
1288
|
* NOT a fifth product identity axis. Compose with data-theme only.
|
|
1289
1289
|
* At the root, defaults are comfortable density and standard contrast.
|
|
@@ -1853,14 +1853,12 @@
|
|
|
1853
1853
|
}/* ---- 2. Reduced motion: honour the user's OS setting everywhere ---- *//* ---- 3. High contrast: honour prefers-contrast: more by strengthening the
|
|
1854
1854
|
* warm hairline border and muted text (both are intentionally soft by default).
|
|
1855
1855
|
* Only activates on user request; anchors (Umber/Ochre) and focus rings are
|
|
1856
|
-
* already high-contrast and untouched. ----
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
[data-theme="system"]:where(:not([data-cs-contrast="standard"], [data-cs-contrast="standard"] *)) { --cs-color-border-default: #7a6450; --cs-color-text-muted: #f5ead9; }
|
|
1863
|
-
}/* Forced colors removes authored backgrounds and shadows. State must survive
|
|
1856
|
+
* already high-contrast and untouched. ---- *//* The values live in tokens/elements.css: the scope resolver derives
|
|
1857
|
+
* --cs-color-border-default / --cs-color-text-muted from the --_cs-standard /
|
|
1858
|
+
* --_cs-high channel toggles, which flip to high under prefers-contrast: more
|
|
1859
|
+
* (light #9a8060 / #45210e · dark #7a6450 / #f5ead9) unless a scope sets
|
|
1860
|
+
* data-cs-contrast explicitly. The former contextual overrides here were
|
|
1861
|
+
* already superseded by that resolver's higher specificity. *//* Forced colors removes authored backgrounds and shadows. State must survive
|
|
1864
1862
|
* that substitution using real borders, system colors and knob position. */@media (forced-colors: active) {
|
|
1865
1863
|
.cs-switch__track {
|
|
1866
1864
|
box-sizing: border-box;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"path": "tokens/styles.css",
|
|
51
|
-
"sha256": "
|
|
51
|
+
"sha256": "4b677b90823a026f96e295ea5b6537a3c125b04bb93d3f67c09a7dcf341a6630"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"path": "tokens/theme-attributes.css",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"path": "base/a11y.css",
|
|
111
|
-
"sha256": "
|
|
111
|
+
"sha256": "07ea769359d4eefe6fc820b9fc13fef2790cc278c1289f0f1cc493ca5c288bd4"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"path": "base/responsive.css",
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
"fonts/spacegrotesk-var-vietnamese.woff2"
|
|
157
157
|
],
|
|
158
158
|
"importantCount": 46,
|
|
159
|
-
"sha256": "
|
|
159
|
+
"sha256": "fbf1fa3b1b2cd1b611c24e500852149d845467580b0b5bc6a96d7720225729bd"
|
|
160
160
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Artifact head standard (UX-002 / B1): ensure <html lang> + <title> from @template.
|
|
5
5
|
(() => {
|
|
6
6
|
const base = '../..';
|
|
7
|
-
for (const p of ['dist/styles.
|
|
7
|
+
for (const p of ['dist/styles.css']) {
|
|
8
8
|
const l = document.createElement('link');
|
|
9
9
|
l.rel = 'stylesheet'; l.href = base + '/' + p;
|
|
10
10
|
document.head.appendChild(l);
|
|
@@ -32,12 +32,14 @@
|
|
|
32
32
|
script.src = bundleUrl;
|
|
33
33
|
script.onload = () => {
|
|
34
34
|
// The compiler namespace varies by project; the public alias is stable.
|
|
35
|
-
const key = Object.keys(window).find(k => /^
|
|
35
|
+
const key = Object.keys(window).find(k => /^(CyberSkill)?DesignSystem_[0-9a-f]{6}$/.test(k));
|
|
36
36
|
const namespace = key && window[key];
|
|
37
|
-
if (!namespace
|
|
38
|
-
reject(new Error('Design-system bundle
|
|
37
|
+
if (!namespace) {
|
|
38
|
+
reject(new Error('Design-system bundle did not expose a namespace; check the base path in ds-base.js'));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
+
// Non-fatal: a helper file that failed to evaluate must not take every template down.
|
|
42
|
+
if (namespace.__errors?.length) console.warn('ds-base.js: bundle reported errors (continuing):', JSON.stringify(namespace.__errors));
|
|
41
43
|
resolve(namespace);
|
|
42
44
|
};
|
|
43
45
|
script.onerror = () => reject(new Error('Failed to load ' + bundleUrl + '; check the base path in ds-base.js'));
|