@birdapi/velinstyle 1.1.0 → 1.2.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 (308) hide show
  1. package/README.de.md +87 -162
  2. package/README.md +188 -119
  3. package/cli/blueprint.js +98 -5
  4. package/cli/blueprints/app-chrome.html +18 -0
  5. package/cli/blueprints/benefits-grid.html +9 -0
  6. package/cli/blueprints/bottom-nav-mobile.html +2 -1
  7. package/cli/blueprints/cookie-consent.html +1 -1
  8. package/cli/blueprints/cta-band.html +6 -0
  9. package/cli/blueprints/faq-section.html +18 -0
  10. package/cli/blueprints/filter-bar.html +4 -4
  11. package/cli/blueprints/form-contact.html +6 -5
  12. package/cli/blueprints/hero-section.html +3 -3
  13. package/cli/blueprints/notification-center.html +1 -1
  14. package/cli/blueprints/onboarding.html +2 -1
  15. package/cli/blueprints/ops-console.html +29 -0
  16. package/cli/blueprints/pricing-band.html +37 -0
  17. package/cli/blueprints/process-steps.html +10 -0
  18. package/cli/blueprints/services-grid.html +9 -0
  19. package/cli/blueprints/settings-panel.html +8 -6
  20. package/cli/blueprints/split-hero.html +25 -0
  21. package/cli/blueprints/testimonials.html +8 -0
  22. package/cli/blueprints/trust-bar.html +10 -0
  23. package/cli/cli-manifest.json +81 -17
  24. package/cli/contrast-utils.js +97 -0
  25. package/cli/create.js +370 -0
  26. package/cli/docgen/extract-attributes.js +126 -10
  27. package/cli/docgen/extract-cli.js +3 -2
  28. package/cli/docgen/extract-components.js +61 -2
  29. package/cli/docgen/extract-utilities.js +10 -10
  30. package/cli/doctor.js +119 -0
  31. package/cli/index.js +531 -44
  32. package/cli/meta.js +84 -1
  33. package/cli/perf-audit.js +15 -2
  34. package/cli/prompt-engine.js +243 -0
  35. package/cli/review.js +268 -0
  36. package/cli/scaffold.js +119 -4
  37. package/cli/scanner-rules-data.js +7 -0
  38. package/cli/scanner.js +357 -4
  39. package/cli/serve.js +81 -0
  40. package/cli/skills.js +223 -0
  41. package/cli/wc-api.js +89 -0
  42. package/cli/workflow.js +42 -0
  43. package/components/index.js +2 -0
  44. package/components/runtime/component-loaders.js +2 -0
  45. package/components/velin-accordion.js +62 -13
  46. package/components/velin-bottom-nav.js +10 -0
  47. package/components/velin-calendar.js +212 -0
  48. package/components/velin-command.js +18 -2
  49. package/components/velin-data-table.js +78 -1
  50. package/components/velin-dialog.js +4 -1
  51. package/components/velin-drawer.js +2 -4
  52. package/components/velin-file-dropzone.js +162 -0
  53. package/components/velin-icon.js +22 -1
  54. package/components/velin-lightbox.js +5 -3
  55. package/components/velin-modal.js +2 -4
  56. package/components/velin-search.js +1 -1
  57. package/components/velin-sheet.js +2 -4
  58. package/core/a11y/component-contracts.json +20 -3
  59. package/core/meta/build.js +125 -5
  60. package/core/meta/design-constraints/contact.json +9 -0
  61. package/core/meta/design-constraints/faq.json +9 -0
  62. package/core/meta/design-constraints/hero.json +13 -0
  63. package/core/meta/knowledge/components.json +622 -0
  64. package/core/meta/knowledge/tokens.json +282 -0
  65. package/core/meta/pages/registry.json +294 -0
  66. package/core/meta/schema.js +3 -1
  67. package/core/meta/sections/registry.json +185 -0
  68. package/dist/chunks/{attributes-STYCS3O5.js → attributes-A423NX5J.js} +3 -3
  69. package/dist/chunks/{attributes-353XDOAX.js → attributes-F6UPIEVP.js} +1 -1
  70. package/dist/chunks/{attributes-ADOKLKA7.js → attributes-GLYXGGAL.js} +3 -3
  71. package/dist/chunks/{attributes-TPANLMLF.js → attributes-UFTYOSAU.js} +3 -3
  72. package/dist/chunks/attributes-XGLXLR2T.js +391 -0
  73. package/dist/chunks/attributes-YF4NI2QS.js +391 -0
  74. package/dist/chunks/browser-AUABBYUK.js +1544 -0
  75. package/dist/chunks/{chunk-RSMRR27R.js → chunk-2LSKX57P.js} +12 -10
  76. package/dist/chunks/{chunk-IEHKRARD.js → chunk-2TGCVDUL.js} +11 -9
  77. package/dist/chunks/{chunk-SRL6EWHP.js → chunk-5JWGUAPC.js} +17 -13
  78. package/dist/chunks/chunk-7YSO2OQ2.js +113 -0
  79. package/dist/chunks/{chunk-QVHYL3R4.js → chunk-BHR3ZG6U.js} +6 -6
  80. package/dist/chunks/{chunk-J472ERN2.js → chunk-JMSIHEYX.js} +15 -4
  81. package/dist/chunks/{chunk-MKZP2TBH.js → chunk-L7ZGUU4D.js} +2 -2
  82. package/dist/chunks/chunk-TUGIPKW5.js +113 -0
  83. package/dist/chunks/{highlight-GJHHV4KM.js → highlight-M2ELQNYK.js} +1 -1
  84. package/dist/chunks/runtime-entry.js +1 -1
  85. package/dist/chunks/{velin-accordion-FBIPAEXG.js → velin-accordion-WSY6BMLA.js} +64 -10
  86. package/dist/chunks/{velin-bottom-nav-7GEMPIM6.js → velin-bottom-nav-5RVRNGIP.js} +25 -0
  87. package/dist/chunks/{velin-bottom-nav-N3DFQR66.js → velin-bottom-nav-N5F4UO2I.js} +26 -1
  88. package/dist/chunks/velin-calendar-OFE6THUD.js +210 -0
  89. package/dist/chunks/velin-calendar-PGVNJTXK.js +217 -0
  90. package/dist/chunks/velin-calendar-XC7JRDSH.js +217 -0
  91. package/dist/chunks/{velin-code-block-CIAURDRJ.js → velin-code-block-ZGWG7JI5.js} +1 -1
  92. package/dist/chunks/{velin-combobox-NXS4QB4R.js → velin-combobox-56V2ZWT5.js} +1 -1
  93. package/dist/chunks/{velin-command-ONKO2A3J.js → velin-command-2HO2EKR6.js} +29 -2
  94. package/dist/chunks/{velin-command-TMLSRGIU.js → velin-command-ZJSLPK7B.js} +30 -3
  95. package/dist/chunks/{velin-copy-NYDBOKXT.js → velin-copy-XDQSV2XU.js} +1 -1
  96. package/dist/chunks/{velin-countdown-4ZVDGK4R.js → velin-countdown-V4Z5MA63.js} +1 -1
  97. package/dist/chunks/velin-data-table-UVR42UUM.js +372 -0
  98. package/dist/chunks/{velin-dialog-GTTZI564.js → velin-dialog-3YK2RPRV.js} +9 -2
  99. package/dist/chunks/{velin-dialog-ELFOZIXZ.js → velin-dialog-S24KAP4S.js} +3 -1
  100. package/dist/chunks/{velin-drawer-BE6TYN3H.js → velin-drawer-5PNU624J.js} +2 -4
  101. package/dist/chunks/{velin-drawer-DLL2GLT6.js → velin-drawer-CCM6S25D.js} +3 -5
  102. package/dist/chunks/{velin-email-RBX6ZR4S.js → velin-email-TNFONXPW.js} +1 -1
  103. package/dist/chunks/velin-file-dropzone-QRGF2JNA.js +154 -0
  104. package/dist/chunks/velin-file-dropzone-XIZMJ3NB.js +154 -0
  105. package/dist/chunks/{velin-icon-7M76DOPB.js → velin-icon-A6NCXGUK.js} +59 -17
  106. package/dist/chunks/{velin-icon-ZTSKUOVN.js → velin-icon-EC4B5XCM.js} +18 -5
  107. package/dist/chunks/{velin-lightbox-6E7CAATP.js → velin-lightbox-FFK4TUUP.js} +7 -6
  108. package/dist/chunks/{velin-lightbox-NXA3U2FM.js → velin-lightbox-P725FLTY.js} +5 -4
  109. package/dist/chunks/{velin-menubar-J66JXRWW.js → velin-menubar-6I2LM5HL.js} +1 -1
  110. package/dist/chunks/{velin-modal-5HYNNNUI.js → velin-modal-ICTMGRSU.js} +7 -8
  111. package/dist/chunks/{velin-modal-AEOTZ67O.js → velin-modal-JBNODH7D.js} +2 -4
  112. package/dist/chunks/{velin-popover-T72HK3DF.js → velin-popover-WZG2GHBL.js} +25 -4
  113. package/dist/chunks/{velin-rating-N4DI2XNL.js → velin-rating-QBBYRRBU.js} +1 -1
  114. package/dist/chunks/{velin-search-7B4KJ6TX.js → velin-search-B3L6J2RP.js} +2 -2
  115. package/dist/chunks/{velin-search-2XRQFBCS.js → velin-search-L3UG6NDQ.js} +5 -4
  116. package/dist/chunks/{velin-secure-field-6PV7RZDJ.js → velin-secure-field-DGYMP7OK.js} +1 -1
  117. package/dist/chunks/{velin-segmented-control-GYD5BIXQ.js → velin-segmented-control-P74GJPAR.js} +1 -1
  118. package/dist/chunks/{velin-sheet-R2Y67X6H.js → velin-sheet-M5GZZD7G.js} +2 -4
  119. package/dist/chunks/{velin-sheet-OUK6572T.js → velin-sheet-X7RXIWKV.js} +3 -5
  120. package/dist/chunks/{velin-stepper-X54WGHDG.js → velin-stepper-4YQJUHPC.js} +12 -5
  121. package/dist/chunks/{velin-toast-OMMOA2DK.js → velin-toast-UG5LWTG2.js} +5 -1
  122. package/dist/chunks/{velin-tooltip-BDHGRTQB.js → velin-tooltip-ZDH5SDLU.js} +1 -1
  123. package/dist/llms.txt +29 -7
  124. package/dist/search-index.json +156 -10
  125. package/dist/velin-agent.json +3973 -28
  126. package/dist/velinstyle-components.iife.js +1211 -284
  127. package/dist/velinstyle-components.js +1213 -284
  128. package/dist/velinstyle-components.min.js +266 -118
  129. package/dist/velinstyle.css +252 -67
  130. package/dist/velinstyle.d.ts +2 -0
  131. package/dist/velinstyle.min.css +1 -1
  132. package/package.json +20 -6
  133. package/packages/skill-engine/README.md +24 -0
  134. package/packages/skill-engine/package.json +7 -0
  135. package/packages/skill-engine/src/catalog.js +29 -0
  136. package/packages/skill-engine/src/index.js +5 -0
  137. package/packages/skill-engine/src/install.js +69 -0
  138. package/packages/skill-engine/src/registry.js +27 -0
  139. package/packages/skill-engine/src/resolve.js +68 -0
  140. package/packages/skill-engine/src/validate.js +40 -0
  141. package/packages/velinstyle-skills/README.md +6 -0
  142. package/packages/velinstyle-skills/adapter.json +8 -0
  143. package/packages/velinstyle-skills/bundles/landing-starter.bundle.yaml +12 -0
  144. package/packages/velinstyle-skills/bundles/review-suite.bundle.yaml +11 -0
  145. package/packages/velinstyle-skills/catalog.json +1004 -0
  146. package/packages/velinstyle-skills/graphs/component-ship.graph.yaml +14 -0
  147. package/packages/velinstyle-skills/graphs/landingpage.graph.yaml +21 -0
  148. package/packages/velinstyle-skills/graphs/release-gate.graph.yaml +15 -0
  149. package/packages/velinstyle-skills/index.js +22 -0
  150. package/packages/velinstyle-skills/package.json +7 -0
  151. package/packages/velinstyle-skills/packs/accessibility.pack.yaml +9 -0
  152. package/packages/velinstyle-skills/packs/design.pack.yaml +10 -0
  153. package/packages/velinstyle-skills/packs/documentation.pack.yaml +8 -0
  154. package/packages/velinstyle-skills/packs/enterprise.pack.yaml +10 -0
  155. package/packages/velinstyle-skills/packs/frontend.pack.yaml +10 -0
  156. package/packages/velinstyle-skills/packs/review.pack.yaml +9 -0
  157. package/packages/velinstyle-skills/projects/admin-panel.project.yaml +12 -0
  158. package/packages/velinstyle-skills/projects/blog.project.yaml +11 -0
  159. package/packages/velinstyle-skills/projects/documentation-portal.project.yaml +13 -0
  160. package/packages/velinstyle-skills/projects/ecommerce-shop.project.yaml +12 -0
  161. package/packages/velinstyle-skills/projects/landing-page.project.yaml +12 -0
  162. package/packages/velinstyle-skills/projects/laravel-dashboard.project.yaml +12 -0
  163. package/packages/velinstyle-skills/projects/marketing-website.project.yaml +14 -0
  164. package/packages/velinstyle-skills/projects/portfolio.project.yaml +12 -0
  165. package/packages/velinstyle-skills/registry.json +142 -0
  166. package/packages/velinstyle-skills/scripts/generate-assets.mjs +163 -0
  167. package/packages/velinstyle-skills/skills/velin-a11y-focus-keyboard/SKILL.md +57 -0
  168. package/packages/velinstyle-skills/skills/velin-a11y-page-checklist/SKILL.md +57 -0
  169. package/packages/velinstyle-skills/skills/velin-a11y-scan-fix/SKILL.md +57 -0
  170. package/packages/velinstyle-skills/skills/velin-ai-agent-briefing/SKILL.md +57 -0
  171. package/packages/velinstyle-skills/skills/velin-ai-plan-scaffold-review/SKILL.md +57 -0
  172. package/packages/velinstyle-skills/skills/velin-ai-skill-authoring/SKILL.md +57 -0
  173. package/packages/velinstyle-skills/skills/velin-components-accessibility-map/SKILL.md +57 -0
  174. package/packages/velinstyle-skills/skills/velin-components-api-contract/SKILL.md +57 -0
  175. package/packages/velinstyle-skills/skills/velin-components-recipe/SKILL.md +57 -0
  176. package/packages/velinstyle-skills/skills/velin-components-select-compose/SKILL.md +57 -0
  177. package/packages/velinstyle-skills/skills/velin-design-hero-compose/SKILL.md +57 -0
  178. package/packages/velinstyle-skills/skills/velin-design-section-rhythm/SKILL.md +57 -0
  179. package/packages/velinstyle-skills/skills/velin-design-surface-roles/SKILL.md +57 -0
  180. package/packages/velinstyle-skills/skills/velin-dev-component-wire/SKILL.md +57 -0
  181. package/packages/velinstyle-skills/skills/velin-dev-page-scaffold/SKILL.md +57 -0
  182. package/packages/velinstyle-skills/skills/velin-dev-plan-first/SKILL.md +57 -0
  183. package/packages/velinstyle-skills/skills/velin-docs-component-guide/SKILL.md +57 -0
  184. package/packages/velinstyle-skills/skills/velin-docs-generate-api/SKILL.md +57 -0
  185. package/packages/velinstyle-skills/skills/velin-dx-doctor-setup/SKILL.md +57 -0
  186. package/packages/velinstyle-skills/skills/velin-dx-project-init/SKILL.md +57 -0
  187. package/packages/velinstyle-skills/skills/velin-migration-legacy-wc/SKILL.md +57 -0
  188. package/packages/velinstyle-skills/skills/velin-migration-prefix-classes/SKILL.md +57 -0
  189. package/packages/velinstyle-skills/skills/velin-motion-reduced-safe/SKILL.md +57 -0
  190. package/packages/velinstyle-skills/skills/velin-motion-reveal-feedback/SKILL.md +57 -0
  191. package/packages/velinstyle-skills/skills/velin-perf-audit-fix/SKILL.md +57 -0
  192. package/packages/velinstyle-skills/skills/velin-perf-runtime-tree-shake/SKILL.md +57 -0
  193. package/packages/velinstyle-skills/skills/velin-release-changelog-sync/SKILL.md +57 -0
  194. package/packages/velinstyle-skills/skills/velin-release-meta-rebuild/SKILL.md +57 -0
  195. package/packages/velinstyle-skills/skills/velin-review-conversion-hero/SKILL.md +57 -0
  196. package/packages/velinstyle-skills/skills/velin-review-page-gate/SKILL.md +57 -0
  197. package/packages/velinstyle-skills/skills/velin-review-seo-meta/SKILL.md +57 -0
  198. package/packages/velinstyle-skills/skills/velin-security-sanitize-html/SKILL.md +57 -0
  199. package/packages/velinstyle-skills/skills/velin-security-scan-pii/SKILL.md +57 -0
  200. package/packages/velinstyle-skills/skills/velin-testing-a11y-suite/SKILL.md +57 -0
  201. package/packages/velinstyle-skills/skills/velin-testing-visual-smoke/SKILL.md +57 -0
  202. package/packages/velinstyle-skills/skills/velin-themes-apply-token/SKILL.md +57 -0
  203. package/packages/velinstyle-skills/skills/velin-themes-contrast-check/SKILL.md +57 -0
  204. package/packages/velinstyle-skills/skills/velin-utilities-layout-apply/SKILL.md +57 -0
  205. package/packages/velinstyle-skills/skills/velin-utilities-prefix-fix/SKILL.md +57 -0
  206. package/packages/velinstyle-skills/skills/velin-utilities-token-map/SKILL.md +57 -0
  207. package/packages/velinstyle-skills/templates/admin-panel.template.yaml +12 -0
  208. package/packages/velinstyle-skills/templates/blog.template.yaml +12 -0
  209. package/packages/velinstyle-skills/templates/documentation-portal.template.yaml +12 -0
  210. package/packages/velinstyle-skills/templates/ecommerce-shop.template.yaml +13 -0
  211. package/packages/velinstyle-skills/templates/landing-page.template.yaml +12 -0
  212. package/packages/velinstyle-skills/templates/laravel-dashboard.template.yaml +11 -0
  213. package/packages/velinstyle-skills/templates/marketing-website.template.yaml +13 -0
  214. package/packages/velinstyle-skills/templates/portfolio.template.yaml +12 -0
  215. package/schemas/component-knowledge.schema.json +33 -0
  216. package/schemas/design-constraint.schema.json +15 -0
  217. package/schemas/design-intelligence.schema.json +19 -0
  218. package/schemas/design-rule.schema.json +19 -0
  219. package/schemas/page-template.schema.json +24 -0
  220. package/schemas/review-report.schema.json +36 -0
  221. package/schemas/section.schema.json +22 -0
  222. package/schemas/skill-bundle.schema.json +15 -0
  223. package/schemas/skill-graph.schema.json +25 -0
  224. package/schemas/skill-pack.schema.json +14 -0
  225. package/schemas/skill-project.schema.json +16 -0
  226. package/schemas/skill-record.schema.json +27 -0
  227. package/schemas/skill-registry.schema.json +17 -0
  228. package/schemas/skill-template.schema.json +17 -0
  229. package/schemas/token-graph.schema.json +27 -0
  230. package/schemas/utility.schema.json +166 -0
  231. package/src/components/alert.css +22 -1
  232. package/src/components/calendar-dropzone.css +5 -0
  233. package/src/layout/app-shell.css +33 -0
  234. package/src/tokens/shadow.css +13 -0
  235. package/src/utilities/border.css +2 -0
  236. package/src/utilities/display.css +1 -24
  237. package/src/utilities/responsive.css +16 -1
  238. package/src/utilities/spacing.css +32 -0
  239. package/src/velinstyle.css +2 -0
  240. package/dist/chunks/attributes-3BZLI7XF.js +0 -364
  241. package/dist/chunks/attributes-4N5JP4CG.js +0 -364
  242. package/dist/chunks/attributes-5Q2WXGRC.js +0 -374
  243. package/dist/chunks/attributes-AIR7SVLK.js +0 -364
  244. package/dist/chunks/attributes-BGRN5XZO.js +0 -364
  245. package/dist/chunks/attributes-BVSQAYLR.js +0 -364
  246. package/dist/chunks/attributes-CDYFUY7Y.js +0 -364
  247. package/dist/chunks/attributes-JMYJZBPE.js +0 -364
  248. package/dist/chunks/attributes-R5JY3X4O.js +0 -374
  249. package/dist/chunks/attributes-TNSPQTHX.js +0 -374
  250. package/dist/chunks/chunk-2354NEBP.js +0 -109
  251. package/dist/chunks/chunk-2VNA7G7S.js +0 -109
  252. package/dist/chunks/chunk-AQLRJSGG.js +0 -109
  253. package/dist/chunks/chunk-EWPSDMQT.js +0 -109
  254. package/dist/chunks/chunk-LA7264K4.js +0 -85
  255. package/dist/chunks/chunk-QTJJ3DPO.js +0 -109
  256. package/dist/chunks/chunk-RZQVWFHW.js +0 -109
  257. package/dist/chunks/chunk-U4XHMZ7D.js +0 -109
  258. package/dist/chunks/chunk-V5YIUA6G.js +0 -109
  259. package/dist/chunks/chunk-XIET2VSZ.js +0 -109
  260. package/dist/chunks/chunk-XYLJ2GCB.js +0 -205
  261. package/dist/chunks/chunk-ZPSPKUYD.js +0 -109
  262. package/dist/chunks/highlight-XTHRKBA3.js +0 -37
  263. package/dist/chunks/velin-bottom-nav-2N2TYWOF.js +0 -86
  264. package/dist/chunks/velin-carousel-Y5VCOABZ.js +0 -213
  265. package/dist/chunks/velin-code-block-ASUBTAQV.js +0 -119
  266. package/dist/chunks/velin-code-block-TSUKPY4C.js +0 -123
  267. package/dist/chunks/velin-code-block-Y6CM726Q.js +0 -119
  268. package/dist/chunks/velin-combobox-2KDTCQ7N.js +0 -155
  269. package/dist/chunks/velin-command-M7RNHUPR.js +0 -136
  270. package/dist/chunks/velin-copy-T5KDTDXP.js +0 -81
  271. package/dist/chunks/velin-countdown-5XSTN3BH.js +0 -101
  272. package/dist/chunks/velin-counter-ISCTEAHI.js +0 -118
  273. package/dist/chunks/velin-dialog-D2GUHSCD.js +0 -144
  274. package/dist/chunks/velin-dialog-IJLFDXAJ.js +0 -144
  275. package/dist/chunks/velin-dialog-TNS3WXMB.js +0 -144
  276. package/dist/chunks/velin-drawer-MJS6WCF7.js +0 -130
  277. package/dist/chunks/velin-email-N5B5ZYTE.js +0 -90
  278. package/dist/chunks/velin-icon-KZO3IEHG.js +0 -164
  279. package/dist/chunks/velin-lightbox-I75U6JF4.js +0 -140
  280. package/dist/chunks/velin-lightbox-QOTB4PRL.js +0 -140
  281. package/dist/chunks/velin-lightbox-UCD6N7HF.js +0 -140
  282. package/dist/chunks/velin-live-dot-XHUZCIDZ.js +0 -67
  283. package/dist/chunks/velin-menubar-SFEXJE56.js +0 -86
  284. package/dist/chunks/velin-modal-2HOBXE6F.js +0 -176
  285. package/dist/chunks/velin-modal-GLI2XZZB.js +0 -176
  286. package/dist/chunks/velin-popover-EXINRIGJ.js +0 -145
  287. package/dist/chunks/velin-popover-OXX7MRZ6.js +0 -145
  288. package/dist/chunks/velin-popover-YKCCROJG.js +0 -145
  289. package/dist/chunks/velin-rating-XRQJV4LO.js +0 -91
  290. package/dist/chunks/velin-scroll-top-F2FCZNYD.js +0 -58
  291. package/dist/chunks/velin-search-4YHJWYSS.js +0 -556
  292. package/dist/chunks/velin-search-LWHY23Q5.js +0 -474
  293. package/dist/chunks/velin-secure-field-H7FSBUJW.js +0 -95
  294. package/dist/chunks/velin-segmented-control-PQX6LKOJ.js +0 -109
  295. package/dist/chunks/velin-sheet-3OGI4HD7.js +0 -119
  296. package/dist/chunks/velin-sparkline-GVEANJVW.js +0 -184
  297. package/dist/chunks/velin-sparkline-KDA3GQAN.js +0 -162
  298. package/dist/chunks/velin-stepper-2ZIHLKGM.js +0 -141
  299. package/dist/chunks/velin-stepper-FYEUEWE6.js +0 -141
  300. package/dist/chunks/velin-stepper-wc-QU3KRVQR.js +0 -133
  301. package/dist/chunks/velin-theme-toggle-BNNS7WLV.js +0 -285
  302. package/dist/chunks/velin-theme-toggle-NO7V4TWI.js +0 -285
  303. package/dist/chunks/velin-theme-toggle-QELCJM2Q.js +0 -291
  304. package/dist/chunks/velin-toast-RCZ4CSUC.js +0 -109
  305. package/dist/chunks/velin-toast-WEUBTJG6.js +0 -109
  306. package/dist/chunks/velin-tooltip-664IOHZA.js +0 -112
  307. package/dist/chunks/velin-tooltip-wc-LXDVT6DE.js +0 -103
  308. package/dist/chunks/worker-client-R6DBYPFT.js +0 -46
