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