@intlayer/design-system 3.5.3 → 3.5.5

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 (492) hide show
  1. package/README.md +1 -1
  2. package/dist/.vite/manifest.json +274 -125
  3. package/dist/CopyButton-Cxu3goRg.cjs +59 -0
  4. package/dist/CopyButton-Cxu3goRg.cjs.map +1 -0
  5. package/dist/CopyButton-DlcDlf6U.js +60 -0
  6. package/dist/CopyButton-DlcDlf6U.js.map +1 -0
  7. package/dist/components/Auth/AuthModal/index.cjs +4 -0
  8. package/dist/components/Auth/AuthModal/index.cjs.map +1 -1
  9. package/dist/components/Auth/AuthModal/index.mjs +4 -0
  10. package/dist/components/Auth/AuthModal/index.mjs.map +1 -1
  11. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +5 -4
  12. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -1
  13. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts +1 -1
  14. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +1 -1
  15. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +5 -4
  16. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -1
  17. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.cjs +170 -0
  18. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.cjs.map +1 -0
  19. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts +26 -0
  20. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts.map +1 -0
  21. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.mjs +170 -0
  22. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.mjs.map +1 -0
  23. package/dist/components/Auth/ChangePasswordForm/index.cjs +2 -2
  24. package/dist/components/Auth/ChangePasswordForm/index.d.ts +1 -1
  25. package/dist/components/Auth/ChangePasswordForm/index.d.ts.map +1 -1
  26. package/dist/components/Auth/ChangePasswordForm/index.mjs +2 -2
  27. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs +37 -0
  28. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs.map +1 -0
  29. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.cjs +131 -0
  30. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.cjs.map +1 -0
  31. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts +15 -0
  32. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts.map +1 -0
  33. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.mjs +131 -0
  34. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.mjs.map +1 -0
  35. package/dist/components/Auth/ChangePasswordForm/{ChangePasswordSchema.d.ts → useChangePasswordSchema.d.ts} +3 -3
  36. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.d.ts.map +1 -0
  37. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs +37 -0
  38. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs.map +1 -0
  39. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +11 -10
  40. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
  41. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +1 -1
  42. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +12 -11
  43. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
  44. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs +86 -32
  45. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs.map +1 -1
  46. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts +13 -9
  47. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts.map +1 -1
  48. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs +85 -31
  49. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs.map +1 -1
  50. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +5 -4
  51. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -1
  52. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts +1 -1
  53. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +1 -1
  54. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +5 -4
  55. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -1
  56. package/dist/components/Auth/ResetPasswordForm/index.cjs +2 -2
  57. package/dist/components/Auth/ResetPasswordForm/index.d.ts +1 -1
  58. package/dist/components/Auth/ResetPasswordForm/index.d.ts.map +1 -1
  59. package/dist/components/Auth/ResetPasswordForm/index.mjs +2 -2
  60. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.cjs +123 -0
  61. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.cjs.map +1 -0
  62. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts +21 -0
  63. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts.map +1 -0
  64. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.mjs +123 -0
  65. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.mjs.map +1 -0
  66. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs +16 -0
  67. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs.map +1 -0
  68. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.cjs +56 -0
  69. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.cjs.map +1 -0
  70. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts +10 -0
  71. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts.map +1 -0
  72. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.mjs +56 -0
  73. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.mjs.map +1 -0
  74. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.d.ts +10 -0
  75. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.d.ts.map +1 -0
  76. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs +16 -0
  77. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs.map +1 -0
  78. package/dist/components/Auth/SignInForm/SignInForm.cjs +22 -15
  79. package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -1
  80. package/dist/components/Auth/SignInForm/SignInForm.d.ts +1 -1
  81. package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +1 -1
  82. package/dist/components/Auth/SignInForm/SignInForm.mjs +22 -15
  83. package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -1
  84. package/dist/components/Auth/SignInForm/index.cjs +2 -2
  85. package/dist/components/Auth/SignInForm/index.d.ts +1 -1
  86. package/dist/components/Auth/SignInForm/index.d.ts.map +1 -1
  87. package/dist/components/Auth/SignInForm/index.mjs +2 -2
  88. package/dist/components/Auth/SignInForm/signIn.content.cjs +217 -0
  89. package/dist/components/Auth/SignInForm/signIn.content.cjs.map +1 -0
  90. package/dist/components/Auth/SignInForm/signIn.content.d.ts +31 -0
  91. package/dist/components/Auth/SignInForm/signIn.content.d.ts.map +1 -0
  92. package/dist/components/Auth/SignInForm/signIn.content.mjs +217 -0
  93. package/dist/components/Auth/SignInForm/signIn.content.mjs.map +1 -0
  94. package/dist/components/Auth/SignInForm/useSignInSchema.cjs +25 -0
  95. package/dist/components/Auth/SignInForm/useSignInSchema.cjs.map +1 -0
  96. package/dist/components/Auth/SignInForm/useSignInSchema.content.cjs +71 -0
  97. package/dist/components/Auth/SignInForm/useSignInSchema.content.cjs.map +1 -0
  98. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts +11 -0
  99. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts.map +1 -0
  100. package/dist/components/Auth/SignInForm/useSignInSchema.content.mjs +71 -0
  101. package/dist/components/Auth/SignInForm/useSignInSchema.content.mjs.map +1 -0
  102. package/dist/components/Auth/SignInForm/{SignInSchema.d.ts → useSignInSchema.d.ts} +3 -3
  103. package/dist/components/Auth/SignInForm/useSignInSchema.d.ts.map +1 -0
  104. package/dist/components/Auth/SignInForm/useSignInSchema.mjs +25 -0
  105. package/dist/components/Auth/SignInForm/useSignInSchema.mjs.map +1 -0
  106. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +4 -4
  107. package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -1
  108. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts +1 -1
  109. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +1 -1
  110. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +3 -3
  111. package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -1
  112. package/dist/components/Auth/SignUpForm/index.cjs +2 -2
  113. package/dist/components/Auth/SignUpForm/index.d.ts +1 -1
  114. package/dist/components/Auth/SignUpForm/index.d.ts.map +1 -1
  115. package/dist/components/Auth/SignUpForm/index.mjs +2 -2
  116. package/dist/components/Auth/SignUpForm/signUpForm.content.cjs +182 -0
  117. package/dist/components/Auth/SignUpForm/signUpForm.content.cjs.map +1 -0
  118. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts +24 -0
  119. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts.map +1 -0
  120. package/dist/components/Auth/SignUpForm/signUpForm.content.mjs +182 -0
  121. package/dist/components/Auth/SignUpForm/signUpForm.content.mjs.map +1 -0
  122. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs +36 -0
  123. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs.map +1 -0
  124. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.cjs +116 -0
  125. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.cjs.map +1 -0
  126. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts +14 -0
  127. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts.map +1 -0
  128. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.mjs +116 -0
  129. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.mjs.map +1 -0
  130. package/dist/components/Auth/SignUpForm/{SignUpSchema.d.ts → useSignUpSchema.d.ts} +3 -3
  131. package/dist/components/Auth/SignUpForm/useSignUpSchema.d.ts.map +1 -0
  132. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs +36 -0
  133. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs.map +1 -0
  134. package/dist/components/Auth/index.cjs +8 -8
  135. package/dist/components/Auth/index.mjs +8 -8
  136. package/dist/components/Auth/useAuth/useSession.cjs +1 -0
  137. package/dist/components/Auth/useAuth/useSession.cjs.map +1 -1
  138. package/dist/components/Auth/useAuth/useSession.mjs +1 -0
  139. package/dist/components/Auth/useAuth/useSession.mjs.map +1 -1
  140. package/dist/components/Breadcrumb/breadcrumb.content.cjs +26 -0
  141. package/dist/components/Breadcrumb/breadcrumb.content.cjs.map +1 -0
  142. package/dist/components/Breadcrumb/breadcrumb.content.d.ts +8 -0
  143. package/dist/components/Breadcrumb/breadcrumb.content.d.ts.map +1 -0
  144. package/dist/components/Breadcrumb/breadcrumb.content.mjs +26 -0
  145. package/dist/components/Breadcrumb/breadcrumb.content.mjs.map +1 -0
  146. package/dist/components/Breadcrumb/index.cjs +103 -34
  147. package/dist/components/Breadcrumb/index.cjs.map +1 -1
  148. package/dist/components/Breadcrumb/index.d.ts +6 -2
  149. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  150. package/dist/components/Breadcrumb/index.mjs +103 -34
  151. package/dist/components/Breadcrumb/index.mjs.map +1 -1
  152. package/dist/components/Button/Button.cjs +7 -8
  153. package/dist/components/Button/Button.cjs.map +1 -1
  154. package/dist/components/Button/Button.d.ts.map +1 -1
  155. package/dist/components/Button/Button.mjs +7 -8
  156. package/dist/components/Button/Button.mjs.map +1 -1
  157. package/dist/components/Container/index.cjs +2 -2
  158. package/dist/components/Container/index.cjs.map +1 -1
  159. package/dist/components/Container/index.mjs +2 -2
  160. package/dist/components/Container/index.mjs.map +1 -1
  161. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
  162. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -1
  163. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
  164. package/dist/components/DictionaryEditor/index.cjs +4 -0
  165. package/dist/components/DictionaryEditor/index.cjs.map +1 -1
  166. package/dist/components/DictionaryEditor/index.mjs +4 -0
  167. package/dist/components/DictionaryEditor/index.mjs.map +1 -1
  168. package/dist/components/DictionaryEditor/useEditedContentStore.cjs +3 -0
  169. package/dist/components/DictionaryEditor/useEditedContentStore.cjs.map +1 -1
  170. package/dist/components/DictionaryEditor/useEditedContentStore.d.ts +2 -2
  171. package/dist/components/DictionaryEditor/useEditedContentStore.d.ts.map +1 -1
  172. package/dist/components/DictionaryEditor/useEditedContentStore.mjs +3 -0
  173. package/dist/components/DictionaryEditor/useEditedContentStore.mjs.map +1 -1
  174. package/dist/components/DictionaryEditor/useEditionPanelStore.cjs.map +1 -1
  175. package/dist/components/DictionaryEditor/useEditionPanelStore.d.ts +1 -1
  176. package/dist/components/DictionaryEditor/useEditionPanelStore.d.ts.map +1 -1
  177. package/dist/components/DictionaryEditor/useEditionPanelStore.mjs.map +1 -1
  178. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs +60 -6
  179. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs.map +1 -1
  180. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts.map +1 -1
  181. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs +60 -6
  182. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs.map +1 -1
  183. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +7 -5
  184. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -1
  185. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts +1 -0
  186. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts.map +1 -1
  187. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +7 -5
  188. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -1
  189. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.cjs +22 -2
  190. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.cjs.map +1 -1
  191. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.d.ts.map +1 -1
  192. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.mjs +22 -2
  193. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.mjs.map +1 -1
  194. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +14 -6
  195. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  196. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +14 -6
  197. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  198. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +151 -21
  199. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
  200. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
  201. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +151 -21
  202. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
  203. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs +27 -0
  204. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs.map +1 -0
  205. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.cjs +71 -0
  206. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.cjs.map +1 -0
  207. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +11 -0
  208. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts.map +1 -0
  209. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.mjs +71 -0
  210. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.mjs.map +1 -0
  211. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/{dictionaryFormSchema.d.ts → useDictionaryFormSchema.d.ts} +3 -3
  212. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.d.ts.map +1 -0
  213. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +27 -0
  214. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs.map +1 -0
  215. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +24 -16
  216. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  217. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +24 -16
  218. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  219. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +176 -16
  220. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
  221. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
  222. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +176 -16
  223. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
  224. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +44 -0
  225. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs.map +1 -0
  226. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs +176 -0
  227. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs.map +1 -0
  228. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +17 -0
  229. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts.map +1 -0
  230. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs +176 -0
  231. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs.map +1 -0
  232. package/dist/components/DictionaryFieldEditor/DictionaryDetails/{DictionaryDetailsSchema.d.ts → useDictionaryDetailsSchema.d.ts} +3 -3
  233. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.d.ts.map +1 -0
  234. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +44 -0
  235. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs.map +1 -0
  236. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +6 -3
  237. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  238. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +1 -0
  239. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
  240. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +6 -3
  241. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  242. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +2 -2
  243. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +1 -1
  244. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +2 -2
  245. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +1 -1
  246. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs +20 -18
  247. package/dist/components/DictionaryFieldEditor/JSONEditor.cjs.map +1 -1
  248. package/dist/components/DictionaryFieldEditor/JSONEditor.d.ts +1 -0
  249. package/dist/components/DictionaryFieldEditor/JSONEditor.d.ts.map +1 -1
  250. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs +20 -18
  251. package/dist/components/DictionaryFieldEditor/JSONEditor.mjs.map +1 -1
  252. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs +10 -2
  253. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs.map +1 -1
  254. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts +2 -0
  255. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts.map +1 -1
  256. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs +10 -2
  257. package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs.map +1 -1
  258. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs +121 -11
  259. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs.map +1 -1
  260. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
  261. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +121 -11
  262. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -1
  263. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs +10 -14
  264. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs.map +1 -1
  265. package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts.map +1 -1
  266. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs +10 -14
  267. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs.map +1 -1
  268. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +63 -20
  269. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  270. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  271. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +66 -23
  272. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  273. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +98 -6
  274. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
  275. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +4 -0
  276. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
  277. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +98 -6
  278. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
  279. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs +44 -4
  280. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs.map +1 -1
  281. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -1
  282. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs +44 -4
  283. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs.map +1 -1
  284. package/dist/components/DictionaryFieldEditor/editorView.content.cjs +77 -7
  285. package/dist/components/DictionaryFieldEditor/editorView.content.cjs.map +1 -1
  286. package/dist/components/DictionaryFieldEditor/editorView.content.d.ts.map +1 -1
  287. package/dist/components/DictionaryFieldEditor/editorView.content.mjs +77 -7
  288. package/dist/components/DictionaryFieldEditor/editorView.content.mjs.map +1 -1
  289. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +66 -6
  290. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -1
  291. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
  292. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +66 -6
  293. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -1
  294. package/dist/components/DropDown/index.cjs.map +1 -1
  295. package/dist/components/DropDown/index.d.ts +18 -1
  296. package/dist/components/DropDown/index.d.ts.map +1 -1
  297. package/dist/components/DropDown/index.mjs.map +1 -1
  298. package/dist/components/Headers/index.cjs +1 -1
  299. package/dist/components/Headers/index.cjs.map +1 -1
  300. package/dist/components/Headers/index.mjs +1 -1
  301. package/dist/components/Headers/index.mjs.map +1 -1
  302. package/dist/components/IDE/CodeRender copy.cjs +141 -0
  303. package/dist/components/IDE/CodeRender copy.cjs.map +1 -0
  304. package/dist/components/IDE/CodeRender copy.d.ts +14 -0
  305. package/dist/components/IDE/CodeRender copy.d.ts.map +1 -0
  306. package/dist/components/IDE/CodeRender copy.mjs +141 -0
  307. package/dist/components/IDE/CodeRender copy.mjs.map +1 -0
  308. package/dist/components/IDE/CodeRender.cjs +39 -625
  309. package/dist/components/IDE/CodeRender.cjs.map +1 -1
  310. package/dist/components/IDE/CodeRender.d.ts +4 -5
  311. package/dist/components/IDE/CodeRender.d.ts.map +1 -1
  312. package/dist/components/IDE/CodeRender.mjs +40 -604
  313. package/dist/components/IDE/CodeRender.mjs.map +1 -1
  314. package/dist/components/IDE/CopyButton.cjs +40 -0
  315. package/dist/components/IDE/CopyButton.cjs.map +1 -0
  316. package/dist/components/IDE/CopyButton.content.cjs +26 -0
  317. package/dist/components/IDE/CopyButton.content.cjs.map +1 -0
  318. package/dist/components/IDE/CopyButton.content.d.ts +8 -0
  319. package/dist/components/IDE/CopyButton.content.d.ts.map +1 -0
  320. package/dist/components/IDE/CopyButton.content.mjs +26 -0
  321. package/dist/components/IDE/CopyButton.content.mjs.map +1 -0
  322. package/dist/components/IDE/CopyButton.d.ts +7 -0
  323. package/dist/components/IDE/CopyButton.d.ts.map +1 -0
  324. package/dist/components/IDE/CopyButton.mjs +40 -0
  325. package/dist/components/IDE/CopyButton.mjs.map +1 -0
  326. package/dist/components/IDE/IDE.cjs +1 -1
  327. package/dist/components/IDE/IDE.cjs.map +1 -1
  328. package/dist/components/IDE/IDE.mjs +1 -1
  329. package/dist/components/IDE/IDE.mjs.map +1 -1
  330. package/dist/components/IDE/MarkDownRender.cjs +10 -2
  331. package/dist/components/IDE/MarkDownRender.cjs.map +1 -1
  332. package/dist/components/IDE/MarkDownRender.d.ts.map +1 -1
  333. package/dist/components/IDE/MarkDownRender.mjs +10 -2
  334. package/dist/components/IDE/MarkDownRender.mjs.map +1 -1
  335. package/dist/components/IDE/MonacoCode.cjs +129 -0
  336. package/dist/components/IDE/MonacoCode.cjs.map +1 -0
  337. package/dist/components/IDE/MonacoCode.d.ts +14 -0
  338. package/dist/components/IDE/MonacoCode.d.ts.map +1 -0
  339. package/dist/components/IDE/MonacoCode.mjs +129 -0
  340. package/dist/components/IDE/MonacoCode.mjs.map +1 -0
  341. package/dist/components/Link/Link.cjs +50 -31
  342. package/dist/components/Link/Link.cjs.map +1 -1
  343. package/dist/components/Link/Link.d.ts +3 -0
  344. package/dist/components/Link/Link.d.ts.map +1 -1
  345. package/dist/components/Link/Link.mjs +51 -32
  346. package/dist/components/Link/Link.mjs.map +1 -1
  347. package/dist/components/Link/index.cjs +1 -0
  348. package/dist/components/Link/index.cjs.map +1 -1
  349. package/dist/components/Link/index.mjs +3 -2
  350. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +122 -42
  351. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.map +1 -1
  352. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +2 -0
  353. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts.map +1 -1
  354. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +123 -43
  355. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -1
  356. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.cjs +86 -0
  357. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.cjs.map +1 -0
  358. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +14 -0
  359. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts.map +1 -0
  360. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.mjs +87 -0
  361. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.mjs.map +1 -0
  362. package/dist/components/MarkDownRender/index.cjs +4 -2
  363. package/dist/components/MarkDownRender/index.cjs.map +1 -1
  364. package/dist/components/MarkDownRender/index.d.ts +3 -1
  365. package/dist/components/MarkDownRender/index.d.ts.map +1 -1
  366. package/dist/components/MarkDownRender/index.mjs +4 -2
  367. package/dist/components/MarkDownRender/index.mjs.map +1 -1
  368. package/dist/components/Modal/Modal.cjs +8 -10
  369. package/dist/components/Modal/Modal.cjs.map +1 -1
  370. package/dist/components/Modal/Modal.d.ts.map +1 -1
  371. package/dist/components/Modal/Modal.mjs +8 -10
  372. package/dist/components/Modal/Modal.mjs.map +1 -1
  373. package/dist/components/Navbar/DesktopNavbar.cjs +1 -1
  374. package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -1
  375. package/dist/components/Navbar/DesktopNavbar.mjs +1 -1
  376. package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -1
  377. package/dist/components/index.cjs +13 -8
  378. package/dist/components/index.cjs.map +1 -1
  379. package/dist/components/index.mjs +14 -9
  380. package/dist/components/index.mjs.map +1 -1
  381. package/dist/design-system.css +235 -0
  382. package/dist/hooks/index.cjs +6 -0
  383. package/dist/hooks/index.cjs.map +1 -1
  384. package/dist/hooks/index.d.ts +1 -0
  385. package/dist/hooks/index.d.ts.map +1 -1
  386. package/dist/hooks/index.mjs +7 -1
  387. package/dist/hooks/index.mjs.map +1 -1
  388. package/dist/hooks/intlayerAPIHooks.cjs +8 -2
  389. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  390. package/dist/hooks/intlayerAPIHooks.d.ts +4 -0
  391. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  392. package/dist/hooks/intlayerAPIHooks.mjs +8 -2
  393. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  394. package/dist/hooks/useAsync/index.cjs +3 -0
  395. package/dist/hooks/useAsync/index.cjs.map +1 -1
  396. package/dist/hooks/useAsync/index.d.ts +1 -0
  397. package/dist/hooks/useAsync/index.d.ts.map +1 -1
  398. package/dist/hooks/useAsync/index.mjs +4 -1
  399. package/dist/hooks/useAsync/index.mjs.map +1 -1
  400. package/dist/hooks/useAsync/useAsync.cjs +2 -9
  401. package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
  402. package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
  403. package/dist/hooks/useAsync/useAsync.mjs +3 -10
  404. package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
  405. package/dist/hooks/useAsync/useAsyncStateStore.cjs +123 -69
  406. package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -1
  407. package/dist/hooks/useAsync/useAsyncStateStore.d.ts +35 -11
  408. package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +1 -1
  409. package/dist/hooks/useAsync/useAsyncStateStore.mjs +123 -69
  410. package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -1
  411. package/dist/hooks/useIntlayerAPI.d.ts +3 -0
  412. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
  413. package/dist/hooks/useIsDarkMode.cjs +15 -0
  414. package/dist/hooks/useIsDarkMode.cjs.map +1 -0
  415. package/dist/hooks/useIsDarkMode.d.ts +2 -0
  416. package/dist/hooks/useIsDarkMode.d.ts.map +1 -0
  417. package/dist/hooks/useIsDarkMode.mjs +15 -0
  418. package/dist/hooks/useIsDarkMode.mjs.map +1 -0
  419. package/dist/libs/intlayer-api/ai.cjs +24 -0
  420. package/dist/libs/intlayer-api/ai.cjs.map +1 -0
  421. package/dist/libs/intlayer-api/ai.d.ts +10 -0
  422. package/dist/libs/intlayer-api/ai.d.ts.map +1 -0
  423. package/dist/libs/intlayer-api/ai.mjs +24 -0
  424. package/dist/libs/intlayer-api/ai.mjs.map +1 -0
  425. package/dist/libs/intlayer-api/index.cjs +3 -1
  426. package/dist/libs/intlayer-api/index.cjs.map +1 -1
  427. package/dist/libs/intlayer-api/index.d.ts +6 -0
  428. package/dist/libs/intlayer-api/index.d.ts.map +1 -1
  429. package/dist/libs/intlayer-api/index.mjs +3 -1
  430. package/dist/libs/intlayer-api/index.mjs.map +1 -1
  431. package/dist/tailwind.css +1 -1
  432. package/package.json +19 -16
  433. package/dist/__vite-browser-external-SDi5tJh6.cjs +0 -4
  434. package/dist/__vite-browser-external-SDi5tJh6.cjs.map +0 -1
  435. package/dist/__vite-browser-external-r74dyCO2.js +0 -5
  436. package/dist/__vite-browser-external-r74dyCO2.js.map +0 -1
  437. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs +0 -66
  438. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs.map +0 -1
  439. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.d.ts.map +0 -1
  440. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.mjs +0 -66
  441. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.mjs.map +0 -1
  442. package/dist/components/Auth/ChangePasswordForm/index.content.cjs +0 -67
  443. package/dist/components/Auth/ChangePasswordForm/index.content.cjs.map +0 -1
  444. package/dist/components/Auth/ChangePasswordForm/index.content.d.ts +0 -23
  445. package/dist/components/Auth/ChangePasswordForm/index.content.d.ts.map +0 -1
  446. package/dist/components/Auth/ChangePasswordForm/index.content.mjs +0 -67
  447. package/dist/components/Auth/ChangePasswordForm/index.content.mjs.map +0 -1
  448. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs +0 -29
  449. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs.map +0 -1
  450. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.d.ts +0 -10
  451. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.d.ts.map +0 -1
  452. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.mjs +0 -29
  453. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.mjs.map +0 -1
  454. package/dist/components/Auth/ResetPasswordForm/index.content.cjs +0 -50
  455. package/dist/components/Auth/ResetPasswordForm/index.content.cjs.map +0 -1
  456. package/dist/components/Auth/ResetPasswordForm/index.content.d.ts +0 -18
  457. package/dist/components/Auth/ResetPasswordForm/index.content.d.ts.map +0 -1
  458. package/dist/components/Auth/ResetPasswordForm/index.content.mjs +0 -50
  459. package/dist/components/Auth/ResetPasswordForm/index.content.mjs.map +0 -1
  460. package/dist/components/Auth/SignInForm/SignInSchema.cjs +0 -38
  461. package/dist/components/Auth/SignInForm/SignInSchema.cjs.map +0 -1
  462. package/dist/components/Auth/SignInForm/SignInSchema.d.ts.map +0 -1
  463. package/dist/components/Auth/SignInForm/SignInSchema.mjs +0 -38
  464. package/dist/components/Auth/SignInForm/SignInSchema.mjs.map +0 -1
  465. package/dist/components/Auth/SignInForm/index.content.cjs +0 -84
  466. package/dist/components/Auth/SignInForm/index.content.cjs.map +0 -1
  467. package/dist/components/Auth/SignInForm/index.content.d.ts +0 -28
  468. package/dist/components/Auth/SignInForm/index.content.d.ts.map +0 -1
  469. package/dist/components/Auth/SignInForm/index.content.mjs +0 -84
  470. package/dist/components/Auth/SignInForm/index.content.mjs.map +0 -1
  471. package/dist/components/Auth/SignUpForm/SignUpSchema.cjs +0 -61
  472. package/dist/components/Auth/SignUpForm/SignUpSchema.cjs.map +0 -1
  473. package/dist/components/Auth/SignUpForm/SignUpSchema.d.ts.map +0 -1
  474. package/dist/components/Auth/SignUpForm/SignUpSchema.mjs +0 -61
  475. package/dist/components/Auth/SignUpForm/SignUpSchema.mjs.map +0 -1
  476. package/dist/components/Auth/SignUpForm/index.content.cjs +0 -72
  477. package/dist/components/Auth/SignUpForm/index.content.cjs.map +0 -1
  478. package/dist/components/Auth/SignUpForm/index.content.d.ts +0 -24
  479. package/dist/components/Auth/SignUpForm/index.content.d.ts.map +0 -1
  480. package/dist/components/Auth/SignUpForm/index.content.mjs +0 -72
  481. package/dist/components/Auth/SignUpForm/index.content.mjs.map +0 -1
  482. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs +0 -40
  483. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs.map +0 -1
  484. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts.map +0 -1
  485. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.mjs +0 -40
  486. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.mjs.map +0 -1
  487. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs +0 -85
  488. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs.map +0 -1
  489. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts.map +0 -1
  490. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.mjs +0 -85
  491. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.mjs.map +0 -1
  492. package/dist/tailwind.js +0 -1
