@antscorp/antsomi-ui 2.0.92-text-editor-beta.6 → 2.0.93

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 (317) hide show
  1. package/es/assets/css/main.scss +2 -4
  2. package/es/components/icons/LazyIcon/LazyIcon.d.ts +9 -18
  3. package/es/components/icons/LazyIcon/LazyIcon.js +9 -18
  4. package/es/components/icons/index.d.ts +9 -18
  5. package/es/components/icons/index.js +9 -18
  6. package/es/components/molecules/EmojiCollections/CommonCollection/index.js +2 -2
  7. package/es/components/molecules/EmojiCollections/types.d.ts +0 -1
  8. package/es/components/molecules/EmojiPopover/EmojiPopover.d.ts +0 -1
  9. package/es/components/molecules/EmojiPopover/EmojiPopover.js +6 -10
  10. package/es/components/molecules/EmojiPopover/styled.d.ts +2 -2
  11. package/es/components/molecules/EmojiPopover/styled.js +1 -1
  12. package/es/components/molecules/TagifyInput/patternHandlers.js +12 -0
  13. package/es/components/molecules/TagifyInput/utils.d.ts +1 -0
  14. package/es/components/molecules/TagifyInput/utils.js +1 -0
  15. package/es/components/molecules/VirtualizedMenu/VirtualizedMenu.d.ts +3 -6
  16. package/es/components/molecules/VirtualizedMenu/__mocks__/index.js +982 -2594
  17. package/es/components/molecules/VirtualizedMenu/components/Item/Item.d.ts +11 -1
  18. package/es/components/molecules/VirtualizedMenu/components/Item/Item.js +25 -53
  19. package/es/components/molecules/VirtualizedMenu/components/MenuInline/MenuInline.d.ts +5 -8
  20. package/es/components/molecules/VirtualizedMenu/components/MenuInline/MenuInline.js +46 -289
  21. package/es/components/molecules/VirtualizedMenu/components/MenuInline/index.js +0 -1
  22. package/es/components/molecules/VirtualizedMenu/styled.d.ts +2 -2
  23. package/es/components/molecules/VirtualizedMenu/styled.js +4 -23
  24. package/es/components/molecules/VirtualizedMenu/types.d.ts +10 -27
  25. package/es/components/molecules/VirtualizedMenu/utils.d.ts +5 -8
  26. package/es/components/molecules/VirtualizedMenu/utils.js +18 -13
  27. package/es/components/molecules/index.d.ts +0 -1
  28. package/es/components/molecules/index.js +0 -1
  29. package/es/components/organism/index.d.ts +0 -1
  30. package/es/components/organism/index.js +0 -1
  31. package/es/constants/api.js +3 -3
  32. package/es/hooks/index.d.ts +0 -4
  33. package/es/hooks/index.js +0 -4
  34. package/es/locales/i18n.d.ts +1 -1
  35. package/es/utils/common.d.ts +9 -14
  36. package/es/utils/common.js +23 -60
  37. package/es/utils/index.d.ts +0 -1
  38. package/es/utils/index.js +0 -1
  39. package/es/utils/web.d.ts +0 -15
  40. package/es/utils/web.js +0 -39
  41. package/package.json +4 -22
  42. package/es/components/atoms/Eyedropper/Eyedropper.d.ts +0 -2
  43. package/es/components/atoms/Eyedropper/Eyedropper.js +0 -53
  44. package/es/components/atoms/Eyedropper/index.d.ts +0 -0
  45. package/es/components/atoms/Eyedropper/index.js +0 -1
  46. package/es/components/atoms/Eyedropper/styled.d.ts +0 -9
  47. package/es/components/atoms/Eyedropper/styled.js +0 -45
  48. package/es/components/atoms/Eyedropper/types.d.ts +0 -5
  49. package/es/components/atoms/Eyedropper/types.js +0 -1
  50. package/es/components/icons/ALignRightIcon.d.ts +0 -3
  51. package/es/components/icons/ALignRightIcon.js +0 -7
  52. package/es/components/icons/AlignCenterIcon.d.ts +0 -3
  53. package/es/components/icons/AlignCenterIcon.js +0 -7
  54. package/es/components/icons/AlignJustifyIcon.d.ts +0 -3
  55. package/es/components/icons/AlignJustifyIcon.js +0 -7
  56. package/es/components/icons/AlignLeftIcon.d.ts +0 -3
  57. package/es/components/icons/AlignLeftIcon.js +0 -7
  58. package/es/components/icons/ArrowDropDownIcon.d.ts +0 -3
  59. package/es/components/icons/ArrowDropDownIcon.js +0 -7
  60. package/es/components/icons/ChevronRightIcon.d.ts +0 -3
  61. package/es/components/icons/ChevronRightIcon.js +0 -7
  62. package/es/components/icons/ColorizeIcon.d.ts +0 -3
  63. package/es/components/icons/ColorizeIcon.js +0 -7
  64. package/es/components/icons/LinkOffIcon.d.ts +0 -3
  65. package/es/components/icons/LinkOffIcon.js +0 -7
  66. package/es/components/icons/MinusIcon.d.ts +0 -3
  67. package/es/components/icons/MinusIcon.js +0 -7
  68. package/es/components/index.scss +0 -2
  69. package/es/components/molecules/EyedropperButton/EyedropperButton.d.ts +0 -11
  70. package/es/components/molecules/EyedropperButton/EyedropperButton.js +0 -34
  71. package/es/components/molecules/EyedropperButton/index.d.ts +0 -0
  72. package/es/components/molecules/EyedropperButton/index.js +0 -1
  73. package/es/components/molecules/EyedropperButton/styled.d.ts +0 -7
  74. package/es/components/molecules/EyedropperButton/styled.js +0 -23
  75. package/es/components/molecules/FontSizeInput/FontSizeInput.d.ts +0 -3
  76. package/es/components/molecules/FontSizeInput/FontSizeInput.js +0 -134
  77. package/es/components/molecules/FontSizeInput/components/FontSizeControl.d.ts +0 -8
  78. package/es/components/molecules/FontSizeInput/components/FontSizeControl.js +0 -14
  79. package/es/components/molecules/FontSizeInput/components/FontSizeDropdown.d.ts +0 -21
  80. package/es/components/molecules/FontSizeInput/components/FontSizeDropdown.js +0 -19
  81. package/es/components/molecules/FontSizeInput/constants.d.ts +0 -2
  82. package/es/components/molecules/FontSizeInput/constants.js +0 -5
  83. package/es/components/molecules/FontSizeInput/index.d.ts +0 -2
  84. package/es/components/molecules/FontSizeInput/index.js +0 -1
  85. package/es/components/molecules/FontSizeInput/styled.d.ts +0 -7
  86. package/es/components/molecules/FontSizeInput/styled.js +0 -40
  87. package/es/components/molecules/FontSizeInput/styles.scss +0 -15
  88. package/es/components/molecules/FontSizeInput/types.d.ts +0 -23
  89. package/es/components/molecules/FontSizeInput/types.js +0 -1
  90. package/es/components/molecules/FontSizeInput/utils.d.ts +0 -7
  91. package/es/components/molecules/FontSizeInput/utils.js +0 -9
  92. package/es/components/molecules/index.scss +0 -1
  93. package/es/components/organism/ActivityTimeline/__mocks__/event_tracking.json +0 -1290
  94. package/es/components/organism/ActivityTimeline/__mocks__/timeline.json +0 -3059
  95. package/es/components/organism/TextEditor/TextEditor.d.ts +0 -3
  96. package/es/components/organism/TextEditor/TextEditor.js +0 -264
  97. package/es/components/organism/TextEditor/__mocks__/text-block.settings.json +0 -320
  98. package/es/components/organism/TextEditor/__mocks__/text-contennt.d.ts +0 -1
  99. package/es/components/organism/TextEditor/__mocks__/text-contennt.js +0 -38
  100. package/es/components/organism/TextEditor/constants.d.ts +0 -177
  101. package/es/components/organism/TextEditor/constants.js +0 -323
  102. package/es/components/organism/TextEditor/extensions/BackgroundColor.d.ts +0 -25
  103. package/es/components/organism/TextEditor/extensions/BackgroundColor.js +0 -46
  104. package/es/components/organism/TextEditor/extensions/BubbleMenu/bubble-menu-plugin.d.ts +0 -140
  105. package/es/components/organism/TextEditor/extensions/BubbleMenu/bubble-menu-plugin.js +0 -366
  106. package/es/components/organism/TextEditor/extensions/BubbleMenu/bubble-menu.d.ts +0 -15
  107. package/es/components/organism/TextEditor/extensions/BubbleMenu/bubble-menu.js +0 -31
  108. package/es/components/organism/TextEditor/extensions/BubbleMenu/index.d.ts +0 -2
  109. package/es/components/organism/TextEditor/extensions/BubbleMenu/index.js +0 -2
  110. package/es/components/organism/TextEditor/extensions/ClearFormatting.d.ts +0 -16
  111. package/es/components/organism/TextEditor/extensions/ClearFormatting.js +0 -26
  112. package/es/components/organism/TextEditor/extensions/Color.d.ts +0 -6
  113. package/es/components/organism/TextEditor/extensions/Color.js +0 -34
  114. package/es/components/organism/TextEditor/extensions/Emoji.d.ts +0 -57
  115. package/es/components/organism/TextEditor/extensions/Emoji.js +0 -184
  116. package/es/components/organism/TextEditor/extensions/FontFamily.d.ts +0 -6
  117. package/es/components/organism/TextEditor/extensions/FontFamily.js +0 -36
  118. package/es/components/organism/TextEditor/extensions/FontSize.d.ts +0 -31
  119. package/es/components/organism/TextEditor/extensions/FontSize.js +0 -46
  120. package/es/components/organism/TextEditor/extensions/FontWeight.d.ts +0 -23
  121. package/es/components/organism/TextEditor/extensions/FontWeight.js +0 -41
  122. package/es/components/organism/TextEditor/extensions/Indent.d.ts +0 -21
  123. package/es/components/organism/TextEditor/extensions/Indent.js +0 -63
  124. package/es/components/organism/TextEditor/extensions/LetterSpacing.d.ts +0 -32
  125. package/es/components/organism/TextEditor/extensions/LetterSpacing.js +0 -48
  126. package/es/components/organism/TextEditor/extensions/LineHeight.d.ts +0 -20
  127. package/es/components/organism/TextEditor/extensions/LineHeight.js +0 -36
  128. package/es/components/organism/TextEditor/extensions/Link.d.ts +0 -29
  129. package/es/components/organism/TextEditor/extensions/Link.js +0 -187
  130. package/es/components/organism/TextEditor/extensions/ListItemMarker.d.ts +0 -13
  131. package/es/components/organism/TextEditor/extensions/ListItemMarker.js +0 -174
  132. package/es/components/organism/TextEditor/extensions/OrderedList.d.ts +0 -56
  133. package/es/components/organism/TextEditor/extensions/OrderedList.js +0 -187
  134. package/es/components/organism/TextEditor/extensions/SmartTag.d.ts +0 -39
  135. package/es/components/organism/TextEditor/extensions/SmartTag.js +0 -167
  136. package/es/components/organism/TextEditor/extensions/StyleMemory.d.ts +0 -36
  137. package/es/components/organism/TextEditor/extensions/StyleMemory.js +0 -163
  138. package/es/components/organism/TextEditor/extensions/TextTransform.d.ts +0 -30
  139. package/es/components/organism/TextEditor/extensions/TextTransform.js +0 -36
  140. package/es/components/organism/TextEditor/extensions/UnorderedList.d.ts +0 -55
  141. package/es/components/organism/TextEditor/extensions/UnorderedList.js +0 -176
  142. package/es/components/organism/TextEditor/hooks/index.d.ts +0 -6
  143. package/es/components/organism/TextEditor/hooks/index.js +0 -6
  144. package/es/components/organism/TextEditor/hooks/useColorSet.d.ts +0 -4
  145. package/es/components/organism/TextEditor/hooks/useColorSet.js +0 -22
  146. package/es/components/organism/TextEditor/hooks/useDocumentState.d.ts +0 -18
  147. package/es/components/organism/TextEditor/hooks/useDocumentState.js +0 -42
  148. package/es/components/organism/TextEditor/hooks/useMarkTracking.d.ts +0 -26
  149. package/es/components/organism/TextEditor/hooks/useMarkTracking.js +0 -68
  150. package/es/components/organism/TextEditor/hooks/usePersistence.d.ts +0 -31
  151. package/es/components/organism/TextEditor/hooks/usePersistence.js +0 -169
  152. package/es/components/organism/TextEditor/hooks/useStyleMemory.d.ts +0 -6
  153. package/es/components/organism/TextEditor/hooks/useStyleMemory.js +0 -42
  154. package/es/components/organism/TextEditor/hooks/useStylePresets.d.ts +0 -34
  155. package/es/components/organism/TextEditor/hooks/useStylePresets.js +0 -83
  156. package/es/components/organism/TextEditor/index.d.ts +0 -16
  157. package/es/components/organism/TextEditor/index.js +0 -8
  158. package/es/components/organism/TextEditor/index.scss +0 -61
  159. package/es/components/organism/TextEditor/provider.d.ts +0 -14
  160. package/es/components/organism/TextEditor/provider.js +0 -33
  161. package/es/components/organism/TextEditor/store.d.ts +0 -13
  162. package/es/components/organism/TextEditor/store.js +0 -20
  163. package/es/components/organism/TextEditor/styled.d.ts +0 -10
  164. package/es/components/organism/TextEditor/styled.js +0 -94
  165. package/es/components/organism/TextEditor/types.d.ts +0 -139
  166. package/es/components/organism/TextEditor/types.js +0 -5
  167. package/es/components/organism/TextEditor/ui/BubbleMenu/BubbleMenu.d.ts +0 -6
  168. package/es/components/organism/TextEditor/ui/BubbleMenu/BubbleMenu.js +0 -84
  169. package/es/components/organism/TextEditor/ui/BubbleMenu/index.d.ts +0 -1
  170. package/es/components/organism/TextEditor/ui/BubbleMenu/index.js +0 -1
  171. package/es/components/organism/TextEditor/ui/BubbleToolbar/BubbleToolbar.d.ts +0 -1
  172. package/es/components/organism/TextEditor/ui/BubbleToolbar/BubbleToolbar.js +0 -1
  173. package/es/components/organism/TextEditor/ui/BubbleToolbar/index.d.ts +0 -0
  174. package/es/components/organism/TextEditor/ui/BubbleToolbar/index.js +0 -1
  175. package/es/components/organism/TextEditor/ui/Button/Button.d.ts +0 -2
  176. package/es/components/organism/TextEditor/ui/Button/Button.js +0 -31
  177. package/es/components/organism/TextEditor/ui/Button/index.d.ts +0 -2
  178. package/es/components/organism/TextEditor/ui/Button/index.js +0 -1
  179. package/es/components/organism/TextEditor/ui/Button/types.d.ts +0 -10
  180. package/es/components/organism/TextEditor/ui/Button/types.js +0 -1
  181. package/es/components/organism/TextEditor/ui/ColorPicker/ColorPicker.d.ts +0 -39
  182. package/es/components/organism/TextEditor/ui/ColorPicker/ColorPicker.js +0 -131
  183. package/es/components/organism/TextEditor/ui/ColorPicker/index.d.ts +0 -1
  184. package/es/components/organism/TextEditor/ui/ColorPicker/index.js +0 -1
  185. package/es/components/organism/TextEditor/ui/DropdownButton/DropdownButton.d.ts +0 -17
  186. package/es/components/organism/TextEditor/ui/DropdownButton/DropdownButton.js +0 -51
  187. package/es/components/organism/TextEditor/ui/DropdownButton/index.d.ts +0 -1
  188. package/es/components/organism/TextEditor/ui/DropdownButton/index.js +0 -1
  189. package/es/components/organism/TextEditor/ui/Emoji/EmojiList.d.ts +0 -11
  190. package/es/components/organism/TextEditor/ui/Emoji/EmojiList.js +0 -66
  191. package/es/components/organism/TextEditor/ui/Emoji/index.d.ts +0 -2
  192. package/es/components/organism/TextEditor/ui/Emoji/index.js +0 -2
  193. package/es/components/organism/TextEditor/ui/Emoji/suggestion.d.ts +0 -4
  194. package/es/components/organism/TextEditor/ui/Emoji/suggestion.js +0 -71
  195. package/es/components/organism/TextEditor/ui/FontPopover/FontPopover.d.ts +0 -12
  196. package/es/components/organism/TextEditor/ui/FontPopover/FontPopover.js +0 -69
  197. package/es/components/organism/TextEditor/ui/FontPopover/styled.d.ts +0 -1
  198. package/es/components/organism/TextEditor/ui/FontPopover/styled.js +0 -22
  199. package/es/components/organism/TextEditor/ui/Popover/Popover.d.ts +0 -6
  200. package/es/components/organism/TextEditor/ui/Popover/Popover.js +0 -9
  201. package/es/components/organism/TextEditor/ui/Popover/index.d.ts +0 -1
  202. package/es/components/organism/TextEditor/ui/Popover/index.js +0 -1
  203. package/es/components/organism/TextEditor/ui/Select/Select.d.ts +0 -4
  204. package/es/components/organism/TextEditor/ui/Select/Select.js +0 -7
  205. package/es/components/organism/TextEditor/ui/Select/index.d.ts +0 -1
  206. package/es/components/organism/TextEditor/ui/Select/index.js +0 -1
  207. package/es/components/organism/TextEditor/ui/SplitButtonDropdown/SplitButtonDropdown.d.ts +0 -2
  208. package/es/components/organism/TextEditor/ui/SplitButtonDropdown/SplitButtonDropdown.js +0 -44
  209. package/es/components/organism/TextEditor/ui/SplitButtonDropdown/index.d.ts +0 -1
  210. package/es/components/organism/TextEditor/ui/SplitButtonDropdown/index.js +0 -1
  211. package/es/components/organism/TextEditor/ui/SplitButtonDropdown/styled.d.ts +0 -2
  212. package/es/components/organism/TextEditor/ui/SplitButtonDropdown/styled.js +0 -52
  213. package/es/components/organism/TextEditor/ui/SplitButtonDropdown/types.d.ts +0 -19
  214. package/es/components/organism/TextEditor/ui/SplitButtonDropdown/types.js +0 -1
  215. package/es/components/organism/TextEditor/ui/TextAlignSelect/TextAlignSelect.d.ts +0 -30
  216. package/es/components/organism/TextEditor/ui/TextAlignSelect/TextAlignSelect.js +0 -77
  217. package/es/components/organism/TextEditor/ui/TextAlignSelect/index.d.ts +0 -1
  218. package/es/components/organism/TextEditor/ui/TextAlignSelect/index.js +0 -1
  219. package/es/components/organism/TextEditor/ui/Toolbar/Toolbar.d.ts +0 -16
  220. package/es/components/organism/TextEditor/ui/Toolbar/Toolbar.js +0 -42
  221. package/es/components/organism/TextEditor/ui/Toolbar/actions/BoldAction.d.ts +0 -5
  222. package/es/components/organism/TextEditor/ui/Toolbar/actions/BoldAction.js +0 -18
  223. package/es/components/organism/TextEditor/ui/Toolbar/actions/BulletListAction.d.ts +0 -6
  224. package/es/components/organism/TextEditor/ui/Toolbar/actions/BulletListAction.js +0 -93
  225. package/es/components/organism/TextEditor/ui/Toolbar/actions/ClearFormattingAction.d.ts +0 -5
  226. package/es/components/organism/TextEditor/ui/Toolbar/actions/ClearFormattingAction.js +0 -20
  227. package/es/components/organism/TextEditor/ui/Toolbar/actions/EmojiAction.d.ts +0 -4
  228. package/es/components/organism/TextEditor/ui/Toolbar/actions/EmojiAction.js +0 -31
  229. package/es/components/organism/TextEditor/ui/Toolbar/actions/FontFamilyAction.d.ts +0 -7
  230. package/es/components/organism/TextEditor/ui/Toolbar/actions/FontFamilyAction.js +0 -28
  231. package/es/components/organism/TextEditor/ui/Toolbar/actions/FontSizeAction.d.ts +0 -7
  232. package/es/components/organism/TextEditor/ui/Toolbar/actions/FontSizeAction.js +0 -44
  233. package/es/components/organism/TextEditor/ui/Toolbar/actions/HistoryAction.d.ts +0 -5
  234. package/es/components/organism/TextEditor/ui/Toolbar/actions/HistoryAction.js +0 -21
  235. package/es/components/organism/TextEditor/ui/Toolbar/actions/IndentAction.d.ts +0 -5
  236. package/es/components/organism/TextEditor/ui/Toolbar/actions/IndentAction.js +0 -17
  237. package/es/components/organism/TextEditor/ui/Toolbar/actions/ItalicAction.d.ts +0 -5
  238. package/es/components/organism/TextEditor/ui/Toolbar/actions/ItalicAction.js +0 -18
  239. package/es/components/organism/TextEditor/ui/Toolbar/actions/LetterSpacing.d.ts +0 -5
  240. package/es/components/organism/TextEditor/ui/Toolbar/actions/LetterSpacing.js +0 -28
  241. package/es/components/organism/TextEditor/ui/Toolbar/actions/LinkAction.d.ts +0 -6
  242. package/es/components/organism/TextEditor/ui/Toolbar/actions/LinkAction.js +0 -17
  243. package/es/components/organism/TextEditor/ui/Toolbar/actions/OrderedListAction.d.ts +0 -5
  244. package/es/components/organism/TextEditor/ui/Toolbar/actions/OrderedListAction.js +0 -67
  245. package/es/components/organism/TextEditor/ui/Toolbar/actions/OutdentAction.d.ts +0 -5
  246. package/es/components/organism/TextEditor/ui/Toolbar/actions/OutdentAction.js +0 -17
  247. package/es/components/organism/TextEditor/ui/Toolbar/actions/SmartTagAction.d.ts +0 -7
  248. package/es/components/organism/TextEditor/ui/Toolbar/actions/SmartTagAction.js +0 -18
  249. package/es/components/organism/TextEditor/ui/Toolbar/actions/SpacingAction.d.ts +0 -10
  250. package/es/components/organism/TextEditor/ui/Toolbar/actions/SpacingAction.js +0 -45
  251. package/es/components/organism/TextEditor/ui/Toolbar/actions/StrikeAction.d.ts +0 -5
  252. package/es/components/organism/TextEditor/ui/Toolbar/actions/StrikeAction.js +0 -18
  253. package/es/components/organism/TextEditor/ui/Toolbar/actions/SubscriptAction.d.ts +0 -5
  254. package/es/components/organism/TextEditor/ui/Toolbar/actions/SubscriptAction.js +0 -26
  255. package/es/components/organism/TextEditor/ui/Toolbar/actions/SuperscriptAction.d.ts +0 -5
  256. package/es/components/organism/TextEditor/ui/Toolbar/actions/SuperscriptAction.js +0 -26
  257. package/es/components/organism/TextEditor/ui/Toolbar/actions/TextAlignAction.d.ts +0 -5
  258. package/es/components/organism/TextEditor/ui/Toolbar/actions/TextAlignAction.js +0 -3
  259. package/es/components/organism/TextEditor/ui/Toolbar/actions/TextBackgroundColorAction.d.ts +0 -5
  260. package/es/components/organism/TextEditor/ui/Toolbar/actions/TextBackgroundColorAction.js +0 -29
  261. package/es/components/organism/TextEditor/ui/Toolbar/actions/TextColorAction.d.ts +0 -14
  262. package/es/components/organism/TextEditor/ui/Toolbar/actions/TextColorAction.js +0 -22
  263. package/es/components/organism/TextEditor/ui/Toolbar/actions/TextTransformAction.d.ts +0 -5
  264. package/es/components/organism/TextEditor/ui/Toolbar/actions/TextTransformAction.js +0 -36
  265. package/es/components/organism/TextEditor/ui/Toolbar/actions/UnderlineAction.d.ts +0 -5
  266. package/es/components/organism/TextEditor/ui/Toolbar/actions/UnderlineAction.js +0 -18
  267. package/es/components/organism/TextEditor/ui/Toolbar/actions/UnsetLink.d.ts +0 -6
  268. package/es/components/organism/TextEditor/ui/Toolbar/actions/UnsetLink.js +0 -19
  269. package/es/components/organism/TextEditor/ui/Toolbar/actions/index.d.ts +0 -24
  270. package/es/components/organism/TextEditor/ui/Toolbar/actions/index.js +0 -24
  271. package/es/components/organism/TextEditor/ui/Toolbar/index.d.ts +0 -1
  272. package/es/components/organism/TextEditor/ui/Toolbar/index.js +0 -1
  273. package/es/components/organism/TextEditor/utils/documentState.d.ts +0 -57
  274. package/es/components/organism/TextEditor/utils/documentState.js +0 -100
  275. package/es/components/organism/TextEditor/utils/font.d.ts +0 -73
  276. package/es/components/organism/TextEditor/utils/font.js +0 -160
  277. package/es/components/organism/TextEditor/utils/htmlProcessing.d.ts +0 -75
  278. package/es/components/organism/TextEditor/utils/htmlProcessing.js +0 -343
  279. package/es/components/organism/TextEditor/utils/indent.d.ts +0 -11
  280. package/es/components/organism/TextEditor/utils/indent.js +0 -56
  281. package/es/components/organism/TextEditor/utils/index.d.ts +0 -8
  282. package/es/components/organism/TextEditor/utils/index.js +0 -16
  283. package/es/components/organism/TextEditor/utils/link.d.ts +0 -108
  284. package/es/components/organism/TextEditor/utils/link.js +0 -151
  285. package/es/components/organism/TextEditor/utils/menu.d.ts +0 -134
  286. package/es/components/organism/TextEditor/utils/menu.js +0 -317
  287. package/es/components/organism/TextEditor/utils/selection.d.ts +0 -25
  288. package/es/components/organism/TextEditor/utils/selection.js +0 -57
  289. package/es/components/organism/TextEditor/utils/shared.d.ts +0 -1
  290. package/es/components/organism/TextEditor/utils/shared.js +0 -9
  291. package/es/components/organism/TextEditor/utils/smartTag.d.ts +0 -49
  292. package/es/components/organism/TextEditor/utils/smartTag.js +0 -89
  293. package/es/components/organism/TextEditor/utils/style.d.ts +0 -78
  294. package/es/components/organism/TextEditor/utils/style.js +0 -193
  295. package/es/components/organism/index.scss +0 -1
  296. package/es/hooks/useBroadcastedLocalStorage.d.ts +0 -5
  297. package/es/hooks/useBroadcastedLocalStorage.js +0 -71
  298. package/es/hooks/useElementSize.d.ts +0 -7
  299. package/es/hooks/useElementSize.js +0 -56
  300. package/es/hooks/useEyedropper/attach.d.ts +0 -4
  301. package/es/hooks/useEyedropper/attach.js +0 -9
  302. package/es/hooks/useEyedropper/eyedropper.d.ts +0 -69
  303. package/es/hooks/useEyedropper/eyedropper.js +0 -205
  304. package/es/hooks/useEyedropper/index.d.ts +0 -2
  305. package/es/hooks/useEyedropper/index.js +0 -7
  306. package/es/hooks/useEyedropper/support.d.ts +0 -1
  307. package/es/hooks/useEyedropper/support.js +0 -3
  308. package/es/hooks/useEyedropper/types.d.ts +0 -9
  309. package/es/hooks/useEyedropper/types.js +0 -1
  310. package/es/hooks/useEyedropper/useEyedropper.d.ts +0 -8
  311. package/es/hooks/useEyedropper/useEyedropper.js +0 -50
  312. package/es/hooks/useEyedropper/utils.d.ts +0 -11
  313. package/es/hooks/useEyedropper/utils.js +0 -17
  314. package/es/hooks/useIsMounted.d.ts +0 -1
  315. package/es/hooks/useIsMounted.js +0 -11
  316. package/es/utils/tree.d.ts +0 -225
  317. package/es/utils/tree.js +0 -469
