@onereach/ui-components 4.5.0 → 4.6.0-beta.2747.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 (418) hide show
  1. package/dist/bundled/v2/components/OrCode/OrCode.js +6 -3792
  2. package/dist/bundled/v2/components/OrCode/index.js +6 -2
  3. package/dist/bundled/v2/components/OrCode/lang.js +3941 -3
  4. package/dist/bundled/v2/components/OrCode/theme.js +2 -1
  5. package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +2 -1
  6. package/dist/bundled/v2/components/OrConfirm/index.js +2 -1
  7. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +1 -1
  8. package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -1
  9. package/dist/bundled/v2/components/OrModal/OrModal.js +3 -1346
  10. package/dist/bundled/v2/components/OrModal/index.js +1 -0
  11. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2200 -0
  12. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +220 -0
  13. package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +2 -0
  14. package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +70 -0
  15. package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +4 -0
  16. package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +7 -0
  17. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +6 -0
  18. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +38 -0
  19. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
  20. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +46 -0
  21. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
  22. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +184 -0
  23. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
  24. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +5 -0
  25. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +24 -0
  26. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +190 -0
  27. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
  28. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
  29. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
  30. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +5 -0
  31. package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
  32. package/dist/bundled/v2/components/OrTextarea/OrTextarea.vue.d.ts +2 -2
  33. package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +2 -2
  34. package/dist/bundled/v2/components/OrTextbox/OrTextbox.vue.d.ts +2 -2
  35. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +2 -2
  36. package/dist/bundled/v2/components/OrToast/OrToast.vue.d.ts +2 -2
  37. package/dist/bundled/v2/components/OrToastV3/OrToast.vue.d.ts +2 -2
  38. package/dist/bundled/v2/components/OrTooltip/OrTooltip.vue.d.ts +2 -2
  39. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +2 -2
  40. package/dist/bundled/v2/components/index.d.ts +1 -0
  41. package/dist/bundled/v2/components/index.js +17 -3
  42. package/dist/bundled/{v3/index-cf2c3c27.js → v2/index-0d224ae5.js} +3 -115
  43. package/dist/bundled/v2/index-418d5c0d.js +9633 -0
  44. package/dist/bundled/v2/index-85c2efe8.js +7122 -0
  45. package/dist/bundled/{v3/OrCode.vue_vue_type_script_lang-74060519.js → v2/index-d92d0b48.js} +14 -235
  46. package/dist/bundled/{v3/lang-0fb8f78b.js → v2/index-e9f6b2d8.js} +73 -4009
  47. package/dist/bundled/v2/index.es-3f39f316.js +115 -0
  48. package/dist/bundled/v2/index.js +20 -6
  49. package/dist/bundled/v2/markdown-7c7c4ca6.js +17980 -0
  50. package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-ae842e5b.js → v2/useFocusTrap-48767a70.js} +3 -106
  51. package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-7e29b3d0.js +237 -0
  52. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-e1390930.js → OrConfirm.vue_vue_type_script_lang-13397889.js} +1 -1
  53. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-e5a8f92a.js → OrConfirm.vue_vue_type_script_lang-4eaa8470.js} +2 -2
  54. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-2c009ee0.js +108 -0
  55. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-fd3f9c45.js +1890 -0
  56. package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +26 -11
  57. package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +24 -8
  58. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +33 -20
  59. package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +51 -16
  60. package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +57 -20
  61. package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +35 -15
  62. package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +15 -7
  63. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +47 -21
  64. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +70 -22
  65. package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +7 -4
  66. package/dist/bundled/v3/components/OrCarousel/OrCarousel.vue.d.ts +676 -126
  67. package/dist/bundled/v3/components/OrCarouselItem/OrCarouselItem.vue.d.ts +1 -1
  68. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +35 -15
  69. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +24 -6
  70. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +43 -17
  71. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +53 -23
  72. package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +25 -9
  73. package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +51 -24
  74. package/dist/bundled/v3/components/OrCode/OrCode.js +10 -6
  75. package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +69 -24
  76. package/dist/bundled/v3/components/OrCode/index.js +8 -4
  77. package/dist/bundled/v3/components/OrCode/lang.js +3941 -3
  78. package/dist/bundled/v3/components/OrCode/theme.js +2 -1
  79. package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +39 -17
  80. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +31 -13
  81. package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +30 -8
  82. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +5 -4
  83. package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +84 -23
  84. package/dist/bundled/v3/components/OrConfirm/index.js +4 -3
  85. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +3 -3
  86. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +91 -29
  87. package/dist/bundled/v3/components/OrConfirmV3/index.js +2 -2
  88. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +81 -25
  89. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +177 -68
  90. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +105 -31
  91. package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +28 -11
  92. package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +8 -4
  93. package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +7 -4
  94. package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +18 -9
  95. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +35 -14
  96. package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +20 -8
  97. package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +46 -15
  98. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +30 -10
  99. package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +8 -4
  100. package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +18 -9
  101. package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +44 -16
  102. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +43 -13
  103. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +52 -16
  104. package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +18 -7
  105. package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +16 -7
  106. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +83 -39
  107. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +95 -43
  108. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +79 -39
  109. package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +87 -36
  110. package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +22 -7
  111. package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +85 -34
  112. package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +20 -9
  113. package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +24 -9
  114. package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +24 -7
  115. package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +47 -21
  116. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +27 -11
  117. package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +26 -10
  118. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +34 -13
  119. package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +34 -13
  120. package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +43 -16
  121. package/dist/bundled/v3/components/OrModal/OrModal.js +3 -2
  122. package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +38 -14
  123. package/dist/bundled/v3/components/OrModal/index.js +2 -1
  124. package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +31 -15
  125. package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +27 -9
  126. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +20 -9
  127. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +70 -24
  128. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +31 -13
  129. package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +16 -6
  130. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +14 -7
  131. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +75 -27
  132. package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +63 -22
  133. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +76 -28
  134. package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +56 -20
  135. package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +62 -25
  136. package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +35 -13
  137. package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +26 -9
  138. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +32 -6
  139. package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +49 -21
  140. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +284 -0
  141. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +220 -0
  142. package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +2 -0
  143. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +86 -0
  144. package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +4 -0
  145. package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +7 -0
  146. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +6 -0
  147. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +38 -0
  148. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
  149. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +46 -0
  150. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
  151. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +184 -0
  152. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
  153. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +5 -0
  154. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +24 -0
  155. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +190 -0
  156. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
  157. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
  158. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
  159. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +5 -0
  160. package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +65 -23
  161. package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +41 -17
  162. package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +25 -9
  163. package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +77 -28
  164. package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +115 -37
  165. package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +33 -14
  166. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +63 -28
  167. package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +20 -9
  168. package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +28 -13
  169. package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +22 -9
  170. package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +26 -11
  171. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +26 -10
  172. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +40 -16
  173. package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +91 -35
  174. package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.vue.d.ts +25 -13
  175. package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +43 -16
  176. package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +33 -12
  177. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +53 -22
  178. package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +22 -9
  179. package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +29 -13
  180. package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +17 -10
  181. package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +17 -4
  182. package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +71 -25
  183. package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +27 -10
  184. package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +23 -12
  185. package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +63 -19
  186. package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +10 -4
  187. package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +10 -4
  188. package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +24 -11
  189. package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +85 -37
  190. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +73 -32
  191. package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +137 -55
  192. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +79 -25
  193. package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +31 -11
  194. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +55 -25
  195. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +54 -24
  196. package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +38 -16
  197. package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +33 -14
  198. package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +10 -4
  199. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +37 -13
  200. package/dist/bundled/v3/components/index.d.ts +1 -0
  201. package/dist/bundled/v3/components/index.js +22 -7
  202. package/dist/bundled/v3/directives/dropdown-close.d.ts +1 -3
  203. package/dist/bundled/v3/directives/dropdown-open.d.ts +1 -3
  204. package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
  205. package/dist/bundled/{v2/index-cf2c3c27.js → v3/index-0d224ae5.js} +3 -115
  206. package/dist/bundled/v3/index-418d5c0d.js +9633 -0
  207. package/dist/bundled/v3/index-85c2efe8.js +7122 -0
  208. package/dist/bundled/v3/index-d92d0b48.js +3805 -0
  209. package/dist/bundled/{v2/lang-0fb8f78b.js → v3/index-e9f6b2d8.js} +73 -4009
  210. package/dist/bundled/v3/index.es-3f39f316.js +115 -0
  211. package/dist/bundled/v3/index.js +26 -11
  212. package/dist/bundled/v3/markdown-7c7c4ca6.js +17980 -0
  213. package/dist/bundled/v3/useFocusTrap-48767a70.js +1348 -0
  214. package/dist/esm/v2/OrRichTextEditor-e31b0fb4.js +923 -0
  215. package/dist/esm/v2/codemirrorView-be2c7423.js +353 -0
  216. package/dist/esm/v2/components/index.d.ts +1 -0
  217. package/dist/esm/v2/components/index.js +24 -0
  218. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +220 -0
  219. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +2 -0
  220. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +59 -0
  221. package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +4 -0
  222. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  223. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  224. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
  225. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  226. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +7 -0
  227. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +24 -0
  228. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  229. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
  230. package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
  231. package/dist/esm/v2/components/or-textarea/OrTextarea.vue.d.ts +2 -2
  232. package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +2 -2
  233. package/dist/esm/v2/components/or-textbox/OrTextbox.vue.d.ts +2 -2
  234. package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +2 -2
  235. package/dist/esm/v2/components/or-toast/OrToast.vue.d.ts +2 -2
  236. package/dist/esm/v2/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +2 -2
  237. package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -2
  238. package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +2 -2
  239. package/dist/esm/v2/components/or-tooltip/OrTooltip.vue.d.ts +2 -2
  240. package/dist/esm/v2/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +2 -2
  241. package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
  242. package/dist/esm/v2/index.js +24 -0
  243. package/dist/esm/v3/OrRichTextEditor-bdb2040e.js +856 -0
  244. package/dist/esm/v3/codemirrorView-be2c7423.js +353 -0
  245. package/dist/esm/v3/components/index.d.ts +1 -0
  246. package/dist/esm/v3/components/index.js +24 -0
  247. package/dist/esm/v3/components/or-avatar/OrAvatar.vue.d.ts +26 -11
  248. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +24 -8
  249. package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +33 -20
  250. package/dist/esm/v3/components/or-button/OrButton.vue.d.ts +51 -16
  251. package/dist/esm/v3/components/or-button-v2/OrButton.vue.d.ts +57 -20
  252. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +35 -15
  253. package/dist/esm/v3/components/or-card/OrCard.vue.d.ts +15 -7
  254. package/dist/esm/v3/components/or-card-collection/OrCardCollection.vue.d.ts +47 -21
  255. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +70 -22
  256. package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +14 -6
  257. package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +7 -4
  258. package/dist/esm/v3/components/or-carousel/OrCarousel.vue.d.ts +676 -126
  259. package/dist/esm/v3/components/or-carousel/or-carousel-item/OrCarouselItem.vue.d.ts +1 -1
  260. package/dist/esm/v3/components/or-checkbox/OrCheckbox.vue.d.ts +35 -15
  261. package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +24 -6
  262. package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +43 -17
  263. package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +53 -23
  264. package/dist/esm/v3/components/or-chips/OrChips.vue.d.ts +51 -24
  265. package/dist/esm/v3/components/or-chips/or-chip/OrChip.vue.d.ts +25 -9
  266. package/dist/esm/v3/components/or-chips/partials/OrChipsInput.vue.d.ts +37 -17
  267. package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +69 -24
  268. package/dist/esm/v3/components/or-collapse/OrCollapse.vue.d.ts +39 -17
  269. package/dist/esm/v3/components/or-color-picker/OrColorPicker.vue.d.ts +31 -13
  270. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +30 -8
  271. package/dist/esm/v3/components/or-confirm/OrConfirm.vue.d.ts +84 -23
  272. package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +91 -29
  273. package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +81 -25
  274. package/dist/esm/v3/components/or-date-time-picker/OrDateTimePicker.vue.d.ts +177 -68
  275. package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +33 -12
  276. package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +105 -31
  277. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +28 -11
  278. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +39 -17
  279. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +15 -7
  280. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +85 -23
  281. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +11 -7
  282. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +7 -4
  283. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +28 -11
  284. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +37 -15
  285. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +28 -11
  286. package/dist/esm/v3/components/or-error/OrError.vue.d.ts +8 -4
  287. package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +7 -4
  288. package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +18 -9
  289. package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +35 -14
  290. package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +20 -8
  291. package/dist/esm/v3/components/or-floating/OrFloating.vue.d.ts +46 -15
  292. package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +30 -10
  293. package/dist/esm/v3/components/or-hint/OrHint.vue.d.ts +8 -4
  294. package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +18 -9
  295. package/dist/esm/v3/components/or-icon/OrIcon.vue.d.ts +44 -16
  296. package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +43 -13
  297. package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +10 -8
  298. package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +52 -16
  299. package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +18 -7
  300. package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +16 -7
  301. package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +83 -39
  302. package/dist/esm/v3/components/or-inline-text-edit/OrInlineTextEdit.vue.d.ts +95 -43
  303. package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +79 -39
  304. package/dist/esm/v3/components/or-input/OrInput.vue.d.ts +87 -36
  305. package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +22 -7
  306. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +85 -34
  307. package/dist/esm/v3/components/or-label/OrLabel.vue.d.ts +20 -9
  308. package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +24 -9
  309. package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +24 -7
  310. package/dist/esm/v3/components/or-list/OrList.vue.d.ts +47 -21
  311. package/dist/esm/v3/components/or-list-of-inputs/OrListOfInputs.vue.d.ts +27 -11
  312. package/dist/esm/v3/components/or-loader/OrLoader.vue.d.ts +26 -10
  313. package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +34 -13
  314. package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +34 -13
  315. package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +43 -16
  316. package/dist/esm/v3/components/or-modal/OrModal.vue.d.ts +38 -14
  317. package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +31 -15
  318. package/dist/esm/v3/components/or-notification/OrNotification.vue.d.ts +27 -9
  319. package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +20 -9
  320. package/dist/esm/v3/components/or-number-input/OrNumberInput.vue.d.ts +70 -24
  321. package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenu.vue.d.ts +31 -13
  322. package/dist/esm/v3/components/or-overflow-menu/partials/OrOverflowMenuItem.vue.d.ts +23 -7
  323. package/dist/esm/v3/components/or-overlay/OrOverlay.vue.d.ts +16 -6
  324. package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +14 -7
  325. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +75 -27
  326. package/dist/esm/v3/components/or-password/OrPassword.vue.d.ts +63 -22
  327. package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +76 -28
  328. package/dist/esm/v3/components/or-progress/OrProgress.vue.d.ts +56 -20
  329. package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +62 -25
  330. package/dist/esm/v3/components/or-radio/OrRadio.vue.d.ts +35 -13
  331. package/dist/esm/v3/components/or-radio-group/OrRadioGroup.vue.d.ts +26 -9
  332. package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +32 -6
  333. package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +49 -21
  334. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +220 -0
  335. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +2 -0
  336. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +57 -0
  337. package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +4 -0
  338. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  339. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  340. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
  341. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  342. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +7 -0
  343. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +24 -0
  344. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  345. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
  346. package/dist/esm/v3/components/or-search/OrSearch.vue.d.ts +65 -23
  347. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +41 -17
  348. package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +25 -9
  349. package/dist/esm/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +20 -8
  350. package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +77 -28
  351. package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +49 -18
  352. package/dist/esm/v3/components/or-select/partials/OrSelectContentEmpty.vue.d.ts +16 -4
  353. package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +67 -13
  354. package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +41 -16
  355. package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +35 -16
  356. package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +71 -24
  357. package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +19 -7
  358. package/dist/esm/v3/components/or-select/partials/OrSelectSearchOptions.vue.d.ts +24 -11
  359. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +115 -37
  360. package/dist/esm/v3/components/or-sidebar/OrSidebar.vue.d.ts +33 -14
  361. package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +63 -28
  362. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +23 -10
  363. package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue.d.ts +20 -9
  364. package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue.d.ts +22 -9
  365. package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +26 -10
  366. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +28 -13
  367. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +26 -11
  368. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +40 -16
  369. package/dist/esm/v3/components/or-slider/OrSlider.vue.d.ts +91 -35
  370. package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +25 -13
  371. package/dist/esm/v3/components/or-stepper/OrStepper.vue.d.ts +43 -16
  372. package/dist/esm/v3/components/or-stepper/partials/OrStepperButtonOptions.vue.d.ts +20 -4
  373. package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionHorizontal.vue.d.ts +26 -4
  374. package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionVertical.vue.d.ts +26 -4
  375. package/dist/esm/v3/components/or-stepper/partials/OrStepperTitle.vue.d.ts +22 -6
  376. package/dist/esm/v3/components/or-stepper/partials/StatusIcon.vue.d.ts +12 -6
  377. package/dist/esm/v3/components/or-switch/OrSwitch.vue.d.ts +33 -12
  378. package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +53 -22
  379. package/dist/esm/v3/components/or-tab/OrTab.vue.d.ts +22 -9
  380. package/dist/esm/v3/components/or-tab-header-item/OrTabHeaderItem.vue.d.ts +29 -13
  381. package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +17 -10
  382. package/dist/esm/v3/components/or-tabs/OrTabs.vue.d.ts +17 -4
  383. package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +71 -25
  384. package/dist/esm/v3/components/or-tag/OrTag.vue.d.ts +27 -10
  385. package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +23 -12
  386. package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +63 -19
  387. package/dist/esm/v3/components/or-teleport/OrTeleport.vue3.vue.d.ts +10 -4
  388. package/dist/esm/v3/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +10 -4
  389. package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +24 -11
  390. package/dist/esm/v3/components/or-textarea/OrTextarea.vue.d.ts +85 -37
  391. package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +73 -32
  392. package/dist/esm/v3/components/or-textbox/OrTextbox.vue.d.ts +137 -55
  393. package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +79 -25
  394. package/dist/esm/v3/components/or-toast/OrToast.vue.d.ts +31 -11
  395. package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +55 -25
  396. package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +38 -16
  397. package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +54 -24
  398. package/dist/esm/v3/components/or-tooltip/OrTooltip.vue.d.ts +33 -14
  399. package/dist/esm/v3/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +10 -4
  400. package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +37 -13
  401. package/dist/esm/v3/directives/dropdown-close.d.ts +1 -3
  402. package/dist/esm/v3/directives/dropdown-open.d.ts +1 -3
  403. package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
  404. package/dist/esm/v3/index.js +24 -0
  405. package/package.json +24 -4
  406. package/src/components/index.ts +1 -0
  407. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +766 -0
  408. package/src/components/or-rich-text-editor-v3/index.ts +2 -0
  409. package/src/components/or-rich-text-editor-v3/props.ts +4 -0
  410. package/src/components/or-rich-text-editor-v3/styles.ts +54 -0
  411. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
  412. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +254 -0
  413. package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
  414. package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +213 -0
  415. package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
  416. package/src/components/or-rich-text-editor-v3/utils/markdown.ts +120 -0
  417. /package/dist/bundled/v2/{index-968c331a.js → index-f6664cb1.js} +0 -0
  418. /package/dist/bundled/v3/{index-968c331a.js → index-f6664cb1.js} +0 -0