@@ -1,635 +1,49 @@
1
1
  "use client";
2
2
  "use strict";
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
18
- // If the importer is in node compatibility mode or this is not an ESM
19
- // file that has been converted to a CommonJS file using a Babel-
20
- // compatible transform (i.e. "__esModule" has not been set), then set
21
- // "default" to the CommonJS "module.exports" for node compatibility.
22
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
- mod
24
- ));
25
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
26
4
  const jsxRuntime = require("../../jsx-runtime-XHKiWCTo.cjs");
27
- const lucideReact = require("lucide-react");
5
+ const highlight = require("highlight.js");
28
6
  const require$$0 = require("react");
29
- const CopyToClipboard = require("react-copy-to-clipboard");
30
7
  const utils_cn = require("../../utils/cn.cjs");
31
- const components_Loader_index = require("../Loader/index.cjs");
32
- const okaidia = {
33
- 'code[class*="language-"]': {
34
- "color": "#f8f8f2",
35
- "background": "none",
36
- "textShadow": "0 1px rgba(0, 0, 0, 0.3)",
37
- "fontFamily": "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
38
- "fontSize": "1em",
39
- "textAlign": "left",
40
- "whiteSpace": "pre",
41
- "wordSpacing": "normal",
42
- "wordBreak": "normal",
43
- "wordWrap": "normal",
44
- "lineHeight": "1.5",
45
- "MozTabSize": "4",
46
- "OTabSize": "4",
47
- "tabSize": "4",
48
- "WebkitHyphens": "none",
49
- "MozHyphens": "none",
50
- "msHyphens": "none",
51
- "hyphens": "none"
52
- },
53
- 'pre[class*="language-"]': {
54
- "color": "#f8f8f2",
55
- "background": "#272822",
56
- "textShadow": "0 1px rgba(0, 0, 0, 0.3)",
57
- "fontFamily": "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
58
- "fontSize": "1em",
59
- "textAlign": "left",
60
- "whiteSpace": "pre",
61
- "wordSpacing": "normal",
62
- "wordBreak": "normal",
63
- "wordWrap": "normal",
64
- "lineHeight": "1.5",
65
- "MozTabSize": "4",
66
- "OTabSize": "4",
67
- "tabSize": "4",
68
- "WebkitHyphens": "none",
69
- "MozHyphens": "none",
70
- "msHyphens": "none",
71
- "hyphens": "none",
72
- "padding": "1em",
73
- "margin": ".5em 0",
74
- "overflow": "auto",
75
- "borderRadius": "0.3em"
76
- },
77
- ':not(pre) > code[class*="language-"]': {
78
- "background": "#272822",
79
- "padding": ".1em",
80
- "borderRadius": ".3em",
81
- "whiteSpace": "normal"
82
- },
83
- "comment": {
84
- "color": "#8292a2"
85
- },
86
- "prolog": {
87
- "color": "#8292a2"
88
- },
89
- "doctype": {
90
- "color": "#8292a2"
91
- },
92
- "cdata": {
93
- "color": "#8292a2"
94
- },
95
- "punctuation": {
96
- "color": "#f8f8f2"
97
- },
98
- "namespace": {
99
- "Opacity": ".7"
100
- },
101
- "property": {
102
- "color": "#f92672"
103
- },
104
- "tag": {
105
- "color": "#f92672"
106
- },
107
- "constant": {
108
- "color": "#f92672"
109
- },
110
- "symbol": {
111
- "color": "#f92672"
112
- },
113
- "deleted": {
114
- "color": "#f92672"
115
- },
116
- "boolean": {
117
- "color": "#ae81ff"
118
- },
119
- "number": {
120
- "color": "#ae81ff"
121
- },
122
- "selector": {
123
- "color": "#a6e22e"
124
- },
125
- "attr-name": {
126
- "color": "#a6e22e"
127
- },
128
- "string": {
129
- "color": "#a6e22e"
130
- },
131
- "char": {
132
- "color": "#a6e22e"
133
- },
134
- "builtin": {
135
- "color": "#a6e22e"
136
- },
137
- "inserted": {
138
- "color": "#a6e22e"
139
- },
140
- "operator": {
141
- "color": "#f8f8f2"
142
- },
143
- "entity": {
144
- "color": "#f8f8f2",
145
- "cursor": "help"
146
- },
147
- "url": {
148
- "color": "#f8f8f2"
149
- },
150
- ".language-css .token.string": {
151
- "color": "#f8f8f2"
152
- },
153
- ".style .token.string": {
154
- "color": "#f8f8f2"
155
- },
156
- "variable": {
157
- "color": "#f8f8f2"
158
- },
159
- "atrule": {
160
- "color": "#e6db74"
161
- },
162
- "attr-value": {
163
- "color": "#e6db74"
164
- },
165
- "function": {
166
- "color": "#e6db74"
167
- },
168
- "class-name": {
169
- "color": "#e6db74"
170
- },
171
- "keyword": {
172
- "color": "#66d9ef"
173
- },
174
- "regex": {
175
- "color": "#fd971f"
176
- },
177
- "important": {
178
- "color": "#fd971f",
179
- "fontWeight": "bold"
180
- },
181
- "bold": {
182
- "fontWeight": "bold"
183
- },
184
- "italic": {
185
- "fontStyle": "italic"
186
- }
187
- };
188
- const coldarkCold = {
189
- 'code[class*="language-"]': {
190
- "color": "#111b27",
191
- "background": "none",
192
- "fontFamily": 'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',
193
- "textAlign": "left",
194
- "whiteSpace": "pre",
195
- "wordSpacing": "normal",
196
- "wordBreak": "normal",
197
- "wordWrap": "normal",
198
- "lineHeight": "1.5",
199
- "MozTabSize": "4",
200
- "OTabSize": "4",
201
- "tabSize": "4",
202
- "WebkitHyphens": "none",
203
- "MozHyphens": "none",
204
- "msHyphens": "none",
205
- "hyphens": "none"
206
- },
207
- 'pre[class*="language-"]': {
208
- "color": "#111b27",
209
- "background": "#e3eaf2",
210
- "fontFamily": 'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',
211
- "textAlign": "left",
212
- "whiteSpace": "pre",
213
- "wordSpacing": "normal",
214
- "wordBreak": "normal",
215
- "wordWrap": "normal",
216
- "lineHeight": "1.5",
217
- "MozTabSize": "4",
218
- "OTabSize": "4",
219
- "tabSize": "4",
220
- "WebkitHyphens": "none",
221
- "MozHyphens": "none",
222
- "msHyphens": "none",
223
- "hyphens": "none",
224
- "padding": "1em",
225
- "margin": "0.5em 0",
226
- "overflow": "auto"
227
- },
228
- 'pre[class*="language-"]::-moz-selection': {
229
- "background": "#8da1b9"
230
- },
231
- 'pre[class*="language-"] ::-moz-selection': {
232
- "background": "#8da1b9"
233
- },
234
- 'code[class*="language-"]::-moz-selection': {
235
- "background": "#8da1b9"
236
- },
237
- 'code[class*="language-"] ::-moz-selection': {
238
- "background": "#8da1b9"
239
- },
240
- 'pre[class*="language-"]::selection': {
241
- "background": "#8da1b9"
242
- },
243
- 'pre[class*="language-"] ::selection': {
244
- "background": "#8da1b9"
245
- },
246
- 'code[class*="language-"]::selection': {
247
- "background": "#8da1b9"
248
- },
249
- 'code[class*="language-"] ::selection': {
250
- "background": "#8da1b9"
251
- },
252
- ':not(pre) > code[class*="language-"]': {
253
- "background": "#e3eaf2",
254
- "padding": "0.1em 0.3em",
255
- "borderRadius": "0.3em",
256
- "whiteSpace": "normal"
257
- },
258
- "comment": {
259
- "color": "#3c526d"
260
- },
261
- "prolog": {
262
- "color": "#3c526d"
263
- },
264
- "doctype": {
265
- "color": "#3c526d"
266
- },
267
- "cdata": {
268
- "color": "#3c526d"
269
- },
270
- "punctuation": {
271
- "color": "#111b27"
272
- },
273
- "delimiter.important": {
274
- "color": "#006d6d",
275
- "fontWeight": "inherit"
276
- },
277
- "selector.parent": {
278
- "color": "#006d6d"
279
- },
280
- "tag": {
281
- "color": "#006d6d"
282
- },
283
- "tag.punctuation": {
284
- "color": "#006d6d"
285
- },
286
- "attr-name": {
287
- "color": "#755f00"
288
- },
289
- "boolean": {
290
- "color": "#755f00"
291
- },
292
- "boolean.important": {
293
- "color": "#755f00"
294
- },
295
- "number": {
296
- "color": "#755f00"
297
- },
298
- "constant": {
299
- "color": "#755f00"
300
- },
301
- "selector.attribute": {
302
- "color": "#755f00"
303
- },
304
- "class-name": {
305
- "color": "#005a8e"
306
- },
307
- "key": {
308
- "color": "#005a8e"
309
- },
310
- "parameter": {
311
- "color": "#005a8e"
312
- },
313
- "property": {
314
- "color": "#005a8e"
315
- },
316
- "property-access": {
317
- "color": "#005a8e"
318
- },
319
- "variable": {
320
- "color": "#005a8e"
321
- },
322
- "attr-value": {
323
- "color": "#116b00"
324
- },
325
- "inserted": {
326
- "color": "#116b00"
327
- },
328
- "color": {
329
- "color": "#116b00"
330
- },
331
- "selector.value": {
332
- "color": "#116b00"
333
- },
334
- "string": {
335
- "color": "#116b00"
336
- },
337
- "string.url-link": {
338
- "color": "#116b00"
339
- },
340
- "builtin": {
341
- "color": "#af00af"
342
- },
343
- "keyword-array": {
344
- "color": "#af00af"
345
- },
346
- "package": {
347
- "color": "#af00af"
348
- },
349
- "regex": {
350
- "color": "#af00af"
351
- },
352
- "function": {
353
- "color": "#7c00aa"
354
- },
355
- "selector.class": {
356
- "color": "#7c00aa"
357
- },
358
- "selector.id": {
359
- "color": "#7c00aa"
360
- },
361
- "atrule.rule": {
362
- "color": "#a04900"
363
- },
364
- "combinator": {
365
- "color": "#a04900"
366
- },
367
- "keyword": {
368
- "color": "#a04900"
369
- },
370
- "operator": {
371
- "color": "#a04900"
372
- },
373
- "pseudo-class": {
374
- "color": "#a04900"
375
- },
376
- "pseudo-element": {
377
- "color": "#a04900"
378
- },
379
- "selector": {
380
- "color": "#a04900"
381
- },
382
- "unit": {
383
- "color": "#a04900"
384
- },
385
- "deleted": {
386
- "color": "#c22f2e"
387
- },
388
- "important": {
389
- "color": "#c22f2e",
390
- "fontWeight": "bold"
391
- },
392
- "keyword-this": {
393
- "color": "#005a8e",
394
- "fontWeight": "bold"
395
- },
396
- "this": {
397
- "color": "#005a8e",
398
- "fontWeight": "bold"
399
- },
400
- "bold": {
401
- "fontWeight": "bold"
402
- },
403
- "italic": {
404
- "fontStyle": "italic"
405
- },
406
- "entity": {
407
- "cursor": "help"
408
- },
409
- ".language-markdown .token.title": {
410
- "color": "#005a8e",
411
- "fontWeight": "bold"
412
- },
413
- ".language-markdown .token.title .token.punctuation": {
414
- "color": "#005a8e",
415
- "fontWeight": "bold"
416
- },
417
- ".language-markdown .token.blockquote.punctuation": {
418
- "color": "#af00af"
419
- },
420
- ".language-markdown .token.code": {
421
- "color": "#006d6d"
422
- },
423
- ".language-markdown .token.hr.punctuation": {
424
- "color": "#005a8e"
425
- },
426
- ".language-markdown .token.url > .token.content": {
427
- "color": "#116b00"
428
- },
429
- ".language-markdown .token.url-link": {
430
- "color": "#755f00"
431
- },
432
- ".language-markdown .token.list.punctuation": {
433
- "color": "#af00af"
434
- },
435
- ".language-markdown .token.table-header": {
436
- "color": "#111b27"
437
- },
438
- ".language-json .token.operator": {
439
- "color": "#111b27"
440
- },
441
- ".language-scss .token.variable": {
442
- "color": "#006d6d"
443
- },
444
- "token.tab:not(:empty):before": {
445
- "color": "#3c526d"
446
- },
447
- "token.cr:before": {
448
- "color": "#3c526d"
449
- },
450
- "token.lf:before": {
451
- "color": "#3c526d"
452
- },
453
- "token.space:before": {
454
- "color": "#3c526d"
455
- },
456
- "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
457
- "color": "#e3eaf2",
458
- "background": "#005a8e"
459
- },
460
- "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
461
- "color": "#e3eaf2",
462
- "background": "#005a8e"
463
- },
464
- "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
465
- "color": "#e3eaf2",
466
- "background": "#005a8eda",
467
- "textDecoration": "none"
468
- },
469
- "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
470
- "color": "#e3eaf2",
471
- "background": "#005a8eda",
472
- "textDecoration": "none"
473
- },
474
- "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
475
- "color": "#e3eaf2",
476
- "background": "#005a8eda",
477
- "textDecoration": "none"
478
- },
479
- "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
480
- "color": "#e3eaf2",
481
- "background": "#005a8eda",
482
- "textDecoration": "none"
483
- },
484
- "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
485
- "color": "#e3eaf2",
486
- "background": "#3c526d"
487
- },
488
- "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
489
- "color": "#e3eaf2",
490
- "background": "#3c526d"
491
- },
492
- "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
493
- "color": "#e3eaf2",
494
- "background": "#3c526d"
495
- },
496
- ".line-highlight.line-highlight": {
497
- "background": "linear-gradient(to right, #8da1b92f 70%, #8da1b925)"
498
- },
499
- ".line-highlight.line-highlight:before": {
500
- "backgroundColor": "#3c526d",
501
- "color": "#e3eaf2",
502
- "boxShadow": "0 1px #8da1b9"
503
- },
504
- ".line-highlight.line-highlight[data-end]:after": {
505
- "backgroundColor": "#3c526d",
506
- "color": "#e3eaf2",
507
- "boxShadow": "0 1px #8da1b9"
508
- },
509
- "pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before": {
510
- "backgroundColor": "#3c526d1f"
511
- },
512
- ".line-numbers.line-numbers .line-numbers-rows": {
513
- "borderRight": "1px solid #8da1b97a",
514
- "background": "#d0dae77a"
515
- },
516
- ".line-numbers .line-numbers-rows > span:before": {
517
- "color": "#3c526dda"
518
- },
519
- ".rainbow-braces .token.token.punctuation.brace-level-1": {
520
- "color": "#755f00"
521
- },
522
- ".rainbow-braces .token.token.punctuation.brace-level-5": {
523
- "color": "#755f00"
524
- },
525
- ".rainbow-braces .token.token.punctuation.brace-level-9": {
526
- "color": "#755f00"
527
- },
528
- ".rainbow-braces .token.token.punctuation.brace-level-2": {
529
- "color": "#af00af"
530
- },
531
- ".rainbow-braces .token.token.punctuation.brace-level-6": {
532
- "color": "#af00af"
533
- },
534
- ".rainbow-braces .token.token.punctuation.brace-level-10": {
535
- "color": "#af00af"
536
- },
537
- ".rainbow-braces .token.token.punctuation.brace-level-3": {
538
- "color": "#005a8e"
539
- },
540
- ".rainbow-braces .token.token.punctuation.brace-level-7": {
541
- "color": "#005a8e"
542
- },
543
- ".rainbow-braces .token.token.punctuation.brace-level-11": {
544
- "color": "#005a8e"
545
- },
546
- ".rainbow-braces .token.token.punctuation.brace-level-4": {
547
- "color": "#7c00aa"
548
- },
549
- ".rainbow-braces .token.token.punctuation.brace-level-8": {
550
- "color": "#7c00aa"
551
- },
552
- ".rainbow-braces .token.token.punctuation.brace-level-12": {
553
- "color": "#7c00aa"
554
- },
555
- "pre.diff-highlight > code .token.token.deleted:not(.prefix)": {
556
- "backgroundColor": "#c22f2e1f"
557
- },
558
- "pre > code.diff-highlight .token.token.deleted:not(.prefix)": {
559
- "backgroundColor": "#c22f2e1f"
560
- },
561
- "pre.diff-highlight > code .token.token.inserted:not(.prefix)": {
562
- "backgroundColor": "#116b001f"
563
- },
564
- "pre > code.diff-highlight .token.token.inserted:not(.prefix)": {
565
- "backgroundColor": "#116b001f"
566
- },
567
- ".command-line .command-line-prompt": {
568
- "borderRight": "1px solid #8da1b97a"
569
- },
570
- ".command-line .command-line-prompt > span:before": {
571
- "color": "#3c526dda"
8
+ const components_IDE_CopyButton = require("./CopyButton.cjs");
9
+ const Code = require$$0.forwardRef(
10
+ ({
11
+ children,
12
+ language,
13
+ isDarkMode,
14
+ showHeader = true,
15
+ showLineNumbers = true,
16
+ className,
17
+ ...props
18
+ }, ref) => {
19
+ const codeRef = require$$0.useRef(null);
20
+ require$$0.useEffect(() => {
21
+ if (codeRef && codeRef.current && !codeRef.current.hasAttribute("data-highlighted")) {
22
+ highlight.highlightElement(codeRef.current);
23
+ codeRef.current.setAttribute("data-highlighted", "true");
24
+ }
25
+ }, [children, showLineNumbers]);
26
+ return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
27
+ "div",
28
+ {
29
+ className: utils_cn.cn(
30
+ "relative h-full w-full text-sm leading-6",
31
+ showLineNumbers && "ml-0",
32
+ className
33
+ ),
34
+ ref,
35
+ ...props,
36
+ children: [
37
+ showHeader && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(jsxRuntime.jsxRuntimeExports.Fragment, { children: [
38
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "bg-card dark:bg-card-dark text-neutral dark:text-neutral-dark flex h-9 w-full items-center rounded-t-xl pl-4 text-sm", children: language ?? "javascript" }),
39
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "sticky top-28", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "absolute bottom-0 right-2 flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_IDE_CopyButton.CopyButton, { content: children }) }) })
40
+ ] }),
41
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "grid size-full grid-cols-[0px] overflow-auto p-3", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("pre", { children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("code", { className: `language-${language} w-fit`, ref: codeRef, children }) }) })
42
+ ]
43
+ }
44
+ );
572
45
  }