@@ -1,317 +0,0 @@
1
- import { isTextSelection } from '@tiptap/core';
2
- import { isNoSelection } from './selection';
3
- import { isCursorInLink } from './link';
4
- /**
5
- * Default function to determine if bubble menu should be shown
6
- * @param params Object containing editor state and view information
7
- * @returns true if bubble menu should be shown
8
- */
9
- export const defaultShouldShowBubbleMenu = (params) => {
10
- const { element, editor, state, view } = params;
11
- const shouldShow = () => {
12
- const { doc, selection } = state;
13
- const { empty, ranges } = selection;
14
- const from = Math.min(...ranges.map(range => range.$from.pos));
15
- const to = Math.max(...ranges.map(range => range.$to.pos));
16
- // Sometime check for `empty` is not enough.
17
- // Doubleclick an empty paragraph returns a node size of 2.
18
- // So we check also for an empty text size.
19
- const isEmptyTextBlock = !doc.textBetween(from, to).length && isTextSelection(state.selection);
20
- // When clicking on a element inside the bubble menu the editor "blur" event
21
- // is called and the bubble menu item is focussed. In this case we should
22
- // consider the menu as part of the editor and keep showing the menu
23
- const isChildOfMenu = element.contains(document.activeElement);
24
- const hasEditorFocus = view.hasFocus() || isChildOfMenu;
25
- if (!hasEditorFocus || empty || isEmptyTextBlock || !editor.isEditable) {
26
- return false;
27
- }
28
- return true;
29
- };
30
- const show = shouldShow();
31
- return show;
32
- };
33
- /**
34
- * Checks if link menu should be shown
35
- * @param state EditorState
36
- * @returns true if link menu should be shown
37
- */
38
- export const shouldShowLinkMenu = (state) => isNoSelection(state) && isCursorInLink(state);
39
- /**
40
- * Calculates optimal menu position relative to selection
41
- * @param view EditorView instance
42
- * @param menuElement Menu element to position
43
- * @returns Position coordinates
44
- */
45
- export function calculateMenuPosition(view, menuElement) {
46
- const { selection } = view.state;
47
- const { from, to } = selection;
48
- // Get DOM coordinates of selection
49
- const start = view.coordsAtPos(from);
50
- const end = view.coordsAtPos(to);
51
- // Calculate menu dimensions
52
- const menuRect = menuElement.getBoundingClientRect();
53
- const viewportWidth = window.innerWidth;
54
- // const viewportHeight = window.innerHeight;
55
- // Calculate optimal position
56
- let top = start.top - menuRect.height - 10; // 10px gap above selection
57
- let left = (start.left + end.left) / 2 - menuRect.width / 2; // Center horizontally
58
- // Adjust if menu would go off-screen
59
- if (top < 0) {
60
- top = end.bottom + 10; // Show below if no space above
61
- }
62
- if (left < 0) {
63
- left = 10; // 10px from left edge
64
- }
65
- else if (left + menuRect.width > viewportWidth) {
66
- left = viewportWidth - menuRect.width - 10; // 10px from right edge
67
- }
68
- return { top, left };
69
- }
70
- /**
71
- * Checks if menu should be hidden based on editor state
72
- * @param editor Editor instance
73
- * @returns true if menu should be hidden
74
- */
75
- export function shouldHideMenu(editor) {
76
- if (!editor.isEditable)
77
- return true;
78
- if (!editor.isFocused)
79
- return true;
80
- const { selection } = editor.state;
81
- if (selection.empty)
82
- return true;
83
- return false;
84
- }
85
- /**
86
- * Gets the active menu type based on current selection
87
- * @param state EditorState
88
- * @returns Menu type identifier
89
- */
90
- export function getActiveMenuType(state) {
91
- if (shouldShowLinkMenu(state)) {
92
- return 'link';
93
- }
94
- const { selection } = state;
95
- if (selection.empty)
96
- return null;
97
- // Check if smart tag is selected
98
- const node = state.doc.nodeAt(selection.from);
99
- if (node && node.type.name === 'smartTag') {
100
- return 'smartTag';
101
- }
102
- return 'default';
103
- }
104
- /**
105
- * Menu visibility manager class
106
- */
107
- export class MenuVisibilityManager {
108
- constructor() {
109
- this.visibleMenus = new Set();
110
- this.callbacks = new Map();
111
- }
112
- /**
113
- * Shows a menu with given ID
114
- * @param menuId Menu identifier
115
- * @param onShow Optional callback when menu is shown
116
- */
117
- showMenu(menuId, onShow) {
118
- this.hideAllMenus();
119
- this.visibleMenus.add(menuId);
120
- if (onShow) {
121
- this.callbacks.set(menuId, onShow);
122
- onShow();
123
- }
124
- }
125
- /**
126
- * Hides a specific menu
127
- * @param menuId Menu identifier
128
- */
129
- hideMenu(menuId) {
130
- this.visibleMenus.delete(menuId);
131
- this.callbacks.delete(menuId);
132
- }
133
- /**
134
- * Hides all visible menus
135
- */
136
- hideAllMenus() {
137
- this.visibleMenus.clear();
138
- this.callbacks.clear();
139
- }
140
- /**
141
- * Checks if a menu is visible
142
- * @param menuId Menu identifier
143
- * @returns true if menu is visible
144
- */
145
- isMenuVisible(menuId) {
146
- return this.visibleMenus.has(menuId);
147
- }
148
- /**
149
- * Gets all visible menu IDs
150
- * @returns Array of visible menu IDs
151
- */
152
- getVisibleMenus() {
153
- return Array.from(this.visibleMenus);
154
- }
155
- }
156
- /**
157
- * Menu positioning utilities
158
- */
159
- export class MenuPositioner {
160
- constructor(container = document.body) {
161
- this.container = container;
162
- }
163
- /**
164
- * Positions menu relative to a DOM element
165
- * @param menuElement Menu element to position
166
- * @param targetElement Target element to position relative to
167
- * @param placement Placement preference
168
- */
169
- positionRelativeToElement(menuElement, targetElement, placement = 'top') {
170
- const targetRect = targetElement.getBoundingClientRect();
171
- const menuRect = menuElement.getBoundingClientRect();
172
- const containerRect = this.container.getBoundingClientRect();
173
- let top = 0;
174
- let left = 0;
175
- switch (placement) {
176
- case 'top':
177
- top = targetRect.top - menuRect.height - 5;
178
- left = targetRect.left + (targetRect.width - menuRect.width) / 2;
179
- break;
180
- case 'bottom':
181
- top = targetRect.bottom + 5;
182
- left = targetRect.left + (targetRect.width - menuRect.width) / 2;
183
- break;
184
- case 'left':
185
- top = targetRect.top + (targetRect.height - menuRect.height) / 2;
186
- left = targetRect.left - menuRect.width - 5;
187
- break;
188
- case 'right':
189
- top = targetRect.top + (targetRect.height - menuRect.height) / 2;
190
- left = targetRect.right + 5;
191
- break;
192
- default:
193
- // Default to 'top' placement
194
- top = targetRect.top - menuRect.height - 5;
195
- left = targetRect.left + (targetRect.width - menuRect.width) / 2;
196
- break;
197
- }
198
- // Adjust for container offset
199
- top -= containerRect.top;
200
- left -= containerRect.left;
201
- // Ensure menu stays within container bounds
202
- top = Math.max(0, Math.min(top, containerRect.height - menuRect.height));
203
- left = Math.max(0, Math.min(left, containerRect.width - menuRect.width));
204
- menuElement.style.position = 'absolute';
205
- menuElement.style.top = `${top}px`;
206
- menuElement.style.left = `${left}px`;
207
- }
208
- /**
209
- * Positions menu at specific coordinates
210
- * @param menuElement Menu element to position
211
- * @param x X coordinate
212
- * @param y Y coordinate
213
- */
214
- positionAtCoordinates(menuElement, x, y) {
215
- const containerRect = this.container.getBoundingClientRect();
216
- // Adjust coordinates relative to container
217
- const relativeX = x - containerRect.left;
218
- const relativeY = y - containerRect.top;
219
- menuElement.style.position = 'absolute';
220
- menuElement.style.left = `${relativeX}px`;
221
- menuElement.style.top = `${relativeY}px`;
222
- }
223
- }
224
- /**
225
- * Menu keyboard navigation handler
226
- */
227
- export class MenuKeyboardHandler {
228
- constructor(menuElement) {
229
- this.focusableElements = [];
230
- this.currentIndex = -1;
231
- this.menuElement = menuElement;
232
- this.updateFocusableElements();
233
- }
234
- /**
235
- * Updates the list of focusable elements
236
- */
237
- updateFocusableElements() {
238
- const focusableSelector = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
239
- this.focusableElements = Array.from(this.menuElement.querySelectorAll(focusableSelector));
240
- }
241
- /**
242
- * Handles keyboard events for menu navigation
243
- * @param event Keyboard event
244
- */
245
- handleKeyDown(event) {
246
- switch (event.key) {
247
- case 'ArrowDown':
248
- event.preventDefault();
249
- this.focusNext();
250
- return true;
251
- case 'ArrowUp':
252
- event.preventDefault();
253
- this.focusPrevious();
254
- return true;
255
- case 'Home':
256
- event.preventDefault();
257
- this.focusFirst();
258
- return true;
259
- case 'End':
260
- event.preventDefault();
261
- this.focusLast();
262
- return true;
263
- case 'Escape':
264
- event.preventDefault();
265
- this.blur();
266
- return true;
267
- default:
268
- return false;
269
- }
270
- }
271
- /**
272
- * Focuses the next focusable element
273
- */
274
- focusNext() {
275
- if (this.focusableElements.length === 0)
276
- return;
277
- this.currentIndex = (this.currentIndex + 1) % this.focusableElements.length;
278
- this.focusableElements[this.currentIndex].focus();
279
- }
280
- /**
281
- * Focuses the previous focusable element
282
- */
283
- focusPrevious() {
284
- if (this.focusableElements.length === 0)
285
- return;
286
- this.currentIndex =
287
- this.currentIndex <= 0 ? this.focusableElements.length - 1 : this.currentIndex - 1;
288
- this.focusableElements[this.currentIndex].focus();
289
- }
290
- /**
291
- * Focuses the first focusable element
292
- */
293
- focusFirst() {
294
- if (this.focusableElements.length === 0)
295
- return;
296
- this.currentIndex = 0;
297
- this.focusableElements[this.currentIndex].focus();
298
- }
299
- /**
300
- * Focuses the last focusable element
301
- */
302
- focusLast() {
303
- if (this.focusableElements.length === 0)
304
- return;
305
- this.currentIndex = this.focusableElements.length - 1;
306
- this.focusableElements[this.currentIndex].focus();
307
- }
308
- /**
309
- * Removes focus from menu
310
- */
311
- blur() {
312
- this.currentIndex = -1;
313
- if (document.activeElement instanceof HTMLElement) {
314
- document.activeElement.blur();
315
- }
316
- }
317
- }
@@ -1,25 +0,0 @@
1
- import { EditorState } from '@tiptap/pm/state';
2
- /**
3
- * Kiểm tra xem có selection nào trong tài liệu hay không
4
- * @param state EditorState của Tiptap/ProseMirror
5
- * @returns true nếu không có selection, false nếu có selection
6
- */
7
- export declare const isNoSelection: (state: EditorState) => boolean;
8
- /**
9
- * Gets the text content of the current selection
10
- * @param state EditorState của Tiptap/ProseMirror
11
- * @returns Selected text content
12
- */
13
- export declare const getSelectionText: (state: EditorState) => string;
14
- /**
15
- * Checks if selection spans multiple nodes
16
- * @param state EditorState của Tiptap/ProseMirror
17
- * @returns true if selection spans multiple nodes
18
- */
19
- export declare const isMultiNodeSelection: (state: EditorState) => boolean;
20
- /**
21
- * Gets the depth of the current selection
22
- * @param state EditorState của Tiptap/ProseMirror
23
- * @returns Selection depth
24
- */
25
- export declare const getSelectionDepth: (state: EditorState) => number;
@@ -1,57 +0,0 @@
1
- import { isNodeSelection, isTextSelection } from '@tiptap/core';
2
- /**
3
- * Kiểm tra xem có selection nào trong tài liệu hay không
4
- * @param state EditorState của Tiptap/ProseMirror
5
- * @returns true nếu không có selection, false nếu có selection
6
- */
7
- export const isNoSelection = (state) => {
8
- const { selection } = state;
9
- if (selection.empty)
10
- return true;
11
- // Kiểm tra trường hợp text selection không có nội dung
12
- if (isTextSelection(selection)) {
13
- const { from, to } = selection;
14
- if (from === to)
15
- return true;
16
- const selectedText = state.doc.textBetween(from, to);
17
- return selectedText.length === 0;
18
- }
19
- // Nếu là node selection, thì có selection
20
- if (isNodeSelection(selection))
21
- return false;
22
- return false;
23
- };
24
- /**
25
- * Gets the text content of the current selection
26
- * @param state EditorState của Tiptap/ProseMirror
27
- * @returns Selected text content
28
- */
29
- export const getSelectionText = (state) => {
30
- const { selection } = state;
31
- const { from, to } = selection;
32
- return state.doc.textBetween(from, to);
33
- };
34
- /**
35
- * Checks if selection spans multiple nodes
36
- * @param state EditorState của Tiptap/ProseMirror
37
- * @returns true if selection spans multiple nodes
38
- */
39
- export const isMultiNodeSelection = (state) => {
40
- const { selection } = state;
41
- if (selection.empty)
42
- return false;
43
- const { from, to } = selection;
44
- const $from = state.doc.resolve(from);
45
- const $to = state.doc.resolve(to);
46
- return $from.parent !== $to.parent;
47
- };
48
- /**
49
- * Gets the depth of the current selection
50
- * @param state EditorState của Tiptap/ProseMirror
51
- * @returns Selection depth
52
- */
53
- export const getSelectionDepth = (state) => {
54
- const { selection } = state;
55
- const { $from } = selection;
56
- return $from.depth;
57
- };
@@ -1 +0,0 @@
1
- export declare function clamp(val: number, min: number, max: number): number;
@@ -1,9 +0,0 @@
1
- export function clamp(val, min, max) {
2
- if (val < min) {
3
- return min;
4
- }
5
- if (val > max) {
6
- return max;
7
- }
8
- return val;
9
- }
@@ -1,49 +0,0 @@
1
- import { EditorView } from '@tiptap/pm/view';
2
- import { SmartTagHandler } from '../types';
3
- /**
4
- * Handles smart tag actions (create or edit)
5
- * @param event Mouse event from the action
6
- * @param view EditorView instance
7
- * @param smartTagHandler Smart tag handler callbacks
8
- */
9
- export declare const handleSmartTagAction: (event: React.MouseEvent, view: EditorView, smartTagHandler?: SmartTagHandler) => void;
10
- /**
11
- * Gets smart tag node at a specific position
12
- * @param view EditorView instance
13
- * @param pos Position to check
14
- * @returns Smart tag node or null
15
- */
16
- export declare const getSmartTagAtPosition: (view: EditorView, pos: number) => import("prosemirror-model").Node | null;
17
- /**
18
- * Gets all smart tags in the document
19
- * @param view EditorView instance
20
- * @returns Array of smart tag nodes with their positions
21
- */
22
- export declare const getAllSmartTags: (view: EditorView) => {
23
- node: any;
24
- pos: number;
25
- }[];
26
- /**
27
- * Finds smart tag by ID
28
- * @param view EditorView instance
29
- * @param id Smart tag ID to find
30
- * @returns Smart tag node and position or null
31
- */
32
- export declare const findSmartTagById: (view: EditorView, id: string) => null;
33
- /**
34
- * Checks if position is inside a smart tag
35
- * @param view EditorView instance
36
- * @param pos Position to check
37
- * @returns true if position is inside a smart tag
38
- */
39
- export declare const isPositionInSmartTag: (view: EditorView, pos: number) => boolean;
40
- /**
41
- * Gets smart tag content at cursor position
42
- * @param view EditorView instance
43
- * @returns Smart tag content or null
44
- */
45
- export declare const getSmartTagAtCursor: (view: EditorView) => {
46
- id: any;
47
- content: any;
48
- node: import("prosemirror-model").Node;
49
- } | null;
@@ -1,89 +0,0 @@
1
- /**
2
- * Handles smart tag actions (create or edit)
3
- * @param event Mouse event from the action
4
- * @param view EditorView instance
5
- * @param smartTagHandler Smart tag handler callbacks
6
- */
7
- export const handleSmartTagAction = (event, view, smartTagHandler) => {
8
- const { state } = view;
9
- const { from, to } = state.selection;
10
- const smartTagNode = state.doc.nodeAt(from);
11
- const smartTagId = smartTagNode?.attrs.id;
12
- if (smartTagId) {
13
- smartTagHandler?.edit?.(smartTagId, event);
14
- }
15
- else {
16
- const selectedText = state.doc.textBetween(from, to);
17
- if (selectedText) {
18
- smartTagHandler?.setNew?.({
19
- selectionText: selectedText,
20
- });
21
- }
22
- }
23
- };
24
- /**
25
- * Gets smart tag node at a specific position
26
- * @param view EditorView instance
27
- * @param pos Position to check
28
- * @returns Smart tag node or null
29
- */
30
- export const getSmartTagAtPosition = (view, pos) => {
31
- const node = view.state.doc.nodeAt(pos);
32
- if (node && node.type.name === 'smartTag') {
33
- return node;
34
- }
35
- return null;
36
- };
37
- /**
38
- * Gets all smart tags in the document
39
- * @param view EditorView instance
40
- * @returns Array of smart tag nodes with their positions
41
- */
42
- export const getAllSmartTags = (view) => {
43
- const smartTags = [];
44
- view.state.doc.descendants((node, pos) => {
45
- if (node.type.name === 'smartTag') {
46
- smartTags.push({ node, pos });
47
- }
48
- });
49
- return smartTags;
50
- };
51
- /**
52
- * Finds smart tag by ID
53
- * @param view EditorView instance
54
- * @param id Smart tag ID to find
55
- * @returns Smart tag node and position or null
56
- */
57
- export const findSmartTagById = (view, id) => {
58
- let result = null;
59
- view.state.doc.descendants((node, pos) => {
60
- if (node.type.name === 'smartTag' && node.attrs.id === id) {
61
- result = { node, pos };
62
- return false; // Stop traversal
63
- }
64
- });
65
- return result;
66
- };
67
- /**
68
- * Checks if position is inside a smart tag
69
- * @param view EditorView instance
70
- * @param pos Position to check
71
- * @returns true if position is inside a smart tag
72
- */
73
- export const isPositionInSmartTag = (view, pos) => getSmartTagAtPosition(view, pos) !== null;
74
- /**
75
- * Gets smart tag content at cursor position
76
- * @param view EditorView instance
77
- * @returns Smart tag content or null
78
- */
79
- export const getSmartTagAtCursor = (view) => {
80
- const { selection } = view.state;
81
- const node = getSmartTagAtPosition(view, selection.from);
82
- return node
83
- ? {
84
- id: node.attrs.id,
85
- content: node.attrs.content,
86
- node,
87
- }
88
- : null;
89
- };
@@ -1,78 +0,0 @@
1
- import { TextStyle } from '../types';
2
- /**
3
- * Extracts text style from element's computed style
4
- * @param style CSSStyleDeclaration from element
5
- * @returns Partial TextStyle object
6
- */
7
- export declare const textStyleFromElStyle: <T extends CSSStyleDeclaration>(style: T, defaultStyle: TextStyle) => Partial<TextStyle>;
8
- /**
9
- * Applies text style to HTML element
10
- * @param el HTML element to apply styles to
11
- * @param style TextStyle object
12
- */
13
- export declare const appendTextStyleToEl: (el: HTMLElement, style: Partial<TextStyle>) => void;
14
- /**
15
- * Converts a style object to a CSS string representation
16
- * @param styleObj The style object to convert
17
- * @returns The CSS string representation
18
- * @example
19
- * styleObjectToString({ color: 'red', fontSize: '16px' })
20
- * // returns "color: red; font-size: 16px"
21
- */
22
- export declare function styleObjectToString(styleObj: Record<string, unknown>): string;
23
- /**
24
- * Normalizes a font-family string by adding quotes when needed
25
- * @param fontFamily The font-family string to normalize
26
- * @returns The normalized font-family string
27
- * @description
28
- * - Preserves existing quoted names
29
- * - Doesn't quote generic families (e.g. sans-serif)
30
- * - Quotes names containing spaces or special characters
31
- * @example
32
- * normalizeFontFamily('Arial, Helvetica, sans-serif')
33
- * // returns 'Arial, Helvetica, sans-serif'
34
- *
35
- * normalizeFontFamily('Times New Roman, serif')
36
- * // returns '"Times New Roman", serif'
37
- */
38
- export declare function normalizeFontFamily(fontFamily: string): string;
39
- /**
40
- * Creates font-family string with fallback
41
- * @param fontFamily Primary font family
42
- * @param defaultFont Default fallback font
43
- * @returns Normalized font-family string with fallback
44
- */
45
- export declare const fontWithFallback: (fontFamily: string, defaultFont?: string) => string;
46
- /**
47
- * Checks if a color matches the link color
48
- * @param color Color to check
49
- * @returns true if color matches link color
50
- */
51
- export declare const isLinkColor: (color: string) => boolean;
52
- /**
53
- * Extracts CSS variables from a style object
54
- * @param styleObj Style object that may contain CSS variables
55
- * @returns Object with CSS variables and regular styles separated
56
- */
57
- export declare function extractCSSVariables(styleObj: Record<string, unknown>): {
58
- cssVariables: Record<string, unknown>;
59
- regularStyles: Record<string, unknown>;
60
- };
61
- /**
62
- * Merges multiple text styles with priority
63
- * @param styles Array of text styles to merge
64
- * @returns Merged text style
65
- */
66
- export declare function mergeTextStyles(...styles: Partial<TextStyle>[]): Partial<TextStyle>;
67
- /**
68
- * Validates if a text style is complete
69
- * @param style Text style to validate
70
- * @returns true if all required properties are present
71
- */
72
- export declare function isCompleteTextStyle(style: Partial<TextStyle>): style is TextStyle;
73
- /**
74
- * Converts text style to CSS style object
75
- * @param textStyle Text style object
76
- * @returns CSS style object
77
- */
78
- export declare function textStyleToCSSStyle(textStyle: Partial<TextStyle>): React.CSSProperties;