@@ -0,0 +1,923 @@
1
+ import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch, nextTick } from 'vue-demi';
2
+ import { useFocusTrap } from '@vueuse/integrations/useFocusTrap';
3
+ import { useResizeObserver, onClickOutside } from '@vueuse/core';
4
+ import { defaultMarkdownSerializer, MarkdownSerializer } from 'prosemirror-markdown';
5
+ import { DOMParser as DOMParser$1 } from 'prosemirror-model';
6
+ import { marked } from 'marked';
7
+ import Paragraph from '@tiptap/extension-paragraph';
8
+ import BulletList from '@tiptap/extension-bullet-list';
9
+ import ListItem from '@tiptap/extension-list-item';
10
+ import OrderedList from '@tiptap/extension-ordered-list';
11
+ import Strike from '@tiptap/extension-strike';
12
+ import Italic from '@tiptap/extension-italic';
13
+ import HardBreak from '@tiptap/extension-hard-break';
14
+ import Bold from '@tiptap/extension-bold';
15
+ import CodeBlock from '@tiptap/extension-code-block';
16
+ import Blockquote from '@tiptap/extension-blockquote';
17
+ import Link from '@tiptap/extension-link';
18
+ import Highlight from '@tiptap/extension-highlight';
19
+ import Underline from '@tiptap/extension-underline';
20
+ import { _ as __vue_component__$1 } from './OrIconButton-ee747c71.js';
21
+ import { _ as __vue_component__$2 } from './OrLabel-63380256.js';
22
+ import { _ as __vue_component__$4 } from './OrMenu-8b902c22.js';
23
+ import './OrPopover-80459663.js';
24
+ import { _ as __vue_component__$3 } from './OrMenuItem-6f9b8a93.js';
25
+ import { _ as __vue_component__$5 } from './OrModal-1f80d87f.js';
26
+ import { _ as __vue_component__$6 } from './OrInput-8c7b3cce.js';
27
+ import { _ as __vue_component__$7 } from './OrButton-9622e713.js';
28
+ import { Node, Editor, mergeAttributes } from '@tiptap/core';
29
+ import StarterKit from '@tiptap/starter-kit';
30
+ import Heading from '@tiptap/extension-heading';
31
+ import Placeholder from '@tiptap/extension-placeholder';
32
+ import { C as CodeMirrorView } from './codemirrorView-be2c7423.js';
33
+ import { minimalSetup } from 'codemirror';
34
+ import { javascript } from '@codemirror/lang-javascript';
35
+ import { s as styleInject } from './style-inject.es-4c6f2515.js';
36
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
37
+
38
+ const serializerNodes = {
39
+ ...defaultMarkdownSerializer.nodes,
40
+ [Paragraph.name]: defaultMarkdownSerializer.nodes.paragraph,
41
+ [BulletList.name]: defaultMarkdownSerializer.nodes.bullet_list,
42
+ [ListItem.name]: defaultMarkdownSerializer.nodes.list_item,
43
+ [OrderedList.name]: defaultMarkdownSerializer.nodes.ordered_list,
44
+ [HardBreak.name]: defaultMarkdownSerializer.nodes.hard_break,
45
+ [CodeBlock.name]: defaultMarkdownSerializer.nodes.code_block,
46
+ [Blockquote.name]: defaultMarkdownSerializer.nodes.blockquote
47
+ };
48
+ const serializerMarks = {
49
+ ...defaultMarkdownSerializer.marks,
50
+ [Bold.name]: defaultMarkdownSerializer.marks.strong,
51
+ [Strike.name]: {
52
+ open: '~~',
53
+ close: '~~',
54
+ mixable: true,
55
+ expelEnclosingWhitespace: true
56
+ },
57
+ [Italic.name]: {
58
+ open: ' _',
59
+ close: '_ ',
60
+ mixable: true,
61
+ expelEnclosingWhitespace: true
62
+ },
63
+ [Highlight.name]: {
64
+ open: '==',
65
+ close: '==',
66
+ mixable: true,
67
+ expelEnclosingWhitespace: true
68
+ },
69
+ [Underline.name]: {
70
+ open: '',
71
+ close: '',
72
+ mixable: true,
73
+ expelEnclosingWhitespace: true
74
+ },
75
+ [Link.name]: {
76
+ open(state, mark, parent, index) {
77
+ return isPlainURL(mark, parent, index, 1) ? '<' : '[';
78
+ },
79
+ close(state, mark, parent, index) {
80
+ const href = mark.attrs.canonicalSrc || mark.attrs.href;
81
+ return isPlainURL(mark, parent, index, -1) ? '>' : `](${state.esc(href)}${mark.attrs.title ? ` ${state.quote(mark.attrs.title)}` : ''})`;
82
+ }
83
+ }
84
+ };
85
+ const isPlainURL = (link, parent, index, side) => {
86
+ if (link.attrs.title || !/^\w+:/.test(link.attrs.href)) return false;
87
+ const content = parent.child(index + (side < 0 ? -1 : 0));
88
+ if (!content.isText || content.text !== link.attrs.href || content.marks[content.marks.length - 1] !== link) return false;
89
+ if (index === (side < 0 ? 1 : parent.childCount - 1)) return true;
90
+ const next = parent.child(index + (side < 0 ? -2 : 1));
91
+ return !link.isInSet(next.marks);
92
+ };
93
+ const serialize = (schema, content) => {
94
+ const proseMirrorDocument = schema.nodeFromJSON(content);
95
+ const serializer = new MarkdownSerializer(serializerNodes, serializerMarks);
96
+ return serializer.serialize(proseMirrorDocument, {
97
+ tightLists: true
98
+ });
99
+ };
100
+ const deserialize = (schema, content) => {
101
+ if (!content) return null;
102
+ const html = marked(content, {
103
+ gfm: true,
104
+ breaks: true
105
+ });
106
+ if (!html) return null;
107
+ const parser = new DOMParser();
108
+ const {
109
+ body
110
+ } = parser.parseFromString(html, 'text/html');
111
+ // append original source as a comment that nodes can access
112
+ body.append(document.createComment(content));
113
+ const state = DOMParser$1.fromSchema(schema).parse(body);
114
+ return state.toJSON();
115
+ };
116
+
117
+ const EditorContainer = [
118
+ // Colors
119
+ 'border-outline', 'focus-within:theme-border-1-primary', 'focus-within:bg-primary-opacity-0-08', 'focus-within:theme-outline-primary',
120
+ // Sizing
121
+ 'border-1', 'rounded-md', 'w-full'];
122
+ const ToolbarContainer = [
123
+ // Layout
124
+ 'flex',
125
+ //Spacing
126
+ 'py-sm',
127
+ //Sizing
128
+ 'border-b-1',
129
+ //Colors
130
+ 'border-b-outline'];
131
+ const Toolbar = [
132
+ // Layout
133
+ 'flex',
134
+ // Spacing
135
+ 'px-sm', 'gap-md',
136
+ // Sizing
137
+ 'border-l-1',
138
+ //Colors
139
+ 'border-r-disabled',
140
+ // Last child
141
+ 'first-of-type:border-none'];
142
+ const ToolbarButton = [
143
+ // Typography
144
+ 'text-on-disabled'];
145
+ const ToolbarButtonFocused = [
146
+ // Typography
147
+ 'text-outline'];
148
+ const EditorInput = [
149
+ // Typography
150
+ 'typography-body-2-regular',
151
+ // Sizing
152
+ 'min-h-[88px]'];
153
+
154
+ var Formats;
155
+ (function (Formats) {
156
+ Formats["Markdown"] = "markdown";
157
+ Formats["Markup"] = "markup";
158
+ })(Formats || (Formats = {}));
159
+
160
+ var codemirrorNode = Node.create({
161
+ name: 'codeBlock',
162
+ content: 'text*',
163
+ marks: '',
164
+ group: 'block',
165
+ code: true,
166
+ defining: true,
167
+ isolating: true,
168
+ parseHTML() {
169
+ return [{
170
+ tag: 'pre',
171
+ preserveWhitespace: 'full'
172
+ }];
173
+ },
174
+ renderHTML() {
175
+ return ['pre', ['code', 0]];
176
+ },
177
+ addNodeView() {
178
+ return _ref => {
179
+ let {
180
+ node,
181
+ editor,
182
+ getPos
183
+ } = _ref;
184
+ return new CodeMirrorView({
185
+ node,
186
+ view: editor.view,
187
+ getPos: getPos,
188
+ cmOptions: {
189
+ extensions: [minimalSetup, javascript()]
190
+ }
191
+ });
192
+ };
193
+ }
194
+ });
195
+
196
+ var script = defineComponent({
197
+ name: 'OrRichTextEditor',
198
+ components: {
199
+ OrIconButton: __vue_component__$1,
200
+ OrLabel: __vue_component__$2,
201
+ OrMenuItem: __vue_component__$3,
202
+ OrMenu: __vue_component__$4,
203
+ OrModal: __vue_component__$5,
204
+ OrInput: __vue_component__$6,
205
+ OrButton: __vue_component__$7
206
+ },
207
+ inheritAttrs: false,
208
+ model: {
209
+ prop: 'modelValue',
210
+ event: 'update:modelValue'
211
+ },
212
+ props: {
213
+ modelValue: {
214
+ type: String,
215
+ default: undefined
216
+ },
217
+ toolbar: {
218
+ type: Array,
219
+ default: () => []
220
+ },
221
+ description: {
222
+ type: String,
223
+ default: ''
224
+ },
225
+ placeholder: {
226
+ type: String,
227
+ default: ''
228
+ },
229
+ autofocus: {
230
+ type: Boolean,
231
+ default: false
232
+ },
233
+ format: {
234
+ type: String,
235
+ default: Formats.Markup
236
+ },
237
+ fullHeight: {
238
+ type: Boolean,
239
+ default: false
240
+ }
241
+ },
242
+ emits: ['update:modelValue', 'input', 'file-upload'],
243
+ expose: ['root'],
244
+ setup(props, context) {
245
+ // Refs
246
+ const root = ref();
247
+ let editor = null;
248
+ const editorRef = ref();
249
+ const textareaRef = ref();
250
+ const containerRef = ref();
251
+ const toolbarRef = ref();
252
+ const moreButtonRef = ref();
253
+ const moreRef = ref();
254
+ const toolbarButtonRef = ref();
255
+ const menuRef = ref();
256
+ // isActive should be set with default values for all toolbar buttons, otherwise it will not work in vue2
257
+ const isActive = ref({
258
+ bold: false,
259
+ italic: false,
260
+ underline: false,
261
+ strike: false,
262
+ bulletList: false,
263
+ orderedList: false,
264
+ link: false,
265
+ highlight: false,
266
+ redo: false,
267
+ undo: false,
268
+ codeBlock: false,
269
+ blockquote: false,
270
+ file: false,
271
+ source: false
272
+ });
273
+ const isFocused = ref(props.autofocus);
274
+ const headingLevels = [1, 2, 3, 4];
275
+ const activeHeadingLevel = ref(0);
276
+ const markdownOutput = ref('');
277
+ const isOpenLinkModal = ref(false);
278
+ const disableMarkdown = ref(false);
279
+ const text = ref('');
280
+ const link = ref('');
281
+ const countOfNotVisibleTools = ref(0);
282
+ const sourceValue = ref('');
283
+ let trap = useFocusTrap(editorRef, {
284
+ immediate: true,
285
+ fallbackFocus: '.container',
286
+ allowOutsideClick: true
287
+ });
288
+ const iconsEnum = ref({
289
+ bold: 'format_bold',
290
+ italic: 'format_italic',
291
+ underline: 'format_underlined',
292
+ strike: 'format_strikethrough',
293
+ bulletList: 'format_list_bulleted',
294
+ orderedList: 'format_list_numbered',
295
+ link: 'link',
296
+ highlight: 'highlight',
297
+ redo: 'redo',
298
+ undo: 'undo',
299
+ codeBlock: 'code_blocks',
300
+ blockquote: 'format_quote',
301
+ file: 'attach_file',
302
+ source: 'source_notes'
303
+ });
304
+ const iconTooltipsEnum = ref({
305
+ bold: 'Bold',
306
+ italic: 'Italic',
307
+ underline: 'Underline',
308
+ strike: 'Strike',
309
+ bulletList: 'Bulleted List',
310
+ orderedList: 'Numbered List',
311
+ link: 'Link',
312
+ highlight: 'Highlight',
313
+ redo: 'Redo',
314
+ undo: 'Undo',
315
+ codeBlock: 'Code Block',
316
+ blockquote: 'Quote',
317
+ file: 'File',
318
+ source: 'Source'
319
+ });
320
+ useResizeObserver(root, entries => {
321
+ var _a, _b;
322
+ const entry = entries[0];
323
+ const {
324
+ width
325
+ } = entry.contentRect;
326
+ if (containerRef.value && toolbarRef.value && toolbarLength.value) {
327
+ let lengthOfItem = 0;
328
+ lengthOfItem = ((_b = (_a = toolbarRef.value.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.offsetWidth) + 16;
329
+ const lengthOfToolbar = lengthOfItem * toolbarLength.value;
330
+ if (lengthOfToolbar >= width) {
331
+ const count = width / lengthOfItem - 2;
332
+ countOfNotVisibleTools.value = Math.round(toolbarLength.value - count);
333
+ }
334
+ }
335
+ });
336
+ onMounted(() => {
337
+ editor = new Editor({
338
+ onUpdate: _ref => {
339
+ let {
340
+ editor
341
+ } = _ref;
342
+ isFocused.value = true;
343
+ setActiveFormats();
344
+ const html = editor.getHTML();
345
+ const text = editor.getText();
346
+ if (props.format === 'markdown') {
347
+ markdownOutput.value = serialize(editor.schema, editor.getJSON());
348
+ proxyModelValue.value = markdownOutput.value;
349
+ } else {
350
+ proxyModelValue.value = text === '' ? text : html;
351
+ }
352
+ },
353
+ onCreate: _ref2 => {
354
+ let {
355
+ editor
356
+ } = _ref2;
357
+ if (props.format === 'markdown') {
358
+ const deserialized = deserialize(editor.schema, proxyModelValue.value);
359
+ editor.commands.setContent(deserialized);
360
+ } else {
361
+ editor.commands.setContent(proxyModelValue.value);
362
+ }
363
+ },
364
+ element: editorRef.value,
365
+ autofocus: props.autofocus,
366
+ enableInputRules: true,
367
+ enablePasteRules: true,
368
+ extensions: [codemirrorNode, StarterKit.configure({
369
+ heading: false,
370
+ codeBlock: false
371
+ }), Heading.configure({
372
+ levels: headingLevels
373
+ }).extend({
374
+ levels: headingLevels,
375
+ renderHTML(_ref3) {
376
+ let {
377
+ node,
378
+ HTMLAttributes
379
+ } = _ref3;
380
+ return ['h' + node.attrs.level, mergeAttributes(HTMLAttributes, {
381
+ class: `typography-headline-${node.attrs.level}`
382
+ }), 0];
383
+ }
384
+ }), Underline, Link.configure({
385
+ openOnClick: true,
386
+ linkOnPaste: true,
387
+ autolink: false,
388
+ protocols: ['ftp', 'mailto', 'http', 'https'],
389
+ validate: href => /^https?:\/\//.test(href),
390
+ HTMLAttributes: {
391
+ class: 'text-primary cursor-pointer'
392
+ }
393
+ }), Highlight, Placeholder.configure({
394
+ placeholder: props.placeholder,
395
+ emptyEditorClass: 'is-editor-empty text-outline'
396
+ })],
397
+ editorProps: {
398
+ attributes: {
399
+ class: 'flex flex-col focus:outline-none gap-xs'
400
+ }
401
+ },
402
+ parseOptions: {
403
+ preserveWhitespace: true
404
+ }
405
+ });
406
+ setActiveFormats();
407
+ trap.activate();
408
+ });
409
+ onBeforeUnmount(() => {
410
+ editor === null || editor === void 0 ? void 0 : editor.destroy();
411
+ });
412
+ onClickOutside(root, () => {
413
+ isFocused.value = false;
414
+ trap.deactivate();
415
+ });
416
+ // Computed
417
+ const proxyModelValue = computed({
418
+ get: () => {
419
+ return props.modelValue;
420
+ },
421
+ set: value => {
422
+ context.emit('input', value);
423
+ context.emit('update:modelValue', value);
424
+ }
425
+ });
426
+ const getIndexOfHeading = computed(() => {
427
+ return props.toolbar.flat().indexOf('heading');
428
+ });
429
+ const headingIcon = computed(() => {
430
+ if (activeHeadingLevel.value && isActive.value.heading) {
431
+ return `format_h${activeHeadingLevel.value}`;
432
+ }
433
+ return 'format_paragraph';
434
+ });
435
+ const toolbarLength = computed(() => {
436
+ return props.toolbar.flat().length;
437
+ });
438
+ const notVisibleTools = computed(() => {
439
+ const count = countOfNotVisibleTools.value;
440
+ const toolbar = props.toolbar.flat();
441
+ let notVisible = toolbar.slice(toolbar.length - count, toolbar.length);
442
+ props.toolbar.forEach(tools => {
443
+ if (tools.some(item => notVisible.includes(item))) {
444
+ notVisible = [...notVisible, ...tools];
445
+ }
446
+ });
447
+ return notVisible;
448
+ });
449
+ //Methods
450
+ const handleEditorClick = () => {
451
+ var _a;
452
+ setActiveFormats();
453
+ isFocused.value = true;
454
+ editor === null || editor === void 0 ? void 0 : editor.commands.focus();
455
+ activeHeadingLevel.value = ((_a = editor === null || editor === void 0 ? void 0 : editor.getAttributes('heading')) === null || _a === void 0 ? void 0 : _a.level) || 0;
456
+ };
457
+ const isVisible = value => {
458
+ if (Array.isArray(value)) {
459
+ const isHaveNotVisibleTools = value.some(item => notVisibleTools.value.includes(item));
460
+ return isHaveNotVisibleTools;
461
+ }
462
+ return !notVisibleTools.value.includes(value);
463
+ };
464
+ const handleInput = event => {
465
+ const target = event.target;
466
+ const value = target.value;
467
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value));
468
+ markdownOutput.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
469
+ proxyModelValue.value = markdownOutput.value;
470
+ };
471
+ const handleToolbarClick = (item, level) => {
472
+ var _a, _b;
473
+ switch (item) {
474
+ case 'source':
475
+ disableMarkdown.value = !disableMarkdown.value;
476
+ sourceValue.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
477
+ nextTick(() => {
478
+ var _a;
479
+ return (_a = textareaRef.value) === null || _a === void 0 ? void 0 : _a.focus();
480
+ });
481
+ break;
482
+ case 'bulletList':
483
+ case 'orderedList':
484
+ item === 'bulletList' ? editor === null || editor === void 0 ? void 0 : editor.commands.toggleBulletList() : editor === null || editor === void 0 ? void 0 : editor.commands.toggleOrderedList();
485
+ break;
486
+ case 'link':
487
+ if (editor) {
488
+ const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
489
+ const {
490
+ from,
491
+ to,
492
+ empty
493
+ } = editor.state.selection;
494
+ const isLink = (_a = editor.view.state.doc.nodeAt(cursorPosition)) === null || _a === void 0 ? void 0 : _a.marks.filter(mark => mark.type.name === 'link');
495
+ 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) || '' : '';
496
+ text.value = empty ? existedText : editor.state.doc.textBetween(from, to, ' ');
497
+ link.value = editor.getAttributes('link').href || '';
498
+ }
499
+ isOpenLinkModal.value = !isOpenLinkModal.value;
500
+ break;
501
+ case 'blockquote':
502
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleBlockquote().run();
503
+ break;
504
+ case 'codeBlock':
505
+ if (!isActive.value['codeBlock']) {
506
+ editor === null || editor === void 0 ? void 0 : editor.commands.setNode(item, {
507
+ language: 'javascript'
508
+ });
509
+ } else {
510
+ editor === null || editor === void 0 ? void 0 : editor.commands.setNode('paragraph');
511
+ }
512
+ break;
513
+ case 'heading':
514
+ if (!level) {
515
+ editor === null || editor === void 0 ? void 0 : editor.commands.toggleHeading({
516
+ level: 0
517
+ });
518
+ activeHeadingLevel.value = 0;
519
+ } else {
520
+ activeHeadingLevel.value = level;
521
+ editor === null || editor === void 0 ? void 0 : editor.commands.toggleHeading({
522
+ level: level
523
+ });
524
+ }
525
+ editor === null || editor === void 0 ? void 0 : editor.commands.focus();
526
+ break;
527
+ case 'undo':
528
+ case 'redo':
529
+ item === 'undo' ? editor === null || editor === void 0 ? void 0 : editor.commands.undo() : editor === null || editor === void 0 ? void 0 : editor.commands.redo();
530
+ break;
531
+ case 'file':
532
+ context.emit('file-upload');
533
+ break;
534
+ default:
535
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleMark(item).run();
536
+ break;
537
+ }
538
+ };
539
+ const attachLink = async () => {
540
+ var _a, _b;
541
+ // empty
542
+ if (link.value === '') {
543
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().extendMarkRange('link').unsetLink().run();
544
+ }
545
+ const isEmptySelection = editor === null || editor === void 0 ? void 0 : editor.state.selection.empty;
546
+ const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
547
+ 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');
548
+ 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 : '';
549
+ if (link.value && isEmptySelection && !existedText) {
550
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
551
+ href: link.value,
552
+ target: '__blank'
553
+ }).command(_ref4 => {
554
+ let {
555
+ tr
556
+ } = _ref4;
557
+ const preparedValue = text.value[text.value.length - 1] === ' ' ? text.value : `${text.value} `;
558
+ tr.insertText(preparedValue);
559
+ return true;
560
+ }).run();
561
+ }
562
+ if (link.value && existedText === text.value && isEmptySelection) {
563
+ editor === null || editor === void 0 ? void 0 : editor.chain().extendMarkRange('link').updateAttributes('link', {
564
+ href: link.value
565
+ }).run();
566
+ }
567
+ if (link.value && !isEmptySelection) {
568
+ editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
569
+ href: link.value,
570
+ target: '__blank'
571
+ }).run();
572
+ }
573
+ text.value = '';
574
+ link.value = '';
575
+ isOpenLinkModal.value = false;
576
+ };
577
+ const discardLink = () => {
578
+ isOpenLinkModal.value = false;
579
+ };
580
+ const setActiveFormats = () => {
581
+ const toolbarList = props.toolbar.flat();
582
+ toolbarList.forEach(item => {
583
+ if (item === 'source') {
584
+ isActive.value[item] = disableMarkdown.value;
585
+ } else {
586
+ isActive.value[item] = (editor === null || editor === void 0 ? void 0 : editor.isActive(item)) || false;
587
+ }
588
+ });
589
+ };
590
+ // Styles
591
+ const rootStyles = computed(() => {
592
+ return ['or-rich-text-editor', ...(props.fullHeight ? ['h-full'] : [])];
593
+ });
594
+ const containerStyles = computed(() => {
595
+ return [...EditorContainer, ...(props.fullHeight ? ['h-full'] : [])];
596
+ });
597
+ const toolbarContainerStyles = computed(() => {
598
+ return [...ToolbarContainer];
599
+ });
600
+ const toolbarStyles = computed(() => {
601
+ return [...Toolbar,
602
+ // 'overflow-x-hidden',
603
+ ...(isFocused.value ? ToolbarButtonFocused : ToolbarButton)];
604
+ });
605
+ const editorInputStyles = computed(() => {
606
+ return ['tiptap-editor-v3', ...(props.fullHeight ? ['h-full overflow-y-auto'] : []), ...EditorInput];
607
+ });
608
+ //Effects
609
+ watch(proxyModelValue, value => {
610
+ if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && props.format !== 'markdown') {
611
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
612
+ }
613
+ if (props.format === 'markdown' && value !== markdownOutput.value) {
614
+ // const deserialized = deserialize(editor?.schema, value);
615
+ editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
616
+ }
617
+ });
618
+ return {
619
+ editor,
620
+ editorRef,
621
+ toolbarRef,
622
+ containerRef,
623
+ toolbarButtonRef,
624
+ moreButtonRef,
625
+ textareaRef,
626
+ moreRef,
627
+ menuRef,
628
+ iconsEnum,
629
+ handleToolbarClick,
630
+ handleEditorClick,
631
+ isActive,
632
+ iconTooltipsEnum,
633
+ containerStyles,
634
+ toolbarContainerStyles,
635
+ toolbarStyles,
636
+ rootStyles,
637
+ root,
638
+ editorInputStyles,
639
+ getIndexOfHeading,
640
+ headingLevels,
641
+ headingIcon,
642
+ attachLink,
643
+ discardLink,
644
+ isOpenLinkModal,
645
+ text,
646
+ link,
647
+ isFocused,
648
+ isVisible,
649
+ countOfNotVisibleTools,
650
+ notVisibleTools,
651
+ handleInput,
652
+ proxyModelValue,
653
+ disableMarkdown,
654
+ sourceValue
655
+ };
656
+ }
657
+ });
658
+
659
+ var css_248z = ".tiptap-editor-v3 ol{@apply mx-lg;list-style:decimal}.tiptap-editor-v3 .ProseMirror h1,.tiptap-editor-v3 .ProseMirror h2,.tiptap-editor-v3 .ProseMirror h3,.tiptap-editor-v3 .ProseMirror h4,.tiptap-editor-v3 .ProseMirror h5,.tiptap-editor-v3 .ProseMirror h6,.tiptap-editor-v3 .ProseMirror p{@apply m-xs;}.tiptap-editor-v3 ul{@apply mx-lg;list-style:initial}.tiptap-editor-v3 blockquote{@apply mx-lg;@apply my-sm;@apply px-lg;border-left:4px solid theme(\"borderColor.primary-opacity-0-16\")}.tiptap-editor-v3 .is-editor-empty::before{content:attr(data-placeholder);height:0;pointer-events:none;float:left}.tiptap-editor-v3 .cm-editor{border:none;@apply rounded-md;}.tiptap-editor-v3 .cm-editor .cm-scroller{@apply rounded-md;}.tiptap-editor-v3 .cm-editor.cm-focused{outline:0}.tiptap-editor-v3 .cm-editor .cm-gutters{background-color:theme(\"backgroundColor.primary-opacity-0-12\");border:none}.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement{@apply px-sm+*;}.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement.cm-activeLineGutter{background-color:theme(\"backgroundColor.primary-opacity-0-16\")}";
660
+ styleInject(css_248z);
661
+
662
+ /* script */
663
+ const __vue_script__ = script;
664
+ /* template */
665
+ var __vue_render__ = function () {
666
+ var _vm = this;
667
+ var _h = _vm.$createElement;
668
+ var _c = _vm._self._c || _h;
669
+ return _c('div', {
670
+ ref: "root",
671
+ class: _vm.rootStyles
672
+ }, [_c('or-label', [_vm._v("\n " + _vm._s(_vm.description) + "\n ")]), _vm._v(" "), _c('div', {
673
+ ref: "containerRef",
674
+ class: _vm.containerStyles,
675
+ on: {
676
+ "click": function ($event) {
677
+ return _vm.handleEditorClick();
678
+ }
679
+ }
680
+ }, [_c('div', {
681
+ ref: "toolbarRef",
682
+ class: _vm.toolbarContainerStyles
683
+ }, [_vm._l(_vm.toolbar, function (tools, index) {
684
+ return _c('div', {
685
+ key: index,
686
+ class: _vm.toolbarStyles.concat([{
687
+ 'hidden': _vm.isVisible(tools)
688
+ }])
689
+ }, _vm._l(tools, function (item) {
690
+ return _c('div', {
691
+ key: item,
692
+ class: ['flex gap-md', {
693
+ 'hidden': !_vm.isVisible(item)
694
+ }]
695
+ }, [item === 'heading' ? _c('or-icon-button', {
696
+ ref: "toolbarButtonRef",
697
+ refInFor: true,
698
+ attrs: {
699
+ "selected": _vm.isActive[item],
700
+ "disabled": !_vm.isFocused,
701
+ "tooltip": {
702
+ text: item,
703
+ placement: 'top'
704
+ },
705
+ "icon": {
706
+ icon: _vm.headingIcon,
707
+ variant: 'inherit',
708
+ size: 'm'
709
+ }
710
+ },
711
+ on: {
712
+ "click": function ($event) {
713
+ return _vm.menuRef.open();
714
+ }
715
+ }
716
+ }) : _vm.isVisible(item) ? _c('or-icon-button', {
717
+ attrs: {
718
+ "tooltip": {
719
+ text: _vm.iconTooltipsEnum[item],
720
+ placement: 'top'
721
+ },
722
+ "selected": _vm.isActive[item],
723
+ "disabled": !_vm.isFocused,
724
+ "icon": {
725
+ icon: _vm.iconsEnum[item],
726
+ variant: 'inherit',
727
+ size: 'm'
728
+ }
729
+ },
730
+ on: {
731
+ "click": function ($event) {
732
+ return _vm.handleToolbarClick(item);
733
+ }
734
+ }
735
+ }) : _vm._e()], 1);
736
+ }), 0);
737
+ }), _vm._v(" "), _vm.countOfNotVisibleTools > 0 ? _c('or-icon-button', {
738
+ ref: "moreButtonRef",
739
+ staticClass: "px-sm",
740
+ attrs: {
741
+ "disabled": !_vm.isFocused,
742
+ "icon": {
743
+ icon: 'more_horiz',
744
+ variant: 'inherit',
745
+ size: 'm'
746
+ }
747
+ },
748
+ on: {
749
+ "click": function ($event) {
750
+ return _vm.moreRef.open();
751
+ }
752
+ }
753
+ }) : _vm._e()], 2), _vm._v(" "), _c('div', {
754
+ class: ['p-sm', {
755
+ 'h-[calc(100%-32px)] md:h-[calc(100%-36px)]': _vm.fullHeight
756
+ }]
757
+ }, [_c('textarea', {
758
+ directives: [{
759
+ name: "show",
760
+ rawName: "v-show",
761
+ value: _vm.disableMarkdown,
762
+ expression: "disableMarkdown"
763
+ }, {
764
+ name: "model",
765
+ rawName: "v-model",
766
+ value: _vm.sourceValue,
767
+ expression: "sourceValue"
768
+ }],
769
+ ref: "textareaRef",
770
+ staticClass: "w-full h-full resize-none border-none outline-none bg-transparent typography-body-2-regular",
771
+ attrs: {
772
+ "auto-focus": "",
773
+ "activated": _vm.disableMarkdown
774
+ },
775
+ domProps: {
776
+ "value": _vm.sourceValue
777
+ },
778
+ on: {
779
+ "input": [function ($event) {
780
+ if ($event.target.composing) {
781
+ return;
782
+ }
783
+ _vm.sourceValue = $event.target.value;
784
+ }, _vm.handleInput]
785
+ }
786
+ }), _vm._v(" "), _c('div', {
787
+ directives: [{
788
+ name: "show",
789
+ rawName: "v-show",
790
+ value: !_vm.disableMarkdown,
791
+ expression: "!disableMarkdown"
792
+ }],
793
+ ref: "editorRef",
794
+ class: _vm.editorInputStyles
795
+ }), _vm._v(" "), _vm._t("files")], 2)]), _vm._v(" "), _vm.moreButtonRef ? _c('or-menu', {
796
+ ref: "moreRef",
797
+ attrs: {
798
+ "trigger": _vm.moreButtonRef.root
799
+ }
800
+ }, _vm._l(_vm.notVisibleTools, function (item) {
801
+ return _c('or-menu-item', {
802
+ key: item,
803
+ on: {
804
+ "click": function ($event) {
805
+ return _vm.handleToolbarClick(item);
806
+ }
807
+ }
808
+ }, [_c('or-icon-button', {
809
+ attrs: {
810
+ "tooltip": {
811
+ text: _vm.iconTooltipsEnum[item],
812
+ placement: 'top'
813
+ },
814
+ "selected": _vm.isActive[item],
815
+ "disabled": !_vm.isFocused,
816
+ "icon": {
817
+ icon: _vm.iconsEnum[item],
818
+ variant: 'inherit',
819
+ size: 'm'
820
+ }
821
+ }
822
+ })], 1);
823
+ }), 1) : _vm._e(), _vm._v(" "), _vm.toolbarButtonRef ? _c('or-menu', {
824
+ ref: "menuRef",
825
+ attrs: {
826
+ "trigger": _vm.toolbarButtonRef[_vm.getIndexOfHeading].root,
827
+ "placement": "bottom-start"
828
+ }
829
+ }, [_vm._l(_vm.headingLevels, function (heading) {
830
+ return _c('or-menu-item', {
831
+ key: heading,
832
+ on: {
833
+ "click": function ($event) {
834
+ return _vm.handleToolbarClick('heading', heading);
835
+ }
836
+ }
837
+ }, [_vm._v("\n Heading " + _vm._s(heading) + "\n ")]);
838
+ }), _vm._v(" "), _c('or-menu-item', {
839
+ on: {
840
+ "click": function ($event) {
841
+ return _vm.handleToolbarClick('heading');
842
+ }
843
+ }
844
+ }, [_vm._v("\n None\n ")])], 2) : _vm._e(), _vm._v(" "), _c('or-modal', {
845
+ attrs: {
846
+ "is-open": _vm.isOpenLinkModal,
847
+ "size": "s"
848
+ },
849
+ scopedSlots: _vm._u([{
850
+ key: "header",
851
+ fn: function () {
852
+ return [_c('p', {
853
+ staticClass: "text-headline-2"
854
+ }, [_vm._v("\n Add Link\n ")])];
855
+ },
856
+ proxy: true
857
+ }, {
858
+ key: "footer",
859
+ fn: function () {
860
+ return [_c('div', {
861
+ staticClass: "flex ml-auto gap-md"
862
+ }, [_c('or-button', {
863
+ attrs: {
864
+ "variant": "outlined"
865
+ },
866
+ on: {
867
+ "click": _vm.discardLink
868
+ }
869
+ }, [_c('p', [_vm._v("Cancel")])]), _vm._v(" "), _c('or-button', {
870
+ on: {
871
+ "click": _vm.attachLink
872
+ }
873
+ }, [_c('p', [_vm._v("Save")])])], 1)];
874
+ },
875
+ proxy: true
876
+ }])
877
+ }, [_vm._v(" "), _c('div', [_c('or-label', [_vm._v("\n Text\n ")]), _vm._v(" "), _c('or-input', {
878
+ staticClass: "pb-md",
879
+ attrs: {
880
+ "placeholder": "Placeholder"
881
+ },
882
+ model: {
883
+ value: _vm.text,
884
+ callback: function ($$v) {
885
+ _vm.text = $$v;
886
+ },
887
+ expression: "text"
888
+ }
889
+ }), _vm._v(" "), _c('or-label', [_vm._v("\n Link\n ")]), _vm._v(" "), _c('or-input', {
890
+ attrs: {
891
+ "placeholder": "Placeholder"
892
+ },
893
+ model: {
894
+ value: _vm.link,
895
+ callback: function ($$v) {
896
+ _vm.link = $$v;
897
+ },
898
+ expression: "link"
899
+ }
900
+ })], 1)])], 1);
901
+ };
902
+ var __vue_staticRenderFns__ = [];
903
+
904
+ /* style */
905
+ const __vue_inject_styles__ = undefined;
906
+ /* scoped */
907
+ const __vue_scope_id__ = undefined;
908
+ /* module identifier */
909
+ const __vue_module_identifier__ = undefined;
910
+ /* functional template */
911
+ const __vue_is_functional_template__ = false;
912
+ /* style inject */
913
+
914
+ /* style inject SSR */
915
+
916
+ /* style inject shadow dom */
917
+
918
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
919
+ render: __vue_render__,
920
+ staticRenderFns: __vue_staticRenderFns__
921
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
922
+
923
+ export { Formats as F, __vue_component__ as _ };