573
- };
574
- const SyntaxHighlighter = require$$0.lazy(
575
- () => import("react-syntax-highlighter").then((module2) => ({
576
- default: module2.Prism
577
- }))
578
46
  );
579
- const Code = ({
580
- children,
581
- language,
582
- isDarkMode,
583
- showLineNumbers = true,
584
- ...props
585
- }) => {
586
- const [isDarkModeState, setIsDarkModeState] = require$$0.useState(false);
587
- const [copied, setCopied] = require$$0.useState(false);
588
- require$$0.useEffect(
589
- () => (
590
- // Necessary to fix first render bug
591
- setIsDarkModeState(isDarkMode ?? false)
592
- ),
593
- [isDarkMode]
594
- );
595
- require$$0.useEffect(() => {
596
- const timer = setTimeout(() => {
597
- setCopied(false);
598
- }, 1e3);
599
- return () => clearTimeout(timer);
600
- }, [copied]);
601
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
602
- "div",
603
- {
604
- className: utils_cn.cn(
605
- "relative h-full w-full text-sm",
606
- showLineNumbers && "ml-0"
607
- ),
608
- children: [
609
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(CopyToClipboard, { text: children, onCopy: () => setCopied(true), children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("button", { className: "absolute right-3 top-3", "aria-label": "Copy code", children: copied ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(lucideReact.CopyCheckIcon, { className: "size-4" }) : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(lucideReact.CopyIcon, { className: "size-4" }) }) }),
610
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "grid size-full grid-cols-[0px] overflow-auto p-3", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(require$$0.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_Loader_index.Loader, {}), children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
611
- SyntaxHighlighter,
612
- {
613
- customStyle: {
614
- display: void 0,
615
- overflowX: "auto",
616
- overflowY: "auto",
617
- padding: void 0,
618
- color: void 0,
619
- background: "inherit",
620
- margin: void 0
621
- },
622
- PreTag: (props2) => props2.children,
623
- language: language ?? "javascript",
624
- style: isDarkModeState ? okaidia : coldarkCold,
625
- showLineNumbers,
626
- ...props,
627
- children: String(children).replace(/\n$/, "")
628
- }
629
- ) }) })
630
- ]
631
- }
632
- );
633
- };
47
+ Code.displayName = "Code";
634
48
  exports.Code = Code;
635
49
  //# sourceMappingURL=CodeRender.cjs.map