@wakastellar/ui 4.0.0-dev.0 → 4.0.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 (429) hide show
  1. package/dist/components/waka-rich-text-editor/index.d.ts +6 -0
  2. package/dist/doc.cjs.js +1 -1
  3. package/dist/doc.es.js +1 -1
  4. package/dist/index.cjs.js +1 -1
  5. package/dist/index.es.js +1 -1
  6. package/dist/rich-text.cjs.js +1 -1
  7. package/dist/rich-text.es.js +1 -1
  8. package/dist/waka-rich-text-editor-DcZuIQ-q.js +1 -0
  9. package/dist/{waka-rich-text-editor-BbEpfD5b.mjs → waka-rich-text-editor-SOKYDdDP.mjs} +38 -36
  10. package/package.json +1 -1
  11. package/src/components/waka-rich-text-editor/index.tsx +10 -0
  12. package/dist/editor.d.ts +0 -1
  13. package/dist/src/blocks/activity-timeline/index.d.ts +0 -73
  14. package/dist/src/blocks/antivirus-dashboard/index.d.ts +0 -44
  15. package/dist/src/blocks/apm-overview/index.d.ts +0 -58
  16. package/dist/src/blocks/auth-2fa/index.d.ts +0 -38
  17. package/dist/src/blocks/calendar-view/index.d.ts +0 -56
  18. package/dist/src/blocks/chat/index.d.ts +0 -112
  19. package/dist/src/blocks/chat/widget.d.ts +0 -100
  20. package/dist/src/blocks/chat-interface/index.d.ts +0 -66
  21. package/dist/src/blocks/checkout-flow/index.d.ts +0 -76
  22. package/dist/src/blocks/cicd-builder/index.d.ts +0 -47
  23. package/dist/src/blocks/clamav-service-status/index.d.ts +0 -35
  24. package/dist/src/blocks/cloud-cost-dashboard/index.d.ts +0 -49
  25. package/dist/src/blocks/container-orchestrator/index.d.ts +0 -63
  26. package/dist/src/blocks/dashboard/index.d.ts +0 -95
  27. package/dist/src/blocks/dashboard-kpi/index.d.ts +0 -69
  28. package/dist/src/blocks/database-admin/index.d.ts +0 -84
  29. package/dist/src/blocks/deployment-dashboard/index.d.ts +0 -68
  30. package/dist/src/blocks/empty-states/index.d.ts +0 -47
  31. package/dist/src/blocks/error-pages/index.d.ts +0 -55
  32. package/dist/src/blocks/faq/index.d.ts +0 -54
  33. package/dist/src/blocks/file-manager/index.d.ts +0 -81
  34. package/dist/src/blocks/file-scan-uploader/index.d.ts +0 -29
  35. package/dist/src/blocks/footer/index.d.ts +0 -19
  36. package/dist/src/blocks/gitops-sync-status/index.d.ts +0 -45
  37. package/dist/src/blocks/header/index.d.ts +0 -86
  38. package/dist/src/blocks/headtab/index.d.ts +0 -27
  39. package/dist/src/blocks/i18n-editor/index.d.ts +0 -63
  40. package/dist/src/blocks/incident-manager/index.d.ts +0 -44
  41. package/dist/src/blocks/index.d.ts +0 -58
  42. package/dist/src/blocks/infrastructure-map/index.d.ts +0 -32
  43. package/dist/src/blocks/kanban-board/index.d.ts +0 -77
  44. package/dist/src/blocks/landing/index.d.ts +0 -104
  45. package/dist/src/blocks/language-selector/index.d.ts +0 -6
  46. package/dist/src/blocks/layout/index.d.ts +0 -28
  47. package/dist/src/blocks/login/index.d.ts +0 -42
  48. package/dist/src/blocks/login/types.d.ts +0 -126
  49. package/dist/src/blocks/on-call-schedule/index.d.ts +0 -43
  50. package/dist/src/blocks/player-profile/index.d.ts +0 -78
  51. package/dist/src/blocks/pricing/index.d.ts +0 -64
  52. package/dist/src/blocks/profile/index.d.ts +0 -98
  53. package/dist/src/blocks/quarantine-manager/index.d.ts +0 -27
  54. package/dist/src/blocks/release-notes/index.d.ts +0 -49
  55. package/dist/src/blocks/scan-history-log/index.d.ts +0 -28
  56. package/dist/src/blocks/scan-policy-editor/index.d.ts +0 -27
  57. package/dist/src/blocks/scan-report-generator/index.d.ts +0 -47
  58. package/dist/src/blocks/settings/index.d.ts +0 -62
  59. package/dist/src/blocks/sidebar/index.d.ts +0 -155
  60. package/dist/src/blocks/signature-database-manager/index.d.ts +0 -39
  61. package/dist/src/blocks/threat-alert-banner/index.d.ts +0 -26
  62. package/dist/src/blocks/user-management/index.d.ts +0 -95
  63. package/dist/src/blocks/waka-doc-shell/index.d.ts +0 -3
  64. package/dist/src/blocks/waka-doc-shell/types.d.ts +0 -32
  65. package/dist/src/blocks/wizard/index.d.ts +0 -88
  66. package/dist/src/charts.d.ts +0 -17
  67. package/dist/src/cli/commands/add.d.ts +0 -7
  68. package/dist/src/cli/commands/init.d.ts +0 -6
  69. package/dist/src/cli/commands/list.d.ts +0 -5
  70. package/dist/src/cli/commands/search.d.ts +0 -1
  71. package/dist/src/cli/index.d.ts +0 -1
  72. package/dist/src/cli/utils/config.d.ts +0 -29
  73. package/dist/src/cli/utils/logger.d.ts +0 -20
  74. package/dist/src/cli/utils/registry.d.ts +0 -23
  75. package/dist/src/cli/utils/remote.d.ts +0 -49
  76. package/dist/src/components/DataTable/DataTable.d.ts +0 -17
  77. package/dist/src/components/DataTable/DataTableAdvanced.d.ts +0 -27
  78. package/dist/src/components/DataTable/DataTableColumnResizer.d.ts +0 -8
  79. package/dist/src/components/DataTable/DataTableContextMenu.d.ts +0 -47
  80. package/dist/src/components/DataTable/DataTableEditCell.d.ts +0 -29
  81. package/dist/src/components/DataTable/DataTableFilters.d.ts +0 -14
  82. package/dist/src/components/DataTable/DataTableGrouping.d.ts +0 -25
  83. package/dist/src/components/DataTable/DataTablePagination.d.ts +0 -8
  84. package/dist/src/components/DataTable/DataTableSelection.d.ts +0 -46
  85. package/dist/src/components/DataTable/DataTableToolbar.d.ts +0 -14
  86. package/dist/src/components/DataTable/examples/EditExample.d.ts +0 -2
  87. package/dist/src/components/DataTable/hooks/useDataTable.d.ts +0 -24
  88. package/dist/src/components/DataTable/hooks/useDataTableAdvanced.d.ts +0 -38
  89. package/dist/src/components/DataTable/hooks/useDataTableEdit.d.ts +0 -22
  90. package/dist/src/components/DataTable/hooks/useDataTableExport.d.ts +0 -15
  91. package/dist/src/components/DataTable/hooks/useDataTableImport.d.ts +0 -12
  92. package/dist/src/components/DataTable/hooks/useDataTableTheme.d.ts +0 -16
  93. package/dist/src/components/DataTable/hooks/useDataTableVirtualization.d.ts +0 -19
  94. package/dist/src/components/DataTable/hooks/useTableLayout.d.ts +0 -26
  95. package/dist/src/components/DataTable/index.d.ts +0 -37
  96. package/dist/src/components/DataTable/types.d.ts +0 -461
  97. package/dist/src/components/DataTable/utils.d.ts +0 -37
  98. package/dist/src/components/accordion/index.d.ts +0 -7
  99. package/dist/src/components/alert/index.d.ts +0 -8
  100. package/dist/src/components/alert-dialog/index.d.ts +0 -20
  101. package/dist/src/components/aspect-ratio/index.d.ts +0 -3
  102. package/dist/src/components/avatar/index.d.ts +0 -6
  103. package/dist/src/components/badge/index.d.ts +0 -9
  104. package/dist/src/components/button/index.d.ts +0 -11
  105. package/dist/src/components/calendar/index.d.ts +0 -18
  106. package/dist/src/components/card/index.d.ts +0 -46
  107. package/dist/src/components/checkbox/index.d.ts +0 -4
  108. package/dist/src/components/code/index.d.ts +0 -29
  109. package/dist/src/components/collapsible/index.d.ts +0 -5
  110. package/dist/src/components/command/index.d.ts +0 -83
  111. package/dist/src/components/context-menu/index.d.ts +0 -27
  112. package/dist/src/components/dialog/index.d.ts +0 -19
  113. package/dist/src/components/dropdown-menu/index.d.ts +0 -27
  114. package/dist/src/components/editor/blocks/index.d.ts +0 -51
  115. package/dist/src/components/editor/blocks/waka-acceptance-criteria-block.d.ts +0 -60
  116. package/dist/src/components/editor/blocks/waka-ai-assist-block.d.ts +0 -58
  117. package/dist/src/components/editor/blocks/waka-api-endpoint-block.d.ts +0 -63
  118. package/dist/src/components/editor/blocks/waka-code-playground-block.d.ts +0 -61
  119. package/dist/src/components/editor/blocks/waka-comment-thread-block.d.ts +0 -85
  120. package/dist/src/components/editor/blocks/waka-diagram-block.d.ts +0 -52
  121. package/dist/src/components/editor/blocks/waka-embed-block.d.ts +0 -58
  122. package/dist/src/components/editor/blocks/waka-slash-menu-block.d.ts +0 -67
  123. package/dist/src/components/editor/blocks/waka-user-story-block.d.ts +0 -79
  124. package/dist/src/components/editor/blocks/waka-version-diff-block.d.ts +0 -73
  125. package/dist/src/components/editor/index.d.ts +0 -80
  126. package/dist/src/components/editor/waka-ai-writer.d.ts +0 -80
  127. package/dist/src/components/editor/waka-collaborative-editor.d.ts +0 -93
  128. package/dist/src/components/editor/waka-diff-viewer.d.ts +0 -71
  129. package/dist/src/components/editor/waka-dnd-editor.d.ts +0 -64
  130. package/dist/src/components/editor/waka-document-editor.d.ts +0 -92
  131. package/dist/src/components/editor/waka-editor-elements.d.ts +0 -79
  132. package/dist/src/components/editor/waka-editor-leaves.d.ts +0 -39
  133. package/dist/src/components/editor/waka-editor-plugins.d.ts +0 -41
  134. package/dist/src/components/editor/waka-editor-toolbar.d.ts +0 -20
  135. package/dist/src/components/editor/waka-editor.d.ts +0 -59
  136. package/dist/src/components/editor/waka-floating-toolbar.d.ts +0 -53
  137. package/dist/src/components/editor/waka-markdown-editor.d.ts +0 -60
  138. package/dist/src/components/editor/waka-mention-editor.d.ts +0 -125
  139. package/dist/src/components/editor/waka-slash-menu.d.ts +0 -70
  140. package/dist/src/components/editor/waka-spec-editor.d.ts +0 -88
  141. package/dist/src/components/error-boundary/ErrorBoundary.d.ts +0 -102
  142. package/dist/src/components/error-boundary/index.d.ts +0 -2
  143. package/dist/src/components/form/index.d.ts +0 -23
  144. package/dist/src/components/hover-card/index.d.ts +0 -6
  145. package/dist/src/components/index.d.ts +0 -257
  146. package/dist/src/components/input/index.d.ts +0 -19
  147. package/dist/src/components/input-otp/index.d.ts +0 -51
  148. package/dist/src/components/label/index.d.ts +0 -5
  149. package/dist/src/components/language-selector/index.d.ts +0 -40
  150. package/dist/src/components/menubar/index.d.ts +0 -28
  151. package/dist/src/components/navigation-menu/index.d.ts +0 -12
  152. package/dist/src/components/popover/index.d.ts +0 -6
  153. package/dist/src/components/progress/index.d.ts +0 -4
  154. package/dist/src/components/radio-group/index.d.ts +0 -5
  155. package/dist/src/components/scroll-area/index.d.ts +0 -5
  156. package/dist/src/components/select/index.d.ts +0 -13
  157. package/dist/src/components/separator/index.d.ts +0 -4
  158. package/dist/src/components/sheet/index.d.ts +0 -27
  159. package/dist/src/components/skeleton/index.d.ts +0 -13
  160. package/dist/src/components/slider/index.d.ts +0 -4
  161. package/dist/src/components/switch/index.d.ts +0 -4
  162. package/dist/src/components/table/index.d.ts +0 -21
  163. package/dist/src/components/tabs/index.d.ts +0 -7
  164. package/dist/src/components/textarea/index.d.ts +0 -14
  165. package/dist/src/components/theme-selector/index.d.ts +0 -8
  166. package/dist/src/components/toast/index.d.ts +0 -15
  167. package/dist/src/components/toaster/index.d.ts +0 -1
  168. package/dist/src/components/toggle/index.d.ts +0 -12
  169. package/dist/src/components/tooltip/index.d.ts +0 -7
  170. package/dist/src/components/typography/index.d.ts +0 -85
  171. package/dist/src/components/waka-3d-pie-chart/index.d.ts +0 -67
  172. package/dist/src/components/waka-achievement-unlock/index.d.ts +0 -83
  173. package/dist/src/components/waka-activity-feed/index.d.ts +0 -78
  174. package/dist/src/components/waka-ad-banner/index.d.ts +0 -36
  175. package/dist/src/components/waka-ad-fallback/index.d.ts +0 -33
  176. package/dist/src/components/waka-ad-inline/index.d.ts +0 -15
  177. package/dist/src/components/waka-ad-interstitial/index.d.ts +0 -26
  178. package/dist/src/components/waka-ad-placeholder/index.d.ts +0 -17
  179. package/dist/src/components/waka-ad-provider/index.d.ts +0 -103
  180. package/dist/src/components/waka-ad-sidebar/index.d.ts +0 -18
  181. package/dist/src/components/waka-ad-sticky-footer/index.d.ts +0 -17
  182. package/dist/src/components/waka-address-autocomplete/index.d.ts +0 -129
  183. package/dist/src/components/waka-admincrumb/index.d.ts +0 -55
  184. package/dist/src/components/waka-alert-panel/index.d.ts +0 -45
  185. package/dist/src/components/waka-alert-stack/index.d.ts +0 -58
  186. package/dist/src/components/waka-allocation-matrix/index.d.ts +0 -193
  187. package/dist/src/components/waka-approval-chain/index.d.ts +0 -43
  188. package/dist/src/components/waka-artifact-list/index.d.ts +0 -32
  189. package/dist/src/components/waka-audit-log/index.d.ts +0 -142
  190. package/dist/src/components/waka-autocomplete/index.d.ts +0 -59
  191. package/dist/src/components/waka-badge-showcase/index.d.ts +0 -51
  192. package/dist/src/components/waka-barcode/index.d.ts +0 -27
  193. package/dist/src/components/waka-biometric-prompt/index.d.ts +0 -84
  194. package/dist/src/components/waka-bottom-sheet/index.d.ts +0 -61
  195. package/dist/src/components/waka-breadcrumb/index.d.ts +0 -43
  196. package/dist/src/components/waka-breadcrumb-path/index.d.ts +0 -46
  197. package/dist/src/components/waka-budget-burn/index.d.ts +0 -154
  198. package/dist/src/components/waka-build-matrix/index.d.ts +0 -36
  199. package/dist/src/components/waka-capacity-planner/index.d.ts +0 -132
  200. package/dist/src/components/waka-carousel/index.d.ts +0 -105
  201. package/dist/src/components/waka-cart-summary/index.d.ts +0 -154
  202. package/dist/src/components/waka-challenge-timer/index.d.ts +0 -86
  203. package/dist/src/components/waka-charts/WakaAreaChart.d.ts +0 -12
  204. package/dist/src/components/waka-charts/WakaBarChart.d.ts +0 -12
  205. package/dist/src/components/waka-charts/WakaChart.d.ts +0 -17
  206. package/dist/src/components/waka-charts/WakaLineChart.d.ts +0 -12
  207. package/dist/src/components/waka-charts/WakaMiniChart.d.ts +0 -13
  208. package/dist/src/components/waka-charts/WakaPieChart.d.ts +0 -12
  209. package/dist/src/components/waka-charts/WakaSparkline.d.ts +0 -13
  210. package/dist/src/components/waka-charts/dataTableHelpers.d.ts +0 -34
  211. package/dist/src/components/waka-charts/hooks/useChartTheme.d.ts +0 -23
  212. package/dist/src/components/waka-charts/hooks/useRechartsLoader.d.ts +0 -161
  213. package/dist/src/components/waka-charts/index.d.ts +0 -57
  214. package/dist/src/components/waka-charts/types.d.ts +0 -298
  215. package/dist/src/components/waka-chat-bubble/index.d.ts +0 -127
  216. package/dist/src/components/waka-checklist/index.d.ts +0 -123
  217. package/dist/src/components/waka-checkout-stepper/index.d.ts +0 -154
  218. package/dist/src/components/waka-cohort-table/index.d.ts +0 -130
  219. package/dist/src/components/waka-color-picker/index.d.ts +0 -40
  220. package/dist/src/components/waka-combo-counter/index.d.ts +0 -53
  221. package/dist/src/components/waka-combobox/index.d.ts +0 -81
  222. package/dist/src/components/waka-command-bar/index.d.ts +0 -45
  223. package/dist/src/components/waka-compare-period/index.d.ts +0 -122
  224. package/dist/src/components/waka-config-comparator/index.d.ts +0 -37
  225. package/dist/src/components/waka-connection-matrix/index.d.ts +0 -117
  226. package/dist/src/components/waka-container-list/index.d.ts +0 -51
  227. package/dist/src/components/waka-content-recommendation/index.d.ts +0 -23
  228. package/dist/src/components/waka-contribution-graph/index.d.ts +0 -34
  229. package/dist/src/components/waka-cost-breakdown/index.d.ts +0 -50
  230. package/dist/src/components/waka-coupon-input/index.d.ts +0 -105
  231. package/dist/src/components/waka-credit-activity-feed/index.d.ts +0 -21
  232. package/dist/src/components/waka-credit-alert/index.d.ts +0 -24
  233. package/dist/src/components/waka-credit-balance/index.d.ts +0 -30
  234. package/dist/src/components/waka-credit-balance/types.d.ts +0 -34
  235. package/dist/src/components/waka-credit-breakdown/index.d.ts +0 -32
  236. package/dist/src/components/waka-credit-burn-rate/index.d.ts +0 -25
  237. package/dist/src/components/waka-credit-card-input/index.d.ts +0 -95
  238. package/dist/src/components/waka-credit-history/index.d.ts +0 -31
  239. package/dist/src/components/waka-credit-meter/index.d.ts +0 -27
  240. package/dist/src/components/waka-credit-pricing-pack/index.d.ts +0 -17
  241. package/dist/src/components/waka-credit-projection/index.d.ts +0 -21
  242. package/dist/src/components/waka-credit-quota/index.d.ts +0 -25
  243. package/dist/src/components/waka-credit-receipt/index.d.ts +0 -23
  244. package/dist/src/components/waka-credit-top-up/index.d.ts +0 -26
  245. package/dist/src/components/waka-credit-transaction/index.d.ts +0 -22
  246. package/dist/src/components/waka-credit-transfer-form/index.d.ts +0 -27
  247. package/dist/src/components/waka-credit-usage-chart/index.d.ts +0 -34
  248. package/dist/src/components/waka-daily-reward/index.d.ts +0 -76
  249. package/dist/src/components/waka-database-card/index.d.ts +0 -46
  250. package/dist/src/components/waka-date-range-picker/index.d.ts +0 -68
  251. package/dist/src/components/waka-datetime-picker/index.d.ts +0 -135
  252. package/dist/src/components/waka-datetime-picker.form-integration/index.d.ts +0 -73
  253. package/dist/src/components/waka-dependency-tree/index.d.ts +0 -38
  254. package/dist/src/components/waka-deployment-lane/index.d.ts +0 -43
  255. package/dist/src/components/waka-device-trust/index.d.ts +0 -95
  256. package/dist/src/components/waka-doc-breadcrumb/index.d.ts +0 -11
  257. package/dist/src/components/waka-doc-callout/index.d.ts +0 -9
  258. package/dist/src/components/waka-doc-code-block/index.d.ts +0 -9
  259. package/dist/src/components/waka-doc-nav/index.d.ts +0 -16
  260. package/dist/src/components/waka-doc-renderer/index.d.ts +0 -7
  261. package/dist/src/components/waka-doc-search/index.d.ts +0 -23
  262. package/dist/src/components/waka-doc-table/index.d.ts +0 -8
  263. package/dist/src/components/waka-doc-toc/index.d.ts +0 -11
  264. package/dist/src/components/waka-doc-toolbar/index.d.ts +0 -15
  265. package/dist/src/components/waka-doc-version/index.d.ts +0 -13
  266. package/dist/src/components/waka-dock/index.d.ts +0 -49
  267. package/dist/src/components/waka-drawer/index.d.ts +0 -59
  268. package/dist/src/components/waka-empty-state/index.d.ts +0 -85
  269. package/dist/src/components/waka-env-var-editor/index.d.ts +0 -30
  270. package/dist/src/components/waka-error-shake/index.d.ts +0 -49
  271. package/dist/src/components/waka-feature-announcement/index.d.ts +0 -112
  272. package/dist/src/components/waka-feature-flag-row/index.d.ts +0 -45
  273. package/dist/src/components/waka-file-upload/index.d.ts +0 -49
  274. package/dist/src/components/waka-floating-nav/index.d.ts +0 -51
  275. package/dist/src/components/waka-flow-diagram/index.d.ts +0 -71
  276. package/dist/src/components/waka-funnel-chart/index.d.ts +0 -108
  277. package/dist/src/components/waka-glow-card/index.d.ts +0 -32
  278. package/dist/src/components/waka-goal-progress/index.d.ts +0 -139
  279. package/dist/src/components/waka-haptic-button/index.d.ts +0 -50
  280. package/dist/src/components/waka-health-pulse/index.d.ts +0 -28
  281. package/dist/src/components/waka-heatmap/index.d.ts +0 -135
  282. package/dist/src/components/waka-hotspot/index.d.ts +0 -111
  283. package/dist/src/components/waka-image/index.d.ts +0 -59
  284. package/dist/src/components/waka-incident-timeline/index.d.ts +0 -38
  285. package/dist/src/components/waka-invoice-preview/index.d.ts +0 -137
  286. package/dist/src/components/waka-kanban/index.d.ts +0 -68
  287. package/dist/src/components/waka-kpi-dashboard/index.d.ts +0 -80
  288. package/dist/src/components/waka-kubernetes-overview/index.d.ts +0 -98
  289. package/dist/src/components/waka-leaderboard/index.d.ts +0 -85
  290. package/dist/src/components/waka-level-progress/index.d.ts +0 -89
  291. package/dist/src/components/waka-liquid-button/index.d.ts +0 -46
  292. package/dist/src/components/waka-loading-orbit/index.d.ts +0 -90
  293. package/dist/src/components/waka-log-viewer/index.d.ts +0 -38
  294. package/dist/src/components/waka-loot-box/index.d.ts +0 -87
  295. package/dist/src/components/waka-magic-link/index.d.ts +0 -34
  296. package/dist/src/components/waka-magnetic-button/index.d.ts +0 -61
  297. package/dist/src/components/waka-mention-input/index.d.ts +0 -106
  298. package/dist/src/components/waka-metric-sparkline/index.d.ts +0 -46
  299. package/dist/src/components/waka-migration-list/index.d.ts +0 -36
  300. package/dist/src/components/waka-milestone-road/index.d.ts +0 -91
  301. package/dist/src/components/waka-modal/index.d.ts +0 -87
  302. package/dist/src/components/waka-morph-button/index.d.ts +0 -62
  303. package/dist/src/components/waka-network-topology/index.d.ts +0 -35
  304. package/dist/src/components/waka-notifications/index.d.ts +0 -40
  305. package/dist/src/components/waka-number-input/index.d.ts +0 -60
  306. package/dist/src/components/waka-orbital-menu/index.d.ts +0 -61
  307. package/dist/src/components/waka-order-tracker/index.d.ts +0 -121
  308. package/dist/src/components/waka-outstream-video/index.d.ts +0 -24
  309. package/dist/src/components/waka-pagination/index.d.ts +0 -67
  310. package/dist/src/components/waka-password-strength/index.d.ts +0 -98
  311. package/dist/src/components/waka-payment-method-picker/index.d.ts +0 -88
  312. package/dist/src/components/waka-permission-matrix/index.d.ts +0 -197
  313. package/dist/src/components/waka-phone-input/index.d.ts +0 -93
  314. package/dist/src/components/waka-pipeline-view/index.d.ts +0 -49
  315. package/dist/src/components/waka-player-card/index.d.ts +0 -36
  316. package/dist/src/components/waka-pod-card/index.d.ts +0 -73
  317. package/dist/src/components/waka-points-popup/index.d.ts +0 -75
  318. package/dist/src/components/waka-power-up/index.d.ts +0 -103
  319. package/dist/src/components/waka-presence-indicator/index.d.ts +0 -188
  320. package/dist/src/components/waka-pricing-table/index.d.ts +0 -77
  321. package/dist/src/components/waka-product-card/index.d.ts +0 -81
  322. package/dist/src/components/waka-progress-onboarding/index.d.ts +0 -97
  323. package/dist/src/components/waka-pull-to-refresh/index.d.ts +0 -45
  324. package/dist/src/components/waka-qrcode/index.d.ts +0 -32
  325. package/dist/src/components/waka-query-explain/index.d.ts +0 -48
  326. package/dist/src/components/waka-quest-card/index.d.ts +0 -110
  327. package/dist/src/components/waka-quota-bar/index.d.ts +0 -100
  328. package/dist/src/components/waka-radar-score/index.d.ts +0 -95
  329. package/dist/src/components/waka-rank-badge/index.d.ts +0 -58
  330. package/dist/src/components/waka-rating-input/index.d.ts +0 -110
  331. package/dist/src/components/waka-reaction-picker/index.d.ts +0 -77
  332. package/dist/src/components/waka-region-map/index.d.ts +0 -27
  333. package/dist/src/components/waka-resource-gauge/index.d.ts +0 -78
  334. package/dist/src/components/waka-resource-pool/index.d.ts +0 -81
  335. package/dist/src/components/waka-rich-text-editor/index.d.ts +0 -36
  336. package/dist/src/components/waka-rollback-slider/index.d.ts +0 -79
  337. package/dist/src/components/waka-sankey-diagram/index.d.ts +0 -120
  338. package/dist/src/components/waka-schedule-picker/index.d.ts +0 -100
  339. package/dist/src/components/waka-scratch-card/index.d.ts +0 -87
  340. package/dist/src/components/waka-season-pass/index.d.ts +0 -65
  341. package/dist/src/components/waka-secret-card/index.d.ts +0 -43
  342. package/dist/src/components/waka-security-scan-result/index.d.ts +0 -45
  343. package/dist/src/components/waka-security-score/index.d.ts +0 -124
  344. package/dist/src/components/waka-segmented-control/index.d.ts +0 -42
  345. package/dist/src/components/waka-server-rack/index.d.ts +0 -44
  346. package/dist/src/components/waka-service-graph/index.d.ts +0 -44
  347. package/dist/src/components/waka-session-manager/index.d.ts +0 -116
  348. package/dist/src/components/waka-signature-pad/index.d.ts +0 -87
  349. package/dist/src/components/waka-skeleton-wave/index.d.ts +0 -79
  350. package/dist/src/components/waka-skill-tree/index.d.ts +0 -78
  351. package/dist/src/components/waka-sla-tracker/index.d.ts +0 -65
  352. package/dist/src/components/waka-slider-range/index.d.ts +0 -88
  353. package/dist/src/components/waka-spin-wheel/index.d.ts +0 -51
  354. package/dist/src/components/waka-spinner/index.d.ts +0 -46
  355. package/dist/src/components/waka-sponsored-badge/index.d.ts +0 -20
  356. package/dist/src/components/waka-sponsored-card/index.d.ts +0 -25
  357. package/dist/src/components/waka-sponsored-feed/index.d.ts +0 -31
  358. package/dist/src/components/waka-spotlight/index.d.ts +0 -47
  359. package/dist/src/components/waka-stat/index.d.ts +0 -57
  360. package/dist/src/components/waka-stats-hexagon/index.d.ts +0 -149
  361. package/dist/src/components/waka-status-matrix/index.d.ts +0 -38
  362. package/dist/src/components/waka-stepper/index.d.ts +0 -76
  363. package/dist/src/components/waka-streak-counter/index.d.ts +0 -27
  364. package/dist/src/components/waka-success-explosion/index.d.ts +0 -51
  365. package/dist/src/components/waka-swipe-card/index.d.ts +0 -64
  366. package/dist/src/components/waka-tabs-morph/index.d.ts +0 -66
  367. package/dist/src/components/waka-tag-input/index.d.ts +0 -134
  368. package/dist/src/components/waka-team-banner/index.d.ts +0 -122
  369. package/dist/src/components/waka-terminal-output/index.d.ts +0 -48
  370. package/dist/src/components/waka-test-report/index.d.ts +0 -60
  371. package/dist/src/components/waka-theme-creator/index.d.ts +0 -59
  372. package/dist/src/components/waka-theme-manager/index.d.ts +0 -62
  373. package/dist/src/components/waka-thread-view/index.d.ts +0 -101
  374. package/dist/src/components/waka-tilt-card/index.d.ts +0 -36
  375. package/dist/src/components/waka-time-picker/index.d.ts +0 -51
  376. package/dist/src/components/waka-timeline/index.d.ts +0 -46
  377. package/dist/src/components/waka-tooltip-tour/index.d.ts +0 -123
  378. package/dist/src/components/waka-tour-guide/index.d.ts +0 -127
  379. package/dist/src/components/waka-tournament-bracket/index.d.ts +0 -101
  380. package/dist/src/components/waka-trace-viewer/index.d.ts +0 -36
  381. package/dist/src/components/waka-tree/index.d.ts +0 -67
  382. package/dist/src/components/waka-treemap-chart/index.d.ts +0 -104
  383. package/dist/src/components/waka-two-factor-setup/index.d.ts +0 -93
  384. package/dist/src/components/waka-typewriter/index.d.ts +0 -98
  385. package/dist/src/components/waka-typing-indicator/index.d.ts +0 -64
  386. package/dist/src/components/waka-versus-card/index.d.ts +0 -117
  387. package/dist/src/components/waka-video/index.d.ts +0 -66
  388. package/dist/src/components/waka-video-ad/index.d.ts +0 -32
  389. package/dist/src/components/waka-video-call/index.d.ts +0 -170
  390. package/dist/src/components/waka-video-overlay/index.d.ts +0 -26
  391. package/dist/src/components/waka-virtual-list/index.d.ts +0 -54
  392. package/dist/src/components/waka-voice-message/index.d.ts +0 -117
  393. package/dist/src/components/waka-welcome-modal/index.d.ts +0 -120
  394. package/dist/src/components/waka-xp-bar/index.d.ts +0 -54
  395. package/dist/src/context/admincrumb-context.d.ts +0 -34
  396. package/dist/src/context/index.d.ts +0 -8
  397. package/dist/src/context/language-context.d.ts +0 -57
  398. package/dist/src/context/theme-context.d.ts +0 -39
  399. package/dist/src/context/theme-provider.d.ts +0 -74
  400. package/dist/src/context/waka-provider.d.ts +0 -50
  401. package/dist/src/doc.d.ts +0 -33
  402. package/dist/src/editor.d.ts +0 -26
  403. package/dist/src/export.d.ts +0 -30
  404. package/dist/src/hooks/index.d.ts +0 -1
  405. package/dist/src/hooks/use-toast.d.ts +0 -44
  406. package/dist/src/hooks/use-translation.d.ts +0 -15
  407. package/dist/src/hooks/useToast.d.ts +0 -44
  408. package/dist/src/index.d.ts +0 -35
  409. package/dist/src/lib/i18n.d.ts +0 -4
  410. package/dist/src/rich-text.d.ts +0 -21
  411. package/dist/src/stories/Button.d.ts +0 -14
  412. package/dist/src/stories/Button.stories.d.ts +0 -8
  413. package/dist/src/stories/Header.d.ts +0 -11
  414. package/dist/src/stories/Header.stories.d.ts +0 -6
  415. package/dist/src/stories/Page.d.ts +0 -2
  416. package/dist/src/stories/Page.stories.d.ts +0 -6
  417. package/dist/src/stories/editor/EditorStoryWrapper.d.ts +0 -11
  418. package/dist/src/types/index.d.ts +0 -1
  419. package/dist/src/types/link.d.ts +0 -23
  420. package/dist/src/types/provider.d.ts +0 -108
  421. package/dist/src/utils/cn.d.ts +0 -1
  422. package/dist/src/utils/datetime-helpers.d.ts +0 -137
  423. package/dist/src/utils/error-handling.d.ts +0 -190
  424. package/dist/src/utils/index.d.ts +0 -6
  425. package/dist/src/utils/logger.d.ts +0 -9
  426. package/dist/src/utils/security.d.ts +0 -96
  427. package/dist/src/utils/theme-loader.d.ts +0 -101
  428. package/dist/src/utils/tweak.d.ts +0 -18
  429. package/dist/waka-rich-text-editor-C4b30Ik-.js +0 -1
