@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,1910 @@
1
+ import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch, nextTick } from 'vue-demi';
2
+ import { u as useFocusTrap } from './useFocusTrap-a61a80ac.js';
3
+ import { f as useResizeObserver, o as onClickOutside } from './index-ae815a7e.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 './components/OrRichTextEditorV3/styles.js';
6
+ import { Formats } from './components/OrRichTextEditorV3/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 './components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js';
10
+ import './components/OrIconButtonV3/OrIconButton.js';
11
+ import './components/OrLabelV3/OrLabel.js';
12
+ import './components/OrMenuItemV3/OrMenuItem.js';
13
+ import './components/OrMenuV3/OrMenu.js';
14
+ import './components/OrModalV3/OrModal.js';
15
+ import { s as script$5 } from './OrModal.vue_vue_type_script_lang-9be48616.js';
16
+ import './components/OrInputV3/OrInput.js';
17
+ import './components/OrButtonV3/OrButton.js';
18
+ import './components/OrPopoverV3/OrPopover.js';
19
+ import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-bfc73aee.js';
20
+ import { s as script$2 } from './OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
21
+ import { s as script$3 } from './OrMenuItem.vue_vue_type_script_lang-b338d68a.js';
22
+ import { s as script$4 } from './OrMenu.vue_vue_type_script_lang-1311d4b9.js';
23
+ import { s as script$6 } from './OrInput.vue_vue_type_script_lang-634fe6f7.js';
24
+ import { s as script$7 } from './OrButton.vue_vue_type_script_lang-d31ada75.js';
25
+ import { s as script$8 } from './OrPopover.vue_vue_type_script_lang-6b004f70.js';
26
+
27
+ const inputRegex = /(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;
28
+ const pasteRegex = /(?:^|\s)((?:`)((?:[^`]+))(?:`))/g;
29
+ const Code = Mark.create({
30
+ name: 'code',
31
+ addOptions() {
32
+ return {
33
+ HTMLAttributes: {}
34
+ };
35
+ },
36
+ excludes: '_',
37
+ code: true,
38
+ exitable: true,
39
+ parseHTML() {
40
+ return [{
41
+ tag: 'code'
42
+ }];
43
+ },
44
+ renderHTML(_ref) {
45
+ let {
46
+ HTMLAttributes
47
+ } = _ref;
48
+ return ['code', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
49
+ },
50
+ addCommands() {
51
+ return {
52
+ setCode: () => _ref2 => {
53
+ let {
54
+ commands
55
+ } = _ref2;
56
+ return commands.setMark(this.name);
57
+ },
58
+ toggleCode: () => _ref3 => {
59
+ let {
60
+ commands
61
+ } = _ref3;
62
+ return commands.toggleMark(this.name);
63
+ },
64
+ unsetCode: () => _ref4 => {
65
+ let {
66
+ commands
67
+ } = _ref4;
68
+ return commands.unsetMark(this.name);
69
+ }
70
+ };
71
+ },
72
+ addKeyboardShortcuts() {
73
+ return {
74
+ 'Mod-e': () => this.editor.commands.toggleCode()
75
+ };
76
+ },
77
+ addInputRules() {
78
+ return [markInputRule({
79
+ find: inputRegex,
80
+ type: this.type
81
+ })];
82
+ },
83
+ addPasteRules() {
84
+ return [markPasteRule({
85
+ find: pasteRegex,
86
+ type: this.type
87
+ })];
88
+ }
89
+ });
90
+
91
+ const Document = Node.create({
92
+ name: 'doc',
93
+ topNode: true,
94
+ content: 'block+'
95
+ });
96
+
97
+ /**
98
+ Create a plugin that, when added to a ProseMirror instance,
99
+ causes a decoration to show up at the drop position when something
100
+ is dragged over the editor.
101
+
102
+ Nodes may add a `disableDropCursor` property to their spec to
103
+ control the showing of a drop cursor inside them. This may be a
104
+ boolean or a function, which will be called with a view and a
105
+ position, and should return a boolean.
106
+ */
107
+ function dropCursor() {
108
+ let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
109
+ return new Plugin({
110
+ view(editorView) {
111
+ return new DropCursorView(editorView, options);
112
+ }
113
+ });
114
+ }
115
+ class DropCursorView {
116
+ constructor(editorView, options) {
117
+ var _a;
118
+ this.editorView = editorView;
119
+ this.cursorPos = null;
120
+ this.element = null;
121
+ this.timeout = -1;
122
+ this.width = (_a = options.width) !== null && _a !== void 0 ? _a : 1;
123
+ this.color = options.color === false ? undefined : options.color || "black";
124
+ this.class = options.class;
125
+ this.handlers = ["dragover", "dragend", "drop", "dragleave"].map(name => {
126
+ let handler = e => {
127
+ this[name](e);
128
+ };
129
+ editorView.dom.addEventListener(name, handler);
130
+ return {
131
+ name,
132
+ handler
133
+ };
134
+ });
135
+ }
136
+ destroy() {
137
+ this.handlers.forEach(_ref => {
138
+ let {
139
+ name,
140
+ handler
141
+ } = _ref;
142
+ return this.editorView.dom.removeEventListener(name, handler);
143
+ });
144
+ }
145
+ update(editorView, prevState) {
146
+ if (this.cursorPos != null && prevState.doc != editorView.state.doc) {
147
+ if (this.cursorPos > editorView.state.doc.content.size) this.setCursor(null);else this.updateOverlay();
148
+ }
149
+ }
150
+ setCursor(pos) {
151
+ if (pos == this.cursorPos) return;
152
+ this.cursorPos = pos;
153
+ if (pos == null) {
154
+ this.element.parentNode.removeChild(this.element);
155
+ this.element = null;
156
+ } else {
157
+ this.updateOverlay();
158
+ }
159
+ }
160
+ updateOverlay() {
161
+ let $pos = this.editorView.state.doc.resolve(this.cursorPos);
162
+ let isBlock = !$pos.parent.inlineContent,
163
+ rect;
164
+ if (isBlock) {
165
+ let before = $pos.nodeBefore,
166
+ after = $pos.nodeAfter;
167
+ if (before || after) {
168
+ let node = this.editorView.nodeDOM(this.cursorPos - (before ? before.nodeSize : 0));
169
+ if (node) {
170
+ let nodeRect = node.getBoundingClientRect();
171
+ let top = before ? nodeRect.bottom : nodeRect.top;
172
+ if (before && after) top = (top + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2;
173
+ rect = {
174
+ left: nodeRect.left,
175
+ right: nodeRect.right,
176
+ top: top - this.width / 2,
177
+ bottom: top + this.width / 2
178
+ };
179
+ }
180
+ }
181
+ }
182
+ if (!rect) {
183
+ let coords = this.editorView.coordsAtPos(this.cursorPos);
184
+ rect = {
185
+ left: coords.left - this.width / 2,
186
+ right: coords.left + this.width / 2,
187
+ top: coords.top,
188
+ bottom: coords.bottom
189
+ };
190
+ }
191
+ let parent = this.editorView.dom.offsetParent;
192
+ if (!this.element) {
193
+ this.element = parent.appendChild(document.createElement("div"));
194
+ if (this.class) this.element.className = this.class;
195
+ this.element.style.cssText = "position: absolute; z-index: 50; pointer-events: none;";
196
+ if (this.color) {
197
+ this.element.style.backgroundColor = this.color;
198
+ }
199
+ }
200
+ this.element.classList.toggle("prosemirror-dropcursor-block", isBlock);
201
+ this.element.classList.toggle("prosemirror-dropcursor-inline", !isBlock);
202
+ let parentLeft, parentTop;
203
+ if (!parent || parent == document.body && getComputedStyle(parent).position == "static") {
204
+ parentLeft = -pageXOffset;
205
+ parentTop = -pageYOffset;
206
+ } else {
207
+ let rect = parent.getBoundingClientRect();
208
+ parentLeft = rect.left - parent.scrollLeft;
209
+ parentTop = rect.top - parent.scrollTop;
210
+ }
211
+ this.element.style.left = rect.left - parentLeft + "px";
212
+ this.element.style.top = rect.top - parentTop + "px";
213
+ this.element.style.width = rect.right - rect.left + "px";
214
+ this.element.style.height = rect.bottom - rect.top + "px";
215
+ }
216
+ scheduleRemoval(timeout) {
217
+ clearTimeout(this.timeout);
218
+ this.timeout = setTimeout(() => this.setCursor(null), timeout);
219
+ }
220
+ dragover(event) {
221
+ if (!this.editorView.editable) return;
222
+ let pos = this.editorView.posAtCoords({
223
+ left: event.clientX,
224
+ top: event.clientY
225
+ });
226
+ let node = pos && pos.inside >= 0 && this.editorView.state.doc.nodeAt(pos.inside);
227
+ let disableDropCursor = node && node.type.spec.disableDropCursor;
228
+ let disabled = typeof disableDropCursor == "function" ? disableDropCursor(this.editorView, pos, event) : disableDropCursor;
229
+ if (pos && !disabled) {
230
+ let target = pos.pos;
231
+ if (this.editorView.dragging && this.editorView.dragging.slice) {
232
+ let point = dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice);
233
+ if (point != null) target = point;
234
+ }
235
+ this.setCursor(target);
236
+ this.scheduleRemoval(5000);
237
+ }
238
+ }
239
+ dragend() {
240
+ this.scheduleRemoval(20);
241
+ }
242
+ drop() {
243
+ this.scheduleRemoval(20);
244
+ }
245
+ dragleave(event) {
246
+ if (event.target == this.editorView.dom || !this.editorView.dom.contains(event.relatedTarget)) this.setCursor(null);
247
+ }
248
+ }
249
+
250
+ const Dropcursor = Extension.create({
251
+ name: 'dropCursor',
252
+ addOptions() {
253
+ return {
254
+ color: 'currentColor',
255
+ width: 1,
256
+ class: undefined
257
+ };
258
+ },
259
+ addProseMirrorPlugins() {
260
+ return [dropCursor(this.options)];
261
+ }
262
+ });
263
+
264
+ /**
265
+ Gap cursor selections are represented using this class. Its
266
+ `$anchor` and `$head` properties both point at the cursor position.
267
+ */
268
+ class GapCursor extends Selection {
269
+ /**
270
+ Create a gap cursor.
271
+ */
272
+ constructor($pos) {
273
+ super($pos, $pos);
274
+ }
275
+ map(doc, mapping) {
276
+ let $pos = doc.resolve(mapping.map(this.head));
277
+ return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);
278
+ }
279
+ content() {
280
+ return Slice.empty;
281
+ }
282
+ eq(other) {
283
+ return other instanceof GapCursor && other.head == this.head;
284
+ }
285
+ toJSON() {
286
+ return {
287
+ type: "gapcursor",
288
+ pos: this.head
289
+ };
290
+ }
291
+ /**
292
+ @internal
293
+ */
294
+ static fromJSON(doc, json) {
295
+ if (typeof json.pos != "number") throw new RangeError("Invalid input for GapCursor.fromJSON");
296
+ return new GapCursor(doc.resolve(json.pos));
297
+ }
298
+ /**
299
+ @internal
300
+ */
301
+ getBookmark() {
302
+ return new GapBookmark(this.anchor);
303
+ }
304
+ /**
305
+ @internal
306
+ */
307
+ static valid($pos) {
308
+ let parent = $pos.parent;
309
+ if (parent.isTextblock || !closedBefore($pos) || !closedAfter($pos)) return false;
310
+ let override = parent.type.spec.allowGapCursor;
311
+ if (override != null) return override;
312
+ let deflt = parent.contentMatchAt($pos.index()).defaultType;
313
+ return deflt && deflt.isTextblock;
314
+ }
315
+ /**
316
+ @internal
317
+ */
318
+ static findGapCursorFrom($pos, dir) {
319
+ let mustMove = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
320
+ search: for (;;) {
321
+ if (!mustMove && GapCursor.valid($pos)) return $pos;
322
+ let pos = $pos.pos,
323
+ next = null;
324
+ // Scan up from this position
325
+ for (let d = $pos.depth;; d--) {
326
+ let parent = $pos.node(d);
327
+ if (dir > 0 ? $pos.indexAfter(d) < parent.childCount : $pos.index(d) > 0) {
328
+ next = parent.child(dir > 0 ? $pos.indexAfter(d) : $pos.index(d) - 1);
329
+ break;
330
+ } else if (d == 0) {
331
+ return null;
332
+ }
333
+ pos += dir;
334
+ let $cur = $pos.doc.resolve(pos);
335
+ if (GapCursor.valid($cur)) return $cur;
336
+ }
337
+ // And then down into the next node
338
+ for (;;) {
339
+ let inside = dir > 0 ? next.firstChild : next.lastChild;
340
+ if (!inside) {
341
+ if (next.isAtom && !next.isText && !NodeSelection.isSelectable(next)) {
342
+ $pos = $pos.doc.resolve(pos + next.nodeSize * dir);
343
+ mustMove = false;
344
+ continue search;
345
+ }
346
+ break;
347
+ }
348
+ next = inside;
349
+ pos += dir;
350
+ let $cur = $pos.doc.resolve(pos);
351
+ if (GapCursor.valid($cur)) return $cur;
352
+ }
353
+ return null;
354
+ }
355
+ }
356
+ }
357
+ GapCursor.prototype.visible = false;
358
+ GapCursor.findFrom = GapCursor.findGapCursorFrom;
359
+ Selection.jsonID("gapcursor", GapCursor);
360
+ class GapBookmark {
361
+ constructor(pos) {
362
+ this.pos = pos;
363
+ }
364
+ map(mapping) {
365
+ return new GapBookmark(mapping.map(this.pos));
366
+ }
367
+ resolve(doc) {
368
+ let $pos = doc.resolve(this.pos);
369
+ return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);
370
+ }
371
+ }
372
+ function closedBefore($pos) {
373
+ for (let d = $pos.depth; d >= 0; d--) {
374
+ let index = $pos.index(d),
375
+ parent = $pos.node(d);
376
+ // At the start of this parent, look at next one
377
+ if (index == 0) {
378
+ if (parent.type.spec.isolating) return true;
379
+ continue;
380
+ }
381
+ // See if the node before (or its first ancestor) is closed
382
+ for (let before = parent.child(index - 1);; before = before.lastChild) {
383
+ if (before.childCount == 0 && !before.inlineContent || before.isAtom || before.type.spec.isolating) return true;
384
+ if (before.inlineContent) return false;
385
+ }
386
+ }
387
+ // Hit start of document
388
+ return true;
389
+ }
390
+ function closedAfter($pos) {
391
+ for (let d = $pos.depth; d >= 0; d--) {
392
+ let index = $pos.indexAfter(d),
393
+ parent = $pos.node(d);
394
+ if (index == parent.childCount) {
395
+ if (parent.type.spec.isolating) return true;
396
+ continue;
397
+ }
398
+ for (let after = parent.child(index);; after = after.firstChild) {
399
+ if (after.childCount == 0 && !after.inlineContent || after.isAtom || after.type.spec.isolating) return true;
400
+ if (after.inlineContent) return false;
401
+ }
402
+ }
403
+ return true;
404
+ }
405
+
406
+ /**
407
+ Create a gap cursor plugin. When enabled, this will capture clicks
408
+ near and arrow-key-motion past places that don't have a normally
409
+ selectable position nearby, and create a gap cursor selection for
410
+ them. The cursor is drawn as an element with class
411
+ `ProseMirror-gapcursor`. You can either include
412
+ `style/gapcursor.css` from the package's directory or add your own
413
+ styles to make it visible.
414
+ */
415
+ function gapCursor() {
416
+ return new Plugin({
417
+ props: {
418
+ decorations: drawGapCursor,
419
+ createSelectionBetween(_view, $anchor, $head) {
420
+ return $anchor.pos == $head.pos && GapCursor.valid($head) ? new GapCursor($head) : null;
421
+ },
422
+ handleClick,
423
+ handleKeyDown,
424
+ handleDOMEvents: {
425
+ beforeinput: beforeinput
426
+ }
427
+ }
428
+ });
429
+ }
430
+ const handleKeyDown = keydownHandler({
431
+ "ArrowLeft": arrow("horiz", -1),
432
+ "ArrowRight": arrow("horiz", 1),
433
+ "ArrowUp": arrow("vert", -1),
434
+ "ArrowDown": arrow("vert", 1)
435
+ });
436
+ function arrow(axis, dir) {
437
+ const dirStr = axis == "vert" ? dir > 0 ? "down" : "up" : dir > 0 ? "right" : "left";
438
+ return function (state, dispatch, view) {
439
+ let sel = state.selection;
440
+ let $start = dir > 0 ? sel.$to : sel.$from,
441
+ mustMove = sel.empty;
442
+ if (sel instanceof TextSelection) {
443
+ if (!view.endOfTextblock(dirStr) || $start.depth == 0) return false;
444
+ mustMove = false;
445
+ $start = state.doc.resolve(dir > 0 ? $start.after() : $start.before());
446
+ }
447
+ let $found = GapCursor.findGapCursorFrom($start, dir, mustMove);
448
+ if (!$found) return false;
449
+ if (dispatch) dispatch(state.tr.setSelection(new GapCursor($found)));
450
+ return true;
451
+ };
452
+ }
453
+ function handleClick(view, pos, event) {
454
+ if (!view || !view.editable) return false;
455
+ let $pos = view.state.doc.resolve(pos);
456
+ if (!GapCursor.valid($pos)) return false;
457
+ let clickPos = view.posAtCoords({
458
+ left: event.clientX,
459
+ top: event.clientY
460
+ });
461
+ if (clickPos && clickPos.inside > -1 && NodeSelection.isSelectable(view.state.doc.nodeAt(clickPos.inside))) return false;
462
+ view.dispatch(view.state.tr.setSelection(new GapCursor($pos)));
463
+ return true;
464
+ }
465
+ // This is a hack that, when a composition starts while a gap cursor
466
+ // is active, quickly creates an inline context for the composition to
467
+ // happen in, to avoid it being aborted by the DOM selection being
468
+ // moved into a valid position.
469
+ function beforeinput(view, event) {
470
+ if (event.inputType != "insertCompositionText" || !(view.state.selection instanceof GapCursor)) return false;
471
+ let {
472
+ $from
473
+ } = view.state.selection;
474
+ let insert = $from.parent.contentMatchAt($from.index()).findWrapping(view.state.schema.nodes.text);
475
+ if (!insert) return false;
476
+ let frag = Fragment.empty;
477
+ for (let i = insert.length - 1; i >= 0; i--) frag = Fragment.from(insert[i].createAndFill(null, frag));
478
+ let tr = view.state.tr.replace($from.pos, $from.pos, new Slice(frag, 0, 0));
479
+ tr.setSelection(TextSelection.near(tr.doc.resolve($from.pos + 1)));
480
+ view.dispatch(tr);
481
+ return false;
482
+ }
483
+ function drawGapCursor(state) {
484
+ if (!(state.selection instanceof GapCursor)) return null;
485
+ let node = document.createElement("div");
486
+ node.className = "ProseMirror-gapcursor";
487
+ return DecorationSet.create(state.doc, [Decoration.widget(state.selection.head, node, {
488
+ key: "gapcursor"
489
+ })]);
490
+ }
491
+
492
+ const Gapcursor = Extension.create({
493
+ name: 'gapCursor',
494
+ addProseMirrorPlugins() {
495
+ return [gapCursor()];
496
+ },
497
+ extendNodeSchema(extension) {
498
+ var _a;
499
+ const context = {
500
+ name: extension.name,
501
+ options: extension.options,
502
+ storage: extension.storage
503
+ };
504
+ return {
505
+ allowGapCursor: (_a = callOrReturn(getExtensionField(extension, 'allowGapCursor', context))) !== null && _a !== void 0 ? _a : null
506
+ };
507
+ }
508
+ });
509
+
510
+ const Heading = Node.create({
511
+ name: 'heading',
512
+ addOptions() {
513
+ return {
514
+ levels: [1, 2, 3, 4, 5, 6],
515
+ HTMLAttributes: {}
516
+ };
517
+ },
518
+ content: 'inline*',
519
+ group: 'block',
520
+ defining: true,
521
+ addAttributes() {
522
+ return {
523
+ level: {
524
+ default: 1,
525
+ rendered: false
526
+ }
527
+ };
528
+ },
529
+ parseHTML() {
530
+ return this.options.levels.map(level => ({
531
+ tag: `h${level}`,
532
+ attrs: {
533
+ level
534
+ }
535
+ }));
536
+ },
537
+ renderHTML(_ref) {
538
+ let {
539
+ node,
540
+ HTMLAttributes
541
+ } = _ref;
542
+ const hasLevel = this.options.levels.includes(node.attrs.level);
543
+ const level = hasLevel ? node.attrs.level : this.options.levels[0];
544
+ return [`h${level}`, mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
545
+ },
546
+ addCommands() {
547
+ return {
548
+ setHeading: attributes => _ref2 => {
549
+ let {
550
+ commands
551
+ } = _ref2;
552
+ if (!this.options.levels.includes(attributes.level)) {
553
+ return false;
554
+ }
555
+ return commands.setNode(this.name, attributes);
556
+ },
557
+ toggleHeading: attributes => _ref3 => {
558
+ let {
559
+ commands
560
+ } = _ref3;
561
+ if (!this.options.levels.includes(attributes.level)) {
562
+ return false;
563
+ }
564
+ return commands.toggleNode(this.name, 'paragraph', attributes);
565
+ }
566
+ };
567
+ },
568
+ addKeyboardShortcuts() {
569
+ return this.options.levels.reduce((items, level) => ({
570
+ ...items,
571
+ ...{
572
+ [`Mod-Alt-${level}`]: () => this.editor.commands.toggleHeading({
573
+ level
574
+ })
575
+ }
576
+ }), {});
577
+ },
578
+ addInputRules() {
579
+ return this.options.levels.map(level => {
580
+ return textblockTypeInputRule({
581
+ find: new RegExp(`^(#{1,${level}})\\s$`),
582
+ type: this.type,
583
+ getAttributes: {
584
+ level
585
+ }
586
+ });
587
+ });
588
+ }
589
+ });
590
+
591
+ var GOOD_LEAF_SIZE = 200;
592
+
593
+ // :: class<T> A rope sequence is a persistent sequence data structure
594
+ // that supports appending, prepending, and slicing without doing a
595
+ // full copy. It is represented as a mostly-balanced tree.
596
+ var RopeSequence = function RopeSequence() {};
597
+ RopeSequence.prototype.append = function append(other) {
598
+ if (!other.length) {
599
+ return this;
600
+ }
601
+ other = RopeSequence.from(other);
602
+ return !this.length && other || other.length < GOOD_LEAF_SIZE && this.leafAppend(other) || this.length < GOOD_LEAF_SIZE && other.leafPrepend(this) || this.appendInner(other);
603
+ };
604
+
605
+ // :: (union<[T], RopeSequence<T>>) → RopeSequence<T>
606
+ // Prepend an array or other rope to this one, returning a new rope.
607
+ RopeSequence.prototype.prepend = function prepend(other) {
608
+ if (!other.length) {
609
+ return this;
610
+ }
611
+ return RopeSequence.from(other).append(this);
612
+ };
613
+ RopeSequence.prototype.appendInner = function appendInner(other) {
614
+ return new Append(this, other);
615
+ };
616
+
617
+ // :: (?number, ?number) → RopeSequence<T>
618
+ // Create a rope repesenting a sub-sequence of this rope.
619
+ RopeSequence.prototype.slice = function slice(from, to) {
620
+ if (from === void 0) from = 0;
621
+ if (to === void 0) to = this.length;
622
+ if (from >= to) {
623
+ return RopeSequence.empty;
624
+ }
625
+ return this.sliceInner(Math.max(0, from), Math.min(this.length, to));
626
+ };
627
+
628
+ // :: (number) → T
629
+ // Retrieve the element at the given position from this rope.
630
+ RopeSequence.prototype.get = function get(i) {
631
+ if (i < 0 || i >= this.length) {
632
+ return undefined;
633
+ }
634
+ return this.getInner(i);
635
+ };
636
+
637
+ // :: ((element: T, index: number) → ?bool, ?number, ?number)
638
+ // Call the given function for each element between the given
639
+ // indices. This tends to be more efficient than looping over the
640
+ // indices and calling `get`, because it doesn't have to descend the
641
+ // tree for every element.
642
+ RopeSequence.prototype.forEach = function forEach(f, from, to) {
643
+ if (from === void 0) from = 0;
644
+ if (to === void 0) to = this.length;
645
+ if (from <= to) {
646
+ this.forEachInner(f, from, to, 0);
647
+ } else {
648
+ this.forEachInvertedInner(f, from, to, 0);
649
+ }
650
+ };
651
+
652
+ // :: ((element: T, index: number) → U, ?number, ?number) → [U]
653
+ // Map the given functions over the elements of the rope, producing
654
+ // a flat array.
655
+ RopeSequence.prototype.map = function map(f, from, to) {
656
+ if (from === void 0) from = 0;
657
+ if (to === void 0) to = this.length;
658
+ var result = [];
659
+ this.forEach(function (elt, i) {
660
+ return result.push(f(elt, i));
661
+ }, from, to);
662
+ return result;
663
+ };
664
+
665
+ // :: (?union<[T], RopeSequence<T>>) → RopeSequence<T>
666
+ // Create a rope representing the given array, or return the rope
667
+ // itself if a rope was given.
668
+ RopeSequence.from = function from(values) {
669
+ if (values instanceof RopeSequence) {
670
+ return values;
671
+ }
672
+ return values && values.length ? new Leaf(values) : RopeSequence.empty;
673
+ };
674
+ var Leaf = /*@__PURE__*/function (RopeSequence) {
675
+ function Leaf(values) {
676
+ RopeSequence.call(this);
677
+ this.values = values;
678
+ }
679
+ if (RopeSequence) Leaf.__proto__ = RopeSequence;
680
+ Leaf.prototype = Object.create(RopeSequence && RopeSequence.prototype);
681
+ Leaf.prototype.constructor = Leaf;
682
+ var prototypeAccessors = {
683
+ length: {
684
+ configurable: true
685
+ },
686
+ depth: {
687
+ configurable: true
688
+ }
689
+ };
690
+ Leaf.prototype.flatten = function flatten() {
691
+ return this.values;
692
+ };
693
+ Leaf.prototype.sliceInner = function sliceInner(from, to) {
694
+ if (from == 0 && to == this.length) {
695
+ return this;
696
+ }
697
+ return new Leaf(this.values.slice(from, to));
698
+ };
699
+ Leaf.prototype.getInner = function getInner(i) {
700
+ return this.values[i];
701
+ };
702
+ Leaf.prototype.forEachInner = function forEachInner(f, from, to, start) {
703
+ for (var i = from; i < to; i++) {
704
+ if (f(this.values[i], start + i) === false) {
705
+ return false;
706
+ }
707
+ }
708
+ };
709
+ Leaf.prototype.forEachInvertedInner = function forEachInvertedInner(f, from, to, start) {
710
+ for (var i = from - 1; i >= to; i--) {
711
+ if (f(this.values[i], start + i) === false) {
712
+ return false;
713
+ }
714
+ }
715
+ };
716
+ Leaf.prototype.leafAppend = function leafAppend(other) {
717
+ if (this.length + other.length <= GOOD_LEAF_SIZE) {
718
+ return new Leaf(this.values.concat(other.flatten()));
719
+ }
720
+ };
721
+ Leaf.prototype.leafPrepend = function leafPrepend(other) {
722
+ if (this.length + other.length <= GOOD_LEAF_SIZE) {
723
+ return new Leaf(other.flatten().concat(this.values));
724
+ }
725
+ };
726
+ prototypeAccessors.length.get = function () {
727
+ return this.values.length;
728
+ };
729
+ prototypeAccessors.depth.get = function () {
730
+ return 0;
731
+ };
732
+ Object.defineProperties(Leaf.prototype, prototypeAccessors);
733
+ return Leaf;
734
+ }(RopeSequence);
735
+
736
+ // :: RopeSequence
737
+ // The empty rope sequence.
738
+ RopeSequence.empty = new Leaf([]);
739
+ var Append = /*@__PURE__*/function (RopeSequence) {
740
+ function Append(left, right) {
741
+ RopeSequence.call(this);
742
+ this.left = left;
743
+ this.right = right;
744
+ this.length = left.length + right.length;
745
+ this.depth = Math.max(left.depth, right.depth) + 1;
746
+ }
747
+ if (RopeSequence) Append.__proto__ = RopeSequence;
748
+ Append.prototype = Object.create(RopeSequence && RopeSequence.prototype);
749
+ Append.prototype.constructor = Append;
750
+ Append.prototype.flatten = function flatten() {
751
+ return this.left.flatten().concat(this.right.flatten());
752
+ };
753
+ Append.prototype.getInner = function getInner(i) {
754
+ return i < this.left.length ? this.left.get(i) : this.right.get(i - this.left.length);
755
+ };
756
+ Append.prototype.forEachInner = function forEachInner(f, from, to, start) {
757
+ var leftLen = this.left.length;
758
+ if (from < leftLen && this.left.forEachInner(f, from, Math.min(to, leftLen), start) === false) {
759
+ return false;
760
+ }
761
+ if (to > leftLen && this.right.forEachInner(f, Math.max(from - leftLen, 0), Math.min(this.length, to) - leftLen, start + leftLen) === false) {
762
+ return false;
763
+ }
764
+ };
765
+ Append.prototype.forEachInvertedInner = function forEachInvertedInner(f, from, to, start) {
766
+ var leftLen = this.left.length;
767
+ if (from > leftLen && this.right.forEachInvertedInner(f, from - leftLen, Math.max(to, leftLen) - leftLen, start + leftLen) === false) {
768
+ return false;
769
+ }
770
+ if (to < leftLen && this.left.forEachInvertedInner(f, Math.min(from, leftLen), to, start) === false) {
771
+ return false;
772
+ }
773
+ };
774
+ Append.prototype.sliceInner = function sliceInner(from, to) {
775
+ if (from == 0 && to == this.length) {
776
+ return this;
777
+ }
778
+ var leftLen = this.left.length;
779
+ if (to <= leftLen) {
780
+ return this.left.slice(from, to);
781
+ }
782
+ if (from >= leftLen) {
783
+ return this.right.slice(from - leftLen, to - leftLen);
784
+ }
785
+ return this.left.slice(from, leftLen).append(this.right.slice(0, to - leftLen));
786
+ };
787
+ Append.prototype.leafAppend = function leafAppend(other) {
788
+ var inner = this.right.leafAppend(other);
789
+ if (inner) {
790
+ return new Append(this.left, inner);
791
+ }
792
+ };
793
+ Append.prototype.leafPrepend = function leafPrepend(other) {
794
+ var inner = this.left.leafPrepend(other);
795
+ if (inner) {
796
+ return new Append(inner, this.right);
797
+ }
798
+ };
799
+ Append.prototype.appendInner = function appendInner(other) {
800
+ if (this.left.depth >= Math.max(this.right.depth, other.depth) + 1) {
801
+ return new Append(this.left, new Append(this.right, other));
802
+ }
803
+ return new Append(this, other);
804
+ };
805
+ return Append;
806
+ }(RopeSequence);
807
+ var ropeSequence = RopeSequence;
808
+
809
+ // ProseMirror's history isn't simply a way to roll back to a previous
810
+ // state, because ProseMirror supports applying changes without adding
811
+ // them to the history (for example during collaboration).
812
+ //
813
+ // To this end, each 'Branch' (one for the undo history and one for
814
+ // the redo history) keeps an array of 'Items', which can optionally
815
+ // hold a step (an actual undoable change), and always hold a position
816
+ // map (which is needed to move changes below them to apply to the
817
+ // current document).
818
+ //
819
+ // An item that has both a step and a selection bookmark is the start
820
+ // of an 'event' — a group of changes that will be undone or redone at
821
+ // once. (It stores only the bookmark, since that way we don't have to
822
+ // provide a document until the selection is actually applied, which
823
+ // is useful when compressing.)
824
+ // Used to schedule history compression
825
+ const max_empty_items = 500;
826
+ class Branch {
827
+ constructor(items, eventCount) {
828
+ this.items = items;
829
+ this.eventCount = eventCount;
830
+ }
831
+ // Pop the latest event off the branch's history and apply it
832
+ // to a document transform.
833
+ popEvent(state, preserveItems) {
834
+ if (this.eventCount == 0) return null;
835
+ let end = this.items.length;
836
+ for (;; end--) {
837
+ let next = this.items.get(end - 1);
838
+ if (next.selection) {
839
+ --end;
840
+ break;
841
+ }
842
+ }
843
+ let remap, mapFrom;
844
+ if (preserveItems) {
845
+ remap = this.remapping(end, this.items.length);
846
+ mapFrom = remap.maps.length;
847
+ }
848
+ let transform = state.tr;
849
+ let selection, remaining;
850
+ let addAfter = [],
851
+ addBefore = [];
852
+ this.items.forEach((item, i) => {
853
+ if (!item.step) {
854
+ if (!remap) {
855
+ remap = this.remapping(end, i + 1);
856
+ mapFrom = remap.maps.length;
857
+ }
858
+ mapFrom--;
859
+ addBefore.push(item);
860
+ return;
861
+ }
862
+ if (remap) {
863
+ addBefore.push(new Item(item.map));
864
+ let step = item.step.map(remap.slice(mapFrom)),
865
+ map;
866
+ if (step && transform.maybeStep(step).doc) {
867
+ map = transform.mapping.maps[transform.mapping.maps.length - 1];
868
+ addAfter.push(new Item(map, undefined, undefined, addAfter.length + addBefore.length));
869
+ }
870
+ mapFrom--;
871
+ if (map) remap.appendMap(map, mapFrom);
872
+ } else {
873
+ transform.maybeStep(item.step);
874
+ }
875
+ if (item.selection) {
876
+ selection = remap ? item.selection.map(remap.slice(mapFrom)) : item.selection;
877
+ remaining = new Branch(this.items.slice(0, end).append(addBefore.reverse().concat(addAfter)), this.eventCount - 1);
878
+ return false;
879
+ }
880
+ }, this.items.length, 0);
881
+ return {
882
+ remaining: remaining,
883
+ transform,
884
+ selection: selection
885
+ };
886
+ }
887
+ // Create a new branch with the given transform added.
888
+ addTransform(transform, selection, histOptions, preserveItems) {
889
+ let newItems = [],
890
+ eventCount = this.eventCount;
891
+ let oldItems = this.items,
892
+ lastItem = !preserveItems && oldItems.length ? oldItems.get(oldItems.length - 1) : null;
893
+ for (let i = 0; i < transform.steps.length; i++) {
894
+ let step = transform.steps[i].invert(transform.docs[i]);
895
+ let item = new Item(transform.mapping.maps[i], step, selection),
896
+ merged;
897
+ if (merged = lastItem && lastItem.merge(item)) {
898
+ item = merged;
899
+ if (i) newItems.pop();else oldItems = oldItems.slice(0, oldItems.length - 1);
900
+ }
901
+ newItems.push(item);
902
+ if (selection) {
903
+ eventCount++;
904
+ selection = undefined;
905
+ }
906
+ if (!preserveItems) lastItem = item;
907
+ }
908
+ let overflow = eventCount - histOptions.depth;
909
+ if (overflow > DEPTH_OVERFLOW) {
910
+ oldItems = cutOffEvents(oldItems, overflow);
911
+ eventCount -= overflow;
912
+ }
913
+ return new Branch(oldItems.append(newItems), eventCount);
914
+ }
915
+ remapping(from, to) {
916
+ let maps = new Mapping();
917
+ this.items.forEach((item, i) => {
918
+ let mirrorPos = item.mirrorOffset != null && i - item.mirrorOffset >= from ? maps.maps.length - item.mirrorOffset : undefined;
919
+ maps.appendMap(item.map, mirrorPos);
920
+ }, from, to);
921
+ return maps;
922
+ }
923
+ addMaps(array) {
924
+ if (this.eventCount == 0) return this;
925
+ return new Branch(this.items.append(array.map(map => new Item(map))), this.eventCount);
926
+ }
927
+ // When the collab module receives remote changes, the history has
928
+ // to know about those, so that it can adjust the steps that were
929
+ // rebased on top of the remote changes, and include the position
930
+ // maps for the remote changes in its array of items.
931
+ rebased(rebasedTransform, rebasedCount) {
932
+ if (!this.eventCount) return this;
933
+ let rebasedItems = [],
934
+ start = Math.max(0, this.items.length - rebasedCount);
935
+ let mapping = rebasedTransform.mapping;
936
+ let newUntil = rebasedTransform.steps.length;
937
+ let eventCount = this.eventCount;
938
+ this.items.forEach(item => {
939
+ if (item.selection) eventCount--;
940
+ }, start);
941
+ let iRebased = rebasedCount;
942
+ this.items.forEach(item => {
943
+ let pos = mapping.getMirror(--iRebased);
944
+ if (pos == null) return;
945
+ newUntil = Math.min(newUntil, pos);
946
+ let map = mapping.maps[pos];
947
+ if (item.step) {
948
+ let step = rebasedTransform.steps[pos].invert(rebasedTransform.docs[pos]);
949
+ let selection = item.selection && item.selection.map(mapping.slice(iRebased + 1, pos));
950
+ if (selection) eventCount++;
951
+ rebasedItems.push(new Item(map, step, selection));
952
+ } else {
953
+ rebasedItems.push(new Item(map));
954
+ }
955
+ }, start);
956
+ let newMaps = [];
957
+ for (let i = rebasedCount; i < newUntil; i++) newMaps.push(new Item(mapping.maps[i]));
958
+ let items = this.items.slice(0, start).append(newMaps).append(rebasedItems);
959
+ let branch = new Branch(items, eventCount);
960
+ if (branch.emptyItemCount() > max_empty_items) branch = branch.compress(this.items.length - rebasedItems.length);
961
+ return branch;
962
+ }
963
+ emptyItemCount() {
964
+ let count = 0;
965
+ this.items.forEach(item => {
966
+ if (!item.step) count++;
967
+ });
968
+ return count;
969
+ }
970
+ // Compressing a branch means rewriting it to push the air (map-only
971
+ // items) out. During collaboration, these naturally accumulate
972
+ // because each remote change adds one. The `upto` argument is used
973
+ // to ensure that only the items below a given level are compressed,
974
+ // because `rebased` relies on a clean, untouched set of items in
975
+ // order to associate old items with rebased steps.
976
+ compress() {
977
+ let upto = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.items.length;
978
+ let remap = this.remapping(0, upto),
979
+ mapFrom = remap.maps.length;
980
+ let items = [],
981
+ events = 0;
982
+ this.items.forEach((item, i) => {
983
+ if (i >= upto) {
984
+ items.push(item);
985
+ if (item.selection) events++;
986
+ } else if (item.step) {
987
+ let step = item.step.map(remap.slice(mapFrom)),
988
+ map = step && step.getMap();
989
+ mapFrom--;
990
+ if (map) remap.appendMap(map, mapFrom);
991
+ if (step) {
992
+ let selection = item.selection && item.selection.map(remap.slice(mapFrom));
993
+ if (selection) events++;
994
+ let newItem = new Item(map.invert(), step, selection),
995
+ merged,
996
+ last = items.length - 1;
997
+ if (merged = items.length && items[last].merge(newItem)) items[last] = merged;else items.push(newItem);
998
+ }
999
+ } else if (item.map) {
1000
+ mapFrom--;
1001
+ }
1002
+ }, this.items.length, 0);
1003
+ return new Branch(ropeSequence.from(items.reverse()), events);
1004
+ }
1005
+ }
1006
+ Branch.empty = new Branch(ropeSequence.empty, 0);
1007
+ function cutOffEvents(items, n) {
1008
+ let cutPoint;
1009
+ items.forEach((item, i) => {
1010
+ if (item.selection && n-- == 0) {
1011
+ cutPoint = i;
1012
+ return false;
1013
+ }
1014
+ });
1015
+ return items.slice(cutPoint);
1016
+ }
1017
+ class Item {
1018
+ constructor(
1019
+ // The (forward) step map for this item.
1020
+ map,
1021
+ // The inverted step
1022
+ step,
1023
+ // If this is non-null, this item is the start of a group, and
1024
+ // this selection is the starting selection for the group (the one
1025
+ // that was active before the first step was applied)
1026
+ selection,
1027
+ // If this item is the inverse of a previous mapping on the stack,
1028
+ // this points at the inverse's offset
1029
+ mirrorOffset) {
1030
+ this.map = map;
1031
+ this.step = step;
1032
+ this.selection = selection;
1033
+ this.mirrorOffset = mirrorOffset;
1034
+ }
1035
+ merge(other) {
1036
+ if (this.step && other.step && !other.selection) {
1037
+ let step = other.step.merge(this.step);
1038
+ if (step) return new Item(step.getMap().invert(), step, this.selection);
1039
+ }
1040
+ }
1041
+ }
1042
+ // The value of the state field that tracks undo/redo history for that
1043
+ // state. Will be stored in the plugin state when the history plugin
1044
+ // is active.
1045
+ class HistoryState {
1046
+ constructor(done, undone, prevRanges, prevTime, prevComposition) {
1047
+ this.done = done;
1048
+ this.undone = undone;
1049
+ this.prevRanges = prevRanges;
1050
+ this.prevTime = prevTime;
1051
+ this.prevComposition = prevComposition;
1052
+ }
1053
+ }
1054
+ const DEPTH_OVERFLOW = 20;
1055
+ // Record a transformation in undo history.
1056
+ function applyTransaction(history, state, tr, options) {
1057
+ let historyTr = tr.getMeta(historyKey),
1058
+ rebased;
1059
+ if (historyTr) return historyTr.historyState;
1060
+ if (tr.getMeta(closeHistoryKey)) history = new HistoryState(history.done, history.undone, null, 0, -1);
1061
+ let appended = tr.getMeta("appendedTransaction");
1062
+ if (tr.steps.length == 0) {
1063
+ return history;
1064
+ } else if (appended && appended.getMeta(historyKey)) {
1065
+ 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);
1066
+ } else if (tr.getMeta("addToHistory") !== false && !(appended && appended.getMeta("addToHistory") === false)) {
1067
+ // Group transforms that occur in quick succession into one event.
1068
+ let composition = tr.getMeta("composition");
1069
+ let newGroup = history.prevTime == 0 || !appended && history.prevComposition != composition && (history.prevTime < (tr.time || 0) - options.newGroupDelay || !isAdjacentTo(tr, history.prevRanges));
1070
+ let prevRanges = appended ? mapRanges(history.prevRanges, tr.mapping) : rangesFor(tr.mapping.maps[tr.steps.length - 1]);
1071
+ 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);
1072
+ } else if (rebased = tr.getMeta("rebased")) {
1073
+ // Used by the collab module to tell the history that some of its
1074
+ // content has been rebased.
1075
+ return new HistoryState(history.done.rebased(tr, rebased), history.undone.rebased(tr, rebased), mapRanges(history.prevRanges, tr.mapping), history.prevTime, history.prevComposition);
1076
+ } else {
1077
+ return new HistoryState(history.done.addMaps(tr.mapping.maps), history.undone.addMaps(tr.mapping.maps), mapRanges(history.prevRanges, tr.mapping), history.prevTime, history.prevComposition);
1078
+ }
1079
+ }
1080
+ function isAdjacentTo(transform, prevRanges) {
1081
+ if (!prevRanges) return false;
1082
+ if (!transform.docChanged) return true;
1083
+ let adjacent = false;
1084
+ transform.mapping.maps[0].forEach((start, end) => {
1085
+ for (let i = 0; i < prevRanges.length; i += 2) if (start <= prevRanges[i + 1] && end >= prevRanges[i]) adjacent = true;
1086
+ });
1087
+ return adjacent;
1088
+ }
1089
+ function rangesFor(map) {
1090
+ let result = [];
1091
+ map.forEach((_from, _to, from, to) => result.push(from, to));
1092
+ return result;
1093
+ }
1094
+ function mapRanges(ranges, mapping) {
1095
+ if (!ranges) return null;
1096
+ let result = [];
1097
+ for (let i = 0; i < ranges.length; i += 2) {
1098
+ let from = mapping.map(ranges[i], 1),
1099
+ to = mapping.map(ranges[i + 1], -1);
1100
+ if (from <= to) result.push(from, to);
1101
+ }
1102
+ return result;
1103
+ }
1104
+ // Apply the latest event from one branch to the document and shift the event
1105
+ // onto the other branch.
1106
+ function histTransaction(history, state, dispatch, redo) {
1107
+ let preserveItems = mustPreserveItems(state);
1108
+ let histOptions = historyKey.get(state).spec.config;
1109
+ let pop = (redo ? history.undone : history.done).popEvent(state, preserveItems);
1110
+ if (!pop) return;
1111
+ let selection = pop.selection.resolve(pop.transform.doc);
1112
+ let added = (redo ? history.done : history.undone).addTransform(pop.transform, state.selection.getBookmark(), histOptions, preserveItems);
1113
+ let newHist = new HistoryState(redo ? added : pop.remaining, redo ? pop.remaining : added, null, 0, -1);
1114
+ dispatch(pop.transform.setSelection(selection).setMeta(historyKey, {
1115
+ redo,
1116
+ historyState: newHist
1117
+ }).scrollIntoView());
1118
+ }
1119
+ let cachedPreserveItems = false,
1120
+ cachedPreserveItemsPlugins = null;
1121
+ // Check whether any plugin in the given state has a
1122
+ // `historyPreserveItems` property in its spec, in which case we must
1123
+ // preserve steps exactly as they came in, so that they can be
1124
+ // rebased.
1125
+ function mustPreserveItems(state) {
1126
+ let plugins = state.plugins;
1127
+ if (cachedPreserveItemsPlugins != plugins) {
1128
+ cachedPreserveItems = false;
1129
+ cachedPreserveItemsPlugins = plugins;
1130
+ for (let i = 0; i < plugins.length; i++) if (plugins[i].spec.historyPreserveItems) {
1131
+ cachedPreserveItems = true;
1132
+ break;
1133
+ }
1134
+ }
1135
+ return cachedPreserveItems;
1136
+ }
1137
+ const historyKey = new PluginKey("history");
1138
+ const closeHistoryKey = new PluginKey("closeHistory");
1139
+ /**
1140
+ Returns a plugin that enables the undo history for an editor. The
1141
+ plugin will track undo and redo stacks, which can be used with the
1142
+ [`undo`](https://prosemirror.net/docs/ref/#history.undo) and [`redo`](https://prosemirror.net/docs/ref/#history.redo) commands.
1143
+
1144
+ You can set an `"addToHistory"` [metadata
1145
+ property](https://prosemirror.net/docs/ref/#state.Transaction.setMeta) of `false` on a transaction
1146
+ to prevent it from being rolled back by undo.
1147
+ */
1148
+ function history() {
1149
+ let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1150
+ config = {
1151
+ depth: config.depth || 100,
1152
+ newGroupDelay: config.newGroupDelay || 500
1153
+ };
1154
+ return new Plugin({
1155
+ key: historyKey,
1156
+ state: {
1157
+ init() {
1158
+ return new HistoryState(Branch.empty, Branch.empty, null, 0, -1);
1159
+ },
1160
+ apply(tr, hist, state) {
1161
+ return applyTransaction(hist, state, tr, config);
1162
+ }
1163
+ },
1164
+ config,
1165
+ props: {
1166
+ handleDOMEvents: {
1167
+ beforeinput(view, e) {
1168
+ let inputType = e.inputType;
1169
+ let command = inputType == "historyUndo" ? undo : inputType == "historyRedo" ? redo : null;
1170
+ if (!command) return false;
1171
+ e.preventDefault();
1172
+ return command(view.state, view.dispatch);
1173
+ }
1174
+ }
1175
+ }
1176
+ });
1177
+ }
1178
+ /**
1179
+ A command function that undoes the last change, if any.
1180
+ */
1181
+ const undo = (state, dispatch) => {
1182
+ let hist = historyKey.getState(state);
1183
+ if (!hist || hist.done.eventCount == 0) return false;
1184
+ if (dispatch) histTransaction(hist, state, dispatch, false);
1185
+ return true;
1186
+ };
1187
+ /**
1188
+ A command function that redoes the last undone change, if any.
1189
+ */
1190
+ const redo = (state, dispatch) => {
1191
+ let hist = historyKey.getState(state);
1192
+ if (!hist || hist.undone.eventCount == 0) return false;
1193
+ if (dispatch) histTransaction(hist, state, dispatch, true);
1194
+ return true;
1195
+ };
1196
+
1197
+ const History = Extension.create({
1198
+ name: 'history',
1199
+ addOptions() {
1200
+ return {
1201
+ depth: 100,
1202
+ newGroupDelay: 500
1203
+ };
1204
+ },
1205
+ addCommands() {
1206
+ return {
1207
+ undo: () => _ref => {
1208
+ let {
1209
+ state,
1210
+ dispatch
1211
+ } = _ref;
1212
+ return undo(state, dispatch);
1213
+ },
1214
+ redo: () => _ref2 => {
1215
+ let {
1216
+ state,
1217
+ dispatch
1218
+ } = _ref2;
1219
+ return redo(state, dispatch);
1220
+ }
1221
+ };
1222
+ },
1223
+ addProseMirrorPlugins() {
1224
+ return [history(this.options)];
1225
+ },
1226
+ addKeyboardShortcuts() {
1227
+ return {
1228
+ 'Mod-z': () => this.editor.commands.undo(),
1229
+ 'Mod-y': () => this.editor.commands.redo(),
1230
+ 'Shift-Mod-z': () => this.editor.commands.redo(),
1231
+ // Russian keyboard layouts
1232
+ 'Mod-я': () => this.editor.commands.undo(),
1233
+ 'Shift-Mod-я': () => this.editor.commands.redo()
1234
+ };
1235
+ }
1236
+ });
1237
+
1238
+ const HorizontalRule = Node.create({
1239
+ name: 'horizontalRule',
1240
+ addOptions() {
1241
+ return {
1242
+ HTMLAttributes: {}
1243
+ };
1244
+ },
1245
+ group: 'block',
1246
+ parseHTML() {
1247
+ return [{
1248
+ tag: 'hr'
1249
+ }];
1250
+ },
1251
+ renderHTML(_ref) {
1252
+ let {
1253
+ HTMLAttributes
1254
+ } = _ref;
1255
+ return ['hr', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)];
1256
+ },
1257
+ addCommands() {
1258
+ return {
1259
+ setHorizontalRule: () => _ref2 => {
1260
+ let {
1261
+ chain
1262
+ } = _ref2;
1263
+ return chain().insertContent({
1264
+ type: this.name
1265
+ })
1266
+ // set cursor after horizontal rule
1267
+ .command(_ref3 => {
1268
+ let {
1269
+ tr,
1270
+ dispatch
1271
+ } = _ref3;
1272
+ var _a;
1273
+ if (dispatch) {
1274
+ const {
1275
+ $to
1276
+ } = tr.selection;
1277
+ const posAfter = $to.end();
1278
+ if ($to.nodeAfter) {
1279
+ tr.setSelection(TextSelection.create(tr.doc, $to.pos));
1280
+ } else {
1281
+ // add node after horizontal rule if it’s the end of the document
1282
+ const node = (_a = $to.parent.type.contentMatch.defaultType) === null || _a === void 0 ? void 0 : _a.create();
1283
+ if (node) {
1284
+ tr.insert(posAfter, node);
1285
+ tr.setSelection(TextSelection.create(tr.doc, posAfter));
1286
+ }
1287
+ }
1288
+ tr.scrollIntoView();
1289
+ }
1290
+ return true;
1291
+ }).run();
1292
+ }
1293
+ };
1294
+ },
1295
+ addInputRules() {
1296
+ return [nodeInputRule({
1297
+ find: /^(?:---|—-|___\s|\*\*\*\s)$/,
1298
+ type: this.type
1299
+ })];
1300
+ }
1301
+ });
1302
+
1303
+ const Text = Node.create({
1304
+ name: 'text',
1305
+ group: 'inline'
1306
+ });
1307
+
1308
+ const StarterKit = Extension.create({
1309
+ name: 'starterKit',
1310
+ addExtensions() {
1311
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
1312
+ const extensions = [];
1313
+ if (this.options.blockquote !== false) {
1314
+ extensions.push(Blockquote.configure((_a = this.options) === null || _a === void 0 ? void 0 : _a.blockquote));
1315
+ }
1316
+ if (this.options.bold !== false) {
1317
+ extensions.push(Bold.configure((_b = this.options) === null || _b === void 0 ? void 0 : _b.bold));
1318
+ }
1319
+ if (this.options.bulletList !== false) {
1320
+ extensions.push(BulletList.configure((_c = this.options) === null || _c === void 0 ? void 0 : _c.bulletList));
1321
+ }
1322
+ if (this.options.code !== false) {
1323
+ extensions.push(Code.configure((_d = this.options) === null || _d === void 0 ? void 0 : _d.code));
1324
+ }
1325
+ if (this.options.codeBlock !== false) {
1326
+ extensions.push(CodeBlock.configure((_e = this.options) === null || _e === void 0 ? void 0 : _e.codeBlock));
1327
+ }
1328
+ if (this.options.document !== false) {
1329
+ extensions.push(Document.configure((_f = this.options) === null || _f === void 0 ? void 0 : _f.document));
1330
+ }
1331
+ if (this.options.dropcursor !== false) {
1332
+ extensions.push(Dropcursor.configure((_g = this.options) === null || _g === void 0 ? void 0 : _g.dropcursor));
1333
+ }
1334
+ if (this.options.gapcursor !== false) {
1335
+ extensions.push(Gapcursor.configure((_h = this.options) === null || _h === void 0 ? void 0 : _h.gapcursor));
1336
+ }
1337
+ if (this.options.hardBreak !== false) {
1338
+ extensions.push(HardBreak.configure((_j = this.options) === null || _j === void 0 ? void 0 : _j.hardBreak));
1339
+ }
1340
+ if (this.options.heading !== false) {
1341
+ extensions.push(Heading.configure((_k = this.options) === null || _k === void 0 ? void 0 : _k.heading));
1342
+ }
1343
+ if (this.options.history !== false) {
1344
+ extensions.push(History.configure((_l = this.options) === null || _l === void 0 ? void 0 : _l.history));
1345
+ }
1346
+ if (this.options.horizontalRule !== false) {
1347
+ extensions.push(HorizontalRule.configure((_m = this.options) === null || _m === void 0 ? void 0 : _m.horizontalRule));
1348
+ }
1349
+ if (this.options.italic !== false) {
1350
+ extensions.push(Italic.configure((_o = this.options) === null || _o === void 0 ? void 0 : _o.italic));
1351
+ }
1352
+ if (this.options.listItem !== false) {
1353
+ extensions.push(ListItem.configure((_p = this.options) === null || _p === void 0 ? void 0 : _p.listItem));
1354
+ }
1355
+ if (this.options.orderedList !== false) {
1356
+ extensions.push(OrderedList.configure((_q = this.options) === null || _q === void 0 ? void 0 : _q.orderedList));
1357
+ }
1358
+ if (this.options.paragraph !== false) {
1359
+ extensions.push(Paragraph.configure((_r = this.options) === null || _r === void 0 ? void 0 : _r.paragraph));
1360
+ }
1361
+ if (this.options.strike !== false) {
1362
+ extensions.push(Strike.configure((_s = this.options) === null || _s === void 0 ? void 0 : _s.strike));
1363
+ }
1364
+ if (this.options.text !== false) {
1365
+ extensions.push(Text.configure((_t = this.options) === null || _t === void 0 ? void 0 : _t.text));
1366
+ }
1367
+ return extensions;
1368
+ }
1369
+ });
1370
+
1371
+ const Placeholder = Extension.create({
1372
+ name: 'placeholder',
1373
+ addOptions() {
1374
+ return {
1375
+ emptyEditorClass: 'is-editor-empty',
1376
+ emptyNodeClass: 'is-empty',
1377
+ placeholder: 'Write something …',
1378
+ showOnlyWhenEditable: true,
1379
+ showOnlyCurrent: true,
1380
+ includeChildren: false
1381
+ };
1382
+ },
1383
+ addProseMirrorPlugins() {
1384
+ return [new Plugin({
1385
+ key: new PluginKey('placeholder'),
1386
+ props: {
1387
+ decorations: _ref => {
1388
+ let {
1389
+ doc,
1390
+ selection
1391
+ } = _ref;
1392
+ const active = this.editor.isEditable || !this.options.showOnlyWhenEditable;
1393
+ const {
1394
+ anchor
1395
+ } = selection;
1396
+ const decorations = [];
1397
+ if (!active) {
1398
+ return null;
1399
+ }
1400
+ // only calculate isEmpty once due to its performance impacts (see issue #3360)
1401
+ const emptyDocInstance = doc.type.createAndFill();
1402
+ const isEditorEmpty = (emptyDocInstance === null || emptyDocInstance === void 0 ? void 0 : emptyDocInstance.sameMarkup(doc)) && emptyDocInstance.content.findDiffStart(doc.content) === null;
1403
+ doc.descendants((node, pos) => {
1404
+ const hasAnchor = anchor >= pos && anchor <= pos + node.nodeSize;
1405
+ const isEmpty = !node.isLeaf && !node.childCount;
1406
+ if ((hasAnchor || !this.options.showOnlyCurrent) && isEmpty) {
1407
+ const classes = [this.options.emptyNodeClass];
1408
+ if (isEditorEmpty) {
1409
+ classes.push(this.options.emptyEditorClass);
1410
+ }
1411
+ const decoration = Decoration.node(pos, pos + node.nodeSize, {
1412
+ class: classes.join(' '),
1413
+ 'data-placeholder': typeof this.options.placeholder === 'function' ? this.options.placeholder({
1414
+ editor: this.editor,
1415
+ node,
1416
+ pos,
1417
+ hasAnchor
1418
+ }) : this.options.placeholder
1419
+ });
1420
+ decorations.push(decoration);
1421
+ }
1422
+ return this.options.includeChildren;
1423
+ });
1424
+ return DecorationSet.create(doc, decorations);
1425
+ }
1426
+ }
1427
+ })];
1428
+ }
1429
+ });
1430
+
1431
+ var script = defineComponent({
1432
+ name: 'OrRichTextEditor',
1433
+ components: {
1434
+ OrIconButton: script$1,
1435
+ OrLabel: script$2,
1436
+ OrMenuItem: script$3,
1437
+ OrMenu: script$4,
1438
+ OrModal: script$5,
1439
+ OrInput: script$6,
1440
+ OrButton: script$7,
1441
+ OrPopover: script$8
1442
+ },
1443
+ inheritAttrs: false,
1444
+ model: {
1445
+ prop: 'modelValue',
1446
+ event: 'update:modelValue'
1447
+ },
1448
+ props: {
1449
+ modelValue: {
1450
+ type: String,
1451
+ default: undefined
1452
+ },
1453
+ toolbar: {
1454
+ type: Array,
1455
+ default: () => []
1456
+ },
1457
+ description: {
1458
+ type: String,
1459
+ default: ''
1460
+ },
1461
+ placeholder: {
1462
+ type: String,
1463
+ default: ''
1464
+ },
1465
+ autofocus: {
1466
+ type: Boolean,
1467
+ default: false
1468
+ },
1469
+ format: {
1470
+ type: String,
1471
+ default: Formats.Markup
1472
+ },
1473
+ fullHeight: {
1474
+ type: Boolean,
1475
+ default: false
1476
+ }
1477
+ },
1478
+ emits: ['update:modelValue', 'input', 'file-upload'],
1479
+ expose: ['root'],
1480
+ setup(props, context) {
1481
+ // Refs
1482
+ const root = ref();
1483
+ let editor = null;
1484
+ const editorRef = ref();
1485
+ const textareaRef = ref();
1486
+ const containerRef = ref();
1487
+ const toolbarRef = ref();
1488
+ const moreButtonRef = ref();
1489
+ const moreRef = ref();
1490
+ const toolbarButtonRef = ref();
1491
+ const menuRef = ref();
1492
+ // isActive should be set with default values for all toolbar buttons, otherwise it will not work in vue2
1493
+ const isActive = ref({
1494
+ bold: false,
1495
+ italic: false,
1496
+ underline: false,
1497
+ strike: false,
1498
+ bulletList: false,
1499
+ orderedList: false,
1500
+ link: false,
1501
+ highlight: false,
1502
+ redo: false,
1503
+ undo: false,
1504
+ codeBlock: false,
1505
+ blockquote: false,
1506
+ file: false,
1507
+ source: false
1508
+ });
1509
+ const isFocused = ref(props.autofocus);
1510
+ const headingLevels = [1, 2, 3, 4];
1511
+ const activeHeadingLevel = ref(0);
1512
+ const markdownOutput = ref('');
1513
+ const isOpenLinkModal = ref(false);
1514
+ const disableMarkdown = ref(false);
1515
+ const text = ref('');
1516
+ const link = ref('');
1517
+ const countOfNotVisibleTools = ref(0);
1518
+ const sourceValue = ref('');
1519
+ let trap = useFocusTrap(editorRef, {
1520
+ immediate: true,
1521
+ fallbackFocus: '.container',
1522
+ allowOutsideClick: true
1523
+ });
1524
+ const iconsEnum = ref({
1525
+ bold: 'format_bold',
1526
+ italic: 'format_italic',
1527
+ underline: 'format_underlined',
1528
+ strike: 'format_strikethrough',
1529
+ bulletList: 'format_list_bulleted',
1530
+ orderedList: 'format_list_numbered',
1531
+ link: 'link',
1532
+ highlight: 'highlight',
1533
+ redo: 'redo',
1534
+ undo: 'undo',
1535
+ codeBlock: 'code_blocks',
1536
+ blockquote: 'format_quote',
1537
+ file: 'attach_file',
1538
+ source: 'source_notes'
1539
+ });
1540
+ const iconTooltipsEnum = ref({
1541
+ bold: 'Bold',
1542
+ italic: 'Italic',
1543
+ underline: 'Underline',
1544
+ strike: 'Strike',
1545
+ bulletList: 'Bulleted List',
1546
+ orderedList: 'Numbered List',
1547
+ link: 'Link',
1548
+ highlight: 'Highlight',
1549
+ redo: 'Redo',
1550
+ undo: 'Undo',
1551
+ codeBlock: 'Code Block',
1552
+ blockquote: 'Quote',
1553
+ file: 'File',
1554
+ source: 'Source'
1555
+ });
1556
+ useResizeObserver(root, entries => {
1557
+ var _a, _b;
1558
+ const entry = entries[0];
1559
+ const {
1560
+ width
1561
+ } = entry.contentRect;
1562
+ if (containerRef.value && toolbarRef.value && toolbarLength.value) {
1563
+ let lengthOfItem = 0;
1564
+ lengthOfItem = ((_b = (_a = toolbarRef.value.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.offsetWidth) + 16;
1565
+ const count = width / lengthOfItem - 2;
1566
+ countOfNotVisibleTools.value = Math.round(toolbarLength.value - count);
1567
+ }
1568
+ });
1569
+ onMounted(() => {
1570
+ editor = new Editor({
1571
+ onUpdate: _ref => {
1572
+ let {
1573
+ editor
1574
+ } = _ref;
1575
+ isFocused.value = true;
1576
+ setActiveFormats();
1577
+ const html = editor.getHTML();
1578
+ const text = editor.getText();
1579
+ if (props.format === 'markdown') {
1580
+ markdownOutput.value = serialize(editor.schema, editor.getJSON());
1581
+ proxyModelValue.value = markdownOutput.value;
1582
+ } else {
1583
+ proxyModelValue.value = text === '' ? text : html;
1584
+ }
1585
+ },
1586
+ onCreate: _ref2 => {
1587
+ let {
1588
+ editor
1589
+ } = _ref2;
1590
+ if (props.format === 'markdown') {
1591
+ const deserialized = deserialize(editor.schema, proxyModelValue.value);
1592
+ editor.commands.setContent(deserialized);
1593
+ } else {
1594
+ editor.commands.setContent(proxyModelValue.value);
1595
+ }
1596
+ },
1597
+ element: editorRef.value,
1598
+ autofocus: props.autofocus,
1599
+ enableInputRules: true,
1600
+ enablePasteRules: true,
1601
+ extensions: [codemirrorNode, StarterKit.configure({
1602
+ heading: false,
1603
+ codeBlock: false,
1604
+ paragraph: false,
1605
+ bulletList: false,
1606
+ orderedList: false,
1607
+ blockquote: false
1608
+ }), Paragraph.configure({
1609
+ HTMLAttributes: {
1610
+ class: 'my-xs'
1611
+ }
1612
+ }), BulletList.configure({
1613
+ HTMLAttributes: {
1614
+ class: 'mx-lg my-xs list-disc'
1615
+ }
1616
+ }), OrderedList.configure({
1617
+ HTMLAttributes: {
1618
+ class: 'mx-lg my-xs list-decimal'
1619
+ }
1620
+ }), Blockquote.configure({
1621
+ HTMLAttributes: {
1622
+ class: 'my-sm mx-lg px-lg border-l-2 border-outline'
1623
+ }
1624
+ }), Heading.configure({
1625
+ levels: headingLevels
1626
+ }).extend({
1627
+ levels: headingLevels,
1628
+ renderHTML(_ref3) {
1629
+ let {
1630
+ node,
1631
+ HTMLAttributes
1632
+ } = _ref3;
1633
+ return ['h' + node.attrs.level, mergeAttributes(HTMLAttributes, {
1634
+ class: `typography-headline-${node.attrs.level} my-xs`
1635
+ }), 0];
1636
+ }
1637
+ }), Underline, Link.configure({
1638
+ openOnClick: true,
1639
+ linkOnPaste: true,
1640
+ autolink: false,
1641
+ protocols: ['ftp', 'mailto', 'http', 'https'],
1642
+ validate: href => /^https?:\/\//.test(href),
1643
+ HTMLAttributes: {
1644
+ class: 'text-primary cursor-pointer'
1645
+ }
1646
+ }), Highlight, Placeholder.configure({
1647
+ placeholder: props.placeholder,
1648
+ emptyEditorClass: 'is-editor-empty text-outline'
1649
+ })],
1650
+ editorProps: {
1651
+ attributes: {
1652
+ class: 'flex flex-col focus:outline-none gap-xs'
1653
+ }
1654
+ },
1655
+ parseOptions: {
1656
+ preserveWhitespace: true
1657
+ }
1658
+ });
1659
+ setActiveFormats();
1660
+ trap.activate();
1661
+ });
1662
+ onBeforeUnmount(() => {
1663
+ editor === null || editor === void 0 ? void 0 : editor.destroy();
1664
+ });
1665
+ onClickOutside(root, () => {
1666
+ isFocused.value = false;
1667
+ trap.deactivate();
1668
+ });
1669
+ // Computed
1670
+ const proxyModelValue = computed({
1671
+ get: () => {
1672
+ return props.modelValue;
1673
+ },
1674
+ set: value => {
1675
+ context.emit('input', value);
1676
+ context.emit('update:modelValue', value);
1677
+ }
1678
+ });
1679
+ const getIndexOfHeading = computed(() => {
1680
+ return props.toolbar.flat().indexOf('heading');
1681
+ });
1682
+ const headingIcon = computed(() => {
1683
+ if (activeHeadingLevel.value && isActive.value.heading) {
1684
+ return `format_h${activeHeadingLevel.value}`;
1685
+ }
1686
+ return 'format_paragraph';
1687
+ });
1688
+ const toolbarLength = computed(() => {
1689
+ return props.toolbar.flat().length;
1690
+ });
1691
+ const notVisibleTools = computed(() => {
1692
+ const count = countOfNotVisibleTools.value;
1693
+ const toolbar = props.toolbar.flat();
1694
+ let notVisible = new Set(toolbar.slice(toolbar.length - count, toolbar.length));
1695
+ props.toolbar.forEach(tools => {
1696
+ if (tools.some(item => notVisible.has(item))) {
1697
+ tools.forEach(item => notVisible.add(item));
1698
+ }
1699
+ });
1700
+ return notVisible;
1701
+ });
1702
+ //Methods
1703
+ const handleEditorClick = () => {
1704
+ var _a;
1705
+ setActiveFormats();
1706
+ isFocused.value = true;
1707
+ editor === null || editor === void 0 ? void 0 : editor.commands.focus();
1708
+ activeHeadingLevel.value = ((_a = editor === null || editor === void 0 ? void 0 : editor.getAttributes('heading')) === null || _a === void 0 ? void 0 : _a.level) || 0;
1709
+ };
1710
+ const isVisible = value => {
1711
+ if (Array.isArray(value)) {
1712
+ const isHaveNotVisibleTools = value.some(item => notVisibleTools.value.has(item));
1713
+ return isHaveNotVisibleTools;
1714
+ }
1715
+ return !notVisibleTools.value.has(value);
1716
+ };
1717
+ const handleInput = event => {
1718
+ const target = event.target;
1719
+ const value = target.value;
1720
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value));
1721
+ markdownOutput.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
1722
+ proxyModelValue.value = markdownOutput.value;
1723
+ };
1724
+ const handleToolbarClick = (item, level) => {
1725
+ var _a, _b;
1726
+ switch (item) {
1727
+ case 'source':
1728
+ disableMarkdown.value = !disableMarkdown.value;
1729
+ sourceValue.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
1730
+ nextTick(() => {
1731
+ var _a;
1732
+ return (_a = textareaRef.value) === null || _a === void 0 ? void 0 : _a.focus();
1733
+ });
1734
+ break;
1735
+ case 'bulletList':
1736
+ case 'orderedList':
1737
+ item === 'bulletList' ? editor === null || editor === void 0 ? void 0 : editor.commands.toggleBulletList() : editor === null || editor === void 0 ? void 0 : editor.commands.toggleOrderedList();
1738
+ break;
1739
+ case 'link':
1740
+ if (editor) {
1741
+ const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
1742
+ const {
1743
+ from,
1744
+ to,
1745
+ empty
1746
+ } = editor.state.selection;
1747
+ const isLink = (_a = editor.view.state.doc.nodeAt(cursorPosition)) === null || _a === void 0 ? void 0 : _a.marks.filter(mark => mark.type.name === 'link');
1748
+ 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) || '' : '';
1749
+ text.value = empty ? existedText : editor.state.doc.textBetween(from, to, ' ');
1750
+ link.value = editor.getAttributes('link').href || '';
1751
+ }
1752
+ isOpenLinkModal.value = !isOpenLinkModal.value;
1753
+ break;
1754
+ case 'blockquote':
1755
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleBlockquote().run();
1756
+ break;
1757
+ case 'codeBlock':
1758
+ if (!isActive.value['codeBlock']) {
1759
+ editor === null || editor === void 0 ? void 0 : editor.commands.setNode(item, {
1760
+ language: 'javascript'
1761
+ });
1762
+ } else {
1763
+ editor === null || editor === void 0 ? void 0 : editor.commands.setNode('paragraph');
1764
+ }
1765
+ break;
1766
+ case 'heading':
1767
+ if (!level) {
1768
+ editor === null || editor === void 0 ? void 0 : editor.commands.setParagraph();
1769
+ activeHeadingLevel.value = 0;
1770
+ } else {
1771
+ activeHeadingLevel.value = level;
1772
+ editor === null || editor === void 0 ? void 0 : editor.commands.toggleHeading({
1773
+ level: level
1774
+ });
1775
+ }
1776
+ editor === null || editor === void 0 ? void 0 : editor.commands.focus();
1777
+ break;
1778
+ case 'undo':
1779
+ case 'redo':
1780
+ item === 'undo' ? editor === null || editor === void 0 ? void 0 : editor.commands.undo() : editor === null || editor === void 0 ? void 0 : editor.commands.redo();
1781
+ break;
1782
+ case 'file':
1783
+ context.emit('file-upload');
1784
+ break;
1785
+ default:
1786
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleMark(item).run();
1787
+ break;
1788
+ }
1789
+ };
1790
+ const attachLink = async () => {
1791
+ var _a, _b;
1792
+ // empty
1793
+ if (link.value === '') {
1794
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().extendMarkRange('link').unsetLink().run();
1795
+ }
1796
+ const isEmptySelection = editor === null || editor === void 0 ? void 0 : editor.state.selection.empty;
1797
+ const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
1798
+ 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');
1799
+ 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 : '';
1800
+ if (link.value && isEmptySelection && !existedText) {
1801
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
1802
+ href: link.value,
1803
+ target: '__blank'
1804
+ }).command(_ref4 => {
1805
+ let {
1806
+ tr
1807
+ } = _ref4;
1808
+ const preparedValue = text.value[text.value.length - 1] === ' ' ? text.value : `${text.value} `;
1809
+ tr.insertText(preparedValue);
1810
+ return true;
1811
+ }).run();
1812
+ }
1813
+ if (link.value && existedText === text.value && isEmptySelection) {
1814
+ editor === null || editor === void 0 ? void 0 : editor.chain().extendMarkRange('link').updateAttributes('link', {
1815
+ href: link.value
1816
+ }).run();
1817
+ }
1818
+ if (link.value && !isEmptySelection) {
1819
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
1820
+ href: link.value,
1821
+ target: '__blank'
1822
+ }).run();
1823
+ }
1824
+ text.value = '';
1825
+ link.value = '';
1826
+ isOpenLinkModal.value = false;
1827
+ };
1828
+ const discardLink = () => {
1829
+ isOpenLinkModal.value = false;
1830
+ };
1831
+ const setActiveFormats = () => {
1832
+ const toolbarList = props.toolbar.flat();
1833
+ toolbarList.forEach(item => {
1834
+ if (item === 'source') {
1835
+ isActive.value[item] = disableMarkdown.value;
1836
+ } else {
1837
+ isActive.value[item] = (editor === null || editor === void 0 ? void 0 : editor.isActive(item)) || false;
1838
+ }
1839
+ });
1840
+ };
1841
+ // Styles
1842
+ const rootStyles = computed(() => {
1843
+ return ['or-rich-text-editor', ...(props.fullHeight ? ['h-full'] : [])];
1844
+ });
1845
+ const containerStyles = computed(() => {
1846
+ return [...EditorContainer, ...(props.fullHeight ? ['h-full'] : [])];
1847
+ });
1848
+ const toolbarContainerStyles = computed(() => {
1849
+ return [...ToolbarContainer];
1850
+ });
1851
+ const toolbarStyles = computed(() => {
1852
+ return [...Toolbar,
1853
+ // 'overflow-x-hidden',
1854
+ ...(isFocused.value ? ToolbarButtonFocused : ToolbarButton)];
1855
+ });
1856
+ const editorInputStyles = computed(() => {
1857
+ return ['tiptap-editor-v3', ...(props.fullHeight ? ['h-full overflow-y-auto'] : []), ...EditorInput];
1858
+ });
1859
+ //Effects
1860
+ watch(proxyModelValue, value => {
1861
+ if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && props.format !== 'markdown') {
1862
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
1863
+ }
1864
+ if (props.format === 'markdown' && value !== markdownOutput.value) {
1865
+ //TODO: const deserialized = deserialize(editor?.schema, value);
1866
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
1867
+ }
1868
+ });
1869
+ return {
1870
+ editor,
1871
+ editorRef,
1872
+ toolbarRef,
1873
+ containerRef,
1874
+ toolbarButtonRef,
1875
+ moreButtonRef,
1876
+ textareaRef,
1877
+ moreRef,
1878
+ menuRef,
1879
+ iconsEnum,
1880
+ handleToolbarClick,
1881
+ handleEditorClick,
1882
+ isActive,
1883
+ iconTooltipsEnum,
1884
+ containerStyles,
1885
+ toolbarContainerStyles,
1886
+ toolbarStyles,
1887
+ rootStyles,
1888
+ root,
1889
+ editorInputStyles,
1890
+ getIndexOfHeading,
1891
+ headingLevels,
1892
+ headingIcon,
1893
+ attachLink,
1894
+ discardLink,
1895
+ isOpenLinkModal,
1896
+ text,
1897
+ link,
1898
+ isFocused,
1899
+ isVisible,
1900
+ countOfNotVisibleTools,
1901
+ notVisibleTools,
1902
+ handleInput,
1903
+ proxyModelValue,
1904
+ disableMarkdown,
1905
+ sourceValue
1906
+ };
1907
+ }
1908
+ });
1909
+
1910
+ export { script as s };