@app-studio/components 0.11.6 → 0.11.8

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 (785) hide show
  1. package/dist/files/media/BlockEditor-drag-and-drop.md +61 -0
  2. package/dist/files/media/BlockEditor.mdx +106 -0
  3. package/dist/files/media/Button.mdx +1 -1
  4. package/dist/files/media/Checkbox.mdx +1 -1
  5. package/dist/files/media/ColorInput.mdx +1 -1
  6. package/dist/files/media/ColorPicker.mdx +1 -1
  7. package/dist/files/media/CountryPicker.mdx +1 -1
  8. package/dist/files/media/DatePicker.mdx +1 -1
  9. package/dist/files/media/EmojiPicker.mdx +22 -1
  10. package/dist/files/media/Markdown.mdx +99 -0
  11. package/dist/files/media/OTPInput.mdx +2 -2
  12. package/dist/files/media/Select.mdx +1 -1
  13. package/dist/files/media/Switch.mdx +2 -2
  14. package/dist/files/media/TextArea.mdx +8 -8
  15. package/dist/files/media/TextField.mdx +9 -9
  16. package/dist/index.d.ts +649 -511
  17. package/dist/native/components/Accordion/Accordion/Accordion.props.d.ts +1 -1
  18. package/dist/native/components/Accordion/Accordion/Accordion.state.js +1 -1
  19. package/dist/native/components/Accordion/Accordion/Accordion.view.d.ts +1 -1
  20. package/dist/native/components/Accordion/Accordion/Accordion.view.js +1 -1
  21. package/dist/native/components/Accordion/Accordion/Accordion.view.native.d.ts +1 -1
  22. package/dist/native/components/Accordion/Accordion/Accordion.view.native.js +1 -1
  23. package/dist/native/components/Accordion/Accordion.js +1 -1
  24. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.props.d.ts +1 -1
  25. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.state.js +1 -1
  26. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.type.d.ts +1 -1
  27. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.d.ts +1 -1
  28. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.js +1 -1
  29. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.d.ts +1 -1
  30. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.js +1 -1
  31. package/dist/native/components/ActionSheet/ActionSheet.d.ts +1 -1
  32. package/dist/native/components/ActionSheet/ActionSheet.js +1 -1
  33. package/dist/native/components/Alert/Alert/Alert.props.d.ts +1 -1
  34. package/dist/native/components/Alert/Alert/Alert.state.d.ts +1 -1
  35. package/dist/native/components/Alert/Alert/Alert.state.js +1 -1
  36. package/dist/native/components/Alert/Alert/Alert.view.d.ts +1 -1
  37. package/dist/native/components/Alert/Alert/Alert.view.js +1 -1
  38. package/dist/native/components/Alert/Alert/Alert.view.native.d.ts +1 -1
  39. package/dist/native/components/Alert/Alert/Alert.view.native.js +1 -1
  40. package/dist/native/components/Alert/Alert.d.ts +1 -1
  41. package/dist/native/components/Alert/Alert.js +1 -1
  42. package/dist/native/components/AppRoot/AppRoot.d.ts +1 -1
  43. package/dist/native/components/AppRoot/AppRoot.js +1 -1
  44. package/dist/native/components/AppRoot/AppRoot.native.d.ts +1 -1
  45. package/dist/native/components/AppRoot/AppRoot.native.js +1 -1
  46. package/dist/native/components/AppRoot/AppRoot.types.d.ts +1 -1
  47. package/dist/native/components/AspectRatio/AspectRatio/AspectRatio.view.d.ts +1 -1
  48. package/dist/native/components/AspectRatio/AspectRatio/AspectRatio.view.js +1 -1
  49. package/dist/native/components/AspectRatio/AspectRatio.d.ts +1 -1
  50. package/dist/native/components/AspectRatio/AspectRatio.js +1 -1
  51. package/dist/native/components/AttachmentGroup/AttachmentGroup/AttachmentGroup.d.ts +1 -1
  52. package/dist/native/components/AttachmentGroup/AttachmentGroup/AttachmentGroup.js +1 -1
  53. package/dist/native/components/AudioInput/AudioInput/AudioInput.state.js +1 -1
  54. package/dist/native/components/AudioInput/AudioInput/AudioInput.view.d.ts +1 -1
  55. package/dist/native/components/AudioInput/AudioInput/AudioInput.view.js +1 -1
  56. package/dist/native/components/AudioInput/AudioInput.d.ts +1 -1
  57. package/dist/native/components/AudioInput/AudioInput.js +1 -1
  58. package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.d.ts +1 -1
  59. package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.js +1 -1
  60. package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.view.d.ts +1 -1
  61. package/dist/native/components/AudioInput/AudioWaveform/AudioWaveform.view.js +1 -1
  62. package/dist/native/components/AudioInput/useAudioRecording.js +1 -1
  63. package/dist/native/components/AudioInput/useAudioRecording.native.js +1 -1
  64. package/dist/native/components/Avatar/Avatar/Avatar.props.d.ts +1 -1
  65. package/dist/native/components/Avatar/Avatar/Avatar.state.d.ts +1 -1
  66. package/dist/native/components/Avatar/Avatar/Avatar.state.js +1 -1
  67. package/dist/native/components/Avatar/Avatar/Avatar.view.d.ts +1 -1
  68. package/dist/native/components/Avatar/Avatar/Avatar.view.js +1 -1
  69. package/dist/native/components/Avatar/Avatar.d.ts +1 -1
  70. package/dist/native/components/Avatar/Avatar.js +1 -1
  71. package/dist/native/components/Background/Background/Background.props.d.ts +1 -1
  72. package/dist/native/components/Background/Background/Background.view.d.ts +1 -1
  73. package/dist/native/components/Background/Background/Background.view.js +1 -1
  74. package/dist/native/components/Background/Background/Background.view.native.d.ts +1 -1
  75. package/dist/native/components/Background/Background/Background.view.native.js +1 -1
  76. package/dist/native/components/Background/Background.d.ts +1 -1
  77. package/dist/native/components/Background/Background.js +1 -1
  78. package/dist/native/components/Badge/Badge/Badge.view.d.ts +1 -1
  79. package/dist/native/components/Badge/Badge/Badge.view.js +1 -1
  80. package/dist/native/components/Badge/Badge.d.ts +1 -1
  81. package/dist/native/components/Badge/Badge.js +1 -1
  82. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.content.d.ts +16 -0
  83. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.content.js +197 -0
  84. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.content.js.map +1 -0
  85. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.d.ts +14 -0
  86. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.js +119 -0
  87. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.controls.js.map +1 -0
  88. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.dom.d.ts +9 -0
  89. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.dom.js +247 -0
  90. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.dom.js.map +1 -0
  91. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.keyboard.d.ts +16 -0
  92. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.keyboard.js +397 -0
  93. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.keyboard.js.map +1 -0
  94. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.d.ts +47 -0
  95. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.js +504 -0
  96. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.model.js.map +1 -0
  97. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.navigation.d.ts +6 -0
  98. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.navigation.js +198 -0
  99. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.navigation.js.map +1 -0
  100. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.d.ts +74 -0
  101. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.js +51 -0
  102. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.props.js.map +1 -0
  103. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.d.ts +13 -0
  104. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.js +33 -0
  105. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.selection.js.map +1 -0
  106. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.d.ts +117 -0
  107. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.js +405 -0
  108. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.state.js.map +1 -0
  109. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.transactions.d.ts +8 -0
  110. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.transactions.js +177 -0
  111. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.transactions.js.map +1 -0
  112. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.d.ts +6 -0
  113. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.js +493 -0
  114. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.js.map +1 -0
  115. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.d.ts +6 -0
  116. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.js +150 -0
  117. package/dist/native/components/BlockEditor/BlockEditor/BlockEditor.view.native.js.map +1 -0
  118. package/dist/native/components/BlockEditor/BlockEditor.d.ts +3 -0
  119. package/dist/native/components/BlockEditor/BlockEditor.js +8 -0
  120. package/dist/native/components/BlockEditor/BlockEditor.js.map +1 -0
  121. package/dist/native/components/Button/Button/Button.props.d.ts +1 -1
  122. package/dist/native/components/Button/Button/Button.state.d.ts +1 -1
  123. package/dist/native/components/Button/Button/Button.state.js +1 -1
  124. package/dist/native/components/Button/Button/Button.view.d.ts +1 -1
  125. package/dist/native/components/Button/Button/Button.view.js +1 -1
  126. package/dist/native/components/Button/Button/Button.view.native.d.ts +1 -1
  127. package/dist/native/components/Button/Button/Button.view.native.js +1 -1
  128. package/dist/native/components/Button/Button.d.ts +1 -1
  129. package/dist/native/components/Button/Button.js +1 -1
  130. package/dist/native/components/Card/Card/Card.context.d.ts +1 -1
  131. package/dist/native/components/Card/Card/Card.context.js +1 -1
  132. package/dist/native/components/Card/Card/Card.state.d.ts +1 -1
  133. package/dist/native/components/Card/Card/Card.state.js +1 -1
  134. package/dist/native/components/Card/Card/Card.view.d.ts +1 -1
  135. package/dist/native/components/Card/Card/Card.view.js +1 -1
  136. package/dist/native/components/Card/Card.js +1 -1
  137. package/dist/native/components/Carousel/Carousel/Carousel.context.d.ts +1 -1
  138. package/dist/native/components/Carousel/Carousel/Carousel.context.js +1 -1
  139. package/dist/native/components/Carousel/Carousel/Carousel.state.js +1 -1
  140. package/dist/native/components/Carousel/Carousel/Carousel.view.d.ts +1 -1
  141. package/dist/native/components/Carousel/Carousel/Carousel.view.js +1 -1
  142. package/dist/native/components/Carousel/Carousel/Carousel.view.native.d.ts +1 -1
  143. package/dist/native/components/Carousel/Carousel/Carousel.view.native.js +1 -1
  144. package/dist/native/components/Carousel/Carousel.js +1 -1
  145. package/dist/native/components/Chart/Chart/BarChart.d.ts +1 -1
  146. package/dist/native/components/Chart/Chart/BarChart.js +1 -1
  147. package/dist/native/components/Chart/Chart/BarChart.native.d.ts +1 -1
  148. package/dist/native/components/Chart/Chart/BarChart.native.js +1 -1
  149. package/dist/native/components/Chart/Chart/Chart.state.d.ts +2 -2
  150. package/dist/native/components/Chart/Chart/Chart.state.js +1 -1
  151. package/dist/native/components/Chart/Chart/Chart.view.d.ts +1 -1
  152. package/dist/native/components/Chart/Chart/Chart.view.js +1 -1
  153. package/dist/native/components/Chart/Chart/ChartTooltip.d.ts +1 -1
  154. package/dist/native/components/Chart/Chart/ChartTooltip.js +1 -1
  155. package/dist/native/components/Chart/Chart/LineChart.d.ts +1 -1
  156. package/dist/native/components/Chart/Chart/LineChart.js +1 -1
  157. package/dist/native/components/Chart/Chart/LineChart.native.d.ts +1 -1
  158. package/dist/native/components/Chart/Chart/LineChart.native.js +1 -1
  159. package/dist/native/components/Chart/Chart/PieChart.d.ts +1 -1
  160. package/dist/native/components/Chart/Chart/PieChart.js +1 -1
  161. package/dist/native/components/Chart/Chart/PieChart.native.d.ts +1 -1
  162. package/dist/native/components/Chart/Chart/PieChart.native.js +1 -1
  163. package/dist/native/components/Chart/Chart.d.ts +1 -1
  164. package/dist/native/components/Chart/Chart.js +1 -1
  165. package/dist/native/components/ChatInput/AttachmentGroup.d.ts +1 -1
  166. package/dist/native/components/ChatInput/AttachmentGroup.js +1 -1
  167. package/dist/native/components/ChatInput/AudioRecorder.d.ts +1 -1
  168. package/dist/native/components/ChatInput/AudioRecorder.js +1 -1
  169. package/dist/native/components/ChatInput/ChatInput/ChatInput.state.d.ts +7 -7
  170. package/dist/native/components/ChatInput/ChatInput/ChatInput.state.js +1 -1
  171. package/dist/native/components/ChatInput/ChatInput/ChatInput.view.d.ts +1 -1
  172. package/dist/native/components/ChatInput/ChatInput/ChatInput.view.js +1 -1
  173. package/dist/native/components/ChatInput/ChatInput.d.ts +1 -1
  174. package/dist/native/components/ChatInput/ChatInput.js +1 -1
  175. package/dist/native/components/ChatInput/ChatUploader.d.ts +1 -1
  176. package/dist/native/components/ChatInput/ChatUploader.js +1 -1
  177. package/dist/native/components/ChatInput/EditableInput.d.ts +1 -1
  178. package/dist/native/components/ChatInput/EditableInput.js +1 -1
  179. package/dist/native/components/ChatInput/EditableInput.native.d.ts +1 -1
  180. package/dist/native/components/ChatInput/EditableInput.native.js +1 -1
  181. package/dist/native/components/ChatInput/GuideTip.d.ts +1 -1
  182. package/dist/native/components/ChatInput/GuideTip.js +1 -1
  183. package/dist/native/components/ChatInput/MessageInput.d.ts +1 -1
  184. package/dist/native/components/ChatInput/MessageInput.js +2 -2
  185. package/dist/native/components/ChatInput/MessageInput.js.map +1 -1
  186. package/dist/native/components/ChatInput/MessageInput.native.d.ts +1 -1
  187. package/dist/native/components/ChatInput/MessageInput.native.js +1 -1
  188. package/dist/native/components/ChatInput/PromptExamples.d.ts +1 -1
  189. package/dist/native/components/ChatInput/PromptExamples.js +1 -1
  190. package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.state.d.ts +2 -2
  191. package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.state.js +1 -1
  192. package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.style.d.ts +1 -1
  193. package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.d.ts +1 -1
  194. package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.js +2 -2
  195. package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.js.map +1 -1
  196. package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.native.d.ts +1 -1
  197. package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.native.js +1 -1
  198. package/dist/native/components/ChatWidget/ChatWidget.d.ts +1 -1
  199. package/dist/native/components/ChatWidget/ChatWidget.js +1 -1
  200. package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.d.ts +1 -1
  201. package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.js +1 -1
  202. package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.native.d.ts +1 -1
  203. package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.native.js +1 -1
  204. package/dist/native/components/ChatWidget/Widget/useContextSelector.d.ts +1 -1
  205. package/dist/native/components/ChatWidget/Widget/useContextSelector.js +1 -1
  206. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.state.d.ts +2 -2
  207. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.state.js +1 -1
  208. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.d.ts +1 -1
  209. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.js +1 -1
  210. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.native.d.ts +1 -1
  211. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.native.js +1 -1
  212. package/dist/native/components/ColorPicker/ColorPicker.d.ts +1 -1
  213. package/dist/native/components/ColorPicker/ColorPicker.js +1 -1
  214. package/dist/native/components/Command/Command/Command.props.d.ts +1 -1
  215. package/dist/native/components/Command/Command/Command.state.d.ts +3 -3
  216. package/dist/native/components/Command/Command/Command.state.js +1 -1
  217. package/dist/native/components/Command/Command/Command.type.d.ts +1 -1
  218. package/dist/native/components/Command/Command/Command.view.d.ts +1 -1
  219. package/dist/native/components/Command/Command/Command.view.js +1 -1
  220. package/dist/native/components/Command/Command/Command.view.native.d.ts +1 -1
  221. package/dist/native/components/Command/Command/Command.view.native.js +1 -1
  222. package/dist/native/components/Command/Command/CommandOverlay.d.ts +1 -1
  223. package/dist/native/components/Command/Command/CommandOverlay.js +1 -1
  224. package/dist/native/components/Command/Command/CommandOverlay.native.d.ts +1 -1
  225. package/dist/native/components/Command/Command/CommandOverlay.native.js +1 -1
  226. package/dist/native/components/Command/Command/CommandTextInput.d.ts +1 -1
  227. package/dist/native/components/Command/Command/CommandTextInput.js +1 -1
  228. package/dist/native/components/Command/Command/CommandTextInput.native.d.ts +1 -1
  229. package/dist/native/components/Command/Command/CommandTextInput.native.js +1 -1
  230. package/dist/native/components/Command/Command.js +1 -1
  231. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +1 -1
  232. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +1 -1
  233. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.state.js +1 -1
  234. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +1 -1
  235. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +1 -1
  236. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.js +1 -1
  237. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.native.d.ts +1 -1
  238. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.native.js +1 -1
  239. package/dist/native/components/ContextMenu/ContextMenu.js +1 -1
  240. package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.state.d.ts +1 -1
  241. package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.state.js +1 -1
  242. package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.view.d.ts +1 -1
  243. package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.view.js +1 -1
  244. package/dist/native/components/CookieConsent/CookieConsent.d.ts +1 -1
  245. package/dist/native/components/CookieConsent/CookieConsent.js +1 -1
  246. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.d.ts +1 -1
  247. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.js +1 -1
  248. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.native.d.ts +1 -1
  249. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.native.js +1 -1
  250. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +1 -1
  251. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.js +1 -1
  252. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.native.d.ts +1 -1
  253. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.native.js +1 -1
  254. package/dist/native/components/DragAndDrop/DragAndDrop.d.ts +1 -1
  255. package/dist/native/components/DragAndDrop/DragAndDrop.js +1 -1
  256. package/dist/native/components/Drawer/Drawer/Drawer.layout.d.ts +1 -1
  257. package/dist/native/components/Drawer/Drawer/Drawer.layout.js +1 -1
  258. package/dist/native/components/Drawer/Drawer/Drawer.props.d.ts +1 -1
  259. package/dist/native/components/Drawer/Drawer/Drawer.view.d.ts +1 -1
  260. package/dist/native/components/Drawer/Drawer/Drawer.view.js +1 -1
  261. package/dist/native/components/Drawer/Drawer/Drawer.view.native.d.ts +1 -1
  262. package/dist/native/components/Drawer/Drawer/Drawer.view.native.js +1 -1
  263. package/dist/native/components/Drawer/Drawer.js +1 -1
  264. package/dist/native/components/DropZone/DropZone/DropZone.state.js +1 -1
  265. package/dist/native/components/DropZone/DropZone/DropZone.view.d.ts +1 -1
  266. package/dist/native/components/DropZone/DropZone/DropZone.view.js +1 -1
  267. package/dist/native/components/DropZone/DropZone/DropZone.view.native.d.ts +1 -1
  268. package/dist/native/components/DropZone/DropZone/DropZone.view.native.js +1 -1
  269. package/dist/native/components/DropZone/DropZone.d.ts +1 -1
  270. package/dist/native/components/DropZone/DropZone.js +1 -1
  271. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.props.d.ts +1 -1
  272. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.state.d.ts +2 -2
  273. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.state.js +1 -1
  274. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.type.d.ts +1 -1
  275. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +1 -1
  276. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.js +1 -1
  277. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.native.d.ts +1 -1
  278. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.native.js +1 -1
  279. package/dist/native/components/DropdownMenu/DropdownMenu.js +1 -1
  280. package/dist/native/components/EditComponent/EditComponent.d.ts +1 -1
  281. package/dist/native/components/EditComponent/EditComponent.js +1 -1
  282. package/dist/native/components/EditComponent/EditPanel.d.ts +1 -1
  283. package/dist/native/components/EditComponent/EditPanel.js +1 -1
  284. package/dist/native/components/EditComponent/EditToolbar.d.ts +1 -1
  285. package/dist/native/components/EditComponent/EditToolbar.js +1 -1
  286. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.data.d.ts +3 -0
  287. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.data.js +3011 -0
  288. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.data.js.map +1 -0
  289. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.props.d.ts +30 -2
  290. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.props.js +18 -1
  291. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.props.js.map +1 -1
  292. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.d.ts +24 -3
  293. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.js +147 -113
  294. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.js.map +1 -1
  295. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.style.d.ts +2 -2
  296. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.style.js +1 -2211
  297. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.style.js.map +1 -1
  298. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.d.ts +1 -1
  299. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.js +160 -90
  300. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.js.map +1 -1
  301. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.native.d.ts +1 -1
  302. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.native.js +61 -85
  303. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.native.js.map +1 -1
  304. package/dist/native/components/EmojiPicker/EmojiPicker.d.ts +1 -1
  305. package/dist/native/components/EmojiPicker/EmojiPicker.js +1 -1
  306. package/dist/native/components/File/File.d.ts +1 -1
  307. package/dist/native/components/File/File.js +1 -1
  308. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +1 -1
  309. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.state.d.ts +1 -1
  310. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.state.js +1 -1
  311. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.d.ts +1 -1
  312. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.js +1 -1
  313. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.d.ts +1 -1
  314. package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.js +1 -1
  315. package/dist/native/components/Form/Checkbox/Checkbox.d.ts +1 -1
  316. package/dist/native/components/Form/Checkbox/Checkbox.js +1 -1
  317. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.props.d.ts +1 -1
  318. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.state.d.ts +4 -4
  319. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.state.js +1 -1
  320. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.d.ts +1 -1
  321. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.js +1 -1
  322. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.native.d.ts +1 -1
  323. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.native.js +1 -1
  324. package/dist/native/components/Form/ColorInput/ColorInput.d.ts +1 -1
  325. package/dist/native/components/Form/ColorInput/ColorInput.js +1 -1
  326. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.context.d.ts +1 -1
  327. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.context.js +1 -1
  328. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +1 -1
  329. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.provider.d.ts +1 -1
  330. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.provider.js +1 -1
  331. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.state.js +1 -1
  332. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.d.ts +1 -1
  333. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.js +1 -1
  334. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.native.d.ts +1 -1
  335. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.native.js +1 -1
  336. package/dist/native/components/Form/ComboBox/ComboBox.d.ts +1 -1
  337. package/dist/native/components/Form/ComboBox/ComboBox.js +1 -1
  338. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.state.d.ts +1 -1
  339. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.state.js +1 -1
  340. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +1 -1
  341. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.js +1 -1
  342. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.native.d.ts +1 -1
  343. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.native.js +1 -1
  344. package/dist/native/components/Form/CountryPicker/CountryPicker.d.ts +1 -1
  345. package/dist/native/components/Form/CountryPicker/CountryPicker.js +1 -1
  346. package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.state.d.ts +1 -1
  347. package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.state.js +1 -1
  348. package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.view.d.ts +1 -1
  349. package/dist/native/components/Form/DatePicker/DatePicker/DatePicker.view.js +1 -1
  350. package/dist/native/components/Form/DatePicker/DatePicker.d.ts +1 -1
  351. package/dist/native/components/Form/DatePicker/DatePicker.js +1 -1
  352. package/dist/native/components/Form/Label/Label/Label.view.d.ts +1 -1
  353. package/dist/native/components/Form/Label/Label/Label.view.js +1 -1
  354. package/dist/native/components/Form/Label/Label/Label.view.native.d.ts +1 -1
  355. package/dist/native/components/Form/Label/Label/Label.view.native.js +1 -1
  356. package/dist/native/components/Form/Label/Label.d.ts +1 -1
  357. package/dist/native/components/Form/Label/Label.js +1 -1
  358. package/dist/native/components/Form/Password/Password/Password.props.d.ts +1 -1
  359. package/dist/native/components/Form/Password/Password/Password.state.d.ts +1 -1
  360. package/dist/native/components/Form/Password/Password/Password.state.js +1 -1
  361. package/dist/native/components/Form/Password/Password/Password.type.d.ts +1 -1
  362. package/dist/native/components/Form/Password/Password.d.ts +1 -1
  363. package/dist/native/components/Form/Password/Password.js +1 -1
  364. package/dist/native/components/Form/Password/example/Default.d.ts +1 -1
  365. package/dist/native/components/Form/Password/example/Default.js +1 -1
  366. package/dist/native/components/Form/Password/example/DisabledInput.d.ts +1 -1
  367. package/dist/native/components/Form/Password/example/DisabledInput.js +1 -1
  368. package/dist/native/components/Form/Password/example/ErrorInput.d.ts +1 -1
  369. package/dist/native/components/Form/Password/example/ErrorInput.js +3 -5
  370. package/dist/native/components/Form/Password/example/ErrorInput.js.map +1 -1
  371. package/dist/native/components/Form/Password/example/HelperText.d.ts +1 -1
  372. package/dist/native/components/Form/Password/example/HelperText.js +2 -4
  373. package/dist/native/components/Form/Password/example/HelperText.js.map +1 -1
  374. package/dist/native/components/Form/Radio/Radio/Radio.props.d.ts +1 -1
  375. package/dist/native/components/Form/Radio/Radio/Radio.state.d.ts +1 -1
  376. package/dist/native/components/Form/Radio/Radio/Radio.state.js +1 -1
  377. package/dist/native/components/Form/Radio/Radio/Radio.view.d.ts +1 -1
  378. package/dist/native/components/Form/Radio/Radio/Radio.view.js +1 -1
  379. package/dist/native/components/Form/Radio/Radio/Radio.view.native.d.ts +1 -1
  380. package/dist/native/components/Form/Radio/Radio/Radio.view.native.js +1 -1
  381. package/dist/native/components/Form/Radio/Radio.d.ts +1 -1
  382. package/dist/native/components/Form/Radio/Radio.js +1 -1
  383. package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.props.d.ts +1 -1
  384. package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.state.js +1 -1
  385. package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.view.d.ts +1 -1
  386. package/dist/native/components/Form/Radio/RadioGroup/RadioGroup.view.js +1 -1
  387. package/dist/native/components/Form/Radio/RadioGroup.d.ts +1 -1
  388. package/dist/native/components/Form/Radio/RadioGroup.js +1 -1
  389. package/dist/native/components/Form/Select/Select/Select.state.d.ts +1 -1
  390. package/dist/native/components/Form/Select/Select/Select.state.js +1 -1
  391. package/dist/native/components/Form/Select/Select/Select.view.d.ts +1 -1
  392. package/dist/native/components/Form/Select/Select/Select.view.js +1 -1
  393. package/dist/native/components/Form/Select/Select/Select.view.native.d.ts +1 -1
  394. package/dist/native/components/Form/Select/Select/Select.view.native.js +1 -1
  395. package/dist/native/components/Form/Select/Select.d.ts +1 -1
  396. package/dist/native/components/Form/Select/Select.js +1 -1
  397. package/dist/native/components/Form/Selector/Selector/Selector.state.d.ts +1 -1
  398. package/dist/native/components/Form/Selector/Selector/Selector.state.js +1 -1
  399. package/dist/native/components/Form/Selector/Selector/Selector.view.d.ts +1 -1
  400. package/dist/native/components/Form/Selector/Selector/Selector.view.js +1 -1
  401. package/dist/native/components/Form/Selector/Selector/Selector.view.native.d.ts +1 -1
  402. package/dist/native/components/Form/Selector/Selector/Selector.view.native.js +1 -1
  403. package/dist/native/components/Form/Selector/Selector.d.ts +1 -1
  404. package/dist/native/components/Form/Selector/Selector.js +1 -1
  405. package/dist/native/components/Form/Switch/Switch/Switch.state.d.ts +1 -1
  406. package/dist/native/components/Form/Switch/Switch/Switch.state.js +1 -1
  407. package/dist/native/components/Form/Switch/Switch/Switch.view.d.ts +1 -1
  408. package/dist/native/components/Form/Switch/Switch/Switch.view.js +1 -1
  409. package/dist/native/components/Form/Switch/Switch/Switch.view.native.d.ts +1 -1
  410. package/dist/native/components/Form/Switch/Switch/Switch.view.native.js +1 -1
  411. package/dist/native/components/Form/Switch/Switch.d.ts +1 -1
  412. package/dist/native/components/Form/Switch/Switch.js +1 -1
  413. package/dist/native/components/Form/TagInput/TagInput/TagInput.props.d.ts +1 -1
  414. package/dist/native/components/Form/TagInput/TagInput/TagInput.state.d.ts +4 -4
  415. package/dist/native/components/Form/TagInput/TagInput/TagInput.state.js +1 -1
  416. package/dist/native/components/Form/TagInput/TagInput/TagInput.view.d.ts +1 -1
  417. package/dist/native/components/Form/TagInput/TagInput/TagInput.view.js +1 -1
  418. package/dist/native/components/Form/TagInput/TagInput.d.ts +1 -1
  419. package/dist/native/components/Form/TagInput/TagInput.js +1 -1
  420. package/dist/native/components/Form/TextArea/TextArea/TextArea.state.d.ts +4 -4
  421. package/dist/native/components/Form/TextArea/TextArea/TextArea.state.js +1 -1
  422. package/dist/native/components/Form/TextArea/TextArea/TextArea.view.d.ts +1 -1
  423. package/dist/native/components/Form/TextArea/TextArea/TextArea.view.js +1 -1
  424. package/dist/native/components/Form/TextArea/TextArea/TextArea.view.native.d.ts +1 -1
  425. package/dist/native/components/Form/TextArea/TextArea/TextArea.view.native.js +3 -3
  426. package/dist/native/components/Form/TextArea/TextArea/TextArea.view.native.js.map +1 -1
  427. package/dist/native/components/Form/TextArea/TextArea.d.ts +1 -1
  428. package/dist/native/components/Form/TextArea/TextArea.js +1 -1
  429. package/dist/native/components/Form/TextField/TextField/TextField.props.d.ts +1 -1
  430. package/dist/native/components/Form/TextField/TextField/TextField.state.d.ts +4 -4
  431. package/dist/native/components/Form/TextField/TextField/TextField.state.js +1 -1
  432. package/dist/native/components/Form/TextField/TextField/TextField.view.d.ts +1 -1
  433. package/dist/native/components/Form/TextField/TextField/TextField.view.js +1 -1
  434. package/dist/native/components/Form/TextField/TextField/TextField.view.native.d.ts +1 -1
  435. package/dist/native/components/Form/TextField/TextField/TextField.view.native.js +1 -1
  436. package/dist/native/components/Form/TextField/TextField.d.ts +1 -1
  437. package/dist/native/components/Form/TextField/TextField.js +1 -1
  438. package/dist/native/components/Formik/AttachmentPreview.d.ts +1 -1
  439. package/dist/native/components/Formik/AttachmentPreview.js +1 -1
  440. package/dist/native/components/Formik/Formik.ChatInput.d.ts +1 -1
  441. package/dist/native/components/Formik/Formik.ChatInput.js +1 -1
  442. package/dist/native/components/Formik/Formik.Checkbox.d.ts +1 -1
  443. package/dist/native/components/Formik/Formik.Checkbox.js +1 -1
  444. package/dist/native/components/Formik/Formik.ColorInput.d.ts +1 -1
  445. package/dist/native/components/Formik/Formik.ColorInput.js +1 -1
  446. package/dist/native/components/Formik/Formik.ComboBox.d.ts +1 -1
  447. package/dist/native/components/Formik/Formik.ComboBox.js +1 -1
  448. package/dist/native/components/Formik/Formik.CountryPicker.d.ts +1 -1
  449. package/dist/native/components/Formik/Formik.CountryPicker.js +1 -1
  450. package/dist/native/components/Formik/Formik.DatePicker.d.ts +1 -1
  451. package/dist/native/components/Formik/Formik.DatePicker.js +1 -1
  452. package/dist/native/components/Formik/Formik.EmojiPicker.d.ts +1 -1
  453. package/dist/native/components/Formik/Formik.EmojiPicker.js +2 -3
  454. package/dist/native/components/Formik/Formik.EmojiPicker.js.map +1 -1
  455. package/dist/native/components/Formik/Formik.Form.d.ts +1 -1
  456. package/dist/native/components/Formik/Formik.Form.js +1 -1
  457. package/dist/native/components/Formik/Formik.IconPicker.d.ts +1 -1
  458. package/dist/native/components/Formik/Formik.IconPicker.js +1 -1
  459. package/dist/native/components/Formik/Formik.OTPInput.d.ts +1 -1
  460. package/dist/native/components/Formik/Formik.OTPInput.js +1 -1
  461. package/dist/native/components/Formik/Formik.Password.d.ts +1 -1
  462. package/dist/native/components/Formik/Formik.Password.js +1 -1
  463. package/dist/native/components/Formik/Formik.Radio.d.ts +1 -1
  464. package/dist/native/components/Formik/Formik.Radio.js +1 -1
  465. package/dist/native/components/Formik/Formik.Select.d.ts +1 -1
  466. package/dist/native/components/Formik/Formik.Select.js +1 -1
  467. package/dist/native/components/Formik/Formik.Selector.d.ts +1 -1
  468. package/dist/native/components/Formik/Formik.Selector.js +1 -1
  469. package/dist/native/components/Formik/Formik.Slider.d.ts +1 -1
  470. package/dist/native/components/Formik/Formik.Slider.js +1 -1
  471. package/dist/native/components/Formik/Formik.Switch.d.ts +1 -1
  472. package/dist/native/components/Formik/Formik.Switch.js +1 -1
  473. package/dist/native/components/Formik/Formik.TagInput.d.ts +1 -1
  474. package/dist/native/components/Formik/Formik.TagInput.js +1 -1
  475. package/dist/native/components/Formik/Formik.TextArea.d.ts +1 -1
  476. package/dist/native/components/Formik/Formik.TextArea.js +1 -1
  477. package/dist/native/components/Formik/Formik.TextField.d.ts +1 -1
  478. package/dist/native/components/Formik/Formik.TextField.js +1 -1
  479. package/dist/native/components/Formik/Formik.Toggle.d.ts +1 -1
  480. package/dist/native/components/Formik/Formik.Toggle.js +1 -1
  481. package/dist/native/components/Formik/Formik.ToggleGroup.d.ts +1 -1
  482. package/dist/native/components/Formik/Formik.ToggleGroup.js +1 -1
  483. package/dist/native/components/Formik/Formik.Uploader.d.ts +1 -1
  484. package/dist/native/components/Formik/Formik.Uploader.js +1 -1
  485. package/dist/native/components/Gradient/Gradient/Gradient.view.d.ts +1 -1
  486. package/dist/native/components/Gradient/Gradient/Gradient.view.js +1 -1
  487. package/dist/native/components/Gradient/Gradient/Gradient.view.native.d.ts +1 -1
  488. package/dist/native/components/Gradient/Gradient/Gradient.view.native.js +1 -1
  489. package/dist/native/components/Gradient/Gradient.d.ts +1 -1
  490. package/dist/native/components/Gradient/Gradient.js +1 -1
  491. package/dist/native/components/HoverCard/HoverCard/HoverCard.props.d.ts +1 -1
  492. package/dist/native/components/HoverCard/HoverCard/HoverCard.state.d.ts +2 -2
  493. package/dist/native/components/HoverCard/HoverCard/HoverCard.state.js +1 -1
  494. package/dist/native/components/HoverCard/HoverCard/HoverCard.style.d.ts +1 -1
  495. package/dist/native/components/HoverCard/HoverCard/HoverCard.view.d.ts +1 -1
  496. package/dist/native/components/HoverCard/HoverCard/HoverCard.view.js +1 -1
  497. package/dist/native/components/HoverCard/HoverCard/HoverCard.view.native.d.ts +1 -1
  498. package/dist/native/components/HoverCard/HoverCard/HoverCard.view.native.js +1 -1
  499. package/dist/native/components/HoverCard/HoverCard.js +1 -1
  500. package/dist/native/components/Icon/Icon.d.ts +1 -1
  501. package/dist/native/components/Icon/Icon.js +1 -1
  502. package/dist/native/components/Icon/Icon.native.d.ts +1 -1
  503. package/dist/native/components/Icon/Icon.native.js +1 -1
  504. package/dist/native/components/IconPicker/IconPicker/IconPicker.state.d.ts +2 -2
  505. package/dist/native/components/IconPicker/IconPicker/IconPicker.state.js +1 -1
  506. package/dist/native/components/IconPicker/IconPicker/IconPicker.view.d.ts +1 -1
  507. package/dist/native/components/IconPicker/IconPicker/IconPicker.view.js +1 -1
  508. package/dist/native/components/IconPicker/IconPicker/IconPicker.view.native.d.ts +1 -1
  509. package/dist/native/components/IconPicker/IconPicker/IconPicker.view.native.js +1 -1
  510. package/dist/native/components/IconPicker/IconPicker.d.ts +1 -1
  511. package/dist/native/components/IconPicker/IconPicker.js +1 -1
  512. package/dist/native/components/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
  513. package/dist/native/components/Input/FieldContainer/FieldContainer.d.ts +1 -1
  514. package/dist/native/components/Input/FieldContainer/FieldContainer.js +1 -1
  515. package/dist/native/components/Input/FieldContent/FieldContent/FieldContent.props.d.ts +1 -1
  516. package/dist/native/components/Input/FieldContent/FieldContent.d.ts +1 -1
  517. package/dist/native/components/Input/FieldContent/FieldContent.js +1 -1
  518. package/dist/native/components/Input/FieldIcons/FieldIcons.d.ts +1 -1
  519. package/dist/native/components/Input/FieldIcons/FieldIcons.js +1 -1
  520. package/dist/native/components/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +1 -1
  521. package/dist/native/components/Input/FieldLabel/FieldLabel.d.ts +1 -1
  522. package/dist/native/components/Input/FieldLabel/FieldLabel.js +1 -1
  523. package/dist/native/components/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
  524. package/dist/native/components/Input/FieldLayout/FieldLayout.d.ts +1 -1
  525. package/dist/native/components/Input/FieldLayout/FieldLayout.js +1 -1
  526. package/dist/native/components/Input/FieldWrapper/FieldWrapper.d.ts +1 -1
  527. package/dist/native/components/Input/FieldWrapper/FieldWrapper.js +1 -1
  528. package/dist/native/components/Input/HelperText/HelperText.d.ts +1 -1
  529. package/dist/native/components/Input/HelperText/HelperText.js +1 -1
  530. package/dist/native/components/Input/HelperText/HelperText.props.d.ts +1 -1
  531. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.d.ts +1 -1
  532. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.js +1 -1
  533. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.native.d.ts +1 -1
  534. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.native.js +1 -1
  535. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.types.d.ts +1 -1
  536. package/dist/native/components/Link/Link/Link.props.d.ts +1 -1
  537. package/dist/native/components/Link/Link/Link.state.d.ts +1 -1
  538. package/dist/native/components/Link/Link/Link.state.js +1 -1
  539. package/dist/native/components/Link/Link/Link.view.d.ts +1 -1
  540. package/dist/native/components/Link/Link/Link.view.js +1 -1
  541. package/dist/native/components/Link/Link/Link.view.native.d.ts +1 -1
  542. package/dist/native/components/Link/Link/Link.view.native.js +1 -1
  543. package/dist/native/components/Link/Link.d.ts +1 -1
  544. package/dist/native/components/Link/Link.js +1 -1
  545. package/dist/native/components/Loader/Loader/Loader.props.d.ts +1 -1
  546. package/dist/native/components/Loader/Loader/Loader.view.d.ts +1 -1
  547. package/dist/native/components/Loader/Loader/Loader.view.js +1 -1
  548. package/dist/native/components/Loader/Loader/Loader.view.native.d.ts +1 -1
  549. package/dist/native/components/Loader/Loader/Loader.view.native.js +1 -1
  550. package/dist/native/components/Loader/Loader.d.ts +1 -1
  551. package/dist/native/components/Loader/Loader.js +1 -1
  552. package/dist/native/components/Markdown/Markdown/Markdown.content.d.ts +6 -0
  553. package/dist/native/components/Markdown/Markdown/Markdown.content.js +29 -0
  554. package/dist/native/components/Markdown/Markdown/Markdown.content.js.map +1 -0
  555. package/dist/native/components/Markdown/Markdown/Markdown.props.d.ts +16 -0
  556. package/dist/native/components/Markdown/Markdown/Markdown.props.js +2 -0
  557. package/dist/native/components/Markdown/Markdown/Markdown.props.js.map +1 -0
  558. package/dist/native/components/Markdown/Markdown/Markdown.view.d.ts +1 -0
  559. package/dist/native/components/Markdown/Markdown/Markdown.view.js +2 -0
  560. package/dist/native/components/Markdown/Markdown/Markdown.view.js.map +1 -0
  561. package/dist/native/components/Markdown/Markdown/Markdown.view.native.d.ts +3 -0
  562. package/dist/native/components/Markdown/Markdown/Markdown.view.native.js +8 -0
  563. package/dist/native/components/Markdown/Markdown/Markdown.view.native.js.map +1 -0
  564. package/dist/native/components/Markdown/Markdown.d.ts +3 -0
  565. package/dist/native/components/Markdown/Markdown.js +4 -0
  566. package/dist/native/components/Markdown/Markdown.js.map +1 -0
  567. package/dist/native/components/MediaPreview.d.ts +1 -1
  568. package/dist/native/components/MediaPreview.js +1 -1
  569. package/dist/native/components/Menubar/Menubar/Menubar.props.d.ts +1 -1
  570. package/dist/native/components/Menubar/Menubar/Menubar.state.d.ts +2 -2
  571. package/dist/native/components/Menubar/Menubar/Menubar.state.js +1 -1
  572. package/dist/native/components/Menubar/Menubar/Menubar.type.d.ts +1 -1
  573. package/dist/native/components/Menubar/Menubar/Menubar.view.d.ts +1 -1
  574. package/dist/native/components/Menubar/Menubar/Menubar.view.js +1 -1
  575. package/dist/native/components/Menubar/Menubar/Menubar.view.native.d.ts +1 -1
  576. package/dist/native/components/Menubar/Menubar/Menubar.view.native.js +1 -1
  577. package/dist/native/components/Menubar/Menubar.js +1 -1
  578. package/dist/native/components/Message/Message/Message.layout.d.ts +1 -1
  579. package/dist/native/components/Message/Message/Message.layout.js +1 -1
  580. package/dist/native/components/Message/Message/Message.layout.native.d.ts +1 -1
  581. package/dist/native/components/Message/Message/Message.layout.native.js +1 -1
  582. package/dist/native/components/Message/Message/Message.view.d.ts +1 -1
  583. package/dist/native/components/Message/Message/Message.view.js +1 -1
  584. package/dist/native/components/Modal/Modal/Modal.layout.d.ts +1 -1
  585. package/dist/native/components/Modal/Modal/Modal.layout.js +1 -1
  586. package/dist/native/components/Modal/Modal/Modal.props.d.ts +1 -1
  587. package/dist/native/components/Modal/Modal/Modal.view.d.ts +1 -1
  588. package/dist/native/components/Modal/Modal/Modal.view.js +1 -1
  589. package/dist/native/components/Modal/Modal/Modal.view.native.d.ts +1 -1
  590. package/dist/native/components/Modal/Modal/Modal.view.native.js +1 -1
  591. package/dist/native/components/Modal/Modal.js +1 -1
  592. package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.props.d.ts +1 -1
  593. package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +2 -2
  594. package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.state.js +1 -1
  595. package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +1 -1
  596. package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +1 -1
  597. package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.js +1 -1
  598. package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.native.d.ts +1 -1
  599. package/dist/native/components/NavigationMenu/NavigationMenu/NavigationMenu.view.native.js +1 -1
  600. package/dist/native/components/NavigationMenu/NavigationMenu.js +1 -1
  601. package/dist/native/components/OTPInput/OTPInput/OTPInput.state.d.ts +7 -7
  602. package/dist/native/components/OTPInput/OTPInput/OTPInput.state.js +1 -1
  603. package/dist/native/components/OTPInput/OTPInput/OTPInput.view.d.ts +1 -1
  604. package/dist/native/components/OTPInput/OTPInput/OTPInput.view.js +1 -1
  605. package/dist/native/components/OTPInput/OTPInput/OTPInput.view.native.d.ts +1 -1
  606. package/dist/native/components/OTPInput/OTPInput/OTPInput.view.native.js +1 -1
  607. package/dist/native/components/OTPInput/OTPInput.d.ts +1 -1
  608. package/dist/native/components/OTPInput/OTPInput.js +1 -1
  609. package/dist/native/components/PageLayout/PageLayout.d.ts +1 -1
  610. package/dist/native/components/PageLayout/PageLayout.js +1 -1
  611. package/dist/native/components/PageLayout/PageLayout.types.d.ts +1 -1
  612. package/dist/native/components/Pagination/Pagination/Pagination.state.js +1 -1
  613. package/dist/native/components/Pagination/Pagination/Pagination.view.d.ts +1 -1
  614. package/dist/native/components/Pagination/Pagination/Pagination.view.js +1 -1
  615. package/dist/native/components/Pagination/Pagination/Pagination.view.native.d.ts +1 -1
  616. package/dist/native/components/Pagination/Pagination/Pagination.view.native.js +1 -1
  617. package/dist/native/components/Pagination/Pagination.d.ts +1 -1
  618. package/dist/native/components/Pagination/Pagination.js +1 -1
  619. package/dist/native/components/Portal/Portal.d.ts +1 -1
  620. package/dist/native/components/Portal/Portal.js +1 -1
  621. package/dist/native/components/Portal/Portal.native.d.ts +1 -1
  622. package/dist/native/components/Portal/Portal.native.js +1 -1
  623. package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.d.ts +1 -1
  624. package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.js +1 -1
  625. package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.native.d.ts +1 -1
  626. package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.native.js +1 -1
  627. package/dist/native/components/ProgressBar/ProgressBar.d.ts +1 -1
  628. package/dist/native/components/ProgressBar/ProgressBar.js +1 -1
  629. package/dist/native/components/Resizable/Resizable/Resizable.props.d.ts +1 -1
  630. package/dist/native/components/Resizable/Resizable/Resizable.state.d.ts +2 -2
  631. package/dist/native/components/Resizable/Resizable/Resizable.state.js +1 -1
  632. package/dist/native/components/Resizable/Resizable/Resizable.view.d.ts +1 -1
  633. package/dist/native/components/Resizable/Resizable/Resizable.view.js +1 -1
  634. package/dist/native/components/Resizable/Resizable/Resizable.view.native.d.ts +1 -1
  635. package/dist/native/components/Resizable/Resizable/Resizable.view.native.js +1 -1
  636. package/dist/native/components/Resizable/Resizable.js +1 -1
  637. package/dist/native/components/Router/Router.d.ts +1 -1
  638. package/dist/native/components/Router/Router.js +1 -1
  639. package/dist/native/components/Router/Router.match.d.ts +1 -1
  640. package/dist/native/components/Router/Router.match.js +1 -1
  641. package/dist/native/components/Router/Router.native.d.ts +1 -1
  642. package/dist/native/components/Router/Router.native.js +1 -1
  643. package/dist/native/components/Router/Router.types.d.ts +1 -1
  644. package/dist/native/components/Separator/Separator/Separator.view.d.ts +1 -1
  645. package/dist/native/components/Separator/Separator/Separator.view.js +1 -1
  646. package/dist/native/components/Separator/Separator/Separator.view.native.d.ts +1 -1
  647. package/dist/native/components/Separator/Separator/Separator.view.native.js +1 -1
  648. package/dist/native/components/Separator/Separator.d.ts +1 -1
  649. package/dist/native/components/Separator/Separator.js +1 -1
  650. package/dist/native/components/ShareButton/ShareButton/ShareButton.props.d.ts +1 -1
  651. package/dist/native/components/ShareButton/ShareButton/ShareButton.state.js +1 -1
  652. package/dist/native/components/ShareButton/ShareButton/ShareButton.state.native.js +1 -1
  653. package/dist/native/components/ShareButton/ShareButton/ShareButton.view.d.ts +1 -1
  654. package/dist/native/components/ShareButton/ShareButton/ShareButton.view.js +1 -1
  655. package/dist/native/components/ShareButton/ShareButton.d.ts +1 -1
  656. package/dist/native/components/ShareButton/ShareButton.js +1 -1
  657. package/dist/native/components/Sidebar/Sidebar/Sidebar.props.d.ts +1 -1
  658. package/dist/native/components/Sidebar/Sidebar/Sidebar.state.js +1 -1
  659. package/dist/native/components/Sidebar/Sidebar/Sidebar.view.d.ts +1 -1
  660. package/dist/native/components/Sidebar/Sidebar/Sidebar.view.js +1 -1
  661. package/dist/native/components/Sidebar/Sidebar/Sidebar.view.native.d.ts +1 -1
  662. package/dist/native/components/Sidebar/Sidebar/Sidebar.view.native.js +1 -1
  663. package/dist/native/components/Sidebar/Sidebar.js +1 -1
  664. package/dist/native/components/Slider/Slider/Slider.state.d.ts +1 -1
  665. package/dist/native/components/Slider/Slider/Slider.state.js +1 -1
  666. package/dist/native/components/Slider/Slider/Slider.view.d.ts +1 -1
  667. package/dist/native/components/Slider/Slider/Slider.view.js +1 -1
  668. package/dist/native/components/Slider/Slider/Slider.view.native.d.ts +1 -1
  669. package/dist/native/components/Slider/Slider/Slider.view.native.js +1 -1
  670. package/dist/native/components/Slider/Slider.d.ts +1 -1
  671. package/dist/native/components/Slider/Slider.js +1 -1
  672. package/dist/native/components/SplashScreen/SplashScreen.d.ts +1 -1
  673. package/dist/native/components/SplashScreen/SplashScreen.js +1 -1
  674. package/dist/native/components/SplashScreen/SplashScreen.types.d.ts +1 -1
  675. package/dist/native/components/StatusIndicator/StatusIndicator/StatusIndicator.view.d.ts +1 -1
  676. package/dist/native/components/StatusIndicator/StatusIndicator/StatusIndicator.view.js +1 -1
  677. package/dist/native/components/StatusIndicator/StatusIndicator.d.ts +1 -1
  678. package/dist/native/components/StatusIndicator/StatusIndicator.js +1 -1
  679. package/dist/native/components/Table/Table/Table.context.d.ts +1 -1
  680. package/dist/native/components/Table/Table/Table.context.js +1 -1
  681. package/dist/native/components/Table/Table/Table.props.d.ts +1 -1
  682. package/dist/native/components/Table/Table/Table.state.d.ts +1 -1
  683. package/dist/native/components/Table/Table/Table.state.js +1 -1
  684. package/dist/native/components/Table/Table/Table.view.d.ts +1 -1
  685. package/dist/native/components/Table/Table/Table.view.js +1 -1
  686. package/dist/native/components/Table/Table/TableScroll.d.ts +1 -1
  687. package/dist/native/components/Table/Table/TableScroll.js +1 -1
  688. package/dist/native/components/Table/Table/TableScroll.native.d.ts +1 -1
  689. package/dist/native/components/Table/Table/TableScroll.native.js +1 -1
  690. package/dist/native/components/Table/Table.d.ts +1 -1
  691. package/dist/native/components/Table/Table.js +1 -1
  692. package/dist/native/components/Tabs/Tabs/TabHeader.d.ts +1 -1
  693. package/dist/native/components/Tabs/Tabs/TabHeader.js +1 -1
  694. package/dist/native/components/Tabs/Tabs/Tabs.props.d.ts +1 -1
  695. package/dist/native/components/Tabs/Tabs/Tabs.state.js +1 -1
  696. package/dist/native/components/Tabs/Tabs/Tabs.type.d.ts +1 -1
  697. package/dist/native/components/Tabs/Tabs/Tabs.view.d.ts +1 -1
  698. package/dist/native/components/Tabs/Tabs/Tabs.view.js +1 -1
  699. package/dist/native/components/Tabs/Tabs/Tabs.view.native.d.ts +1 -1
  700. package/dist/native/components/Tabs/Tabs/Tabs.view.native.js +1 -1
  701. package/dist/native/components/Tabs/Tabs.d.ts +1 -1
  702. package/dist/native/components/Tabs/Tabs.js +1 -1
  703. package/dist/native/components/TextArea/TextArea.d.ts +1 -1
  704. package/dist/native/components/TextArea/TextArea.js +1 -1
  705. package/dist/native/components/TextArea/TextArea.native.d.ts +1 -1
  706. package/dist/native/components/TextArea/TextArea.native.js +1 -1
  707. package/dist/native/components/Title/Title/SlideEffect.d.ts +1 -1
  708. package/dist/native/components/Title/Title/SlideEffect.js +1 -1
  709. package/dist/native/components/Title/Title/SlideEffect.native.d.ts +1 -1
  710. package/dist/native/components/Title/Title/SlideEffect.native.js +1 -1
  711. package/dist/native/components/Title/Title/Title.state.d.ts +1 -1
  712. package/dist/native/components/Title/Title/Title.state.js +1 -1
  713. package/dist/native/components/Title/Title/Title.view.d.ts +1 -1
  714. package/dist/native/components/Title/Title/Title.view.js +1 -1
  715. package/dist/native/components/Title/Title/Title.view.native.d.ts +1 -1
  716. package/dist/native/components/Title/Title/Title.view.native.js +1 -1
  717. package/dist/native/components/Title/Title/TypewriterEffect.d.ts +1 -1
  718. package/dist/native/components/Title/Title/TypewriterEffect.js +1 -1
  719. package/dist/native/components/Title/Title/TypewriterEffect.native.d.ts +1 -1
  720. package/dist/native/components/Title/Title/TypewriterEffect.native.js +1 -1
  721. package/dist/native/components/Title/Title.d.ts +1 -1
  722. package/dist/native/components/Title/Title.js +1 -1
  723. package/dist/native/components/Toast/Toast/Toast.view.d.ts +1 -1
  724. package/dist/native/components/Toast/Toast/Toast.view.js +1 -1
  725. package/dist/native/components/Toast/Toast/Toast.view.native.d.ts +1 -1
  726. package/dist/native/components/Toast/Toast/Toast.view.native.js +1 -1
  727. package/dist/native/components/Toast/Toast.d.ts +1 -1
  728. package/dist/native/components/Toast/Toast.js +1 -1
  729. package/dist/native/components/Toggle/Toggle/Toggle.state.d.ts +2 -2
  730. package/dist/native/components/Toggle/Toggle/Toggle.state.js +1 -1
  731. package/dist/native/components/Toggle/Toggle/Toggle.view.d.ts +1 -1
  732. package/dist/native/components/Toggle/Toggle/Toggle.view.js +1 -1
  733. package/dist/native/components/Toggle/Toggle/Toggle.view.native.d.ts +1 -1
  734. package/dist/native/components/Toggle/Toggle/Toggle.view.native.js +1 -1
  735. package/dist/native/components/Toggle/Toggle.d.ts +1 -1
  736. package/dist/native/components/Toggle/Toggle.js +1 -1
  737. package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.state.d.ts +1 -1
  738. package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.state.js +1 -1
  739. package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +1 -1
  740. package/dist/native/components/ToggleGroup/ToggleGroup/ToggleGroup.view.js +1 -1
  741. package/dist/native/components/ToggleGroup/ToggleGroup.d.ts +1 -1
  742. package/dist/native/components/ToggleGroup/ToggleGroup.js +1 -1
  743. package/dist/native/components/Tooltip/Tooltip/Tooltip.props.d.ts +1 -1
  744. package/dist/native/components/Tooltip/Tooltip/Tooltip.state.d.ts +2 -2
  745. package/dist/native/components/Tooltip/Tooltip/Tooltip.state.js +1 -1
  746. package/dist/native/components/Tooltip/Tooltip/Tooltip.view.d.ts +1 -1
  747. package/dist/native/components/Tooltip/Tooltip/Tooltip.view.js +1 -1
  748. package/dist/native/components/Tooltip/Tooltip/Tooltip.view.native.d.ts +1 -1
  749. package/dist/native/components/Tooltip/Tooltip/Tooltip.view.native.js +1 -1
  750. package/dist/native/components/Tooltip/Tooltip.js +1 -1
  751. package/dist/native/components/Uploader/Uploader/Uploader.state.d.ts +1 -1
  752. package/dist/native/components/Uploader/Uploader/Uploader.state.js +1 -1
  753. package/dist/native/components/Uploader/Uploader/Uploader.view.d.ts +1 -1
  754. package/dist/native/components/Uploader/Uploader/Uploader.view.js +1 -1
  755. package/dist/native/components/Uploader/Uploader.d.ts +1 -1
  756. package/dist/native/components/Uploader/Uploader.js +1 -1
  757. package/dist/native/components/index.d.ts +7 -0
  758. package/dist/native/components/index.js +5 -0
  759. package/dist/native/components/index.js.map +1 -1
  760. package/dist/native/design-system/DesignSystemProvider.d.ts +1 -1
  761. package/dist/native/design-system/DesignSystemProvider.js +1 -1
  762. package/dist/native/pages/designSystem.page.d.ts +1 -1
  763. package/dist/native/pages/designSystem.page.js +1 -1
  764. package/dist/web.cjs.js +55 -11
  765. package/dist/web.cjs.js.map +1 -1
  766. package/dist/web.esm.js +15921 -12341
  767. package/dist/web.esm.js.map +1 -1
  768. package/dist/web.umd.js +55 -11
  769. package/dist/web.umd.js.map +1 -1
  770. package/docs/app-studio/README.md +1 -1
  771. package/docs/components/BlockEditor-drag-and-drop.md +61 -0
  772. package/docs/components/BlockEditor.mdx +106 -0
  773. package/docs/components/ColorInput.mdx +1 -1
  774. package/docs/components/EmojiPicker.mdx +20 -0
  775. package/docs/components/Form.mdx +5 -5
  776. package/docs/components/Formik.mdx +23 -23
  777. package/docs/components/Markdown.mdx +99 -0
  778. package/docs/components/OTPInput.mdx +1 -1
  779. package/docs/components/TagInput.mdx +1 -1
  780. package/docs/components/TextArea.mdx +2 -2
  781. package/docs/components/TextField.mdx +3 -3
  782. package/docs/getting-started/component-usage.md +2 -2
  783. package/docs/getting-started/react-native.md +13 -2
  784. package/docs/tutorials/basic/creating-a-simple-form.md +4 -4
  785. package/package.json +1 -2