@@ -1,137 +0,0 @@
1
- import { DatePreset, DateRange } from '../components/waka-datetime-picker';
2
- /**
3
- * Créer des presets de dates courantes
4
- */
5
- export declare const createCommonPresets: (locale?: import('date-fns').Locale) => DatePreset[];
6
- /**
7
- * Créer des presets pour les 7, 30, 90 derniers jours
8
- */
9
- export declare const createLastDaysPresets: () => DatePreset[];
10
- /**
11
- * Créer des presets pour les N prochains jours
12
- */
13
- export declare const createNextDaysPresets: (days: number[]) => DatePreset[];
14
- /**
15
- * Créer un preset personnalisé
16
- */
17
- export declare const createCustomPreset: (label: string, dateOrRange: Date | DateRange | (() => Date) | (() => DateRange)) => DatePreset;
18
- /**
19
- * Validation : date dans le futur
20
- */
21
- export declare const isFutureDate: (date: Date) => boolean;
22
- /**
23
- * Validation : date dans le passé
24
- */
25
- export declare const isPastDate: (date: Date) => boolean;
26
- /**
27
- * Validation : date est aujourd'hui
28
- */
29
- export declare const isToday: (date: Date) => boolean;
30
- /**
31
- * Validation : date est un jour de semaine (lundi-vendredi)
32
- */
33
- export declare const isWeekday: (date: Date) => boolean;
34
- /**
35
- * Validation : date est un weekend (samedi-dimanche)
36
- */
37
- export declare const isWeekend: (date: Date) => boolean;
38
- /**
39
- * Validation : date est dans une liste de jours fériés
40
- */
41
- export declare const isHoliday: (date: Date, holidays: Date[]) => boolean;
42
- /**
43
- * Validation : date est dans un intervalle
44
- */
45
- export declare const isDateInRange: (date: Date, start: Date, end: Date) => boolean;
46
- /**
47
- * Validation : âge minimum
48
- */
49
- export declare const createMinAgeValidator: (minAge: number) => (birthdate: Date) => boolean | string;
50
- /**
51
- * Validation : âge maximum
52
- */
53
- export declare const createMaxAgeValidator: (maxAge: number) => (birthdate: Date) => boolean | string;
54
- /**
55
- * Validation : date d'expiration
56
- */
57
- export declare const isNotExpired: (date: Date) => boolean | string;
58
- /**
59
- * Calculer la durée entre deux dates
60
- */
61
- export declare const calculateDuration: (from: Date, to: Date) => {
62
- days: number;
63
- weeks: number;
64
- months: number;
65
- };
66
- /**
67
- * Formater une range de dates
68
- */
69
- export declare const formatDateRange: (range: DateRange, formatStr?: string, locale?: import('date-fns').Locale) => string;
70
- /**
71
- * Obtenir les jours fériés français pour une année
72
- */
73
- export declare const getFrenchHolidays: (year: number) => Date[];
74
- /**
75
- * Obtenir les dates d'un mois
76
- */
77
- export declare const getDatesInMonth: (year: number, month: number) => Date[];
78
- /**
79
- * Obtenir tous les weekends d'un mois
80
- */
81
- export declare const getWeekendsInMonth: (year: number, month: number) => Date[];
82
- /**
83
- * Obtenir tous les jours de semaine d'un mois
84
- */
85
- export declare const getWeekdaysInMonth: (year: number, month: number) => Date[];
86
- /**
87
- * Créer un validateur de date d'expiration de carte bancaire
88
- */
89
- export declare const createCardExpiryValidator: () => (date: Date) => boolean | string;
90
- /**
91
- * Créer un validateur de date de réservation (X jours d'avance minimum)
92
- */
93
- export declare const createBookingDateValidator: (minDaysInAdvance: number) => (date: Date) => boolean | string;
94
- /**
95
- * Créer un validateur de plage de dates maximum
96
- */
97
- export declare const createMaxRangeDaysValidator: (maxDays: number) => (range: DateRange) => boolean | string;
98
- /**
99
- * Vérifier si deux dates sont le même jour
100
- */
101
- export declare const isSameDay: (date1: Date, date2: Date) => boolean;
102
- /**
103
- * Obtenir le nombre de jours ouvrés entre deux dates
104
- */
105
- export declare const getWorkingDays: (from: Date, to: Date, holidays?: Date[]) => number;
106
- /**
107
- * Créer des presets pour les trimestres
108
- */
109
- export declare const createQuarterPresets: (year?: number) => DatePreset[];
110
- /**
111
- * Créer des presets pour les mois de l'année
112
- */
113
- export declare const createMonthlyPresets: (year?: number, locale?: import('date-fns').Locale) => DatePreset[];
114
- /**
115
- * Convertir une date en timestamp
116
- */
117
- export declare const dateToTimestamp: (date: Date) => number;
118
- /**
119
- * Convertir un timestamp en date
120
- */
121
- export declare const timestampToDate: (timestamp: number) => Date;
122
- /**
123
- * Normaliser une date (début de journée)
124
- */
125
- export declare const normalizeDate: (date: Date) => Date;
126
- /**
127
- * Comparer deux ranges de dates
128
- */
129
- export declare const compareRanges: (range1: DateRange, range2: DateRange) => boolean;
130
- /**
131
- * Merger deux ranges de dates
132
- */
133
- export declare const mergeRanges: (range1: DateRange, range2: DateRange) => DateRange | null;
134
- /**
135
- * Vérifier si deux ranges se chevauchent
136
- */
137
- export declare const rangesOverlap: (range1: DateRange, range2: DateRange) => boolean;
@@ -1,190 +0,0 @@
1
- /**
2
- * Unified Error Handling System for @wakastart/ui
3
- *
4
- * Provides consistent error handling patterns across all components.
5
- *
6
- * @module error-handling
7
- * @example
8
- * ```tsx
9
- * import { WakaError, tryCatch, tryCatchAsync, handleError } from '@wakastellar/ui'
10
- *
11
- * // Sync operations
12
- * const result = tryCatch(() => parseJSON(data), {
13
- * context: 'DataTable.parseConfig',
14
- * fallback: defaultConfig,
15
- * })
16
- *
17
- * // Async operations
18
- * const data = await tryCatchAsync(() => fetchData(), {
19
- * context: 'DataTable.fetchData',
20
- * onError: (err) => showToast(err.message),
21
- * })
22
- * ```
23
- */
24
- /**
25
- * Error codes for @wakastart/ui
26
- */
27
- export declare const ErrorCode: {
28
- readonly UNKNOWN: "WAKA_UNKNOWN";
29
- readonly VALIDATION: "WAKA_VALIDATION";
30
- readonly NETWORK: "WAKA_NETWORK";
31
- readonly TIMEOUT: "WAKA_TIMEOUT";
32
- readonly THEME_LOAD_FAILED: "WAKA_THEME_LOAD_FAILED";
33
- readonly THEME_PARSE_FAILED: "WAKA_THEME_PARSE_FAILED";
34
- readonly THEME_APPLY_FAILED: "WAKA_THEME_APPLY_FAILED";
35
- readonly LANG_LOAD_FAILED: "WAKA_LANG_LOAD_FAILED";
36
- readonly LANG_PARSE_FAILED: "WAKA_LANG_PARSE_FAILED";
37
- readonly TRANSLATION_MISSING: "WAKA_TRANSLATION_MISSING";
38
- readonly DATATABLE_EXPORT_FAILED: "WAKA_DATATABLE_EXPORT_FAILED";
39
- readonly DATATABLE_IMPORT_FAILED: "WAKA_DATATABLE_IMPORT_FAILED";
40
- readonly DATATABLE_PARSE_FAILED: "WAKA_DATATABLE_PARSE_FAILED";
41
- readonly COMPONENT_RENDER_FAILED: "WAKA_COMPONENT_RENDER_FAILED";
42
- readonly COMPONENT_INIT_FAILED: "WAKA_COMPONENT_INIT_FAILED";
43
- readonly PROVIDER_MISSING: "WAKA_PROVIDER_MISSING";
44
- readonly PROVIDER_CONFIG_INVALID: "WAKA_PROVIDER_CONFIG_INVALID";
45
- };
46
- export type ErrorCodeType = (typeof ErrorCode)[keyof typeof ErrorCode];
47
- /**
48
- * Custom error class for @wakastart/ui
49
- */
50
- export declare class WakaError extends Error {
51
- /** Error code for programmatic handling */
52
- readonly code: ErrorCodeType;
53
- /** Context where the error occurred */
54
- readonly context?: string;
55
- /** Original error if wrapped */
56
- readonly cause?: Error;
57
- /** Additional metadata */
58
- readonly metadata?: Record<string, unknown>;
59
- /** Timestamp when error occurred */
60
- readonly timestamp: Date;
61
- constructor(message: string, options?: {
62
- code?: ErrorCodeType;
63
- context?: string;
64
- cause?: Error;
65
- metadata?: Record<string, unknown>;
66
- });
67
- /**
68
- * Create a WakaError from any error type
69
- */
70
- static from(error: unknown, options?: {
71
- code?: ErrorCodeType;
72
- context?: string;
73
- metadata?: Record<string, unknown>;
74
- }): WakaError;
75
- /**
76
- * Serialize error for logging or transmission
77
- */
78
- toJSON(): Record<string, unknown>;
79
- }
80
- /**
81
- * Options for error handling utilities
82
- */
83
- export interface ErrorHandlerOptions<T> {
84
- /** Context identifier for logging */
85
- context?: string;
86
- /** Error code to use */
87
- code?: ErrorCodeType;
88
- /** Callback when error occurs */
89
- onError?: (error: WakaError) => void;
90
- /** Fallback value to return on error */
91
- fallback?: T;
92
- /** Whether to rethrow the error after handling */
93
- rethrow?: boolean;
94
- /** Additional metadata to attach to error */
95
- metadata?: Record<string, unknown>;
96
- /** Whether to suppress logging (default: false) */
97
- silent?: boolean;
98
- }
99
- /**
100
- * Handle an error with consistent logging and callbacks
101
- */
102
- export declare function handleError(error: unknown, options?: Omit<ErrorHandlerOptions<unknown>, "fallback">): WakaError;
103
- /**
104
- * Wrap a synchronous operation with error handling
105
- *
106
- * @example
107
- * ```ts
108
- * const config = tryCatch(
109
- * () => JSON.parse(jsonString),
110
- * { context: 'parseConfig', fallback: {} }
111
- * )
112
- * ```
113
- */
114
- export declare function tryCatch<T>(fn: () => T, options?: ErrorHandlerOptions<T>): T | undefined;
115
- /**
116
- * Wrap an async operation with error handling
117
- *
118
- * @example
119
- * ```ts
120
- * const data = await tryCatchAsync(
121
- * () => fetch('/api/data').then(r => r.json()),
122
- * { context: 'fetchData', onError: showError }
123
- * )
124
- * ```
125
- */
126
- export declare function tryCatchAsync<T>(fn: () => Promise<T>, options?: ErrorHandlerOptions<T>): Promise<T | undefined>;
127
- /**
128
- * Create a wrapped version of an async function with error handling
129
- *
130
- * @example
131
- * ```ts
132
- * const safeFetch = withErrorHandling(
133
- * fetchUserData,
134
- * { context: 'UserService.fetchData' }
135
- * )
136
- * ```
137
- */
138
- export declare function withErrorHandling<TArgs extends unknown[], TReturn>(fn: (...args: TArgs) => Promise<TReturn>, options?: Omit<ErrorHandlerOptions<TReturn>, "fallback">): (...args: TArgs) => Promise<TReturn>;
139
- /**
140
- * Assert a condition, throwing a WakaError if false
141
- *
142
- * @example
143
- * ```ts
144
- * assertCondition(user != null, 'User must be authenticated', {
145
- * code: ErrorCode.VALIDATION,
146
- * context: 'UserProfile',
147
- * })
148
- * ```
149
- */
150
- export declare function assertCondition(condition: boolean, message: string, options?: {
151
- code?: ErrorCodeType;
152
- context?: string;
153
- metadata?: Record<string, unknown>;
154
- }): asserts condition;
155
- /**
156
- * Type guard to check if an error is a WakaError
157
- */
158
- export declare function isWakaError(error: unknown): error is WakaError;
159
- /**
160
- * Check if error matches a specific code
161
- */
162
- export declare function isErrorCode(error: unknown, code: ErrorCodeType): error is WakaError;
163
- /**
164
- * Create error factories for specific contexts
165
- *
166
- * @example
167
- * ```ts
168
- * const createDataTableError = createErrorFactory('DataTable')
169
- * throw createDataTableError('Export failed', ErrorCode.DATATABLE_EXPORT_FAILED)
170
- * ```
171
- */
172
- export declare function createErrorFactory(context: string): (message: string, code?: ErrorCodeType, metadata?: Record<string, unknown>) => WakaError;
173
- /**
174
- * Retry an async operation with exponential backoff
175
- *
176
- * @example
177
- * ```ts
178
- * const data = await retryAsync(
179
- * () => fetchWithTimeout('/api/data'),
180
- * { maxRetries: 3, context: 'fetchData' }
181
- * )
182
- * ```
183
- */
184
- export declare function retryAsync<T>(fn: () => Promise<T>, options?: {
185
- maxRetries?: number;
186
- baseDelay?: number;
187
- maxDelay?: number;
188
- context?: string;
189
- onRetry?: (attempt: number, error: WakaError) => void;
190
- }): Promise<T>;
@@ -1,6 +0,0 @@
1
- export { cn } from './cn';
2
- export { tweak, type VariantProps } from './tweak';
3
- export * from './datetime-helpers';
4
- export { ThemeLoader, initThemeLoader, getThemeLoader, loadTheme, applyTheme, useThemeLoader } from './theme-loader';
5
- export type { ThemeLoaderConfig } from './theme-loader';
6
- export { logger, type Logger } from './logger';
@@ -1,9 +0,0 @@
1
- type LogArgs = unknown[];
2
- export declare const logger: {
3
- info: (...args: LogArgs) => void;
4
- warn: (...args: LogArgs) => void;
5
- error: (...args: LogArgs) => void;
6
- log: (...args: LogArgs) => void;
7
- };
8
- export type Logger = typeof logger;
9
- export {};
@@ -1,96 +0,0 @@
1
- /**
2
- * Security utilities for sanitizing user input and preventing XSS/injection attacks.
3
- *
4
- * @module security
5
- */
6
- /**
7
- * Validates and sanitizes a URL to prevent javascript: protocol attacks.
8
- *
9
- * @param url - The URL to validate
10
- * @returns The sanitized URL if safe, or undefined if potentially malicious
11
- *
12
- * @example
13
- * ```ts
14
- * const safeUrl = sanitizeUrl("https://example.com") // "https://example.com"
15
- * const blocked = sanitizeUrl("javascript:alert(1)") // undefined
16
- * ```
17
- *
18
- * @security
19
- * This function blocks:
20
- * - javascript: protocol URLs
21
- * - data: protocol URLs (except data:image for specific use cases)
22
- * - vbscript: protocol URLs
23
- * - URLs with encoded dangerous protocols
24
- */
25
- export declare function sanitizeUrl(url: string | undefined | null): string | undefined;
26
- /**
27
- * Safely navigates to a URL after validation.
28
- * Use this instead of directly assigning to window.location.href.
29
- *
30
- * @param url - The URL to navigate to
31
- * @returns true if navigation was performed, false if blocked
32
- *
33
- * @example
34
- * ```ts
35
- * // Safe navigation
36
- * safeNavigate("https://example.com") // navigates
37
- * safeNavigate("javascript:alert(1)") // blocked, returns false
38
- * ```
39
- */
40
- export declare function safeNavigate(url: string | undefined | null): boolean;
41
- /**
42
- * Escapes special regex characters in a string.
43
- * Use this when creating RegExp from user input to prevent ReDoS attacks.
44
- *
45
- * @param str - The string to escape
46
- * @returns The escaped string safe for use in RegExp
47
- *
48
- * @example
49
- * ```ts
50
- * const pattern = escapeRegex("user.name") // "user\\.name"
51
- * const regex = new RegExp(pattern, "i")
52
- * ```
53
- *
54
- * @security
55
- * This prevents:
56
- * - ReDoS (Regular Expression Denial of Service) attacks
57
- * - Unintended regex matching due to special characters
58
- */
59
- export declare function escapeRegex(str: string): string;
60
- /**
61
- * Creates a safe RegExp from user input by escaping special characters.
62
- *
63
- * @param pattern - The pattern string (will be escaped)
64
- * @param flags - Optional regex flags
65
- * @returns A safe RegExp instance
66
- *
67
- * @example
68
- * ```ts
69
- * const regex = createSafeRegex("search.term", "gi")
70
- * // Matches literal "search.term" not "search" + any char + "term"
71
- * ```
72
- */
73
- export declare function createSafeRegex(pattern: string, flags?: string): RegExp;
74
- /**
75
- * Creates a RegExp for highlighting text in search results.
76
- * Escapes the search term and wraps in capture group for splitting.
77
- *
78
- * @param searchTerm - The term to highlight
79
- * @returns A case-insensitive RegExp for highlighting
80
- *
81
- * @example
82
- * ```ts
83
- * const regex = createHighlightRegex("search")
84
- * const parts = "Search results".split(regex)
85
- * // ["", "Search", " results"]
86
- * ```
87
- */
88
- export declare function createHighlightRegex(searchTerm: string): RegExp;
89
- /**
90
- * Sanitizes HTML content by escaping dangerous characters.
91
- * Use when displaying user-generated content.
92
- *
93
- * @param html - The HTML string to sanitize
94
- * @returns Escaped HTML safe for display
95
- */
96
- export declare function escapeHtml(html: string): string;
@@ -1,101 +0,0 @@
1
- /**
2
- * Theme Loader pour charger dynamiquement les thèmes depuis S3 ou toute URL
3
- *
4
- * Supporte tous les formats de couleurs (hex, rgb, hsl, oklch, etc.)
5
- * grâce au système TweakCN avec @theme inline
6
- */
7
- export interface ThemeLoaderConfig {
8
- /**
9
- * URL de base où les thèmes sont stockés (S3, CDN, etc.)
10
- */
11
- baseUrl: string;
12
- /**
13
- * Cache les thèmes déjà chargés pour éviter les requêtes répétées
14
- */
15
- cache?: boolean;
16
- /**
17
- * Timeout en millisecondes pour le chargement d'un thème
18
- */
19
- timeout?: number;
20
- /**
21
- * Callback appelé en cas d'erreur de chargement
22
- */
23
- onError?: (error: Error, themeName: string) => void;
24
- /**
25
- * Callback appelé une fois le thème chargé avec succès
26
- */
27
- onSuccess?: (themeName: string) => void;
28
- }
29
- declare class ThemeLoader {
30
- private config;
31
- private loadedThemes;
32
- private styleElements;
33
- constructor(config: ThemeLoaderConfig);
34
- /**
35
- * Charge un thème depuis une URL
36
- */
37
- loadTheme(themeName: string): Promise<void>;
38
- /**
39
- * Applique un thème déjà chargé
40
- */
41
- applyTheme(themeName: string): void;
42
- /**
43
- * Récupère le thème actuellement appliqué
44
- */
45
- getCurrentTheme(): string | null;
46
- /**
47
- * Charge le dernier thème utilisé depuis localStorage
48
- */
49
- loadSavedTheme(): string | null;
50
- /**
51
- * Précharge plusieurs thèmes en parallèle
52
- */
53
- preloadThemes(themeNames: string[]): Promise<void>;
54
- /**
55
- * Supprime un thème du cache et du DOM
56
- */
57
- unloadTheme(themeName: string): void;
58
- /**
59
- * Vide complètement le cache
60
- */
61
- clearCache(): void;
62
- /**
63
- * Liste tous les thèmes chargés
64
- */
65
- getLoadedThemes(): string[];
66
- /**
67
- * Construit l'URL complète d'un thème
68
- */
69
- private buildThemeUrl;
70
- /**
71
- * Injecte les styles d'un thème dans le document
72
- */
73
- private injectThemeStyles;
74
- }
75
- /**
76
- * Initialise le theme loader avec une configuration
77
- */
78
- export declare function initThemeLoader(config: ThemeLoaderConfig): ThemeLoader;
79
- /**
80
- * Récupère l'instance globale du theme loader
81
- */
82
- export declare function getThemeLoader(): ThemeLoader;
83
- /**
84
- * Charge un thème depuis l'instance globale
85
- */
86
- export declare function loadTheme(themeName: string): Promise<void>;
87
- /**
88
- * Applique un thème depuis l'instance globale
89
- */
90
- export declare function applyTheme(themeName: string): void;
91
- /**
92
- * Hook React pour charger des thèmes dynamiquement
93
- */
94
- export declare function useThemeLoader(config?: Partial<ThemeLoaderConfig>): {
95
- loadTheme: (themeName: string) => Promise<void>;
96
- applyTheme: (themeName: string) => void;
97
- currentTheme: string | null;
98
- loadedThemes: string[];
99
- isLoading: boolean;
100
- };
101
- export { ThemeLoader };
@@ -1,18 +0,0 @@
1
- import { ClassValue } from 'clsx';
2
- import { VariantProps } from 'class-variance-authority';
3
- export type ConfigVariants<T> = T extends Record<string, Record<string, string>> ? {
4
- [K in keyof T]?: keyof T[K];
5
- } : never;
6
- export type ClassProp = {
7
- class?: ClassValue;
8
- className?: ClassValue;
9
- };
10
- export declare function tweak(...inputs: ClassValue[]): string;
11
- export declare namespace tweak {
12
- var variants: <T extends Record<string, Record<string, string>>, Defaults extends Partial<Record<keyof T, string>> = {}>(config: {
13
- base?: string;
14
- variants?: T;
15
- defaultVariants?: Defaults;
16
- }) => (options?: (ConfigVariants<T> & ClassProp)) => string;
17
- }
18
- export type { VariantProps };
@@ -1 +0,0 @@
1
- "use client";const e=require(`./chunk-FDd1SASZ.js`),t=require(`./cn-DEeiGoUV.js`),n=require(`./separator-DviMy-io.js`),r=require(`./textarea-jycisJkk.js`),i=require(`./input-vHHUMve1.js`);let a=require(`react`);a=e.r(a);let o=require(`lucide-react`),s=require(`react/jsx-runtime`),c=require(`@radix-ui/react-popover`);c=e.r(c);var l=c.Root,u=c.Trigger,d=a.forwardRef(({className:e,align:n=`center`,sideOffset:r=4,...i},a)=>(0,s.jsx)(c.Portal,{children:(0,s.jsx)(c.Content,{ref:a,align:n,sideOffset:r,className:t.t(`z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,e),...i})}));d.displayName=c.Content.displayName;var f=e.n({WakaRichTextEditor:()=>m,default:()=>m}),p=[[`bold`,`italic`,`underline`,`strike`],[`h1`,`h2`,`h3`],[`bulletList`,`orderedList`,`blockquote`],[`link`,`code`],[`undo`,`redo`]],m=a.forwardRef(({value:e=``,onChange:t,toolbar:n=p,placeholder:r=`Écrivez ici...`,maxLength:i,showCharacterCount:o=!1,minHeight:c=200,disabled:l=!1,error:u,className:d,label:f,description:m,editable:g=!0},v)=>{let[y,b]=a.useState(null),[x,S]=a.useState(null),[C,w]=a.useState(null),[T,E]=a.useState(``);return a.useEffect(()=>{(async()=>{try{let[{useEditor:e,EditorContent:t},{default:n},{default:r},{default:i},{default:a}]=await Promise.all([import(`@tiptap/react`),import(`@tiptap/starter-kit`),import(`@tiptap/extension-underline`),import(`@tiptap/extension-link`),import(`@tiptap/extension-text-align`)]);S({useEditor:e,EditorContent:t,StarterKit:n,Underline:r,Link:i,TextAlign:a}),b(!0)}catch{b(!1)}})()},[]),y&&x?(0,s.jsx)(h,{ref:v,components:x,value:e,onChange:t,toolbar:n,placeholder:r,maxLength:i,showCharacterCount:o,minHeight:c,disabled:l,error:u,className:d,label:f,description:m,editable:g,linkUrl:T,setLinkUrl:E,editor:C,setEditor:w}):(0,s.jsx)(_,{ref:v,value:e,onChange:t,placeholder:r,maxLength:i,showCharacterCount:o,minHeight:c,disabled:l,error:u,className:d,label:f,description:m,loading:y===null})});m.displayName=`WakaRichTextEditor`;var h=a.forwardRef(({components:e,value:i,onChange:o,toolbar:c,placeholder:l,maxLength:u,showCharacterCount:d,minHeight:f,disabled:p,error:m,className:h,label:_,description:v,editable:y,linkUrl:b,setLinkUrl:x,setEditor:S},C)=>{let{useEditor:w,EditorContent:T,StarterKit:E,Underline:D,Link:O,TextAlign:k}=e,A=w({extensions:[E.configure({heading:{levels:[1,2,3]}}),D,O.configure({openOnClick:!1}),k.configure({types:[`heading`,`paragraph`]})],content:i,editable:y&&!p,onUpdate:({editor:e})=>{let t=e.getHTML();(!u||t.length<=u)&&o?.(t)}});a.useEffect(()=>{S(A)},[A,S]),a.useEffect(()=>{A&&i!==A.getHTML()&&A.commands?.setContent?.(i||``,!1)},[i,A]);let j=()=>{A&&(b?A.chain().focus().setLink({href:b}).run():A.chain().focus().unsetLink().run(),x(``))},M=A?.storage?.characterCount?.characters?.()??i?.replace(/<[^>]*>/g,``).length??0;return(0,s.jsxs)(`div`,{ref:C,className:t.t(`space-y-1.5`,h),children:[_&&(0,s.jsx)(r.n,{children:_}),v&&(0,s.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:v}),(0,s.jsxs)(`div`,{className:t.t(`border rounded-lg overflow-hidden`,m&&`border-destructive`),children:[A&&c&&(0,s.jsx)(`div`,{className:`flex flex-wrap items-center gap-0.5 p-1 border-b bg-muted/30`,children:c.map((e,t)=>(0,s.jsxs)(a.Fragment,{children:[t>0&&(0,s.jsx)(n.t,{orientation:`vertical`,className:`mx-1 h-6`}),e.map(e=>(0,s.jsx)(g,{button:e,editor:A,linkUrl:b,setLinkUrl:x,handleSetLink:j},e))]},t))}),(0,s.jsx)(`div`,{style:{minHeight:f},children:(0,s.jsx)(T,{editor:A,className:t.t(`prose prose-sm max-w-none p-3 focus-within:outline-none h-full`,`[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[inherit]`)})}),d&&(0,s.jsxs)(`div`,{className:`flex justify-end p-1.5 border-t bg-muted/30 text-xs text-muted-foreground`,children:[M,u&&` / ${u}`,` caractères`]})]}),m&&(0,s.jsx)(`p`,{className:`text-sm text-destructive`,children:m})]})});h.displayName=`TiptapEditorComponent`;function g({button:e,editor:t,linkUrl:r,setLinkUrl:a,handleSetLink:c}){let{icon:f,action:p,isActive:m}={bold:{icon:(0,s.jsx)(o.Bold,{className:`h-4 w-4`}),action:()=>t.chain().focus().toggleBold().run(),isActive:()=>t.isActive(`bold`)},italic:{icon:(0,s.jsx)(o.Italic,{className:`h-4 w-4`}),action:()=>t.chain().focus().toggleItalic().run(),isActive:()=>t.isActive(`italic`)},underline:{icon:(0,s.jsx)(o.Underline,{className:`h-4 w-4`}),action:()=>t.chain().focus().toggleUnderline().run(),isActive:()=>t.isActive(`underline`)},strike:{icon:(0,s.jsx)(o.Strikethrough,{className:`h-4 w-4`}),action:()=>t.chain().focus().toggleStrike().run(),isActive:()=>t.isActive(`strike`)},h1:{icon:(0,s.jsx)(o.Heading1,{className:`h-4 w-4`}),action:()=>t.chain().focus().toggleHeading({level:1}).run(),isActive:()=>t.isActive(`heading`,{level:1})},h2:{icon:(0,s.jsx)(o.Heading2,{className:`h-4 w-4`}),action:()=>t.chain().focus().toggleHeading({level:2}).run(),isActive:()=>t.isActive(`heading`,{level:2})},h3:{icon:(0,s.jsx)(o.Heading3,{className:`h-4 w-4`}),action:()=>t.chain().focus().toggleHeading({level:3}).run(),isActive:()=>t.isActive(`heading`,{level:3})},bulletList:{icon:(0,s.jsx)(o.List,{className:`h-4 w-4`}),action:()=>t.chain().focus().toggleBulletList().run(),isActive:()=>t.isActive(`bulletList`)},orderedList:{icon:(0,s.jsx)(o.ListOrdered,{className:`h-4 w-4`}),action:()=>t.chain().focus().toggleOrderedList().run(),isActive:()=>t.isActive(`orderedList`)},blockquote:{icon:(0,s.jsx)(o.Quote,{className:`h-4 w-4`}),action:()=>t.chain().focus().toggleBlockquote().run(),isActive:()=>t.isActive(`blockquote`)},code:{icon:(0,s.jsx)(o.Code,{className:`h-4 w-4`}),action:()=>t.chain().focus().toggleCodeBlock().run(),isActive:()=>t.isActive(`codeBlock`)},link:{icon:(0,s.jsx)(o.Link,{className:`h-4 w-4`}),action:()=>{},isActive:()=>t.isActive(`link`)},alignLeft:{icon:(0,s.jsx)(o.AlignLeft,{className:`h-4 w-4`}),action:()=>t.chain().focus().setTextAlign(`left`).run(),isActive:()=>t.isActive({textAlign:`left`})},alignCenter:{icon:(0,s.jsx)(o.AlignCenter,{className:`h-4 w-4`}),action:()=>t.chain().focus().setTextAlign(`center`).run(),isActive:()=>t.isActive({textAlign:`center`})},alignRight:{icon:(0,s.jsx)(o.AlignRight,{className:`h-4 w-4`}),action:()=>t.chain().focus().setTextAlign(`right`).run(),isActive:()=>t.isActive({textAlign:`right`})},undo:{icon:(0,s.jsx)(o.Undo,{className:`h-4 w-4`}),action:()=>t.chain().focus().undo().run()},redo:{icon:(0,s.jsx)(o.Redo,{className:`h-4 w-4`}),action:()=>t.chain().focus().redo().run()}}[e];return e===`link`?(0,s.jsxs)(l,{children:[(0,s.jsx)(u,{asChild:!0,children:(0,s.jsx)(n.n,{type:`button`,variant:m?.()?`secondary`:`ghost`,size:`icon`,className:`h-7 w-7`,children:f})}),(0,s.jsx)(d,{className:`w-64 p-2`,children:(0,s.jsxs)(`div`,{className:`flex gap-2`,children:[(0,s.jsx)(i.t,{value:r,onChange:e=>a(e.target.value),placeholder:`https://...`,className:`h-8`}),(0,s.jsx)(n.n,{size:`sm`,onClick:c,children:`OK`})]})})]}):(0,s.jsx)(n.n,{type:`button`,variant:m?.()?`secondary`:`ghost`,size:`icon`,className:`h-7 w-7`,onClick:p,children:f})}var _=a.forwardRef(({value:e,onChange:n,placeholder:i,maxLength:a,showCharacterCount:o,minHeight:c,disabled:l,error:u,className:d,label:f,description:p,loading:m},h)=>(0,s.jsxs)(`div`,{ref:h,className:t.t(`space-y-1.5`,d),children:[f&&(0,s.jsx)(r.n,{children:f}),p&&(0,s.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:p}),(0,s.jsxs)(`div`,{className:`relative`,children:[(0,s.jsx)(r.t,{value:e,onChange:e=>n?.(e.target.value),placeholder:i,maxLength:a,disabled:l||m,style:{minHeight:c},className:t.t(u&&`border-destructive`)}),m&&(0,s.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center bg-background/50`,children:(0,s.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Chargement...`})})]}),(0,s.jsxs)(`div`,{className:`flex items-center justify-between`,children:[u&&(0,s.jsx)(`p`,{className:`text-sm text-destructive`,children:u}),o&&(0,s.jsxs)(`p`,{className:`text-xs text-muted-foreground ml-auto`,children:[e?.length||0,a&&` / ${a}`,` caractères`]})]})]}));_.displayName=`FallbackEditor`,Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return m}});