@@ -0,0 +1,185 @@
1
+ {
2
+ "version": 1,
3
+ "sections": [
4
+ {
5
+ "id": "hero",
6
+ "role": "hero",
7
+ "blueprintFile": "hero-section.html",
8
+ "inputs": ["title", "subtitle", "cta", "brand"],
9
+ "requiredContent": ["headline", "primaryCta"],
10
+ "optionalContent": ["image", "secondaryCta"],
11
+ "designRules": ["hero-headline-lines", "hero-cta-max", "hero-contrast"],
12
+ "a11yRules": ["one h1", "cta is real button/link"],
13
+ "seoRules": ["h1 matches primary intent"],
14
+ "compatiblePrev": [],
15
+ "compatibleNext": ["trust-bar", "benefits", "services"],
16
+ "examplePrompts": ["modern hero with two CTAs"],
17
+ "commonMistakes": ["three CTAs", "headline longer than two lines"]
18
+ },
19
+ {
20
+ "id": "trust-bar",
21
+ "role": "trust-bar",
22
+ "blueprintFile": "trust-bar.html",
23
+ "inputs": ["logos", "claim"],
24
+ "requiredContent": ["trustItems"],
25
+ "optionalContent": ["claim"],
26
+ "designRules": [],
27
+ "a11yRules": ["alt text for logos"],
28
+ "seoRules": [],
29
+ "compatiblePrev": ["hero"],
30
+ "compatibleNext": ["benefits", "services"],
31
+ "examplePrompts": ["trusted by brands bar"],
32
+ "commonMistakes": ["low-contrast logos"]
33
+ },
34
+ {
35
+ "id": "benefits",
36
+ "role": "benefits",
37
+ "blueprintFile": "benefits-grid.html",
38
+ "inputs": ["items"],
39
+ "requiredContent": ["benefitItems"],
40
+ "optionalContent": [],
41
+ "designRules": [],
42
+ "a11yRules": ["headings per benefit"],
43
+ "seoRules": [],
44
+ "compatiblePrev": ["hero", "trust-bar"],
45
+ "compatibleNext": ["services", "process"],
46
+ "examplePrompts": ["three benefits"],
47
+ "commonMistakes": ["walls of text"]
48
+ },
49
+ {
50
+ "id": "services",
51
+ "role": "services",
52
+ "blueprintFile": "services-grid.html",
53
+ "inputs": ["items"],
54
+ "requiredContent": ["serviceItems"],
55
+ "optionalContent": [],
56
+ "designRules": [],
57
+ "a11yRules": ["card titles as headings"],
58
+ "seoRules": ["service names as keywords"],
59
+ "compatiblePrev": ["benefits", "trust-bar", "hero"],
60
+ "compatibleNext": ["process", "testimonials", "pricing"],
61
+ "examplePrompts": ["services grid for tax advisor"],
62
+ "commonMistakes": ["vague service titles"]
63
+ },
64
+ {
65
+ "id": "process",
66
+ "role": "process",
67
+ "blueprintFile": "process-steps.html",
68
+ "inputs": ["steps"],
69
+ "requiredContent": ["steps"],
70
+ "optionalContent": [],
71
+ "designRules": [],
72
+ "a11yRules": ["ordered list semantics"],
73
+ "seoRules": [],
74
+ "compatiblePrev": ["services", "benefits"],
75
+ "compatibleNext": ["testimonials", "pricing", "faq"],
76
+ "examplePrompts": ["how it works in 4 steps"],
77
+ "commonMistakes": ["more than 6 steps"]
78
+ },
79
+ {
80
+ "id": "testimonials",
81
+ "role": "testimonials",
82
+ "blueprintFile": "testimonials.html",
83
+ "inputs": ["quotes"],
84
+ "requiredContent": ["quotes"],
85
+ "optionalContent": ["avatars"],
86
+ "designRules": [],
87
+ "a11yRules": ["cite attribution"],
88
+ "seoRules": [],
89
+ "compatiblePrev": ["services", "process"],
90
+ "compatibleNext": ["pricing", "faq", "contact"],
91
+ "examplePrompts": ["client testimonials"],
92
+ "commonMistakes": ["anonymous quotes only"]
93
+ },
94
+ {
95
+ "id": "pricing",
96
+ "role": "pricing",
97
+ "blueprintFile": "pricing-table.html",
98
+ "inputs": ["plans"],
99
+ "requiredContent": ["plans"],
100
+ "optionalContent": [],
101
+ "designRules": [],
102
+ "a11yRules": ["table or card semantics clear"],
103
+ "seoRules": [],
104
+ "compatiblePrev": ["services", "testimonials"],
105
+ "compatibleNext": ["faq", "cta"],
106
+ "examplePrompts": ["three pricing tiers"],
107
+ "commonMistakes": ["unclear currency"]
108
+ },
109
+ {
110
+ "id": "faq",
111
+ "role": "faq",
112
+ "blueprintFile": "faq-section.html",
113
+ "inputs": ["items"],
114
+ "requiredContent": ["questions"],
115
+ "optionalContent": [],
116
+ "designRules": ["faq-questions", "faq-pattern"],
117
+ "a11yRules": ["accordion keyboard support"],
118
+ "seoRules": ["FAQPage-ready question text"],
119
+ "compatiblePrev": ["testimonials", "pricing", "process"],
120
+ "compatibleNext": ["contact", "cta", "footer"],
121
+ "examplePrompts": ["FAQ with accordion"],
122
+ "commonMistakes": ["non-questions as titles"]
123
+ },
124
+ {
125
+ "id": "contact",
126
+ "role": "contact",
127
+ "blueprintFile": "form-contact.html",
128
+ "inputs": ["fields"],
129
+ "requiredContent": ["name", "email", "message"],
130
+ "optionalContent": ["phone"],
131
+ "designRules": ["contact-labels", "contact-summary"],
132
+ "a11yRules": ["labels", "form-summary"],
133
+ "seoRules": [],
134
+ "compatiblePrev": ["faq", "testimonials"],
135
+ "compatibleNext": ["footer", "cta"],
136
+ "examplePrompts": ["contact form with validation summary"],
137
+ "commonMistakes": ["placeholder-only labels"]
138
+ },
139
+ {
140
+ "id": "cta",
141
+ "role": "cta",
142
+ "blueprintFile": "cta-band.html",
143
+ "inputs": ["title", "cta"],
144
+ "requiredContent": ["headline", "primaryCta"],
145
+ "optionalContent": ["secondaryCta"],
146
+ "designRules": ["hero-cta-max"],
147
+ "a11yRules": ["button semantics"],
148
+ "seoRules": [],
149
+ "compatiblePrev": ["faq", "pricing", "testimonials"],
150
+ "compatibleNext": ["footer"],
151
+ "examplePrompts": ["final CTA band"],
152
+ "commonMistakes": ["competing CTAs"]
153
+ },
154
+ {
155
+ "id": "footer",
156
+ "role": "footer",
157
+ "blueprintFile": "footer-simple.html",
158
+ "inputs": ["brand", "links"],
159
+ "requiredContent": ["brand"],
160
+ "optionalContent": ["legal", "social"],
161
+ "designRules": [],
162
+ "a11yRules": ["contentinfo landmark"],
163
+ "seoRules": ["legal links"],
164
+ "compatiblePrev": ["cta", "contact", "faq"],
165
+ "compatibleNext": [],
166
+ "examplePrompts": ["site footer"],
167
+ "commonMistakes": ["missing legal links on regulated niches"]
168
+ },
169
+ {
170
+ "id": "navbar",
171
+ "role": "navbar",
172
+ "blueprintFile": "navbar-header.html",
173
+ "inputs": ["brand", "links"],
174
+ "requiredContent": ["brand"],
175
+ "optionalContent": ["cta", "search"],
176
+ "designRules": [],
177
+ "a11yRules": ["nav landmark"],
178
+ "seoRules": ["internal links"],
179
+ "compatiblePrev": [],
180
+ "compatibleNext": ["hero"],
181
+ "examplePrompts": ["marketing navbar"],
182
+ "commonMistakes": ["too many links"]
183
+ }
184
+ ]
185
+ }
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-7MCGPHVC.js";
5
5
  import {
6
6
  lazyDefine
7
- } from "./chunk-RSMRR27R.js";
7
+ } from "./chunk-2TGCVDUL.js";
8
8
 
