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