@@ -0,0 +1,150 @@
1
+ import React, { useEffect, useRef } from '../../../../../node_modules/@types/react';
2
+ import { Platform } from 'react-native';
3
+ import { Horizontal, Text, Vertical, View } from 'app-studio';
4
+ import { Button } from '../../Button/Button';
5
+ import { ActionSheet } from '../../ActionSheet/ActionSheet';
6
+ import { TextArea } from '../../Form/TextArea/TextArea';
7
+ import { BlockContent } from './BlockEditor.content';
8
+ import { BlockEditorControls, BlockEditorPanels } from './BlockEditor.controls';
9
+ import { blockKinds } from './BlockEditor.model';
10
+ const codeFontFamily = Platform.OS === 'ios' ? 'Menlo' : 'monospace';
11
+ export function BlockEditorView({ state: s, ...props }) {
12
+ const { value: _value, defaultValue: _default, onChange: _change, generate: _generate, onSave: _save, label = s.labels.document, isDisabled, isReadOnly, labels: _labels, views = {}, status, ...containerProps } = props;
13
+ const inputs = useRef({});
14
+ const localSelection = useRef({ start: 0, end: 0 });
15
+ useEffect(() => {
16
+ if (!s.restoreRequested.current)
17
+ return;
18
+ const block = s.document.blocks.find((item) => s.selection.start >= item.start && s.selection.start <= item.end);
19
+ if (!s.source && block && s.activeId !== block.id) {
20
+ s.setActiveId(block.id);
21
+ return;
22
+ }
23
+ const key = s.source ? 'source' : block?.id;
24
+ const input = key ? inputs.current[key] : null;
25
+ const offset = s.source ? 0 : block?.start || 0;
26
+ if (input) {
27
+ s.restoreRequested.current = false;
28
+ input.focus();
29
+ input.setNativeProps?.({
30
+ selection: {
31
+ start: s.selection.start - offset,
32
+ end: s.selection.end - offset,
33
+ },
34
+ });
35
+ }
36
+ }, [s.restoreVersion, s.activeId]);
37
+ const selectionProps = (offset, key) => ({
38
+ inputRef: (node) => {
39
+ inputs.current[key] = node;
40
+ },
41
+ onSelectionChange: (event) => {
42
+ localSelection.current = event.nativeEvent.selection;
43
+ s.capture({
44
+ start: offset + event.nativeEvent.selection.start,
45
+ end: offset + event.nativeEvent.selection.end,
46
+ });
47
+ },
48
+ });
49
+ return (<Vertical gap={12} accessibilityLabel={label} {...containerProps} {...views.container}>
50
+ {!isReadOnly && <BlockEditorControls state={s} props={props}/>}
51
+ {s.document.sourceMode && (<Text accessibilityLiveRegion="polite" {...views.notice}>
52
+ {s.labels.sourceFallback}
53
+ </Text>)}
54
+ {s.message && (<Text accessibilityLiveRegion="polite" {...views.notice}>
55
+ {s.message}
56
+ </Text>)}
57
+ {s.source ? (<TextArea value={s.value} label={label} isDisabled={isDisabled} isReadOnly={isReadOnly} {...selectionProps(0, 'source')} onChange={(next) => s.commit(next, localSelection.current, true, false)} views={{
58
+ field: {
59
+ fontFamily: codeFontFamily,
60
+ minHeight: 240,
61
+ ...views.source,
62
+ },
63
+ }}/>) : (s.document.blocks.map((block, index) => (<Vertical key={block.id} gap={8} {...views.block}>
64
+ {s.activeId === block.id && !isReadOnly ? (<TextArea label={s.labels[block.kind]} value={block.raw} variant="none" isAutoFocus isDisabled={isDisabled} {...selectionProps(block.start, block.id)} onKeyPress={(event) => {
65
+ if (event.nativeEvent.key === 'Backspace' &&
66
+ localSelection.current.start === 0 &&
67
+ localSelection.current.end === 0)
68
+ s.mergeBackward(block.id);
69
+ }} onChange={(text) => {
70
+ if (text === '/' && !block.raw.trim()) {
71
+ s.setCommandId(block.id);
72
+ return;
73
+ }
74
+ if (block.kind !== 'codeBlock' &&
75
+ block.kind !== 'table' &&
76
+ text !== block.raw) {
77
+ let start = 0;
78
+ while (start < Math.min(text.length, block.raw.length) &&
79
+ text[start] === block.raw[start])
80
+ start++;
81
+ let end = block.raw.length;
82
+ let nextEnd = text.length;
83
+ while (end > start &&
84
+ nextEnd > start &&
85
+ block.raw[end - 1] === text[nextEnd - 1]) {
86
+ end--;
87
+ nextEnd--;
88
+ }
89
+ if (text.slice(start, nextEnd) === '\n') {
90
+ s.capture({
91
+ start: block.start + start,
92
+ end: block.start + end,
93
+ });
94
+ if (s.breakBlock())
95
+ return;
96
+ }
97
+ }
98
+ s.editBlock(block, text, localSelection.current);
99
+ }} views={{
100
+ container: { borderWidth: 0 },
101
+ field: {
102
+ fontSize: 16,
103
+ minHeight: 44,
104
+ fontFamily: block.kind === 'codeBlock' ? codeFontFamily : undefined,
105
+ ...views.content,
106
+ },
107
+ }}/>) : (<View accessibilityRole={isReadOnly ? undefined : 'button'} accessibilityLabel={s.labels[block.kind]} onPress={s.locked
108
+ ? undefined
109
+ : () => {
110
+ s.setActiveId(block.id);
111
+ s.capture({
112
+ start: block.bodyStart,
113
+ end: block.bodyStart,
114
+ });
115
+ }} minHeight={44} padding={8} {...views.content}>
116
+ <BlockContent block={block} native codeFontFamily={codeFontFamily}/>
117
+ </View>)}
118
+ {!isReadOnly && (<Horizontal gap={4} flexWrap="wrap">
119
+ <Button size="sm" isDisabled={s.locked} onClick={() => s.setCommandId(block.id)}>
120
+ {s.labels.blocks}
121
+ </Button>
122
+ {['below', 'duplicate', 'up', 'down', 'delete'].map((action) => (<Button key={action} size="sm" variant="ghost" aria-label={s.labels[action]} isDisabled={s.locked ||
123
+ (action === 'up' && index === 0) ||
124
+ (action === 'down' &&
125
+ index === s.document.blocks.length - 1)} onClick={() => s.action(block.id, action)}>
126
+ {s.labels[action]}
127
+ </Button>))}
128
+ </Horizontal>)}
129
+ </Vertical>)))}
130
+ {!isReadOnly && (<BlockEditorControls state={s} props={props} formatting/>)}
131
+ <ActionSheet isOpen={!!s.commandId && !s.locked} onClose={s.closeCommand} title={s.labels.blocks} items={blockKinds.map((kind) => ({
132
+ id: kind,
133
+ value: kind,
134
+ label: s.labels[kind],
135
+ }))} onSelect={(kind) => {
136
+ if (s.commandId)
137
+ s.transform(s.commandId, kind);
138
+ }}/>
139
+ <ActionSheet isOpen={!!s.ai || s.linkOpen} title={s.ai ? s.labels.aiPanel : s.labels.link} onClose={() => {
140
+ if (s.linkOpen)
141
+ s.closeLink();
142
+ if (s.ai)
143
+ s.closeAi();
144
+ }} maxHeight="85%">
145
+ <BlockEditorPanels state={s} views={views}/>
146
+ </ActionSheet>
147
+ {status}
148
+ </Vertical>);
149
+ }
150
+ //# sourceMappingURL=BlockEditor.view.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockEditor.view.native.js","sourceRoot":"","sources":["../../../../../src/components/BlockEditor/BlockEditor/BlockEditor.view.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAWjD,MAAM,cAAc,GAAG,QAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC;AAErE,MAAM,UAAU,eAAe,CAAC,EAC9B,KAAK,EAAE,CAAC,EACR,GAAG,KAAK,EACuC;IAC/C,MAAM,EACJ,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,QA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ACjB,IAAI,CAAC,CAAC,SAAS;gBACb,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAAE,IAAmC,CAAC,CAAC;QAClE,CAAC,CAAC,EAEJ;MAAA,CAAC,WAAW,CACV,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,CAC7B,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAC/C,OAAO,CAAC,CAAC,GAAG,EAAE;YACZ,IAAI,CAAC,CAAC,QAAQ;gBAAE,CAAC,CAAC,SAAS,EAAE,CAAC;YAC9B,IAAI,CAAC,CAAC,EAAE;gBAAE,CAAC,CAAC,OAAO,EAAE,CAAC;QACxB,CAAC,CAAC,CACF,SAAS,CAAC,KAAK,CAEf;QAAA,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAC5C;MAAA,EAAE,WAAW,CACb;MAAA,CAAC,MAAM,CACT;IAAA,EAAE,QAAQ,CAAC,CACZ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from '../../../../node_modules/@types/react';
2
+ import { BlockEditorProps } from './BlockEditor/BlockEditor.props';
3
+ export declare const BlockEditor: React.FC<BlockEditorProps>;
@@ -0,0 +1,8 @@
1
+ import React from '../../../../node_modules/@types/react';
2
+ import { useBlockEditorState } from './BlockEditor/BlockEditor.state';
3
+ import { BlockEditorView } from './BlockEditor/BlockEditor.view';
4
+ export const BlockEditor = (props) => {
5
+ const state = useBlockEditorState(props);
6
+ return <BlockEditorView {...props} state={state}/>;
7
+ };
8
+ //# sourceMappingURL=BlockEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockEditor.js","sourceRoot":"","sources":["../../../../src/components/BlockEditor/BlockEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,KAAK,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAG,CAAC;AACtD,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { ButtonProps as $ButtonProps, Shadow, ViewProps } from 'app-studio';
3
3
  import { Elevation } from '../../../utils/elevation';
