resuxjs 0.4.0-beta.5 → 0.4.0-beta.7

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 (399) hide show
  1. package/README.md +55 -13
  2. package/dist/bin.d.ts +1 -1
  3. package/dist/bin.js +2 -4
  4. package/dist/bin.js.map +1 -1
  5. package/dist/build/index.d.ts +8 -11
  6. package/dist/build/index.js +3 -4
  7. package/dist/build/index.js.map +1 -1
  8. package/dist/cli.d.ts +7 -8
  9. package/dist/cli.js +170 -135
  10. package/dist/cli.js.map +1 -1
  11. package/dist/compiler/adapter.d.ts +5 -8
  12. package/dist/compiler/adapter.js +2 -4
  13. package/dist/compiler/adapter.js.map +1 -1
  14. package/dist/compiler/dev-warnings.d.ts +5 -8
  15. package/dist/compiler/dev-warnings.js +7 -9
  16. package/dist/compiler/dev-warnings.js.map +1 -1
  17. package/dist/compiler/directives.d.ts +3 -6
  18. package/dist/compiler/directives.js +2 -4
  19. package/dist/compiler/directives.js.map +1 -1
  20. package/dist/compiler/implementation.d.ts +22 -24
  21. package/dist/compiler/implementation.js +302 -142
  22. package/dist/compiler/index.d.ts +5 -8
  23. package/dist/compiler/index.js +2 -4
  24. package/dist/compiler/index.js.map +1 -1
  25. package/dist/core/config.d.ts +5 -9
  26. package/dist/core/config.js +2 -3
  27. package/dist/core/config.js.map +1 -1
  28. package/dist/core/hooks.d.ts +6 -9
  29. package/dist/core/hooks.js +2 -3
  30. package/dist/core/hooks.js.map +1 -1
  31. package/dist/core/index.d.ts +1 -1
  32. package/dist/core/index.js +1 -2
  33. package/dist/core/module-container.d.ts +20 -24
  34. package/dist/core/module-container.js +4 -5
  35. package/dist/core/module-container.js.map +1 -1
  36. package/dist/core/resux.d.ts +4 -8
  37. package/dist/core/resux.js +2 -4
  38. package/dist/core/resux.js.map +1 -1
  39. package/dist/create-bin.d.ts +1 -1
  40. package/dist/create-bin.js +2 -4
  41. package/dist/create-bin.js.map +1 -1
  42. package/dist/create.d.ts +2 -5
  43. package/dist/create.js +15 -10
  44. package/dist/create.js.map +1 -1
  45. package/dist/deploy/cloudflare.d.ts +1 -5
  46. package/dist/deploy/cloudflare.js +2 -4
  47. package/dist/deploy/cloudflare.js.map +1 -1
  48. package/dist/deploy/common.d.ts +12 -15
  49. package/dist/deploy/common.js +2 -4
  50. package/dist/deploy/common.js.map +1 -1
  51. package/dist/deploy/framework-runtime.d.ts +1 -4
  52. package/dist/deploy/framework-runtime.js +2 -4
  53. package/dist/deploy/framework-runtime.js.map +1 -1
  54. package/dist/deploy/index.d.ts +2 -6
  55. package/dist/deploy/index.js +7 -6
  56. package/dist/deploy/index.js.map +1 -1
  57. package/dist/deploy/netlify.d.ts +1 -5
  58. package/dist/deploy/netlify.js +3 -5
  59. package/dist/deploy/netlify.js.map +1 -1
  60. package/dist/deploy/node.d.ts +1 -5
  61. package/dist/deploy/node.js +4 -5
  62. package/dist/deploy/node.js.map +1 -1
  63. package/dist/deploy/production-report.d.ts +1 -4
  64. package/dist/deploy/production-report.js +2 -4
  65. package/dist/deploy/production-report.js.map +1 -1
  66. package/dist/deploy/runtime-dependencies.d.ts +4 -7
  67. package/dist/deploy/runtime-dependencies.js +4 -5
  68. package/dist/deploy/runtime-dependencies.js.map +1 -1
  69. package/dist/deploy/static.d.ts +1 -5
  70. package/dist/deploy/static.js +2 -4
  71. package/dist/deploy/static.js.map +1 -1
  72. package/dist/deploy/types.d.ts +7 -10
  73. package/dist/deploy/types.js +1 -1
  74. package/dist/deploy/vercel.d.ts +2 -6
  75. package/dist/deploy/vercel.js +3 -5
  76. package/dist/deploy/vercel.js.map +1 -1
  77. package/dist/fonts/index.d.ts +60 -11
  78. package/dist/fonts/index.js +470 -72
  79. package/dist/fonts/index.js.map +1 -1
  80. package/dist/globals.d.ts +1 -3
  81. package/dist/globals.js +1 -1
  82. package/dist/halal-core/ai/classifyProject.d.ts +3 -7
  83. package/dist/halal-core/ai/classifyProject.js +2 -4
  84. package/dist/halal-core/ai/classifyProject.js.map +1 -1
  85. package/dist/halal-core/ai/classifyRuntimeContent.d.ts +1 -5
  86. package/dist/halal-core/ai/classifyRuntimeContent.js +3 -5
  87. package/dist/halal-core/ai/classifyRuntimeContent.js.map +1 -1
  88. package/dist/halal-core/ai/createProjectSummary.d.ts +1 -4
  89. package/dist/halal-core/ai/createProjectSummary.js +2 -4
  90. package/dist/halal-core/ai/createProjectSummary.js.map +1 -1
  91. package/dist/halal-core/ai/halalClassifierPrompt.d.ts +1 -4
  92. package/dist/halal-core/ai/halalClassifierPrompt.js +2 -3
  93. package/dist/halal-core/ai/redactSensitiveData.d.ts +1 -4
  94. package/dist/halal-core/ai/redactSensitiveData.js +2 -3
  95. package/dist/halal-core/ai/redactSensitiveData.js.map +1 -1
  96. package/dist/halal-core/ai/validateAiResponse.d.ts +1 -5
  97. package/dist/halal-core/ai/validateAiResponse.js +4 -5
  98. package/dist/halal-core/ai/validateAiResponse.js.map +1 -1
  99. package/dist/halal-core/cli/check.d.ts +1 -4
  100. package/dist/halal-core/cli/check.js +5 -6
  101. package/dist/halal-core/cli/check.js.map +1 -1
  102. package/dist/halal-core/cli/explain.d.ts +1 -4
  103. package/dist/halal-core/cli/explain.js +5 -6
  104. package/dist/halal-core/cli/explain.js.map +1 -1
  105. package/dist/halal-core/cli/report.d.ts +1 -4
  106. package/dist/halal-core/cli/report.js +5 -6
  107. package/dist/halal-core/cli/report.js.map +1 -1
  108. package/dist/halal-core/cli/submitReview.d.ts +1 -4
  109. package/dist/halal-core/cli/submitReview.js +5 -6
  110. package/dist/halal-core/cli/submitReview.js.map +1 -1
  111. package/dist/halal-core/cli/verifyReview.d.ts +1 -4
  112. package/dist/halal-core/cli/verifyReview.js +7 -7
  113. package/dist/halal-core/cli/verifyReview.js.map +1 -1
  114. package/dist/halal-core/config.d.ts +9 -11
  115. package/dist/halal-core/config.js +46 -11
  116. package/dist/halal-core/config.js.map +1 -1
  117. package/dist/halal-core/crypto/integrity.d.ts +5 -8
  118. package/dist/halal-core/crypto/integrity.js +2 -4
  119. package/dist/halal-core/crypto/integrity.js.map +1 -1
  120. package/dist/halal-core/enforce.d.ts +5 -8
  121. package/dist/halal-core/enforce.js +17 -16
  122. package/dist/halal-core/enforce.js.map +1 -1
  123. package/dist/halal-core/index.d.ts +6 -6
  124. package/dist/halal-core/index.js +8 -9
  125. package/dist/halal-core/lifecycle.d.ts +1 -4
  126. package/dist/halal-core/lifecycle.js +2 -4
  127. package/dist/halal-core/lifecycle.js.map +1 -1
  128. package/dist/halal-core/policy.d.ts +1 -5
  129. package/dist/halal-core/policy.js +2 -4
  130. package/dist/halal-core/policy.js.map +1 -1
  131. package/dist/halal-core/report/formatBrowserOverlay.d.ts +1 -5
  132. package/dist/halal-core/report/formatBrowserOverlay.js +2 -3
  133. package/dist/halal-core/report/formatBrowserOverlay.js.map +1 -1
  134. package/dist/halal-core/report/formatTerminalReport.d.ts +1 -5
  135. package/dist/halal-core/report/formatTerminalReport.js +2 -3
  136. package/dist/halal-core/report/formatTerminalReport.js.map +1 -1
  137. package/dist/halal-core/report/generateHalalReport.d.ts +2 -6
  138. package/dist/halal-core/report/generateHalalReport.js +8 -7
  139. package/dist/halal-core/report/generateHalalReport.js.map +1 -1
  140. package/dist/halal-core/report/signReport.d.ts +2 -6
  141. package/dist/halal-core/report/signReport.js +2 -4
  142. package/dist/halal-core/report/signReport.js.map +1 -1
  143. package/dist/halal-core/report/verifyReport.d.ts +3 -7
  144. package/dist/halal-core/report/verifyReport.js +4 -6
  145. package/dist/halal-core/report/verifyReport.js.map +1 -1
  146. package/dist/halal-core/review/createReviewRequest.d.ts +1 -5
  147. package/dist/halal-core/review/createReviewRequest.js +4 -5
  148. package/dist/halal-core/review/createReviewRequest.js.map +1 -1
  149. package/dist/halal-core/review/reviewPolicy.d.ts +3 -6
  150. package/dist/halal-core/review/reviewPolicy.js +2 -3
  151. package/dist/halal-core/review/reviewPolicy.js.map +1 -1
  152. package/dist/halal-core/review/signedReviewFile.d.ts +4 -8
  153. package/dist/halal-core/review/signedReviewFile.js +2 -4
  154. package/dist/halal-core/review/signedReviewFile.js.map +1 -1
  155. package/dist/halal-core/review/verifyReviewApproval.d.ts +2 -5
  156. package/dist/halal-core/review/verifyReviewApproval.js +2 -4
  157. package/dist/halal-core/review/verifyReviewApproval.js.map +1 -1
  158. package/dist/halal-core/rules/adultContentRules.d.ts +2 -5
  159. package/dist/halal-core/rules/adultContentRules.js +2 -3
  160. package/dist/halal-core/rules/adultContentRules.js.map +1 -1
  161. package/dist/halal-core/rules/alcoholDrugVapeRules.d.ts +2 -5
  162. package/dist/halal-core/rules/alcoholDrugVapeRules.js +2 -3
  163. package/dist/halal-core/rules/alcoholDrugVapeRules.js.map +1 -1
  164. package/dist/halal-core/rules/childSafetyRules.d.ts +2 -5
  165. package/dist/halal-core/rules/childSafetyRules.js +2 -3
  166. package/dist/halal-core/rules/childSafetyRules.js.map +1 -1
  167. package/dist/halal-core/rules/coreCategories.d.ts +2 -5
  168. package/dist/halal-core/rules/coreCategories.js +2 -3
  169. package/dist/halal-core/rules/coreCategories.js.map +1 -1
  170. package/dist/halal-core/rules/cyberAbuseRules.d.ts +2 -5
  171. package/dist/halal-core/rules/cyberAbuseRules.js +2 -3
  172. package/dist/halal-core/rules/cyberAbuseRules.js.map +1 -1
  173. package/dist/halal-core/rules/defaultBlockedRules.d.ts +1 -5
  174. package/dist/halal-core/rules/defaultBlockedRules.js +12 -11
  175. package/dist/halal-core/rules/defaultBlockedRules.js.map +1 -1
  176. package/dist/halal-core/rules/dependencyRules.d.ts +2 -5
  177. package/dist/halal-core/rules/dependencyRules.js +2 -3
  178. package/dist/halal-core/rules/dependencyRules.js.map +1 -1
  179. package/dist/halal-core/rules/endpointRules.d.ts +2 -5
  180. package/dist/halal-core/rules/endpointRules.js +2 -3
  181. package/dist/halal-core/rules/endpointRules.js.map +1 -1
  182. package/dist/halal-core/rules/environmentalHarmRules.d.ts +2 -5
  183. package/dist/halal-core/rules/environmentalHarmRules.js +2 -3
  184. package/dist/halal-core/rules/environmentalHarmRules.js.map +1 -1
  185. package/dist/halal-core/rules/financeRibaRules.d.ts +2 -5
  186. package/dist/halal-core/rules/financeRibaRules.js +2 -3
  187. package/dist/halal-core/rules/financeRibaRules.js.map +1 -1
  188. package/dist/halal-core/rules/gamblingRules.d.ts +2 -5
  189. package/dist/halal-core/rules/gamblingRules.js +2 -3
  190. package/dist/halal-core/rules/gamblingRules.js.map +1 -1
  191. package/dist/halal-core/rules/generalHarmRules.d.ts +2 -5
  192. package/dist/halal-core/rules/generalHarmRules.js +2 -3
  193. package/dist/halal-core/rules/generalHarmRules.js.map +1 -1
  194. package/dist/halal-core/rules/healthHarmRules.d.ts +2 -5
  195. package/dist/halal-core/rules/healthHarmRules.js +2 -3
  196. package/dist/halal-core/rules/healthHarmRules.js.map +1 -1
  197. package/dist/halal-core/rules/keywordRules.d.ts +1 -4
  198. package/dist/halal-core/rules/keywordRules.js +2 -3
  199. package/dist/halal-core/rules/keywordRules.js.map +1 -1
  200. package/dist/halal-core/rules/privacyAbuseRules.d.ts +2 -5
  201. package/dist/halal-core/rules/privacyAbuseRules.js +2 -3
  202. package/dist/halal-core/rules/privacyAbuseRules.js.map +1 -1
  203. package/dist/halal-core/rules/scamFraudRules.d.ts +2 -5
  204. package/dist/halal-core/rules/scamFraudRules.js +2 -3
  205. package/dist/halal-core/rules/scamFraudRules.js.map +1 -1
  206. package/dist/halal-core/rules/selfHarmRules.d.ts +2 -5
  207. package/dist/halal-core/rules/selfHarmRules.js +2 -3
  208. package/dist/halal-core/rules/selfHarmRules.js.map +1 -1
  209. package/dist/halal-core/rules/violenceExtremismRules.d.ts +2 -5
  210. package/dist/halal-core/rules/violenceExtremismRules.js +2 -3
  211. package/dist/halal-core/rules/violenceExtremismRules.js.map +1 -1
  212. package/dist/halal-core/runtime/guard.d.ts +3 -7
  213. package/dist/halal-core/runtime/guard.js +5 -7
  214. package/dist/halal-core/runtime/guard.js.map +1 -1
  215. package/dist/halal-core/runtime/index.js +1 -2
  216. package/dist/halal-core/runtime/reviewedMemory.d.ts +4 -8
  217. package/dist/halal-core/runtime/reviewedMemory.js +3 -5
  218. package/dist/halal-core/runtime/reviewedMemory.js.map +1 -1
  219. package/dist/halal-core/runtime/serializeRuntimeContent.d.ts +5 -9
  220. package/dist/halal-core/runtime/serializeRuntimeContent.js +4 -6
  221. package/dist/halal-core/runtime/serializeRuntimeContent.js.map +1 -1
  222. package/dist/halal-core/runtime/types.d.ts +9 -13
  223. package/dist/halal-core/runtime/types.js +1 -1
  224. package/dist/halal-core/scanner/scanApiRoutes.d.ts +1 -4
  225. package/dist/halal-core/scanner/scanApiRoutes.js +2 -4
  226. package/dist/halal-core/scanner/scanApiRoutes.js.map +1 -1
  227. package/dist/halal-core/scanner/scanComponents.d.ts +1 -4
  228. package/dist/halal-core/scanner/scanComponents.js +2 -4
  229. package/dist/halal-core/scanner/scanComponents.js.map +1 -1
  230. package/dist/halal-core/scanner/scanContent.d.ts +2 -5
  231. package/dist/halal-core/scanner/scanContent.js +4 -6
  232. package/dist/halal-core/scanner/scanContent.js.map +1 -1
  233. package/dist/halal-core/scanner/scanDependencies.d.ts +1 -4
  234. package/dist/halal-core/scanner/scanDependencies.js +2 -4
  235. package/dist/halal-core/scanner/scanDependencies.js.map +1 -1
  236. package/dist/halal-core/scanner/scanDomains.d.ts +1 -4
  237. package/dist/halal-core/scanner/scanDomains.js +2 -3
  238. package/dist/halal-core/scanner/scanDomains.js.map +1 -1
  239. package/dist/halal-core/scanner/scanEnvNames.d.ts +1 -4
  240. package/dist/halal-core/scanner/scanEnvNames.js +2 -4
  241. package/dist/halal-core/scanner/scanEnvNames.js.map +1 -1
  242. package/dist/halal-core/scanner/scanMetadata.d.ts +2 -5
  243. package/dist/halal-core/scanner/scanMetadata.js +2 -4
  244. package/dist/halal-core/scanner/scanMetadata.js.map +1 -1
  245. package/dist/halal-core/scanner/scanPages.d.ts +1 -4
  246. package/dist/halal-core/scanner/scanPages.js +2 -4
  247. package/dist/halal-core/scanner/scanPages.js.map +1 -1
  248. package/dist/halal-core/scanner/scanProject.d.ts +2 -6
  249. package/dist/halal-core/scanner/scanProject.js +2 -4
  250. package/dist/halal-core/scanner/scanProject.js.map +1 -1
  251. package/dist/halal-core/scanner/scanRoutes.d.ts +1 -4
  252. package/dist/halal-core/scanner/scanRoutes.js +2 -4
  253. package/dist/halal-core/scanner/scanRoutes.js.map +1 -1
  254. package/dist/halal-core/scanner/scanTranslations.d.ts +1 -4
  255. package/dist/halal-core/scanner/scanTranslations.js +2 -4
  256. package/dist/halal-core/scanner/scanTranslations.js.map +1 -1
  257. package/dist/halal-core/status.d.ts +2 -5
  258. package/dist/halal-core/status.js +1 -1
  259. package/dist/halal-core/tamper/verifyCoreIntegrity.d.ts +1 -4
  260. package/dist/halal-core/tamper/verifyCoreIntegrity.js +2 -4
  261. package/dist/halal-core/tamper/verifyCoreIntegrity.js.map +1 -1
  262. package/dist/halal-core/tamper/verifyLifecycleHooks.d.ts +1 -4
  263. package/dist/halal-core/tamper/verifyLifecycleHooks.js +2 -3
  264. package/dist/halal-core/tamper/verifyLifecycleHooks.js.map +1 -1
  265. package/dist/halal-core/tamper/verifyReportSignature.d.ts +1 -5
  266. package/dist/halal-core/tamper/verifyReportSignature.js +4 -5
  267. package/dist/halal-core/tamper/verifyReportSignature.js.map +1 -1
  268. package/dist/halal.d.ts +2 -2
  269. package/dist/halal.js +2 -3
  270. package/dist/i18n/index.d.ts +11 -14
  271. package/dist/i18n/index.js +9 -9
  272. package/dist/i18n/index.js.map +1 -1
  273. package/dist/i18n/shared.d.ts +14 -17
  274. package/dist/i18n/shared.js +5 -6
  275. package/dist/i18n/shared.js.map +1 -1
  276. package/dist/icons/api-fetcher.d.ts +4 -0
  277. package/dist/icons/api-fetcher.js +77 -0
  278. package/dist/icons/api-fetcher.js.map +1 -0
  279. package/dist/icons/cache.d.ts +22 -0
  280. package/dist/icons/cache.js +74 -0
  281. package/dist/icons/cache.js.map +1 -0
  282. package/dist/icons/component.d.ts +157 -0
  283. package/dist/icons/component.js +139 -0
  284. package/dist/icons/component.js.map +1 -0
  285. package/dist/icons/constants.d.ts +14 -0
  286. package/dist/icons/constants.js +16 -0
  287. package/dist/icons/constants.js.map +1 -0
  288. package/dist/icons/css-mode.d.ts +7 -0
  289. package/dist/icons/css-mode.js +51 -0
  290. package/dist/icons/css-mode.js.map +1 -0
  291. package/dist/icons/index.d.ts +14 -162
  292. package/dist/icons/index.js +30 -315
  293. package/dist/icons/index.js.map +1 -1
  294. package/dist/icons/local-svg.d.ts +5 -0
  295. package/dist/icons/local-svg.js +53 -0
  296. package/dist/icons/local-svg.js.map +1 -0
  297. package/dist/icons/normalize.d.ts +5 -0
  298. package/dist/icons/normalize.js +63 -0
  299. package/dist/icons/normalize.js.map +1 -0
  300. package/dist/icons/offline-loader.d.ts +21 -0
  301. package/dist/icons/offline-loader.js +94 -0
  302. package/dist/icons/offline-loader.js.map +1 -0
  303. package/dist/icons/parser.d.ts +5 -0
  304. package/dist/icons/parser.js +89 -0
  305. package/dist/icons/parser.js.map +1 -0
  306. package/dist/icons/registry.d.ts +7 -0
  307. package/dist/icons/registry.js +91 -0
  308. package/dist/icons/registry.js.map +1 -0
  309. package/dist/icons/resolver.d.ts +4 -0
  310. package/dist/icons/resolver.js +45 -0
  311. package/dist/icons/resolver.js.map +1 -0
  312. package/dist/icons/svg-mode.d.ts +4 -0
  313. package/dist/icons/svg-mode.js +54 -0
  314. package/dist/icons/svg-mode.js.map +1 -0
  315. package/dist/icons/transform.d.ts +11 -0
  316. package/dist/icons/transform.js +68 -0
  317. package/dist/icons/transform.js.map +1 -0
  318. package/dist/icons/types.d.ts +49 -0
  319. package/dist/icons/types.js +1 -0
  320. package/dist/index.d.ts +4 -2
  321. package/dist/index.js +2 -2
  322. package/dist/kit/index.d.ts +21 -25
  323. package/dist/kit/index.js +2 -4
  324. package/dist/kit/index.js.map +1 -1
  325. package/dist/nitro-server/index.d.ts +2 -5
  326. package/dist/nitro-server/index.js +2 -3
  327. package/dist/nitro-server/index.js.map +1 -1
  328. package/dist/node.d.ts +2 -6
  329. package/dist/node.js +7 -9
  330. package/dist/node.js.map +1 -1
  331. package/dist/reactivity/computed.d.ts +3 -7
  332. package/dist/reactivity/computed.js +4 -5
  333. package/dist/reactivity/computed.js.map +1 -1
  334. package/dist/reactivity/effect.d.ts +13 -17
  335. package/dist/reactivity/effect.js +11 -11
  336. package/dist/reactivity/effect.js.map +1 -1
  337. package/dist/reactivity/index.d.ts +1 -1
  338. package/dist/reactivity/index.js +3 -4
  339. package/dist/reactivity/reactive.d.ts +5 -8
  340. package/dist/reactivity/reactive.js +5 -7
  341. package/dist/reactivity/reactive.js.map +1 -1
  342. package/dist/reactivity/readonly.js +1 -3
  343. package/dist/reactivity/ref.d.ts +9 -12
  344. package/dist/reactivity/ref.js +6 -5
  345. package/dist/reactivity/ref.js.map +1 -1
  346. package/dist/reactivity/scheduler.d.ts +5 -7
  347. package/dist/reactivity/scheduler.js +2 -3
  348. package/dist/reactivity/scheduler.js.map +1 -1
  349. package/dist/reactivity/types.d.ts +11 -14
  350. package/dist/reactivity/types.js +1 -1
  351. package/dist/reactivity/utils.d.ts +9 -12
  352. package/dist/reactivity/utils.js +2 -3
  353. package/dist/reactivity/utils.js.map +1 -1
  354. package/dist/reactivity/watch.d.ts +3 -6
  355. package/dist/reactivity/watch.js +7 -7
  356. package/dist/reactivity/watch.js.map +1 -1
  357. package/dist/runtime/core.d.ts +4 -20
  358. package/dist/runtime/core.js +11 -24
  359. package/dist/runtime/core.js.map +1 -1
  360. package/dist/runtime/index.d.ts +167 -157
  361. package/dist/runtime/index.js +2835 -1027
  362. package/dist/runtime/index.js.map +1 -1
  363. package/dist/runtime/reactivity.d.ts +4 -4
  364. package/dist/runtime/reactivity.js +2 -3
  365. package/dist/runtime/resume.d.ts +14 -51
  366. package/dist/runtime/resume.js +4 -34
  367. package/dist/runtime/resume.js.map +1 -1
  368. package/dist/runtime/router.d.ts +5 -17
  369. package/dist/runtime/router.js +7 -17
  370. package/dist/runtime/router.js.map +1 -1
  371. package/dist/runtime/streaming.d.ts +6 -13
  372. package/dist/runtime/streaming.js +4 -9
  373. package/dist/runtime/streaming.js.map +1 -1
  374. package/dist/runtime/view-transitions/detect.d.ts +11 -0
  375. package/dist/runtime/view-transitions/detect.js +16 -0
  376. package/dist/runtime/view-transitions/detect.js.map +1 -0
  377. package/dist/runtime/view-transitions/index.d.ts +4 -0
  378. package/dist/runtime/view-transitions/index.js +3 -0
  379. package/dist/runtime/view-transitions/transition.d.ts +4 -0
  380. package/dist/runtime/view-transitions/transition.js +41 -0
  381. package/dist/runtime/view-transitions/transition.js.map +1 -0
  382. package/dist/runtime/view-transitions/types.d.ts +8 -0
  383. package/dist/runtime/view-transitions/types.js +1 -0
  384. package/dist/security/media-fetch.d.ts +10 -13
  385. package/dist/security/media-fetch.js +5 -7
  386. package/dist/security/media-fetch.js.map +1 -1
  387. package/dist/security/path-boundary.d.ts +4 -7
  388. package/dist/security/path-boundary.js +2 -4
  389. package/dist/security/path-boundary.js.map +1 -1
  390. package/dist/ui/index.d.ts +367 -217
  391. package/dist/ui/index.js +199 -152
  392. package/dist/ui/index.js.map +1 -1
  393. package/dist/ui/verification-code.d.ts +134 -0
  394. package/dist/ui/verification-code.js +472 -0
  395. package/dist/ui/verification-code.js.map +1 -0
  396. package/dist/vite-builder/index.d.ts +2 -5
  397. package/dist/vite-builder/index.js +2 -3
  398. package/dist/vite-builder/index.js.map +1 -1
  399. package/package.json +5 -2
