@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.
Files changed (486) hide show
  1. package/DESIGN.md +3 -3
  2. package/README.md +6 -5
  3. package/SECURITY.md +4 -4
  4. package/VERSION +1 -1
  5. package/_ds_bundle.js +2 -2
  6. package/_ds_bundle.js.map +1 -1
  7. package/_ds_manifest.json +0 -96
  8. package/_esm/cs.mjs +2 -2
  9. package/base/a11y.css +6 -11
  10. package/components/ai/ai-conversation.card.html +1 -1
  11. package/components/ai/ai-lumi.card.html +1 -1
  12. package/components/ai/ai.card.html +1 -1
  13. package/components/api-discovery.json +6 -6
  14. package/components/api-index.json +57 -16
  15. package/components/brand/brand.card.html +1 -1
  16. package/components/button/buttons.card.html +1 -1
  17. package/components/contracts.json +5 -5
  18. package/components/data/collections.card.html +1 -1
  19. package/components/data/data.card.html +1 -1
  20. package/components/datatable/datatable.card.html +1 -1
  21. package/components/dialog/dialog.card.html +1 -1
  22. package/components/feedback/feedback-2.card.html +1 -1
  23. package/components/feedback/feedback.card.html +2 -2
  24. package/components/forms/Cascader.jsx +1 -1
  25. package/components/forms/ColorPicker.jsx +1 -1
  26. package/components/forms/InlineEdit.jsx +12 -2
  27. package/components/forms/SearchField.jsx +1 -1
  28. package/components/forms/TreeSelect.jsx +1 -1
  29. package/components/forms/forms-2.card.html +1 -1
  30. package/components/forms/forms.card.html +1 -1
  31. package/components/i18n/i18n.card.html +1 -1
  32. package/components/icon/icon.card.html +1 -1
  33. package/components/lifecycle.json +51 -10
  34. package/components/logo/logo.card.html +2 -2
  35. package/components/navigation/navigation.card.html +1 -1
  36. package/components/navigation/shell.card.html +1 -1
  37. package/components/overlays/alertdialog.card.html +1 -1
  38. package/components/overlays/overlays.card.html +1 -1
  39. package/components/prompt-api.json +3 -3
  40. package/components/release-compatibility.json +1 -1
  41. package/components/scenarios.json +15 -15
  42. package/components/specifications.json +453 -453
  43. package/components/static-html-reference.json +25 -25
  44. package/components/textfield/textfield.card.html +1 -1
  45. package/dist/esm/_esm/react.mjs +5 -5
  46. package/dist/esm/build.json +52 -52
  47. package/dist/esm/chunks/{chunk-GLPQBE2J.mjs → chunk-4D7SFITE.mjs} +17 -3
  48. package/dist/esm/chunks/chunk-4D7SFITE.mjs.map +7 -0
  49. package/dist/esm/chunks/{chunk-MRXEJSQQ.mjs → chunk-B5V7HN5G.mjs} +5 -2
  50. package/dist/esm/chunks/{chunk-MRXEJSQQ.mjs.map → chunk-B5V7HN5G.mjs.map} +2 -2
  51. package/dist/esm/chunks/{chunk-5FQGNCKS.mjs → chunk-LU45KTWU.mjs} +2 -1
  52. package/dist/esm/chunks/{chunk-5FQGNCKS.mjs.map → chunk-LU45KTWU.mjs.map} +2 -2
  53. package/dist/esm/chunks/{chunk-D7A4ZCMJ.mjs → chunk-RUB6XN27.mjs} +5 -2
  54. package/dist/esm/chunks/{chunk-D7A4ZCMJ.mjs.map → chunk-RUB6XN27.mjs.map} +2 -2
  55. package/dist/esm/chunks/{chunk-FF5D53IP.mjs → chunk-SA7L22XE.mjs} +5 -2
  56. package/dist/esm/chunks/{chunk-FF5D53IP.mjs.map → chunk-SA7L22XE.mjs.map} +2 -2
  57. package/dist/esm/components/forms/Cascader.mjs +1 -1
  58. package/dist/esm/components/forms/ColorPicker.mjs +1 -1
  59. package/dist/esm/components/forms/InlineEdit.mjs +1 -1
  60. package/dist/esm/components/forms/SearchField.mjs +1 -1
  61. package/dist/esm/components/forms/TreeSelect.mjs +1 -1
  62. package/dist/styles.css +3177 -0
  63. package/dist/styles.min.css +1 -1
  64. package/docs/UPSTREAM.md +39 -0
  65. package/docs/consuming.md +1 -1
  66. package/docs/contrast-report.md +1 -1
  67. package/docs/conventions.md +1 -1
  68. package/docs/guideline-language.md +2 -2
  69. package/docs/reference-catalog.json +36 -24
  70. package/docs/release-notes.md +25 -1
  71. package/docs/static-html-reference.md +23 -23
  72. package/docs/template-inventory.json +125 -125
  73. package/docs/vi/UPSTREAM.md +39 -0
  74. package/docs/vi/consuming.md +1 -1
  75. package/docs/vi/contrast-report.md +1 -1
  76. package/docs/vi/conventions.md +1 -1
  77. package/docs/vi/entrypoints/DESIGN.md +3 -3
  78. package/docs/vi/entrypoints/README.md +6 -5
  79. package/docs/vi/guideline-language.md +2 -2
  80. package/docs/vi/release-notes.md +25 -1
  81. package/docs/vi/static-html-reference.md +23 -23
  82. package/docs/viewer.html +2 -2
  83. package/guidelines/atomic-view.html +5 -5
  84. package/guidelines/brand-iconography.html +1 -1
  85. package/guidelines/brand-imagery.html +1 -1
  86. package/guidelines/brand-interaction.html +1 -1
  87. package/guidelines/brand-voice.html +1 -1
  88. package/guidelines/colors-anchors.html +1 -1
  89. package/guidelines/colors-semantic.html +1 -1
  90. package/guidelines/colors-surfaces.html +1 -1
  91. package/guidelines/colors-text.html +1 -1
  92. package/guidelines/documents.html +1 -1
  93. package/guidelines/elements-components.html +1 -1
  94. package/guidelines/elements-concept.html +1 -1
  95. package/guidelines/elements-geometry.html +1 -1
  96. package/guidelines/elements-variants.html +1 -1
  97. package/guidelines/guideline-language.js +6 -5
  98. package/guidelines/motion-interaction.html +1 -1
  99. package/guidelines/motion.html +1 -1
  100. package/guidelines/responsive-bilingual.html +1 -1
  101. package/guidelines/rtl-preview.html +1 -1
  102. package/guidelines/spacing-breakpoints.html +1 -1
  103. package/guidelines/spacing-radius.html +1 -1
  104. package/guidelines/spacing-scale.html +1 -1
  105. package/guidelines/surfaces-aurora.html +1 -1
  106. package/guidelines/surfaces-depth.html +1 -1
  107. package/guidelines/surfaces-glass.html +1 -1
  108. package/guidelines/surfaces-shadow.html +1 -1
  109. package/guidelines/type-families.html +1 -1
  110. package/guidelines/type-lineheight.html +1 -1
  111. package/guidelines/type-scale.html +1 -1
  112. package/guidelines/type-weights.html +1 -1
  113. package/package.json +12 -4
  114. package/styles/components/manifest.json +130 -130
  115. package/styles.layered.css +8 -10
  116. package/styles.layered.provenance.json +3 -3
  117. package/templates/_ds-base.canonical.js +6 -4
  118. package/templates/app-shell/ds-base.js +6 -4
  119. package/templates/article/ds-base.js +6 -4
  120. package/templates/auth/ds-base.js +6 -4
  121. package/templates/bod-deck/ds-base.js +6 -4
  122. package/templates/bod-investor-update/ds-base.js +6 -4
  123. package/templates/bod-memo/ds-base.js +6 -4
  124. package/templates/bod-minutes/ds-base.js +6 -4
  125. package/templates/bod-report/ds-base.js +6 -4
  126. package/templates/bod-resolution/ds-base.js +6 -4
  127. package/templates/culture-event-invite/ds-base.js +6 -4
  128. package/templates/dashboard/ds-base.js +6 -4
  129. package/templates/delivery-change-note/ds-base.js +6 -4
  130. package/templates/delivery-kickoff/ds-base.js +6 -4
  131. package/templates/delivery-qbr-deck/ds-base.js +6 -4
  132. package/templates/delivery-runbook/ds-base.js +6 -4
  133. package/templates/delivery-status-email/ds-base.js +6 -4
  134. package/templates/doc-style-guide/ds-base.js +6 -4
  135. package/templates/doc-suite-index/ds-base.js +6 -4
  136. package/templates/doc-templates/ds-base.js +6 -4
  137. package/templates/email/ds-base.js +6 -4
  138. package/templates/finance-dunning-email/ds-base.js +6 -4
  139. package/templates/finance-expense-report/ds-base.js +6 -4
  140. package/templates/finance-invoice/ds-base.js +6 -4
  141. package/templates/finance-quote/ds-base.js +6 -4
  142. package/templates/hr-announcement/ds-base.js +6 -4
  143. package/templates/hr-interview-kit/ds-base.js +6 -4
  144. package/templates/hr-offboarding/ds-base.js +6 -4
  145. package/templates/hr-performance-review/ds-base.js +6 -4
  146. package/templates/hr-pip/ds-base.js +6 -4
  147. package/templates/kitchen-sink.html +1 -1
  148. package/templates/legal-msa/ds-base.js +6 -4
  149. package/templates/legal-sow/ds-base.js +6 -4
  150. package/templates/marketing-campaign-brief/ds-base.js +6 -4
  151. package/templates/marketing-case-study/ds-base.js +6 -4
  152. package/templates/marketing-launch/ds-base.js +6 -4
  153. package/templates/marketing-newsletter/ds-base.js +6 -4
  154. package/templates/marketing-page/ds-base.js +6 -4
  155. package/templates/marketing-press-release/ds-base.js +6 -4
  156. package/templates/marketing-social-kit/ds-base.js +6 -4
  157. package/templates/sales-one-pager/ds-base.js +6 -4
  158. package/templates/sales-proposal-deck/ds-base.js +6 -4
  159. package/templates/settings/ds-base.js +6 -4
  160. package/templates/slide-deck/ds-base.js +6 -4
  161. package/templates/team-meeting-agenda/ds-base.js +6 -4
  162. package/templates/tech-incident-report/ds-base.js +6 -4
  163. package/templates/tech-release-notes/ds-base.js +6 -4
  164. package/templates/tech-retro/ds-base.js +6 -4
  165. package/templates/tech-rfc/ds-base.js +6 -4
  166. package/templates/vn-appointment-transfer/ds-base.js +6 -4
  167. package/templates/vn-certificate-of-employment/ds-base.js +6 -4
  168. package/templates/vn-code-of-conduct/ds-base.js +6 -4
  169. package/templates/vn-compensation-regulation/ds-base.js +6 -4
  170. package/templates/vn-contract-amendment/ds-base.js +6 -4
  171. package/templates/vn-contractor-agreement/ds-base.js +6 -4
  172. package/templates/vn-data-protection-policy/ds-base.js +6 -4
  173. package/templates/vn-disciplinary-case-file/ds-base.js +6 -4
  174. package/templates/vn-disciplinary-schedule/ds-base.js +6 -4
  175. package/templates/vn-employee-request/ds-base.js +6 -4
  176. package/templates/vn-exit-handover/ds-base.js +6 -4
  177. package/templates/vn-foreign-employee-pack/ds-base.js +6 -4
  178. package/templates/vn-framework-agreement/ds-base.js +6 -4
  179. package/templates/vn-grassroots-democracy/ds-base.js +6 -4
  180. package/templates/vn-infosec-policy/ds-base.js +6 -4
  181. package/templates/vn-internal-labor-regulations/ds-base.js +6 -4
  182. package/templates/vn-internship-agreement/ds-base.js +6 -4
  183. package/templates/vn-job-description/ds-base.js +6 -4
  184. package/templates/vn-labor-contract/ds-base.js +6 -4
  185. package/templates/vn-labour-management-book/ds-base.js +6 -4
  186. package/templates/vn-mutual-nda/ds-base.js +6 -4
  187. package/templates/vn-ndnca-ip/ds-base.js +6 -4
  188. package/templates/vn-offer-letter/ds-base.js +6 -4
  189. package/templates/vn-onboarding-checklist/ds-base.js +6 -4
  190. package/templates/vn-pdpl-consent/ds-base.js +6 -4
  191. package/templates/vn-performance-evaluation-regulation/ds-base.js +6 -4
  192. package/templates/vn-performance-review-form/ds-base.js +6 -4
  193. package/templates/vn-phantom-stock/ds-base.js +6 -4
  194. package/templates/vn-probation-contract/ds-base.js +6 -4
  195. package/templates/vn-receipt-acknowledgement/ds-base.js +6 -4
  196. package/templates/vn-remote-work-policy/ds-base.js +6 -4
  197. package/templates/vn-resignation-letter/ds-base.js +6 -4
  198. package/templates/vn-salary-scale/ds-base.js +6 -4
  199. package/templates/vn-sow-appendix/ds-base.js +6 -4
  200. package/templates/vn-termination-decision/ds-base.js +6 -4
  201. package/templates/vn-total-rewards-appendix/ds-base.js +6 -4
  202. package/templates/vn-training-commitment/ds-base.js +6 -4
  203. package/templates/vn-travel-expense-policy/ds-base.js +6 -4
  204. package/tokens/declarations.json +2 -128
  205. package/tokens/element-seeds.json +1 -1
  206. package/tokens/modes/dark__default__comfortable__high.dtcg.json +1 -1
  207. package/tokens/modes/dark__default__comfortable__standard.dtcg.json +1 -1
  208. package/tokens/modes/dark__default__compact__high.dtcg.json +1 -1
  209. package/tokens/modes/dark__default__compact__standard.dtcg.json +1 -1
  210. package/tokens/modes/dark__hoa-lava__comfortable__high.dtcg.json +1 -1
  211. package/tokens/modes/dark__hoa-lava__comfortable__standard.dtcg.json +1 -1
  212. package/tokens/modes/dark__hoa-lava__compact__high.dtcg.json +1 -1
  213. package/tokens/modes/dark__hoa-lava__compact__standard.dtcg.json +1 -1
  214. package/tokens/modes/dark__hoa-plasma__comfortable__high.dtcg.json +1 -1
  215. package/tokens/modes/dark__hoa-plasma__comfortable__standard.dtcg.json +1 -1
  216. package/tokens/modes/dark__hoa-plasma__compact__high.dtcg.json +1 -1
  217. package/tokens/modes/dark__hoa-plasma__compact__standard.dtcg.json +1 -1
  218. package/tokens/modes/dark__hoa__comfortable__high.dtcg.json +1 -1
  219. package/tokens/modes/dark__hoa__comfortable__standard.dtcg.json +1 -1
  220. package/tokens/modes/dark__hoa__compact__high.dtcg.json +1 -1
  221. package/tokens/modes/dark__hoa__compact__standard.dtcg.json +1 -1
  222. package/tokens/modes/dark__kim-steel__comfortable__high.dtcg.json +1 -1
  223. package/tokens/modes/dark__kim-steel__comfortable__standard.dtcg.json +1 -1
  224. package/tokens/modes/dark__kim-steel__compact__high.dtcg.json +1 -1
  225. package/tokens/modes/dark__kim-steel__compact__standard.dtcg.json +1 -1
  226. package/tokens/modes/dark__kim-titanium__comfortable__high.dtcg.json +1 -1
  227. package/tokens/modes/dark__kim-titanium__comfortable__standard.dtcg.json +1 -1
  228. package/tokens/modes/dark__kim-titanium__compact__high.dtcg.json +1 -1
  229. package/tokens/modes/dark__kim-titanium__compact__standard.dtcg.json +1 -1
  230. package/tokens/modes/dark__kim__comfortable__high.dtcg.json +1 -1
  231. package/tokens/modes/dark__kim__comfortable__standard.dtcg.json +1 -1
  232. package/tokens/modes/dark__kim__compact__high.dtcg.json +1 -1
  233. package/tokens/modes/dark__kim__compact__standard.dtcg.json +1 -1
  234. package/tokens/modes/dark__moc-bamboo__comfortable__high.dtcg.json +1 -1
  235. package/tokens/modes/dark__moc-bamboo__comfortable__standard.dtcg.json +1 -1
  236. package/tokens/modes/dark__moc-bamboo__compact__high.dtcg.json +1 -1
  237. package/tokens/modes/dark__moc-bamboo__compact__standard.dtcg.json +1 -1
  238. package/tokens/modes/dark__moc-forest__comfortable__high.dtcg.json +1 -1
  239. package/tokens/modes/dark__moc-forest__comfortable__standard.dtcg.json +1 -1
  240. package/tokens/modes/dark__moc-forest__compact__high.dtcg.json +1 -1
  241. package/tokens/modes/dark__moc-forest__compact__standard.dtcg.json +1 -1
  242. package/tokens/modes/dark__moc__comfortable__high.dtcg.json +1 -1
  243. package/tokens/modes/dark__moc__comfortable__standard.dtcg.json +1 -1
  244. package/tokens/modes/dark__moc__compact__high.dtcg.json +1 -1
  245. package/tokens/modes/dark__moc__compact__standard.dtcg.json +1 -1
  246. package/tokens/modes/dark__tho-clay__comfortable__high.dtcg.json +1 -1
  247. package/tokens/modes/dark__tho-clay__comfortable__standard.dtcg.json +1 -1
  248. package/tokens/modes/dark__tho-clay__compact__high.dtcg.json +1 -1
  249. package/tokens/modes/dark__tho-clay__compact__standard.dtcg.json +1 -1
  250. package/tokens/modes/dark__tho-sand__comfortable__high.dtcg.json +1 -1
  251. package/tokens/modes/dark__tho-sand__comfortable__standard.dtcg.json +1 -1
  252. package/tokens/modes/dark__tho-sand__compact__high.dtcg.json +1 -1
  253. package/tokens/modes/dark__tho-sand__compact__standard.dtcg.json +1 -1
  254. package/tokens/modes/dark__tho__comfortable__high.dtcg.json +1 -1
  255. package/tokens/modes/dark__tho__comfortable__standard.dtcg.json +1 -1
  256. package/tokens/modes/dark__tho__compact__high.dtcg.json +1 -1
  257. package/tokens/modes/dark__tho__compact__standard.dtcg.json +1 -1
  258. package/tokens/modes/dark__thuy-mist__comfortable__high.dtcg.json +1 -1
  259. package/tokens/modes/dark__thuy-mist__comfortable__standard.dtcg.json +1 -1
  260. package/tokens/modes/dark__thuy-mist__compact__high.dtcg.json +1 -1
  261. package/tokens/modes/dark__thuy-mist__compact__standard.dtcg.json +1 -1
  262. package/tokens/modes/dark__thuy-ocean__comfortable__high.dtcg.json +1 -1
  263. package/tokens/modes/dark__thuy-ocean__comfortable__standard.dtcg.json +1 -1
  264. package/tokens/modes/dark__thuy-ocean__compact__high.dtcg.json +1 -1
  265. package/tokens/modes/dark__thuy-ocean__compact__standard.dtcg.json +1 -1
  266. package/tokens/modes/dark__thuy__comfortable__high.dtcg.json +1 -1
  267. package/tokens/modes/dark__thuy__comfortable__standard.dtcg.json +1 -1
  268. package/tokens/modes/dark__thuy__compact__high.dtcg.json +1 -1
  269. package/tokens/modes/dark__thuy__compact__standard.dtcg.json +1 -1
  270. package/tokens/modes/index.json +260 -260
  271. package/tokens/modes/light__default__comfortable__high.dtcg.json +1 -1
  272. package/tokens/modes/light__default__comfortable__standard.dtcg.json +1 -1
  273. package/tokens/modes/light__default__compact__high.dtcg.json +1 -1
  274. package/tokens/modes/light__default__compact__standard.dtcg.json +1 -1
  275. package/tokens/modes/light__hoa-lava__comfortable__high.dtcg.json +1 -1
  276. package/tokens/modes/light__hoa-lava__comfortable__standard.dtcg.json +1 -1
  277. package/tokens/modes/light__hoa-lava__compact__high.dtcg.json +1 -1
  278. package/tokens/modes/light__hoa-lava__compact__standard.dtcg.json +1 -1
  279. package/tokens/modes/light__hoa-plasma__comfortable__high.dtcg.json +1 -1
  280. package/tokens/modes/light__hoa-plasma__comfortable__standard.dtcg.json +1 -1
  281. package/tokens/modes/light__hoa-plasma__compact__high.dtcg.json +1 -1
  282. package/tokens/modes/light__hoa-plasma__compact__standard.dtcg.json +1 -1
  283. package/tokens/modes/light__hoa__comfortable__high.dtcg.json +1 -1
  284. package/tokens/modes/light__hoa__comfortable__standard.dtcg.json +1 -1
  285. package/tokens/modes/light__hoa__compact__high.dtcg.json +1 -1
  286. package/tokens/modes/light__hoa__compact__standard.dtcg.json +1 -1
  287. package/tokens/modes/light__kim-steel__comfortable__high.dtcg.json +1 -1
  288. package/tokens/modes/light__kim-steel__comfortable__standard.dtcg.json +1 -1
  289. package/tokens/modes/light__kim-steel__compact__high.dtcg.json +1 -1
  290. package/tokens/modes/light__kim-steel__compact__standard.dtcg.json +1 -1
  291. package/tokens/modes/light__kim-titanium__comfortable__high.dtcg.json +1 -1
  292. package/tokens/modes/light__kim-titanium__comfortable__standard.dtcg.json +1 -1
  293. package/tokens/modes/light__kim-titanium__compact__high.dtcg.json +1 -1
  294. package/tokens/modes/light__kim-titanium__compact__standard.dtcg.json +1 -1
  295. package/tokens/modes/light__kim__comfortable__high.dtcg.json +1 -1
  296. package/tokens/modes/light__kim__comfortable__standard.dtcg.json +1 -1
  297. package/tokens/modes/light__kim__compact__high.dtcg.json +1 -1
  298. package/tokens/modes/light__kim__compact__standard.dtcg.json +1 -1
  299. package/tokens/modes/light__moc-bamboo__comfortable__high.dtcg.json +1 -1
  300. package/tokens/modes/light__moc-bamboo__comfortable__standard.dtcg.json +1 -1
  301. package/tokens/modes/light__moc-bamboo__compact__high.dtcg.json +1 -1
  302. package/tokens/modes/light__moc-bamboo__compact__standard.dtcg.json +1 -1
  303. package/tokens/modes/light__moc-forest__comfortable__high.dtcg.json +1 -1
  304. package/tokens/modes/light__moc-forest__comfortable__standard.dtcg.json +1 -1
  305. package/tokens/modes/light__moc-forest__compact__high.dtcg.json +1 -1
  306. package/tokens/modes/light__moc-forest__compact__standard.dtcg.json +1 -1
  307. package/tokens/modes/light__moc__comfortable__high.dtcg.json +1 -1
  308. package/tokens/modes/light__moc__comfortable__standard.dtcg.json +1 -1
  309. package/tokens/modes/light__moc__compact__high.dtcg.json +1 -1
  310. package/tokens/modes/light__moc__compact__standard.dtcg.json +1 -1
  311. package/tokens/modes/light__tho-clay__comfortable__high.dtcg.json +1 -1
  312. package/tokens/modes/light__tho-clay__comfortable__standard.dtcg.json +1 -1
  313. package/tokens/modes/light__tho-clay__compact__high.dtcg.json +1 -1
  314. package/tokens/modes/light__tho-clay__compact__standard.dtcg.json +1 -1
  315. package/tokens/modes/light__tho-sand__comfortable__high.dtcg.json +1 -1
  316. package/tokens/modes/light__tho-sand__comfortable__standard.dtcg.json +1 -1
  317. package/tokens/modes/light__tho-sand__compact__high.dtcg.json +1 -1
  318. package/tokens/modes/light__tho-sand__compact__standard.dtcg.json +1 -1
  319. package/tokens/modes/light__tho__comfortable__high.dtcg.json +1 -1
  320. package/tokens/modes/light__tho__comfortable__standard.dtcg.json +1 -1
  321. package/tokens/modes/light__tho__compact__high.dtcg.json +1 -1
  322. package/tokens/modes/light__tho__compact__standard.dtcg.json +1 -1
  323. package/tokens/modes/light__thuy-mist__comfortable__high.dtcg.json +1 -1
  324. package/tokens/modes/light__thuy-mist__comfortable__standard.dtcg.json +1 -1
  325. package/tokens/modes/light__thuy-mist__compact__high.dtcg.json +1 -1
  326. package/tokens/modes/light__thuy-mist__compact__standard.dtcg.json +1 -1
  327. package/tokens/modes/light__thuy-ocean__comfortable__high.dtcg.json +1 -1
  328. package/tokens/modes/light__thuy-ocean__comfortable__standard.dtcg.json +1 -1
  329. package/tokens/modes/light__thuy-ocean__compact__high.dtcg.json +1 -1
  330. package/tokens/modes/light__thuy-ocean__compact__standard.dtcg.json +1 -1
  331. package/tokens/modes/light__thuy__comfortable__high.dtcg.json +1 -1
  332. package/tokens/modes/light__thuy__comfortable__standard.dtcg.json +1 -1
  333. package/tokens/modes/light__thuy__compact__high.dtcg.json +1 -1
  334. package/tokens/modes/light__thuy__compact__standard.dtcg.json +1 -1
  335. package/tokens/modes/system-dark__default__comfortable__high.dtcg.json +1 -1
  336. package/tokens/modes/system-dark__default__comfortable__standard.dtcg.json +1 -1
  337. package/tokens/modes/system-dark__default__compact__high.dtcg.json +1 -1
  338. package/tokens/modes/system-dark__default__compact__standard.dtcg.json +1 -1
  339. package/tokens/modes/system-dark__hoa-lava__comfortable__high.dtcg.json +1 -1
  340. package/tokens/modes/system-dark__hoa-lava__comfortable__standard.dtcg.json +1 -1
  341. package/tokens/modes/system-dark__hoa-lava__compact__high.dtcg.json +1 -1
  342. package/tokens/modes/system-dark__hoa-lava__compact__standard.dtcg.json +1 -1
  343. package/tokens/modes/system-dark__hoa-plasma__comfortable__high.dtcg.json +1 -1
  344. package/tokens/modes/system-dark__hoa-plasma__comfortable__standard.dtcg.json +1 -1
  345. package/tokens/modes/system-dark__hoa-plasma__compact__high.dtcg.json +1 -1
  346. package/tokens/modes/system-dark__hoa-plasma__compact__standard.dtcg.json +1 -1
  347. package/tokens/modes/system-dark__hoa__comfortable__high.dtcg.json +1 -1
  348. package/tokens/modes/system-dark__hoa__comfortable__standard.dtcg.json +1 -1
  349. package/tokens/modes/system-dark__hoa__compact__high.dtcg.json +1 -1
  350. package/tokens/modes/system-dark__hoa__compact__standard.dtcg.json +1 -1
  351. package/tokens/modes/system-dark__kim-steel__comfortable__high.dtcg.json +1 -1
  352. package/tokens/modes/system-dark__kim-steel__comfortable__standard.dtcg.json +1 -1
  353. package/tokens/modes/system-dark__kim-steel__compact__high.dtcg.json +1 -1
  354. package/tokens/modes/system-dark__kim-steel__compact__standard.dtcg.json +1 -1
  355. package/tokens/modes/system-dark__kim-titanium__comfortable__high.dtcg.json +1 -1
  356. package/tokens/modes/system-dark__kim-titanium__comfortable__standard.dtcg.json +1 -1
  357. package/tokens/modes/system-dark__kim-titanium__compact__high.dtcg.json +1 -1
  358. package/tokens/modes/system-dark__kim-titanium__compact__standard.dtcg.json +1 -1
  359. package/tokens/modes/system-dark__kim__comfortable__high.dtcg.json +1 -1
  360. package/tokens/modes/system-dark__kim__comfortable__standard.dtcg.json +1 -1
  361. package/tokens/modes/system-dark__kim__compact__high.dtcg.json +1 -1
  362. package/tokens/modes/system-dark__kim__compact__standard.dtcg.json +1 -1
  363. package/tokens/modes/system-dark__moc-bamboo__comfortable__high.dtcg.json +1 -1
  364. package/tokens/modes/system-dark__moc-bamboo__comfortable__standard.dtcg.json +1 -1
  365. package/tokens/modes/system-dark__moc-bamboo__compact__high.dtcg.json +1 -1
  366. package/tokens/modes/system-dark__moc-bamboo__compact__standard.dtcg.json +1 -1
  367. package/tokens/modes/system-dark__moc-forest__comfortable__high.dtcg.json +1 -1
  368. package/tokens/modes/system-dark__moc-forest__comfortable__standard.dtcg.json +1 -1
  369. package/tokens/modes/system-dark__moc-forest__compact__high.dtcg.json +1 -1
  370. package/tokens/modes/system-dark__moc-forest__compact__standard.dtcg.json +1 -1
  371. package/tokens/modes/system-dark__moc__comfortable__high.dtcg.json +1 -1
  372. package/tokens/modes/system-dark__moc__comfortable__standard.dtcg.json +1 -1
  373. package/tokens/modes/system-dark__moc__compact__high.dtcg.json +1 -1
  374. package/tokens/modes/system-dark__moc__compact__standard.dtcg.json +1 -1
  375. package/tokens/modes/system-dark__tho-clay__comfortable__high.dtcg.json +1 -1
  376. package/tokens/modes/system-dark__tho-clay__comfortable__standard.dtcg.json +1 -1
  377. package/tokens/modes/system-dark__tho-clay__compact__high.dtcg.json +1 -1
  378. package/tokens/modes/system-dark__tho-clay__compact__standard.dtcg.json +1 -1
  379. package/tokens/modes/system-dark__tho-sand__comfortable__high.dtcg.json +1 -1
  380. package/tokens/modes/system-dark__tho-sand__comfortable__standard.dtcg.json +1 -1
  381. package/tokens/modes/system-dark__tho-sand__compact__high.dtcg.json +1 -1
  382. package/tokens/modes/system-dark__tho-sand__compact__standard.dtcg.json +1 -1
  383. package/tokens/modes/system-dark__tho__comfortable__high.dtcg.json +1 -1
  384. package/tokens/modes/system-dark__tho__comfortable__standard.dtcg.json +1 -1
  385. package/tokens/modes/system-dark__tho__compact__high.dtcg.json +1 -1
  386. package/tokens/modes/system-dark__tho__compact__standard.dtcg.json +1 -1
  387. package/tokens/modes/system-dark__thuy-mist__comfortable__high.dtcg.json +1 -1
  388. package/tokens/modes/system-dark__thuy-mist__comfortable__standard.dtcg.json +1 -1
  389. package/tokens/modes/system-dark__thuy-mist__compact__high.dtcg.json +1 -1
  390. package/tokens/modes/system-dark__thuy-mist__compact__standard.dtcg.json +1 -1
  391. package/tokens/modes/system-dark__thuy-ocean__comfortable__high.dtcg.json +1 -1
  392. package/tokens/modes/system-dark__thuy-ocean__comfortable__standard.dtcg.json +1 -1
  393. package/tokens/modes/system-dark__thuy-ocean__compact__high.dtcg.json +1 -1
  394. package/tokens/modes/system-dark__thuy-ocean__compact__standard.dtcg.json +1 -1
  395. package/tokens/modes/system-dark__thuy__comfortable__high.dtcg.json +1 -1
  396. package/tokens/modes/system-dark__thuy__comfortable__standard.dtcg.json +1 -1
  397. package/tokens/modes/system-dark__thuy__compact__high.dtcg.json +1 -1
  398. package/tokens/modes/system-dark__thuy__compact__standard.dtcg.json +1 -1
  399. package/tokens/modes/system-light__default__comfortable__high.dtcg.json +1 -1
  400. package/tokens/modes/system-light__default__comfortable__standard.dtcg.json +1 -1
  401. package/tokens/modes/system-light__default__compact__high.dtcg.json +1 -1
  402. package/tokens/modes/system-light__default__compact__standard.dtcg.json +1 -1
  403. package/tokens/modes/system-light__hoa-lava__comfortable__high.dtcg.json +1 -1
  404. package/tokens/modes/system-light__hoa-lava__comfortable__standard.dtcg.json +1 -1
  405. package/tokens/modes/system-light__hoa-lava__compact__high.dtcg.json +1 -1
  406. package/tokens/modes/system-light__hoa-lava__compact__standard.dtcg.json +1 -1
  407. package/tokens/modes/system-light__hoa-plasma__comfortable__high.dtcg.json +1 -1
  408. package/tokens/modes/system-light__hoa-plasma__comfortable__standard.dtcg.json +1 -1
  409. package/tokens/modes/system-light__hoa-plasma__compact__high.dtcg.json +1 -1
  410. package/tokens/modes/system-light__hoa-plasma__compact__standard.dtcg.json +1 -1
  411. package/tokens/modes/system-light__hoa__comfortable__high.dtcg.json +1 -1
  412. package/tokens/modes/system-light__hoa__comfortable__standard.dtcg.json +1 -1
  413. package/tokens/modes/system-light__hoa__compact__high.dtcg.json +1 -1
  414. package/tokens/modes/system-light__hoa__compact__standard.dtcg.json +1 -1
  415. package/tokens/modes/system-light__kim-steel__comfortable__high.dtcg.json +1 -1
  416. package/tokens/modes/system-light__kim-steel__comfortable__standard.dtcg.json +1 -1
  417. package/tokens/modes/system-light__kim-steel__compact__high.dtcg.json +1 -1
  418. package/tokens/modes/system-light__kim-steel__compact__standard.dtcg.json +1 -1
  419. package/tokens/modes/system-light__kim-titanium__comfortable__high.dtcg.json +1 -1
  420. package/tokens/modes/system-light__kim-titanium__comfortable__standard.dtcg.json +1 -1
  421. package/tokens/modes/system-light__kim-titanium__compact__high.dtcg.json +1 -1
  422. package/tokens/modes/system-light__kim-titanium__compact__standard.dtcg.json +1 -1
  423. package/tokens/modes/system-light__kim__comfortable__high.dtcg.json +1 -1
  424. package/tokens/modes/system-light__kim__comfortable__standard.dtcg.json +1 -1
  425. package/tokens/modes/system-light__kim__compact__high.dtcg.json +1 -1
  426. package/tokens/modes/system-light__kim__compact__standard.dtcg.json +1 -1
  427. package/tokens/modes/system-light__moc-bamboo__comfortable__high.dtcg.json +1 -1
  428. package/tokens/modes/system-light__moc-bamboo__comfortable__standard.dtcg.json +1 -1
  429. package/tokens/modes/system-light__moc-bamboo__compact__high.dtcg.json +1 -1
  430. package/tokens/modes/system-light__moc-bamboo__compact__standard.dtcg.json +1 -1
  431. package/tokens/modes/system-light__moc-forest__comfortable__high.dtcg.json +1 -1
  432. package/tokens/modes/system-light__moc-forest__comfortable__standard.dtcg.json +1 -1
  433. package/tokens/modes/system-light__moc-forest__compact__high.dtcg.json +1 -1
  434. package/tokens/modes/system-light__moc-forest__compact__standard.dtcg.json +1 -1
  435. package/tokens/modes/system-light__moc__comfortable__high.dtcg.json +1 -1
  436. package/tokens/modes/system-light__moc__comfortable__standard.dtcg.json +1 -1
  437. package/tokens/modes/system-light__moc__compact__high.dtcg.json +1 -1
  438. package/tokens/modes/system-light__moc__compact__standard.dtcg.json +1 -1
  439. package/tokens/modes/system-light__tho-clay__comfortable__high.dtcg.json +1 -1
  440. package/tokens/modes/system-light__tho-clay__comfortable__standard.dtcg.json +1 -1
  441. package/tokens/modes/system-light__tho-clay__compact__high.dtcg.json +1 -1
  442. package/tokens/modes/system-light__tho-clay__compact__standard.dtcg.json +1 -1
  443. package/tokens/modes/system-light__tho-sand__comfortable__high.dtcg.json +1 -1
  444. package/tokens/modes/system-light__tho-sand__comfortable__standard.dtcg.json +1 -1
  445. package/tokens/modes/system-light__tho-sand__compact__high.dtcg.json +1 -1
  446. package/tokens/modes/system-light__tho-sand__compact__standard.dtcg.json +1 -1
  447. package/tokens/modes/system-light__tho__comfortable__high.dtcg.json +1 -1
  448. package/tokens/modes/system-light__tho__comfortable__standard.dtcg.json +1 -1
  449. package/tokens/modes/system-light__tho__compact__high.dtcg.json +1 -1
  450. package/tokens/modes/system-light__tho__compact__standard.dtcg.json +1 -1
  451. package/tokens/modes/system-light__thuy-mist__comfortable__high.dtcg.json +1 -1
  452. package/tokens/modes/system-light__thuy-mist__comfortable__standard.dtcg.json +1 -1
  453. package/tokens/modes/system-light__thuy-mist__compact__high.dtcg.json +1 -1
  454. package/tokens/modes/system-light__thuy-mist__compact__standard.dtcg.json +1 -1
  455. package/tokens/modes/system-light__thuy-ocean__comfortable__high.dtcg.json +1 -1
  456. package/tokens/modes/system-light__thuy-ocean__comfortable__standard.dtcg.json +1 -1
  457. package/tokens/modes/system-light__thuy-ocean__compact__high.dtcg.json +1 -1
  458. package/tokens/modes/system-light__thuy-ocean__compact__standard.dtcg.json +1 -1
  459. package/tokens/modes/system-light__thuy__comfortable__high.dtcg.json +1 -1
  460. package/tokens/modes/system-light__thuy__comfortable__standard.dtcg.json +1 -1
  461. package/tokens/modes/system-light__thuy__compact__high.dtcg.json +1 -1
  462. package/tokens/modes/system-light__thuy__compact__standard.dtcg.json +1 -1
  463. package/tokens/native/CSModes.kt +3 -3
  464. package/tokens/native/CSModes.swift +3 -3
  465. package/tokens/native/CSTokens.kt +1 -1
  466. package/tokens/native/CSTokens.swift +1 -1
  467. package/tokens/native/cs_modes.dart +3 -3
  468. package/tokens/native/cs_tokens.dart +1 -1
  469. package/tokens/native/mode-provenance.json +6 -6
  470. package/tokens/provenance.json +6 -6
  471. package/tokens/styles.css +1 -1
  472. package/tokens/tokens.dtcg.json +4 -4
  473. package/tokens/tokens.js +5 -5
  474. package/tokens/tokens.json +4 -4
  475. package/tokens/variables.css +0 -9
  476. package/ui_kits/deck/index.html +1 -1
  477. package/ui_kits/status-hub/index.html +1 -1
  478. package/ui_kits/status-hub/login.html +1 -1
  479. package/ui_kits/status-hub/project.html +1 -1
  480. package/ui_kits/status-hub/settings.html +1 -1
  481. package/ui_kits/status-hub/static-locale.js +2 -0
  482. package/ui_kits/website/careers.html +1 -1
  483. package/ui_kits/website/chat.html +1 -1
  484. package/ui_kits/website/index.html +1 -1
  485. package/ui_kits/website/work.html +1 -1
  486. package/dist/esm/chunks/chunk-GLPQBE2J.mjs.map +0 -7
@@ -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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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.min.css']) {
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 => /^CyberSkillDesignSystem_[0-9a-f]{6}$/.test(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 || namespace.__errors?.length) {
38
- reject(new Error('Design-system bundle failed to initialize: ' + JSON.stringify(namespace?.__errors || [])));
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'));