@onereach/ui-components 4.10.0 → 4.11.0-beta.2916.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (844) hide show
  1. package/dist/bundled/{v3/_baseAssignValue-0c6c3bcc.js → v2/_baseAssignValue-008b033a.js} +1 -1
  2. package/dist/bundled/v2/{_baseIsEqual-82d7a339.js → _baseIsEqual-9edac039.js} +5 -5
  3. package/dist/bundled/v2/{_commonjsHelpers-48a9cab9.js → _commonjsHelpers-6584e42b.js} +5 -1
  4. package/dist/bundled/v2/components/OrAvatar/OrAvatar.js +6 -6
  5. package/dist/bundled/v2/components/OrAvatar/index.js +6 -6
  6. package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
  7. package/dist/bundled/v2/components/OrBottomSheetV3/index.js +2 -2
  8. package/dist/bundled/v2/components/OrButtonV2/OrButton.js +6 -6
  9. package/dist/bundled/v2/components/OrButtonV2/index.js +6 -6
  10. package/dist/bundled/v2/components/OrButtonV3/OrButton.js +2 -2
  11. package/dist/bundled/v2/components/OrButtonV3/index.js +2 -2
  12. package/dist/bundled/v2/components/OrCardCollection/OrCardCollection.js +7 -7
  13. package/dist/bundled/v2/components/OrCardCollection/index.js +7 -7
  14. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +2 -2
  15. package/dist/bundled/v2/components/OrCardCollectionV3/index.js +2 -2
  16. package/dist/bundled/v2/components/OrCarousel/OrCarousel.js +6 -6
  17. package/dist/bundled/v2/components/OrCarousel/index.js +6 -6
  18. package/dist/bundled/v2/components/OrCheckbox/OrCheckbox.js +6 -6
  19. package/dist/bundled/v2/components/OrCheckbox/index.js +6 -6
  20. package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
  21. package/dist/bundled/v2/components/OrCheckboxGroupV3/index.js +2 -2
  22. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
  23. package/dist/bundled/v2/components/OrCheckboxTreeV3/index.js +2 -2
  24. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +2 -2
  25. package/dist/bundled/v2/components/OrCheckboxV3/index.js +2 -2
  26. package/dist/bundled/v2/components/OrChip/OrChip.js +6 -6
  27. package/dist/bundled/v2/components/OrChip/index.js +6 -6
  28. package/dist/bundled/v2/components/OrChips/OrChips.js +6 -6
  29. package/dist/bundled/v2/components/OrChips/index.js +6 -6
  30. package/dist/bundled/v2/components/OrCode/OrCode.js +14 -3800
  31. package/dist/bundled/v2/components/OrCode/index.js +14 -10
  32. package/dist/bundled/v2/components/OrCode/lang.js +4091 -3
  33. package/dist/bundled/v2/components/OrCode/theme.js +2 -1
  34. package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +6 -6
  35. package/dist/bundled/v2/components/OrCollapse/index.js +6 -6
  36. package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +8 -8
  37. package/dist/bundled/v2/components/OrColorPicker/index.js +8 -8
  38. package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +10 -9
  39. package/dist/bundled/v2/components/OrConfirm/index.js +10 -9
  40. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +3 -3
  41. package/dist/bundled/v2/components/OrConfirmV3/index.js +3 -3
  42. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +4 -4
  43. package/dist/bundled/v2/components/OrDatePickerV3/index.js +4 -4
  44. package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +10 -10
  45. package/dist/bundled/v2/components/OrDateTimePicker/index.js +10 -10
  46. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +5 -5
  47. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +5 -5
  48. package/dist/bundled/v2/components/OrExpansionPanelV3/OrExpansionPanel.js +1 -1
  49. package/dist/bundled/v2/components/OrExpansionPanelV3/index.js +1 -1
  50. package/dist/bundled/v2/components/OrFloating/OrFloating.js +6 -6
  51. package/dist/bundled/v2/components/OrFloating/index.js +6 -6
  52. package/dist/bundled/v2/components/OrIcon/OrIcon.js +6 -6
  53. package/dist/bundled/v2/components/OrIcon/index.js +6 -6
  54. package/dist/bundled/v2/components/OrIconButtonV2/OrIconButton.js +6 -6
  55. package/dist/bundled/v2/components/OrIconButtonV2/index.js +6 -6
  56. package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +2 -2
  57. package/dist/bundled/v2/components/OrIconButtonV3/index.js +2 -2
  58. package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +2 -2
  59. package/dist/bundled/v2/components/OrInlineInputV3/index.js +2 -2
  60. package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +8 -8
  61. package/dist/bundled/v2/components/OrInlineTextEdit/index.js +8 -8
  62. package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
  63. package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +2 -2
  64. package/dist/bundled/v2/components/OrInput/OrInput.js +6 -6
  65. package/dist/bundled/v2/components/OrInput/index.js +6 -6
  66. package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -2
  67. package/dist/bundled/v2/components/OrInputV3/index.js +2 -2
  68. package/dist/bundled/v2/components/OrList/OrList.js +10 -10
  69. package/dist/bundled/v2/components/OrList/index.js +10 -10
  70. package/dist/bundled/v2/components/OrListOfInputs/OrListOfInputs.js +10 -10
  71. package/dist/bundled/v2/components/OrListOfInputs/index.js +10 -10
  72. package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +2 -2
  73. package/dist/bundled/v2/components/OrLoaderV3/index.js +2 -2
  74. package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +2 -2
  75. package/dist/bundled/v2/components/OrMenuV3/index.js +2 -2
  76. package/dist/bundled/v2/components/OrModal/OrModal.js +10 -1353
  77. package/dist/bundled/v2/components/OrModal/index.js +9 -8
  78. package/dist/bundled/v2/components/OrModalV3/OrModal.js +4 -4
  79. package/dist/bundled/v2/components/OrModalV3/index.js +2 -2
  80. package/dist/bundled/v2/components/OrNotification/OrNotification.js +6 -6
  81. package/dist/bundled/v2/components/OrNotification/index.js +6 -6
  82. package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +2 -2
  83. package/dist/bundled/v2/components/OrNotificationV3/index.js +2 -2
  84. package/dist/bundled/v2/components/OrNumberInput/OrNumberInput.js +6 -6
  85. package/dist/bundled/v2/components/OrNumberInput/index.js +6 -6
  86. package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +8 -8
  87. package/dist/bundled/v2/components/OrOverflowMenu/index.js +8 -8
  88. package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +2 -2
  89. package/dist/bundled/v2/components/OrOverlayV3/index.js +2 -2
  90. package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +2 -2
  91. package/dist/bundled/v2/components/OrPaginationV3/index.js +2 -2
  92. package/dist/bundled/v2/components/OrPassword/OrPassword.js +8 -8
  93. package/dist/bundled/v2/components/OrPassword/index.js +8 -8
  94. package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +2 -2
  95. package/dist/bundled/v2/components/OrPopoverV3/index.js +2 -2
  96. package/dist/bundled/v2/components/OrProgress/OrProgress.js +6 -6
  97. package/dist/bundled/v2/components/OrProgress/index.js +6 -6
  98. package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +8 -8
  99. package/dist/bundled/v2/components/OrProgressV3/index.js +8 -8
  100. package/dist/bundled/v2/components/OrRadio/OrRadio.js +8 -8
  101. package/dist/bundled/v2/components/OrRadio/index.js +8 -8
  102. package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +2 -2
  103. package/dist/bundled/v2/components/OrRadioGroupV3/index.js +2 -2
  104. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2226 -0
  105. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +194 -0
  106. package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +2 -0
  107. package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +76 -0
  108. package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +5 -0
  109. package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +7 -0
  110. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +6 -0
  111. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +38 -0
  112. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
  113. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +50 -0
  114. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
  115. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +188 -0
  116. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
  117. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +9 -0
  118. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +39 -0
  119. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +212 -0
  120. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
  121. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
  122. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
  123. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +6 -0
  124. package/dist/bundled/v2/components/OrSearch/OrSearch.js +7 -7
  125. package/dist/bundled/v2/components/OrSearch/index.js +7 -7
  126. package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +2 -2
  127. package/dist/bundled/v2/components/OrSearchV3/index.js +2 -2
  128. package/dist/bundled/v2/components/OrSelect/OrSelect.js +11 -11
  129. package/dist/bundled/v2/components/OrSelect/index.js +11 -11
  130. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +2 -2
  131. package/dist/bundled/v2/components/OrSelectV3/index.js +2 -2
  132. package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +2 -2
  133. package/dist/bundled/v2/components/OrSidebar/index.js +2 -2
  134. package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +2 -2
  135. package/dist/bundled/v2/components/OrSidebarV3/index.js +2 -2
  136. package/dist/bundled/v2/components/OrSkeleton/index.js +6 -6
  137. package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +6 -6
  138. package/dist/bundled/v2/components/OrSkeletonText/index.js +6 -6
  139. package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +6 -6
  140. package/dist/bundled/v2/components/OrSkeletonTextV3/index.js +6 -6
  141. package/dist/bundled/v2/components/OrSkeletonV3/index.js +6 -6
  142. package/dist/bundled/v2/components/OrSlider/OrSlider.js +8 -8
  143. package/dist/bundled/v2/components/OrSlider/index.js +8 -8
  144. package/dist/bundled/v2/components/OrStepper/OrStepper.js +6 -6
  145. package/dist/bundled/v2/components/OrStepper/index.js +6 -6
  146. package/dist/bundled/v2/components/OrSwitchV3/OrSwitch.js +2 -2
  147. package/dist/bundled/v2/components/OrSwitchV3/index.js +2 -2
  148. package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +2 -2
  149. package/dist/bundled/v2/components/OrTabsV3/index.js +2 -2
  150. package/dist/bundled/v2/components/OrTag/OrTag.js +6 -6
  151. package/dist/bundled/v2/components/OrTag/index.js +6 -6
  152. package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +2 -2
  153. package/dist/bundled/v2/components/OrTagInputV3/index.js +2 -2
  154. package/dist/bundled/v2/components/OrTagV3/OrTag.js +2 -2
  155. package/dist/bundled/v2/components/OrTagV3/index.js +2 -2
  156. package/dist/bundled/v2/components/OrTagsV3/OrTags.js +2 -2
  157. package/dist/bundled/v2/components/OrTagsV3/index.js +2 -2
  158. package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
  159. package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +6 -6
  160. package/dist/bundled/v2/components/OrTextarea/OrTextarea.vue.d.ts +2 -2
  161. package/dist/bundled/v2/components/OrTextarea/index.js +6 -6
  162. package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +2 -2
  163. package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +6 -6
  164. package/dist/bundled/v2/components/OrTextbox/OrTextbox.vue.d.ts +2 -2
  165. package/dist/bundled/v2/components/OrTextbox/index.js +6 -6
  166. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +4 -4
  167. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +2 -2
  168. package/dist/bundled/v2/components/OrTimePickerV3/index.js +4 -4
  169. package/dist/bundled/v2/components/OrToast/OrToast.js +9 -9
  170. package/dist/bundled/v2/components/OrToast/OrToast.vue.d.ts +2 -2
  171. package/dist/bundled/v2/components/OrToast/Timer.js +1 -1
  172. package/dist/bundled/v2/components/OrToast/composable/index.js +2 -2
  173. package/dist/bundled/v2/components/OrToast/composable/useToast.js +2 -2
  174. package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -2
  175. package/dist/bundled/v2/components/OrToast/index.js +11 -11
  176. package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +11 -11
  177. package/dist/bundled/v2/components/OrToastContainer/index.js +11 -11
  178. package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +2 -2
  179. package/dist/bundled/v2/components/OrToastContainerV3/index.js +2 -2
  180. package/dist/bundled/v2/components/OrToastV3/OrToast.js +2 -2
  181. package/dist/bundled/v2/components/OrToastV3/OrToast.vue.d.ts +2 -2
  182. package/dist/bundled/v2/components/OrToastV3/Timer.js +1 -1
  183. package/dist/bundled/v2/components/OrToastV3/composable/index.js +2 -2
  184. package/dist/bundled/v2/components/OrToastV3/composable/useToast.js +2 -2
  185. package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -2
  186. package/dist/bundled/v2/components/OrToastV3/index.js +2 -2
  187. package/dist/bundled/v2/components/OrTooltip/OrTooltip.js +6 -6
  188. package/dist/bundled/v2/components/OrTooltip/OrTooltip.vue.d.ts +2 -2
  189. package/dist/bundled/v2/components/OrTooltip/index.js +6 -6
  190. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +2 -2
  191. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +2 -2
  192. package/dist/bundled/v2/components/OrTooltipV3/index.js +2 -2
  193. package/dist/bundled/v2/components/index.d.ts +1 -0
  194. package/dist/bundled/v2/components/index.js +39 -22
  195. package/dist/bundled/{v3/dom-571739a2.js → v2/dom-c98dce89.js} +2 -2
  196. package/dist/bundled/v2/{eq-fa566495.js → eq-037e6fce.js} +1 -1
  197. package/dist/bundled/{v3/get-73ac2f59.js → v2/get-b30afe93.js} +3 -3
  198. package/dist/bundled/v2/hooks/index.js +3 -3
  199. package/dist/bundled/v2/hooks/useOverflow.js +2 -2
  200. package/dist/bundled/v2/hooks/usePopoverState.js +1 -1
  201. package/dist/bundled/v2/hooks/useResponsive/index.js +2 -2
  202. package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +2 -2
  203. package/dist/bundled/v2/hooks/useTheme.js +1 -1
  204. package/dist/bundled/v2/{index-ec92055d.js → index-06f6bbe4.js} +1 -1
  205. package/dist/bundled/v2/index-536f78ef.js +9714 -0
  206. package/dist/bundled/{v3/OrCode.vue_vue_type_script_lang-46846a36.js → v2/index-71dbceb9.js} +16 -237
  207. package/dist/bundled/v2/index-85c2efe8.js +7122 -0
  208. package/dist/bundled/v2/{index-cf2c3c27.js → index-a8488e2a.js} +3 -115
  209. package/dist/bundled/v2/{index-c92e2839.js → index-af414338.js} +2 -2
  210. package/dist/bundled/v2/{lang-0fb8f78b.js → index-c59372d3.js} +118 -4028
  211. package/dist/bundled/v2/{index-15e8c1f3.js → index-dac0fb7c.js} +1 -1
  212. package/dist/bundled/v2/index.es-3f39f316.js +115 -0
  213. package/dist/bundled/v2/index.js +39 -25
  214. package/dist/bundled/v2/{isArrayLike-acf249e3.js → isArrayLike-61275a05.js} +1 -1
  215. package/dist/bundled/v2/{isEqual-881b7bb5.js → isEqual-8bbb1110.js} +1 -1
  216. package/dist/bundled/{v3/isObject-3a5b854d.js → v2/isObject-08fab135.js} +1 -1
  217. package/dist/bundled/v2/markdown-161bd1ee.js +15365 -0
  218. package/dist/bundled/{v3/range-c87289f7.js → v2/range-637f1361.js} +4 -4
  219. package/dist/bundled/{v3/round-136c7e43.js → v2/round-4a894f03.js} +4 -4
  220. package/dist/bundled/v2/{toFinite-021b0c50.js → toFinite-675db18a.js} +1 -1
  221. package/dist/bundled/v2/{toInteger-db8a475d.js → toInteger-27595771.js} +1 -1
  222. package/dist/bundled/{v3/toString-47fa81b4.js → v2/toString-a72d5149.js} +1 -1
  223. package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-153819d3.js → v2/useFocusTrap-c1384da1.js} +4 -100
  224. package/dist/bundled/v2/utils/functions/dom.js +6 -6
  225. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-552fce16.js → OrAvatar.vue_vue_type_script_lang-36439ec1.js} +1 -1
  226. package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-214a0eea.js → OrBottomSheet.vue_vue_type_script_lang-b6fc4564.js} +2 -2
  227. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-e8969bd3.js → OrButton.vue_vue_type_script_lang-d31ada75.js} +1 -1
  228. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-5b8437d7.js → OrButton.vue_vue_type_script_lang-fc3b3109.js} +1 -1
  229. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-eb86b548.js → OrCardCollection.vue_vue_type_script_lang-0b7357dc.js} +3 -3
  230. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3e7aa91a.js → OrCardCollection.vue_vue_type_script_lang-a0086ac0.js} +4 -4
  231. package/dist/bundled/v3/{OrCarousel.vue_vue_type_script_lang-75c50882.js → OrCarousel.vue_vue_type_script_lang-cfd11d11.js} +1 -1
  232. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-616a0cce.js → OrCheckbox.vue_vue_type_script_lang-0fcd7886.js} +1 -1
  233. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-dedfe767.js → OrCheckbox.vue_vue_type_script_lang-579d41cf.js} +1 -1
  234. package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-6946b630.js → OrCheckboxGroup.vue_vue_type_script_lang-bf90c3cc.js} +2 -2
  235. package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-e2647349.js → OrCheckboxTree.vue_vue_type_script_lang-96fce5bf.js} +4 -4
  236. package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-d0c62419.js → OrChip.vue_vue_type_script_lang-fcda103b.js} +1 -1
  237. package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-d7a38038.js → OrChips.vue_vue_type_script_lang-8d26707d.js} +1 -1
  238. package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-918b7ac0.js +237 -0
  239. package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-e2dcce92.js → OrCollapse.vue_vue_type_script_lang-00da895c.js} +1 -1
  240. package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-2e1845d8.js → OrColorPicker.vue_vue_type_script_lang-476f49f1.js} +3 -3
  241. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-93458f1f.js → OrConfirm.vue_vue_type_script_lang-2241e7aa.js} +6 -6
  242. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-51f9e144.js → OrConfirm.vue_vue_type_script_lang-b7cc200c.js} +6 -6
  243. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-0e648149.js → OrDatePicker.vue_vue_type_script_lang-0af2ea49.js} +4 -4
  244. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-69d65518.js → OrDateTimePicker.vue_vue_type_script_lang-5a2e9026.js} +5 -5
  245. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-882ae7ce.js → OrDateTimePicker.vue_vue_type_script_lang-77880140.js} +7 -7
  246. package/dist/bundled/v3/{OrDateTimePickerMonthSelect-8857f024.js → OrDateTimePickerMonthSelect-21ea52e0.js} +3 -3
  247. package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-ec90761f.js → OrDateTimePickerPopoverHeader-987f20e0.js} +1 -1
  248. package/dist/bundled/v3/{OrDateTimePickerTimeSelect-683ab20d.js → OrDateTimePickerTimeSelect-8155d62c.js} +1 -1
  249. package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-d762f4b0.js → OrFloating.vue_vue_type_script_lang-8bc114e8.js} +1 -1
  250. package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-b77bb268.js → OrIcon.vue_vue_type_script_lang-52900ff4.js} +1 -1
  251. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-e078ed4c.js → OrIconButton.vue_vue_type_script_lang-416cbbd3.js} +2 -2
  252. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-c3a78c23.js → OrIconButton.vue_vue_type_script_lang-bfc73aee.js} +1 -1
  253. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-820cc7e9.js → OrInlineInput.vue_vue_type_script_lang-1c378a1e.js} +1 -1
  254. package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-588178e5.js → OrInlineTextEdit.vue_vue_type_script_lang-7955bdac.js} +4 -4
  255. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-8e639991.js → OrInlineTextarea.vue_vue_type_script_lang-c069813e.js} +1 -1
  256. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-66363c62.js → OrInput.vue_vue_type_script_lang-634fe6f7.js} +2 -2
  257. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-1be980cf.js → OrInput.vue_vue_type_script_lang-f887102b.js} +2 -2
  258. package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-c6f46a0e.js → OrList.vue_vue_type_script_lang-cb8806b2.js} +11 -11
  259. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-04af76e1.js → OrListOfInputs.vue_vue_type_script_lang-14a99046.js} +4 -4
  260. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-f076f6b3.js → OrLoader.vue_vue_type_script_lang-1e4c32ee.js} +1 -1
  261. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-8fa5ef6c.js → OrMenu.vue_vue_type_script_lang-1311d4b9.js} +1 -1
  262. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-83469d51.js → OrModal.vue_vue_type_script_lang-9be48616.js} +2 -2
  263. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-b716f9f7.js +101 -0
  264. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-86084f5e.js → OrNotification.vue_vue_type_script_lang-564035a6.js} +2 -2
  265. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-242a7186.js → OrNotification.vue_vue_type_script_lang-ad495e91.js} +1 -1
  266. package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-9d6763fa.js → OrNumberInput.vue_vue_type_script_lang-e904d247.js} +1 -1
  267. package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-ba3b94e2.js → OrOverflowMenu.vue_vue_type_script_lang-396e26c0.js} +5 -5
  268. package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-0fdf19ba.js → OrOverlay.vue_vue_type_script_lang-4a4c532b.js} +1 -1
  269. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-193cf67a.js → OrPagination.vue_vue_type_script_lang-d502da20.js} +2 -2
  270. package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-fc9e7dc8.js → OrPassword.vue_vue_type_script_lang-ea54f428.js} +3 -3
  271. package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-506ae7bb.js → OrPopover.vue_vue_type_script_lang-6b004f70.js} +2 -2
  272. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-6a2fef77.js → OrProgress.vue_vue_type_script_lang-9c13f877.js} +2 -2
  273. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-89224310.js → OrProgress.vue_vue_type_script_lang-d4cf52da.js} +1 -1
  274. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-0c087270.js → OrRadio.vue_vue_type_script_lang-5e642c5f.js} +2 -2
  275. package/dist/bundled/v3/{OrRadioGroup.vue_vue_type_script_lang-a82cb83b.js → OrRadioGroup.vue_vue_type_script_lang-4b4d1420.js} +1 -1
  276. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-e4425812.js +1910 -0
  277. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-933e71b8.js → OrSearch.vue_vue_type_script_lang-3e7729fe.js} +3 -3
  278. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-18dc2df8.js → OrSearch.vue_vue_type_script_lang-f09e4bef.js} +2 -2
  279. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-72c1db17.js → OrSelect.vue_vue_type_script_lang-1a392871.js} +5 -5
  280. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-45cf8f8c.js → OrSelect.vue_vue_type_script_lang-5bdf06cb.js} +11 -11
  281. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-56608f4a.js → OrSidebar.vue_vue_type_script_lang-2681fb99.js} +1 -1
  282. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-3d9676ea.js → OrSidebar.vue_vue_type_script_lang-fe974154.js} +2 -2
  283. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-e068a58a.js → OrSkeletonText.vue_vue_type_script_lang-36cfe2f4.js} +1 -1
  284. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-6703fb3a.js → OrSkeletonText.vue_vue_type_script_lang-5cf21df0.js} +1 -1
  285. package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-2a698707.js → OrSlider.vue_vue_type_script_lang-d933ca0c.js} +3 -3
  286. package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-999e65f6.js → OrStepper.vue_vue_type_script_lang-d4259c67.js} +1 -1
  287. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-5a6d0202.js → OrSwitch.vue_vue_type_script_lang-cde58199.js} +1 -1
  288. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-2d08458d.js → OrTabs.vue_vue_type_script_lang-c3638bf9.js} +2 -2
  289. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-42a69c16.js → OrTag.vue_vue_type_script_lang-2e2393a5.js} +1 -1
  290. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-c7065625.js → OrTag.vue_vue_type_script_lang-4b730bd2.js} +1 -1
  291. package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-60f6d6de.js → OrTagInput.vue_vue_type_script_lang-89625778.js} +2 -2
  292. package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-45bbc68e.js → OrTags.vue_vue_type_script_lang-593636fe.js} +3 -3
  293. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-af7cab22.js → OrTextarea.vue_vue_type_script_lang-1585e4e5.js} +2 -2
  294. package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-80e42d58.js → OrTextbox.vue_vue_type_script_lang-02b1c369.js} +3 -3
  295. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-a300ab1b.js → OrTimePicker.vue_vue_type_script_lang-e7ccca90.js} +4 -4
  296. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-c47d63be.js → OrToastContainer.vue_vue_type_script_lang-364ee300.js} +1 -1
  297. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-d1a074fe.js → OrToastContainer.vue_vue_type_script_lang-e19162ff.js} +1 -1
  298. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-3bf79d56.js → OrTooltip.vue_vue_type_script_lang-05d89296.js} +1 -1
  299. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-227592d8.js → OrTooltip.vue_vue_type_script_lang-637482e6.js} +1 -1
  300. package/dist/bundled/{v2/_baseAssignValue-0c6c3bcc.js → v3/_baseAssignValue-008b033a.js} +1 -1
  301. package/dist/bundled/v3/{_baseIsEqual-82d7a339.js → _baseIsEqual-9edac039.js} +5 -5
  302. package/dist/bundled/v3/{_commonjsHelpers-48a9cab9.js → _commonjsHelpers-6584e42b.js} +5 -1
  303. package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +10 -10
  304. package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +26 -11
  305. package/dist/bundled/v3/components/OrAvatar/index.js +9 -9
  306. package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +24 -8
  307. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +5 -5
  308. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +33 -17
  309. package/dist/bundled/v3/components/OrBottomSheetV3/index.js +4 -4
  310. package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +51 -16
  311. package/dist/bundled/v3/components/OrButtonV2/OrButton.js +10 -10
  312. package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +57 -20
  313. package/dist/bundled/v3/components/OrButtonV2/index.js +11 -11
  314. package/dist/bundled/v3/components/OrButtonV3/OrButton.js +5 -5
  315. package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +35 -15
  316. package/dist/bundled/v3/components/OrButtonV3/index.js +4 -4
  317. package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +15 -7
  318. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +16 -16
  319. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +47 -21
  320. package/dist/bundled/v3/components/OrCardCollection/index.js +15 -15
  321. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +14 -14
  322. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +70 -22
  323. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +13 -13
  324. package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +7 -4
  325. package/dist/bundled/v3/components/OrCarousel/OrCarousel.js +10 -10
  326. package/dist/bundled/v3/components/OrCarousel/OrCarousel.vue.d.ts +676 -126
  327. package/dist/bundled/v3/components/OrCarousel/index.js +9 -9
  328. package/dist/bundled/v3/components/OrCarouselItem/OrCarouselItem.vue.d.ts +1 -1
  329. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +10 -10
  330. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +35 -15
  331. package/dist/bundled/v3/components/OrCheckbox/index.js +9 -9
  332. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +8 -8
  333. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +24 -6
  334. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +7 -7
  335. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +7 -7
  336. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +43 -17
  337. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +6 -6
  338. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +4 -4
  339. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +53 -23
  340. package/dist/bundled/v3/components/OrCheckboxV3/index.js +3 -3
  341. package/dist/bundled/v3/components/OrChip/OrChip.js +10 -10
  342. package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +25 -9
  343. package/dist/bundled/v3/components/OrChip/index.js +9 -9
  344. package/dist/bundled/v3/components/OrChips/OrChips.js +11 -11
  345. package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +51 -24
  346. package/dist/bundled/v3/components/OrChips/index.js +10 -10
  347. package/dist/bundled/v3/components/OrCode/OrCode.js +22 -18
  348. package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +69 -24
  349. package/dist/bundled/v3/components/OrCode/index.js +20 -16
  350. package/dist/bundled/v3/components/OrCode/lang.js +4091 -3
  351. package/dist/bundled/v3/components/OrCode/theme.js +2 -1
  352. package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +8 -8
  353. package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +39 -17
  354. package/dist/bundled/v3/components/OrCollapse/index.js +7 -7
  355. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +11 -11
  356. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +31 -13
  357. package/dist/bundled/v3/components/OrColorPicker/index.js +10 -10
  358. package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +30 -8
  359. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +20 -19
  360. package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +84 -23
  361. package/dist/bundled/v3/components/OrConfirm/index.js +19 -18
  362. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +13 -13
  363. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +91 -30
  364. package/dist/bundled/v3/components/OrConfirmV3/index.js +12 -12
  365. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +14 -14
  366. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +83 -26
  367. package/dist/bundled/v3/components/OrDatePickerV3/index.js +13 -13
  368. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +17 -17
  369. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +177 -68
  370. package/dist/bundled/v3/components/OrDateTimePicker/index.js +16 -16
  371. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +15 -15
  372. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +109 -32
  373. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +14 -14
  374. package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +28 -11
  375. package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +8 -4
  376. package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +7 -4
  377. package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +18 -9
  378. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +3 -3
  379. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +39 -16
  380. package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +2 -2
  381. package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +20 -8
  382. package/dist/bundled/v3/components/OrFloating/OrFloating.js +8 -8
  383. package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +46 -15
  384. package/dist/bundled/v3/components/OrFloating/index.js +7 -7
  385. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +30 -10
  386. package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +8 -4
  387. package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +18 -9
  388. package/dist/bundled/v3/components/OrIcon/OrIcon.js +9 -9
  389. package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +44 -16
  390. package/dist/bundled/v3/components/OrIcon/index.js +8 -8
  391. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +11 -11
  392. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +43 -13
  393. package/dist/bundled/v3/components/OrIconButtonV2/index.js +10 -10
  394. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +8 -8
  395. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +52 -16
  396. package/dist/bundled/v3/components/OrIconButtonV3/index.js +7 -7
  397. package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +18 -7
  398. package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +16 -7
  399. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +9 -9
  400. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +83 -39
  401. package/dist/bundled/v3/components/OrInlineInputV3/index.js +8 -8
  402. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +15 -15
  403. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +95 -43
  404. package/dist/bundled/v3/components/OrInlineTextEdit/index.js +14 -14
  405. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +9 -9
  406. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +79 -39
  407. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +8 -8
  408. package/dist/bundled/v3/components/OrInput/OrInput.js +9 -9
  409. package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +87 -36
  410. package/dist/bundled/v3/components/OrInput/index.js +8 -8
  411. package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +22 -7
  412. package/dist/bundled/v3/components/OrInputV3/OrInput.js +10 -10
  413. package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +85 -34
  414. package/dist/bundled/v3/components/OrInputV3/index.js +9 -9
  415. package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +20 -9
  416. package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +24 -9
  417. package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +24 -7
  418. package/dist/bundled/v3/components/OrList/OrList.js +17 -17
  419. package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +47 -21
  420. package/dist/bundled/v3/components/OrList/index.js +16 -16
  421. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +20 -20
  422. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +27 -11
  423. package/dist/bundled/v3/components/OrListOfInputs/index.js +19 -19
  424. package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +26 -10
  425. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +4 -4
  426. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +34 -13
  427. package/dist/bundled/v3/components/OrLoaderV3/index.js +3 -3
  428. package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +34 -13
  429. package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +7 -7
  430. package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +31 -15
  431. package/dist/bundled/v3/components/OrMenuV3/index.js +6 -6
  432. package/dist/bundled/v3/components/OrModal/OrModal.js +15 -14
  433. package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +38 -14
  434. package/dist/bundled/v3/components/OrModal/index.js +14 -13
  435. package/dist/bundled/v3/components/OrModalV3/OrModal.js +9 -9
  436. package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +25 -13
  437. package/dist/bundled/v3/components/OrModalV3/index.js +8 -8
  438. package/dist/bundled/v3/components/OrNotification/OrNotification.js +12 -12
  439. package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +27 -9
  440. package/dist/bundled/v3/components/OrNotification/index.js +11 -11
  441. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +9 -9
  442. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +20 -9
  443. package/dist/bundled/v3/components/OrNotificationV3/index.js +8 -8
  444. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +10 -10
  445. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +70 -24
  446. package/dist/bundled/v3/components/OrNumberInput/index.js +9 -9
  447. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +15 -15
  448. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +31 -13
  449. package/dist/bundled/v3/components/OrOverflowMenu/index.js +14 -14
  450. package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +16 -6
  451. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +4 -4
  452. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +14 -7
  453. package/dist/bundled/v3/components/OrOverlayV3/index.js +3 -3
  454. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +10 -10
  455. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +75 -27
  456. package/dist/bundled/v3/components/OrPaginationV3/index.js +9 -9
  457. package/dist/bundled/v3/components/OrPassword/OrPassword.js +16 -16
  458. package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +63 -22
  459. package/dist/bundled/v3/components/OrPassword/index.js +15 -15
  460. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +6 -6
  461. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +74 -24
  462. package/dist/bundled/v3/components/OrPopoverV3/index.js +5 -5
  463. package/dist/bundled/v3/components/OrProgress/OrProgress.js +8 -8
  464. package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +56 -20
  465. package/dist/bundled/v3/components/OrProgress/index.js +7 -7
  466. package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +10 -10
  467. package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +62 -25
  468. package/dist/bundled/v3/components/OrProgressV3/index.js +9 -9
  469. package/dist/bundled/v3/components/OrRadio/OrRadio.js +10 -10
  470. package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +35 -13
  471. package/dist/bundled/v3/components/OrRadio/index.js +9 -9
  472. package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +26 -9
  473. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +4 -4
  474. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +32 -6
  475. package/dist/bundled/v3/components/OrRadioGroupV3/index.js +3 -3
  476. package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +49 -21
  477. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +291 -0
  478. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +194 -0
  479. package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +2 -0
  480. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +92 -0
  481. package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +5 -0
  482. package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +7 -0
  483. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +6 -0
  484. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +38 -0
  485. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
  486. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +50 -0
  487. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
  488. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +188 -0
  489. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
  490. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +9 -0
  491. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +39 -0
  492. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +212 -0
  493. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
  494. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
  495. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
  496. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +6 -0
  497. package/dist/bundled/v3/components/OrSearch/OrSearch.js +15 -15
  498. package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +65 -23
  499. package/dist/bundled/v3/components/OrSearch/index.js +14 -14
  500. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +11 -11
  501. package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +41 -17
  502. package/dist/bundled/v3/components/OrSearchV3/index.js +10 -10
  503. package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +25 -9
  504. package/dist/bundled/v3/components/OrSelect/OrSelect.js +17 -17
  505. package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +77 -28
  506. package/dist/bundled/v3/components/OrSelect/index.js +16 -16
  507. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +14 -14
  508. package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +117 -38
  509. package/dist/bundled/v3/components/OrSelectV3/index.js +13 -13
  510. package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +4 -4
  511. package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +33 -14
  512. package/dist/bundled/v3/components/OrSidebar/index.js +3 -3
  513. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +9 -9
  514. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +63 -28
  515. package/dist/bundled/v3/components/OrSidebarV3/index.js +8 -8
  516. package/dist/bundled/v3/components/OrSkeleton/index.js +7 -7
  517. package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +20 -9
  518. package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +28 -13
  519. package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +22 -9
  520. package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +26 -11
  521. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +8 -8
  522. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +26 -10
  523. package/dist/bundled/v3/components/OrSkeletonText/index.js +7 -7
  524. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +8 -8
  525. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +40 -16
  526. package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +7 -7
  527. package/dist/bundled/v3/components/OrSkeletonV3/index.js +7 -7
  528. package/dist/bundled/v3/components/OrSlider/OrSlider.js +12 -12
  529. package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +91 -35
  530. package/dist/bundled/v3/components/OrSlider/index.js +11 -11
  531. package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.vue.d.ts +25 -13
  532. package/dist/bundled/v3/components/OrStepper/OrStepper.js +11 -11
  533. package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +43 -16
  534. package/dist/bundled/v3/components/OrStepper/index.js +10 -10
  535. package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +33 -12
  536. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +5 -5
  537. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +53 -22
  538. package/dist/bundled/v3/components/OrSwitchV3/index.js +4 -4
  539. package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +22 -9
  540. package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +29 -13
  541. package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +17 -10
  542. package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +17 -4
  543. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +8 -8
  544. package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +71 -25
  545. package/dist/bundled/v3/components/OrTabsV3/index.js +7 -7
  546. package/dist/bundled/v3/components/OrTag/OrTag.js +10 -10
  547. package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +27 -10
  548. package/dist/bundled/v3/components/OrTag/index.js +9 -9
  549. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +13 -13
  550. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +85 -37
  551. package/dist/bundled/v3/components/OrTagInputV3/index.js +12 -12
  552. package/dist/bundled/v3/components/OrTagV3/OrTag.js +9 -9
  553. package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +23 -12
  554. package/dist/bundled/v3/components/OrTagV3/index.js +8 -8
  555. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +12 -12
  556. package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +66 -23
  557. package/dist/bundled/v3/components/OrTagsV3/index.js +11 -11
  558. package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +10 -4
  559. package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +10 -4
  560. package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +24 -11
  561. package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +9 -9
  562. package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +85 -37
  563. package/dist/bundled/v3/components/OrTextarea/index.js +8 -8
  564. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +73 -32
  565. package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +13 -13
  566. package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +137 -55
  567. package/dist/bundled/v3/components/OrTextbox/index.js +12 -12
  568. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +13 -13
  569. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +83 -26
  570. package/dist/bundled/v3/components/OrTimePickerV3/index.js +12 -12
  571. package/dist/bundled/v3/components/OrToast/OrToast.js +14 -14
  572. package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +31 -11
  573. package/dist/bundled/v3/components/OrToast/Timer.js +1 -1
  574. package/dist/bundled/v3/components/OrToast/composable/index.js +2 -2
  575. package/dist/bundled/v3/components/OrToast/composable/useToast.js +2 -2
  576. package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +2 -2
  577. package/dist/bundled/v3/components/OrToast/index.js +17 -17
  578. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +18 -18
  579. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +55 -25
  580. package/dist/bundled/v3/components/OrToastContainer/index.js +17 -17
  581. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +10 -10
  582. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +54 -24
  583. package/dist/bundled/v3/components/OrToastContainerV3/index.js +9 -9
  584. package/dist/bundled/v3/components/OrToastV3/OrToast.js +8 -8
  585. package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +38 -16
  586. package/dist/bundled/v3/components/OrToastV3/Timer.js +1 -1
  587. package/dist/bundled/v3/components/OrToastV3/composable/index.js +2 -2
  588. package/dist/bundled/v3/components/OrToastV3/composable/useToast.js +2 -2
  589. package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +2 -2
  590. package/dist/bundled/v3/components/OrToastV3/index.js +9 -9
  591. package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +9 -9
  592. package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +33 -14
  593. package/dist/bundled/v3/components/OrTooltip/index.js +8 -8
  594. package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +10 -4
  595. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +7 -7
  596. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +31 -15
  597. package/dist/bundled/v3/components/OrTooltipV3/index.js +6 -6
  598. package/dist/bundled/v3/components/index.d.ts +1 -0
  599. package/dist/bundled/v3/components/index.js +112 -94
  600. package/dist/bundled/v3/directives/dropdown-close.d.ts +1 -3
  601. package/dist/bundled/v3/directives/dropdown-open.d.ts +1 -3
  602. package/dist/bundled/{v2/dom-571739a2.js → v3/dom-c98dce89.js} +2 -2
  603. package/dist/bundled/v3/{eq-fa566495.js → eq-037e6fce.js} +1 -1
  604. package/dist/bundled/{v2/get-73ac2f59.js → v3/get-b30afe93.js} +3 -3
  605. package/dist/bundled/v3/hooks/index.js +3 -3
  606. package/dist/bundled/v3/hooks/useOverflow.js +2 -2
  607. package/dist/bundled/v3/hooks/usePopoverState.js +1 -1
  608. package/dist/bundled/v3/hooks/useResponsive/index.js +2 -2
  609. package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
  610. package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +2 -2
  611. package/dist/bundled/v3/hooks/useTheme.js +1 -1
  612. package/dist/bundled/v3/{index-f4d8e24c.js → index-40b35d94.js} +1 -1
  613. package/dist/bundled/v3/index-536f78ef.js +9714 -0
  614. package/dist/bundled/v3/index-71dbceb9.js +3805 -0
  615. package/dist/bundled/v3/{index-500b3ace.js → index-749f3444.js} +1 -1
  616. package/dist/bundled/v3/index-85c2efe8.js +7122 -0
  617. package/dist/bundled/v3/{index-cf2c3c27.js → index-a8488e2a.js} +3 -115
  618. package/dist/bundled/v3/{index-09d1cb24.js → index-ae815a7e.js} +2 -2
  619. package/dist/bundled/v3/{lang-0fb8f78b.js → index-c59372d3.js} +118 -4028
  620. package/dist/bundled/v3/index.es-3f39f316.js +115 -0
  621. package/dist/bundled/v3/index.js +112 -97
  622. package/dist/bundled/v3/{isArrayLike-acf249e3.js → isArrayLike-61275a05.js} +1 -1
  623. package/dist/bundled/v3/{isEqual-881b7bb5.js → isEqual-8bbb1110.js} +1 -1
  624. package/dist/bundled/{v2/isObject-3a5b854d.js → v3/isObject-08fab135.js} +1 -1
  625. package/dist/bundled/v3/markdown-161bd1ee.js +15365 -0
  626. package/dist/bundled/{v2/range-c87289f7.js → v3/range-637f1361.js} +4 -4
  627. package/dist/bundled/{v2/round-136c7e43.js → v3/round-4a894f03.js} +4 -4
  628. package/dist/bundled/v3/{toFinite-021b0c50.js → toFinite-675db18a.js} +1 -1
  629. package/dist/bundled/v3/{toInteger-db8a475d.js → toInteger-27595771.js} +1 -1
  630. package/dist/bundled/{v2/toString-47fa81b4.js → v3/toString-a72d5149.js} +1 -1
  631. package/dist/bundled/v3/useFocusTrap-a61a80ac.js +1349 -0
  632. package/dist/bundled/v3/utils/functions/dom.js +6 -6
  633. package/dist/esm/v2/OrRichTextEditor-4475bf12.js +980 -0
  634. package/dist/esm/v2/codemirrorView-97db8166.js +371 -0
  635. package/dist/esm/v2/components/index.d.ts +1 -0
  636. package/dist/esm/v2/components/index.js +24 -0
  637. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +194 -0
  638. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +2 -0
  639. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +62 -0
  640. package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +5 -0
  641. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  642. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  643. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
  644. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  645. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +10 -0
  646. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +39 -0
  647. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  648. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
  649. package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
  650. package/dist/esm/v2/components/or-textarea/OrTextarea.vue.d.ts +2 -2
  651. package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +2 -2
  652. package/dist/esm/v2/components/or-textbox/OrTextbox.vue.d.ts +2 -2
  653. package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +2 -2
  654. package/dist/esm/v2/components/or-toast/OrToast.vue.d.ts +2 -2
  655. package/dist/esm/v2/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +2 -2
  656. package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -2
  657. package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +2 -2
  658. package/dist/esm/v2/components/or-tooltip/OrTooltip.vue.d.ts +2 -2
  659. package/dist/esm/v2/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +2 -2
  660. package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
  661. package/dist/esm/v2/index.js +23 -0
  662. package/dist/esm/v3/OrRichTextEditor-a3a732db.js +912 -0
  663. package/dist/esm/v3/codemirrorView-97db8166.js +371 -0
  664. package/dist/esm/v3/components/index.d.ts +1 -0
  665. package/dist/esm/v3/components/index.js +24 -0
  666. package/dist/esm/v3/components/or-avatar/OrAvatar.vue.d.ts +26 -11
  667. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +24 -8
  668. package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +33 -17
  669. package/dist/esm/v3/components/or-button/OrButton.vue.d.ts +51 -16
  670. package/dist/esm/v3/components/or-button-v2/OrButton.vue.d.ts +57 -20
  671. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +35 -15
  672. package/dist/esm/v3/components/or-card/OrCard.vue.d.ts +15 -7
  673. package/dist/esm/v3/components/or-card-collection/OrCardCollection.vue.d.ts +47 -21
  674. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +70 -22
  675. package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +14 -6
  676. package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +7 -4
  677. package/dist/esm/v3/components/or-carousel/OrCarousel.vue.d.ts +676 -126
  678. package/dist/esm/v3/components/or-carousel/or-carousel-item/OrCarouselItem.vue.d.ts +1 -1
  679. package/dist/esm/v3/components/or-checkbox/OrCheckbox.vue.d.ts +35 -15
  680. package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +24 -6
  681. package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +43 -17
  682. package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +53 -23
  683. package/dist/esm/v3/components/or-chips/OrChips.vue.d.ts +51 -24
  684. package/dist/esm/v3/components/or-chips/or-chip/OrChip.vue.d.ts +25 -9
  685. package/dist/esm/v3/components/or-chips/partials/OrChipsInput.vue.d.ts +37 -17
  686. package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +69 -24
  687. package/dist/esm/v3/components/or-collapse/OrCollapse.vue.d.ts +39 -17
  688. package/dist/esm/v3/components/or-color-picker/OrColorPicker.vue.d.ts +31 -13
  689. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +30 -8
  690. package/dist/esm/v3/components/or-confirm/OrConfirm.vue.d.ts +84 -23
  691. package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +91 -30
  692. package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +83 -26
  693. package/dist/esm/v3/components/or-date-time-picker/OrDateTimePicker.vue.d.ts +177 -68
  694. package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +33 -12
  695. package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +109 -32
  696. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +28 -11
  697. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +39 -17
  698. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +15 -7
  699. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +85 -23
  700. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +17 -9
  701. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +7 -4
  702. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +30 -11
  703. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +43 -17
  704. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +28 -11
  705. package/dist/esm/v3/components/or-error/OrError.vue.d.ts +8 -4
  706. package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +7 -4
  707. package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +18 -9
  708. package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +39 -16
  709. package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +20 -8
  710. package/dist/esm/v3/components/or-floating/OrFloating.vue.d.ts +46 -15
  711. package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +30 -10
  712. package/dist/esm/v3/components/or-hint/OrHint.vue.d.ts +8 -4
  713. package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +18 -9
  714. package/dist/esm/v3/components/or-icon/OrIcon.vue.d.ts +44 -16
  715. package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +43 -13
  716. package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +10 -8
  717. package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +52 -16
  718. package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +18 -7
  719. package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +16 -7
  720. package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +83 -39
  721. package/dist/esm/v3/components/or-inline-text-edit/OrInlineTextEdit.vue.d.ts +95 -43
  722. package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +79 -39
  723. package/dist/esm/v3/components/or-input/OrInput.vue.d.ts +87 -36
  724. package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +22 -7
  725. package/dist/esm/v3/components/or-input-box-v3/partials/or-input-box-addon/OrInputBoxAddon.vue.d.ts +18 -7
  726. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +85 -34
  727. package/dist/esm/v3/components/or-label/OrLabel.vue.d.ts +20 -9
  728. package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +24 -9
  729. package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +24 -7
  730. package/dist/esm/v3/components/or-list/OrList.vue.d.ts +47 -21
  731. package/dist/esm/v3/components/or-list-of-inputs/OrListOfInputs.vue.d.ts +27 -11
  732. package/dist/esm/v3/components/or-loader/OrLoader.vue.d.ts +26 -10
  733. package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +34 -13
  734. package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +34 -13
  735. package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +31 -15
  736. package/dist/esm/v3/components/or-modal/OrModal.vue.d.ts +38 -14
  737. package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +25 -13
  738. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +7 -4
  739. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +7 -4
  740. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +11 -6
  741. package/dist/esm/v3/components/or-notification/OrNotification.vue.d.ts +27 -9
  742. package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +20 -9
  743. package/dist/esm/v3/components/or-number-input/OrNumberInput.vue.d.ts +70 -24
  744. package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenu.vue.d.ts +31 -13
  745. package/dist/esm/v3/components/or-overflow-menu/partials/OrOverflowMenuItem.vue.d.ts +23 -7
  746. package/dist/esm/v3/components/or-overlay/OrOverlay.vue.d.ts +16 -6
  747. package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +14 -7
  748. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +75 -27
  749. package/dist/esm/v3/components/or-password/OrPassword.vue.d.ts +63 -22
  750. package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +74 -24
  751. package/dist/esm/v3/components/or-progress/OrProgress.vue.d.ts +56 -20
  752. package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +62 -25
  753. package/dist/esm/v3/components/or-radio/OrRadio.vue.d.ts +35 -13
  754. package/dist/esm/v3/components/or-radio-group/OrRadioGroup.vue.d.ts +26 -9
  755. package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +32 -6
  756. package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +49 -21
  757. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +194 -0
  758. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +2 -0
  759. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +60 -0
  760. package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +5 -0
  761. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  762. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  763. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
  764. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  765. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +10 -0
  766. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +39 -0
  767. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  768. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
  769. package/dist/esm/v3/components/or-search/OrSearch.vue.d.ts +65 -23
  770. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +41 -17
  771. package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +25 -9
  772. package/dist/esm/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +20 -8
  773. package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +77 -28
  774. package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +49 -18
  775. package/dist/esm/v3/components/or-select/partials/OrSelectContentEmpty.vue.d.ts +16 -4
  776. package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +67 -13
  777. package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +41 -16
  778. package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +35 -16
  779. package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +71 -24
  780. package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +19 -7
  781. package/dist/esm/v3/components/or-select/partials/OrSelectSearchOptions.vue.d.ts +24 -11
  782. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +117 -38
  783. package/dist/esm/v3/components/or-sidebar/OrSidebar.vue.d.ts +33 -14
  784. package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +63 -28
  785. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +23 -10
  786. package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue.d.ts +20 -9
  787. package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue.d.ts +22 -9
  788. package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +26 -10
  789. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +28 -13
  790. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +26 -11
  791. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +40 -16
  792. package/dist/esm/v3/components/or-slider/OrSlider.vue.d.ts +91 -35
  793. package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +25 -13
  794. package/dist/esm/v3/components/or-stepper/OrStepper.vue.d.ts +43 -16
  795. package/dist/esm/v3/components/or-stepper/partials/OrStepperButtonOptions.vue.d.ts +20 -4
  796. package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionHorizontal.vue.d.ts +26 -4
  797. package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionVertical.vue.d.ts +26 -4
  798. package/dist/esm/v3/components/or-stepper/partials/OrStepperTitle.vue.d.ts +22 -6
  799. package/dist/esm/v3/components/or-stepper/partials/StatusIcon.vue.d.ts +12 -6
  800. package/dist/esm/v3/components/or-switch/OrSwitch.vue.d.ts +33 -12
  801. package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +53 -22
  802. package/dist/esm/v3/components/or-tab/OrTab.vue.d.ts +22 -9
  803. package/dist/esm/v3/components/or-tab-header-item/OrTabHeaderItem.vue.d.ts +29 -13
  804. package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +17 -10
  805. package/dist/esm/v3/components/or-tabs/OrTabs.vue.d.ts +17 -4
  806. package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +71 -25
  807. package/dist/esm/v3/components/or-tag/OrTag.vue.d.ts +27 -10
  808. package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +85 -37
  809. package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +23 -12
  810. package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +66 -23
  811. package/dist/esm/v3/components/or-teleport/OrTeleport.vue3.vue.d.ts +10 -4
  812. package/dist/esm/v3/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +10 -4
  813. package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +24 -11
  814. package/dist/esm/v3/components/or-textarea/OrTextarea.vue.d.ts +85 -37
  815. package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +73 -32
  816. package/dist/esm/v3/components/or-textbox/OrTextbox.vue.d.ts +137 -55
  817. package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +83 -26
  818. package/dist/esm/v3/components/or-toast/OrToast.vue.d.ts +31 -11
  819. package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +55 -25
  820. package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +38 -16
  821. package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +54 -24
  822. package/dist/esm/v3/components/or-tooltip/OrTooltip.vue.d.ts +33 -14
  823. package/dist/esm/v3/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +10 -4
  824. package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +31 -15
  825. package/dist/esm/v3/directives/dropdown-close.d.ts +1 -3
  826. package/dist/esm/v3/directives/dropdown-open.d.ts +1 -3
  827. package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
  828. package/dist/esm/v3/index.js +23 -0
  829. package/package.json +28 -10
  830. package/src/components/index.ts +1 -0
  831. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +743 -0
  832. package/src/components/or-rich-text-editor-v3/index.ts +2 -0
  833. package/src/components/or-rich-text-editor-v3/props.ts +6 -0
  834. package/src/components/or-rich-text-editor-v3/styles.ts +53 -0
  835. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
  836. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +254 -0
  837. package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
  838. package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.js +238 -0
  839. package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
  840. package/src/components/or-rich-text-editor-v3/utils/markdown.ts +172 -0
  841. /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-2c1b5116.js → OrDateTimePickerMonthSelect-6f4bf0c6.js} +0 -0
  842. /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-28995b95.js → OrDateTimePickerPopoverHeader-09f694b3.js} +0 -0
  843. /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-c52ee823.js → OrDateTimePickerTimeSelect-566d9fb0.js} +0 -0
  844. /package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-ca9d5307.js → OrExpansionPanel.vue_vue_type_script_lang-deb7a9e0.js} +0 -0