9
9
  // core/motion/effects.js
10
10
  var VISIBLE_CLASS = "velin-in-view";
@@ -330,7 +330,7 @@ function registerBuiltins() {
330
330
  el.appendChild(btn);
331
331
  }
332
332
  await lazyDefine("velin-copy");
333
- const { initHighlight, highlightElement } = await import("./highlight-GJHHV4KM.js");
333
+ const { initHighlight, highlightElement } = await import("./highlight-IBDX4XWS.js");
334
334
  const immediate = el.getAttribute("data-velin-highlight") === "immediate" || typeof matchMedia !== "undefined" && matchMedia("(prefers-reduced-motion: reduce)").matches;
335
335
  if (immediate) {
336
336
  await highlightElement(el);
@@ -372,7 +372,7 @@ async function bootAttributes(root = document) {
372
372
  }
373
373
  initMotion({ root });
374
374
  if (typeof HTMLElement !== "undefined") {
375
- const { bindDeclarativeSearch } = await import("./velin-search-7B4KJ6TX.js");
375
+ const { bindDeclarativeSearch } = await import("./velin-search-B3L6J2RP.js");
376
376
  bindDeclarativeSearch(root);
377
377
  if (!document.querySelector("velin-announcer")) {
378
378
  const { getAnnouncer } = await import("./a11y-utils-IRC7LOPF.js");
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-7MCGPHVC.js";
5
5
  import {
6
6
  lazyDefine
7
- } from "./chunk-QVHYL3R4.js";
7
+ } from "./chunk-BHR3ZG6U.js";
8
8
 
9
9
  // core/motion/effects.js
10
10
  var VISIBLE_CLASS = "velin-in-view";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-7MCGPHVC.js";
5
5
  import {
6
6
  lazyDefine
7
- } from "./chunk-IEHKRARD.js";
7
+ } from "./chunk-7YSO2OQ2.js";
8
8
 
9
9
  // core/motion/effects.js
10
10
  var VISIBLE_CLASS = "velin-in-view";
@@ -330,7 +330,7 @@ function registerBuiltins() {
330
330
  el.appendChild(btn);
331
331
  }
332
332
  await lazyDefine("velin-copy");
333
- const { initHighlight, highlightElement } = await import("./highlight-GJHHV4KM.js");
333
+ const { initHighlight, highlightElement } = await import("./highlight-M2ELQNYK.js");
334
334
  const immediate = el.getAttribute("data-velin-highlight") === "immediate" || typeof matchMedia !== "undefined" && matchMedia("(prefers-reduced-motion: reduce)").matches;
335
335
  if (immediate) {
336
336
  await highlightElement(el);
@@ -372,7 +372,7 @@ async function bootAttributes(root = document) {
372
372
  }
373
373
  initMotion({ root });
374
374
  if (typeof HTMLElement !== "undefined") {
375
- const { bindDeclarativeSearch } = await import("./velin-search-FDHEMCSO.js");
375
+ const { bindDeclarativeSearch } = await import("./velin-search-B3L6J2RP.js");
376
376
  bindDeclarativeSearch(root);
377
377
  if (!document.querySelector("velin-announcer")) {
378
378
  const { getAnnouncer } = await import("./a11y-utils-IRC7LOPF.js");
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-7MCGPHVC.js";
5
5
  import {
6
6
  lazyDefine
7
- } from "./chunk-SRL6EWHP.js";
7
+ } from "./chunk-TUGIPKW5.js";
8
8
 
9
9
  // core/motion/effects.js
10
10
  var VISIBLE_CLASS = "velin-in-view";
@@ -330,7 +330,7 @@ function registerBuiltins() {
330
330
  el.appendChild(btn);
331
331
  }
332
332
  await lazyDefine("velin-copy");
333
- const { initHighlight, highlightElement } = await import("./highlight-GJHHV4KM.js");
333
+ const { initHighlight, highlightElement } = await import("./highlight-M2ELQNYK.js");
334
334
  const immediate = el.getAttribute("data-velin-highlight") === "immediate" || typeof matchMedia !== "undefined" && matchMedia("(prefers-reduced-motion: reduce)").matches;
335
335
  if (immediate) {
336
336
  await highlightElement(el);
@@ -372,7 +372,7 @@ async function bootAttributes(root = document) {
372
372
  }
373
373
  initMotion({ root });
374
374
  if (typeof HTMLElement !== "undefined") {
375
- const { bindDeclarativeSearch } = await import("./velin-search-7B4KJ6TX.js");
375
+ const { bindDeclarativeSearch } = await import("./velin-search-L3UG6NDQ.js");
376
376
  bindDeclarativeSearch(root);
377
377
  if (!document.querySelector("velin-announcer")) {
378
378
  const { getAnnouncer } = await import("./a11y-utils-IRC7LOPF.js");
@@ -0,0 +1,391 @@
1
+ import {
2
+ disconnectInViewObserver,
3
+ observeInView
4
+ } from "./chunk-7MCGPHVC.js";
5
+ import {
6
+ lazyDefine
7
+ } from "./chunk-5JWGUAPC.js";
8
+
9
+ // core/motion/effects.js
10
+ var VISIBLE_CLASS = "velin-in-view";
11
+ var EFFECT_MAP = {
12
+ reveal: ["velin-animate-on-scroll"],
13
+ fade: ["velin-animate-on-scroll", "velin-animate-on-scroll--fade"],
14
+ slide: ["velin-animate-on-scroll", "velin-animate-on-scroll--slide-up"],
15
+ "slide-up": ["velin-animate-on-scroll", "velin-animate-on-scroll--slide-up"],
16
+ "slide-down": ["velin-animate-on-scroll", "velin-animate-on-scroll--slide-down"],
17
+ "slide-left": ["velin-animate-on-scroll", "velin-animate-on-scroll--slide-left"],
18
+ "slide-right": ["velin-animate-on-scroll", "velin-animate-on-scroll--slide-right"],
19
+ scale: ["velin-animate-on-scroll", "velin-animate-on-scroll--scale"],
20
+ parallax: ["velin-parallax"],
21
+ "parallax-slow": ["velin-parallax", "velin-parallax--slow"],
22
+ hover: ["velin-animate-hover"],
23
+ "hover-lift": ["velin-animate-hover"],
24
+ flip: ["velin-animate-scale-in"],
25
+ blur: ["velin-animate-fade-in"]
26
+ };
27
+ function applyEffects(el, attrs = {}) {
28
+ const classes = /* @__PURE__ */ new Set();
29
+ for (const [name, value] of Object.entries(attrs)) {
30
+ if (value === "false" || value === "off") continue;
31
+ const mapped = EFFECT_MAP[name];
32
+ if (mapped) mapped.forEach((c) => classes.add(c));
33
+ if (name === "slide" && value && value !== "true" && value !== "") {
34
+ const key = `slide-${value}`;
35
+ EFFECT_MAP[key]?.forEach((c) => classes.add(c));
36
+ }
37
+ }
38
+ classes.forEach((c) => el.classList.add(c));
39
+ if (!el.classList.contains("velin-animate-on-scroll") && attrs.reveal !== void 0) {
40
+ el.classList.add("velin-animate-on-scroll");
41
+ }
42
+ return [...classes];
43
+ }
44
+ function markVisible(el) {
45
+ el.classList.add(VISIBLE_CLASS);
46
+ el.dataset.velinVisible = "true";
47
+ }
48
+ function prefersReducedMotion() {
49
+ return typeof window !== "undefined" && window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
50
+ }
51
+
52
+ // core/motion/stagger.js
53
+ var STAGGER_ATTR = "velin-stagger";
54
+ function applyStagger(listEl, value = "true") {
55
+ const base = value === "true" || value === "" ? 60 : parseInt(value, 10) || 60;
56
+ const children = [...listEl.children];
57
+ children.forEach((child, i) => {
58
+ child.style.setProperty("--velin-stagger-delay", `${i * base}ms`);
59
+ child.classList.add("velin-stagger-item");
60
+ });
61
+ listEl.classList.add("velin-stagger");
62
+ }
63
+ function enhanceStagger(root = document) {
64
+ root.querySelectorAll(`[${STAGGER_ATTR}]`).forEach((el) => {
65
+ if (el.dataset.velinStaggerDone) return;
66
+ el.dataset.velinStaggerDone = "1";
67
+ applyStagger(el, el.getAttribute(STAGGER_ATTR) || "true");
68
+ });
69
+ }
70
+
71
+ // core/motion/scroll.js
72
+ function smoothScrollTo(target, options = {}) {
73
+ const reduced = typeof window !== "undefined" && window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
74
+ const el = typeof target === "string" ? document.querySelector(target) : target;
75
+ if (!el) return;
76
+ el.scrollIntoView({
77
+ behavior: reduced || options.instant ? "auto" : "smooth",
78
+ block: options.block || "start",
79
+ inline: options.inline || "nearest"
80
+ });
81
+ if (el.tabIndex < 0 && !el.hasAttribute("tabindex")) {
82
+ el.setAttribute("tabindex", "-1");
83
+ }
84
+ el.focus({ preventScroll: true });
85
+ }
86
+ function bindSmoothScroll(root = document) {
87
+ root.querySelectorAll("[velin-scroll]").forEach((link) => {
88
+ if (link.dataset.velinScrollBound) return;
89
+ link.dataset.velinScrollBound = "1";
90
+ link.addEventListener("click", (e) => {
91
+ const href = link.getAttribute("href");
92
+ if (!href || !href.startsWith("#")) return;
93
+ const target = document.querySelector(href);
94
+ if (!target) return;
95
+ e.preventDefault();
96
+ smoothScrollTo(target);
97
+ });
98
+ });
99
+ }
100
+
101
+ // core/motion/index.js
102
+ var MOTION_ATTRS = ["velin-reveal", "velin-fade", "velin-slide", "velin-scale", "velin-parallax", "velin-hover"];
103
+ var teardownFns = [];
104
+ function initMotion(options = {}) {
105
+ const root = options.root || (typeof document !== "undefined" ? document : null);
106
+ if (!root) return () => {
107
+ };
108
+ const selector = options.selector || [
109
+ "[velin-reveal]",
110
+ "[velin-fade]",
111
+ "[velin-slide]",
112
+ "[velin-scale]",
113
+ "[velin-parallax]",
114
+ "[velin-hover]",
115
+ ".velin-animate-on-scroll"
116
+ ].join(",");
117
+ const elements = root.querySelectorAll(selector);
118
+ const reduced = prefersReducedMotion();
119
+ for (const el of elements) {
120
+ if (el.dataset.velinMotionInit) continue;
121
+ el.dataset.velinMotionInit = "1";
122
+ const attrs = {};
123
+ for (const name of MOTION_ATTRS) {
124
+ if (el.hasAttribute(name)) attrs[name.replace("velin-", "")] = el.getAttribute(name) || "true";
125
+ }
126
+ applyEffects(el, attrs);
127
+ if (reduced) {
128
+ markVisible(el);
129
+ continue;
130
+ }
131
+ const stop = observeInView(el, (node) => markVisible(node));
132
+ teardownFns.push(stop);
133
+ }
134
+ enhanceStagger(root);
135
+ bindSmoothScroll(root);
136
+ return () => {
137
+ teardownFns.forEach((fn) => fn());
138
+ teardownFns = [];
139
+ disconnectInViewObserver();
140
+ };
141
+ }
142
+
143
+ // core/attributes/registry.js
144
+ var registry = /* @__PURE__ */ new Map();
145
+ function registerAttribute(name, handler) {
146
+ registry.set(name, handler);
147
+ }
148
+ function getAttributeHandler(name) {
149
+ return registry.get(name);
150
+ }
151
+ function bridgeComponent(el, tag, attrs = {}) {
152
+ el.setAttribute("data-velin-component", tag);
153
+ for (const [k, v] of Object.entries(attrs)) {
154
+ if (v != null) el.setAttribute(k, v);
155
+ }
156
+ return lazyDefine(tag);
157
+ }
158
+ function registerBuiltins() {
159
+ registerAttribute("velin-modal", {
160
+ enhance(el) {
161
+ bridgeComponent(el, "velin-modal", { open: el.getAttribute("velin-modal") || "" });
162
+ }
163
+ });
164
+ registerAttribute("velin-tabs", { enhance: (el) => bridgeComponent(el, "velin-tabs") });
165
+ registerAttribute("velin-accordion", { enhance: (el) => bridgeComponent(el, "velin-accordion") });
166
+ registerAttribute("velin-tooltip", {
167
+ enhance(el) {
168
+ const tip = el.getAttribute("velin-tooltip") || el.getAttribute("title") || "";
169
+ if (tip && el.hasAttribute("title")) el.removeAttribute("title");
170
+ if (el.tagName === "VELIN-TOOLTIP" || el.tagName === "VELIN-TOOLTIP-WC") {
171
+ el.setAttribute("content", tip);
172
+ return lazyDefine("velin-tooltip");
173
+ }
174
+ const wc = document.createElement("velin-tooltip");
175
+ wc.setAttribute("content", tip);
176
+ const parent = el.parentElement;
177
+ if (parent) {
178
+ parent.insertBefore(wc, el);
179
+ wc.appendChild(el);
180
+ }
181
+ return lazyDefine("velin-tooltip");
182
+ }
183
+ });
184
+ registerAttribute("velin-copy", {
185
+ enhance(el) {
186
+ const text = el.getAttribute("velin-copy") || el.textContent?.trim() || "";
187
+ if (!el.querySelector("velin-copy")) {
188
+ const wc = document.createElement("velin-copy");
189
+ wc.setAttribute("value", text);
190
+ if (el.tagName === "BUTTON") {
191
+ wc.append(...el.childNodes);
192
+ el.replaceWith(wc);
193
+ return lazyDefine("velin-copy");
194
+ }
195
+ el.appendChild(wc);
196
+ }
197
+ return lazyDefine("velin-copy");
198
+ }
199
+ });
200
+ registerAttribute("velin-counter", {
201
+ enhance(el) {
202
+ bridgeComponent(el, "velin-counter", {
203
+ value: el.getAttribute("velin-counter") || "0"
204
+ });
205
+ }
206
+ });
207
+ registerAttribute("velin-notify", {
208
+ async enhance(el) {
209
+ await lazyDefine("velin-toast");
210
+ el.addEventListener("click", () => {
211
+ const msg = el.getAttribute("velin-notify") || el.textContent || "";
212
+ document.dispatchEvent(
213
+ new CustomEvent("velin-toast-show", { detail: { message: msg, variant: el.dataset.variant || "info" } })
214
+ );
215
+ });
216
+ }
217
+ });
218
+ registerAttribute("velin-theme", {
219
+ enhance(el) {
220
+ const theme = el.getAttribute("velin-theme") || "toggle";
221
+ if (theme === "toggle") {
222
+ if (!el.querySelector("velin-theme-toggle")) {
223
+ el.appendChild(document.createElement("velin-theme-toggle"));
224
+ }
225
+ return lazyDefine("velin-theme-toggle");
226
+ }
227
+ document.documentElement.setAttribute("data-velin-theme", theme);
228
+ }
229
+ });
230
+ registerAttribute("velin-scroll-top", {
231
+ enhance(el) {
232
+ const raw = el.getAttribute("velin-scroll-top");
233
+ const threshold = raw && raw !== "true" ? raw : "300";
234
+ if (el.tagName === "VELIN-SCROLL-TOP") {
235
+ if (raw && raw !== "true") el.setAttribute("threshold", threshold);
236
+ return lazyDefine("velin-scroll-top");
237
+ }
238
+ let wc = document.querySelector("velin-scroll-top");
239
+ if (!wc) {
240
+ wc = document.createElement("velin-scroll-top");
241
+ wc.setAttribute("threshold", threshold);
242
+ (el === document.body || el === document.documentElement ? document.body : el).appendChild(wc);
243
+ }
244
+ return lazyDefine("velin-scroll-top");
245
+ }
246
+ });
247
+ registerAttribute("velin-progress", {
248
+ enhance(el) {
249
+ const ring = el.hasAttribute("ring");
250
+ if (ring) return bridgeComponent(el, "velin-progress-ring");
251
+ el.classList.add("velin-progress");
252
+ const val = parseInt(el.getAttribute("velin-progress") || "0", 10);
253
+ el.setAttribute("role", "progressbar");
254
+ el.setAttribute("aria-valuenow", String(val));
255
+ el.style.setProperty("--velin-progress", `${Math.min(100, val)}%`);
256
+ }
257
+ });
258
+ registerAttribute("velin-search", {
259
+ async enhance(el) {
260
+ if (el.tagName !== "VELIN-SEARCH") {
261
+ const host = document.createElement("velin-search");
262
+ host.setAttribute("index", el.getAttribute("data-search-index") || "/search-index.json");
263
+ el.replaceWith(host);
264
+ host.appendChild(el);
265
+ }
266
+ return lazyDefine("velin-search");
267
+ }
268
+ });
269
+ registerAttribute("velin-lazy", {
270
+ enhance(el) {
271
+ if (el.tagName === "IMG") {
272
+ el.loading = "lazy";
273
+ el.decoding = "async";
274
+ if (el.hasAttribute("velin-skeleton") || el.dataset.velinSkeleton) {
275
+ el.classList.add("velin-skeleton", "velin-skeleton--image");
276
+ el.addEventListener("load", () => el.classList.remove("velin-skeleton", "velin-skeleton--image"), { once: true });
277
+ }
278
+ }
279
+ }
280
+ });
281
+ registerAttribute("velin-skeleton", {
282
+ enhance(el) {
283
+ const variant = el.getAttribute("velin-skeleton") || "text";
284
+ el.classList.add("velin-skeleton", `velin-skeleton--${variant}`);
285
+ const hasText = Boolean(el.textContent?.trim()) && el.children.length > 0;
286
+ if (!hasText && !el.textContent?.trim()) {
287
+ el.setAttribute("aria-hidden", "true");
288
+ }
289
+ }
290
+ });
291
+ registerAttribute("velin-loading", {
292
+ enhance(el) {
293
+ el.classList.add("velin-spinner");
294
+ el.setAttribute("aria-busy", "true");
295
+ el.setAttribute("role", "status");
296
+ if (!el.getAttribute("aria-label")?.trim()) {
297
+ el.setAttribute("aria-label", "Loading");
298
+ }
299
+ }
300
+ });
301
+ registerAttribute("velin-grid", {
302
+ enhance(el) {
303
+ const cols = el.getAttribute("velin-grid") || "auto";
304
+ el.classList.add("velin-grid");
305
+ if (cols !== "auto") el.style.setProperty("--velin-grid-cols", cols);
306
+ }
307
+ });
308
+ registerAttribute("velin-anchor", {
309
+ enhance(el) {
310
+ if (!el.id && el.getAttribute("velin-anchor")) el.id = el.getAttribute("velin-anchor");
311
+ el.setAttribute("tabindex", "-1");
312
+ }
313
+ });
314
+ registerAttribute("velin-code", {
315
+ async enhance(el) {
316
+ const lang = el.getAttribute("velin-code") || el.getAttribute("language") || el.getAttribute("data-language") || "";
317
+ el.classList.add("velin-code-block");
318
+ if (lang && lang !== "true") {
319
+ el.dataset.language = lang;
320
+ if (!el.getAttribute("language")) el.setAttribute("language", lang);
321
+ }
322
+ if (!el.querySelector("[data-velin-copy]")) {
323
+ const btn = document.createElement("button");
324
+ btn.type = "button";
325
+ btn.className = "velin-code-block__copy velin-btn velin-btn--sm";
326
+ btn.textContent = "Copy";
327
+ btn.setAttribute("data-velin-copy", "");
328
+ btn.setAttribute("velin-copy", el.querySelector("code")?.textContent || el.textContent || "");
329
+ el.style.position = "relative";
330
+ el.appendChild(btn);
331
+ }
332
+ await lazyDefine("velin-copy");
333
+ const { initHighlight, highlightElement } = await import("./highlight-M2ELQNYK.js");
334
+ const immediate = el.getAttribute("data-velin-highlight") === "immediate" || typeof matchMedia !== "undefined" && matchMedia("(prefers-reduced-motion: reduce)").matches;
335
+ if (immediate) {
336
+ await highlightElement(el);
337
+ } else {
338
+ initHighlight(el, { root: el });
339
+ }
340
+ }
341
+ });
342
+ registerAttribute("velin-quote", {
343
+ enhance(el) {
344
+ if (el.tagName === "BLOCKQUOTE" || el.tagName === "Q") {
345
+ el.classList.add("velin-quote");
346
+ }
347
+ }
348
+ });
349
+ registerAttribute("velin-highlight", {
350
+ enhance(el) {
351
+ el.classList.add("velin-highlight");
352
+ }
353
+ });
354
+ for (const motion of ["velin-reveal", "velin-fade", "velin-slide", "velin-scale", "velin-parallax", "velin-hover", "velin-stagger", "velin-scroll"]) {
355
+ registerAttribute(motion, { enhance() {
356
+ } });
357
+ }
358
+ }
359
+ registerBuiltins();
360
+ var enhanced = /* @__PURE__ */ new WeakSet();
361
+ async function bootAttributes(root = document) {
362
+ const selector = [...registry.keys()].map((a) => `[${a}]`).join(",");
363
+ const elements = root.querySelectorAll(selector);
364
+ for (const el of elements) {
365
+ if (enhanced.has(el)) continue;
366
+ for (const attr of registry.keys()) {
367
+ if (!el.hasAttribute(attr)) continue;
368
+ const handler = registry.get(attr);
369
+ if (handler?.enhance) await handler.enhance(el);
370
+ }
371
+ enhanced.add(el);
372
+ }
373
+ initMotion({ root });
374
+ if (typeof HTMLElement !== "undefined") {
375
+ const { bindDeclarativeSearch } = await import("./velin-search-B3L6J2RP.js");
376
+ bindDeclarativeSearch(root);
377
+ if (!document.querySelector("velin-announcer")) {
378
+ const { getAnnouncer } = await import("./a11y-utils-IRC7LOPF.js");
379
+ getAnnouncer();
380
+ }
381
+ }
382
+ }
383
+ function listRegisteredAttributes() {
384
+ return [...registry.keys()];
385
+ }
386
+ export {
387
+ bootAttributes,
388
+ getAttributeHandler,
389
+ listRegisteredAttributes,
390
+ registerAttribute
391
+ };