@@ -0,0 +1,472 @@
1
+ import { defineComponent, h, mergeProps, nextTick, onBeforeUnmount, onMounted, ref, useId, watch } from "vue";
2
+ // src/ui/verification-code.ts
3
+ const CELL_COLLAPSE_DURATION_MS = 340;
4
+ const CELL_COLLAPSE_DELAY_MS = 22;
5
+ const COLLAPSE_BUFFER_MS = 20;
6
+ const DEFAULT_CELL_STEP_PX = 56;
7
+ function collapseDurationMs(length) {
8
+ return CELL_COLLAPSE_DURATION_MS + Math.max(0, length - 1) * CELL_COLLAPSE_DELAY_MS + COLLAPSE_BUFFER_MS;
9
+ }
10
+ function normalizedLength(value) {
11
+ if (!Number.isFinite(value)) return 4;
12
+ return Math.min(12, Math.max(1, Math.trunc(value)));
13
+ }
14
+ function normalizeStatus(value) {
15
+ return value === "verifying" || value === "success" || value === "error" ? value : "idle";
16
+ }
17
+ function sanitizeValue(value, mode, length) {
18
+ return (mode === "alphanumeric" ? value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase() : value.replace(/\D/g, "")).slice(0, length);
19
+ }
20
+ function prefersReducedMotion() {
21
+ return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
22
+ }
23
+ const RxVerificationCode = defineComponent({
24
+ name: "RxVerificationCode",
25
+ inheritAttrs: false,
26
+ props: {
27
+ modelValue: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ length: {
32
+ type: Number,
33
+ default: 4
34
+ },
35
+ status: {
36
+ type: String,
37
+ default: "idle"
38
+ },
39
+ mode: {
40
+ type: String,
41
+ default: "numeric"
42
+ },
43
+ autoFocus: {
44
+ type: Boolean,
45
+ default: false
46
+ },
47
+ disabled: {
48
+ type: Boolean,
49
+ default: false
50
+ },
51
+ mask: {
52
+ type: Boolean,
53
+ default: false
54
+ },
55
+ name: {
56
+ type: String,
57
+ default: ""
58
+ },
59
+ ariaLabel: {
60
+ type: String,
61
+ default: "Verification code"
62
+ },
63
+ verifyingText: {
64
+ type: String,
65
+ default: "Verifying…"
66
+ },
67
+ successText: {
68
+ type: String,
69
+ default: "Verified and secure"
70
+ },
71
+ errorText: {
72
+ type: String,
73
+ default: "The verification code is invalid"
74
+ },
75
+ unstyled: {
76
+ type: Boolean,
77
+ default: false
78
+ }
79
+ },
80
+ emits: [
81
+ "update:modelValue",
82
+ "change",
83
+ "complete",
84
+ "focus",
85
+ "blur"
86
+ ],
87
+ setup(props, { emit, attrs }) {
88
+ const inputRef = ref(null);
89
+ const focused = ref(false);
90
+ const messageId = `rx-verification-code-${useId()}-message`;
91
+ const initialStatus = normalizeStatus(props.status);
92
+ const phase = ref(initialStatus === "idle" ? "input" : initialStatus);
93
+ let requestedStatus = initialStatus;
94
+ let transitionTimer;
95
+ const clearTransitionTimer = () => {
96
+ if (transitionTimer !== void 0) {
97
+ clearTimeout(transitionTimer);
98
+ transitionTimer = void 0;
99
+ }
100
+ };
101
+ const settleRequestedStatus = () => {
102
+ transitionTimer = void 0;
103
+ phase.value = requestedStatus === "success" ? "success" : "verifying";
104
+ };
105
+ const transitionToStatus = (nextStatus) => {
106
+ requestedStatus = nextStatus;
107
+ if (nextStatus === "idle") {
108
+ clearTransitionTimer();
109
+ phase.value = "input";
110
+ return;
111
+ }
112
+ if (nextStatus === "error") {
113
+ clearTransitionTimer();
114
+ phase.value = "error";
115
+ return;
116
+ }
117
+ if (phase.value === "collapsing") return;
118
+ if (phase.value === "input" || phase.value === "error") {
119
+ if (prefersReducedMotion()) {
120
+ phase.value = nextStatus;
121
+ return;
122
+ }
123
+ phase.value = "collapsing";
124
+ clearTransitionTimer();
125
+ transitionTimer = setTimeout(settleRequestedStatus, collapseDurationMs(normalizedLength(props.length)));
126
+ return;
127
+ }
128
+ phase.value = nextStatus;
129
+ };
130
+ watch(() => props.status, (status) => transitionToStatus(normalizeStatus(status)));
131
+ const focusInput = () => {
132
+ if (props.disabled || phase.value !== "input" && phase.value !== "error") return;
133
+ inputRef.value?.focus();
134
+ };
135
+ const handleInput = (event) => {
136
+ const input = event.target;
137
+ const length = normalizedLength(props.length);
138
+ const mode = props.mode === "alphanumeric" ? "alphanumeric" : "numeric";
139
+ const nextValue = sanitizeValue(input.value, mode, length);
140
+ if (input.value !== nextValue) input.value = nextValue;
141
+ emit("update:modelValue", nextValue);
142
+ emit("change", nextValue);
143
+ if (nextValue.length === length) emit("complete", nextValue);
144
+ };
145
+ const handleFocus = (event) => {
146
+ focused.value = true;
147
+ emit("focus", event);
148
+ };
149
+ const handleBlur = (event) => {
150
+ focused.value = false;
151
+ emit("blur", event);
152
+ };
153
+ onMounted(() => {
154
+ if (props.autoFocus && !props.disabled) nextTick(focusInput);
155
+ });
156
+ onBeforeUnmount(clearTransitionTimer);
157
+ return () => {
158
+ const length = normalizedLength(props.length);
159
+ const mode = props.mode === "alphanumeric" ? "alphanumeric" : "numeric";
160
+ const code = sanitizeValue(String(props.modelValue || ""), mode, length);
161
+ const status = normalizeStatus(props.status);
162
+ const showCells = phase.value === "input" || phase.value === "error" || phase.value === "collapsing";
163
+ const rootClass = props.unstyled ? void 0 : [
164
+ "rx-verification-code",
165
+ focused.value ? "is-focused" : "",
166
+ phase.value === "error" ? "is-error" : "",
167
+ phase.value === "collapsing" ? "is-collapsing" : ""
168
+ ].filter(Boolean);
169
+ const editable = phase.value === "input" || phase.value === "error";
170
+ const { required, form, readonly, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, ...rootAttrs } = attrs;
171
+ const input = h("input", {
172
+ ref: inputRef,
173
+ value: code,
174
+ type: props.mask ? "password" : "text",
175
+ inputmode: mode === "numeric" ? "numeric" : "text",
176
+ pattern: mode === "numeric" ? "[0-9]*" : void 0,
177
+ maxlength: length,
178
+ autocomplete: "one-time-code",
179
+ autocapitalize: mode === "alphanumeric" ? "characters" : "off",
180
+ spellcheck: false,
181
+ disabled: props.disabled,
182
+ readonly: Boolean(readonly) || !editable,
183
+ required: Boolean(required),
184
+ form: typeof form === "string" ? form : void 0,
185
+ name: props.name || void 0,
186
+ "aria-label": props.ariaLabel,
187
+ "aria-labelledby": ariaLabelledby,
188
+ "aria-invalid": status === "error" ? "true" : void 0,
189
+ "aria-describedby": status === "error" && props.errorText ? messageId : ariaDescribedby,
190
+ style: {
191
+ position: "absolute",
192
+ width: "1px",
193
+ height: "1px",
194
+ padding: "0",
195
+ margin: "-1px",
196
+ overflow: "hidden",
197
+ clip: "rect(0, 0, 0, 0)",
198
+ whiteSpace: "nowrap",
199
+ border: "0",
200
+ opacity: "0"
201
+ },
202
+ onInput: handleInput,
203
+ onFocus: handleFocus,
204
+ onBlur: handleBlur
205
+ });
206
+ const cells = Array.from({ length }, (_, index) => {
207
+ const char = code[index] || "";
208
+ const isFilled = char.length > 0;
209
+ const activeIndex = code.length >= length ? length - 1 : code.length;
210
+ const isActive = focused.value && index === activeIndex && phase.value !== "collapsing";
211
+ const shift = ((length - 1) / 2 - index) * DEFAULT_CELL_STEP_PX;
212
+ const rotate = (index - (length - 1) / 2) * 5;
213
+ const cellClass = props.unstyled ? void 0 : [
214
+ "rx-verification-code-cell",
215
+ isFilled ? "is-filled" : "",
216
+ isActive ? "is-active" : ""
217
+ ].filter(Boolean);
218
+ return h("span", {
219
+ key: index,
220
+ class: cellClass,
221
+ "aria-hidden": "true",
222
+ "data-filled": isFilled ? "true" : "false",
223
+ "data-active": isActive ? "true" : "false",
224
+ style: props.unstyled ? void 0 : {
225
+ "--rx-otp-shift": `${shift}px`,
226
+ "--rx-otp-rotate": `${rotate}deg`,
227
+ "--rx-otp-delay": `${index * CELL_COLLAPSE_DELAY_MS}ms`
228
+ }
229
+ }, char ? props.mask ? "•" : char : "\xA0");
230
+ });
231
+ const message = phase.value === "success" ? props.successText : phase.value === "verifying" ? props.verifyingText : phase.value === "error" ? props.errorText : "";
232
+ const statusView = !showCells ? h("div", {
233
+ class: props.unstyled ? void 0 : ["rx-verification-code-status", phase.value === "success" ? "is-success" : "is-verifying"],
234
+ role: "status",
235
+ "aria-live": "polite"
236
+ }, [h("span", {
237
+ class: props.unstyled ? void 0 : ["rx-verification-code-orb", phase.value === "success" ? "is-success" : "is-verifying"],
238
+ "aria-hidden": "true"
239
+ }, phase.value === "success" ? [h("span", { class: props.unstyled ? void 0 : "rx-verification-code-check" }, "✓")] : [h("span", { class: props.unstyled ? void 0 : "rx-verification-code-spinner" })]), message ? h("span", { class: props.unstyled ? void 0 : "rx-verification-code-message" }, message) : null]) : null;
240
+ const errorMessage = phase.value === "error" && props.errorText ? h("span", {
241
+ id: messageId,
242
+ class: props.unstyled ? void 0 : "rx-verification-code-error",
243
+ role: "alert"
244
+ }, props.errorText) : null;
245
+ return h("div", mergeProps(rootAttrs, {
246
+ class: rootClass,
247
+ "data-phase": phase.value,
248
+ "data-status": status,
249
+ "data-disabled": props.disabled ? "true" : "false",
250
+ "data-length": String(length),
251
+ style: props.unstyled ? void 0 : { "--rx-otp-length": String(length) },
252
+ onClick: focusInput
253
+ }), [
254
+ input,
255
+ showCells ? h("div", {
256
+ class: props.unstyled ? void 0 : "rx-verification-code-cells",
257
+ "aria-hidden": "true"
258
+ }, cells) : statusView,
259
+ errorMessage
260
+ ]);
261
+ };
262
+ }
263
+ });
264
+ const verificationCodeStyles = `
265
+ @keyframes rxVerificationFill {
266
+ 0% { transform: translateY(5px) scale(0.72) rotate(-7deg); opacity: 0.2; }
267
+ 60% { transform: translateY(-2px) scale(1.08) rotate(3deg); opacity: 1; }
268
+ 100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
269
+ }
270
+ @keyframes rxVerificationStatusIn {
271
+ 0% { transform: scale(0.18) rotate(-18deg); opacity: 0; }
272
+ 62% { transform: scale(1.12) rotate(5deg); opacity: 1; }
273
+ 100% { transform: scale(1) rotate(0); opacity: 1; }
274
+ }
275
+ @keyframes rxVerificationPulse {
276
+ 0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24); }
277
+ 50% { transform: scale(1.07); box-shadow: 0 10px 28px rgba(37, 99, 235, 0.36); }
278
+ }
279
+ @keyframes rxVerificationSpin {
280
+ to { transform: rotate(360deg); }
281
+ }
282
+ @keyframes rxVerificationShake {
283
+ 0%, 100% { transform: translateX(0); }
284
+ 20% { transform: translateX(-6px); }
285
+ 40% { transform: translateX(5px); }
286
+ 60% { transform: translateX(-4px); }
287
+ 80% { transform: translateX(3px); }
288
+ }
289
+
290
+ .rx-verification-code {
291
+ --rx-verification-accent: #2563eb;
292
+ --rx-verification-accent-soft: #dbeafe;
293
+ --rx-verification-success: #10b981;
294
+ --rx-verification-danger: #ef4444;
295
+ --rx-verification-cell-bg: #ffffff;
296
+ --rx-verification-cell-border: #cbd5e1;
297
+ --rx-verification-cell-text: #0f172a;
298
+ position: relative;
299
+ display: inline-flex;
300
+ width: min(100%, 42rem);
301
+ flex-direction: column;
302
+ align-items: center;
303
+ gap: 0.75rem;
304
+ max-width: 100%;
305
+ cursor: text;
306
+ -webkit-tap-highlight-color: transparent;
307
+ }
308
+ .rx-verification-code[data-disabled="true"] {
309
+ cursor: not-allowed;
310
+ opacity: 0.55;
311
+ }
312
+ .rx-verification-code-cells {
313
+ display: flex;
314
+ align-items: center;
315
+ justify-content: center;
316
+ gap: 0.5rem;
317
+ width: 100%;
318
+ min-height: 3rem;
319
+ perspective: 700px;
320
+ }
321
+ .rx-verification-code-cell {
322
+ display: inline-flex;
323
+ align-items: center;
324
+ justify-content: center;
325
+ width: 3rem;
326
+ max-width: 3rem;
327
+ min-width: 0;
328
+ height: auto;
329
+ aspect-ratio: 1;
330
+ flex: 1 1 3rem;
331
+ box-sizing: border-box;
332
+ border: 1.5px solid var(--rx-verification-cell-border);
333
+ border-radius: 0.75rem;
334
+ background: var(--rx-verification-cell-bg);
335
+ color: var(--rx-verification-cell-text);
336
+ font-size: 1.05rem;
337
+ font-weight: 750;
338
+ line-height: 1;
339
+ font-variant-numeric: tabular-nums;
340
+ box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
341
+ transform-origin: center;
342
+ transition:
343
+ border-color 180ms ease,
344
+ box-shadow 180ms ease,
345
+ background 180ms ease,
346
+ color 180ms ease,
347
+ transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
348
+ opacity 180ms ease;
349
+ }
350
+ .rx-verification-code-cell.is-active {
351
+ border-color: var(--rx-verification-accent);
352
+ box-shadow:
353
+ 0 0 0 3px rgba(37, 99, 235, 0.15),
354
+ 0 6px 18px rgba(37, 99, 235, 0.12);
355
+ transform: translateY(-1px);
356
+ }
357
+ .rx-verification-code-cell.is-filled {
358
+ border-color: transparent;
359
+ color: #ffffff;
360
+ background: linear-gradient(145deg, #60a5fa, var(--rx-verification-accent));
361
+ box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
362
+ animation: rxVerificationFill 300ms cubic-bezier(0.16, 1, 0.3, 1);
363
+ }
364
+ .rx-verification-code.is-collapsing .rx-verification-code-cell {
365
+ border-color: transparent;
366
+ background: linear-gradient(145deg, #60a5fa, var(--rx-verification-accent));
367
+ color: #ffffff;
368
+ box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
369
+ transform:
370
+ translateX(var(--rx-otp-shift))
371
+ scale(0.16)
372
+ rotate(var(--rx-otp-rotate));
373
+ opacity: 0;
374
+ transition:
375
+ transform 340ms cubic-bezier(0.7, 0, 0.84, 0),
376
+ opacity 260ms ease;
377
+ transition-delay: var(--rx-otp-delay);
378
+ }
379
+ .rx-verification-code.is-error .rx-verification-code-cells {
380
+ animation: rxVerificationShake 360ms ease-in-out;
381
+ }
382
+ .rx-verification-code.is-error .rx-verification-code-cell {
383
+ border-color: #fca5a5;
384
+ }
385
+ .rx-verification-code-status {
386
+ min-height: 3rem;
387
+ display: inline-flex;
388
+ flex-direction: column;
389
+ align-items: center;
390
+ justify-content: center;
391
+ gap: 0.5rem;
392
+ animation: rxVerificationStatusIn 420ms cubic-bezier(0.16, 1, 0.3, 1);
393
+ }
394
+ .rx-verification-code-orb {
395
+ width: 3rem;
396
+ height: 3rem;
397
+ display: inline-flex;
398
+ align-items: center;
399
+ justify-content: center;
400
+ border-radius: 9999px;
401
+ }
402
+ .rx-verification-code-orb.is-verifying {
403
+ background: linear-gradient(145deg, #60a5fa, var(--rx-verification-accent));
404
+ animation: rxVerificationPulse 1.25s ease-in-out infinite;
405
+ }
406
+ .rx-verification-code-orb.is-success {
407
+ color: #ffffff;
408
+ background: linear-gradient(145deg, #34d399, var(--rx-verification-success));
409
+ box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
410
+ }
411
+ .rx-verification-code-spinner {
412
+ width: 1.1rem;
413
+ height: 1.1rem;
414
+ box-sizing: border-box;
415
+ border: 2px solid rgba(255, 255, 255, 0.42);
416
+ border-top-color: #ffffff;
417
+ border-radius: 9999px;
418
+ animation: rxVerificationSpin 700ms linear infinite;
419
+ }
420
+ .rx-verification-code-check {
421
+ font-size: 1.5rem;
422
+ font-weight: 800;
423
+ line-height: 1;
424
+ transform: translateY(-1px);
425
+ }
426
+ .rx-verification-code-message {
427
+ color: var(--rx-verification-success);
428
+ font-size: 0.8rem;
429
+ font-weight: 650;
430
+ }
431
+ .rx-verification-code-status.is-verifying .rx-verification-code-message {
432
+ color: #64748b;
433
+ }
434
+ .rx-verification-code-error {
435
+ color: var(--rx-verification-danger);
436
+ font-size: 0.8rem;
437
+ font-weight: 600;
438
+ text-align: center;
439
+ }
440
+
441
+ @media (max-width: 420px) {
442
+ .rx-verification-code-cells {
443
+ gap: 0.375rem;
444
+ }
445
+ .rx-verification-code-cell {
446
+ max-width: 2.65rem;
447
+ border-radius: 0.65rem;
448
+ }
449
+ }
450
+
451
+ @media (prefers-reduced-motion: reduce) {
452
+ .rx-verification-code *,
453
+ .rx-verification-code *::before,
454
+ .rx-verification-code *::after {
455
+ animation-duration: 0.01ms !important;
456
+ animation-iteration-count: 1 !important;
457
+ transition-duration: 0.01ms !important;
458
+ transition-delay: 0ms !important;
459
+ }
460
+ }
461
+ `;
462
+ const verificationCodeAnimationsDisabledStyles = `
463
+ .rx-verification-code *,
464
+ .rx-verification-code *::before,
465
+ .rx-verification-code *::after {
466
+ animation: none !important;
467
+ transition: none !important;
468
+ }
469
+ `;
470
+ export { RxVerificationCode, verificationCodeAnimationsDisabledStyles, verificationCodeStyles };
471
+
472
+ //# sourceMappingURL=verification-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-code.js","names":[],"sources":["../../src/ui/verification-code.ts"],"sourcesContent":["import {\n defineComponent,\n h,\n mergeProps,\n nextTick,\n onBeforeUnmount,\n onMounted,\n ref,\n useId,\n watch\n} from \"vue\";\n\nexport type VerificationCodeStatus = \"idle\" | \"verifying\" | \"success\" | \"error\";\nexport type VerificationCodeMode = \"numeric\" | \"alphanumeric\";\n\ntype VerificationCodePhase = \"input\" | \"collapsing\" | \"verifying\" | \"success\" | \"error\";\n\nconst CELL_COLLAPSE_DURATION_MS = 340;\nconst CELL_COLLAPSE_DELAY_MS = 22;\nconst COLLAPSE_BUFFER_MS = 20;\nconst DEFAULT_CELL_STEP_PX = 56;\n\nfunction collapseDurationMs(length: number): number {\n return CELL_COLLAPSE_DURATION_MS + Math.max(0, length - 1) * CELL_COLLAPSE_DELAY_MS + COLLAPSE_BUFFER_MS;\n}\n\nfunction normalizedLength(value: number): number {\n if (!Number.isFinite(value)) return 4;\n return Math.min(12, Math.max(1, Math.trunc(value)));\n}\n\nfunction normalizeStatus(value: string): VerificationCodeStatus {\n return value === \"verifying\" || value === \"success\" || value === \"error\" ? value : \"idle\";\n}\n\nfunction sanitizeValue(value: string, mode: VerificationCodeMode, length: number): string {\n const clean = mode === \"alphanumeric\"\n ? value.replace(/[^a-zA-Z0-9]/g, \"\").toUpperCase()\n : value.replace(/\\D/g, \"\");\n\n return clean.slice(0, length);\n}\n\nfunction prefersReducedMotion(): boolean {\n return typeof window !== \"undefined\"\n && typeof window.matchMedia === \"function\"\n && window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n}\n\nexport const RxVerificationCode = defineComponent({\n name: \"RxVerificationCode\",\n inheritAttrs: false,\n props: {\n modelValue: { type: String, default: \"\" },\n length: { type: Number, default: 4 },\n status: { type: String, default: \"idle\" },\n mode: { type: String, default: \"numeric\" },\n autoFocus: { type: Boolean, default: false },\n disabled: { type: Boolean, default: false },\n mask: { type: Boolean, default: false },\n name: { type: String, default: \"\" },\n ariaLabel: { type: String, default: \"Verification code\" },\n verifyingText: { type: String, default: \"Verifying…\" },\n successText: { type: String, default: \"Verified and secure\" },\n errorText: { type: String, default: \"The verification code is invalid\" },\n unstyled: { type: Boolean, default: false }\n },\n emits: [\"update:modelValue\", \"change\", \"complete\", \"focus\", \"blur\"],\n setup(props, { emit, attrs }) {\n const inputRef = ref<HTMLInputElement | null>(null);\n const focused = ref(false);\n const messageId = `rx-verification-code-${useId()}-message`;\n const initialStatus = normalizeStatus(props.status);\n const phase = ref<VerificationCodePhase>(\n initialStatus === \"idle\" ? \"input\" : initialStatus\n );\n\n let requestedStatus = initialStatus;\n let transitionTimer: ReturnType<typeof setTimeout> | undefined;\n\n const clearTransitionTimer = () => {\n if (transitionTimer !== undefined) {\n clearTimeout(transitionTimer);\n transitionTimer = undefined;\n }\n };\n\n const settleRequestedStatus = () => {\n transitionTimer = undefined;\n phase.value = requestedStatus === \"success\" ? \"success\" : \"verifying\";\n };\n\n const transitionToStatus = (nextStatus: VerificationCodeStatus) => {\n requestedStatus = nextStatus;\n\n if (nextStatus === \"idle\") {\n clearTransitionTimer();\n phase.value = \"input\";\n return;\n }\n\n if (nextStatus === \"error\") {\n clearTransitionTimer();\n phase.value = \"error\";\n return;\n }\n\n if (phase.value === \"collapsing\") {\n return;\n }\n\n if (phase.value === \"input\" || phase.value === \"error\") {\n if (prefersReducedMotion()) {\n phase.value = nextStatus;\n return;\n }\n\n phase.value = \"collapsing\";\n clearTransitionTimer();\n transitionTimer = setTimeout(settleRequestedStatus, collapseDurationMs(normalizedLength(props.length)));\n return;\n }\n\n phase.value = nextStatus;\n };\n\n watch(\n () => props.status,\n (status) => transitionToStatus(normalizeStatus(status))\n );\n\n const focusInput = () => {\n if (props.disabled || (phase.value !== \"input\" && phase.value !== \"error\")) return;\n inputRef.value?.focus();\n };\n\n const handleInput = (event: Event) => {\n const input = event.target as HTMLInputElement;\n const length = normalizedLength(props.length);\n const mode: VerificationCodeMode = props.mode === \"alphanumeric\" ? \"alphanumeric\" : \"numeric\";\n const nextValue = sanitizeValue(input.value, mode, length);\n\n if (input.value !== nextValue) {\n input.value = nextValue;\n }\n\n emit(\"update:modelValue\", nextValue);\n emit(\"change\", nextValue);\n\n if (nextValue.length === length) {\n emit(\"complete\", nextValue);\n }\n };\n\n const handleFocus = (event: FocusEvent) => {\n focused.value = true;\n emit(\"focus\", event);\n };\n\n const handleBlur = (event: FocusEvent) => {\n focused.value = false;\n emit(\"blur\", event);\n };\n\n onMounted(() => {\n if (props.autoFocus && !props.disabled) {\n void nextTick(focusInput);\n }\n });\n\n onBeforeUnmount(clearTransitionTimer);\n\n return () => {\n const length = normalizedLength(props.length);\n const mode: VerificationCodeMode = props.mode === \"alphanumeric\" ? \"alphanumeric\" : \"numeric\";\n const code = sanitizeValue(String(props.modelValue || \"\"), mode, length);\n const status = normalizeStatus(props.status);\n const showCells = phase.value === \"input\" || phase.value === \"error\" || phase.value === \"collapsing\";\n\n const rootClass = props.unstyled\n ? undefined\n : [\n \"rx-verification-code\",\n focused.value ? \"is-focused\" : \"\",\n phase.value === \"error\" ? \"is-error\" : \"\",\n phase.value === \"collapsing\" ? \"is-collapsing\" : \"\"\n ].filter(Boolean);\n const editable = phase.value === \"input\" || phase.value === \"error\";\n const {\n required,\n form,\n readonly,\n \"aria-labelledby\": ariaLabelledby,\n \"aria-describedby\": ariaDescribedby,\n ...rootAttrs\n } = attrs;\n\n const input = h(\"input\", {\n ref: inputRef,\n value: code,\n type: props.mask ? \"password\" : \"text\",\n inputmode: mode === \"numeric\" ? \"numeric\" : \"text\",\n pattern: mode === \"numeric\" ? \"[0-9]*\" : undefined,\n maxlength: length,\n autocomplete: \"one-time-code\",\n autocapitalize: mode === \"alphanumeric\" ? \"characters\" : \"off\",\n spellcheck: false,\n disabled: props.disabled,\n readonly: Boolean(readonly) || !editable,\n required: Boolean(required),\n form: typeof form === \"string\" ? form : undefined,\n name: props.name || undefined,\n \"aria-label\": props.ariaLabel,\n \"aria-labelledby\": ariaLabelledby,\n \"aria-invalid\": status === \"error\" ? \"true\" : undefined,\n \"aria-describedby\": status === \"error\" && props.errorText ? messageId : ariaDescribedby,\n style: {\n position: \"absolute\",\n width: \"1px\",\n height: \"1px\",\n padding: \"0\",\n margin: \"-1px\",\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n border: \"0\",\n opacity: \"0\"\n },\n onInput: handleInput,\n onFocus: handleFocus,\n onBlur: handleBlur\n });\n\n const cells = Array.from({ length }, (_, index) => {\n const char = code[index] || \"\";\n const isFilled = char.length > 0;\n const activeIndex = code.length >= length ? length - 1 : code.length;\n const isActive = focused.value && index === activeIndex && phase.value !== \"collapsing\";\n const shift = ((length - 1) / 2 - index) * DEFAULT_CELL_STEP_PX;\n const rotate = (index - (length - 1) / 2) * 5;\n\n const cellClass = props.unstyled\n ? undefined\n : [\n \"rx-verification-code-cell\",\n isFilled ? \"is-filled\" : \"\",\n isActive ? \"is-active\" : \"\"\n ].filter(Boolean);\n\n return h(\n \"span\",\n {\n key: index,\n class: cellClass,\n \"aria-hidden\": \"true\",\n \"data-filled\": isFilled ? \"true\" : \"false\",\n \"data-active\": isActive ? \"true\" : \"false\",\n style: props.unstyled\n ? undefined\n : {\n \"--rx-otp-shift\": `${shift}px`,\n \"--rx-otp-rotate\": `${rotate}deg`,\n \"--rx-otp-delay\": `${index * CELL_COLLAPSE_DELAY_MS}ms`\n }\n },\n char ? (props.mask ? \"•\" : char) : \"\\u00a0\"\n );\n });\n\n const message = phase.value === \"success\"\n ? props.successText\n : phase.value === \"verifying\"\n ? props.verifyingText\n : phase.value === \"error\"\n ? props.errorText\n : \"\";\n\n const statusView = !showCells\n ? h(\n \"div\",\n {\n class: props.unstyled\n ? undefined\n : [\n \"rx-verification-code-status\",\n phase.value === \"success\" ? \"is-success\" : \"is-verifying\"\n ],\n role: \"status\",\n \"aria-live\": \"polite\"\n },\n [\n h(\n \"span\",\n {\n class: props.unstyled\n ? undefined\n : [\n \"rx-verification-code-orb\",\n phase.value === \"success\" ? \"is-success\" : \"is-verifying\"\n ],\n \"aria-hidden\": \"true\"\n },\n phase.value === \"success\"\n ? [h(\"span\", { class: props.unstyled ? undefined : \"rx-verification-code-check\" }, \"✓\")]\n : [h(\"span\", { class: props.unstyled ? undefined : \"rx-verification-code-spinner\" })]\n ),\n message\n ? h(\n \"span\",\n { class: props.unstyled ? undefined : \"rx-verification-code-message\" },\n message\n )\n : null\n ]\n )\n : null;\n\n const errorMessage = phase.value === \"error\" && props.errorText\n ? h(\n \"span\",\n {\n id: messageId,\n class: props.unstyled ? undefined : \"rx-verification-code-error\",\n role: \"alert\"\n },\n props.errorText\n )\n : null;\n\n return h(\n \"div\",\n mergeProps(rootAttrs, {\n class: rootClass,\n \"data-phase\": phase.value,\n \"data-status\": status,\n \"data-disabled\": props.disabled ? \"true\" : \"false\",\n \"data-length\": String(length),\n style: props.unstyled ? undefined : { \"--rx-otp-length\": String(length) },\n onClick: focusInput\n }),\n [\n input,\n showCells\n ? h(\n \"div\",\n {\n class: props.unstyled ? undefined : \"rx-verification-code-cells\",\n \"aria-hidden\": \"true\"\n },\n cells\n )\n : statusView,\n errorMessage\n ]\n );\n };\n }\n});\n\nexport const verificationCodeStyles = `\n@keyframes rxVerificationFill {\n 0% { transform: translateY(5px) scale(0.72) rotate(-7deg); opacity: 0.2; }\n 60% { transform: translateY(-2px) scale(1.08) rotate(3deg); opacity: 1; }\n 100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }\n}\n@keyframes rxVerificationStatusIn {\n 0% { transform: scale(0.18) rotate(-18deg); opacity: 0; }\n 62% { transform: scale(1.12) rotate(5deg); opacity: 1; }\n 100% { transform: scale(1) rotate(0); opacity: 1; }\n}\n@keyframes rxVerificationPulse {\n 0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24); }\n 50% { transform: scale(1.07); box-shadow: 0 10px 28px rgba(37, 99, 235, 0.36); }\n}\n@keyframes rxVerificationSpin {\n to { transform: rotate(360deg); }\n}\n@keyframes rxVerificationShake {\n 0%, 100% { transform: translateX(0); }\n 20% { transform: translateX(-6px); }\n 40% { transform: translateX(5px); }\n 60% { transform: translateX(-4px); }\n 80% { transform: translateX(3px); }\n}\n\n.rx-verification-code {\n --rx-verification-accent: #2563eb;\n --rx-verification-accent-soft: #dbeafe;\n --rx-verification-success: #10b981;\n --rx-verification-danger: #ef4444;\n --rx-verification-cell-bg: #ffffff;\n --rx-verification-cell-border: #cbd5e1;\n --rx-verification-cell-text: #0f172a;\n position: relative;\n display: inline-flex;\n width: min(100%, 42rem);\n flex-direction: column;\n align-items: center;\n gap: 0.75rem;\n max-width: 100%;\n cursor: text;\n -webkit-tap-highlight-color: transparent;\n}\n.rx-verification-code[data-disabled=\"true\"] {\n cursor: not-allowed;\n opacity: 0.55;\n}\n.rx-verification-code-cells {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n width: 100%;\n min-height: 3rem;\n perspective: 700px;\n}\n.rx-verification-code-cell {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 3rem;\n max-width: 3rem;\n min-width: 0;\n height: auto;\n aspect-ratio: 1;\n flex: 1 1 3rem;\n box-sizing: border-box;\n border: 1.5px solid var(--rx-verification-cell-border);\n border-radius: 0.75rem;\n background: var(--rx-verification-cell-bg);\n color: var(--rx-verification-cell-text);\n font-size: 1.05rem;\n font-weight: 750;\n line-height: 1;\n font-variant-numeric: tabular-nums;\n box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);\n transform-origin: center;\n transition:\n border-color 180ms ease,\n box-shadow 180ms ease,\n background 180ms ease,\n color 180ms ease,\n transform 180ms cubic-bezier(0.16, 1, 0.3, 1),\n opacity 180ms ease;\n}\n.rx-verification-code-cell.is-active {\n border-color: var(--rx-verification-accent);\n box-shadow:\n 0 0 0 3px rgba(37, 99, 235, 0.15),\n 0 6px 18px rgba(37, 99, 235, 0.12);\n transform: translateY(-1px);\n}\n.rx-verification-code-cell.is-filled {\n border-color: transparent;\n color: #ffffff;\n background: linear-gradient(145deg, #60a5fa, var(--rx-verification-accent));\n box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);\n animation: rxVerificationFill 300ms cubic-bezier(0.16, 1, 0.3, 1);\n}\n.rx-verification-code.is-collapsing .rx-verification-code-cell {\n border-color: transparent;\n background: linear-gradient(145deg, #60a5fa, var(--rx-verification-accent));\n color: #ffffff;\n box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);\n transform:\n translateX(var(--rx-otp-shift))\n scale(0.16)\n rotate(var(--rx-otp-rotate));\n opacity: 0;\n transition:\n transform 340ms cubic-bezier(0.7, 0, 0.84, 0),\n opacity 260ms ease;\n transition-delay: var(--rx-otp-delay);\n}\n.rx-verification-code.is-error .rx-verification-code-cells {\n animation: rxVerificationShake 360ms ease-in-out;\n}\n.rx-verification-code.is-error .rx-verification-code-cell {\n border-color: #fca5a5;\n}\n.rx-verification-code-status {\n min-height: 3rem;\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n animation: rxVerificationStatusIn 420ms cubic-bezier(0.16, 1, 0.3, 1);\n}\n.rx-verification-code-orb {\n width: 3rem;\n height: 3rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: 9999px;\n}\n.rx-verification-code-orb.is-verifying {\n background: linear-gradient(145deg, #60a5fa, var(--rx-verification-accent));\n animation: rxVerificationPulse 1.25s ease-in-out infinite;\n}\n.rx-verification-code-orb.is-success {\n color: #ffffff;\n background: linear-gradient(145deg, #34d399, var(--rx-verification-success));\n box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);\n}\n.rx-verification-code-spinner {\n width: 1.1rem;\n height: 1.1rem;\n box-sizing: border-box;\n border: 2px solid rgba(255, 255, 255, 0.42);\n border-top-color: #ffffff;\n border-radius: 9999px;\n animation: rxVerificationSpin 700ms linear infinite;\n}\n.rx-verification-code-check {\n font-size: 1.5rem;\n font-weight: 800;\n line-height: 1;\n transform: translateY(-1px);\n}\n.rx-verification-code-message {\n color: var(--rx-verification-success);\n font-size: 0.8rem;\n font-weight: 650;\n}\n.rx-verification-code-status.is-verifying .rx-verification-code-message {\n color: #64748b;\n}\n.rx-verification-code-error {\n color: var(--rx-verification-danger);\n font-size: 0.8rem;\n font-weight: 600;\n text-align: center;\n}\n\n@media (max-width: 420px) {\n .rx-verification-code-cells {\n gap: 0.375rem;\n }\n .rx-verification-code-cell {\n max-width: 2.65rem;\n border-radius: 0.65rem;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .rx-verification-code *,\n .rx-verification-code *::before,\n .rx-verification-code *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n transition-delay: 0ms !important;\n }\n}\n`;\n\n\nexport const verificationCodeAnimationsDisabledStyles = `\n.rx-verification-code *,\n.rx-verification-code *::before,\n.rx-verification-code *::after {\n animation: none !important;\n transition: none !important;\n}\n`;\n"],"mappings":";;AAiBA,MAAM,4BAA4B;AAClC,MAAM,yBAAyB;AAC/B,MAAM,qBAAqB;AAC3B,MAAM,uBAAuB;AAE7B,SAAS,mBAAmB,QAAwB;CAClD,OAAO,4BAA4B,KAAK,IAAI,GAAG,SAAS,CAAC,IAAI,yBAAyB;AACxF;AAEA,SAAS,iBAAiB,OAAuB;CAC/C,IAAI,CAAC,OAAO,SAAS,KAAK,GAAG,OAAO;CACpC,OAAO,KAAK,IAAI,IAAI,KAAK,IAAI,GAAG,KAAK,MAAM,KAAK,CAAC,CAAC;AACpD;AAEA,SAAS,gBAAgB,OAAuC;CAC9D,OAAO,UAAU,eAAe,UAAU,aAAa,UAAU,UAAU,QAAQ;AACrF;AAEA,SAAS,cAAc,OAAe,MAA4B,QAAwB;CAKxF,QAJc,SAAS,iBACnB,MAAM,QAAQ,iBAAiB,EAAE,CAAC,CAAC,YAAY,IAC/C,MAAM,QAAQ,OAAO,EAAE,EAAA,CAEd,MAAM,GAAG,MAAM;AAC9B;AAEA,SAAS,uBAAgC;CACvC,OAAO,OAAO,WAAW,eACpB,OAAO,OAAO,eAAe,cAC7B,OAAO,WAAW,kCAAkC,CAAC,CAAC;AAC7D;AAEA,MAAa,qBAAqB,gB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F,IACA;GAEJ,MAAM,eAAe,MAAM,UAAU,WAAW,MAAM,YAClD,EACE,QACA;IACE,IAAI;IACJ,OAAO,MAAM,WAAW,KAAA,IAAY;IACpC,MAAM;GACR,GACA,MAAM,SACR,IACA;GAEJ,OAAO,EACL,OACA,WAAW,WAAW;IACpB,OAAO;IACP,cAAc,MAAM;IACpB,eAAe;IACf,iBAAiB,MAAM,WAAW,SAAS;IAC3C,eAAe,OAAO,MAAM;IAC5B,OAAO,MAAM,WAAW,KAAA,IAAY,EAAE,mBAAmB,OAAO,MAAM,EAAE;IACxE,SAAS;GACX,CAAC,GACD;IACE;IACA,YACI,EACE,OACA;KACE,OAAO,MAAM,WAAW,KAAA,IAAY;KACpC,eAAe;IACjB,GACA,KACF,IACA;IACJ;GACF,CACF;EACF;CACF;AACF,CAAC;AAED,MAAa,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwMtC,MAAa,2CAA2C"}
@@ -1,10 +1,7 @@
1
- //#region src/vite-builder/index.d.ts
2
- interface ResuxViteBuilderOptions {
1
+ export interface ResuxViteBuilderOptions {
3
2
  root: string;
4
3
  outDir: string;
5
4
  dev: boolean;
6
5
  }
7
- declare function createViteBuilderOptions(options: ResuxViteBuilderOptions): ResuxViteBuilderOptions;
8
- //#endregion
9
- export { ResuxViteBuilderOptions, createViteBuilderOptions };
6
+ export declare function createViteBuilderOptions(options: ResuxViteBuilderOptions): ResuxViteBuilderOptions;
10
7
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,7 @@
1
- //#region src/vite-builder/index.ts
1
+ // src/vite-builder/index.ts
2
2
  function createViteBuilderOptions(options) {
3
3
  return options;
4
4
  }
5
-
6
- //#endregion
7
5
  export { createViteBuilderOptions };
6
+
8
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/vite-builder/index.ts"],"sourcesContent":["export interface ResuxViteBuilderOptions {\n root: string;\n outDir: string;\n dev: boolean;\n}\n\nexport function createViteBuilderOptions(options: ResuxViteBuilderOptions): ResuxViteBuilderOptions {\n return options;\n}\n"],"mappings":";AAMA,SAAgB,yBAAyB,SAA2D;AAClG,QAAO"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/vite-builder/index.ts"],"sourcesContent":["export interface ResuxViteBuilderOptions {\n root: string;\n outDir: string;\n dev: boolean;\n}\n\nexport function createViteBuilderOptions(options: ResuxViteBuilderOptions): ResuxViteBuilderOptions {\n return options;\n}\n"],"mappings":";AAMA,SAAgB,yBAAyB,SAA2D;CAClG,OAAO;AACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resuxjs",
3
- "version": "0.4.0-beta.5",
3
+ "version": "0.4.0-beta.7",
4
4
  "private": false,
5
5
  "description": "Resumable web framework with Vue-like SFC routing and a custom SSR/runtime pipeline.",
6
6
  "type": "module",
@@ -89,17 +89,20 @@
89
89
  "@vitejs/plugin-vue": "^6.0.9",
90
90
  "@vue/compiler-dom": "^3.5.43",
91
91
  "@vue/compiler-sfc": "^3.5.43",
92
+ "fontaine": "^1.0.1",
93
+ "fontless": "^1.3.2",
92
94
  "h3": "^1.15.11",
93
95
  "nitropack": "~2.13.4",
94
96
  "sharp": "^0.35.4",
95
97
  "typescript": "^5.9.3",
98
+ "unifont": "^1.0.3",
96
99
  "vite": "^8.2.2",
97
100
  "vue": "^3.5.43"
98
101
  },
99
102
  "devDependencies": {
100
103
  "@types/node": "^24.13.5",
101
104
  "happy-dom": "^20.14.5",
102
- "tsdown": "0.19.0",
105
+ "tsdown": "0.23.5",
103
106
  "vitest": "^4.1.11"
104
107
  },
105
108
  "overrides": {