@@ -0,0 +1,2226 @@
1
+ import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch, nextTick } from 'vue-demi';
2
+ import { u as useFocusTrap } from '../../useFocusTrap-c1384da1.js';
3
+ import { f as useResizeObserver, o as onClickOutside } from '../../index-af414338.js';
4
+ import { B as Blockquote, a as Bold, b as BulletList, C as CodeBlock, H as HardBreak, I as Italic, L as ListItem, O as OrderedList, P as Paragraph, S as Strike, s as serialize, d as deserialize, U as Underline, c as Link, e as Highlight } from '../../markdown-161bd1ee.js';
5
+ import { EditorContainer, ToolbarContainer, Toolbar, ToolbarButtonFocused, ToolbarButton, EditorInput } from './styles.js';
6
+ import { Formats } from './props.js';
7
+ import { M as Mark, m as mergeAttributes, a as markInputRule, b as markPasteRule, N as Node, E as Extension, k as keydownHandler, D as DecorationSet, c as Decoration, d as callOrReturn, g as getExtensionField, t as textblockTypeInputRule, n as nodeInputRule, e as Editor } from '../../index-536f78ef.js';
8
+ import { P as Plugin, d as dropPoint, S as Selection, N as NodeSelection, F as Fragment, a as Slice, T as TextSelection, b as PluginKey, M as Mapping } from '../../index-85c2efe8.js';
9
+ import codemirrorNode from './utils/codemirror/codemirrorNode.js';
10
+ import __vue_component__$1 from '../OrIconButtonV3/OrIconButton.js';
11
+ import __vue_component__$2 from '../OrLabelV3/OrLabel.js';
12
+ import __vue_component__$3 from '../OrMenuItemV3/OrMenuItem.js';
13
+ import __vue_component__$4 from '../OrMenuV3/OrMenu.js';
14
+ import __vue_component__$5 from '../OrModalV3/OrModal.js';
15
+ import __vue_component__$6 from '../OrInputV3/OrInput.js';
16
+ import __vue_component__$7 from '../OrButtonV3/OrButton.js';
17
+ import __vue_component__$8 from '../OrPopoverV3/OrPopover.js';
18
+ import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
19
+ import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
20
+ import '../../index-06f6bbe4.js';
21
+ import '../../_commonjsHelpers-6584e42b.js';
22
+ import 'node:punycode';
23
+ import '../../index.es-3f39f316.js';
24
+ import './utils/codemirror/codemirrorView.js';
25
+ import '../../index-a8488e2a.js';
26
+ import './utils/codemirror/theme.js';
27
+ import '../../hooks/useTheme.js';
28
+ import 'node:tty';
29
+ import 'node:util';
30
+ import '../../index-71dbceb9.js';
31
+ import '../../index-c59372d3.js';
32
+ import '../OrIconButtonV3/props.js';
33
+ import '../OrIconV3/props.js';
34
+ import '../OrIconButtonV3/styles.js';
35
+ import '../OrIconV3/OrIcon.js';
36
+ import '../OrIconV3/styles.js';
37
+ import '../OrTooltipV3/OrTooltip.js';
38
+ import '../OrTooltipV3/styles.js';
39
+ import '../OrPopoverV3/props.js';
40
+ import '../../hooks/usePopoverState.js';
41
+ import '../OrLabelV3/props.js';
42
+ import '../OrLabelV3/styles.js';
43
+ import '../OrMenuItemV3/styles.js';
44
+ import '../OrMenuV3/styles.js';
45
+ import '../OrModalV3/props.js';
46
+ import '../OrModalV3/styles.js';
47
+ import '../OrOverlayV3/OrOverlay.js';
48
+ import '../OrOverlayV3/styles.js';
49
+ import '../OrTeleportV3/OrTeleport.js';
50
+ import 'vue';
51
+ import '../../hooks/useElevation.js';
52
+ import '../../utils/isVisible.js';
53
+ import '../OrInputV3/props.js';
54
+ import '../OrInputBoxV3/props.js';
55
+ import '../OrInputV3/styles.js';
56
+ import '../OrErrorV3/OrError.js';
57
+ import '../OrErrorV3/styles.js';
58
+ import '../OrHintV3/OrHint.js';
59
+ import '../OrHintV3/styles.js';
60
+ import '../OrInputBoxV3/OrInputBox.js';
61
+ import '../OrInputBoxV3/styles.js';
62
+ import '../OrLoaderV3/OrLoader.js';
63
+ import '../OrLoaderV3/props.js';
64
+ import '../OrLoaderV3/styles.js';
65
+ import '../../hooks/useIdAttribute.js';
66
+ import '../../hooks/useControlAttributes.js';
67
+ import '../../hooks/useValidationAttributes.js';
68
+ import '../../hooks/useResponsive/useResponsive.js';
69
+ import '../OrButtonV3/props.js';
70
+ import '../OrButtonV3/styles.js';
71
+ import '../../floating-ui.dom.esm-83eba816.js';
72
+ import '../OrPopoverV3/styles.js';
73
+ import '../OrBottomSheetV3/OrBottomSheet.js';
74
+ import '../OrBottomSheetV3/props.js';
75
+ import '../OrBottomSheetV3/styles.js';
76
+
77
+ const inputRegex = /(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;
78
+ const pasteRegex = /(?:^|\s)((?:`)((?:[^`]+))(?:`))/g;
79
+ const Code = Mark.create({
80
+ name: 'code',
81
+ addOptions() {
82
+ return {
83
+ HTMLAttributes: {}
84
+ };
85
+ },
86
+ excludes: '_',
87
+ code: true,
88
+ exitable: true,
89
+ parseHTML() {
90
+ return [{
91
+ tag: 'code'
92
+ }];
93
+ },
94
+ renderHTML(_ref) {
95
+ let {
96
+ HTMLAttributes
97
+ } = _ref;
98
+ return ['code', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
99
+ },
100
+ addCommands() {
101
+ return {
102
+ setCode: () => _ref2 => {
103
+ let {
104
+ commands
105
+ } = _ref2;
106
+ return commands.setMark(this.name);
107
+ },
108
+ toggleCode: () => _ref3 => {
109
+ let {
110
+ commands
111
+ } = _ref3;
112
+ return commands.toggleMark(this.name);
113
+ },
114
+ unsetCode: () => _ref4 => {
115
+ let {
116
+ commands
117
+ } = _ref4;
118
+ return commands.unsetMark(this.name);
119
+ }
120
+ };
121
+ },
122
+ addKeyboardShortcuts() {
123
+ return {
124
+ 'Mod-e': () => this.editor.commands.toggleCode()
125
+ };
126
+ },
127
+ addInputRules() {
128
+ return [markInputRule({
129
+ find: inputRegex,
130
+ type: this.type
131
+ })];
132
+ },
133
+ addPasteRules() {
134
+ return [markPasteRule({
135
+ find: pasteRegex,
136
+ type: this.type
137
+ })];
138
+ }
139
+ });
140
+
141
+ const Document = Node.create({
142
+ name: 'doc',
143
+ topNode: true,
144
+ content: 'block+'
145
+ });
146
+
147
+ /**
148
+ Create a plugin that, when added to a ProseMirror instance,
149
+ causes a decoration to show up at the drop position when something
150
+ is dragged over the editor.
151
+
152
+ Nodes may add a `disableDropCursor` property to their spec to
153
+ control the showing of a drop cursor inside them. This may be a
154
+ boolean or a function, which will be called with a view and a
155
+ position, and should return a boolean.
156
+ */
157
+ function dropCursor() {
158
+ let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
159
+ return new Plugin({
160
+ view(editorView) {
161
+ return new DropCursorView(editorView, options);
162
+ }
163
+ });
164
+ }
165
+ class DropCursorView {
166
+ constructor(editorView, options) {
167
+ var _a;
168
+ this.editorView = editorView;
169
+ this.cursorPos = null;
170
+ this.element = null;
171
+ this.timeout = -1;
172
+ this.width = (_a = options.width) !== null && _a !== void 0 ? _a : 1;
173
+ this.color = options.color === false ? undefined : options.color || "black";
174
+ this.class = options.class;
175
+ this.handlers = ["dragover", "dragend", "drop", "dragleave"].map(name => {
176
+ let handler = e => {
177
+ this[name](e);
178
+ };
179
+ editorView.dom.addEventListener(name, handler);
180
+ return {
181
+ name,
182
+ handler
183
+ };
184
+ });
185
+ }
186
+ destroy() {
187
+ this.handlers.forEach(_ref => {
188
+ let {
189
+ name,
190
+ handler
191
+ } = _ref;
192
+ return this.editorView.dom.removeEventListener(name, handler);
193
+ });
194
+ }
195
+ update(editorView, prevState) {
196
+ if (this.cursorPos != null && prevState.doc != editorView.state.doc) {
197
+ if (this.cursorPos > editorView.state.doc.content.size) this.setCursor(null);else this.updateOverlay();
198
+ }
199
+ }
200
+ setCursor(pos) {
201
+ if (pos == this.cursorPos) return;
202
+ this.cursorPos = pos;
203
+ if (pos == null) {
204
+ this.element.parentNode.removeChild(this.element);
205
+ this.element = null;
206
+ } else {
207
+ this.updateOverlay();
208
+ }
209
+ }
210
+ updateOverlay() {
211
+ let $pos = this.editorView.state.doc.resolve(this.cursorPos);
212
+ let isBlock = !$pos.parent.inlineContent,
213
+ rect;
214
+ if (isBlock) {
215
+ let before = $pos.nodeBefore,
216
+ after = $pos.nodeAfter;
217
+ if (before || after) {
218
+ let node = this.editorView.nodeDOM(this.cursorPos - (before ? before.nodeSize : 0));
219
+ if (node) {
220
+ let nodeRect = node.getBoundingClientRect();
221
+ let top = before ? nodeRect.bottom : nodeRect.top;
222
+ if (before && after) top = (top + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2;
223
+ rect = {
224
+ left: nodeRect.left,
225
+ right: nodeRect.right,
226
+ top: top - this.width / 2,
227
+ bottom: top + this.width / 2
228
+ };
229
+ }
230
+ }
231
+ }
232
+ if (!rect) {
233
+ let coords = this.editorView.coordsAtPos(this.cursorPos);
234
+ rect = {
235
+ left: coords.left - this.width / 2,
236
+ right: coords.left + this.width / 2,
237
+ top: coords.top,
238
+ bottom: coords.bottom
239
+ };
240
+ }
241
+ let parent = this.editorView.dom.offsetParent;
242
+ if (!this.element) {
243
+ this.element = parent.appendChild(document.createElement("div"));
244
+ if (this.class) this.element.className = this.class;
245
+ this.element.style.cssText = "position: absolute; z-index: 50; pointer-events: none;";
246
+ if (this.color) {
247
+ this.element.style.backgroundColor = this.color;
248
+ }
249
+ }
250
+ this.element.classList.toggle("prosemirror-dropcursor-block", isBlock);
251
+ this.element.classList.toggle("prosemirror-dropcursor-inline", !isBlock);
252
+ let parentLeft, parentTop;
253
+ if (!parent || parent == document.body && getComputedStyle(parent).position == "static") {
254
+ parentLeft = -pageXOffset;
255
+ parentTop = -pageYOffset;
256
+ } else {
257
+ let rect = parent.getBoundingClientRect();
258
+ parentLeft = rect.left - parent.scrollLeft;
259
+ parentTop = rect.top - parent.scrollTop;
260
+ }
261
+ this.element.style.left = rect.left - parentLeft + "px";
262
+ this.element.style.top = rect.top - parentTop + "px";
263
+ this.element.style.width = rect.right - rect.left + "px";
264
+ this.element.style.height = rect.bottom - rect.top + "px";
265
+ }
266
+ scheduleRemoval(timeout) {
267
+ clearTimeout(this.timeout);
268
+ this.timeout = setTimeout(() => this.setCursor(null), timeout);
269
+ }
270
+ dragover(event) {
271
+ if (!this.editorView.editable) return;
272
+ let pos = this.editorView.posAtCoords({
273
+ left: event.clientX,
274
+ top: event.clientY
275
+ });
276
+ let node = pos && pos.inside >= 0 && this.editorView.state.doc.nodeAt(pos.inside);
277
+ let disableDropCursor = node && node.type.spec.disableDropCursor;
278
+ let disabled = typeof disableDropCursor == "function" ? disableDropCursor(this.editorView, pos, event) : disableDropCursor;
279
+ if (pos && !disabled) {
280
+ let target = pos.pos;
281
+ if (this.editorView.dragging && this.editorView.dragging.slice) {
282
+ let point = dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice);
283
+ if (point != null) target = point;
284
+ }
285
+ this.setCursor(target);
286
+ this.scheduleRemoval(5000);
287
+ }
288
+ }
289
+ dragend() {
290
+ this.scheduleRemoval(20);
291
+ }
292
+ drop() {
293
+ this.scheduleRemoval(20);
294
+ }
295
+ dragleave(event) {
296
+ if (event.target == this.editorView.dom || !this.editorView.dom.contains(event.relatedTarget)) this.setCursor(null);
297
+ }
298
+ }
299
+
300
+ const Dropcursor = Extension.create({
301
+ name: 'dropCursor',
302
+ addOptions() {
303
+ return {
304
+ color: 'currentColor',
305
+ width: 1,
306
+ class: undefined
307
+ };
308
+ },
309
+ addProseMirrorPlugins() {
310
+ return [dropCursor(this.options)];
311
+ }
312
+ });
313
+
314
+ /**
315
+ Gap cursor selections are represented using this class. Its
316
+ `$anchor` and `$head` properties both point at the cursor position.
317
+ */
318
+ class GapCursor extends Selection {
319
+ /**
320
+ Create a gap cursor.
321
+ */
322
+ constructor($pos) {
323
+ super($pos, $pos);
324
+ }
325
+ map(doc, mapping) {
326
+ let $pos = doc.resolve(mapping.map(this.head));
327
+ return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);
328
+ }
329
+ content() {
330
+ return Slice.empty;
331
+ }
332
+ eq(other) {
333
+ return other instanceof GapCursor && other.head == this.head;
334
+ }
335
+ toJSON() {
336
+ return {
337
+ type: "gapcursor",
338
+ pos: this.head
339
+ };
340
+ }
341
+ /**
342
+ @internal
343
+ */
344
+ static fromJSON(doc, json) {
345
+ if (typeof json.pos != "number") throw new RangeError("Invalid input for GapCursor.fromJSON");
346
+ return new GapCursor(doc.resolve(json.pos));
347
+ }
348
+ /**
349
+ @internal
350
+ */
351
+ getBookmark() {
352
+ return new GapBookmark(this.anchor);
353
+ }
354
+ /**
355
+ @internal
356
+ */
357
+ static valid($pos) {
358
+ let parent = $pos.parent;
359
+ if (parent.isTextblock || !closedBefore($pos) || !closedAfter($pos)) return false;
360
+ let override = parent.type.spec.allowGapCursor;
361
+ if (override != null) return override;
362
+ let deflt = parent.contentMatchAt($pos.index()).defaultType;
363
+ return deflt && deflt.isTextblock;
364
+ }
365
+ /**
366
+ @internal
367
+ */
368
+ static findGapCursorFrom($pos, dir) {
369
+ let mustMove = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
370
+ search: for (;;) {
371
+ if (!mustMove && GapCursor.valid($pos)) return $pos;
372
+ let pos = $pos.pos,
373
+ next = null;
374
+ // Scan up from this position
375
+ for (let d = $pos.depth;; d--) {
376
+ let parent = $pos.node(d);
377
+ if (dir > 0 ? $pos.indexAfter(d) < parent.childCount : $pos.index(d) > 0) {
378
+ next = parent.child(dir > 0 ? $pos.indexAfter(d) : $pos.index(d) - 1);
379
+ break;
380
+ } else if (d == 0) {
381
+ return null;
382
+ }
383
+ pos += dir;
384
+ let $cur = $pos.doc.resolve(pos);
385
+ if (GapCursor.valid($cur)) return $cur;
386
+ }
387
+ // And then down into the next node
388
+ for (;;) {
389
+ let inside = dir > 0 ? next.firstChild : next.lastChild;
390
+ if (!inside) {
391
+ if (next.isAtom && !next.isText && !NodeSelection.isSelectable(next)) {
392
+ $pos = $pos.doc.resolve(pos + next.nodeSize * dir);
393
+ mustMove = false;
394
+ continue search;
395
+ }
396
+ break;
397
+ }
398
+ next = inside;
399
+ pos += dir;
400
+ let $cur = $pos.doc.resolve(pos);
401
+ if (GapCursor.valid($cur)) return $cur;
402
+ }
403
+ return null;
404
+ }
405
+ }
406
+ }
407
+ GapCursor.prototype.visible = false;
408
+ GapCursor.findFrom = GapCursor.findGapCursorFrom;
409
+ Selection.jsonID("gapcursor", GapCursor);
410
+ class GapBookmark {
411
+ constructor(pos) {
412
+ this.pos = pos;
413
+ }
414
+ map(mapping) {
415
+ return new GapBookmark(mapping.map(this.pos));
416
+ }
417
+ resolve(doc) {
418
+ let $pos = doc.resolve(this.pos);
419
+ return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);
420
+ }
421
+ }
422
+ function closedBefore($pos) {
423
+ for (let d = $pos.depth; d >= 0; d--) {
424
+ let index = $pos.index(d),
425
+ parent = $pos.node(d);
426
+ // At the start of this parent, look at next one
427
+ if (index == 0) {
428
+ if (parent.type.spec.isolating) return true;
429
+ continue;
430
+ }
431
+ // See if the node before (or its first ancestor) is closed
432
+ for (let before = parent.child(index - 1);; before = before.lastChild) {
433
+ if (before.childCount == 0 && !before.inlineContent || before.isAtom || before.type.spec.isolating) return true;
434
+ if (before.inlineContent) return false;
435
+ }
436
+ }
437
+ // Hit start of document
438
+ return true;
439
+ }
440
+ function closedAfter($pos) {
441
+ for (let d = $pos.depth; d >= 0; d--) {
442
+ let index = $pos.indexAfter(d),
443
+ parent = $pos.node(d);
444
+ if (index == parent.childCount) {
445
+ if (parent.type.spec.isolating) return true;
446
+ continue;
447
+ }
448
+ for (let after = parent.child(index);; after = after.firstChild) {
449
+ if (after.childCount == 0 && !after.inlineContent || after.isAtom || after.type.spec.isolating) return true;
450
+ if (after.inlineContent) return false;
451
+ }
452
+ }
453
+ return true;
454
+ }
455
+
456
+ /**
457
+ Create a gap cursor plugin. When enabled, this will capture clicks
458
+ near and arrow-key-motion past places that don't have a normally
459
+ selectable position nearby, and create a gap cursor selection for
460
+ them. The cursor is drawn as an element with class
461
+ `ProseMirror-gapcursor`. You can either include
462
+ `style/gapcursor.css` from the package's directory or add your own
463
+ styles to make it visible.
464
+ */
465
+ function gapCursor() {
466
+ return new Plugin({
467
+ props: {
468
+ decorations: drawGapCursor,
469
+ createSelectionBetween(_view, $anchor, $head) {
470
+ return $anchor.pos == $head.pos && GapCursor.valid($head) ? new GapCursor($head) : null;
471
+ },
472
+ handleClick,
473
+ handleKeyDown,
474
+ handleDOMEvents: {
475
+ beforeinput: beforeinput
476
+ }
477
+ }
478
+ });
479
+ }
480
+ const handleKeyDown = keydownHandler({
481
+ "ArrowLeft": arrow("horiz", -1),
482
+ "ArrowRight": arrow("horiz", 1),
483
+ "ArrowUp": arrow("vert", -1),
484
+ "ArrowDown": arrow("vert", 1)
485
+ });
486
+ function arrow(axis, dir) {
487
+ const dirStr = axis == "vert" ? dir > 0 ? "down" : "up" : dir > 0 ? "right" : "left";
488
+ return function (state, dispatch, view) {
489
+ let sel = state.selection;
490
+ let $start = dir > 0 ? sel.$to : sel.$from,
491
+ mustMove = sel.empty;
492
+ if (sel instanceof TextSelection) {
493
+ if (!view.endOfTextblock(dirStr) || $start.depth == 0) return false;
494
+ mustMove = false;
495
+ $start = state.doc.resolve(dir > 0 ? $start.after() : $start.before());
496
+ }
497
+ let $found = GapCursor.findGapCursorFrom($start, dir, mustMove);
498
+ if (!$found) return false;
499
+ if (dispatch) dispatch(state.tr.setSelection(new GapCursor($found)));
500
+ return true;
501
+ };
502
+ }
503
+ function handleClick(view, pos, event) {
504
+ if (!view || !view.editable) return false;
505
+ let $pos = view.state.doc.resolve(pos);
506
+ if (!GapCursor.valid($pos)) return false;
507
+ let clickPos = view.posAtCoords({
508
+ left: event.clientX,
509
+ top: event.clientY
510
+ });
511
+ if (clickPos && clickPos.inside > -1 && NodeSelection.isSelectable(view.state.doc.nodeAt(clickPos.inside))) return false;
512
+ view.dispatch(view.state.tr.setSelection(new GapCursor($pos)));
513
+ return true;
514
+ }
515
+ // This is a hack that, when a composition starts while a gap cursor
516
+ // is active, quickly creates an inline context for the composition to
517
+ // happen in, to avoid it being aborted by the DOM selection being
518
+ // moved into a valid position.
519
+ function beforeinput(view, event) {
520
+ if (event.inputType != "insertCompositionText" || !(view.state.selection instanceof GapCursor)) return false;
521
+ let {
522
+ $from
523
+ } = view.state.selection;
524
+ let insert = $from.parent.contentMatchAt($from.index()).findWrapping(view.state.schema.nodes.text);
525
+ if (!insert) return false;
526
+ let frag = Fragment.empty;
527
+ for (let i = insert.length - 1; i >= 0; i--) frag = Fragment.from(insert[i].createAndFill(null, frag));
528
+ let tr = view.state.tr.replace($from.pos, $from.pos, new Slice(frag, 0, 0));
529
+ tr.setSelection(TextSelection.near(tr.doc.resolve($from.pos + 1)));
530
+ view.dispatch(tr);
531
+ return false;
532
+ }
533
+ function drawGapCursor(state) {
534
+ if (!(state.selection instanceof GapCursor)) return null;
535
+ let node = document.createElement("div");
536
+ node.className = "ProseMirror-gapcursor";
537
+ return DecorationSet.create(state.doc, [Decoration.widget(state.selection.head, node, {
538
+ key: "gapcursor"
539
+ })]);
540
+ }
541
+
542
+ const Gapcursor = Extension.create({
543
+ name: 'gapCursor',
544
+ addProseMirrorPlugins() {
545
+ return [gapCursor()];
546
+ },
547
+ extendNodeSchema(extension) {
548
+ var _a;
549
+ const context = {
550
+ name: extension.name,
551
+ options: extension.options,
552
+ storage: extension.storage
553
+ };
554
+ return {
555
+ allowGapCursor: (_a = callOrReturn(getExtensionField(extension, 'allowGapCursor', context))) !== null && _a !== void 0 ? _a : null
556
+ };
557
+ }
558
+ });
559
+
560
+ const Heading = Node.create({
561
+ name: 'heading',
562
+ addOptions() {
563
+ return {
564
+ levels: [1, 2, 3, 4, 5, 6],
565
+ HTMLAttributes: {}
566
+ };
567
+ },
568
+ content: 'inline*',
569
+ group: 'block',
570
+ defining: true,
571
+ addAttributes() {
572
+ return {
573
+ level: {
574
+ default: 1,
575
+ rendered: false
576
+ }
577
+ };
578
+ },
579
+ parseHTML() {
580
+ return this.options.levels.map(level => ({
581
+ tag: `h${level}`,
582
+ attrs: {
583
+ level
584
+ }
585
+ }));
586
+ },
587
+ renderHTML(_ref) {
588
+ let {
589
+ node,
590
+ HTMLAttributes
591
+ } = _ref;
592
+ const hasLevel = this.options.levels.includes(node.attrs.level);
593
+ const level = hasLevel ? node.attrs.level : this.options.levels[0];
594
+ return [`h${level}`, mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
595
+ },
596
+ addCommands() {
597
+ return {
598
+ setHeading: attributes => _ref2 => {
599
+ let {
600
+ commands
601
+ } = _ref2;
602
+ if (!this.options.levels.includes(attributes.level)) {
603
+ return false;
604
+ }
605
+ return commands.setNode(this.name, attributes);
606
+ },
607
+ toggleHeading: attributes => _ref3 => {
608
+ let {
609
+ commands
610
+ } = _ref3;
611
+ if (!this.options.levels.includes(attributes.level)) {
612
+ return false;
613
+ }
614
+ return commands.toggleNode(this.name, 'paragraph', attributes);
615
+ }
616
+ };
617
+ },
618
+ addKeyboardShortcuts() {
619
+ return this.options.levels.reduce((items, level) => ({
620
+ ...items,
621
+ ...{
622
+ [`Mod-Alt-${level}`]: () => this.editor.commands.toggleHeading({
623
+ level
624
+ })
625
+ }
626
+ }), {});
627
+ },
628
+ addInputRules() {
629
+ return this.options.levels.map(level => {
630
+ return textblockTypeInputRule({
631
+ find: new RegExp(`^(#{1,${level}})\\s$`),
632
+ type: this.type,
633
+ getAttributes: {
634
+ level
635
+ }
636
+ });
637
+ });
638
+ }
639
+ });
640
+
641
+ var GOOD_LEAF_SIZE = 200;
642
+
643
+ // :: class<T> A rope sequence is a persistent sequence data structure
644
+ // that supports appending, prepending, and slicing without doing a
645
+ // full copy. It is represented as a mostly-balanced tree.
646
+ var RopeSequence = function RopeSequence() {};
647
+ RopeSequence.prototype.append = function append(other) {
648
+ if (!other.length) {
649
+ return this;
650
+ }
651
+ other = RopeSequence.from(other);
652
+ return !this.length && other || other.length < GOOD_LEAF_SIZE && this.leafAppend(other) || this.length < GOOD_LEAF_SIZE && other.leafPrepend(this) || this.appendInner(other);
653
+ };
654
+
655
+ // :: (union<[T], RopeSequence<T>>) → RopeSequence<T>
656
+ // Prepend an array or other rope to this one, returning a new rope.
657
+ RopeSequence.prototype.prepend = function prepend(other) {
658
+ if (!other.length) {
659
+ return this;
660
+ }
661
+ return RopeSequence.from(other).append(this);
662
+ };
663
+ RopeSequence.prototype.appendInner = function appendInner(other) {
664
+ return new Append(this, other);
665
+ };
666
+
667
+ // :: (?number, ?number) → RopeSequence<T>
668
+ // Create a rope repesenting a sub-sequence of this rope.
669
+ RopeSequence.prototype.slice = function slice(from, to) {
670
+ if (from === void 0) from = 0;
671
+ if (to === void 0) to = this.length;
672
+ if (from >= to) {
673
+ return RopeSequence.empty;
674
+ }
675
+ return this.sliceInner(Math.max(0, from), Math.min(this.length, to));
676
+ };
677
+
678
+ // :: (number) → T
679
+ // Retrieve the element at the given position from this rope.
680
+ RopeSequence.prototype.get = function get(i) {
681
+ if (i < 0 || i >= this.length) {
682
+ return undefined;
683
+ }
684
+ return this.getInner(i);
685
+ };
686
+
687
+ // :: ((element: T, index: number) → ?bool, ?number, ?number)
688
+ // Call the given function for each element between the given
689
+ // indices. This tends to be more efficient than looping over the
690
+ // indices and calling `get`, because it doesn't have to descend the
691
+ // tree for every element.
692
+ RopeSequence.prototype.forEach = function forEach(f, from, to) {
693
+ if (from === void 0) from = 0;
694
+ if (to === void 0) to = this.length;
695
+ if (from <= to) {
696
+ this.forEachInner(f, from, to, 0);
697
+ } else {
698
+ this.forEachInvertedInner(f, from, to, 0);
699
+ }
700
+ };
701
+
702
+ // :: ((element: T, index: number) → U, ?number, ?number) → [U]
703
+ // Map the given functions over the elements of the rope, producing
704
+ // a flat array.
705
+ RopeSequence.prototype.map = function map(f, from, to) {
706
+ if (from === void 0) from = 0;
707
+ if (to === void 0) to = this.length;
708
+ var result = [];
709
+ this.forEach(function (elt, i) {
710
+ return result.push(f(elt, i));
711
+ }, from, to);
712
+ return result;
713
+ };
714
+
715
+ // :: (?union<[T], RopeSequence<T>>) → RopeSequence<T>
716
+ // Create a rope representing the given array, or return the rope
717
+ // itself if a rope was given.
718
+ RopeSequence.from = function from(values) {
719
+ if (values instanceof RopeSequence) {
720
+ return values;
721
+ }
722
+ return values && values.length ? new Leaf(values) : RopeSequence.empty;
723
+ };
724
+ var Leaf = /*@__PURE__*/function (RopeSequence) {
725
+ function Leaf(values) {
726
+ RopeSequence.call(this);
727
+ this.values = values;
728
+ }
729
+ if (RopeSequence) Leaf.__proto__ = RopeSequence;
730
+ Leaf.prototype = Object.create(RopeSequence && RopeSequence.prototype);
731
+ Leaf.prototype.constructor = Leaf;
732
+ var prototypeAccessors = {
733
+ length: {
734
+ configurable: true
735
+ },
736
+ depth: {
737
+ configurable: true
738
+ }
739
+ };
740
+ Leaf.prototype.flatten = function flatten() {
741
+ return this.values;
742
+ };
743
+ Leaf.prototype.sliceInner = function sliceInner(from, to) {
744
+ if (from == 0 && to == this.length) {
745
+ return this;
746
+ }
747
+ return new Leaf(this.values.slice(from, to));
748
+ };
749
+ Leaf.prototype.getInner = function getInner(i) {
750
+ return this.values[i];
751
+ };
752
+ Leaf.prototype.forEachInner = function forEachInner(f, from, to, start) {
753
+ for (var i = from; i < to; i++) {
754
+ if (f(this.values[i], start + i) === false) {
755
+ return false;
756
+ }
757
+ }
758
+ };
759
+ Leaf.prototype.forEachInvertedInner = function forEachInvertedInner(f, from, to, start) {
760
+ for (var i = from - 1; i >= to; i--) {
761
+ if (f(this.values[i], start + i) === false) {
762
+ return false;
763
+ }
764
+ }
765
+ };
766
+ Leaf.prototype.leafAppend = function leafAppend(other) {
767
+ if (this.length + other.length <= GOOD_LEAF_SIZE) {
768
+ return new Leaf(this.values.concat(other.flatten()));
769
+ }
770
+ };
771
+ Leaf.prototype.leafPrepend = function leafPrepend(other) {
772
+ if (this.length + other.length <= GOOD_LEAF_SIZE) {
773
+ return new Leaf(other.flatten().concat(this.values));
774
+ }
775
+ };
776
+ prototypeAccessors.length.get = function () {
777
+ return this.values.length;
778
+ };
779
+ prototypeAccessors.depth.get = function () {
780
+ return 0;
781
+ };
782
+ Object.defineProperties(Leaf.prototype, prototypeAccessors);
783
+ return Leaf;
784
+ }(RopeSequence);
785
+
786
+ // :: RopeSequence
787
+ // The empty rope sequence.
788
+ RopeSequence.empty = new Leaf([]);
789
+ var Append = /*@__PURE__*/function (RopeSequence) {
790
+ function Append(left, right) {
791
+ RopeSequence.call(this);
792
+ this.left = left;
793
+ this.right = right;
794
+ this.length = left.length + right.length;
795
+ this.depth = Math.max(left.depth, right.depth) + 1;
796
+ }
797
+ if (RopeSequence) Append.__proto__ = RopeSequence;
798
+ Append.prototype = Object.create(RopeSequence && RopeSequence.prototype);
799
+ Append.prototype.constructor = Append;
800
+ Append.prototype.flatten = function flatten() {
801
+ return this.left.flatten().concat(this.right.flatten());
802
+ };
803
+ Append.prototype.getInner = function getInner(i) {
804
+ return i < this.left.length ? this.left.get(i) : this.right.get(i - this.left.length);
805
+ };
806
+ Append.prototype.forEachInner = function forEachInner(f, from, to, start) {
807
+ var leftLen = this.left.length;
808
+ if (from < leftLen && this.left.forEachInner(f, from, Math.min(to, leftLen), start) === false) {
809
+ return false;
810
+ }
811
+ if (to > leftLen && this.right.forEachInner(f, Math.max(from - leftLen, 0), Math.min(this.length, to) - leftLen, start + leftLen) === false) {
812
+ return false;
813
+ }
814
+ };
815
+ Append.prototype.forEachInvertedInner = function forEachInvertedInner(f, from, to, start) {
816
+ var leftLen = this.left.length;
817
+ if (from > leftLen && this.right.forEachInvertedInner(f, from - leftLen, Math.max(to, leftLen) - leftLen, start + leftLen) === false) {
818
+ return false;
819
+ }
820
+ if (to < leftLen && this.left.forEachInvertedInner(f, Math.min(from, leftLen), to, start) === false) {
821
+ return false;
822
+ }
823
+ };
824
+ Append.prototype.sliceInner = function sliceInner(from, to) {
825
+ if (from == 0 && to == this.length) {
826
+ return this;
827
+ }
828
+ var leftLen = this.left.length;
829
+ if (to <= leftLen) {
830
+ return this.left.slice(from, to);
831
+ }
832
+ if (from >= leftLen) {
833
+ return this.right.slice(from - leftLen, to - leftLen);
834
+ }
835
+ return this.left.slice(from, leftLen).append(this.right.slice(0, to - leftLen));
836
+ };
837
+ Append.prototype.leafAppend = function leafAppend(other) {
838
+ var inner = this.right.leafAppend(other);
839
+ if (inner) {
840
+ return new Append(this.left, inner);
841
+ }
842
+ };
843
+ Append.prototype.leafPrepend = function leafPrepend(other) {
844
+ var inner = this.left.leafPrepend(other);
845
+ if (inner) {
846
+ return new Append(inner, this.right);
847
+ }
848
+ };
849
+ Append.prototype.appendInner = function appendInner(other) {
850
+ if (this.left.depth >= Math.max(this.right.depth, other.depth) + 1) {
851
+ return new Append(this.left, new Append(this.right, other));
852
+ }
853
+ return new Append(this, other);
854
+ };
855
+ return Append;
856
+ }(RopeSequence);
857
+ var ropeSequence = RopeSequence;
858
+
859
+ // ProseMirror's history isn't simply a way to roll back to a previous
860
+ // state, because ProseMirror supports applying changes without adding
861
+ // them to the history (for example during collaboration).
862
+ //
863
+ // To this end, each 'Branch' (one for the undo history and one for
864
+ // the redo history) keeps an array of 'Items', which can optionally
865
+ // hold a step (an actual undoable change), and always hold a position
866
+ // map (which is needed to move changes below them to apply to the
867
+ // current document).
868
+ //
869
+ // An item that has both a step and a selection bookmark is the start
870
+ // of an 'event' — a group of changes that will be undone or redone at
871
+ // once. (It stores only the bookmark, since that way we don't have to
872
+ // provide a document until the selection is actually applied, which
873
+ // is useful when compressing.)
874
+ // Used to schedule history compression
875
+ const max_empty_items = 500;
876
+ class Branch {
877
+ constructor(items, eventCount) {
878
+ this.items = items;
879
+ this.eventCount = eventCount;
880
+ }
881
+ // Pop the latest event off the branch's history and apply it
882
+ // to a document transform.
883
+ popEvent(state, preserveItems) {
884
+ if (this.eventCount == 0) return null;
885
+ let end = this.items.length;
886
+ for (;; end--) {
887
+ let next = this.items.get(end - 1);
888
+ if (next.selection) {
889
+ --end;
890
+ break;
891
+ }
892
+ }
893
+ let remap, mapFrom;
894
+ if (preserveItems) {
895
+ remap = this.remapping(end, this.items.length);
896
+ mapFrom = remap.maps.length;
897
+ }
898
+ let transform = state.tr;
899
+ let selection, remaining;
900
+ let addAfter = [],
901
+ addBefore = [];
902
+ this.items.forEach((item, i) => {
903
+ if (!item.step) {
904
+ if (!remap) {
905
+ remap = this.remapping(end, i + 1);
906
+ mapFrom = remap.maps.length;
907
+ }
908
+ mapFrom--;
909
+ addBefore.push(item);
910
+ return;
911
+ }
912
+ if (remap) {
913
+ addBefore.push(new Item(item.map));
914
+ let step = item.step.map(remap.slice(mapFrom)),
915
+ map;
916
+ if (step && transform.maybeStep(step).doc) {
917
+ map = transform.mapping.maps[transform.mapping.maps.length - 1];
918
+ addAfter.push(new Item(map, undefined, undefined, addAfter.length + addBefore.length));
919
+ }
920
+ mapFrom--;
921
+ if (map) remap.appendMap(map, mapFrom);
922
+ } else {
923
+ transform.maybeStep(item.step);
924
+ }
925
+ if (item.selection) {
926
+ selection = remap ? item.selection.map(remap.slice(mapFrom)) : item.selection;
927
+ remaining = new Branch(this.items.slice(0, end).append(addBefore.reverse().concat(addAfter)), this.eventCount - 1);
928
+ return false;
929
+ }
930
+ }, this.items.length, 0);
931
+ return {
932
+ remaining: remaining,
933
+ transform,
934
+ selection: selection
935
+ };
936
+ }
937
+ // Create a new branch with the given transform added.
938
+ addTransform(transform, selection, histOptions, preserveItems) {
939
+ let newItems = [],
940
+ eventCount = this.eventCount;
941
+ let oldItems = this.items,
942
+ lastItem = !preserveItems && oldItems.length ? oldItems.get(oldItems.length - 1) : null;
943
+ for (let i = 0; i < transform.steps.length; i++) {
944
+ let step = transform.steps[i].invert(transform.docs[i]);
945
+ let item = new Item(transform.mapping.maps[i], step, selection),
946
+ merged;
947
+ if (merged = lastItem && lastItem.merge(item)) {
948
+ item = merged;
949
+ if (i) newItems.pop();else oldItems = oldItems.slice(0, oldItems.length - 1);
950
+ }
951
+ newItems.push(item);
952
+ if (selection) {
953
+ eventCount++;
954
+ selection = undefined;
955
+ }
956
+ if (!preserveItems) lastItem = item;
957
+ }
958
+ let overflow = eventCount - histOptions.depth;
959
+ if (overflow > DEPTH_OVERFLOW) {
960
+ oldItems = cutOffEvents(oldItems, overflow);
961
+ eventCount -= overflow;
962
+ }
963
+ return new Branch(oldItems.append(newItems), eventCount);
964
+ }
965
+ remapping(from, to) {
966
+ let maps = new Mapping();
967
+ this.items.forEach((item, i) => {
968
+ let mirrorPos = item.mirrorOffset != null && i - item.mirrorOffset >= from ? maps.maps.length - item.mirrorOffset : undefined;
969
+ maps.appendMap(item.map, mirrorPos);
970
+ }, from, to);
971
+ return maps;
972
+ }
973
+ addMaps(array) {
974
+ if (this.eventCount == 0) return this;
975
+ return new Branch(this.items.append(array.map(map => new Item(map))), this.eventCount);
976
+ }
977
+ // When the collab module receives remote changes, the history has
978
+ // to know about those, so that it can adjust the steps that were
979
+ // rebased on top of the remote changes, and include the position
980
+ // maps for the remote changes in its array of items.
981
+ rebased(rebasedTransform, rebasedCount) {
982
+ if (!this.eventCount) return this;
983
+ let rebasedItems = [],
984
+ start = Math.max(0, this.items.length - rebasedCount);
985
+ let mapping = rebasedTransform.mapping;
986
+ let newUntil = rebasedTransform.steps.length;
987
+ let eventCount = this.eventCount;
988
+ this.items.forEach(item => {
989
+ if (item.selection) eventCount--;
990
+ }, start);
991
+ let iRebased = rebasedCount;
992
+ this.items.forEach(item => {
993
+ let pos = mapping.getMirror(--iRebased);
994
+ if (pos == null) return;
995
+ newUntil = Math.min(newUntil, pos);
996
+ let map = mapping.maps[pos];
997
+ if (item.step) {
998
+ let step = rebasedTransform.steps[pos].invert(rebasedTransform.docs[pos]);
999
+ let selection = item.selection && item.selection.map(mapping.slice(iRebased + 1, pos));
1000
+ if (selection) eventCount++;
1001
+ rebasedItems.push(new Item(map, step, selection));
1002
+ } else {
1003
+ rebasedItems.push(new Item(map));
1004
+ }
1005
+ }, start);
1006
+ let newMaps = [];
1007
+ for (let i = rebasedCount; i < newUntil; i++) newMaps.push(new Item(mapping.maps[i]));
1008
+ let items = this.items.slice(0, start).append(newMaps).append(rebasedItems);
1009
+ let branch = new Branch(items, eventCount);
1010
+ if (branch.emptyItemCount() > max_empty_items) branch = branch.compress(this.items.length - rebasedItems.length);
1011
+ return branch;
1012
+ }
1013
+ emptyItemCount() {
1014
+ let count = 0;
1015
+ this.items.forEach(item => {
1016
+ if (!item.step) count++;
1017
+ });
1018
+ return count;
1019
+ }
1020
+ // Compressing a branch means rewriting it to push the air (map-only
1021
+ // items) out. During collaboration, these naturally accumulate
1022
+ // because each remote change adds one. The `upto` argument is used
1023
+ // to ensure that only the items below a given level are compressed,
1024
+ // because `rebased` relies on a clean, untouched set of items in
1025
+ // order to associate old items with rebased steps.
1026
+ compress() {
1027
+ let upto = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.items.length;
1028
+ let remap = this.remapping(0, upto),
1029
+ mapFrom = remap.maps.length;
1030
+ let items = [],
1031
+ events = 0;
1032
+ this.items.forEach((item, i) => {
1033
+ if (i >= upto) {
1034
+ items.push(item);
1035
+ if (item.selection) events++;
1036
+ } else if (item.step) {
1037
+ let step = item.step.map(remap.slice(mapFrom)),
1038
+ map = step && step.getMap();
1039
+ mapFrom--;
1040
+ if (map) remap.appendMap(map, mapFrom);
1041
+ if (step) {
1042
+ let selection = item.selection && item.selection.map(remap.slice(mapFrom));
1043
+ if (selection) events++;
1044
+ let newItem = new Item(map.invert(), step, selection),
1045
+ merged,
1046
+ last = items.length - 1;
1047
+ if (merged = items.length && items[last].merge(newItem)) items[last] = merged;else items.push(newItem);
1048
+ }
1049
+ } else if (item.map) {
1050
+ mapFrom--;
1051
+ }
1052
+ }, this.items.length, 0);
1053
+ return new Branch(ropeSequence.from(items.reverse()), events);
1054
+ }
1055
+ }
1056
+ Branch.empty = new Branch(ropeSequence.empty, 0);
1057
+ function cutOffEvents(items, n) {
1058
+ let cutPoint;
1059
+ items.forEach((item, i) => {
1060
+ if (item.selection && n-- == 0) {
1061
+ cutPoint = i;
1062
+ return false;
1063
+ }
1064
+ });
1065
+ return items.slice(cutPoint);
1066
+ }
1067
+ class Item {
1068
+ constructor(
1069
+ // The (forward) step map for this item.
1070
+ map,
1071
+ // The inverted step
1072
+ step,
1073
+ // If this is non-null, this item is the start of a group, and
1074
+ // this selection is the starting selection for the group (the one
1075
+ // that was active before the first step was applied)
1076
+ selection,
1077
+ // If this item is the inverse of a previous mapping on the stack,
1078
+ // this points at the inverse's offset
1079
+ mirrorOffset) {
1080
+ this.map = map;
1081
+ this.step = step;
1082
+ this.selection = selection;
1083
+ this.mirrorOffset = mirrorOffset;
1084
+ }
1085
+ merge(other) {
1086
+ if (this.step && other.step && !other.selection) {
1087
+ let step = other.step.merge(this.step);
1088
+ if (step) return new Item(step.getMap().invert(), step, this.selection);
1089
+ }
1090
+ }
1091
+ }
1092
+ // The value of the state field that tracks undo/redo history for that
1093
+ // state. Will be stored in the plugin state when the history plugin
1094
+ // is active.
1095
+ class HistoryState {
1096
+ constructor(done, undone, prevRanges, prevTime, prevComposition) {
1097
+ this.done = done;
1098
+ this.undone = undone;
1099
+ this.prevRanges = prevRanges;
1100
+ this.prevTime = prevTime;
1101
+ this.prevComposition = prevComposition;
1102
+ }
1103
+ }
1104
+ const DEPTH_OVERFLOW = 20;
1105
+ // Record a transformation in undo history.
1106
+ function applyTransaction(history, state, tr, options) {
1107
+ let historyTr = tr.getMeta(historyKey),
1108
+ rebased;
1109
+ if (historyTr) return historyTr.historyState;
1110
+ if (tr.getMeta(closeHistoryKey)) history = new HistoryState(history.done, history.undone, null, 0, -1);
1111
+ let appended = tr.getMeta("appendedTransaction");
1112
+ if (tr.steps.length == 0) {
1113
+ return history;
1114
+ } else if (appended && appended.getMeta(historyKey)) {
1115
+ if (appended.getMeta(historyKey).redo) return new HistoryState(history.done.addTransform(tr, undefined, options, mustPreserveItems(state)), history.undone, rangesFor(tr.mapping.maps[tr.steps.length - 1]), history.prevTime, history.prevComposition);else return new HistoryState(history.done, history.undone.addTransform(tr, undefined, options, mustPreserveItems(state)), null, history.prevTime, history.prevComposition);
1116
+ } else if (tr.getMeta("addToHistory") !== false && !(appended && appended.getMeta("addToHistory") === false)) {
1117
+ // Group transforms that occur in quick succession into one event.
1118
+ let composition = tr.getMeta("composition");
1119
+ let newGroup = history.prevTime == 0 || !appended && history.prevComposition != composition && (history.prevTime < (tr.time || 0) - options.newGroupDelay || !isAdjacentTo(tr, history.prevRanges));
1120
+ let prevRanges = appended ? mapRanges(history.prevRanges, tr.mapping) : rangesFor(tr.mapping.maps[tr.steps.length - 1]);
1121
+ return new HistoryState(history.done.addTransform(tr, newGroup ? state.selection.getBookmark() : undefined, options, mustPreserveItems(state)), Branch.empty, prevRanges, tr.time, composition == null ? history.prevComposition : composition);
1122
+ } else if (rebased = tr.getMeta("rebased")) {
1123
+ // Used by the collab module to tell the history that some of its
1124
+ // content has been rebased.
1125
+ return new HistoryState(history.done.rebased(tr, rebased), history.undone.rebased(tr, rebased), mapRanges(history.prevRanges, tr.mapping), history.prevTime, history.prevComposition);
1126
+ } else {
1127
+ return new HistoryState(history.done.addMaps(tr.mapping.maps), history.undone.addMaps(tr.mapping.maps), mapRanges(history.prevRanges, tr.mapping), history.prevTime, history.prevComposition);
1128
+ }
1129
+ }
1130
+ function isAdjacentTo(transform, prevRanges) {
1131
+ if (!prevRanges) return false;
1132
+ if (!transform.docChanged) return true;
1133
+ let adjacent = false;
1134
+ transform.mapping.maps[0].forEach((start, end) => {
1135
+ for (let i = 0; i < prevRanges.length; i += 2) if (start <= prevRanges[i + 1] && end >= prevRanges[i]) adjacent = true;
1136
+ });
1137
+ return adjacent;
1138
+ }
1139
+ function rangesFor(map) {
1140
+ let result = [];
1141
+ map.forEach((_from, _to, from, to) => result.push(from, to));
1142
+ return result;
1143
+ }
1144
+ function mapRanges(ranges, mapping) {
1145
+ if (!ranges) return null;
1146
+ let result = [];
1147
+ for (let i = 0; i < ranges.length; i += 2) {
1148
+ let from = mapping.map(ranges[i], 1),
1149
+ to = mapping.map(ranges[i + 1], -1);
1150
+ if (from <= to) result.push(from, to);
1151
+ }
1152
+ return result;
1153
+ }
1154
+ // Apply the latest event from one branch to the document and shift the event
1155
+ // onto the other branch.
1156
+ function histTransaction(history, state, dispatch, redo) {
1157
+ let preserveItems = mustPreserveItems(state);
1158
+ let histOptions = historyKey.get(state).spec.config;
1159
+ let pop = (redo ? history.undone : history.done).popEvent(state, preserveItems);
1160
+ if (!pop) return;
1161
+ let selection = pop.selection.resolve(pop.transform.doc);
1162
+ let added = (redo ? history.done : history.undone).addTransform(pop.transform, state.selection.getBookmark(), histOptions, preserveItems);
1163
+ let newHist = new HistoryState(redo ? added : pop.remaining, redo ? pop.remaining : added, null, 0, -1);
1164
+ dispatch(pop.transform.setSelection(selection).setMeta(historyKey, {
1165
+ redo,
1166
+ historyState: newHist
1167
+ }).scrollIntoView());
1168
+ }
1169
+ let cachedPreserveItems = false,
1170
+ cachedPreserveItemsPlugins = null;
1171
+ // Check whether any plugin in the given state has a
1172
+ // `historyPreserveItems` property in its spec, in which case we must
1173
+ // preserve steps exactly as they came in, so that they can be
1174
+ // rebased.
1175
+ function mustPreserveItems(state) {
1176
+ let plugins = state.plugins;
1177
+ if (cachedPreserveItemsPlugins != plugins) {
1178
+ cachedPreserveItems = false;
1179
+ cachedPreserveItemsPlugins = plugins;
1180
+ for (let i = 0; i < plugins.length; i++) if (plugins[i].spec.historyPreserveItems) {
1181
+ cachedPreserveItems = true;
1182
+ break;
1183
+ }
1184
+ }
1185
+ return cachedPreserveItems;
1186
+ }
1187
+ const historyKey = new PluginKey("history");
1188
+ const closeHistoryKey = new PluginKey("closeHistory");
1189
+ /**
1190
+ Returns a plugin that enables the undo history for an editor. The
1191
+ plugin will track undo and redo stacks, which can be used with the
1192
+ [`undo`](https://prosemirror.net/docs/ref/#history.undo) and [`redo`](https://prosemirror.net/docs/ref/#history.redo) commands.
1193
+
1194
+ You can set an `"addToHistory"` [metadata
1195
+ property](https://prosemirror.net/docs/ref/#state.Transaction.setMeta) of `false` on a transaction
1196
+ to prevent it from being rolled back by undo.
1197
+ */
1198
+ function history() {
1199
+ let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1200
+ config = {
1201
+ depth: config.depth || 100,
1202
+ newGroupDelay: config.newGroupDelay || 500
1203
+ };
1204
+ return new Plugin({
1205
+ key: historyKey,
1206
+ state: {
1207
+ init() {
1208
+ return new HistoryState(Branch.empty, Branch.empty, null, 0, -1);
1209
+ },
1210
+ apply(tr, hist, state) {
1211
+ return applyTransaction(hist, state, tr, config);
1212
+ }
1213
+ },
1214
+ config,
1215
+ props: {
1216
+ handleDOMEvents: {
1217
+ beforeinput(view, e) {
1218
+ let inputType = e.inputType;
1219
+ let command = inputType == "historyUndo" ? undo : inputType == "historyRedo" ? redo : null;
1220
+ if (!command) return false;
1221
+ e.preventDefault();
1222
+ return command(view.state, view.dispatch);
1223
+ }
1224
+ }
1225
+ }
1226
+ });
1227
+ }
1228
+ /**
1229
+ A command function that undoes the last change, if any.
1230
+ */
1231
+ const undo = (state, dispatch) => {
1232
+ let hist = historyKey.getState(state);
1233
+ if (!hist || hist.done.eventCount == 0) return false;
1234
+ if (dispatch) histTransaction(hist, state, dispatch, false);
1235
+ return true;
1236
+ };
1237
+ /**
1238
+ A command function that redoes the last undone change, if any.
1239
+ */
1240
+ const redo = (state, dispatch) => {
1241
+ let hist = historyKey.getState(state);
1242
+ if (!hist || hist.undone.eventCount == 0) return false;
1243
+ if (dispatch) histTransaction(hist, state, dispatch, true);
1244
+ return true;
1245
+ };
1246
+
1247
+ const History = Extension.create({
1248
+ name: 'history',
1249
+ addOptions() {
1250
+ return {
1251
+ depth: 100,
1252
+ newGroupDelay: 500
1253
+ };
1254
+ },
1255
+ addCommands() {
1256
+ return {
1257
+ undo: () => _ref => {
1258
+ let {
1259
+ state,
1260
+ dispatch
1261
+ } = _ref;
1262
+ return undo(state, dispatch);
1263
+ },
1264
+ redo: () => _ref2 => {
1265
+ let {
1266
+ state,
1267
+ dispatch
1268
+ } = _ref2;
1269
+ return redo(state, dispatch);
1270
+ }
1271
+ };
1272
+ },
1273
+ addProseMirrorPlugins() {
1274
+ return [history(this.options)];
1275
+ },
1276
+ addKeyboardShortcuts() {
1277
+ return {
1278
+ 'Mod-z': () => this.editor.commands.undo(),
1279
+ 'Mod-y': () => this.editor.commands.redo(),
1280
+ 'Shift-Mod-z': () => this.editor.commands.redo(),
1281
+ // Russian keyboard layouts
1282
+ 'Mod-я': () => this.editor.commands.undo(),
1283
+ 'Shift-Mod-я': () => this.editor.commands.redo()
1284
+ };
1285
+ }
1286
+ });
1287
+
1288
+ const HorizontalRule = Node.create({
1289
+ name: 'horizontalRule',
1290
+ addOptions() {
1291
+ return {
1292
+ HTMLAttributes: {}
1293
+ };
1294
+ },
1295
+ group: 'block',
1296
+ parseHTML() {
1297
+ return [{
1298
+ tag: 'hr'
1299
+ }];
1300
+ },
1301
+ renderHTML(_ref) {
1302
+ let {
1303
+ HTMLAttributes
1304
+ } = _ref;
1305
+ return ['hr', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
1306
+ },
1307
+ addCommands() {
1308
+ return {
1309
+ setHorizontalRule: () => _ref2 => {
1310
+ let {
1311
+ chain
1312
+ } = _ref2;
1313
+ return chain().insertContent({
1314
+ type: this.name
1315
+ })
1316
+ // set cursor after horizontal rule
1317
+ .command(_ref3 => {
1318
+ let {
1319
+ tr,
1320
+ dispatch
1321
+ } = _ref3;
1322
+ var _a;
1323
+ if (dispatch) {
1324
+ const {
1325
+ $to
1326
+ } = tr.selection;
1327
+ const posAfter = $to.end();
1328
+ if ($to.nodeAfter) {
1329
+ tr.setSelection(TextSelection.create(tr.doc, $to.pos));
1330
+ } else {
1331
+ // add node after horizontal rule if it’s the end of the document
1332
+ const node = (_a = $to.parent.type.contentMatch.defaultType) === null || _a === void 0 ? void 0 : _a.create();
1333
+ if (node) {
1334
+ tr.insert(posAfter, node);
1335
+ tr.setSelection(TextSelection.create(tr.doc, posAfter));
1336
+ }
1337
+ }
1338
+ tr.scrollIntoView();
1339
+ }
1340
+ return true;
1341
+ }).run();
1342
+ }
1343
+ };
1344
+ },
1345
+ addInputRules() {
1346
+ return [nodeInputRule({
1347
+ find: /^(?:---|—-|___\s|\*\*\*\s)$/,
1348
+ type: this.type
1349
+ })];
1350
+ }
1351
+ });
1352
+
1353
+ const Text = Node.create({
1354
+ name: 'text',
1355
+ group: 'inline'
1356
+ });
1357
+
1358
+ const StarterKit = Extension.create({
1359
+ name: 'starterKit',
1360
+ addExtensions() {
1361
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
1362
+ const extensions = [];
1363
+ if (this.options.blockquote !== false) {
1364
+ extensions.push(Blockquote.configure((_a = this.options) === null || _a === void 0 ? void 0 : _a.blockquote));
1365
+ }
1366
+ if (this.options.bold !== false) {
1367
+ extensions.push(Bold.configure((_b = this.options) === null || _b === void 0 ? void 0 : _b.bold));
1368
+ }
1369
+ if (this.options.bulletList !== false) {
1370
+ extensions.push(BulletList.configure((_c = this.options) === null || _c === void 0 ? void 0 : _c.bulletList));
1371
+ }
1372
+ if (this.options.code !== false) {
1373
+ extensions.push(Code.configure((_d = this.options) === null || _d === void 0 ? void 0 : _d.code));
1374
+ }
1375
+ if (this.options.codeBlock !== false) {
1376
+ extensions.push(CodeBlock.configure((_e = this.options) === null || _e === void 0 ? void 0 : _e.codeBlock));
1377
+ }
1378
+ if (this.options.document !== false) {
1379
+ extensions.push(Document.configure((_f = this.options) === null || _f === void 0 ? void 0 : _f.document));
1380
+ }
1381
+ if (this.options.dropcursor !== false) {
1382
+ extensions.push(Dropcursor.configure((_g = this.options) === null || _g === void 0 ? void 0 : _g.dropcursor));
1383
+ }
1384
+ if (this.options.gapcursor !== false) {
1385
+ extensions.push(Gapcursor.configure((_h = this.options) === null || _h === void 0 ? void 0 : _h.gapcursor));
1386
+ }
1387
+ if (this.options.hardBreak !== false) {
1388
+ extensions.push(HardBreak.configure((_j = this.options) === null || _j === void 0 ? void 0 : _j.hardBreak));
1389
+ }
1390
+ if (this.options.heading !== false) {
1391
+ extensions.push(Heading.configure((_k = this.options) === null || _k === void 0 ? void 0 : _k.heading));
1392
+ }
1393
+ if (this.options.history !== false) {
1394
+ extensions.push(History.configure((_l = this.options) === null || _l === void 0 ? void 0 : _l.history));
1395
+ }
1396
+ if (this.options.horizontalRule !== false) {
1397
+ extensions.push(HorizontalRule.configure((_m = this.options) === null || _m === void 0 ? void 0 : _m.horizontalRule));
1398
+ }
1399
+ if (this.options.italic !== false) {
1400
+ extensions.push(Italic.configure((_o = this.options) === null || _o === void 0 ? void 0 : _o.italic));
1401
+ }
1402
+ if (this.options.listItem !== false) {
1403
+ extensions.push(ListItem.configure((_p = this.options) === null || _p === void 0 ? void 0 : _p.listItem));
1404
+ }
1405
+ if (this.options.orderedList !== false) {
1406
+ extensions.push(OrderedList.configure((_q = this.options) === null || _q === void 0 ? void 0 : _q.orderedList));
1407
+ }
1408
+ if (this.options.paragraph !== false) {
1409
+ extensions.push(Paragraph.configure((_r = this.options) === null || _r === void 0 ? void 0 : _r.paragraph));
1410
+ }
1411
+ if (this.options.strike !== false) {
1412
+ extensions.push(Strike.configure((_s = this.options) === null || _s === void 0 ? void 0 : _s.strike));
1413
+ }
1414
+ if (this.options.text !== false) {
1415
+ extensions.push(Text.configure((_t = this.options) === null || _t === void 0 ? void 0 : _t.text));
1416
+ }
1417
+ return extensions;
1418
+ }
1419
+ });
1420
+
1421
+ const Placeholder = Extension.create({
1422
+ name: 'placeholder',
1423
+ addOptions() {
1424
+ return {
1425
+ emptyEditorClass: 'is-editor-empty',
1426
+ emptyNodeClass: 'is-empty',
1427
+ placeholder: 'Write something …',
1428
+ showOnlyWhenEditable: true,
1429
+ showOnlyCurrent: true,
1430
+ includeChildren: false
1431
+ };
1432
+ },
1433
+ addProseMirrorPlugins() {
1434
+ return [new Plugin({
1435
+ key: new PluginKey('placeholder'),
1436
+ props: {
1437
+ decorations: _ref => {
1438
+ let {
1439
+ doc,
1440
+ selection
1441
+ } = _ref;
1442
+ const active = this.editor.isEditable || !this.options.showOnlyWhenEditable;
1443
+ const {
1444
+ anchor
1445
+ } = selection;
1446
+ const decorations = [];
1447
+ if (!active) {
1448
+ return null;
1449
+ }
1450
+ // only calculate isEmpty once due to its performance impacts (see issue #3360)
1451
+ const emptyDocInstance = doc.type.createAndFill();
1452
+ const isEditorEmpty = (emptyDocInstance === null || emptyDocInstance === void 0 ? void 0 : emptyDocInstance.sameMarkup(doc)) && emptyDocInstance.content.findDiffStart(doc.content) === null;
1453
+ doc.descendants((node, pos) => {
1454
+ const hasAnchor = anchor >= pos && anchor <= pos + node.nodeSize;
1455
+ const isEmpty = !node.isLeaf && !node.childCount;
1456
+ if ((hasAnchor || !this.options.showOnlyCurrent) && isEmpty) {
1457
+ const classes = [this.options.emptyNodeClass];
1458
+ if (isEditorEmpty) {
1459
+ classes.push(this.options.emptyEditorClass);
1460
+ }
1461
+ const decoration = Decoration.node(pos, pos + node.nodeSize, {
1462
+ class: classes.join(' '),
1463
+ 'data-placeholder': typeof this.options.placeholder === 'function' ? this.options.placeholder({
1464
+ editor: this.editor,
1465
+ node,
1466
+ pos,
1467
+ hasAnchor
1468
+ }) : this.options.placeholder
1469
+ });
1470
+ decorations.push(decoration);
1471
+ }
1472
+ return this.options.includeChildren;
1473
+ });
1474
+ return DecorationSet.create(doc, decorations);
1475
+ }
1476
+ }
1477
+ })];
1478
+ }
1479
+ });
1480
+
1481
+ var script = defineComponent({
1482
+ name: 'OrRichTextEditor',
1483
+ components: {
1484
+ OrIconButton: __vue_component__$1,
1485
+ OrLabel: __vue_component__$2,
1486
+ OrMenuItem: __vue_component__$3,
1487
+ OrMenu: __vue_component__$4,
1488
+ OrModal: __vue_component__$5,
1489
+ OrInput: __vue_component__$6,
1490
+ OrButton: __vue_component__$7,
1491
+ OrPopover: __vue_component__$8
1492
+ },
1493
+ inheritAttrs: false,
1494
+ model: {
1495
+ prop: 'modelValue',
1496
+ event: 'update:modelValue'
1497
+ },
1498
+ props: {
1499
+ modelValue: {
1500
+ type: String,
1501
+ default: undefined
1502
+ },
1503
+ toolbar: {
1504
+ type: Array,
1505
+ default: () => []
1506
+ },
1507
+ description: {
1508
+ type: String,
1509
+ default: ''
1510
+ },
1511
+ placeholder: {
1512
+ type: String,
1513
+ default: ''
1514
+ },
1515
+ autofocus: {
1516
+ type: Boolean,
1517
+ default: false
1518
+ },
1519
+ format: {
1520
+ type: String,
1521
+ default: Formats.Markup
1522
+ },
1523
+ fullHeight: {
1524
+ type: Boolean,
1525
+ default: false
1526
+ }
1527
+ },
1528
+ emits: ['update:modelValue', 'input', 'file-upload'],
1529
+ expose: ['root'],
1530
+ setup(props, context) {
1531
+ // Refs
1532
+ const root = ref();
1533
+ let editor = null;
1534
+ const editorRef = ref();
1535
+ const textareaRef = ref();
1536
+ const containerRef = ref();
1537
+ const toolbarRef = ref();
1538
+ const moreButtonRef = ref();
1539
+ const moreRef = ref();
1540
+ const toolbarButtonRef = ref();
1541
+ const menuRef = ref();
1542
+ // isActive should be set with default values for all toolbar buttons, otherwise it will not work in vue2
1543
+ const isActive = ref({
1544
+ bold: false,
1545
+ italic: false,
1546
+ underline: false,
1547
+ strike: false,
1548
+ bulletList: false,
1549
+ orderedList: false,
1550
+ link: false,
1551
+ highlight: false,
1552
+ redo: false,
1553
+ undo: false,
1554
+ codeBlock: false,
1555
+ blockquote: false,
1556
+ file: false,
1557
+ source: false
1558
+ });
1559
+ const isFocused = ref(props.autofocus);
1560
+ const headingLevels = [1, 2, 3, 4];
1561
+ const activeHeadingLevel = ref(0);
1562
+ const markdownOutput = ref('');
1563
+ const isOpenLinkModal = ref(false);
1564
+ const disableMarkdown = ref(false);
1565
+ const text = ref('');
1566
+ const link = ref('');
1567
+ const countOfNotVisibleTools = ref(0);
1568
+ const sourceValue = ref('');
1569
+ let trap = useFocusTrap(editorRef, {
1570
+ immediate: true,
1571
+ fallbackFocus: '.container',
1572
+ allowOutsideClick: true
1573
+ });
1574
+ const iconsEnum = ref({
1575
+ bold: 'format_bold',
1576
+ italic: 'format_italic',
1577
+ underline: 'format_underlined',
1578
+ strike: 'format_strikethrough',
1579
+ bulletList: 'format_list_bulleted',
1580
+ orderedList: 'format_list_numbered',
1581
+ link: 'link',
1582
+ highlight: 'highlight',
1583
+ redo: 'redo',
1584
+ undo: 'undo',
1585
+ codeBlock: 'code_blocks',
1586
+ blockquote: 'format_quote',
1587
+ file: 'attach_file',
1588
+ source: 'source_notes'
1589
+ });
1590
+ const iconTooltipsEnum = ref({
1591
+ bold: 'Bold',
1592
+ italic: 'Italic',
1593
+ underline: 'Underline',
1594
+ strike: 'Strike',
1595
+ bulletList: 'Bulleted List',
1596
+ orderedList: 'Numbered List',
1597
+ link: 'Link',
1598
+ highlight: 'Highlight',
1599
+ redo: 'Redo',
1600
+ undo: 'Undo',
1601
+ codeBlock: 'Code Block',
1602
+ blockquote: 'Quote',
1603
+ file: 'File',
1604
+ source: 'Source'
1605
+ });
1606
+ useResizeObserver(root, entries => {
1607
+ var _a, _b;
1608
+ const entry = entries[0];
1609
+ const {
1610
+ width
1611
+ } = entry.contentRect;
1612
+ if (containerRef.value && toolbarRef.value && toolbarLength.value) {
1613
+ let lengthOfItem = 0;
1614
+ lengthOfItem = ((_b = (_a = toolbarRef.value.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.offsetWidth) + 16;
1615
+ const count = width / lengthOfItem - 2;
1616
+ countOfNotVisibleTools.value = Math.round(toolbarLength.value - count);
1617
+ }
1618
+ });
1619
+ onMounted(() => {
1620
+ editor = new Editor({
1621
+ onUpdate: _ref => {
1622
+ let {
1623
+ editor
1624
+ } = _ref;
1625
+ isFocused.value = true;
1626
+ setActiveFormats();
1627
+ const html = editor.getHTML();
1628
+ const text = editor.getText();
1629
+ if (props.format === 'markdown') {
1630
+ markdownOutput.value = serialize(editor.schema, editor.getJSON());
1631
+ proxyModelValue.value = markdownOutput.value;
1632
+ } else {
1633
+ proxyModelValue.value = text === '' ? text : html;
1634
+ }
1635
+ },
1636
+ onCreate: _ref2 => {
1637
+ let {
1638
+ editor
1639
+ } = _ref2;
1640
+ if (props.format === 'markdown') {
1641
+ const deserialized = deserialize(editor.schema, proxyModelValue.value);
1642
+ editor.commands.setContent(deserialized);
1643
+ } else {
1644
+ editor.commands.setContent(proxyModelValue.value);
1645
+ }
1646
+ },
1647
+ element: editorRef.value,
1648
+ autofocus: props.autofocus,
1649
+ enableInputRules: true,
1650
+ enablePasteRules: true,
1651
+ extensions: [codemirrorNode, StarterKit.configure({
1652
+ heading: false,
1653
+ codeBlock: false,
1654
+ paragraph: false,
1655
+ bulletList: false,
1656
+ orderedList: false,
1657
+ blockquote: false
1658
+ }), Paragraph.configure({
1659
+ HTMLAttributes: {
1660
+ class: 'my-xs'
1661
+ }
1662
+ }), BulletList.configure({
1663
+ HTMLAttributes: {
1664
+ class: 'mx-lg my-xs list-disc'
1665
+ }
1666
+ }), OrderedList.configure({
1667
+ HTMLAttributes: {
1668
+ class: 'mx-lg my-xs list-decimal'
1669
+ }
1670
+ }), Blockquote.configure({
1671
+ HTMLAttributes: {
1672
+ class: 'my-sm mx-lg px-lg border-l-2 border-outline'
1673
+ }
1674
+ }), Heading.configure({
1675
+ levels: headingLevels
1676
+ }).extend({
1677
+ levels: headingLevels,
1678
+ renderHTML(_ref3) {
1679
+ let {
1680
+ node,
1681
+ HTMLAttributes
1682
+ } = _ref3;
1683
+ return ['h' + node.attrs.level, mergeAttributes(HTMLAttributes, {
1684
+ class: `typography-headline-${node.attrs.level} my-xs`
1685
+ }), 0];
1686
+ }
1687
+ }), Underline, Link.configure({
1688
+ openOnClick: true,
1689
+ linkOnPaste: true,
1690
+ autolink: false,
1691
+ protocols: ['ftp', 'mailto', 'http', 'https'],
1692
+ validate: href => /^https?:\/\//.test(href),
1693
+ HTMLAttributes: {
1694
+ class: 'text-primary cursor-pointer'
1695
+ }
1696
+ }), Highlight, Placeholder.configure({
1697
+ placeholder: props.placeholder,
1698
+ emptyEditorClass: 'is-editor-empty text-outline'
1699
+ })],
1700
+ editorProps: {
1701
+ attributes: {
1702
+ class: 'flex flex-col focus:outline-none gap-xs'
1703
+ }
1704
+ },
1705
+ parseOptions: {
1706
+ preserveWhitespace: true
1707
+ }
1708
+ });
1709
+ setActiveFormats();
1710
+ trap.activate();
1711
+ });
1712
+ onBeforeUnmount(() => {
1713
+ editor === null || editor === void 0 ? void 0 : editor.destroy();
1714
+ });
1715
+ onClickOutside(root, () => {
1716
+ isFocused.value = false;
1717
+ trap.deactivate();
1718
+ });
1719
+ // Computed
1720
+ const proxyModelValue = computed({
1721
+ get: () => {
1722
+ return props.modelValue;
1723
+ },
1724
+ set: value => {
1725
+ context.emit('input', value);
1726
+ context.emit('update:modelValue', value);
1727
+ }
1728
+ });
1729
+ const getIndexOfHeading = computed(() => {
1730
+ return props.toolbar.flat().indexOf('heading');
1731
+ });
1732
+ const headingIcon = computed(() => {
1733
+ if (activeHeadingLevel.value && isActive.value.heading) {
1734
+ return `format_h${activeHeadingLevel.value}`;
1735
+ }
1736
+ return 'format_paragraph';
1737
+ });
1738
+ const toolbarLength = computed(() => {
1739
+ return props.toolbar.flat().length;
1740
+ });
1741
+ const notVisibleTools = computed(() => {
1742
+ const count = countOfNotVisibleTools.value;
1743
+ const toolbar = props.toolbar.flat();
1744
+ let notVisible = new Set(toolbar.slice(toolbar.length - count, toolbar.length));
1745
+ props.toolbar.forEach(tools => {
1746
+ if (tools.some(item => notVisible.has(item))) {
1747
+ tools.forEach(item => notVisible.add(item));
1748
+ }
1749
+ });
1750
+ return notVisible;
1751
+ });
1752
+ //Methods
1753
+ const handleEditorClick = () => {
1754
+ var _a;
1755
+ setActiveFormats();
1756
+ isFocused.value = true;
1757
+ editor === null || editor === void 0 ? void 0 : editor.commands.focus();
1758
+ activeHeadingLevel.value = ((_a = editor === null || editor === void 0 ? void 0 : editor.getAttributes('heading')) === null || _a === void 0 ? void 0 : _a.level) || 0;
1759
+ };
1760
+ const isVisible = value => {
1761
+ if (Array.isArray(value)) {
1762
+ const isHaveNotVisibleTools = value.some(item => notVisibleTools.value.has(item));
1763
+ return isHaveNotVisibleTools;
1764
+ }
1765
+ return !notVisibleTools.value.has(value);
1766
+ };
1767
+ const handleInput = event => {
1768
+ const target = event.target;
1769
+ const value = target.value;
1770
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value));
1771
+ markdownOutput.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
1772
+ proxyModelValue.value = markdownOutput.value;
1773
+ };
1774
+ const handleToolbarClick = (item, level) => {
1775
+ var _a, _b;
1776
+ switch (item) {
1777
+ case 'source':
1778
+ disableMarkdown.value = !disableMarkdown.value;
1779
+ sourceValue.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
1780
+ nextTick(() => {
1781
+ var _a;
1782
+ return (_a = textareaRef.value) === null || _a === void 0 ? void 0 : _a.focus();
1783
+ });
1784
+ break;
1785
+ case 'bulletList':
1786
+ case 'orderedList':
1787
+ item === 'bulletList' ? editor === null || editor === void 0 ? void 0 : editor.commands.toggleBulletList() : editor === null || editor === void 0 ? void 0 : editor.commands.toggleOrderedList();
1788
+ break;
1789
+ case 'link':
1790
+ if (editor) {
1791
+ const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
1792
+ const {
1793
+ from,
1794
+ to,
1795
+ empty
1796
+ } = editor.state.selection;
1797
+ const isLink = (_a = editor.view.state.doc.nodeAt(cursorPosition)) === null || _a === void 0 ? void 0 : _a.marks.filter(mark => mark.type.name === 'link');
1798
+ const existedText = (isLink === null || isLink === void 0 ? void 0 : isLink.length) ? ((_b = editor.view.state.doc.nodeAt(cursorPosition)) === null || _b === void 0 ? void 0 : _b.text) || '' : '';
1799
+ text.value = empty ? existedText : editor.state.doc.textBetween(from, to, ' ');
1800
+ link.value = editor.getAttributes('link').href || '';
1801
+ }
1802
+ isOpenLinkModal.value = !isOpenLinkModal.value;
1803
+ break;
1804
+ case 'blockquote':
1805
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleBlockquote().run();
1806
+ break;
1807
+ case 'codeBlock':
1808
+ if (!isActive.value['codeBlock']) {
1809
+ editor === null || editor === void 0 ? void 0 : editor.commands.setNode(item, {
1810
+ language: 'javascript'
1811
+ });
1812
+ } else {
1813
+ editor === null || editor === void 0 ? void 0 : editor.commands.setNode('paragraph');
1814
+ }
1815
+ break;
1816
+ case 'heading':
1817
+ if (!level) {
1818
+ editor === null || editor === void 0 ? void 0 : editor.commands.setParagraph();
1819
+ activeHeadingLevel.value = 0;
1820
+ } else {
1821
+ activeHeadingLevel.value = level;
1822
+ editor === null || editor === void 0 ? void 0 : editor.commands.toggleHeading({
1823
+ level: level
1824
+ });
1825
+ }
1826
+ editor === null || editor === void 0 ? void 0 : editor.commands.focus();
1827
+ break;
1828
+ case 'undo':
1829
+ case 'redo':
1830
+ item === 'undo' ? editor === null || editor === void 0 ? void 0 : editor.commands.undo() : editor === null || editor === void 0 ? void 0 : editor.commands.redo();
1831
+ break;
1832
+ case 'file':
1833
+ context.emit('file-upload');
1834
+ break;
1835
+ default:
1836
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleMark(item).run();
1837
+ break;
1838
+ }
1839
+ };
1840
+ const attachLink = async () => {
1841
+ var _a, _b;
1842
+ // empty
1843
+ if (link.value === '') {
1844
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().extendMarkRange('link').unsetLink().run();
1845
+ }
1846
+ const isEmptySelection = editor === null || editor === void 0 ? void 0 : editor.state.selection.empty;
1847
+ const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
1848
+ const isLink = (_a = editor === null || editor === void 0 ? void 0 : editor.view.state.doc.nodeAt(cursorPosition)) === null || _a === void 0 ? void 0 : _a.marks.filter(mark => mark.type.name === 'link');
1849
+ const existedText = (isLink === null || isLink === void 0 ? void 0 : isLink.length) ? (_b = editor === null || editor === void 0 ? void 0 : editor.view.state.doc.nodeAt(cursorPosition)) === null || _b === void 0 ? void 0 : _b.text : '';
1850
+ if (link.value && isEmptySelection && !existedText) {
1851
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
1852
+ href: link.value,
1853
+ target: '__blank'
1854
+ }).command(_ref4 => {
1855
+ let {
1856
+ tr
1857
+ } = _ref4;
1858
+ const preparedValue = text.value[text.value.length - 1] === ' ' ? text.value : `${text.value} `;
1859
+ tr.insertText(preparedValue);
1860
+ return true;
1861
+ }).run();
1862
+ }
1863
+ if (link.value && existedText === text.value && isEmptySelection) {
1864
+ editor === null || editor === void 0 ? void 0 : editor.chain().extendMarkRange('link').updateAttributes('link', {
1865
+ href: link.value
1866
+ }).run();
1867
+ }
1868
+ if (link.value && !isEmptySelection) {
1869
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
1870
+ href: link.value,
1871
+ target: '__blank'
1872
+ }).run();
1873
+ }
1874
+ text.value = '';
1875
+ link.value = '';
1876
+ isOpenLinkModal.value = false;
1877
+ };
1878
+ const discardLink = () => {
1879
+ isOpenLinkModal.value = false;
1880
+ };
1881
+ const setActiveFormats = () => {
1882
+ const toolbarList = props.toolbar.flat();
1883
+ toolbarList.forEach(item => {
1884
+ if (item === 'source') {
1885
+ isActive.value[item] = disableMarkdown.value;
1886
+ } else {
1887
+ isActive.value[item] = (editor === null || editor === void 0 ? void 0 : editor.isActive(item)) || false;
1888
+ }
1889
+ });
1890
+ };
1891
+ // Styles
1892
+ const rootStyles = computed(() => {
1893
+ return ['or-rich-text-editor', ...(props.fullHeight ? ['h-full'] : [])];
1894
+ });
1895
+ const containerStyles = computed(() => {
1896
+ return [...EditorContainer, ...(props.fullHeight ? ['h-full'] : [])];
1897
+ });
1898
+ const toolbarContainerStyles = computed(() => {
1899
+ return [...ToolbarContainer];
1900
+ });
1901
+ const toolbarStyles = computed(() => {
1902
+ return [...Toolbar,
1903
+ // 'overflow-x-hidden',
1904
+ ...(isFocused.value ? ToolbarButtonFocused : ToolbarButton)];
1905
+ });
1906
+ const editorInputStyles = computed(() => {
1907
+ return ['tiptap-editor-v3', ...(props.fullHeight ? ['h-full overflow-y-auto'] : []), ...EditorInput];
1908
+ });
1909
+ //Effects
1910
+ watch(proxyModelValue, value => {
1911
+ if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && props.format !== 'markdown') {
1912
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
1913
+ }
1914
+ if (props.format === 'markdown' && value !== markdownOutput.value) {
1915
+ //TODO: const deserialized = deserialize(editor?.schema, value);
1916
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
1917
+ }
1918
+ });
1919
+ return {
1920
+ editor,
1921
+ editorRef,
1922
+ toolbarRef,
1923
+ containerRef,
1924
+ toolbarButtonRef,
1925
+ moreButtonRef,
1926
+ textareaRef,
1927
+ moreRef,
1928
+ menuRef,
1929
+ iconsEnum,
1930
+ handleToolbarClick,
1931
+ handleEditorClick,
1932
+ isActive,
1933
+ iconTooltipsEnum,
1934
+ containerStyles,
1935
+ toolbarContainerStyles,
1936
+ toolbarStyles,
1937
+ rootStyles,
1938
+ root,
1939
+ editorInputStyles,
1940
+ getIndexOfHeading,
1941
+ headingLevels,
1942
+ headingIcon,
1943
+ attachLink,
1944
+ discardLink,
1945
+ isOpenLinkModal,
1946
+ text,
1947
+ link,
1948
+ isFocused,
1949
+ isVisible,
1950
+ countOfNotVisibleTools,
1951
+ notVisibleTools,
1952
+ handleInput,
1953
+ proxyModelValue,
1954
+ disableMarkdown,
1955
+ sourceValue
1956
+ };
1957
+ }
1958
+ });
1959
+
1960
+ var css_248z = ".tiptap-editor-v3 .is-editor-empty::before{float:left;height:0;pointer-events:none;content:attr(data-placeholder)}";
1961
+ styleInject(css_248z);
1962
+
1963
+ /* script */
1964
+ const __vue_script__ = script;
1965
+ /* template */
1966
+ var __vue_render__ = function () {
1967
+ var _vm = this;
1968
+ var _h = _vm.$createElement;
1969
+ var _c = _vm._self._c || _h;
1970
+ return _c('div', {
1971
+ ref: "root",
1972
+ class: _vm.rootStyles
1973
+ }, [_c('or-label', [_vm._v("\n " + _vm._s(_vm.description) + "\n ")]), _vm._v(" "), _c('div', {
1974
+ ref: "containerRef",
1975
+ class: _vm.containerStyles,
1976
+ on: {
1977
+ "click": function ($event) {
1978
+ return _vm.handleEditorClick();
1979
+ }
1980
+ }
1981
+ }, [_c('div', {
1982
+ ref: "toolbarRef",
1983
+ class: _vm.toolbarContainerStyles
1984
+ }, [_vm._l(_vm.toolbar, function (tools, index) {
1985
+ return _c('div', {
1986
+ key: index,
1987
+ class: _vm.toolbarStyles.concat([{
1988
+ 'hidden': _vm.isVisible(tools)
1989
+ }])
1990
+ }, _vm._l(tools, function (item) {
1991
+ return _c('div', {
1992
+ key: item,
1993
+ class: ['flex gap-md', {
1994
+ 'hidden': !_vm.isVisible(item)
1995
+ }]
1996
+ }, [item === 'heading' ? _c('or-icon-button', {
1997
+ ref: "toolbarButtonRef",
1998
+ refInFor: true,
1999
+ attrs: {
2000
+ "selected": _vm.isActive[item],
2001
+ "disabled": !_vm.isFocused,
2002
+ "tooltip": {
2003
+ text: item,
2004
+ placement: 'top'
2005
+ },
2006
+ "icon": {
2007
+ icon: _vm.headingIcon,
2008
+ variant: 'inherit',
2009
+ size: 'm'
2010
+ }
2011
+ },
2012
+ on: {
2013
+ "click": function ($event) {
2014
+ return _vm.menuRef.open();
2015
+ }
2016
+ }
2017
+ }) : _vm.isVisible(item) ? _c('or-icon-button', {
2018
+ attrs: {
2019
+ "tooltip": {
2020
+ text: _vm.iconTooltipsEnum[item],
2021
+ placement: 'top'
2022
+ },
2023
+ "selected": _vm.isActive[item],
2024
+ "disabled": !_vm.isFocused,
2025
+ "icon": {
2026
+ icon: _vm.iconsEnum[item],
2027
+ variant: 'inherit',
2028
+ size: 'm'
2029
+ }
2030
+ },
2031
+ on: {
2032
+ "click": function ($event) {
2033
+ return _vm.handleToolbarClick(item);
2034
+ }
2035
+ }
2036
+ }) : _vm._e()], 1);
2037
+ }), 0);
2038
+ }), _vm._v(" "), _vm.countOfNotVisibleTools > 0 ? _c('or-icon-button', {
2039
+ ref: "moreButtonRef",
2040
+ staticClass: "px-sm",
2041
+ attrs: {
2042
+ "disabled": !_vm.isFocused,
2043
+ "icon": {
2044
+ icon: 'more_horiz',
2045
+ variant: 'inherit',
2046
+ size: 'm'
2047
+ }
2048
+ },
2049
+ on: {
2050
+ "click": function ($event) {
2051
+ return _vm.moreRef.open();
2052
+ }
2053
+ }
2054
+ }) : _vm._e()], 2), _vm._v(" "), _c('div', {
2055
+ class: ['p-sm', {
2056
+ 'h-[calc(100%-32px)] md:h-[calc(100%-36px)]': _vm.fullHeight
2057
+ }]
2058
+ }, [_c('textarea', {
2059
+ directives: [{
2060
+ name: "show",
2061
+ rawName: "v-show",
2062
+ value: _vm.disableMarkdown,
2063
+ expression: "disableMarkdown"
2064
+ }, {
2065
+ name: "model",
2066
+ rawName: "v-model",
2067
+ value: _vm.sourceValue,
2068
+ expression: "sourceValue"
2069
+ }],
2070
+ ref: "textareaRef",
2071
+ staticClass: "w-full h-full resize-none border-none outline-none bg-transparent typography-body-2-regular",
2072
+ attrs: {
2073
+ "auto-focus": "",
2074
+ "activated": _vm.disableMarkdown
2075
+ },
2076
+ domProps: {
2077
+ "value": _vm.sourceValue
2078
+ },
2079
+ on: {
2080
+ "input": [function ($event) {
2081
+ if ($event.target.composing) {
2082
+ return;
2083
+ }
2084
+ _vm.sourceValue = $event.target.value;
2085
+ }, _vm.handleInput]
2086
+ }
2087
+ }), _vm._v(" "), _c('div', {
2088
+ directives: [{
2089
+ name: "show",
2090
+ rawName: "v-show",
2091
+ value: !_vm.disableMarkdown,
2092
+ expression: "!disableMarkdown"
2093
+ }],
2094
+ ref: "editorRef",
2095
+ class: _vm.editorInputStyles
2096
+ }), _vm._v(" "), _vm._t("files")], 2)]), _vm._v(" "), _vm.moreButtonRef ? _c('or-popover', {
2097
+ ref: "moreRef",
2098
+ attrs: {
2099
+ "trigger": _vm.moreButtonRef.root,
2100
+ "placement": "top-end"
2101
+ }
2102
+ }, [_c('div', {
2103
+ staticClass: "flex p-sm gap-md bg-on-primary"
2104
+ }, _vm._l(_vm.notVisibleTools, function (item) {
2105
+ return _c('or-icon-button', {
2106
+ key: item,
2107
+ attrs: {
2108
+ "tooltip": {
2109
+ text: _vm.iconTooltipsEnum[item],
2110
+ placement: 'top'
2111
+ },
2112
+ "selected": _vm.isActive[item],
2113
+ "icon": {
2114
+ icon: _vm.iconsEnum[item],
2115
+ variant: 'inherit',
2116
+ size: 'm'
2117
+ }
2118
+ },
2119
+ on: {
2120
+ "click": function ($event) {
2121
+ return _vm.handleToolbarClick(item);
2122
+ }
2123
+ }
2124
+ });
2125
+ }), 1)]) : _vm._e(), _vm._v(" "), _vm.toolbarButtonRef ? _c('or-menu', {
2126
+ ref: "menuRef",
2127
+ staticClass: "bg-on-primary",
2128
+ attrs: {
2129
+ "trigger": _vm.toolbarButtonRef[_vm.getIndexOfHeading].root,
2130
+ "placement": "bottom-start"
2131
+ }
2132
+ }, [_vm._l(_vm.headingLevels, function (heading) {
2133
+ return _c('or-menu-item', {
2134
+ key: heading,
2135
+ on: {
2136
+ "click": function ($event) {
2137
+ return _vm.handleToolbarClick('heading', heading);
2138
+ }
2139
+ }
2140
+ }, [_vm._v("\n Heading " + _vm._s(heading) + "\n ")]);
2141
+ }), _vm._v(" "), _c('or-menu-item', {
2142
+ on: {
2143
+ "click": function ($event) {
2144
+ return _vm.handleToolbarClick('heading');
2145
+ }
2146
+ }
2147
+ }, [_vm._v("\n None\n ")])], 2) : _vm._e(), _vm._v(" "), _c('or-modal', {
2148
+ attrs: {
2149
+ "is-open": _vm.isOpenLinkModal,
2150
+ "size": "s"
2151
+ },
2152
+ scopedSlots: _vm._u([{
2153
+ key: "header",
2154
+ fn: function () {
2155
+ return [_c('p', {
2156
+ staticClass: "text-headline-2"
2157
+ }, [_vm._v("\n Add Link\n ")])];
2158
+ },
2159
+ proxy: true
2160
+ }, {
2161
+ key: "footer",
2162
+ fn: function () {
2163
+ return [_c('div', {
2164
+ staticClass: "flex ml-auto gap-md"
2165
+ }, [_c('or-button', {
2166
+ attrs: {
2167
+ "variant": "outlined"
2168
+ },
2169
+ on: {
2170
+ "click": _vm.discardLink
2171
+ }
2172
+ }, [_c('p', [_vm._v("Cancel")])]), _vm._v(" "), _c('or-button', {
2173
+ on: {
2174
+ "click": _vm.attachLink
2175
+ }
2176
+ }, [_c('p', [_vm._v("Save")])])], 1)];
2177
+ },
2178
+ proxy: true
2179
+ }])
2180
+ }, [_vm._v(" "), _c('div', [_c('or-label', [_vm._v("\n Text\n ")]), _vm._v(" "), _c('or-input', {
2181
+ staticClass: "pb-md",
2182
+ attrs: {
2183
+ "placeholder": "Placeholder"
2184
+ },
2185
+ model: {
2186
+ value: _vm.text,
2187
+ callback: function ($$v) {
2188
+ _vm.text = $$v;
2189
+ },
2190
+ expression: "text"
2191
+ }
2192
+ }), _vm._v(" "), _c('or-label', [_vm._v("\n Link\n ")]), _vm._v(" "), _c('or-input', {
2193
+ attrs: {
2194
+ "placeholder": "Placeholder"
2195
+ },
2196
+ model: {
2197
+ value: _vm.link,
2198
+ callback: function ($$v) {
2199
+ _vm.link = $$v;
2200
+ },
2201
+ expression: "link"
2202
+ }
2203
+ })], 1)])], 1);
2204
+ };
2205
+ var __vue_staticRenderFns__ = [];
2206
+
2207
+ /* style */
2208
+ const __vue_inject_styles__ = undefined;
2209
+ /* scoped */
2210
+ const __vue_scope_id__ = undefined;
2211
+ /* module identifier */
2212
+ const __vue_module_identifier__ = undefined;
2213
+ /* functional template */
2214
+ const __vue_is_functional_template__ = false;
2215
+ /* style inject */
2216
+
2217
+ /* style inject SSR */
2218
+
2219
+ /* style inject shadow dom */
2220
+
2221
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
2222
+ render: __vue_render__,
2223
+ staticRenderFns: __vue_staticRenderFns__
2224
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
2225
+
2226
+ export { __vue_component__ as default };