4
4
  import { IconPosition, Shape, Size, Variant, Animation, LoaderPosition } from './Button.type';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  export declare const useButtonState: () => {
3
3
  isHovered: boolean;
4
4
  setIsHovered: React.Dispatch<React.SetStateAction<boolean>>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  export const useButtonState = () => {
3
3
  const [isHovered, setIsHovered] = React.useState(false);
4
4
  // This custom react hook 'useButtonState' is defined for managing the state of a button, especially for hover interactions.
@@ -3,7 +3,7 @@
3
3
  * - Chooses a **main color** with priority: `backgroundColor` → `color` → `theme-primary`.
4
4
  * - Uses `getButtonVariants` to derive base/hover/active styles per variant.
5
5
  */
6
- import React from 'react';
6
+ import React from '../../../../../node_modules/@types/react';
7
7
  import { ButtonProps } from './Button.props';
8
8
  declare const ButtonView: React.NamedExoticComponent<ButtonProps & React.RefAttributes<HTMLElement>>;
9
9
  export default ButtonView;
@@ -3,7 +3,7 @@
3
3
  * - Chooses a **main color** with priority: `backgroundColor` → `color` → `theme-primary`.
4
4
  * - Uses `getButtonVariants` to derive base/hover/active styles per variant.
5
5
  */
6
- import React, { useMemo } from 'react';
6
+ import React, { useMemo } from '../../../../../node_modules/@types/react';
7
7
  import { Element, Horizontal, Vertical, View } from 'app-studio';
8
8
  import { Link } from '../../Link/Link';
9
9
  import { Loader } from '../../Loader/Loader';
@@ -5,7 +5,7 @@
5
5
  * - Uses app-studio's <Element/> (renders a Pressable when onPress is set).
6
6
  * - Preserves the public API surface of the web ButtonView.
7
7
  */
8
- import React from 'react';
8
+ import React from '../../../../../node_modules/@types/react';
9
9
  import { ButtonProps } from './Button.props';
10
10
  declare const ButtonView: React.NamedExoticComponent<ButtonProps & React.RefAttributes<any>>;
11
11
  export default ButtonView;
@@ -5,7 +5,7 @@
5
5
  * - Uses app-studio's <Element/> (renders a Pressable when onPress is set).
6
6
  * - Preserves the public API surface of the web ButtonView.
7
7
  */
8
- import React, { useMemo } from 'react';
8
+ import React, { useMemo } from '../../../../../node_modules/@types/react';
9
9
  import { Element, Horizontal, Vertical, View, Text } from 'app-studio';
10
10
  import { Link } from '../../Link/Link';
11
11
  import { Loader } from '../../Loader/Loader';
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ import React from '../../../../node_modules/@types/react';
2
2
  import { ButtonProps } from './Button/Button.props';
3
3
  export declare const Button: React.FC<ButtonProps>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../node_modules/@types/react';
2
2
  // Importing TypeScript type for button properties to ensure the component receives the correct props.
3
3
  import ButtonView from './Button/Button.view';
4
4
  import { useHover } from 'app-studio';
@@ -2,5 +2,5 @@ import { CardStyles } from './Card.type';
2
2
  export interface CardContextValue {
3
3
  styles?: CardStyles;
4
4
  }
5
- export declare const CardContext: import("react").Context<CardContextValue>;
5
+ export declare const CardContext: import("../../../../../node_modules/@types/react").Context<CardContextValue>;
6
6
  export declare const useCardContext: () => CardContextValue;
@@ -1,4 +1,4 @@
1
- import { createContext, useContext } from 'react';
1
+ import { createContext, useContext } from '../../../../../node_modules/@types/react';
2
2
  // This file establishes the React Context for the Card component, facilitating global access to shared properties like styling across its children, and provides a custom hook for convenient context consumption.
3
3
  export const CardContext = createContext({});
4
4
  export const useCardContext = () => {
@@ -1,4 +1,4 @@
1
1
  export declare const useCardState: () => {
2
2
  isHovered: boolean;
3
- setIsHovered: import("react").Dispatch<import("react").SetStateAction<boolean>>;
3
+ setIsHovered: import("../../../../../node_modules/@types/react").Dispatch<import("../../../../../node_modules/@types/react").SetStateAction<boolean>>;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { useState } from 'react';
1
+ import { useState } from '../../../../../node_modules/@types/react';
2
2
  // Manages the local state for the Card component, specifically tracking its hover status using a custom React hook.
3
3
  export const useCardState = () => {
4
4
  const [isHovered, setIsHovered] = useState(false);
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { CardProps, CardHeaderProps, CardContentProps, CardFooterProps } from './Card.props';
3
3
  export declare const CardHeader: React.FC<CardHeaderProps>;
4
4
  export declare const CardContent: React.FC<CardContentProps>;
@@ -1,4 +1,4 @@
1
- import React, { useMemo } from 'react';
1
+ import React, { useMemo } from '../../../../../node_modules/@types/react';
2
2
  import { View, useTheme } from 'app-studio';
3
3
  import { Vertical } from 'app-studio';
4
4
  import { CardShapes, CardSizes, getCardVariants, getDefaultCardStyles, } from './Card.style';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../node_modules/@types/react';
2
2
  import { CardView, CardHeader, CardContent, CardFooter, } from './Card/Card.view';
3
3
  import { useMergedDesignSystemComponentProps } from '../../design-system';
4
4
  // This file defines and exports the main `Card` component, which serves as a wrapper for its sub-components like `Card.Header`, `Card.Content`, and `Card.Footer`, enabling a compound component pattern for flexible content structuring.
@@ -1,3 +1,3 @@
1
1
  import { CarouselContextValue } from './Carousel.type';
2
- export declare const CarouselContext: import("react").Context<CarouselContextValue | null>;
2
+ export declare const CarouselContext: import("../../../../../node_modules/@types/react").Context<CarouselContextValue | null>;
3
3
  export declare const useCarouselContext: () => CarouselContextValue;
@@ -1,4 +1,4 @@
1
- import { createContext, useContext } from 'react';
1
+ import { createContext, useContext } from '../../../../../node_modules/@types/react';
2
2
  // Initializes the React Context for Carousel data, allowing child components to consume its value.
3
3
  export const CarouselContext = createContext(null);
4
4
  // Defines a custom hook to provide convenient access to the CarouselContext, simplifying data retrieval.
@@ -1,4 +1,4 @@
1
- import { useState, useEffect, useCallback, useRef, useMemo } from 'react';
1
+ import { useState, useEffect, useCallback, useRef, useMemo } from '../../../../../node_modules/@types/react';
2
2
  import { generateId } from '../../../utils/id';
3
3
  export const useCarouselState = ({ defaultActiveIndex = 0, activeIndex: controlledActiveIndex, onChange, autoPlay = false, autoPlayInterval = 3000, pauseOnHover = true, infinite = true, totalSlides: initialTotalSlides, stepIndices, }) => {
4
4
  const slideCountRef = useRef(initialTotalSlides || 0);
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { CarouselProps, CarouselSlideProps, CarouselContentProps, CarouselItemProps, CarouselPreviousProps, CarouselNextProps } from './Carousel.props';
3
3
  export declare const CarouselSlide: React.FC<CarouselSlideProps>;
4
4
  export declare const CarouselPreviousComponent: React.FC<CarouselPreviousProps>;
@@ -1,4 +1,4 @@
1
- import React, { useMemo, useEffect, useRef } from 'react';
1
+ import React, { useMemo, useEffect, useRef } from '../../../../../node_modules/@types/react';
2
2
  import { View } from 'app-studio';
3
3
  import { Horizontal } from 'app-studio';
4
4
  import { Button } from '../../Button/Button';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { CarouselProps, CarouselSlideProps, CarouselContentProps, CarouselItemProps, CarouselPreviousProps, CarouselNextProps } from './Carousel.props';
3
3
  export declare const CarouselSlide: React.FC<CarouselSlideProps>;
4
4
  export declare const CarouselPreviousComponent: React.FC<CarouselPreviousProps>;
@@ -1,4 +1,4 @@
1
- import React, { useMemo, useEffect, useRef } from 'react';
1
+ import React, { useMemo, useEffect, useRef } from '../../../../../node_modules/@types/react';
2
2
  import { Animated, Easing } from 'react-native';
3
3
  import { View, Horizontal, Text } from 'app-studio';
4
4
  import { Button } from '../../Button/Button';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../node_modules/@types/react';
2
2
  import { CarouselView, CarouselSlide, CarouselContentComponent, CarouselItemComponent, CarouselPreviousComponent, CarouselNextComponent, } from './Carousel/Carousel.view';
3
3
  // This file defines the main Carousel compound component, which acts as the primary interface and assembler for its associated sub-components such as Slide, Content, Item, Previous, and Next.
4
4
  const CarouselComponent = (props) => {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { ChartData } from './Chart.type';
3
3
  interface BarChartProps {
4
4
  data: ChartData;
@@ -1,4 +1,4 @@
1
- import React, { useMemo } from 'react';
1
+ import React, { useMemo } from '../../../../../node_modules/@types/react';
2
2
  import { View, useTheme } from 'app-studio';
3
3
  import { Text } from 'app-studio';
4
4
  import { BarStyles, AxisStyles, AxisLabelStyles, GridStyles, } from './Chart.style';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { ChartData } from './Chart.type';
3
3
  interface BarChartProps {
4
4
  data: ChartData;
@@ -1,4 +1,4 @@
1
- import React, { useMemo } from 'react';
1
+ import React, { useMemo } from '../../../../../node_modules/@types/react';
2
2
  import { View, Vertical, Horizontal, Text, useTheme } from 'app-studio';
3
3
  export const BarChart = ({ data, height, animationProgress, onBarClick, views, }) => {
4
4
  const { getColor } = useTheme();
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode } from '../../../../../node_modules/@types/react';
2
2
  import { ChartData, ChartDataPoint } from './Chart.type';
3
3
  export interface ChartStateProps {
4
4
  data?: ChartData;
@@ -15,7 +15,7 @@ export declare const useChartState: ({ data, dataPoints, animated, animationDura
15
15
  y: number;
16
16
  content: ReactNode;
17
17
  };
18
- containerRef: import("react").RefObject<HTMLDivElement | null>;
18
+ containerRef: import("../../../../../node_modules/@types/react").RefObject<HTMLDivElement | null>;
19
19
  processedData: () => {
20
20
  color: string;
21
21
  hidden: boolean;
@@ -1,4 +1,4 @@
1
- import { useState, useEffect, useRef, useCallback } from 'react';
1
+ import { useState, useEffect, useRef, useCallback } from '../../../../../node_modules/@types/react';
2
2
  import { DEFAULT_COLORS } from './Chart.style';
3
3
  // This file defines the `ChartStateProps` interface and implements the `useChartState` custom hook. This hook centralizes all state management and derived logic for the Chart component, including animation progress, tooltip visibility and positioning, data processing, and user interaction handlers for series toggling, offering a comprehensive and reusable state layer.
4
4
  export const useChartState = ({ data, dataPoints, animated = true, animationDuration = 500, showTooltips = true, }) => {
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { ChartProps } from './Chart.props';
3
3
  export declare const ChartView: React.FC<ChartProps>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { View } from 'app-studio';
3
3
  import { Text } from 'app-studio';
4
4
  import { Horizontal } from 'app-studio';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { ViewProps } from 'app-studio';
3
3
  interface ChartTooltipProps {
4
4
  visible: boolean;
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useRef, useState } from 'react';
1
+ import React, { useEffect, useRef, useState } from '../../../../../node_modules/@types/react';
2
2
  import { View } from 'app-studio';
3
3
  import { TooltipStyles } from './Chart.style';
4
4
  // The ChartTooltip component displays a customizable tooltip at specified coordinates, adjusting its position to stay within the viewport.
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { ChartData } from './Chart.type';
3
3
  interface LineChartProps {
4
4
  data: ChartData;
@@ -1,4 +1,4 @@
1
- import React, { useMemo } from 'react';
1
+ import React, { useMemo } from '../../../../../node_modules/@types/react';
2
2
  import { View, useTheme } from 'app-studio';
3
3
  import { Text } from 'app-studio';
4
4
  import { LineStyles, PointStyles, AxisStyles, AxisLabelStyles, GridStyles, } from './Chart.style';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { ChartData } from './Chart.type';
3
3
  interface LineChartProps {
4
4
  data: ChartData;
@@ -1,4 +1,4 @@
1
- import React, { useMemo } from 'react';
1
+ import React, { useMemo } from '../../../../../node_modules/@types/react';
2
2
  import { View, Vertical, Horizontal, Text, useTheme } from 'app-studio';
3
3
  export const LineChart = ({ data, height, animationProgress, onPointClick, views, }) => {
4
4
  const { getColor } = useTheme();
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { ChartDataPoint } from './Chart.type';
3
3
  interface PieChartProps {
4
4
  dataPoints: ChartDataPoint[];
@@ -1,4 +1,4 @@
1
- import React, { useMemo, useRef, useEffect } from 'react';
1
+ import React, { useMemo, useRef, useEffect } from '../../../../../node_modules/@types/react';
2
2
  import { useTheme, useElementPosition, View } from 'app-studio';
3
3
  import { Text } from 'app-studio';
4
4
  import { PieSliceStyles, DEFAULT_COLORS } from './Chart.style';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { ChartDataPoint } from './Chart.type';
3
3
  interface PieChartProps {
4
4
  dataPoints: ChartDataPoint[];
@@ -1,4 +1,4 @@
1
- import React, { useCallback, useMemo } from 'react';
1
+ import React, { useCallback, useMemo } from '../../../../../node_modules/@types/react';
2
2
  import { View, Vertical, Horizontal, Text, useTheme } from 'app-studio';
3
3
  import { DEFAULT_COLORS } from './Chart.style';
4
4
  let Svg = null;
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ import React from '../../../../node_modules/@types/react';
2
2
  import { ChartProps } from './Chart/Chart.props';
3
3
  export declare const Chart: React.FC<ChartProps>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../node_modules/@types/react';
2
2
  import { ChartView } from './Chart/Chart.view';
3
3
  // This file defines the main Chart component, which serves as a simple wrapper that renders the ChartView component, passing all received props directly to it.
4
4
  const ChartComponent = (props) => {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../node_modules/@types/react';
2
2
  interface AttachmentGroupProps {
3
3
  files: File[];
4
4
  sandboxId?: string;
@@ -1,4 +1,4 @@
1
- import React, { useCallback } from 'react';
1
+ import React, { useCallback } from '../../../../node_modules/@types/react';
2
2
  import { Vertical, View, Image, Center, Button, Horizontal } from 'app-studio';
3
3
  import { FileIcon, AudioIcon } from '../Icon/Icon';
4
4
  import { HoverCard } from '../HoverCard/HoverCard';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../node_modules/@types/react';
2
2
  interface AudioRecorderProps {
3
3
  onRecordingComplete: (file: File) => void;
4
4
  onRecordingStart?: () => void;
@@ -1,4 +1,4 @@
1
- import React, { useCallback, useEffect } from 'react';
1
+ import React, { useCallback, useEffect } from '../../../../node_modules/@types/react';
2
2
  import { Horizontal, View } from 'app-studio';
3
3
  import { MicrophoneIcon, StopIcon } from '../Icon/Icon';
4
4
  import { AudioWaveform } from '../AudioInput/AudioWaveform/AudioWaveform';
@@ -18,21 +18,21 @@ export declare const useChatInputState: (props: UseChatInputStateProps) => {
18
18
  handleChange: (newValue: string) => void;
19
19
  setValue: (newValue: string) => void;
20
20
  handleSubmit: (e: React.FormEvent) => void;
21
- editableRef: import("react").RefObject<HTMLDivElement | null>;
22
- fileInputRef: import("react").RefObject<HTMLInputElement | null>;
23
- hiddenInputRef: import("react").RefObject<HTMLTextAreaElement | null>;
21
+ editableRef: import("../../../../../node_modules/@types/react").RefObject<HTMLDivElement | null>;
22
+ fileInputRef: import("../../../../../node_modules/@types/react").RefObject<HTMLInputElement | null>;
23
+ hiddenInputRef: import("../../../../../node_modules/@types/react").RefObject<HTMLTextAreaElement | null>;
24
24
  isUploading: boolean;
25
25
  uploadProgress: number;
26
26
  isDraggingOver: boolean;
27
27
  uploadedFiles: File[];
28
28
  pendingFiles: File[];
29
29
  removeUploadedFile: (index: number) => void;
30
- setPendingFiles: import("react").Dispatch<import("react").SetStateAction<File[]>>;
31
- setUploadedFiles: import("react").Dispatch<import("react").SetStateAction<File[]>>;
32
- setIsUploading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
30
+ setPendingFiles: import("../../../../../node_modules/@types/react").Dispatch<import("../../../../../node_modules/@types/react").SetStateAction<File[]>>;
31
+ setUploadedFiles: import("../../../../../node_modules/@types/react").Dispatch<import("../../../../../node_modules/@types/react").SetStateAction<File[]>>;
32
+ setIsUploading: import("../../../../../node_modules/@types/react").Dispatch<import("../../../../../node_modules/@types/react").SetStateAction<boolean>>;
33
33
  startUpload: (files: File[]) => void;
34
34
  selectedModel: string;
35
- handleModelChange: import("react").Dispatch<import("react").SetStateAction<string>>;
35
+ handleModelChange: import("../../../../../node_modules/@types/react").Dispatch<import("../../../../../node_modules/@types/react").SetStateAction<string>>;
36
36
  modelOptions: ModelOption[];
37
37
  subscriptionStatus: string;
38
38
  canAccessModel: (_model: string) => boolean;
@@ -1,4 +1,4 @@
1
- import { useState, useRef, useEffect, useCallback } from 'react';
1
+ import { useState, useRef, useEffect, useCallback } from '../../../../../node_modules/@types/react';
2
2
  /**
3
3
  * Custom hook for managing ChatInput state
4
4
  */
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from '../../../../../node_modules/@types/react';
2
2
  import { ChatInputViewProps } from './ChatInput.props';
3
3
  declare const ChatInputView: React.FC<ChatInputViewProps>;
4
4
  export default ChatInputView;