@jx-health/rich-editor 0.0.2 → 0.0.4
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.
- package/dist/index.d.ts +35 -49
- package/dist/index.js +579 -491
- package/dist/style.css +48 -48
- package/package.json +60 -59
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { clsx } from "clsx";
|
|
|
13
13
|
import { twMerge } from "tailwind-merge";
|
|
14
14
|
import { CheckboxIndicator, CheckboxRoot, DialogClose, DialogContent, DialogOverlay, DialogPortal, DialogRoot, DialogTitle, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuPortal, DropdownMenuPortal as DropdownMenuPortal$1, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Label, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarItemIndicator, MenubarMenu, MenubarPortal, MenubarRoot, MenubarSeparator, MenubarTrigger, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, Primitive, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, SelectContent, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectPortal, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectTrigger, SelectValue, SelectViewport, Separator, SplitterGroup, SplitterPanel as ResizablePanel, SplitterResizeHandle, TabsContent, TabsList, TabsRoot, TabsTrigger, Toggle, ToggleGroupItem, ToggleGroupRoot, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, useForwardProps, useForwardPropsEmits } from "reka-ui";
|
|
15
15
|
import { BubbleMenu } from "@tiptap/vue-3/menus";
|
|
16
|
-
import { Check, ChevronDown, ChevronRight, ChevronUp, CircleCheckIcon, GripVertical, InfoIcon, Loader2Icon, OctagonXIcon, TriangleAlertIcon, X, XIcon } from "lucide
|
|
16
|
+
import { Check, ChevronDown, ChevronRight, ChevronUp, CircleCheckIcon, GripVertical, InfoIcon, Loader2Icon, OctagonXIcon, TriangleAlertIcon, X, XIcon } from "@lucide/vue";
|
|
17
17
|
import { cva } from "class-variance-authority";
|
|
18
18
|
import tippy, { sticky } from "tippy.js";
|
|
19
19
|
import { absolutePositionToRelativePosition, ySyncPluginKey } from "y-prosemirror";
|
|
@@ -667,17 +667,43 @@ const locale$1 = {
|
|
|
667
667
|
function mitt(all) {
|
|
668
668
|
all = all || /* @__PURE__ */ new Map();
|
|
669
669
|
return {
|
|
670
|
+
/**
|
|
671
|
+
* A Map of event names to registered handler functions.
|
|
672
|
+
*/
|
|
670
673
|
all,
|
|
674
|
+
/**
|
|
675
|
+
* Register an event handler for the given type.
|
|
676
|
+
* @param {string|symbol} type Type of event to listen for, or `'*'` for all events
|
|
677
|
+
* @param {Function} handler Function to call in response to given event
|
|
678
|
+
* @memberOf mitt
|
|
679
|
+
*/
|
|
671
680
|
on(type, handler) {
|
|
672
681
|
const handlers = all.get(type);
|
|
673
682
|
if (handlers) handlers.push(handler);
|
|
674
683
|
else all.set(type, [handler]);
|
|
675
684
|
},
|
|
685
|
+
/**
|
|
686
|
+
* Remove an event handler for the given type.
|
|
687
|
+
* If `handler` is omitted, all handlers of the given type are removed.
|
|
688
|
+
* @param {string|symbol} type Type of event to unregister `handler` from (`'*'` to remove a wildcard handler)
|
|
689
|
+
* @param {Function} [handler] Handler function to remove
|
|
690
|
+
* @memberOf mitt
|
|
691
|
+
*/
|
|
676
692
|
off(type, handler) {
|
|
677
693
|
const handlers = all.get(type);
|
|
678
694
|
if (handlers) if (handler) handlers.splice(handlers.indexOf(handler) >>> 0, 1);
|
|
679
695
|
else all.set(type, []);
|
|
680
696
|
},
|
|
697
|
+
/**
|
|
698
|
+
* Invoke all handlers for the given type.
|
|
699
|
+
* If present, `'*'` handlers are invoked after type-matched handlers.
|
|
700
|
+
*
|
|
701
|
+
* Note: Manually firing '*' handlers is not supported.
|
|
702
|
+
*
|
|
703
|
+
* @param {string|symbol} type The event type to invoke
|
|
704
|
+
* @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler
|
|
705
|
+
* @memberOf mitt
|
|
706
|
+
*/
|
|
681
707
|
emit(type, evt) {
|
|
682
708
|
let handlers = all.get(type);
|
|
683
709
|
if (handlers) handlers.slice().map((handler) => {
|
|
@@ -880,7 +906,7 @@ var export_helper_default = (sfc, props) => {
|
|
|
880
906
|
};
|
|
881
907
|
//#endregion
|
|
882
908
|
//#region src/components/ui/separator/Separator.vue
|
|
883
|
-
const _sfc_main$100 =
|
|
909
|
+
const _sfc_main$100 = /*@__PURE__*/ defineComponent({
|
|
884
910
|
__name: "Separator",
|
|
885
911
|
props: {
|
|
886
912
|
orientation: {
|
|
@@ -947,10 +973,10 @@ function _sfc_render$100(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
947
973
|
_: 1
|
|
948
974
|
}, 16, ["class"]);
|
|
949
975
|
}
|
|
950
|
-
var Separator_default =
|
|
976
|
+
var Separator_default = /*#__PURE__*/ export_helper_default(_sfc_main$100, [["render", _sfc_render$100], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/separator/Separator.vue"]]);
|
|
951
977
|
//#endregion
|
|
952
978
|
//#region src/components/menus/BasicBubbleMenu.vue
|
|
953
|
-
const _sfc_main$99 =
|
|
979
|
+
const _sfc_main$99 = /*@__PURE__*/ defineComponent({
|
|
954
980
|
__name: "BasicBubbleMenu",
|
|
955
981
|
props: {
|
|
956
982
|
editor: {
|
|
@@ -1045,10 +1071,10 @@ function _sfc_render$99(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1045
1071
|
_: 1
|
|
1046
1072
|
}, 8, ["editor", "tippy-options"])), [[vShow, $setup.items.length && !$setup.store?.state.AIMenu]]);
|
|
1047
1073
|
}
|
|
1048
|
-
var BasicBubbleMenu_default =
|
|
1074
|
+
var BasicBubbleMenu_default = /*#__PURE__*/ export_helper_default(_sfc_main$99, [["render", _sfc_render$99], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/menus/BasicBubbleMenu.vue"]]);
|
|
1049
1075
|
//#endregion
|
|
1050
1076
|
//#region src/components/ui/checkbox/Checkbox.vue
|
|
1051
|
-
const _sfc_main$98 =
|
|
1077
|
+
const _sfc_main$98 = /*@__PURE__*/ defineComponent({
|
|
1052
1078
|
__name: "Checkbox",
|
|
1053
1079
|
props: {
|
|
1054
1080
|
defaultValue: {
|
|
@@ -1150,7 +1176,7 @@ function _sfc_render$98(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1150
1176
|
_: 3
|
|
1151
1177
|
}, 16, ["class"]);
|
|
1152
1178
|
}
|
|
1153
|
-
var Checkbox_default =
|
|
1179
|
+
var Checkbox_default = /*#__PURE__*/ export_helper_default(_sfc_main$98, [["render", _sfc_render$98], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/checkbox/Checkbox.vue"]]);
|
|
1154
1180
|
//#endregion
|
|
1155
1181
|
//#region src/components/icons/icons.ts
|
|
1156
1182
|
const icons = {
|
|
@@ -1264,7 +1290,7 @@ function cn(...inputs) {
|
|
|
1264
1290
|
return twMerge(clsx(inputs));
|
|
1265
1291
|
}
|
|
1266
1292
|
//#endregion
|
|
1267
|
-
//#region ../../node_modules/.pnpm/@iconify+vue@5.0.1_vue@3.5.
|
|
1293
|
+
//#region ../../node_modules/.pnpm/@iconify+vue@5.0.1_vue@3.5.40_typescript@5.9.3_/node_modules/@iconify/vue/dist/iconify.mjs
|
|
1268
1294
|
/**
|
|
1269
1295
|
* Expression to test part of icon name.
|
|
1270
1296
|
*
|
|
@@ -2885,7 +2911,7 @@ const Icon = defineComponent((props, { emit }) => {
|
|
|
2885
2911
|
});
|
|
2886
2912
|
//#endregion
|
|
2887
2913
|
//#region src/components/icons/Icon.vue
|
|
2888
|
-
const _sfc_main$97 =
|
|
2914
|
+
const _sfc_main$97 = /*@__PURE__*/ defineComponent({
|
|
2889
2915
|
__name: "Icon",
|
|
2890
2916
|
props: {
|
|
2891
2917
|
name: {
|
|
@@ -2932,10 +2958,10 @@ function _sfc_render$97(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2932
2958
|
class: normalizeClass($setup.cn("w-4 h-4", $setup.props.class))
|
|
2933
2959
|
}, null, 8, ["icon", "class"]);
|
|
2934
2960
|
}
|
|
2935
|
-
var Icon_default =
|
|
2961
|
+
var Icon_default = /*#__PURE__*/ export_helper_default(_sfc_main$97, [["render", _sfc_render$97], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/icons/Icon.vue"]]);
|
|
2936
2962
|
//#endregion
|
|
2937
2963
|
//#region src/components/ui/input/Input.vue
|
|
2938
|
-
const _sfc_main$96 =
|
|
2964
|
+
const _sfc_main$96 = /*@__PURE__*/ defineComponent({
|
|
2939
2965
|
__name: "Input",
|
|
2940
2966
|
props: {
|
|
2941
2967
|
defaultValue: {
|
|
@@ -2987,10 +3013,10 @@ function _sfc_render$96(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2987
3013
|
class: normalizeClass($setup.cn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", $setup.props.class))
|
|
2988
3014
|
}, null, 2)), [[vModelText, $setup.modelValue]]);
|
|
2989
3015
|
}
|
|
2990
|
-
var Input_default =
|
|
3016
|
+
var Input_default = /*#__PURE__*/ export_helper_default(_sfc_main$96, [["render", _sfc_render$96], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/input/Input.vue"]]);
|
|
2991
3017
|
//#endregion
|
|
2992
3018
|
//#region src/components/ui/label/Label.vue
|
|
2993
|
-
const _sfc_main$95 =
|
|
3019
|
+
const _sfc_main$95 = /*@__PURE__*/ defineComponent({
|
|
2994
3020
|
__name: "Label",
|
|
2995
3021
|
props: {
|
|
2996
3022
|
for: {
|
|
@@ -3046,10 +3072,10 @@ function _sfc_render$95(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3046
3072
|
_: 3
|
|
3047
3073
|
}, 16, ["class"]);
|
|
3048
3074
|
}
|
|
3049
|
-
var Label_default =
|
|
3075
|
+
var Label_default = /*#__PURE__*/ export_helper_default(_sfc_main$95, [["render", _sfc_render$95], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/label/Label.vue"]]);
|
|
3050
3076
|
//#endregion
|
|
3051
3077
|
//#region src/components/ui/button/Button.vue
|
|
3052
|
-
const _sfc_main$94 =
|
|
3078
|
+
const _sfc_main$94 = /*@__PURE__*/ defineComponent({
|
|
3053
3079
|
__name: "Button",
|
|
3054
3080
|
props: {
|
|
3055
3081
|
variant: {
|
|
@@ -3120,7 +3146,7 @@ function _sfc_render$94(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3120
3146
|
"class"
|
|
3121
3147
|
]);
|
|
3122
3148
|
}
|
|
3123
|
-
var Button_default =
|
|
3149
|
+
var Button_default = /*#__PURE__*/ export_helper_default(_sfc_main$94, [["render", _sfc_render$94], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/button/Button.vue"]]);
|
|
3124
3150
|
//#endregion
|
|
3125
3151
|
//#region src/components/ui/button/index.ts
|
|
3126
3152
|
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
@@ -3150,7 +3176,7 @@ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whites
|
|
|
3150
3176
|
});
|
|
3151
3177
|
//#endregion
|
|
3152
3178
|
//#region src/extensions/Link/components/LinkEditBlock.vue
|
|
3153
|
-
const _sfc_main$93 =
|
|
3179
|
+
const _sfc_main$93 = /*@__PURE__*/ defineComponent({
|
|
3154
3180
|
__name: "LinkEditBlock",
|
|
3155
3181
|
props: { editor: {
|
|
3156
3182
|
type: Object,
|
|
@@ -3281,7 +3307,7 @@ function _sfc_render$93(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3281
3307
|
})
|
|
3282
3308
|
], 32)], 512);
|
|
3283
3309
|
}
|
|
3284
|
-
var LinkEditBlock_default =
|
|
3310
|
+
var LinkEditBlock_default = /*#__PURE__*/ export_helper_default(_sfc_main$93, [["render", _sfc_render$93], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/Link/components/LinkEditBlock.vue"]]);
|
|
3285
3311
|
//#endregion
|
|
3286
3312
|
//#region src/utils/plateform.ts
|
|
3287
3313
|
let isMacResult;
|
|
@@ -3306,7 +3332,7 @@ function getShortcutKeys(keys) {
|
|
|
3306
3332
|
}
|
|
3307
3333
|
//#endregion
|
|
3308
3334
|
//#region src/components/ui/toggle/Toggle.vue
|
|
3309
|
-
const _sfc_main$92 =
|
|
3335
|
+
const _sfc_main$92 = /*@__PURE__*/ defineComponent({
|
|
3310
3336
|
__name: "Toggle",
|
|
3311
3337
|
props: {
|
|
3312
3338
|
defaultValue: {
|
|
@@ -3403,7 +3429,7 @@ function _sfc_render$92(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3403
3429
|
_: 3
|
|
3404
3430
|
}, 16, ["class"]);
|
|
3405
3431
|
}
|
|
3406
|
-
var Toggle_default =
|
|
3432
|
+
var Toggle_default = /*#__PURE__*/ export_helper_default(_sfc_main$92, [["render", _sfc_render$92], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/toggle/Toggle.vue"]]);
|
|
3407
3433
|
//#endregion
|
|
3408
3434
|
//#region src/components/ui/toggle/index.ts
|
|
3409
3435
|
const toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
@@ -3425,7 +3451,7 @@ const toggleVariants = cva("inline-flex items-center justify-center gap-2 rounde
|
|
|
3425
3451
|
});
|
|
3426
3452
|
//#endregion
|
|
3427
3453
|
//#region src/components/ui/tooltip/Tooltip.vue
|
|
3428
|
-
const _sfc_main$91 =
|
|
3454
|
+
const _sfc_main$91 = /*@__PURE__*/ defineComponent({
|
|
3429
3455
|
__name: "Tooltip",
|
|
3430
3456
|
props: {
|
|
3431
3457
|
defaultOpen: {
|
|
@@ -3483,10 +3509,10 @@ function _sfc_render$91(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3483
3509
|
_: 3
|
|
3484
3510
|
}, 16);
|
|
3485
3511
|
}
|
|
3486
|
-
var Tooltip_default =
|
|
3512
|
+
var Tooltip_default = /*#__PURE__*/ export_helper_default(_sfc_main$91, [["render", _sfc_render$91], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/tooltip/Tooltip.vue"]]);
|
|
3487
3513
|
//#endregion
|
|
3488
3514
|
//#region src/components/ui/tooltip/TooltipContent.vue
|
|
3489
|
-
const _sfc_main$90 =
|
|
3515
|
+
const _sfc_main$90 = /*@__PURE__*/ defineComponent({
|
|
3490
3516
|
inheritAttrs: false,
|
|
3491
3517
|
__name: "TooltipContent",
|
|
3492
3518
|
props: {
|
|
@@ -3607,10 +3633,10 @@ function _sfc_render$90(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3607
3633
|
_: 3
|
|
3608
3634
|
});
|
|
3609
3635
|
}
|
|
3610
|
-
var TooltipContent_default =
|
|
3636
|
+
var TooltipContent_default = /*#__PURE__*/ export_helper_default(_sfc_main$90, [["render", _sfc_render$90], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/tooltip/TooltipContent.vue"]]);
|
|
3611
3637
|
//#endregion
|
|
3612
3638
|
//#region src/components/ui/tooltip/TooltipProvider.vue
|
|
3613
|
-
const _sfc_main$89 =
|
|
3639
|
+
const _sfc_main$89 = /*@__PURE__*/ defineComponent({
|
|
3614
3640
|
__name: "TooltipProvider",
|
|
3615
3641
|
props: {
|
|
3616
3642
|
delayDuration: {
|
|
@@ -3663,10 +3689,10 @@ function _sfc_render$89(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3663
3689
|
_: 3
|
|
3664
3690
|
}, 16);
|
|
3665
3691
|
}
|
|
3666
|
-
var TooltipProvider_default =
|
|
3692
|
+
var TooltipProvider_default = /*#__PURE__*/ export_helper_default(_sfc_main$89, [["render", _sfc_render$89], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/tooltip/TooltipProvider.vue"]]);
|
|
3667
3693
|
//#endregion
|
|
3668
3694
|
//#region src/components/ui/tooltip/TooltipTrigger.vue
|
|
3669
|
-
const _sfc_main$88 =
|
|
3695
|
+
const _sfc_main$88 = /*@__PURE__*/ defineComponent({
|
|
3670
3696
|
__name: "TooltipTrigger",
|
|
3671
3697
|
props: {
|
|
3672
3698
|
reference: {
|
|
@@ -3703,10 +3729,10 @@ function _sfc_render$88(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3703
3729
|
_: 3
|
|
3704
3730
|
}, 16);
|
|
3705
3731
|
}
|
|
3706
|
-
var TooltipTrigger_default =
|
|
3732
|
+
var TooltipTrigger_default = /*#__PURE__*/ export_helper_default(_sfc_main$88, [["render", _sfc_render$88], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/tooltip/TooltipTrigger.vue"]]);
|
|
3707
3733
|
//#endregion
|
|
3708
3734
|
//#region src/components/ActionButton.vue
|
|
3709
|
-
const _sfc_main$87 =
|
|
3735
|
+
const _sfc_main$87 = /*@__PURE__*/ defineComponent({
|
|
3710
3736
|
__name: "ActionButton",
|
|
3711
3737
|
props: {
|
|
3712
3738
|
icon: {
|
|
@@ -3832,7 +3858,7 @@ const _hoisted_5$11 = {
|
|
|
3832
3858
|
function _sfc_render$87(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3833
3859
|
return openBlock(), createBlock($setup["TooltipProvider"], null, {
|
|
3834
3860
|
default: withCtx(() => [createVNode($setup["Tooltip"], { "delay-duration": 0 }, {
|
|
3835
|
-
default: withCtx(() => [createVNode($setup["TooltipTrigger"],
|
|
3861
|
+
default: withCtx(() => [createVNode($setup["TooltipTrigger"], { as: "div" }, {
|
|
3836
3862
|
default: withCtx(() => [createVNode($setup["Toggle"], {
|
|
3837
3863
|
size: "sm",
|
|
3838
3864
|
class: normalizeClass(["h-[32px]", [$props.customClass, $props.title ? "w-auto" : "w-[32px]"]]),
|
|
@@ -3870,10 +3896,10 @@ function _sfc_render$87(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3870
3896
|
_: 3
|
|
3871
3897
|
});
|
|
3872
3898
|
}
|
|
3873
|
-
var ActionButton_default =
|
|
3899
|
+
var ActionButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$87, [["render", _sfc_render$87], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ActionButton.vue"]]);
|
|
3874
3900
|
//#endregion
|
|
3875
3901
|
//#region src/extensions/Link/components/LinkViewBlock.vue
|
|
3876
|
-
const _sfc_main$86 =
|
|
3902
|
+
const _sfc_main$86 = /*@__PURE__*/ defineComponent({
|
|
3877
3903
|
__name: "LinkViewBlock",
|
|
3878
3904
|
props: {
|
|
3879
3905
|
editor: {
|
|
@@ -3949,10 +3975,10 @@ function _sfc_render$86(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3949
3975
|
}, null, 8, ["tooltip"])])
|
|
3950
3976
|
]);
|
|
3951
3977
|
}
|
|
3952
|
-
var LinkViewBlock_default =
|
|
3978
|
+
var LinkViewBlock_default = /*#__PURE__*/ export_helper_default(_sfc_main$86, [["render", _sfc_render$86], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/Link/components/LinkViewBlock.vue"]]);
|
|
3953
3979
|
//#endregion
|
|
3954
3980
|
//#region src/components/menus/LinkBubbleMenu.vue
|
|
3955
|
-
const _sfc_main$85 =
|
|
3981
|
+
const _sfc_main$85 = /*@__PURE__*/ defineComponent({
|
|
3956
3982
|
__name: "LinkBubbleMenu",
|
|
3957
3983
|
props: {
|
|
3958
3984
|
editor: {
|
|
@@ -4055,10 +4081,10 @@ function _sfc_render$85(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4055
4081
|
_: 1
|
|
4056
4082
|
}, 8, ["editor", "tippy-options"])), [[vShow, $setup.shouldShow]]);
|
|
4057
4083
|
}
|
|
4058
|
-
var LinkBubbleMenu_default =
|
|
4084
|
+
var LinkBubbleMenu_default = /*#__PURE__*/ export_helper_default(_sfc_main$85, [["render", _sfc_render$85], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/menus/LinkBubbleMenu.vue"]]);
|
|
4059
4085
|
//#endregion
|
|
4060
4086
|
//#region src/components/ui/popover/Popover.vue
|
|
4061
|
-
const _sfc_main$84 =
|
|
4087
|
+
const _sfc_main$84 = /*@__PURE__*/ defineComponent({
|
|
4062
4088
|
__name: "Popover",
|
|
4063
4089
|
props: {
|
|
4064
4090
|
defaultOpen: {
|
|
@@ -4100,10 +4126,10 @@ function _sfc_render$84(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4100
4126
|
_: 3
|
|
4101
4127
|
}, 16);
|
|
4102
4128
|
}
|
|
4103
|
-
var Popover_default =
|
|
4129
|
+
var Popover_default = /*#__PURE__*/ export_helper_default(_sfc_main$84, [["render", _sfc_render$84], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/popover/Popover.vue"]]);
|
|
4104
4130
|
//#endregion
|
|
4105
4131
|
//#region src/components/ui/popover/PopoverContent.vue
|
|
4106
|
-
const _sfc_main$83 =
|
|
4132
|
+
const _sfc_main$83 = /*@__PURE__*/ defineComponent({
|
|
4107
4133
|
inheritAttrs: false,
|
|
4108
4134
|
__name: "PopoverContent",
|
|
4109
4135
|
props: {
|
|
@@ -4111,6 +4137,10 @@ const _sfc_main$83 = /* @__PURE__ */ defineComponent({
|
|
|
4111
4137
|
type: Boolean,
|
|
4112
4138
|
required: false
|
|
4113
4139
|
},
|
|
4140
|
+
memoDependencies: {
|
|
4141
|
+
type: Array,
|
|
4142
|
+
required: false
|
|
4143
|
+
},
|
|
4114
4144
|
side: {
|
|
4115
4145
|
type: null,
|
|
4116
4146
|
required: false
|
|
@@ -4185,6 +4215,10 @@ const _sfc_main$83 = /* @__PURE__ */ defineComponent({
|
|
|
4185
4215
|
type: null,
|
|
4186
4216
|
required: false
|
|
4187
4217
|
},
|
|
4218
|
+
dir: {
|
|
4219
|
+
type: String,
|
|
4220
|
+
required: false
|
|
4221
|
+
},
|
|
4188
4222
|
asChild: {
|
|
4189
4223
|
type: Boolean,
|
|
4190
4224
|
required: false
|
|
@@ -4259,10 +4293,10 @@ function _sfc_render$83(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4259
4293
|
_: 3
|
|
4260
4294
|
});
|
|
4261
4295
|
}
|
|
4262
|
-
var PopoverContent_default =
|
|
4296
|
+
var PopoverContent_default = /*#__PURE__*/ export_helper_default(_sfc_main$83, [["render", _sfc_render$83], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/popover/PopoverContent.vue"]]);
|
|
4263
4297
|
//#endregion
|
|
4264
4298
|
//#region src/components/ui/popover/PopoverTrigger.vue
|
|
4265
|
-
const _sfc_main$82 =
|
|
4299
|
+
const _sfc_main$82 = /*@__PURE__*/ defineComponent({
|
|
4266
4300
|
__name: "PopoverTrigger",
|
|
4267
4301
|
props: {
|
|
4268
4302
|
asChild: {
|
|
@@ -4295,10 +4329,10 @@ function _sfc_render$82(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4295
4329
|
_: 3
|
|
4296
4330
|
}, 16);
|
|
4297
4331
|
}
|
|
4298
|
-
var PopoverTrigger_default =
|
|
4332
|
+
var PopoverTrigger_default = /*#__PURE__*/ export_helper_default(_sfc_main$82, [["render", _sfc_render$82], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/popover/PopoverTrigger.vue"]]);
|
|
4299
4333
|
//#endregion
|
|
4300
4334
|
//#region src/components/ColorPicker.vue
|
|
4301
|
-
const _sfc_main$81 =
|
|
4335
|
+
const _sfc_main$81 = /*@__PURE__*/ defineComponent({
|
|
4302
4336
|
__name: "ColorPicker",
|
|
4303
4337
|
props: {
|
|
4304
4338
|
modelValue: {
|
|
@@ -4502,10 +4536,10 @@ function _sfc_render$81(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4502
4536
|
_: 3
|
|
4503
4537
|
});
|
|
4504
4538
|
}
|
|
4505
|
-
var ColorPicker_default =
|
|
4539
|
+
var ColorPicker_default = /*#__PURE__*/ export_helper_default(_sfc_main$81, [["render", _sfc_render$81], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ColorPicker.vue"]]);
|
|
4506
4540
|
//#endregion
|
|
4507
4541
|
//#region src/extensions/Highlight/components/HighlightActionButton.vue
|
|
4508
|
-
const _sfc_main$80 =
|
|
4542
|
+
const _sfc_main$80 = /*@__PURE__*/ defineComponent({
|
|
4509
4543
|
__name: "HighlightActionButton",
|
|
4510
4544
|
props: {
|
|
4511
4545
|
editor: {
|
|
@@ -4651,10 +4685,10 @@ function _sfc_render$80(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4651
4685
|
_: 1
|
|
4652
4686
|
}, 8, ["modelValue", "disabled"])]);
|
|
4653
4687
|
}
|
|
4654
|
-
var HighlightActionButton_default =
|
|
4688
|
+
var HighlightActionButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$80, [["render", _sfc_render$80], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/Highlight/components/HighlightActionButton.vue"]]);
|
|
4655
4689
|
//#endregion
|
|
4656
4690
|
//#region src/components/menus/TableBubbleMenu.vue
|
|
4657
|
-
const _sfc_main$79 =
|
|
4691
|
+
const _sfc_main$79 = /*@__PURE__*/ defineComponent({
|
|
4658
4692
|
__name: "TableBubbleMenu",
|
|
4659
4693
|
props: { editor: {
|
|
4660
4694
|
type: Object,
|
|
@@ -4844,7 +4878,7 @@ function _sfc_render$79(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4844
4878
|
_: 1
|
|
4845
4879
|
}, 8, ["editor", "tippy-options"]);
|
|
4846
4880
|
}
|
|
4847
|
-
var TableBubbleMenu_default =
|
|
4881
|
+
var TableBubbleMenu_default = /*#__PURE__*/ export_helper_default(_sfc_main$79, [["render", _sfc_render$79], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/menus/TableBubbleMenu.vue"]]);
|
|
4848
4882
|
//#endregion
|
|
4849
4883
|
//#region src/plugins/DragHandle/range.ts
|
|
4850
4884
|
function getSelectionRanges(state, range, depth) {
|
|
@@ -5269,7 +5303,7 @@ const DragHandlePlugin = ({ pluginKey: customPluginKey = dragHandlePluginDefault
|
|
|
5269
5303
|
};
|
|
5270
5304
|
//#endregion
|
|
5271
5305
|
//#region src/components/ui/dropdown-menu/DropdownMenu.vue
|
|
5272
|
-
const _sfc_main$78 =
|
|
5306
|
+
const _sfc_main$78 = /*@__PURE__*/ defineComponent({
|
|
5273
5307
|
__name: "DropdownMenu",
|
|
5274
5308
|
props: {
|
|
5275
5309
|
defaultOpen: {
|
|
@@ -5315,10 +5349,10 @@ function _sfc_render$78(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5315
5349
|
_: 3
|
|
5316
5350
|
}, 16);
|
|
5317
5351
|
}
|
|
5318
|
-
var DropdownMenu_default =
|
|
5352
|
+
var DropdownMenu_default = /*#__PURE__*/ export_helper_default(_sfc_main$78, [["render", _sfc_render$78], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dropdown-menu/DropdownMenu.vue"]]);
|
|
5319
5353
|
//#endregion
|
|
5320
5354
|
//#region src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue
|
|
5321
|
-
const _sfc_main$77 =
|
|
5355
|
+
const _sfc_main$77 = /*@__PURE__*/ defineComponent({
|
|
5322
5356
|
__name: "DropdownMenuCheckboxItem",
|
|
5323
5357
|
props: {
|
|
5324
5358
|
modelValue: {
|
|
@@ -5394,10 +5428,10 @@ function _sfc_render$77(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5394
5428
|
_: 3
|
|
5395
5429
|
}, 16, ["class"]);
|
|
5396
5430
|
}
|
|
5397
|
-
var DropdownMenuCheckboxItem_default =
|
|
5431
|
+
var DropdownMenuCheckboxItem_default = /*#__PURE__*/ export_helper_default(_sfc_main$77, [["render", _sfc_render$77], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue"]]);
|
|
5398
5432
|
//#endregion
|
|
5399
5433
|
//#region src/components/ui/dropdown-menu/DropdownMenuContent.vue
|
|
5400
|
-
const _sfc_main$76 =
|
|
5434
|
+
const _sfc_main$76 = /*@__PURE__*/ defineComponent({
|
|
5401
5435
|
__name: "DropdownMenuContent",
|
|
5402
5436
|
props: {
|
|
5403
5437
|
forceMount: {
|
|
@@ -5408,6 +5442,10 @@ const _sfc_main$76 = /* @__PURE__ */ defineComponent({
|
|
|
5408
5442
|
type: Boolean,
|
|
5409
5443
|
required: false
|
|
5410
5444
|
},
|
|
5445
|
+
memoDependencies: {
|
|
5446
|
+
type: Array,
|
|
5447
|
+
required: false
|
|
5448
|
+
},
|
|
5411
5449
|
side: {
|
|
5412
5450
|
type: null,
|
|
5413
5451
|
required: false
|
|
@@ -5544,10 +5582,10 @@ function _sfc_render$76(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5544
5582
|
_: 3
|
|
5545
5583
|
});
|
|
5546
5584
|
}
|
|
5547
|
-
var DropdownMenuContent_default =
|
|
5585
|
+
var DropdownMenuContent_default = /*#__PURE__*/ export_helper_default(_sfc_main$76, [["render", _sfc_render$76], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dropdown-menu/DropdownMenuContent.vue"]]);
|
|
5548
5586
|
//#endregion
|
|
5549
5587
|
//#region src/components/ui/dropdown-menu/DropdownMenuItem.vue
|
|
5550
|
-
const _sfc_main$75 =
|
|
5588
|
+
const _sfc_main$75 = /*@__PURE__*/ defineComponent({
|
|
5551
5589
|
__name: "DropdownMenuItem",
|
|
5552
5590
|
props: {
|
|
5553
5591
|
disabled: {
|
|
@@ -5610,10 +5648,10 @@ function _sfc_render$75(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5610
5648
|
_: 3
|
|
5611
5649
|
}, 16, ["class"]);
|
|
5612
5650
|
}
|
|
5613
|
-
var DropdownMenuItem_default =
|
|
5651
|
+
var DropdownMenuItem_default = /*#__PURE__*/ export_helper_default(_sfc_main$75, [["render", _sfc_render$75], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dropdown-menu/DropdownMenuItem.vue"]]);
|
|
5614
5652
|
//#endregion
|
|
5615
5653
|
//#region src/components/ui/dropdown-menu/DropdownMenuSeparator.vue
|
|
5616
|
-
const _sfc_main$74 =
|
|
5654
|
+
const _sfc_main$74 = /*@__PURE__*/ defineComponent({
|
|
5617
5655
|
__name: "DropdownMenuSeparator",
|
|
5618
5656
|
props: {
|
|
5619
5657
|
asChild: {
|
|
@@ -5659,10 +5697,10 @@ const _sfc_main$74 = /* @__PURE__ */ defineComponent({
|
|
|
5659
5697
|
function _sfc_render$74(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5660
5698
|
return openBlock(), createBlock($setup["DropdownMenuSeparator"], mergeProps($setup.delegatedProps, { class: $setup.cn("-mx-1 my-1 h-px bg-muted", $setup.props.class) }), null, 16, ["class"]);
|
|
5661
5699
|
}
|
|
5662
|
-
var DropdownMenuSeparator_default =
|
|
5700
|
+
var DropdownMenuSeparator_default = /*#__PURE__*/ export_helper_default(_sfc_main$74, [["render", _sfc_render$74], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue"]]);
|
|
5663
5701
|
//#endregion
|
|
5664
5702
|
//#region src/components/ui/dropdown-menu/DropdownMenuSub.vue
|
|
5665
|
-
const _sfc_main$73 =
|
|
5703
|
+
const _sfc_main$73 = /*@__PURE__*/ defineComponent({
|
|
5666
5704
|
__name: "DropdownMenuSub",
|
|
5667
5705
|
props: {
|
|
5668
5706
|
defaultOpen: {
|
|
@@ -5700,10 +5738,10 @@ function _sfc_render$73(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5700
5738
|
_: 3
|
|
5701
5739
|
}, 16);
|
|
5702
5740
|
}
|
|
5703
|
-
var DropdownMenuSub_default =
|
|
5741
|
+
var DropdownMenuSub_default = /*#__PURE__*/ export_helper_default(_sfc_main$73, [["render", _sfc_render$73], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dropdown-menu/DropdownMenuSub.vue"]]);
|
|
5704
5742
|
//#endregion
|
|
5705
5743
|
//#region src/components/ui/dropdown-menu/DropdownMenuSubContent.vue
|
|
5706
|
-
const _sfc_main$72 =
|
|
5744
|
+
const _sfc_main$72 = /*@__PURE__*/ defineComponent({
|
|
5707
5745
|
__name: "DropdownMenuSubContent",
|
|
5708
5746
|
props: {
|
|
5709
5747
|
forceMount: {
|
|
@@ -5714,6 +5752,10 @@ const _sfc_main$72 = /* @__PURE__ */ defineComponent({
|
|
|
5714
5752
|
type: Boolean,
|
|
5715
5753
|
required: false
|
|
5716
5754
|
},
|
|
5755
|
+
memoDependencies: {
|
|
5756
|
+
type: Array,
|
|
5757
|
+
required: false
|
|
5758
|
+
},
|
|
5717
5759
|
sideOffset: {
|
|
5718
5760
|
type: Number,
|
|
5719
5761
|
required: false
|
|
@@ -5837,10 +5879,10 @@ function _sfc_render$72(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5837
5879
|
_: 3
|
|
5838
5880
|
}, 16, ["class"]);
|
|
5839
5881
|
}
|
|
5840
|
-
var DropdownMenuSubContent_default =
|
|
5882
|
+
var DropdownMenuSubContent_default = /*#__PURE__*/ export_helper_default(_sfc_main$72, [["render", _sfc_render$72], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue"]]);
|
|
5841
5883
|
//#endregion
|
|
5842
5884
|
//#region src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue
|
|
5843
|
-
const _sfc_main$71 =
|
|
5885
|
+
const _sfc_main$71 = /*@__PURE__*/ defineComponent({
|
|
5844
5886
|
__name: "DropdownMenuSubTrigger",
|
|
5845
5887
|
props: {
|
|
5846
5888
|
disabled: {
|
|
@@ -5902,10 +5944,10 @@ function _sfc_render$71(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5902
5944
|
_: 3
|
|
5903
5945
|
}, 16, ["class"]);
|
|
5904
5946
|
}
|
|
5905
|
-
var DropdownMenuSubTrigger_default =
|
|
5947
|
+
var DropdownMenuSubTrigger_default = /*#__PURE__*/ export_helper_default(_sfc_main$71, [["render", _sfc_render$71], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue"]]);
|
|
5906
5948
|
//#endregion
|
|
5907
5949
|
//#region src/components/ui/dropdown-menu/DropdownMenuTrigger.vue
|
|
5908
|
-
const _sfc_main$70 =
|
|
5950
|
+
const _sfc_main$70 = /*@__PURE__*/ defineComponent({
|
|
5909
5951
|
__name: "DropdownMenuTrigger",
|
|
5910
5952
|
props: {
|
|
5911
5953
|
disabled: {
|
|
@@ -5944,7 +5986,7 @@ function _sfc_render$70(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5944
5986
|
_: 3
|
|
5945
5987
|
}, 16);
|
|
5946
5988
|
}
|
|
5947
|
-
var DropdownMenuTrigger_default =
|
|
5989
|
+
var DropdownMenuTrigger_default = /*#__PURE__*/ export_helper_default(_sfc_main$70, [["render", _sfc_render$70], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue"]]);
|
|
5948
5990
|
//#endregion
|
|
5949
5991
|
//#region src/utils/indent.ts
|
|
5950
5992
|
let IndentProps = /* @__PURE__ */ function(IndentProps) {
|
|
@@ -5978,9 +6020,7 @@ function setNodeIndentMarkup(tr, pos, delta) {
|
|
|
5978
6020
|
if (!tr.doc) return tr;
|
|
5979
6021
|
const node = tr.doc.nodeAt(pos);
|
|
5980
6022
|
if (!node) return tr;
|
|
5981
|
-
const
|
|
5982
|
-
const maxIndent = IndentProps.max;
|
|
5983
|
-
const indent = clamp((node.attrs.indent || 0) + delta, minIndent, maxIndent);
|
|
6023
|
+
const indent = clamp((node.attrs.indent || 0) + delta, 0, 7);
|
|
5984
6024
|
if (indent === node.attrs.indent) return tr;
|
|
5985
6025
|
const nodeAttrs = {
|
|
5986
6026
|
...node.attrs,
|
|
@@ -6003,7 +6043,7 @@ function createIndentCommand({ delta, types }) {
|
|
|
6003
6043
|
}
|
|
6004
6044
|
//#endregion
|
|
6005
6045
|
//#region src/components/menus/ContentMenu.vue
|
|
6006
|
-
const _sfc_main$69 =
|
|
6046
|
+
const _sfc_main$69 = /*@__PURE__*/ defineComponent({
|
|
6007
6047
|
__name: "ContentMenu",
|
|
6008
6048
|
props: {
|
|
6009
6049
|
className: {
|
|
@@ -6406,7 +6446,7 @@ function _sfc_render$69(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6406
6446
|
_: 1
|
|
6407
6447
|
}, 8, ["open"])])], 2)), [[vShow, !$props.disabled]]);
|
|
6408
6448
|
}
|
|
6409
|
-
var ContentMenu_default =
|
|
6449
|
+
var ContentMenu_default = /*#__PURE__*/ export_helper_default(_sfc_main$69, [["render", _sfc_render$69], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/menus/ContentMenu.vue"]]);
|
|
6410
6450
|
//#endregion
|
|
6411
6451
|
//#region src/extensions/MultiColumn/Column.ts
|
|
6412
6452
|
const Column = Node.create({
|
|
@@ -6450,11 +6490,11 @@ const Columns = Node.create({
|
|
|
6450
6490
|
addOptions() {
|
|
6451
6491
|
return {
|
|
6452
6492
|
...this.parent?.(),
|
|
6453
|
-
layout:
|
|
6493
|
+
layout: "two-column"
|
|
6454
6494
|
};
|
|
6455
6495
|
},
|
|
6456
6496
|
addAttributes() {
|
|
6457
|
-
return { layout: { default:
|
|
6497
|
+
return { layout: { default: "two-column" } };
|
|
6458
6498
|
},
|
|
6459
6499
|
addCommands() {
|
|
6460
6500
|
return {
|
|
@@ -6512,7 +6552,7 @@ const getRenderContainer = (editor, nodeType) => {
|
|
|
6512
6552
|
};
|
|
6513
6553
|
//#endregion
|
|
6514
6554
|
//#region src/components/menus/ColumnsBubbleMenu.vue
|
|
6515
|
-
const _sfc_main$68 =
|
|
6555
|
+
const _sfc_main$68 = /*@__PURE__*/ defineComponent({
|
|
6516
6556
|
__name: "ColumnsBubbleMenu",
|
|
6517
6557
|
props: {
|
|
6518
6558
|
editor: {
|
|
@@ -6591,10 +6631,10 @@ function _sfc_render$68(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6591
6631
|
_: 1
|
|
6592
6632
|
}, 8, ["editor", "tippy-options"]);
|
|
6593
6633
|
}
|
|
6594
|
-
var ColumnsBubbleMenu_default =
|
|
6634
|
+
var ColumnsBubbleMenu_default = /*#__PURE__*/ export_helper_default(_sfc_main$68, [["render", _sfc_render$68], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/menus/ColumnsBubbleMenu.vue"]]);
|
|
6595
6635
|
//#endregion
|
|
6596
6636
|
//#region src/components/ui/tabs/Tabs.vue
|
|
6597
|
-
const _sfc_main$67 =
|
|
6637
|
+
const _sfc_main$67 = /*@__PURE__*/ defineComponent({
|
|
6598
6638
|
__name: "Tabs",
|
|
6599
6639
|
props: {
|
|
6600
6640
|
defaultValue: {
|
|
@@ -6656,10 +6696,10 @@ function _sfc_render$67(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6656
6696
|
_: 3
|
|
6657
6697
|
}, 16);
|
|
6658
6698
|
}
|
|
6659
|
-
var Tabs_default =
|
|
6699
|
+
var Tabs_default = /*#__PURE__*/ export_helper_default(_sfc_main$67, [["render", _sfc_render$67], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/tabs/Tabs.vue"]]);
|
|
6660
6700
|
//#endregion
|
|
6661
6701
|
//#region src/components/ui/tabs/TabsList.vue
|
|
6662
|
-
const _sfc_main$66 =
|
|
6702
|
+
const _sfc_main$66 = /*@__PURE__*/ defineComponent({
|
|
6663
6703
|
__name: "TabsList",
|
|
6664
6704
|
props: {
|
|
6665
6705
|
loop: {
|
|
@@ -6715,10 +6755,10 @@ function _sfc_render$66(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6715
6755
|
_: 3
|
|
6716
6756
|
}, 16, ["class"]);
|
|
6717
6757
|
}
|
|
6718
|
-
var TabsList_default =
|
|
6758
|
+
var TabsList_default = /*#__PURE__*/ export_helper_default(_sfc_main$66, [["render", _sfc_render$66], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/tabs/TabsList.vue"]]);
|
|
6719
6759
|
//#endregion
|
|
6720
6760
|
//#region src/components/ui/tabs/TabsTrigger.vue
|
|
6721
|
-
const _sfc_main$65 =
|
|
6761
|
+
const _sfc_main$65 = /*@__PURE__*/ defineComponent({
|
|
6722
6762
|
__name: "TabsTrigger",
|
|
6723
6763
|
props: {
|
|
6724
6764
|
value: {
|
|
@@ -6781,10 +6821,10 @@ function _sfc_render$65(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6781
6821
|
_: 3
|
|
6782
6822
|
}, 16, ["class"]);
|
|
6783
6823
|
}
|
|
6784
|
-
var TabsTrigger_default =
|
|
6824
|
+
var TabsTrigger_default = /*#__PURE__*/ export_helper_default(_sfc_main$65, [["render", _sfc_render$65], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/tabs/TabsTrigger.vue"]]);
|
|
6785
6825
|
//#endregion
|
|
6786
6826
|
//#region src/components/menus/ImageBubbleMenu.vue
|
|
6787
|
-
const _sfc_main$64 =
|
|
6827
|
+
const _sfc_main$64 = /*@__PURE__*/ defineComponent({
|
|
6788
6828
|
__name: "ImageBubbleMenu",
|
|
6789
6829
|
props: {
|
|
6790
6830
|
editor: {
|
|
@@ -7050,10 +7090,10 @@ function _sfc_render$64(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7050
7090
|
_: 1
|
|
7051
7091
|
}, 8, ["editor", "tippy-options"]);
|
|
7052
7092
|
}
|
|
7053
|
-
var ImageBubbleMenu_default =
|
|
7093
|
+
var ImageBubbleMenu_default = /*#__PURE__*/ export_helper_default(_sfc_main$64, [["render", _sfc_render$64], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/menus/ImageBubbleMenu.vue"]]);
|
|
7054
7094
|
//#endregion
|
|
7055
7095
|
//#region src/components/ui/menu/MenuItem.vue
|
|
7056
|
-
const _sfc_main$63 =
|
|
7096
|
+
const _sfc_main$63 = /*@__PURE__*/ defineComponent({
|
|
7057
7097
|
__name: "MenuItem",
|
|
7058
7098
|
props: {
|
|
7059
7099
|
disabled: {
|
|
@@ -7113,10 +7153,10 @@ const _sfc_main$63 = /* @__PURE__ */ defineComponent({
|
|
|
7113
7153
|
function _sfc_render$63(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7114
7154
|
return openBlock(), createElementBlock("div", mergeProps($setup.forwardedProps, { class: $setup.cn("relative flex select-none items-center p-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 hover:bg-accent rounded-sm gap-2", $props.inset && "pl-8", $setup.props.class) }), [renderSlot(_ctx.$slots, "default")], 16);
|
|
7115
7155
|
}
|
|
7116
|
-
var MenuItem_default =
|
|
7156
|
+
var MenuItem_default = /*#__PURE__*/ export_helper_default(_sfc_main$63, [["render", _sfc_render$63], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menu/MenuItem.vue"]]);
|
|
7117
7157
|
//#endregion
|
|
7118
7158
|
//#region src/components/ui/menu/MenuCheckboxItem.vue
|
|
7119
|
-
const _sfc_main$62 =
|
|
7159
|
+
const _sfc_main$62 = /*@__PURE__*/ defineComponent({
|
|
7120
7160
|
__name: "MenuCheckboxItem",
|
|
7121
7161
|
props: {
|
|
7122
7162
|
modelValue: {
|
|
@@ -7163,10 +7203,10 @@ function _sfc_render$62(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7163
7203
|
onClick: _cache[0] || (_cache[0] = ($event) => $setup.emit("select"))
|
|
7164
7204
|
}, [createElementVNode("span", _hoisted_1$25, [$props.modelValue ? (openBlock(), createElementBlock("span", _hoisted_2$16, [createVNode($setup["Check"], { class: "h-4 w-4" })])) : createCommentVNode("v-if", true)]), renderSlot(_ctx.$slots, "default")], 2);
|
|
7165
7205
|
}
|
|
7166
|
-
var MenuCheckboxItem_default =
|
|
7206
|
+
var MenuCheckboxItem_default = /*#__PURE__*/ export_helper_default(_sfc_main$62, [["render", _sfc_render$62], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menu/MenuCheckboxItem.vue"]]);
|
|
7167
7207
|
//#endregion
|
|
7168
7208
|
//#region src/components/ui/menu/MenuSeparator.vue
|
|
7169
|
-
const _sfc_main$61 =
|
|
7209
|
+
const _sfc_main$61 = /*@__PURE__*/ defineComponent({
|
|
7170
7210
|
__name: "MenuSeparator",
|
|
7171
7211
|
props: { class: {
|
|
7172
7212
|
type: [
|
|
@@ -7202,10 +7242,10 @@ const _sfc_main$61 = /* @__PURE__ */ defineComponent({
|
|
|
7202
7242
|
function _sfc_render$61(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7203
7243
|
return openBlock(), createElementBlock("div", mergeProps($setup.delegatedProps, { class: $setup.cn("-mx-1 my-1 h-px bg-muted", $setup.props.class) }), null, 16);
|
|
7204
7244
|
}
|
|
7205
|
-
var MenuSeparator_default =
|
|
7245
|
+
var MenuSeparator_default = /*#__PURE__*/ export_helper_default(_sfc_main$61, [["render", _sfc_render$61], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menu/MenuSeparator.vue"]]);
|
|
7206
7246
|
//#endregion
|
|
7207
7247
|
//#region src/components/ui/menu/MenuShortcut.vue
|
|
7208
|
-
const _sfc_main$60 =
|
|
7248
|
+
const _sfc_main$60 = /*@__PURE__*/ defineComponent({
|
|
7209
7249
|
__name: "MenuShortcut",
|
|
7210
7250
|
props: { class: {
|
|
7211
7251
|
type: [
|
|
@@ -7236,10 +7276,10 @@ const _sfc_main$60 = /* @__PURE__ */ defineComponent({
|
|
|
7236
7276
|
function _sfc_render$60(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7237
7277
|
return openBlock(), createElementBlock("span", { class: normalizeClass($setup.cn("ml-auto text-xs tracking-widest opacity-60", $setup.props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
|
|
7238
7278
|
}
|
|
7239
|
-
var MenuShortcut_default =
|
|
7279
|
+
var MenuShortcut_default = /*#__PURE__*/ export_helper_default(_sfc_main$60, [["render", _sfc_render$60], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menu/MenuShortcut.vue"]]);
|
|
7240
7280
|
//#endregion
|
|
7241
7281
|
//#region src/components/menus/components/AiCompletion.vue
|
|
7242
|
-
const _sfc_main$59 =
|
|
7282
|
+
const _sfc_main$59 = /*@__PURE__*/ defineComponent({
|
|
7243
7283
|
__name: "AiCompletion",
|
|
7244
7284
|
props: {
|
|
7245
7285
|
editor: {
|
|
@@ -7325,10 +7365,10 @@ function _sfc_render$59(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7325
7365
|
})
|
|
7326
7366
|
])]);
|
|
7327
7367
|
}
|
|
7328
|
-
var AiCompletion_default =
|
|
7368
|
+
var AiCompletion_default = /*#__PURE__*/ export_helper_default(_sfc_main$59, [["render", _sfc_render$59], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/menus/components/AiCompletion.vue"]]);
|
|
7329
7369
|
//#endregion
|
|
7330
7370
|
//#region src/components/ui/menu.vue
|
|
7331
|
-
const _sfc_main$58 =
|
|
7371
|
+
const _sfc_main$58 = /*@__PURE__*/ defineComponent({
|
|
7332
7372
|
__name: "menu",
|
|
7333
7373
|
props: { items: {
|
|
7334
7374
|
type: Array,
|
|
@@ -7508,9 +7548,9 @@ function _sfc_render$58(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7508
7548
|
], 42, _hoisted_2$14);
|
|
7509
7549
|
}), 128))], 512);
|
|
7510
7550
|
}
|
|
7511
|
-
var menu_default =
|
|
7551
|
+
var menu_default = /*#__PURE__*/ export_helper_default(_sfc_main$58, [["render", _sfc_render$58], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menu.vue"]]);
|
|
7512
7552
|
//#endregion
|
|
7513
|
-
//#region ../../node_modules/.pnpm/prosemirror-model@1.25.
|
|
7553
|
+
//#region ../../node_modules/.pnpm/prosemirror-model@1.25.11/node_modules/prosemirror-model/dist/index.js
|
|
7514
7554
|
function findDiffStart(a, b, pos) {
|
|
7515
7555
|
for (let i = 0;; i++) {
|
|
7516
7556
|
if (i == a.childCount || i == b.childCount) return a.childCount == b.childCount ? null : pos;
|
|
@@ -7521,7 +7561,9 @@ function findDiffStart(a, b, pos) {
|
|
|
7521
7561
|
}
|
|
7522
7562
|
if (!childA.sameMarkup(childB)) return pos;
|
|
7523
7563
|
if (childA.isText && childA.text != childB.text) {
|
|
7524
|
-
|
|
7564
|
+
let tA = childA.text, tB = childB.text, j = 0;
|
|
7565
|
+
for (; tA[j] == tB[j]; j++) pos++;
|
|
7566
|
+
if (j && j < tA.length && j < tB.length && surrogateHigh(tA.charCodeAt(j - 1)) && surrogateLow(tA.charCodeAt(j))) pos--;
|
|
7525
7567
|
return pos;
|
|
7526
7568
|
}
|
|
7527
7569
|
if (childA.content.size || childB.content.size) {
|
|
@@ -7548,12 +7590,17 @@ function findDiffEnd(a, b, posA, posB) {
|
|
|
7548
7590
|
b: posB
|
|
7549
7591
|
};
|
|
7550
7592
|
if (childA.isText && childA.text != childB.text) {
|
|
7551
|
-
let
|
|
7552
|
-
while (
|
|
7553
|
-
|
|
7593
|
+
let tA = childA.text, tB = childB.text, iA = tA.length, iB = tB.length;
|
|
7594
|
+
while (iA > 0 && iB > 0 && tA[iA - 1] == tB[iB - 1]) {
|
|
7595
|
+
iA--;
|
|
7596
|
+
iB--;
|
|
7554
7597
|
posA--;
|
|
7555
7598
|
posB--;
|
|
7556
7599
|
}
|
|
7600
|
+
if (iA && iB && iA < tA.length && surrogateHigh(tA.charCodeAt(iA - 1)) && surrogateLow(tA.charCodeAt(iA))) {
|
|
7601
|
+
posA++;
|
|
7602
|
+
posB++;
|
|
7603
|
+
}
|
|
7557
7604
|
return {
|
|
7558
7605
|
a: posA,
|
|
7559
7606
|
b: posB
|
|
@@ -7567,6 +7614,12 @@ function findDiffEnd(a, b, posA, posB) {
|
|
|
7567
7614
|
posB -= size;
|
|
7568
7615
|
}
|
|
7569
7616
|
}
|
|
7617
|
+
function surrogateLow(ch) {
|
|
7618
|
+
return ch >= 56320 && ch < 57344;
|
|
7619
|
+
}
|
|
7620
|
+
function surrogateHigh(ch) {
|
|
7621
|
+
return ch >= 55296 && ch < 56320;
|
|
7622
|
+
}
|
|
7570
7623
|
/**
|
|
7571
7624
|
A fragment represents a node's collection of child nodes.
|
|
7572
7625
|
|
|
@@ -7797,7 +7850,7 @@ var Fragment$1 = class Fragment$1 {
|
|
|
7797
7850
|
static fromJSON(schema, value) {
|
|
7798
7851
|
if (!value) return Fragment$1.empty;
|
|
7799
7852
|
if (!Array.isArray(value)) throw new RangeError("Invalid input for Fragment.fromJSON");
|
|
7800
|
-
return
|
|
7853
|
+
return Fragment$1.fromArray(value.map(schema.nodeFromJSON));
|
|
7801
7854
|
}
|
|
7802
7855
|
/**
|
|
7803
7856
|
Build a fragment from an array of nodes. Ensures that adjacent
|
|
@@ -8010,7 +8063,7 @@ var Slice = class Slice {
|
|
|
8010
8063
|
@internal
|
|
8011
8064
|
*/
|
|
8012
8065
|
insertAt(pos, fragment) {
|
|
8013
|
-
let content = insertInto(this.content, pos + this.openStart, fragment);
|
|
8066
|
+
let content = insertInto(this.content, pos + this.openStart, fragment, this.openStart + 1, this.openEnd + 1);
|
|
8014
8067
|
return content && new Slice(content, this.openStart, this.openEnd);
|
|
8015
8068
|
}
|
|
8016
8069
|
/**
|
|
@@ -8075,13 +8128,13 @@ function removeRange(content, from, to) {
|
|
|
8075
8128
|
if (index != indexTo) throw new RangeError("Removing non-flat range");
|
|
8076
8129
|
return content.replaceChild(index, child.copy(removeRange(child.content, from - offset - 1, to - offset - 1)));
|
|
8077
8130
|
}
|
|
8078
|
-
function insertInto(content, dist, insert, parent) {
|
|
8131
|
+
function insertInto(content, dist, insert, openStart, openEnd, parent) {
|
|
8079
8132
|
let { index, offset } = content.findIndex(dist), child = content.maybeChild(index);
|
|
8080
8133
|
if (offset == dist || child.isText) {
|
|
8081
|
-
if (parent && !parent.canReplace(index, index, insert)) return null;
|
|
8134
|
+
if (parent && openStart <= 0 && openEnd <= 0 && !parent.canReplace(index, index, insert)) return null;
|
|
8082
8135
|
return content.cut(0, dist).append(insert).append(content.cut(dist));
|
|
8083
8136
|
}
|
|
8084
|
-
let inner = insertInto(child.content, dist - offset - 1, insert, child);
|
|
8137
|
+
let inner = insertInto(child.content, dist - offset - 1, insert, index == 0 ? openStart - 1 : 0, index == content.childCount - 1 ? openEnd - 1 : 0, child);
|
|
8085
8138
|
return inner && content.replaceChild(index, child.copy(inner));
|
|
8086
8139
|
}
|
|
8087
8140
|
function replace$2($from, $to, slice) {
|
|
@@ -8131,7 +8184,7 @@ function addRange($start, $end, depth, target) {
|
|
|
8131
8184
|
if ($end && $end.depth == depth && $end.textOffset) addNode($end.nodeBefore, target);
|
|
8132
8185
|
}
|
|
8133
8186
|
function close(node, content) {
|
|
8134
|
-
node.type.
|
|
8187
|
+
if (!node.type.validContent(content)) throw new ReplaceError("Invalid content for node " + node.type.name);
|
|
8135
8188
|
return node.copy(content);
|
|
8136
8189
|
}
|
|
8137
8190
|
function replaceThreeWay($from, $start, $end, $to, depth) {
|
|
@@ -8544,10 +8597,11 @@ var Node$2 = class Node$2 {
|
|
|
8544
8597
|
this.content.forEach(f);
|
|
8545
8598
|
}
|
|
8546
8599
|
/**
|
|
8547
|
-
Invoke a callback for all descendant nodes recursively
|
|
8600
|
+
Invoke a callback for all descendant nodes recursively overlapping
|
|
8548
8601
|
the given two positions that are relative to start of this
|
|
8549
|
-
node's content.
|
|
8550
|
-
|
|
8602
|
+
node's content. This includes all ancestors of the nodes
|
|
8603
|
+
containing the two positions. The callback is invoked with the
|
|
8604
|
+
node, its position relative to the original node (method receiver),
|
|
8551
8605
|
its parent node, and its child index. When the callback returns
|
|
8552
8606
|
false for a given node, that node's children will not be
|
|
8553
8607
|
recursed over. The last parameter can be used to specify a
|
|
@@ -9343,6 +9397,7 @@ var DOMSerializer = class DOMSerializer {
|
|
|
9343
9397
|
@internal
|
|
9344
9398
|
*/
|
|
9345
9399
|
serializeNodeInner(node, options) {
|
|
9400
|
+
if (node.isText) return doc$1(options).createTextNode(node.text);
|
|
9346
9401
|
let { dom, contentDOM } = renderSpec(doc$1(options), this.nodes[node.type.name](node), null, node.attrs);
|
|
9347
9402
|
if (contentDOM) {
|
|
9348
9403
|
if (node.isLeaf) throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
@@ -9376,6 +9431,7 @@ var DOMSerializer = class DOMSerializer {
|
|
|
9376
9431
|
return toDOM && renderSpec(doc$1(options), toDOM(mark, inline), null, mark.attrs);
|
|
9377
9432
|
}
|
|
9378
9433
|
static renderSpec(doc, structure, xmlNS = null, blockArraysIn) {
|
|
9434
|
+
if (typeof structure == "string") return { dom: doc.createTextNode(structure) };
|
|
9379
9435
|
return renderSpec(doc, structure, xmlNS, blockArraysIn);
|
|
9380
9436
|
}
|
|
9381
9437
|
/**
|
|
@@ -9431,9 +9487,8 @@ function suspiciousAttributesInner(attrs) {
|
|
|
9431
9487
|
return result;
|
|
9432
9488
|
}
|
|
9433
9489
|
function renderSpec(doc, structure, xmlNS, blockArraysIn) {
|
|
9434
|
-
if (
|
|
9435
|
-
if (structure.nodeType
|
|
9436
|
-
if (structure.dom && structure.dom.nodeType != null) return structure;
|
|
9490
|
+
if (structure.nodeType == 1) return { dom: structure };
|
|
9491
|
+
if (structure.dom && structure.dom.nodeType == 1) return structure;
|
|
9437
9492
|
let tagName = structure[0], suspicious;
|
|
9438
9493
|
if (typeof tagName != "string") throw new RangeError("Invalid array passed to renderSpec");
|
|
9439
9494
|
if (blockArraysIn && (suspicious = suspiciousAttributes(blockArraysIn)) && suspicious.indexOf(structure) > -1) throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
|
|
@@ -9462,7 +9517,8 @@ function renderSpec(doc, structure, xmlNS, blockArraysIn) {
|
|
|
9462
9517
|
dom,
|
|
9463
9518
|
contentDOM: dom
|
|
9464
9519
|
};
|
|
9465
|
-
} else
|
|
9520
|
+
} else if (typeof child == "string") dom.appendChild(doc.createTextNode(child));
|
|
9521
|
+
else {
|
|
9466
9522
|
let { dom: inner, contentDOM: innerContent } = renderSpec(doc, child, xmlNS, blockArraysIn);
|
|
9467
9523
|
dom.appendChild(inner);
|
|
9468
9524
|
if (innerContent) {
|
|
@@ -9671,7 +9727,7 @@ const DEFAULT_SHORTCUTS = [
|
|
|
9671
9727
|
];
|
|
9672
9728
|
//#endregion
|
|
9673
9729
|
//#region src/components/menus/AIMenu.vue
|
|
9674
|
-
const _sfc_main$57 =
|
|
9730
|
+
const _sfc_main$57 = /*@__PURE__*/ defineComponent({
|
|
9675
9731
|
__name: "AIMenu",
|
|
9676
9732
|
props: {
|
|
9677
9733
|
editor: {
|
|
@@ -10016,14 +10072,14 @@ function _sfc_render$57(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10016
10072
|
_: 1
|
|
10017
10073
|
}, 8, ["editor", "tippy-options"]), [[vShow, $setup.shouldShow]])], 4)), [[vShow, $setup.shouldShow]]);
|
|
10018
10074
|
}
|
|
10019
|
-
var AIMenu_default =
|
|
10075
|
+
var AIMenu_default = /*#__PURE__*/ export_helper_default(_sfc_main$57, [
|
|
10020
10076
|
["render", _sfc_render$57],
|
|
10021
10077
|
["__scopeId", "data-v-021cd1be"],
|
|
10022
10078
|
["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/menus/AIMenu.vue"]
|
|
10023
10079
|
]);
|
|
10024
10080
|
//#endregion
|
|
10025
10081
|
//#region src/components/ui/menubar/Menubar.vue
|
|
10026
|
-
const _sfc_main$56 =
|
|
10082
|
+
const _sfc_main$56 = /*@__PURE__*/ defineComponent({
|
|
10027
10083
|
__name: "Menubar",
|
|
10028
10084
|
props: {
|
|
10029
10085
|
modelValue: {
|
|
@@ -10088,10 +10144,10 @@ function _sfc_render$56(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10088
10144
|
_: 3
|
|
10089
10145
|
}, 16, ["class"]);
|
|
10090
10146
|
}
|
|
10091
|
-
var Menubar_default =
|
|
10147
|
+
var Menubar_default = /*#__PURE__*/ export_helper_default(_sfc_main$56, [["render", _sfc_render$56], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menubar/Menubar.vue"]]);
|
|
10092
10148
|
//#endregion
|
|
10093
10149
|
//#region src/components/ui/menubar/MenubarCheckboxItem.vue
|
|
10094
|
-
const _sfc_main$55 =
|
|
10150
|
+
const _sfc_main$55 = /*@__PURE__*/ defineComponent({
|
|
10095
10151
|
__name: "MenubarCheckboxItem",
|
|
10096
10152
|
props: {
|
|
10097
10153
|
modelValue: {
|
|
@@ -10170,10 +10226,10 @@ function _sfc_render$55(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10170
10226
|
_: 3
|
|
10171
10227
|
}, 16, ["class"]);
|
|
10172
10228
|
}
|
|
10173
|
-
var MenubarCheckboxItem_default =
|
|
10229
|
+
var MenubarCheckboxItem_default = /*#__PURE__*/ export_helper_default(_sfc_main$55, [["render", _sfc_render$55], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menubar/MenubarCheckboxItem.vue"]]);
|
|
10174
10230
|
//#endregion
|
|
10175
10231
|
//#region src/components/ui/menubar/MenubarContent.vue
|
|
10176
|
-
const _sfc_main$54 =
|
|
10232
|
+
const _sfc_main$54 = /*@__PURE__*/ defineComponent({
|
|
10177
10233
|
__name: "MenubarContent",
|
|
10178
10234
|
props: {
|
|
10179
10235
|
forceMount: {
|
|
@@ -10184,6 +10240,10 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
|
|
|
10184
10240
|
type: Boolean,
|
|
10185
10241
|
required: false
|
|
10186
10242
|
},
|
|
10243
|
+
memoDependencies: {
|
|
10244
|
+
type: Array,
|
|
10245
|
+
required: false
|
|
10246
|
+
},
|
|
10187
10247
|
side: {
|
|
10188
10248
|
type: null,
|
|
10189
10249
|
required: false
|
|
@@ -10316,10 +10376,10 @@ function _sfc_render$54(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10316
10376
|
_: 3
|
|
10317
10377
|
});
|
|
10318
10378
|
}
|
|
10319
|
-
var MenubarContent_default =
|
|
10379
|
+
var MenubarContent_default = /*#__PURE__*/ export_helper_default(_sfc_main$54, [["render", _sfc_render$54], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menubar/MenubarContent.vue"]]);
|
|
10320
10380
|
//#endregion
|
|
10321
10381
|
//#region src/components/ui/menubar/MenubarItem.vue
|
|
10322
|
-
const _sfc_main$53 =
|
|
10382
|
+
const _sfc_main$53 = /*@__PURE__*/ defineComponent({
|
|
10323
10383
|
__name: "MenubarItem",
|
|
10324
10384
|
props: {
|
|
10325
10385
|
disabled: {
|
|
@@ -10388,10 +10448,10 @@ function _sfc_render$53(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10388
10448
|
_: 3
|
|
10389
10449
|
}, 16, ["class"]);
|
|
10390
10450
|
}
|
|
10391
|
-
var MenubarItem_default =
|
|
10451
|
+
var MenubarItem_default = /*#__PURE__*/ export_helper_default(_sfc_main$53, [["render", _sfc_render$53], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menubar/MenubarItem.vue"]]);
|
|
10392
10452
|
//#endregion
|
|
10393
10453
|
//#region src/components/ui/menubar/MenubarMenu.vue
|
|
10394
|
-
const _sfc_main$52 =
|
|
10454
|
+
const _sfc_main$52 = /*@__PURE__*/ defineComponent({
|
|
10395
10455
|
__name: "MenubarMenu",
|
|
10396
10456
|
props: { value: {
|
|
10397
10457
|
type: String,
|
|
@@ -10418,10 +10478,10 @@ function _sfc_render$52(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10418
10478
|
_: 3
|
|
10419
10479
|
}, 16);
|
|
10420
10480
|
}
|
|
10421
|
-
var MenubarMenu_default =
|
|
10481
|
+
var MenubarMenu_default = /*#__PURE__*/ export_helper_default(_sfc_main$52, [["render", _sfc_render$52], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menubar/MenubarMenu.vue"]]);
|
|
10422
10482
|
//#endregion
|
|
10423
10483
|
//#region src/components/ui/menubar/MenubarSeparator.vue
|
|
10424
|
-
const _sfc_main$51 =
|
|
10484
|
+
const _sfc_main$51 = /*@__PURE__*/ defineComponent({
|
|
10425
10485
|
__name: "MenubarSeparator",
|
|
10426
10486
|
props: {
|
|
10427
10487
|
asChild: {
|
|
@@ -10472,10 +10532,10 @@ const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
|
10472
10532
|
function _sfc_render$51(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10473
10533
|
return openBlock(), createBlock($setup["MenubarSeparator"], mergeProps({ class: $setup.cn("-mx-1 my-1 h-px bg-muted", $setup.props.class) }, $setup.forwardedProps), null, 16, ["class"]);
|
|
10474
10534
|
}
|
|
10475
|
-
var MenubarSeparator_default =
|
|
10535
|
+
var MenubarSeparator_default = /*#__PURE__*/ export_helper_default(_sfc_main$51, [["render", _sfc_render$51], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menubar/MenubarSeparator.vue"]]);
|
|
10476
10536
|
//#endregion
|
|
10477
10537
|
//#region src/components/ui/menubar/MenubarShortcut.vue
|
|
10478
|
-
const _sfc_main$50 =
|
|
10538
|
+
const _sfc_main$50 = /*@__PURE__*/ defineComponent({
|
|
10479
10539
|
__name: "MenubarShortcut",
|
|
10480
10540
|
props: { class: {
|
|
10481
10541
|
type: [
|
|
@@ -10506,10 +10566,10 @@ const _sfc_main$50 = /* @__PURE__ */ defineComponent({
|
|
|
10506
10566
|
function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10507
10567
|
return openBlock(), createElementBlock("span", { class: normalizeClass($setup.cn("ml-auto text-xs tracking-widest text-muted-foreground", $setup.props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
|
|
10508
10568
|
}
|
|
10509
|
-
var MenubarShortcut_default =
|
|
10569
|
+
var MenubarShortcut_default = /*#__PURE__*/ export_helper_default(_sfc_main$50, [["render", _sfc_render$50], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menubar/MenubarShortcut.vue"]]);
|
|
10510
10570
|
//#endregion
|
|
10511
10571
|
//#region src/components/ui/menubar/MenubarTrigger.vue
|
|
10512
|
-
const _sfc_main$49 =
|
|
10572
|
+
const _sfc_main$49 = /*@__PURE__*/ defineComponent({
|
|
10513
10573
|
__name: "MenubarTrigger",
|
|
10514
10574
|
props: {
|
|
10515
10575
|
disabled: {
|
|
@@ -10567,7 +10627,7 @@ function _sfc_render$49(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10567
10627
|
_: 3
|
|
10568
10628
|
}, 16, ["class"]);
|
|
10569
10629
|
}
|
|
10570
|
-
var MenubarTrigger_default =
|
|
10630
|
+
var MenubarTrigger_default = /*#__PURE__*/ export_helper_default(_sfc_main$49, [["render", _sfc_render$49], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/menubar/MenubarTrigger.vue"]]);
|
|
10571
10631
|
//#endregion
|
|
10572
10632
|
//#region src/utils/content.ts
|
|
10573
10633
|
function getSelectionText(editor) {
|
|
@@ -10578,7 +10638,7 @@ function getSelectionText(editor) {
|
|
|
10578
10638
|
//#endregion
|
|
10579
10639
|
//#region src/components/Menubars.vue
|
|
10580
10640
|
const DRAFT_KEY = "rich-editor-draft";
|
|
10581
|
-
const _sfc_main$48 =
|
|
10641
|
+
const _sfc_main$48 = /*@__PURE__*/ defineComponent({
|
|
10582
10642
|
__name: "Menubars",
|
|
10583
10643
|
props: {
|
|
10584
10644
|
editor: {
|
|
@@ -11061,10 +11121,10 @@ function _sfc_render$48(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11061
11121
|
_: 1
|
|
11062
11122
|
});
|
|
11063
11123
|
}
|
|
11064
|
-
var Menubars_default =
|
|
11124
|
+
var Menubars_default = /*#__PURE__*/ export_helper_default(_sfc_main$48, [["render", _sfc_render$48], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/Menubars.vue"]]);
|
|
11065
11125
|
//#endregion
|
|
11066
11126
|
//#region src/components/Toolbar.vue
|
|
11067
|
-
const _sfc_main$47 =
|
|
11127
|
+
const _sfc_main$47 = /*@__PURE__*/ defineComponent({
|
|
11068
11128
|
__name: "Toolbar",
|
|
11069
11129
|
props: {
|
|
11070
11130
|
editor: {
|
|
@@ -11156,10 +11216,10 @@ function _sfc_render$47(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11156
11216
|
], 64);
|
|
11157
11217
|
}), 128))])])) : createCommentVNode("v-if", true);
|
|
11158
11218
|
}
|
|
11159
|
-
var Toolbar_default =
|
|
11219
|
+
var Toolbar_default = /*#__PURE__*/ export_helper_default(_sfc_main$47, [["render", _sfc_render$47], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/Toolbar.vue"]]);
|
|
11160
11220
|
//#endregion
|
|
11161
11221
|
//#region src/components/ui/dialog/Dialog.vue
|
|
11162
|
-
const _sfc_main$46 =
|
|
11222
|
+
const _sfc_main$46 = /*@__PURE__*/ defineComponent({
|
|
11163
11223
|
__name: "Dialog",
|
|
11164
11224
|
props: {
|
|
11165
11225
|
open: {
|
|
@@ -11173,6 +11233,10 @@ const _sfc_main$46 = /* @__PURE__ */ defineComponent({
|
|
|
11173
11233
|
modal: {
|
|
11174
11234
|
type: Boolean,
|
|
11175
11235
|
required: false
|
|
11236
|
+
},
|
|
11237
|
+
unmountOnHide: {
|
|
11238
|
+
type: Boolean,
|
|
11239
|
+
required: false
|
|
11176
11240
|
}
|
|
11177
11241
|
},
|
|
11178
11242
|
emits: ["update:open"],
|
|
@@ -11201,10 +11265,10 @@ function _sfc_render$46(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11201
11265
|
_: 3
|
|
11202
11266
|
}, 16);
|
|
11203
11267
|
}
|
|
11204
|
-
var Dialog_default =
|
|
11268
|
+
var Dialog_default = /*#__PURE__*/ export_helper_default(_sfc_main$46, [["render", _sfc_render$46], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dialog/Dialog.vue"]]);
|
|
11205
11269
|
//#endregion
|
|
11206
11270
|
//#region src/components/ui/dialog/DialogContent.vue
|
|
11207
|
-
const _sfc_main$45 =
|
|
11271
|
+
const _sfc_main$45 = /*@__PURE__*/ defineComponent({
|
|
11208
11272
|
__name: "DialogContent",
|
|
11209
11273
|
props: {
|
|
11210
11274
|
forceMount: {
|
|
@@ -11294,10 +11358,10 @@ function _sfc_render$45(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11294
11358
|
_: 3
|
|
11295
11359
|
});
|
|
11296
11360
|
}
|
|
11297
|
-
var DialogContent_default =
|
|
11361
|
+
var DialogContent_default = /*#__PURE__*/ export_helper_default(_sfc_main$45, [["render", _sfc_render$45], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dialog/DialogContent.vue"]]);
|
|
11298
11362
|
//#endregion
|
|
11299
11363
|
//#region src/components/ui/dialog/DialogFooter.vue
|
|
11300
|
-
const _sfc_main$44 =
|
|
11364
|
+
const _sfc_main$44 = /*@__PURE__*/ defineComponent({
|
|
11301
11365
|
__name: "DialogFooter",
|
|
11302
11366
|
props: { class: {
|
|
11303
11367
|
type: [
|
|
@@ -11328,10 +11392,10 @@ const _sfc_main$44 = /* @__PURE__ */ defineComponent({
|
|
|
11328
11392
|
function _sfc_render$44(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11329
11393
|
return openBlock(), createElementBlock("div", { class: normalizeClass($setup.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2", $setup.props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
|
|
11330
11394
|
}
|
|
11331
|
-
var DialogFooter_default =
|
|
11395
|
+
var DialogFooter_default = /*#__PURE__*/ export_helper_default(_sfc_main$44, [["render", _sfc_render$44], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dialog/DialogFooter.vue"]]);
|
|
11332
11396
|
//#endregion
|
|
11333
11397
|
//#region src/components/ui/dialog/DialogHeader.vue
|
|
11334
|
-
const _sfc_main$43 =
|
|
11398
|
+
const _sfc_main$43 = /*@__PURE__*/ defineComponent({
|
|
11335
11399
|
__name: "DialogHeader",
|
|
11336
11400
|
props: { class: {
|
|
11337
11401
|
type: [
|
|
@@ -11362,10 +11426,10 @@ const _sfc_main$43 = /* @__PURE__ */ defineComponent({
|
|
|
11362
11426
|
function _sfc_render$43(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11363
11427
|
return openBlock(), createElementBlock("div", { class: normalizeClass($setup.cn("flex flex-col gap-y-1.5 text-center sm:text-left", $setup.props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
|
|
11364
11428
|
}
|
|
11365
|
-
var DialogHeader_default =
|
|
11429
|
+
var DialogHeader_default = /*#__PURE__*/ export_helper_default(_sfc_main$43, [["render", _sfc_render$43], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dialog/DialogHeader.vue"]]);
|
|
11366
11430
|
//#endregion
|
|
11367
11431
|
//#region src/components/ui/dialog/DialogTitle.vue
|
|
11368
|
-
const _sfc_main$42 =
|
|
11432
|
+
const _sfc_main$42 = /*@__PURE__*/ defineComponent({
|
|
11369
11433
|
__name: "DialogTitle",
|
|
11370
11434
|
props: {
|
|
11371
11435
|
asChild: {
|
|
@@ -11419,10 +11483,10 @@ function _sfc_render$42(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11419
11483
|
_: 3
|
|
11420
11484
|
}, 16, ["class"]);
|
|
11421
11485
|
}
|
|
11422
|
-
var DialogTitle_default =
|
|
11486
|
+
var DialogTitle_default = /*#__PURE__*/ export_helper_default(_sfc_main$42, [["render", _sfc_render$42], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/dialog/DialogTitle.vue"]]);
|
|
11423
11487
|
//#endregion
|
|
11424
11488
|
//#region src/components/ui/resizable/ResizableHandle.vue
|
|
11425
|
-
const _sfc_main$41 =
|
|
11489
|
+
const _sfc_main$41 = /*@__PURE__*/ defineComponent({
|
|
11426
11490
|
__name: "ResizableHandle",
|
|
11427
11491
|
props: {
|
|
11428
11492
|
id: {
|
|
@@ -11510,10 +11574,10 @@ function _sfc_render$41(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11510
11574
|
_: 1
|
|
11511
11575
|
}, 16, ["class"]);
|
|
11512
11576
|
}
|
|
11513
|
-
var ResizableHandle_default =
|
|
11577
|
+
var ResizableHandle_default = /*#__PURE__*/ export_helper_default(_sfc_main$41, [["render", _sfc_render$41], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/resizable/ResizableHandle.vue"]]);
|
|
11514
11578
|
//#endregion
|
|
11515
11579
|
//#region src/components/ui/resizable/ResizablePanelGroup.vue
|
|
11516
|
-
const _sfc_main$40 =
|
|
11580
|
+
const _sfc_main$40 = /*@__PURE__*/ defineComponent({
|
|
11517
11581
|
__name: "ResizablePanelGroup",
|
|
11518
11582
|
props: {
|
|
11519
11583
|
id: {
|
|
@@ -11590,10 +11654,10 @@ function _sfc_render$40(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11590
11654
|
_: 3
|
|
11591
11655
|
}, 16, ["class"]);
|
|
11592
11656
|
}
|
|
11593
|
-
var ResizablePanelGroup_default =
|
|
11657
|
+
var ResizablePanelGroup_default = /*#__PURE__*/ export_helper_default(_sfc_main$40, [["render", _sfc_render$40], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/resizable/ResizablePanelGroup.vue"]]);
|
|
11594
11658
|
//#endregion
|
|
11595
11659
|
//#region src/components/ui/toggle-group/ToggleGroup.vue
|
|
11596
|
-
const _sfc_main$39 =
|
|
11660
|
+
const _sfc_main$39 = /*@__PURE__*/ defineComponent({
|
|
11597
11661
|
__name: "ToggleGroup",
|
|
11598
11662
|
props: {
|
|
11599
11663
|
rovingFocus: {
|
|
@@ -11702,10 +11766,10 @@ function _sfc_render$39(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11702
11766
|
_: 3
|
|
11703
11767
|
}, 16, ["class"]);
|
|
11704
11768
|
}
|
|
11705
|
-
var ToggleGroup_default =
|
|
11769
|
+
var ToggleGroup_default = /*#__PURE__*/ export_helper_default(_sfc_main$39, [["render", _sfc_render$39], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/toggle-group/ToggleGroup.vue"]]);
|
|
11706
11770
|
//#endregion
|
|
11707
11771
|
//#region src/components/ui/toggle-group/ToggleGroupItem.vue
|
|
11708
|
-
const _sfc_main$38 =
|
|
11772
|
+
const _sfc_main$38 = /*@__PURE__*/ defineComponent({
|
|
11709
11773
|
__name: "ToggleGroupItem",
|
|
11710
11774
|
props: {
|
|
11711
11775
|
value: {
|
|
@@ -11783,10 +11847,10 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11783
11847
|
_: 3
|
|
11784
11848
|
}, 16, ["class"]);
|
|
11785
11849
|
}
|
|
11786
|
-
var ToggleGroupItem_default =
|
|
11850
|
+
var ToggleGroupItem_default = /*#__PURE__*/ export_helper_default(_sfc_main$38, [["render", _sfc_render$38], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/toggle-group/ToggleGroupItem.vue"]]);
|
|
11787
11851
|
//#endregion
|
|
11788
11852
|
//#region src/components/ui/scroll-area/ScrollBar.vue
|
|
11789
|
-
const _sfc_main$37 =
|
|
11853
|
+
const _sfc_main$37 = /*@__PURE__*/ defineComponent({
|
|
11790
11854
|
__name: "ScrollBar",
|
|
11791
11855
|
props: {
|
|
11792
11856
|
orientation: {
|
|
@@ -11850,10 +11914,10 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11850
11914
|
_: 1
|
|
11851
11915
|
}, 16, ["class"]);
|
|
11852
11916
|
}
|
|
11853
|
-
var ScrollBar_default =
|
|
11917
|
+
var ScrollBar_default = /*#__PURE__*/ export_helper_default(_sfc_main$37, [["render", _sfc_render$37], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/scroll-area/ScrollBar.vue"]]);
|
|
11854
11918
|
//#endregion
|
|
11855
11919
|
//#region src/components/ui/scroll-area/ScrollArea.vue
|
|
11856
|
-
const _sfc_main$36 =
|
|
11920
|
+
const _sfc_main$36 = /*@__PURE__*/ defineComponent({
|
|
11857
11921
|
__name: "ScrollArea",
|
|
11858
11922
|
props: {
|
|
11859
11923
|
type: {
|
|
@@ -11931,10 +11995,10 @@ function _sfc_render$36(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11931
11995
|
_: 3
|
|
11932
11996
|
}, 16, ["class"]);
|
|
11933
11997
|
}
|
|
11934
|
-
var ScrollArea_default =
|
|
11998
|
+
var ScrollArea_default = /*#__PURE__*/ export_helper_default(_sfc_main$36, [["render", _sfc_render$36], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/scroll-area/ScrollArea.vue"]]);
|
|
11935
11999
|
//#endregion
|
|
11936
12000
|
//#region src/components/Preview.vue
|
|
11937
|
-
const _sfc_main$35 =
|
|
12001
|
+
const _sfc_main$35 = /*@__PURE__*/ defineComponent({
|
|
11938
12002
|
__name: "Preview",
|
|
11939
12003
|
props: {
|
|
11940
12004
|
editor: {
|
|
@@ -12121,10 +12185,10 @@ function _sfc_render$35(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12121
12185
|
_: 1
|
|
12122
12186
|
}, 8, ["open"]);
|
|
12123
12187
|
}
|
|
12124
|
-
var Preview_default =
|
|
12188
|
+
var Preview_default = /*#__PURE__*/ export_helper_default(_sfc_main$35, [["render", _sfc_render$35], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/Preview.vue"]]);
|
|
12125
12189
|
//#endregion
|
|
12126
12190
|
//#region src/components/Printer.vue
|
|
12127
|
-
const _sfc_main$34 =
|
|
12191
|
+
const _sfc_main$34 = /*@__PURE__*/ defineComponent({
|
|
12128
12192
|
__name: "Printer",
|
|
12129
12193
|
props: {
|
|
12130
12194
|
editor: {
|
|
@@ -12250,10 +12314,10 @@ function _sfc_render$34(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12250
12314
|
srcdoc: $setup.srcdoc
|
|
12251
12315
|
}, null, 8, _hoisted_1$17)) : createCommentVNode("v-if", true);
|
|
12252
12316
|
}
|
|
12253
|
-
var Printer_default =
|
|
12317
|
+
var Printer_default = /*#__PURE__*/ export_helper_default(_sfc_main$34, [["render", _sfc_render$34], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/Printer.vue"]]);
|
|
12254
12318
|
//#endregion
|
|
12255
12319
|
//#region src/components/FindAndReplace.vue
|
|
12256
|
-
const _sfc_main$33 =
|
|
12320
|
+
const _sfc_main$33 = /*@__PURE__*/ defineComponent({
|
|
12257
12321
|
__name: "FindAndReplace",
|
|
12258
12322
|
props: {
|
|
12259
12323
|
editor: {
|
|
@@ -12492,10 +12556,10 @@ function _sfc_render$33(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12492
12556
|
])
|
|
12493
12557
|
])) : createCommentVNode("v-if", true);
|
|
12494
12558
|
}
|
|
12495
|
-
var FindAndReplace_default =
|
|
12559
|
+
var FindAndReplace_default = /*#__PURE__*/ export_helper_default(_sfc_main$33, [["render", _sfc_render$33], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/FindAndReplace.vue"]]);
|
|
12496
12560
|
//#endregion
|
|
12497
12561
|
//#region src/components/ui/sonner/Sonner.vue
|
|
12498
|
-
const _sfc_main$32 =
|
|
12562
|
+
const _sfc_main$32 = /*@__PURE__*/ defineComponent({
|
|
12499
12563
|
__name: "Sonner",
|
|
12500
12564
|
props: {
|
|
12501
12565
|
id: {
|
|
@@ -12645,10 +12709,10 @@ function _sfc_render$32(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12645
12709
|
_: 1
|
|
12646
12710
|
}, 16);
|
|
12647
12711
|
}
|
|
12648
|
-
var Sonner_default =
|
|
12712
|
+
var Sonner_default = /*#__PURE__*/ export_helper_default(_sfc_main$32, [["render", _sfc_render$32], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/sonner/Sonner.vue"]]);
|
|
12649
12713
|
//#endregion
|
|
12650
12714
|
//#region src/components/RichEditor.vue
|
|
12651
|
-
const _sfc_main$31 =
|
|
12715
|
+
const _sfc_main$31 = /*@__PURE__*/ defineComponent({
|
|
12652
12716
|
__name: "RichEditor",
|
|
12653
12717
|
props: {
|
|
12654
12718
|
modelValue: {
|
|
@@ -12942,7 +13006,7 @@ function _sfc_render$31(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12942
13006
|
createVNode($setup["Toaster"])
|
|
12943
13007
|
], 2)) : createCommentVNode("v-if", true);
|
|
12944
13008
|
}
|
|
12945
|
-
var RichEditor_default =
|
|
13009
|
+
var RichEditor_default = /*#__PURE__*/ export_helper_default(_sfc_main$31, [["render", _sfc_render$31], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/RichEditor.vue"]]);
|
|
12946
13010
|
//#endregion
|
|
12947
13011
|
//#region src/extensions/Bold/Bold.ts
|
|
12948
13012
|
const Bold = Bold$1.extend({ addOptions() {
|
|
@@ -13043,7 +13107,7 @@ const Code = Code$1.extend({ addOptions() {
|
|
|
13043
13107
|
};
|
|
13044
13108
|
} });
|
|
13045
13109
|
//#endregion
|
|
13046
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13110
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/core-DpDyJ-7r.js
|
|
13047
13111
|
var plainTextGrammar = {};
|
|
13048
13112
|
var rest = Symbol();
|
|
13049
13113
|
var tokenize = Symbol();
|
|
@@ -13198,7 +13262,7 @@ function Token(type, content, matchedStr, alias) {
|
|
|
13198
13262
|
this.length = matchedStr.length;
|
|
13199
13263
|
}
|
|
13200
13264
|
//#endregion
|
|
13201
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13265
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/bash.js
|
|
13202
13266
|
var envVars = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINENO|_REMATCH|_SOURCE|_VERSINFO|_VERSION)?|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|E?UID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_(?:ADDRESS|ALL|IDENTIFICATION|MEASUREMENT|MONETARY|NAME|NUMERIC|PAPER|TELEPHONE|TIME)|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS[1-4]|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_(?:CONFIG_DIRS|CURRENT_DESKTOP|DATA_DIRS|GREETER_DATA_DIR|MENU_PREFIX|RUNTIME_DIR|SEAT|SEAT_PATH|SESSION_DESKTOP|SESSION_ID|SESSION_PATH|SESSION_TYPE|VTNR)|XMODIFIERS)\\b";
|
|
13203
13267
|
var commandAfterHeredoc = {
|
|
13204
13268
|
pattern: /(^(["']?)\w+\2)[ ]+\S.*/,
|
|
@@ -13364,7 +13428,7 @@ var bash = commandAfterHeredoc.inside = languages.sh = languages.shell = languag
|
|
|
13364
13428
|
"number"
|
|
13365
13429
|
].forEach((copied) => variableInside[copied] = bash[copied]);
|
|
13366
13430
|
//#endregion
|
|
13367
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13431
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/css.js
|
|
13368
13432
|
var string$3 = /"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*'/g;
|
|
13369
13433
|
var stringSrc = string$3.source;
|
|
13370
13434
|
var atruleInside = {
|
|
@@ -13417,7 +13481,7 @@ atruleInside[rest] = languages.css = {
|
|
|
13417
13481
|
"punctuation": /[(){},:;]/
|
|
13418
13482
|
};
|
|
13419
13483
|
//#endregion
|
|
13420
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13484
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/language-CPVUjid6.js
|
|
13421
13485
|
var _clone = (o, visited) => {
|
|
13422
13486
|
if (visited.has(o)) return visited.get(o);
|
|
13423
13487
|
var copy = o, t = toString.call(o).slice(8, -1);
|
|
@@ -13447,7 +13511,7 @@ var insertBefore = (grammar, before, insert) => {
|
|
|
13447
13511
|
};
|
|
13448
13512
|
var toString = {}.toString;
|
|
13449
13513
|
//#endregion
|
|
13450
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13514
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/css-extras.js
|
|
13451
13515
|
var css = languages.css;
|
|
13452
13516
|
css.selector.inside = css["atrule"].inside["selector-function-argument"].inside = {
|
|
13453
13517
|
"pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,
|
|
@@ -13513,8 +13577,13 @@ insertBefore(css, "function", {
|
|
|
13513
13577
|
}
|
|
13514
13578
|
});
|
|
13515
13579
|
//#endregion
|
|
13516
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13580
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/ini.js
|
|
13517
13581
|
languages.ini = {
|
|
13582
|
+
/**
|
|
13583
|
+
* The component mimics the behavior of the Win32 API parser.
|
|
13584
|
+
*
|
|
13585
|
+
* @see {@link https://github.com/PrismJS/prism/issues/2775#issuecomment-787477723}
|
|
13586
|
+
*/
|
|
13518
13587
|
"comment": {
|
|
13519
13588
|
pattern: /(^[ \f \v]*)[#;].*/m,
|
|
13520
13589
|
lookbehind: true
|
|
@@ -13548,7 +13617,7 @@ languages.ini = {
|
|
|
13548
13617
|
"punctuation": /=/
|
|
13549
13618
|
};
|
|
13550
13619
|
//#endregion
|
|
13551
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13620
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/patterns-DSInPV_c.js
|
|
13552
13621
|
var clikeComment = /\/\/.*|\/\*[^]*?(?:\*\/|$)/g;
|
|
13553
13622
|
var clikeString = /(["'])(?:\\[^]|(?!\1)[^\\\n])*\1/g;
|
|
13554
13623
|
var clikeNumber = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i;
|
|
@@ -13556,7 +13625,7 @@ var clikePunctuation = /[()[\]{}.,:;]/;
|
|
|
13556
13625
|
var boolean = /\b(?:false|true)\b/;
|
|
13557
13626
|
var dotPunctuation = { "punctuation": /\./ };
|
|
13558
13627
|
//#endregion
|
|
13559
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13628
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/kotlin.js
|
|
13560
13629
|
var interpolationInside = {
|
|
13561
13630
|
"interpolation-punctuation": {
|
|
13562
13631
|
pattern: /^.\{?|\}$/g,
|
|
@@ -13611,13 +13680,13 @@ interpolationInside.expression.inside = languages.kts = languages.kt = languages
|
|
|
13611
13680
|
"punctuation": clikePunctuation
|
|
13612
13681
|
};
|
|
13613
13682
|
//#endregion
|
|
13614
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13683
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/xml-shared-ONZRGEwv.js
|
|
13615
13684
|
var entity = [{
|
|
13616
13685
|
pattern: /&[a-z\d]{1,8};/i,
|
|
13617
13686
|
alias: "named-entity"
|
|
13618
13687
|
}, /&#x?[a-f\d]{1,8};/i];
|
|
13619
13688
|
//#endregion
|
|
13620
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13689
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/xml.js
|
|
13621
13690
|
languages.rss = languages.atom = languages.ssml = languages.xml = {
|
|
13622
13691
|
"comment": /<!--(?:(?!<!--)[^])*?-->/g,
|
|
13623
13692
|
"prolog": /<\?[^]+?\?>/g,
|
|
@@ -13666,7 +13735,7 @@ languages.rss = languages.atom = languages.ssml = languages.xml = {
|
|
|
13666
13735
|
}
|
|
13667
13736
|
};
|
|
13668
13737
|
//#endregion
|
|
13669
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13738
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/markup.js
|
|
13670
13739
|
var addLang = (grammar, lang) => {
|
|
13671
13740
|
grammar["language-" + lang] = {
|
|
13672
13741
|
pattern: /[^]+/,
|
|
@@ -13695,7 +13764,7 @@ insertBefore(markup, "cdata", {
|
|
|
13695
13764
|
"script": addInlined("script", "javascript")
|
|
13696
13765
|
});
|
|
13697
13766
|
//#endregion
|
|
13698
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13767
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/r.js
|
|
13699
13768
|
languages.r = {
|
|
13700
13769
|
"comment": /#.*/,
|
|
13701
13770
|
"string": /(["'])(?:\\.|(?!\1)[^\\\n])*\1/g,
|
|
@@ -13711,7 +13780,7 @@ languages.r = {
|
|
|
13711
13780
|
"punctuation": /[()[\]{},;]/
|
|
13712
13781
|
};
|
|
13713
13782
|
//#endregion
|
|
13714
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13783
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/basic.js
|
|
13715
13784
|
languages.basic = {
|
|
13716
13785
|
"comment": {
|
|
13717
13786
|
pattern: /(?:!|rem\b).+/i,
|
|
@@ -13725,7 +13794,7 @@ languages.basic = {
|
|
|
13725
13794
|
"punctuation": /[(),:;]/
|
|
13726
13795
|
};
|
|
13727
13796
|
//#endregion
|
|
13728
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13797
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/vbnet.js
|
|
13729
13798
|
languages.vbnet = extend("basic", {
|
|
13730
13799
|
"comment": {
|
|
13731
13800
|
pattern: /(?:!|'|rem\b).*/i,
|
|
@@ -13739,7 +13808,7 @@ languages.vbnet = extend("basic", {
|
|
|
13739
13808
|
"punctuation": /[(){},:;]/
|
|
13740
13809
|
});
|
|
13741
13810
|
//#endregion
|
|
13742
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13811
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/c.js
|
|
13743
13812
|
var char = /'(?:\\[^]|[^\\\n']){0,32}'/g;
|
|
13744
13813
|
var comment = /\/\/(?:[^\\\n]|\\\n?)*|\/\*[^]*?(?:\*\/|$)/g;
|
|
13745
13814
|
var string$2 = /"(?:\\[^]|[^\\\n"])*"/g;
|
|
@@ -13789,7 +13858,7 @@ macroExpression.inside = languages.c = {
|
|
|
13789
13858
|
"punctuation": clikePunctuation
|
|
13790
13859
|
};
|
|
13791
13860
|
//#endregion
|
|
13792
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13861
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/opencl.js
|
|
13793
13862
|
insertBefore(languages.opencl = extend("c", {
|
|
13794
13863
|
"keyword": /\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,
|
|
13795
13864
|
"number": /(?:\b0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,
|
|
@@ -13829,7 +13898,7 @@ if (languages.cpp) {
|
|
|
13829
13898
|
insertBefore(languages.cpp, "keyword", attributes);
|
|
13830
13899
|
}
|
|
13831
13900
|
//#endregion
|
|
13832
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13901
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/diff.js
|
|
13833
13902
|
var diff = languages.diff = { "coord": /^(?:\*{3}|-{3}|\+{3}|\d).*$|^@@.*@@$/m };
|
|
13834
13903
|
/**
|
|
13835
13904
|
* A map from the name of a block to its line prefix.
|
|
@@ -13856,7 +13925,7 @@ for (var name$1 in PREFIXES) {
|
|
|
13856
13925
|
};
|
|
13857
13926
|
}
|
|
13858
13927
|
//#endregion
|
|
13859
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
13928
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/java.js
|
|
13860
13929
|
var keywords$1 = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|opens?|package|permits|private|protected|provides|public|record(?!\s*[()[\]{}%~.,:;?%&|^=<>/*+-])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throws?|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/;
|
|
13861
13930
|
var classNamePrefix = "(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*";
|
|
13862
13931
|
var namespace = {
|
|
@@ -13956,7 +14025,7 @@ languages.java = {
|
|
|
13956
14025
|
"punctuation": clikePunctuation
|
|
13957
14026
|
};
|
|
13958
14027
|
//#endregion
|
|
13959
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14028
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/less.js
|
|
13960
14029
|
insertBefore(languages.less = extend("css", {
|
|
13961
14030
|
"comment": clikeComment,
|
|
13962
14031
|
"atrule": {
|
|
@@ -13979,7 +14048,7 @@ insertBefore(languages.less = extend("css", {
|
|
|
13979
14048
|
alias: "function"
|
|
13980
14049
|
} });
|
|
13981
14050
|
//#endregion
|
|
13982
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14051
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/objectivec.js
|
|
13983
14052
|
languages.objc = languages.objectivec = extend("c", {
|
|
13984
14053
|
"string": /@?"(?:\\[^]|[^\\\n"])*"/g,
|
|
13985
14054
|
"keyword": /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int?|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,
|
|
@@ -13987,7 +14056,7 @@ languages.objc = languages.objectivec = extend("c", {
|
|
|
13987
14056
|
});
|
|
13988
14057
|
delete languages.objc["class-name"];
|
|
13989
14058
|
//#endregion
|
|
13990
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14059
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/ruby.js
|
|
13991
14060
|
var interpolationContent = { pattern: /[^]+/ };
|
|
13992
14061
|
var percentExpression = "(?:([^a-zA-Z\\d\\s{([<=])(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|\\((?:\\\\[\\s\\S]|[^\\\\()]|\\((?:\\\\[\\s\\S]|[^\\\\()])*\\))*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}]|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\})*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]]|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)*>)";
|
|
13993
14062
|
var symbolName = "(?:\"(?:\\\\.|[^\\\\\n\"])*\"|(?:\\b(?!\\d)\\w+|[^\\s\0-\\x7f]+)[?!]?|\\$.)";
|
|
@@ -14099,7 +14168,7 @@ interpolationContent.inside = languages.rb = languages.ruby = {
|
|
|
14099
14168
|
"punctuation": /[()[\]{}.,;]/
|
|
14100
14169
|
};
|
|
14101
14170
|
//#endregion
|
|
14102
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14171
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/sql.js
|
|
14103
14172
|
languages.sql = {
|
|
14104
14173
|
"comment": /\/\*[^]*?\*\/|(?:--|\/\/|#).*/,
|
|
14105
14174
|
"variable": /@(["'`])(?:\\[^]|(?!\1)[^\\])+\1|@[\w.$]+/g,
|
|
@@ -14120,7 +14189,7 @@ languages.sql = {
|
|
|
14120
14189
|
"punctuation": /[()[\].,;`]/
|
|
14121
14190
|
};
|
|
14122
14191
|
//#endregion
|
|
14123
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14192
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/wasm.js
|
|
14124
14193
|
languages.wasm = {
|
|
14125
14194
|
"comment": /\(;[^]*?;\)|;;.*/,
|
|
14126
14195
|
"string": /"(?:\\[^]|[^\\"])*"/g,
|
|
@@ -14140,7 +14209,7 @@ languages.wasm = {
|
|
|
14140
14209
|
"punctuation": /[()]/
|
|
14141
14210
|
};
|
|
14142
14211
|
//#endregion
|
|
14143
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14212
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/shared-oTKIFAwH.js
|
|
14144
14213
|
/**
|
|
14145
14214
|
* Creates a nested pattern where all occurrences of the string `<self>` are replaced with the pattern itself.
|
|
14146
14215
|
*
|
|
@@ -14169,7 +14238,7 @@ var replace$1 = (pattern, replacements) => pattern.replace(/<(\d+)>/g, (m, index
|
|
|
14169
14238
|
*/
|
|
14170
14239
|
var re = (pattern, replacements, flags) => RegExp(replace$1(pattern, replacements), flags);
|
|
14171
14240
|
//#endregion
|
|
14172
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14241
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/cpp.js
|
|
14173
14242
|
var keyword = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/;
|
|
14174
14243
|
var cpp = languages.cpp = extend("c", {
|
|
14175
14244
|
"class-name": [
|
|
@@ -14224,7 +14293,7 @@ insertBefore(cpp, "class-name", { "base-clause": {
|
|
|
14224
14293
|
} });
|
|
14225
14294
|
insertBefore(baseClauseInside, "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i });
|
|
14226
14295
|
//#endregion
|
|
14227
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14296
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/go.js
|
|
14228
14297
|
languages.go = {
|
|
14229
14298
|
"comment": clikeComment,
|
|
14230
14299
|
"char": /'(?:\\.|[^\\\n']){0,10}'/g,
|
|
@@ -14245,7 +14314,7 @@ languages.go = {
|
|
|
14245
14314
|
"builtin": /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/
|
|
14246
14315
|
};
|
|
14247
14316
|
//#endregion
|
|
14248
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14317
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/javascript.js
|
|
14249
14318
|
var maybeClassName = { "maybe-class-name": /^[A-Z].*/ };
|
|
14250
14319
|
languages.js = languages.javascript = {
|
|
14251
14320
|
"doc-comment": {
|
|
@@ -14368,7 +14437,7 @@ languages.js = languages.javascript = {
|
|
|
14368
14437
|
"punctuation": /\?\.|[()[\]{}.,:;]/
|
|
14369
14438
|
};
|
|
14370
14439
|
//#endregion
|
|
14371
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14440
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/templating-BJaqFF_t.js
|
|
14372
14441
|
var embeddedIn = (hostGrammar) => (code, templateGrammar) => {
|
|
14373
14442
|
var host = resolve(hostGrammar);
|
|
14374
14443
|
var hostCode = "";
|
|
@@ -14424,7 +14493,7 @@ var embeddedIn = (hostGrammar) => (code, templateGrammar) => {
|
|
|
14424
14493
|
return walkTokens(host ? tokenizeText(hostCode, host) : [hostCode]);
|
|
14425
14494
|
};
|
|
14426
14495
|
//#endregion
|
|
14427
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14496
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/js-templates.js
|
|
14428
14497
|
var js = languages.js;
|
|
14429
14498
|
var templateString = js["template-string"];
|
|
14430
14499
|
var templateLiteralPattern = templateString.pattern.source;
|
|
@@ -14478,7 +14547,7 @@ js["template-string"] = [
|
|
|
14478
14547
|
templateString
|
|
14479
14548
|
];
|
|
14480
14549
|
//#endregion
|
|
14481
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14550
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/jsx-shared-CZGNsLLj.js
|
|
14482
14551
|
var space = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/";
|
|
14483
14552
|
var braces = "\\{(?:[^{}]|\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})*\\})*\\}";
|
|
14484
14553
|
/**
|
|
@@ -14567,10 +14636,10 @@ var addJsxTag = (grammar, name) => {
|
|
|
14567
14636
|
return grammar;
|
|
14568
14637
|
};
|
|
14569
14638
|
//#endregion
|
|
14570
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14639
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/jsx.js
|
|
14571
14640
|
addJsxTag(languages.js, "jsx");
|
|
14572
14641
|
//#endregion
|
|
14573
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14642
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/lua.js
|
|
14574
14643
|
languages.lua = {
|
|
14575
14644
|
"comment": /^#!.+|--(?:\[(=*)\[[^]*?\]\1\]|.*)/m,
|
|
14576
14645
|
"string": /(["'])(?:(?!\1)[^\\\n]|\\z\s|\\[^z])*\1|\[(=*)\[[^]*?\]\2\]/g,
|
|
@@ -14584,7 +14653,7 @@ languages.lua = {
|
|
|
14584
14653
|
"punctuation": /[()[\]{},;]|\.+|:+/
|
|
14585
14654
|
};
|
|
14586
14655
|
//#endregion
|
|
14587
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14656
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/perl.js
|
|
14588
14657
|
var brackets = "(?:\\((?:\\\\[\\s\\S]|[^\\\\()])*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)";
|
|
14589
14658
|
var a = `(?![a-zA-Z\\d])\\s*(?:([^\\sa-zA-Z\\d{([<])(?:\\\\[^]|(?!\\1)[^\\\\])*\\1|([a-zA-Z\\d])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2|${brackets})`;
|
|
14590
14659
|
languages.perl = {
|
|
@@ -14619,7 +14688,7 @@ languages.perl = {
|
|
|
14619
14688
|
"punctuation": /[()[\]{},:;]/
|
|
14620
14689
|
};
|
|
14621
14690
|
//#endregion
|
|
14622
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14691
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/python.js
|
|
14623
14692
|
var inside = {
|
|
14624
14693
|
"format-spec": {
|
|
14625
14694
|
pattern: /(:)[^(){}:]+(?=\}$)/,
|
|
@@ -14670,7 +14739,7 @@ inside[rest] = languages.py = languages.python = {
|
|
|
14670
14739
|
"punctuation": clikePunctuation
|
|
14671
14740
|
};
|
|
14672
14741
|
//#endregion
|
|
14673
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14742
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/rust.js
|
|
14674
14743
|
var multilineComment = nested("/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", 2);
|
|
14675
14744
|
var string$1 = /b?"(?:\\[^]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/g;
|
|
14676
14745
|
var paramsInside = { "closure-punctuation": {
|
|
@@ -14739,7 +14808,7 @@ paramsInside[rest] = languages.rust = {
|
|
|
14739
14808
|
"operator": /&&|\|\||=>|>>=?|<<=?|[%&|^!=<>/*+-]=?|[@?]/
|
|
14740
14809
|
};
|
|
14741
14810
|
//#endregion
|
|
14742
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14811
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/swift.js
|
|
14743
14812
|
var swift = languages.swift = {
|
|
14744
14813
|
"comment": /\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//g,
|
|
14745
14814
|
"string-literal": [{
|
|
@@ -14827,14 +14896,14 @@ swift["string-literal"].forEach((rule) => {
|
|
|
14827
14896
|
rule.inside["interpolation"].inside = swift;
|
|
14828
14897
|
});
|
|
14829
14898
|
//#endregion
|
|
14830
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14899
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/clike-class-CXD3NFPG.js
|
|
14831
14900
|
var clikeClass = () => ({
|
|
14832
14901
|
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\\\w.]+/i,
|
|
14833
14902
|
lookbehind: true,
|
|
14834
14903
|
inside: { "punctuation": /[\\.]/ }
|
|
14835
14904
|
});
|
|
14836
14905
|
//#endregion
|
|
14837
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14906
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/clike.js
|
|
14838
14907
|
languages.clike = {
|
|
14839
14908
|
"comment": clikeComment,
|
|
14840
14909
|
"string": clikeString,
|
|
@@ -14847,7 +14916,7 @@ languages.clike = {
|
|
|
14847
14916
|
"punctuation": clikePunctuation
|
|
14848
14917
|
};
|
|
14849
14918
|
//#endregion
|
|
14850
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
14919
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/csharp.js
|
|
14851
14920
|
var keywordsToPattern = (words) => `\\b(?:${words})\\b`;
|
|
14852
14921
|
var typeKeyword = "bool|char|decimal|double|dynamic|float|object|s?byte|string|u?int|u?long|u?short|var|void";
|
|
14853
14922
|
var typeDeclarationKeyword = "class|enum|interface|record|struct";
|
|
@@ -15076,7 +15145,7 @@ languages.dotnet = languages.cs = languages.csharp = {
|
|
|
15076
15145
|
"punctuation": /\?\.?|::|[()[\]{}.,:;]/
|
|
15077
15146
|
};
|
|
15078
15147
|
//#endregion
|
|
15079
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
15148
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/graphql.js
|
|
15080
15149
|
languages.graphql = {
|
|
15081
15150
|
"comment": /#.*/,
|
|
15082
15151
|
"description": {
|
|
@@ -15203,7 +15272,7 @@ languages.graphql = {
|
|
|
15203
15272
|
}
|
|
15204
15273
|
};
|
|
15205
15274
|
//#endregion
|
|
15206
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
15275
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/json.js
|
|
15207
15276
|
languages.webmanifest = languages.json = {
|
|
15208
15277
|
"property": /"(?:\\.|[^\\\n"])*"(?=\s*:)/g,
|
|
15209
15278
|
"string": /"(?:\\.|[^\\\n"])*"/g,
|
|
@@ -15218,7 +15287,7 @@ languages.webmanifest = languages.json = {
|
|
|
15218
15287
|
}
|
|
15219
15288
|
};
|
|
15220
15289
|
//#endregion
|
|
15221
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
15290
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/makefile.js
|
|
15222
15291
|
languages.makefile = {
|
|
15223
15292
|
"comment": /#(?:\\[^]|[^\\\n])*/,
|
|
15224
15293
|
"string": clikeString,
|
|
@@ -15241,7 +15310,7 @@ languages.makefile = {
|
|
|
15241
15310
|
"punctuation": /[:;(){}]/
|
|
15242
15311
|
};
|
|
15243
15312
|
//#endregion
|
|
15244
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
15313
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/scss.js
|
|
15245
15314
|
var variable = /\$[-\w]+|#\{\$[-\w]+\}/;
|
|
15246
15315
|
var scss = languages.scss = extend("css", {
|
|
15247
15316
|
"comment": clikeComment,
|
|
@@ -15298,7 +15367,7 @@ insertBefore(scss, "function", {
|
|
|
15298
15367
|
}
|
|
15299
15368
|
});
|
|
15300
15369
|
//#endregion
|
|
15301
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
15370
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/typescript.js
|
|
15302
15371
|
var className = {
|
|
15303
15372
|
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\d)(?:(?!\s)[$\w\xa0-\uffff])+(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/g,
|
|
15304
15373
|
lookbehind: true
|
|
@@ -15335,7 +15404,7 @@ insertBefore(ts, "constant", {
|
|
|
15335
15404
|
}
|
|
15336
15405
|
});
|
|
15337
15406
|
//#endregion
|
|
15338
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
15407
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/tsx.js
|
|
15339
15408
|
var tsx = addJsxTag(languages.ts, "tsx");
|
|
15340
15409
|
var tag$1 = tsx["tag"];
|
|
15341
15410
|
var bracket = "(?:^|(";
|
|
@@ -15352,7 +15421,7 @@ insertBefore(tag$1.inside, "attr-value", { "generic": {
|
|
|
15352
15421
|
inside: tsx["class-name"].inside
|
|
15353
15422
|
} });
|
|
15354
15423
|
//#endregion
|
|
15355
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
15424
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/yaml.js
|
|
15356
15425
|
var anchorOrAlias = /[*&][^\s[\]{},]+/;
|
|
15357
15426
|
var tag = /!(?:<[\w%#;/?:@&=$,.!~*'()[\]+-]+>|(?:[a-zA-Z\d-]*!)?[\w%#;/?:@&=$.~*'()+-]+)?/;
|
|
15358
15427
|
var properties = `(?:${tag.source}(?:[ ]+${anchorOrAlias.source})?|${anchorOrAlias.source}(?:[ ]+${tag.source})?)`;
|
|
@@ -15408,7 +15477,7 @@ languages.yml = languages.yaml = {
|
|
|
15408
15477
|
"punctuation": /---|[:[\]{},|>?-]|\.{3}/
|
|
15409
15478
|
};
|
|
15410
15479
|
//#endregion
|
|
15411
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
15480
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/prism/languages/regex.js
|
|
15412
15481
|
var specialEscape = {
|
|
15413
15482
|
pattern: /\\[\\()[\]{}^$+*?|.]/,
|
|
15414
15483
|
alias: "escape"
|
|
@@ -15490,7 +15559,7 @@ languages.regex = {
|
|
|
15490
15559
|
}
|
|
15491
15560
|
};
|
|
15492
15561
|
//#endregion
|
|
15493
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
15562
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/core-fngiDtt5.js
|
|
15494
15563
|
/**
|
|
15495
15564
|
* Creates a code editor using the specified container and options.
|
|
15496
15565
|
* @param container Element to append the editor to or a selector.
|
|
@@ -15659,7 +15728,7 @@ var createEditor = (container, options, ...extensions) => {
|
|
|
15659
15728
|
updateClassName();
|
|
15660
15729
|
});
|
|
15661
15730
|
addListener(textarea, "selectionchange", (e) => {
|
|
15662
|
-
dispatchSelection();
|
|
15731
|
+
dispatchSelection(!e.isTrusted);
|
|
15663
15732
|
preventDefault(e);
|
|
15664
15733
|
});
|
|
15665
15734
|
getElement(container)?.append(scrollContainer);
|
|
@@ -15697,7 +15766,7 @@ var preventDefault = (e) => {
|
|
|
15697
15766
|
var selectionChange;
|
|
15698
15767
|
if (doc) addListener(doc, "selectionchange", () => selectionChange?.());
|
|
15699
15768
|
//#endregion
|
|
15700
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
15769
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/utils-umP5W0OV.js
|
|
15701
15770
|
var scrollToEl = (editor, el, paddingTop = 0) => {
|
|
15702
15771
|
const style = editor.container.style;
|
|
15703
15772
|
style.setProperty("--_sp", "var(--pce-scroll-padding, 2ch)");
|
|
@@ -15708,7 +15777,11 @@ var scrollToEl = (editor, el, paddingTop = 0) => {
|
|
|
15708
15777
|
};
|
|
15709
15778
|
var getLineStart = (text, position) => position ? text.lastIndexOf("\n", position - 1) + 1 : 0;
|
|
15710
15779
|
var getLineEnd = (text, position) => (position = text.indexOf("\n", position)) + 1 ? position : text.length;
|
|
15711
|
-
var
|
|
15780
|
+
var addListener2 = (element, type, listener, options) => {
|
|
15781
|
+
addListener(element, type, listener, options);
|
|
15782
|
+
return () => element.removeEventListener(type, listener, options);
|
|
15783
|
+
};
|
|
15784
|
+
var addTextareaListener = (editor, type, listener, options) => addListener2(editor.textarea, type, listener, options);
|
|
15712
15785
|
var getStyleValue = (el, prop) => parseFloat(getComputedStyle(el)[prop]);
|
|
15713
15786
|
var getPosition = (editor, el) => {
|
|
15714
15787
|
const rect1 = el.getBoundingClientRect();
|
|
@@ -15839,17 +15912,14 @@ var insertText = (editor, text, start, end, newCursorStart, newCursorEnd) => {
|
|
|
15839
15912
|
* @param direction New direction.
|
|
15840
15913
|
*/
|
|
15841
15914
|
var setSelection = (editor, start, end = start, direction) => {
|
|
15842
|
-
let focused = editor.focused;
|
|
15843
15915
|
let textarea = editor.textarea;
|
|
15844
|
-
let
|
|
15845
|
-
|
|
15846
|
-
|
|
15847
|
-
|
|
15848
|
-
}, { once: true });
|
|
15849
|
-
textarea.focus();
|
|
15850
|
-
}
|
|
15916
|
+
let removeHandler = addListener2(textarea, "focus", (e) => {
|
|
15917
|
+
let target = e.relatedTarget;
|
|
15918
|
+
target ? target.focus() : textarea.blur();
|
|
15919
|
+
});
|
|
15851
15920
|
textarea.setSelectionRange(start, end, direction);
|
|
15852
|
-
|
|
15921
|
+
removeHandler();
|
|
15922
|
+
textarea.dispatchEvent(new Event("selectionchange"));
|
|
15853
15923
|
};
|
|
15854
15924
|
var userAgent = doc ? navigator.userAgent : "";
|
|
15855
15925
|
/** Whether the user is on an Apple-based system. */
|
|
@@ -15870,12 +15940,15 @@ var isWebKit = !isChrome && /AppleWebKit\//.test(userAgent);
|
|
|
15870
15940
|
*/
|
|
15871
15941
|
var getModifierCode = (e) => e.altKey + e.ctrlKey * 2 + e.metaKey * 4 + e.shiftKey * 8;
|
|
15872
15942
|
//#endregion
|
|
15873
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
15874
|
-
var ignoreTab = false;
|
|
15943
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/utils-DSQ-ulqQ.js
|
|
15875
15944
|
var mod = isMac ? 4 : 2;
|
|
15945
|
+
//#endregion
|
|
15946
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/commands-HRCav5fj.js
|
|
15947
|
+
var ignoreTab = false;
|
|
15876
15948
|
/**
|
|
15877
|
-
* Sets whether editors should ignore tab or use it for indentation.
|
|
15878
|
-
*
|
|
15949
|
+
* Sets whether editors should ignore tab or use it for indentation. Users can toggle
|
|
15950
|
+
* this using `Ctrl` + `M` / `Ctrl` + `Shift` + `M` (Mac) when the {@link defaultKeymap}
|
|
15951
|
+
* or {@link defaultCommands} extension is used.
|
|
15879
15952
|
*/
|
|
15880
15953
|
var setIgnoreTab = (newState) => ignoreTab = newState;
|
|
15881
15954
|
var whitespaceEnd = (str) => str.search(/\S|$/);
|
|
@@ -15883,10 +15956,6 @@ var whitespaceEnd = (str) => str.search(/\S|$/);
|
|
|
15883
15956
|
* Extension that will add automatic indentation and closing of brackets, quotes, and
|
|
15884
15957
|
* tags along with the commands presented later.
|
|
15885
15958
|
*
|
|
15886
|
-
* The shortcuts for the commands are not easily customizable. If you want to customize
|
|
15887
|
-
* them, you can copy the {@link https://github.com/jonpyt/prism-code-editor/blob/main/package/src/extensions/commands.ts|source}
|
|
15888
|
-
* and change the conditions.
|
|
15889
|
-
*
|
|
15890
15959
|
* ## Commands
|
|
15891
15960
|
*
|
|
15892
15961
|
* Here, `Mod` refers to `Cmd` on Mac and `Ctrl` otherwise.
|
|
@@ -15914,6 +15983,9 @@ var whitespaceEnd = (str) => str.search(/\S|$/);
|
|
|
15914
15983
|
* @param selfCloseRegex Regex controlling whether or not a bracket/quote should
|
|
15915
15984
|
* automatically close based on the character before and after the cursor.
|
|
15916
15985
|
* Defaults to ``/([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s``.
|
|
15986
|
+
*
|
|
15987
|
+
* @deprecated Consider using {@link editorCommands} instead. This will be removed in next
|
|
15988
|
+
* major release.
|
|
15917
15989
|
*/
|
|
15918
15990
|
var defaultCommands = (selfClosePairs = [
|
|
15919
15991
|
"\"\"",
|
|
@@ -15922,203 +15994,207 @@ var defaultCommands = (selfClosePairs = [
|
|
|
15922
15994
|
"()",
|
|
15923
15995
|
"[]",
|
|
15924
15996
|
"{}"
|
|
15925
|
-
], selfCloseRegex = /([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s) =>
|
|
15926
|
-
|
|
15927
|
-
|
|
15928
|
-
|
|
15929
|
-
|
|
15930
|
-
|
|
15931
|
-
|
|
15932
|
-
|
|
15933
|
-
|
|
15934
|
-
|
|
15935
|
-
|
|
15936
|
-
|
|
15937
|
-
|
|
15938
|
-
|
|
15939
|
-
|
|
15940
|
-
|
|
15941
|
-
|
|
15942
|
-
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
|
|
15948
|
-
|
|
15949
|
-
|
|
15950
|
-
|
|
15951
|
-
|
|
15952
|
-
|
|
15953
|
-
|
|
15954
|
-
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
};
|
|
15958
|
-
const indent = (outdent, lines, start1, end1, start, end, indentChar, tabSize) => {
|
|
15959
|
-
insertLines(lines, lines.map(outdent ? (str) => str.slice(whitespaceEnd(str) ? tabSize - whitespaceEnd(str) % tabSize : 0) : (str) => str && indentChar.repeat(tabSize - whitespaceEnd(str) % tabSize) + str), start1, end1, start, end);
|
|
15960
|
-
};
|
|
15961
|
-
inputCommandMap["<"] = (_e, selection, value) => selfClose(selection, "<>", value, true);
|
|
15962
|
-
selfClosePairs.forEach(([open, close]) => {
|
|
15963
|
-
const isQuote = open == close;
|
|
15964
|
-
inputCommandMap[open] = (_e, selection, value) => (isQuote && skipIfEqual(selection, close, value) || selfClose(selection, open + close, value)) && scroll();
|
|
15965
|
-
if (!isQuote) inputCommandMap[close] = (_e, selection, value) => skipIfEqual(selection, close, value) && scroll();
|
|
15966
|
-
});
|
|
15967
|
-
inputCommandMap[">"] = (e, selection, value) => {
|
|
15968
|
-
const closingTag = languageMap[getLanguage(editor)]?.autoCloseTags?.(selection, value, editor);
|
|
15969
|
-
if (closingTag) {
|
|
15970
|
-
insertText(editor, ">" + closingTag, null, null, selection[0] + 1);
|
|
15971
|
-
preventDefault(e);
|
|
15972
|
-
}
|
|
15973
|
-
};
|
|
15974
|
-
keyCommandMap.Tab = (e, [start, end], value) => {
|
|
15975
|
-
if (ignoreTab || options.readOnly || getModifierCode(e) & 6) return;
|
|
15976
|
-
const [indentChar, tabSize] = getIndent(options);
|
|
15977
|
-
const shiftKey = e.shiftKey;
|
|
15978
|
-
const [lines, start1, end1] = getLines(value, start, end);
|
|
15979
|
-
if (start < end || shiftKey) indent(shiftKey, lines, start1, end1, start, end, indentChar, tabSize);
|
|
15980
|
-
else insertText(editor, indentChar.repeat(tabSize - (start - start1) % tabSize));
|
|
15981
|
-
return scroll();
|
|
15982
|
-
};
|
|
15983
|
-
keyCommandMap.Enter = (e, selection, value) => {
|
|
15984
|
-
const code = getModifierCode(e) & 7;
|
|
15985
|
-
if (!code || code == mod) {
|
|
15986
|
-
if (code) selection[0] = selection[1] = getLines(value, selection[1])[2];
|
|
15987
|
-
const [indentChar, tabSize] = getIndent();
|
|
15988
|
-
const [start, end] = selection;
|
|
15989
|
-
const autoIndent = languageMap[getLanguage(editor)]?.autoIndent;
|
|
15990
|
-
const indenationCount = Math.floor(whitespaceEnd(getLineBefore(value, start)) / tabSize) * tabSize;
|
|
15991
|
-
const extraIndent = autoIndent?.[0]?.(selection, value, editor) ? tabSize : 0;
|
|
15992
|
-
const extraLine = autoIndent?.[1]?.(selection, value, editor);
|
|
15993
|
-
const newText = "\n" + indentChar.repeat(indenationCount + extraIndent) + (extraLine ? "\n" + indentChar.repeat(indenationCount) : "");
|
|
15994
|
-
if (newText[1] || value[end]) {
|
|
15995
|
-
insertText(editor, newText, start, end, start + indenationCount + extraIndent + 1);
|
|
15996
|
-
return scroll();
|
|
15997
|
-
}
|
|
15998
|
-
}
|
|
15999
|
-
};
|
|
16000
|
-
keyCommandMap.Backspace = (_e, [start, end], value) => {
|
|
16001
|
-
if (start == end) {
|
|
16002
|
-
const line = getLineBefore(value, start);
|
|
16003
|
-
const tabSize = options.tabSize || 2;
|
|
16004
|
-
const isPair = selfClosePairs.includes(value.slice(start - 1, start + 1));
|
|
16005
|
-
const indenationCount = /[^ ]/.test(line) ? 0 : (line.length - 1) % tabSize + 1;
|
|
16006
|
-
if (isPair || indenationCount > 1) {
|
|
16007
|
-
insertText(editor, "", start - (isPair ? 1 : indenationCount), start + isPair);
|
|
16008
|
-
return scroll();
|
|
15997
|
+
], selfCloseRegex = /([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s) => {
|
|
15998
|
+
return (editor, options) => {
|
|
15999
|
+
let prevCopy;
|
|
16000
|
+
const { keyCommandMap, inputCommandMap, getSelection, container } = editor;
|
|
16001
|
+
const clipboard = navigator.clipboard;
|
|
16002
|
+
const getIndent = ({ insertSpaces = true, tabSize } = options) => [insertSpaces ? " " : " ", insertSpaces ? tabSize || 2 : 1];
|
|
16003
|
+
const scroll = () => !options.readOnly && !editor.extensions.cursor?.scrollIntoView();
|
|
16004
|
+
/**
|
|
16005
|
+
* Automatically closes quotes and brackets if text is selected,
|
|
16006
|
+
* or if the character before and after the cursor matches a regex
|
|
16007
|
+
* @param wrapOnly If true, the character will only be closed if text is selected.
|
|
16008
|
+
*/
|
|
16009
|
+
const selfClose = ([start, end], [open, close], value, wrapOnly) => (start < end || !wrapOnly && selfCloseRegex.test((value[end - 1] || " ") + open + (value[end] || " "))) && !insertText(editor, open + value.slice(start, end) + close, null, null, start + 1, end + 1);
|
|
16010
|
+
const skipIfEqual = ([start, end], char, value) => start == end && value[end] == char && !setSelection(editor, start + 1);
|
|
16011
|
+
/**
|
|
16012
|
+
* Inserts slightly altered lines while keeping the same selection.
|
|
16013
|
+
* Used when toggling comments and indenting.
|
|
16014
|
+
*/
|
|
16015
|
+
const insertLines = (old, newL, start, end, selectionStart, selectionEnd) => {
|
|
16016
|
+
let newLines = newL.join("\n");
|
|
16017
|
+
if (newLines != old.join("\n")) {
|
|
16018
|
+
const last = old.length - 1;
|
|
16019
|
+
const lastLine = newL[last];
|
|
16020
|
+
const oldLastLine = old[last];
|
|
16021
|
+
const lastDiff = oldLastLine.length - lastLine.length;
|
|
16022
|
+
const firstDiff = newL[0].length - old[0].length;
|
|
16023
|
+
const firstInsersion = start + whitespaceEnd((firstDiff < 0 ? newL : old)[0]);
|
|
16024
|
+
const lastInsersion = end - oldLastLine.length + whitespaceEnd(lastDiff > 0 ? lastLine : oldLastLine);
|
|
16025
|
+
const offset = start - end + newLines.length + lastDiff;
|
|
16026
|
+
const newCursorStart = firstInsersion > selectionStart ? selectionStart : Math.max(firstInsersion, selectionStart + firstDiff);
|
|
16027
|
+
const newCursorEnd = selectionEnd + start - end + newLines.length;
|
|
16028
|
+
insertText(editor, newLines, start, end, newCursorStart, selectionEnd < lastInsersion ? newCursorEnd + lastDiff : Math.max(lastInsersion + offset, newCursorEnd));
|
|
16009
16029
|
}
|
|
16010
|
-
}
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
|
|
16014
|
-
|
|
16015
|
-
|
|
16016
|
-
const
|
|
16017
|
-
|
|
16018
|
-
|
|
16019
|
-
|
|
16020
|
-
|
|
16021
|
-
|
|
16022
|
-
|
|
16030
|
+
};
|
|
16031
|
+
const indent = (outdent, lines, start1, end1, start, end, indentChar, tabSize) => {
|
|
16032
|
+
insertLines(lines, lines.map(outdent ? (str) => str.slice(whitespaceEnd(str) ? tabSize - whitespaceEnd(str) % tabSize : 0) : (str) => str && indentChar.repeat(tabSize - whitespaceEnd(str) % tabSize) + str), start1, end1, start, end);
|
|
16033
|
+
};
|
|
16034
|
+
inputCommandMap["<"] = (_e, selection, value) => selfClose(selection, "<>", value, true);
|
|
16035
|
+
selfClosePairs.forEach(([open, close]) => {
|
|
16036
|
+
const isQuote = open == close;
|
|
16037
|
+
inputCommandMap[open] = (_e, selection, value) => (isQuote && skipIfEqual(selection, close, value) || selfClose(selection, open + close, value)) && scroll();
|
|
16038
|
+
if (!isQuote) inputCommandMap[close] = (_e, selection, value) => skipIfEqual(selection, close, value) && scroll();
|
|
16039
|
+
});
|
|
16040
|
+
inputCommandMap[">"] = (e, selection, value) => {
|
|
16041
|
+
const closingTag = languageMap[getLanguage(editor)]?.autoCloseTags?.(selection, value, editor);
|
|
16042
|
+
if (closingTag) {
|
|
16043
|
+
insertText(editor, ">" + closingTag, null, null, selection[0] + 1);
|
|
16044
|
+
preventDefault(e);
|
|
16023
16045
|
}
|
|
16024
|
-
|
|
16025
|
-
|
|
16046
|
+
};
|
|
16047
|
+
keyCommandMap.Tab = (e, [start, end], value) => {
|
|
16048
|
+
if (ignoreTab || options.readOnly || getModifierCode(e) & 7) return;
|
|
16049
|
+
const [indentChar, tabSize] = getIndent();
|
|
16050
|
+
const shiftKey = e.shiftKey;
|
|
16026
16051
|
const [lines, start1, end1] = getLines(value, start, end);
|
|
16027
|
-
|
|
16028
|
-
|
|
16029
|
-
insertText(editor, str + "\n" + str, start1, end1, start + offset, end + offset);
|
|
16052
|
+
if (start < end || shiftKey) indent(shiftKey, lines, start1, end1, start, end, indentChar, tabSize);
|
|
16053
|
+
else insertText(editor, indentChar.repeat(tabSize - (start - start1) % tabSize));
|
|
16030
16054
|
return scroll();
|
|
16031
|
-
}
|
|
16032
|
-
|
|
16033
|
-
|
|
16034
|
-
|
|
16035
|
-
|
|
16036
|
-
|
|
16037
|
-
|
|
16038
|
-
|
|
16039
|
-
|
|
16040
|
-
|
|
16041
|
-
|
|
16042
|
-
|
|
16043
|
-
|
|
16044
|
-
|
|
16045
|
-
|
|
16046
|
-
|
|
16047
|
-
|
|
16048
|
-
|
|
16049
|
-
|
|
16050
|
-
|
|
16051
|
-
|
|
16052
|
-
|
|
16053
|
-
|
|
16054
|
-
|
|
16055
|
-
|
|
16056
|
-
|
|
16055
|
+
};
|
|
16056
|
+
keyCommandMap.Enter = (e, selection, value) => {
|
|
16057
|
+
const code = getModifierCode(e) & 7;
|
|
16058
|
+
if (!code || code == mod) {
|
|
16059
|
+
if (code) selection[0] = selection[1] = getLines(value, selection[1])[2];
|
|
16060
|
+
const [indentChar, tabSize] = getIndent();
|
|
16061
|
+
const [start, end] = selection;
|
|
16062
|
+
const autoIndent = languageMap[getLanguage(editor, start)]?.autoIndent;
|
|
16063
|
+
const indenationCount = Math.floor(whitespaceEnd(getLineBefore(value, start)) / tabSize) * tabSize;
|
|
16064
|
+
const extraIndent = autoIndent?.[0]?.(selection, value, editor) ? tabSize : 0;
|
|
16065
|
+
const extraLine = autoIndent?.[1]?.(selection, value, editor);
|
|
16066
|
+
const newText = "\n" + indentChar.repeat(indenationCount + extraIndent) + (extraLine ? "\n" + indentChar.repeat(indenationCount) : "");
|
|
16067
|
+
if (newText[1] || value[end]) {
|
|
16068
|
+
insertText(editor, newText, start, end, start + indenationCount + extraIndent + 1);
|
|
16069
|
+
return scroll();
|
|
16070
|
+
}
|
|
16071
|
+
}
|
|
16072
|
+
};
|
|
16073
|
+
keyCommandMap.Backspace = (_e, [start, end], value) => {
|
|
16074
|
+
if (start == end) {
|
|
16075
|
+
const line = getLineBefore(value, start);
|
|
16076
|
+
const tabSize = options.tabSize || 2;
|
|
16077
|
+
const isPair = selfClosePairs.includes(value.slice(start - 1, start + 1));
|
|
16078
|
+
const indenationCount = /[^ ]/.test(line) ? 0 : (line.length - 1) % tabSize + 1;
|
|
16079
|
+
if (isPair || indenationCount > 1) {
|
|
16080
|
+
insertText(editor, "", start - (isPair ? 1 : indenationCount), start + isPair);
|
|
16081
|
+
return scroll();
|
|
16082
|
+
}
|
|
16083
|
+
}
|
|
16084
|
+
};
|
|
16085
|
+
for (let i = 0; i < 2; i++) keyCommandMap[i ? "ArrowDown" : "ArrowUp"] = (e, [start, end], value) => {
|
|
16086
|
+
const code = getModifierCode(e);
|
|
16087
|
+
if (code == 1) {
|
|
16088
|
+
const newStart = i ? start : getLineStart(value, start) - 1;
|
|
16089
|
+
const newEnd = i ? value.indexOf("\n", end) + 1 : end;
|
|
16090
|
+
if (newStart > -1 && newEnd > 0) {
|
|
16091
|
+
const [lines, start1, end1] = getLines(value, newStart, newEnd);
|
|
16092
|
+
const line = lines[i ? "pop" : "shift"]();
|
|
16093
|
+
const offset = (line.length + 1) * (i ? 1 : -1);
|
|
16094
|
+
lines[i ? "unshift" : "push"](line);
|
|
16095
|
+
insertText(editor, lines.join("\n"), start1, end1, start + offset, end + offset);
|
|
16096
|
+
}
|
|
16097
|
+
return scroll();
|
|
16098
|
+
} else if (code == 9) {
|
|
16099
|
+
const [lines, start1, end1] = getLines(value, start, end);
|
|
16100
|
+
const str = lines.join("\n");
|
|
16101
|
+
const offset = i ? str.length + 1 : 0;
|
|
16102
|
+
insertText(editor, str + "\n" + str, start1, end1, start + offset, end + offset);
|
|
16103
|
+
return scroll();
|
|
16104
|
+
} else if (code == 2 && !isMac) {
|
|
16105
|
+
container.scrollBy(0, getStyleValue(container, "lineHeight") * (i ? 1 : -1));
|
|
16106
|
+
return true;
|
|
16107
|
+
}
|
|
16108
|
+
};
|
|
16109
|
+
addTextareaListener(editor, "keydown", (e) => {
|
|
16110
|
+
const code = getModifierCode(e);
|
|
16111
|
+
const keyCode = e.keyCode;
|
|
16112
|
+
const [start, end, dir] = getSelection();
|
|
16113
|
+
if (code == mod && (keyCode == 221 || keyCode == 219)) {
|
|
16114
|
+
indent(keyCode == 219, ...getLines(editor.value, start, end), start, end, ...getIndent());
|
|
16115
|
+
scroll();
|
|
16116
|
+
preventDefault(e);
|
|
16117
|
+
} else if (code == (isMac ? 10 : 2) && keyCode == 77) {
|
|
16118
|
+
setIgnoreTab(!ignoreTab);
|
|
16119
|
+
preventDefault(e);
|
|
16120
|
+
} else if (keyCode == 191 && code == mod || keyCode == 65 && code == 9) {
|
|
16121
|
+
const value = editor.value;
|
|
16122
|
+
const isBlock = code == 9;
|
|
16123
|
+
const position = isBlock ? start : getLineStart(value, start);
|
|
16124
|
+
const language = languageMap[getLanguage(editor, position)] || {};
|
|
16125
|
+
const { line, block } = language.getComments?.(editor, position, value) || language.comments || {};
|
|
16126
|
+
const [lines, start1, end1] = getLines(value, start, end);
|
|
16127
|
+
const last = lines.length - 1;
|
|
16128
|
+
if (isBlock) {
|
|
16129
|
+
if (block) {
|
|
16130
|
+
const [open, close] = block;
|
|
16131
|
+
const text = value.slice(start, end);
|
|
16132
|
+
const pos = value.slice(0, start).search(regexEscape(open) + " ?$");
|
|
16133
|
+
if (pos + 1 && RegExp("^ ?" + regexEscape(close)).test(value.slice(end))) insertText(editor, text, pos, end + (value[end] == " ") + close.length, pos, pos + end - start);
|
|
16134
|
+
else insertText(editor, `${open} ${text} ${close}`, start, end, start + open.length + 1, end + open.length + 1);
|
|
16135
|
+
scroll();
|
|
16136
|
+
preventDefault(e);
|
|
16137
|
+
}
|
|
16138
|
+
} else if (line) {
|
|
16139
|
+
const escaped = regexEscape(line);
|
|
16140
|
+
const regex = RegExp(`^\\s*(${escaped} ?|$)`);
|
|
16141
|
+
const regex2 = RegExp(escaped + " ?");
|
|
16142
|
+
const allWhiteSpace = !/\S/.test(value.slice(start1, end1));
|
|
16143
|
+
insertLines(lines, lines.map(!allWhiteSpace && lines.every((line) => regex.test(line)) ? (str) => str.replace(regex2, "") : (str) => allWhiteSpace || /\S/.test(str) ? str.replace(/(?!\s)/, line + " ") : str), start1, end1, start, end);
|
|
16144
|
+
scroll();
|
|
16145
|
+
preventDefault(e);
|
|
16146
|
+
} else if (block) {
|
|
16057
16147
|
const [open, close] = block;
|
|
16058
|
-
const
|
|
16059
|
-
const
|
|
16060
|
-
const
|
|
16061
|
-
|
|
16062
|
-
|
|
16148
|
+
const first = lines[0];
|
|
16149
|
+
const insertionPoint = whitespaceEnd(first);
|
|
16150
|
+
const hasComment = first.startsWith(open, insertionPoint) && lines[last].endsWith(close);
|
|
16151
|
+
lines[0] = first.replace(hasComment ? RegExp(regexEscape(open) + " ?") : /(?!\s)/, hasComment ? "" : open + " ");
|
|
16152
|
+
let diff = lines[0].length - first.length;
|
|
16153
|
+
lines[last] = hasComment ? lines[last].replace(RegExp(` ?${regexEscape(close)}$`), "") : lines[last] + " " + close;
|
|
16154
|
+
let newText = lines.join("\n");
|
|
16155
|
+
let firstInsersion = insertionPoint + start1;
|
|
16156
|
+
let newStart = firstInsersion > start ? start : Math.max(start + diff, firstInsersion);
|
|
16157
|
+
let newEnd = firstInsersion > end - (start != end) ? end : Math.min(Math.max(firstInsersion, end + diff), start1 + newText.length);
|
|
16158
|
+
insertText(editor, newText, start1, end1, newStart, Math.max(newStart, newEnd));
|
|
16063
16159
|
scroll();
|
|
16064
16160
|
preventDefault(e);
|
|
16065
16161
|
}
|
|
16066
|
-
} else if (
|
|
16067
|
-
const
|
|
16068
|
-
const
|
|
16069
|
-
const
|
|
16070
|
-
const
|
|
16071
|
-
|
|
16072
|
-
scroll();
|
|
16073
|
-
preventDefault(e);
|
|
16074
|
-
} else if (block) {
|
|
16075
|
-
const [open, close] = block;
|
|
16076
|
-
const insertionPoint = whitespaceEnd(lines[0]);
|
|
16077
|
-
const hasComment = lines[0].startsWith(open, insertionPoint) && lines[last].endsWith(close);
|
|
16078
|
-
const newLines = lines.slice();
|
|
16079
|
-
newLines[0] = lines[0].replace(hasComment ? RegExp(regexEscape(open) + " ?") : /(?=\S)|$/, hasComment ? "" : open + " ");
|
|
16080
|
-
let diff = newLines[0].length - lines[0].length;
|
|
16081
|
-
newLines[last] = hasComment ? newLines[last].replace(RegExp(`( ?${regexEscape(close)})?$`), "") : newLines[last] + " " + close;
|
|
16082
|
-
let newText = newLines.join("\n");
|
|
16083
|
-
let firstInsersion = insertionPoint + start1;
|
|
16084
|
-
let newStart = firstInsersion > start ? start : Math.max(start + diff, firstInsersion);
|
|
16085
|
-
let newEnd = firstInsersion > end - (start != end) ? end : Math.min(Math.max(firstInsersion, end + diff), start1 + newText.length);
|
|
16086
|
-
insertText(editor, newText, start1, end1, newStart, Math.max(newStart, newEnd));
|
|
16162
|
+
} else if (code == 8 + mod && keyCode == 75) {
|
|
16163
|
+
const value = editor.value;
|
|
16164
|
+
const [lines, start1, end1] = getLines(value, start, end);
|
|
16165
|
+
const column = dir > "f" ? end - end1 + lines.pop().length : start - start1;
|
|
16166
|
+
const newLineLen = getLineEnd(value, end1 + 1) - end1 - 1;
|
|
16167
|
+
insertText(editor, "", start1 - !!start1, end1 + !start1, start1 + Math.min(column, newLineLen));
|
|
16087
16168
|
scroll();
|
|
16088
16169
|
preventDefault(e);
|
|
16089
16170
|
}
|
|
16090
|
-
}
|
|
16091
|
-
|
|
16092
|
-
|
|
16093
|
-
|
|
16094
|
-
|
|
16095
|
-
|
|
16096
|
-
|
|
16097
|
-
|
|
16098
|
-
|
|
16099
|
-
|
|
16100
|
-
|
|
16101
|
-
|
|
16102
|
-
|
|
16103
|
-
|
|
16104
|
-
|
|
16105
|
-
|
|
16106
|
-
|
|
16107
|
-
|
|
16108
|
-
if (type == "paste") {
|
|
16109
|
-
if (e.clipboardData.getData("text/plain") == prevCopy) {
|
|
16110
|
-
insertText(editor, prevCopy + "\n", start1, start1, start + prevCopy.length + 1);
|
|
16111
|
-
scroll();
|
|
16171
|
+
});
|
|
16172
|
+
[
|
|
16173
|
+
"copy",
|
|
16174
|
+
"cut",
|
|
16175
|
+
"paste"
|
|
16176
|
+
].forEach((type) => addTextareaListener(editor, type, (e) => {
|
|
16177
|
+
const [start, end] = getSelection();
|
|
16178
|
+
if (start == end && clipboard) {
|
|
16179
|
+
const [[line], start1, end1] = getLines(editor.value, start, end);
|
|
16180
|
+
if (type == "paste") {
|
|
16181
|
+
if (e.clipboardData.getData("text/plain") == prevCopy) {
|
|
16182
|
+
insertText(editor, prevCopy + "\n", start1, start1, start + prevCopy.length + 1);
|
|
16183
|
+
scroll();
|
|
16184
|
+
preventDefault(e);
|
|
16185
|
+
}
|
|
16186
|
+
} else {
|
|
16187
|
+
clipboard.writeText(prevCopy = line);
|
|
16188
|
+
if (type == "cut") insertText(editor, "", start1, end1 + 1), scroll();
|
|
16112
16189
|
preventDefault(e);
|
|
16113
16190
|
}
|
|
16114
|
-
} else {
|
|
16115
|
-
clipboard.writeText(prevCopy = line);
|
|
16116
|
-
if (type == "cut") insertText(editor, "", start1, end1 + 1), scroll();
|
|
16117
|
-
preventDefault(e);
|
|
16118
16191
|
}
|
|
16119
|
-
}
|
|
16120
|
-
}
|
|
16192
|
+
}));
|
|
16193
|
+
};
|
|
16121
16194
|
};
|
|
16195
|
+
[...isMac ? [["1+Escape", "Trigger suggestion"]] : []];
|
|
16196
|
+
var modifiers = isMac ? 5 : 1;
|
|
16197
|
+
modifiers + "", modifiers + "", modifiers + "", modifiers + "";
|
|
16122
16198
|
/**
|
|
16123
16199
|
* History extension that overrides the undo/redo behavior of the browser.
|
|
16124
16200
|
*
|
|
@@ -16219,7 +16295,7 @@ var editHistory = (historyLimit = 999) => {
|
|
|
16219
16295
|
return self;
|
|
16220
16296
|
};
|
|
16221
16297
|
//#endregion
|
|
16222
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
16298
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/cursor-7DP0p42U.js
|
|
16223
16299
|
var cursorTemplate = /* @__PURE__ */ createTemplate("<div style=position:absolute;top:0;opacity:0;padding-inline-end:inherit> <span><span></span> ");
|
|
16224
16300
|
/**
|
|
16225
16301
|
* Extension which can be used to calculate the position of the cursor and scroll it into view.
|
|
@@ -16262,7 +16338,7 @@ var cursorPosition = () => {
|
|
|
16262
16338
|
};
|
|
16263
16339
|
createTemplate("<div class=pce-cursor>");
|
|
16264
16340
|
//#endregion
|
|
16265
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
16341
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/extensions/guides.js
|
|
16266
16342
|
/** @module guides */
|
|
16267
16343
|
var template = /* @__PURE__ */ createTemplate("<div class=guide-indents> ");
|
|
16268
16344
|
/**
|
|
@@ -16363,7 +16439,7 @@ var getIndentGuides = (code, tabSize) => {
|
|
|
16363
16439
|
return results;
|
|
16364
16440
|
};
|
|
16365
16441
|
//#endregion
|
|
16366
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
16442
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/extensions/matchBrackets/highlight.js
|
|
16367
16443
|
/**
|
|
16368
16444
|
* Extension adding a `selectionChange` handler to highlight the bracker pair closest to
|
|
16369
16445
|
* the cursor.
|
|
@@ -16411,12 +16487,12 @@ var highlightBracketPairs = () => (editor) => {
|
|
|
16411
16487
|
editor.on("selectionChange", selectionChange);
|
|
16412
16488
|
};
|
|
16413
16489
|
//#endregion
|
|
16414
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
16490
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/bracket-CStGDfC7.js
|
|
16415
16491
|
var testBracket = (str, brackets, l) => {
|
|
16416
16492
|
return brackets.indexOf(str[0]) + 1 || l && brackets.indexOf(str[l]) + 1;
|
|
16417
16493
|
};
|
|
16418
16494
|
//#endregion
|
|
16419
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
16495
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/extensions/matchBrackets/index.js
|
|
16420
16496
|
/**
|
|
16421
16497
|
* Extension that matches punctuation tokens together. Intended for matching brackets.
|
|
16422
16498
|
*
|
|
@@ -16484,7 +16560,7 @@ var matchBrackets = (rainbowBrackets = true, pairs = "()[]{}") => {
|
|
|
16484
16560
|
return self;
|
|
16485
16561
|
};
|
|
16486
16562
|
//#endregion
|
|
16487
|
-
//#region ../../node_modules/.pnpm/prism-code-editor@5.
|
|
16563
|
+
//#region ../../node_modules/.pnpm/prism-code-editor@5.2.0/node_modules/prism-code-editor/dist/extensions/matchTags.js
|
|
16488
16564
|
/**
|
|
16489
16565
|
* Function that adds tag matching to the editor.
|
|
16490
16566
|
* @returns An object containing all tags and pairs.
|
|
@@ -16579,7 +16655,7 @@ var matchTags = () => (editor) => {
|
|
|
16579
16655
|
};
|
|
16580
16656
|
//#endregion
|
|
16581
16657
|
//#region src/components/ui/select/Select.vue
|
|
16582
|
-
const _sfc_main$30 =
|
|
16658
|
+
const _sfc_main$30 = /*@__PURE__*/ defineComponent({
|
|
16583
16659
|
__name: "Select",
|
|
16584
16660
|
props: {
|
|
16585
16661
|
open: {
|
|
@@ -16598,6 +16674,10 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
|
16598
16674
|
type: null,
|
|
16599
16675
|
required: false
|
|
16600
16676
|
},
|
|
16677
|
+
nullableValue: {
|
|
16678
|
+
type: String,
|
|
16679
|
+
required: false
|
|
16680
|
+
},
|
|
16601
16681
|
by: {
|
|
16602
16682
|
type: [String, Function],
|
|
16603
16683
|
required: false
|
|
@@ -16653,10 +16733,10 @@ function _sfc_render$30(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16653
16733
|
_: 3
|
|
16654
16734
|
}, 16);
|
|
16655
16735
|
}
|
|
16656
|
-
var Select_default =
|
|
16736
|
+
var Select_default = /*#__PURE__*/ export_helper_default(_sfc_main$30, [["render", _sfc_render$30], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/select/Select.vue"]]);
|
|
16657
16737
|
//#endregion
|
|
16658
16738
|
//#region src/components/ui/select/SelectContent.vue
|
|
16659
|
-
const _sfc_main$29 =
|
|
16739
|
+
const _sfc_main$29 = /*@__PURE__*/ defineComponent({
|
|
16660
16740
|
inheritAttrs: false,
|
|
16661
16741
|
__name: "SelectContent",
|
|
16662
16742
|
props: {
|
|
@@ -16673,6 +16753,10 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
16673
16753
|
type: Boolean,
|
|
16674
16754
|
required: false
|
|
16675
16755
|
},
|
|
16756
|
+
memoDependencies: {
|
|
16757
|
+
type: Array,
|
|
16758
|
+
required: false
|
|
16759
|
+
},
|
|
16676
16760
|
side: {
|
|
16677
16761
|
type: null,
|
|
16678
16762
|
required: false
|
|
@@ -16745,6 +16829,10 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
16745
16829
|
type: null,
|
|
16746
16830
|
required: false
|
|
16747
16831
|
},
|
|
16832
|
+
dir: {
|
|
16833
|
+
type: String,
|
|
16834
|
+
required: false
|
|
16835
|
+
},
|
|
16748
16836
|
asChild: {
|
|
16749
16837
|
type: Boolean,
|
|
16750
16838
|
required: false
|
|
@@ -16832,10 +16920,10 @@ function _sfc_render$29(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16832
16920
|
_: 3
|
|
16833
16921
|
});
|
|
16834
16922
|
}
|
|
16835
|
-
var SelectContent_default =
|
|
16923
|
+
var SelectContent_default = /*#__PURE__*/ export_helper_default(_sfc_main$29, [["render", _sfc_render$29], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/select/SelectContent.vue"]]);
|
|
16836
16924
|
//#endregion
|
|
16837
16925
|
//#region src/components/ui/select/SelectItem.vue
|
|
16838
|
-
const _sfc_main$28 =
|
|
16926
|
+
const _sfc_main$28 = /*@__PURE__*/ defineComponent({
|
|
16839
16927
|
__name: "SelectItem",
|
|
16840
16928
|
props: {
|
|
16841
16929
|
value: {
|
|
@@ -16917,10 +17005,10 @@ function _sfc_render$28(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16917
17005
|
_: 3
|
|
16918
17006
|
}, 16, ["class"]);
|
|
16919
17007
|
}
|
|
16920
|
-
var SelectItem_default =
|
|
17008
|
+
var SelectItem_default = /*#__PURE__*/ export_helper_default(_sfc_main$28, [["render", _sfc_render$28], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/select/SelectItem.vue"]]);
|
|
16921
17009
|
//#endregion
|
|
16922
17010
|
//#region src/components/ui/select/SelectScrollDownButton.vue
|
|
16923
|
-
const _sfc_main$27 =
|
|
17011
|
+
const _sfc_main$27 = /*@__PURE__*/ defineComponent({
|
|
16924
17012
|
__name: "SelectScrollDownButton",
|
|
16925
17013
|
props: {
|
|
16926
17014
|
asChild: {
|
|
@@ -16977,10 +17065,10 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16977
17065
|
_: 3
|
|
16978
17066
|
}, 16, ["class"]);
|
|
16979
17067
|
}
|
|
16980
|
-
var SelectScrollDownButton_default =
|
|
17068
|
+
var SelectScrollDownButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$27, [["render", _sfc_render$27], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/select/SelectScrollDownButton.vue"]]);
|
|
16981
17069
|
//#endregion
|
|
16982
17070
|
//#region src/components/ui/select/SelectScrollUpButton.vue
|
|
16983
|
-
const _sfc_main$26 =
|
|
17071
|
+
const _sfc_main$26 = /*@__PURE__*/ defineComponent({
|
|
16984
17072
|
__name: "SelectScrollUpButton",
|
|
16985
17073
|
props: {
|
|
16986
17074
|
asChild: {
|
|
@@ -17037,10 +17125,10 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17037
17125
|
_: 3
|
|
17038
17126
|
}, 16, ["class"]);
|
|
17039
17127
|
}
|
|
17040
|
-
var SelectScrollUpButton_default =
|
|
17128
|
+
var SelectScrollUpButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$26, [["render", _sfc_render$26], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/select/SelectScrollUpButton.vue"]]);
|
|
17041
17129
|
//#endregion
|
|
17042
17130
|
//#region src/components/ui/select/SelectTrigger.vue
|
|
17043
|
-
const _sfc_main$25 =
|
|
17131
|
+
const _sfc_main$25 = /*@__PURE__*/ defineComponent({
|
|
17044
17132
|
__name: "SelectTrigger",
|
|
17045
17133
|
props: {
|
|
17046
17134
|
disabled: {
|
|
@@ -17111,10 +17199,10 @@ function _sfc_render$25(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17111
17199
|
_: 3
|
|
17112
17200
|
}, 16, ["class"]);
|
|
17113
17201
|
}
|
|
17114
|
-
var SelectTrigger_default =
|
|
17202
|
+
var SelectTrigger_default = /*#__PURE__*/ export_helper_default(_sfc_main$25, [["render", _sfc_render$25], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/select/SelectTrigger.vue"]]);
|
|
17115
17203
|
//#endregion
|
|
17116
17204
|
//#region src/components/ui/select/SelectValue.vue
|
|
17117
|
-
const _sfc_main$24 =
|
|
17205
|
+
const _sfc_main$24 = /*@__PURE__*/ defineComponent({
|
|
17118
17206
|
__name: "SelectValue",
|
|
17119
17207
|
props: {
|
|
17120
17208
|
placeholder: {
|
|
@@ -17151,10 +17239,10 @@ function _sfc_render$24(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17151
17239
|
_: 3
|
|
17152
17240
|
}, 16);
|
|
17153
17241
|
}
|
|
17154
|
-
var SelectValue_default =
|
|
17242
|
+
var SelectValue_default = /*#__PURE__*/ export_helper_default(_sfc_main$24, [["render", _sfc_render$24], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/select/SelectValue.vue"]]);
|
|
17155
17243
|
//#endregion
|
|
17156
17244
|
//#region src/extensions/CodeBlock/components/NodeView.vue
|
|
17157
|
-
const _sfc_main$23 =
|
|
17245
|
+
const _sfc_main$23 = /*@__PURE__*/ defineComponent({
|
|
17158
17246
|
__name: "NodeView",
|
|
17159
17247
|
props: nodeViewProps,
|
|
17160
17248
|
setup(__props, { expose: __expose }) {
|
|
@@ -17503,7 +17591,7 @@ function _sfc_render$23(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17503
17591
|
_: 1
|
|
17504
17592
|
}, 8, ["id"]);
|
|
17505
17593
|
}
|
|
17506
|
-
var NodeView_default =
|
|
17594
|
+
var NodeView_default = /*#__PURE__*/ export_helper_default(_sfc_main$23, [["render", _sfc_render$23], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/CodeBlock/components/NodeView.vue"]]);
|
|
17507
17595
|
//#endregion
|
|
17508
17596
|
//#region src/extensions/CodeBlock/CodeBlock.ts
|
|
17509
17597
|
/**
|
|
@@ -17597,7 +17685,7 @@ const CodeBlock = Node.create({
|
|
|
17597
17685
|
});
|
|
17598
17686
|
//#endregion
|
|
17599
17687
|
//#region src/components/ActionMenuButton.vue
|
|
17600
|
-
const _sfc_main$22 =
|
|
17688
|
+
const _sfc_main$22 = /*@__PURE__*/ defineComponent({
|
|
17601
17689
|
__name: "ActionMenuButton",
|
|
17602
17690
|
props: {
|
|
17603
17691
|
icon: {
|
|
@@ -17728,10 +17816,10 @@ function _sfc_render$22(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17728
17816
|
_: 1
|
|
17729
17817
|
});
|
|
17730
17818
|
}
|
|
17731
|
-
var ActionMenuButton_default =
|
|
17819
|
+
var ActionMenuButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$22, [["render", _sfc_render$22], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ActionMenuButton.vue"]]);
|
|
17732
17820
|
//#endregion
|
|
17733
17821
|
//#region src/components/ActionDropdownButton.vue
|
|
17734
|
-
const _sfc_main$21 =
|
|
17822
|
+
const _sfc_main$21 = /*@__PURE__*/ defineComponent({
|
|
17735
17823
|
__name: "ActionDropdownButton",
|
|
17736
17824
|
props: {
|
|
17737
17825
|
icon: {
|
|
@@ -17830,10 +17918,10 @@ function _sfc_render$21(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17830
17918
|
_: 3
|
|
17831
17919
|
});
|
|
17832
17920
|
}
|
|
17833
|
-
var ActionDropdownButton_default =
|
|
17921
|
+
var ActionDropdownButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$21, [["render", _sfc_render$21], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ActionDropdownButton.vue"]]);
|
|
17834
17922
|
//#endregion
|
|
17835
17923
|
//#region src/extensions/Heading/components/HeadingButton.vue
|
|
17836
|
-
const _sfc_main$20 =
|
|
17924
|
+
const _sfc_main$20 = /*@__PURE__*/ defineComponent({
|
|
17837
17925
|
__name: "HeadingButton",
|
|
17838
17926
|
props: {
|
|
17839
17927
|
editor: {
|
|
@@ -17932,7 +18020,7 @@ function _sfc_render$20(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17932
18020
|
"title"
|
|
17933
18021
|
]);
|
|
17934
18022
|
}
|
|
17935
|
-
var HeadingButton_default =
|
|
18023
|
+
var HeadingButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$20, [["render", _sfc_render$20], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/Heading/components/HeadingButton.vue"]]);
|
|
17936
18024
|
//#endregion
|
|
17937
18025
|
//#region src/extensions/Heading/Heading.ts
|
|
17938
18026
|
const Heading = Heading$1.extend({ addOptions() {
|
|
@@ -17988,7 +18076,7 @@ const Heading = Heading$1.extend({ addOptions() {
|
|
|
17988
18076
|
} });
|
|
17989
18077
|
//#endregion
|
|
17990
18078
|
//#region src/extensions/TextAlign/components/TextAlignMenuButton.vue
|
|
17991
|
-
const _sfc_main$19 =
|
|
18079
|
+
const _sfc_main$19 = /*@__PURE__*/ defineComponent({
|
|
17992
18080
|
__name: "TextAlignMenuButton",
|
|
17993
18081
|
props: {
|
|
17994
18082
|
editor: {
|
|
@@ -18121,7 +18209,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18121
18209
|
"disabled"
|
|
18122
18210
|
]);
|
|
18123
18211
|
}
|
|
18124
|
-
var TextAlignMenuButton_default =
|
|
18212
|
+
var TextAlignMenuButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$19, [["render", _sfc_render$19], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/TextAlign/components/TextAlignMenuButton.vue"]]);
|
|
18125
18213
|
//#endregion
|
|
18126
18214
|
//#region src/extensions/TextAlign/TextAlign.ts
|
|
18127
18215
|
const TextAlign = TiptapTextAlign.extend({ addOptions() {
|
|
@@ -18186,7 +18274,7 @@ const TextAlign = TiptapTextAlign.extend({ addOptions() {
|
|
|
18186
18274
|
} });
|
|
18187
18275
|
//#endregion
|
|
18188
18276
|
//#region src/extensions/FontSize/components/FontSizeMenuButton.vue
|
|
18189
|
-
const _sfc_main$18 =
|
|
18277
|
+
const _sfc_main$18 = /*@__PURE__*/ defineComponent({
|
|
18190
18278
|
__name: "FontSizeMenuButton",
|
|
18191
18279
|
props: {
|
|
18192
18280
|
editor: {
|
|
@@ -18284,7 +18372,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18284
18372
|
"title"
|
|
18285
18373
|
]);
|
|
18286
18374
|
}
|
|
18287
|
-
var FontSizeMenuButton_default =
|
|
18375
|
+
var FontSizeMenuButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$18, [["render", _sfc_render$18], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/FontSize/components/FontSizeMenuButton.vue"]]);
|
|
18288
18376
|
//#endregion
|
|
18289
18377
|
//#region src/extensions/FontSize/FontSize.ts
|
|
18290
18378
|
const FontSize = Extension.create({
|
|
@@ -18353,7 +18441,7 @@ const FontSize = Extension.create({
|
|
|
18353
18441
|
});
|
|
18354
18442
|
//#endregion
|
|
18355
18443
|
//#region src/extensions/Color/components/ColorActionButton.vue
|
|
18356
|
-
const _sfc_main$17 =
|
|
18444
|
+
const _sfc_main$17 = /*@__PURE__*/ defineComponent({
|
|
18357
18445
|
__name: "ColorActionButton",
|
|
18358
18446
|
props: {
|
|
18359
18447
|
editor: {
|
|
@@ -18484,7 +18572,7 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18484
18572
|
_: 1
|
|
18485
18573
|
}, 8, ["modelValue", "disabled"])]);
|
|
18486
18574
|
}
|
|
18487
|
-
var ColorActionButton_default =
|
|
18575
|
+
var ColorActionButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$17, [["render", _sfc_render$17], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/Color/components/ColorActionButton.vue"]]);
|
|
18488
18576
|
//#endregion
|
|
18489
18577
|
//#region src/extensions/Color/Color.ts
|
|
18490
18578
|
const Color = TiptapColor.extend({ addOptions() {
|
|
@@ -18539,7 +18627,7 @@ const Highlight = Highlight$1.extend({ addOptions() {
|
|
|
18539
18627
|
} });
|
|
18540
18628
|
//#endregion
|
|
18541
18629
|
//#region src/components/ActionDropdownButtonSplit.vue
|
|
18542
|
-
const _sfc_main$16 =
|
|
18630
|
+
const _sfc_main$16 = /*@__PURE__*/ defineComponent({
|
|
18543
18631
|
__name: "ActionDropdownButtonSplit",
|
|
18544
18632
|
props: {
|
|
18545
18633
|
icon: {
|
|
@@ -18660,10 +18748,10 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18660
18748
|
_: 3
|
|
18661
18749
|
})], 2);
|
|
18662
18750
|
}
|
|
18663
|
-
var ActionDropdownButtonSplit_default =
|
|
18751
|
+
var ActionDropdownButtonSplit_default = /*#__PURE__*/ export_helper_default(_sfc_main$16, [["render", _sfc_render$16], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ActionDropdownButtonSplit.vue"]]);
|
|
18664
18752
|
//#endregion
|
|
18665
18753
|
//#region src/extensions/BulletList/components/BulletListMenuButton.vue
|
|
18666
|
-
const _sfc_main$15 =
|
|
18754
|
+
const _sfc_main$15 = /*@__PURE__*/ defineComponent({
|
|
18667
18755
|
__name: "BulletListMenuButton",
|
|
18668
18756
|
props: {
|
|
18669
18757
|
editor: {
|
|
@@ -18780,7 +18868,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18780
18868
|
_: 1
|
|
18781
18869
|
}, 8, ["disabled", "tooltip"]);
|
|
18782
18870
|
}
|
|
18783
|
-
var BulletListMenuButton_default =
|
|
18871
|
+
var BulletListMenuButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$15, [["render", _sfc_render$15], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/BulletList/components/BulletListMenuButton.vue"]]);
|
|
18784
18872
|
//#endregion
|
|
18785
18873
|
//#region src/extensions/BulletList/BulletList.ts
|
|
18786
18874
|
const BulletList = BulletList$1.extend({
|
|
@@ -18840,7 +18928,7 @@ const Clear = Node.create({
|
|
|
18840
18928
|
});
|
|
18841
18929
|
//#endregion
|
|
18842
18930
|
//#region src/extensions/OrderedList/components/OrderedListMenuButton.vue
|
|
18843
|
-
const _sfc_main$14 =
|
|
18931
|
+
const _sfc_main$14 = /*@__PURE__*/ defineComponent({
|
|
18844
18932
|
__name: "OrderedListMenuButton",
|
|
18845
18933
|
props: {
|
|
18846
18934
|
editor: {
|
|
@@ -18994,7 +19082,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18994
19082
|
"shortcutKeys"
|
|
18995
19083
|
]);
|
|
18996
19084
|
}
|
|
18997
|
-
var OrderedListMenuButton_default =
|
|
19085
|
+
var OrderedListMenuButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$14, [["render", _sfc_render$14], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/OrderedList/components/OrderedListMenuButton.vue"]]);
|
|
18998
19086
|
//#endregion
|
|
18999
19087
|
//#region src/extensions/OrderedList/OrderedList.ts
|
|
19000
19088
|
const OrderedList = OrderedList$1.extend({
|
|
@@ -19087,7 +19175,7 @@ const Blockquote = Blockquote$1.extend({ addOptions() {
|
|
|
19087
19175
|
} });
|
|
19088
19176
|
//#endregion
|
|
19089
19177
|
//#region src/extensions/Link/components/LinkEditPopover.vue
|
|
19090
|
-
const _sfc_main$13 =
|
|
19178
|
+
const _sfc_main$13 = /*@__PURE__*/ defineComponent({
|
|
19091
19179
|
__name: "LinkEditPopover",
|
|
19092
19180
|
props: {
|
|
19093
19181
|
editor: {
|
|
@@ -19193,7 +19281,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19193
19281
|
_: 1
|
|
19194
19282
|
});
|
|
19195
19283
|
}
|
|
19196
|
-
var LinkEditPopover_default =
|
|
19284
|
+
var LinkEditPopover_default = /*#__PURE__*/ export_helper_default(_sfc_main$13, [["render", _sfc_render$13], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/Link/components/LinkEditPopover.vue"]]);
|
|
19197
19285
|
//#endregion
|
|
19198
19286
|
//#region src/extensions/Link/Link.ts
|
|
19199
19287
|
const Link = Link$1.extend({
|
|
@@ -19555,7 +19643,7 @@ const generateBubbleTypeMenu = (list, defaultList, { editor, extension, t }) =>
|
|
|
19555
19643
|
};
|
|
19556
19644
|
//#endregion
|
|
19557
19645
|
//#region src/extensions/TextBubble/components/TextDropdown.vue
|
|
19558
|
-
const _sfc_main$12 =
|
|
19646
|
+
const _sfc_main$12 = /*@__PURE__*/ defineComponent({
|
|
19559
19647
|
__name: "TextDropdown",
|
|
19560
19648
|
props: {
|
|
19561
19649
|
editor: {
|
|
@@ -19704,7 +19792,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19704
19792
|
_: 1
|
|
19705
19793
|
}, 8, ["title"]);
|
|
19706
19794
|
}
|
|
19707
|
-
var TextDropdown_default =
|
|
19795
|
+
var TextDropdown_default = /*#__PURE__*/ export_helper_default(_sfc_main$12, [["render", _sfc_render$12], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/TextBubble/components/TextDropdown.vue"]]);
|
|
19708
19796
|
//#endregion
|
|
19709
19797
|
//#region src/extensions/TextBubble/TextBubble.ts
|
|
19710
19798
|
const TextBubble = Extension.create({
|
|
@@ -19825,7 +19913,7 @@ const SubAndSuperScript = Extension.create({
|
|
|
19825
19913
|
});
|
|
19826
19914
|
//#endregion
|
|
19827
19915
|
//#region src/extensions/MoreMark/components/ActionMoreButton.vue
|
|
19828
|
-
const _sfc_main$11 =
|
|
19916
|
+
const _sfc_main$11 = /*@__PURE__*/ defineComponent({
|
|
19829
19917
|
__name: "ActionMoreButton",
|
|
19830
19918
|
props: {
|
|
19831
19919
|
editor: {
|
|
@@ -19944,7 +20032,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19944
20032
|
"disabled"
|
|
19945
20033
|
]);
|
|
19946
20034
|
}
|
|
19947
|
-
var ActionMoreButton_default =
|
|
20035
|
+
var ActionMoreButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$11, [["render", _sfc_render$11], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/MoreMark/components/ActionMoreButton.vue"]]);
|
|
19948
20036
|
//#endregion
|
|
19949
20037
|
//#region src/extensions/MoreMark/MoreMark.ts
|
|
19950
20038
|
const MoreMark = Extension.create({
|
|
@@ -20017,8 +20105,8 @@ const Indent = Extension.create({
|
|
|
20017
20105
|
"heading",
|
|
20018
20106
|
"blockquote"
|
|
20019
20107
|
],
|
|
20020
|
-
minIndent:
|
|
20021
|
-
maxIndent:
|
|
20108
|
+
minIndent: 0,
|
|
20109
|
+
maxIndent: 7,
|
|
20022
20110
|
button({ editor, t }) {
|
|
20023
20111
|
const { selection } = editor.state;
|
|
20024
20112
|
const node = selection.$anchor.parent;
|
|
@@ -20028,7 +20116,7 @@ const Indent = Extension.create({
|
|
|
20028
20116
|
action: () => {
|
|
20029
20117
|
editor.chain().indent().focus().run();
|
|
20030
20118
|
},
|
|
20031
|
-
disabled: !editor?.isEditable || node?.attrs?.indent >=
|
|
20119
|
+
disabled: !editor?.isEditable || node?.attrs?.indent >= 7 || !editor.can().indent(),
|
|
20032
20120
|
shortcutKeys: ["Tab"],
|
|
20033
20121
|
icon: "IndentIncrease",
|
|
20034
20122
|
tooltip: t("editor.indent.tooltip")
|
|
@@ -20040,7 +20128,7 @@ const Indent = Extension.create({
|
|
|
20040
20128
|
editor.chain().outdent().focus().run();
|
|
20041
20129
|
},
|
|
20042
20130
|
shortcutKeys: ["Shift", "Tab"],
|
|
20043
|
-
disabled: !editor?.isEditable || node?.attrs?.indent <=
|
|
20131
|
+
disabled: !editor?.isEditable || node?.attrs?.indent <= 0 || !editor.can().outdent(),
|
|
20044
20132
|
icon: "IndentDecrease",
|
|
20045
20133
|
tooltip: t("editor.outdent.tooltip")
|
|
20046
20134
|
}
|
|
@@ -20067,11 +20155,11 @@ const Indent = Extension.create({
|
|
|
20067
20155
|
addCommands() {
|
|
20068
20156
|
return {
|
|
20069
20157
|
indent: () => createIndentCommand({
|
|
20070
|
-
delta:
|
|
20158
|
+
delta: 1,
|
|
20071
20159
|
types: this.options.types
|
|
20072
20160
|
}),
|
|
20073
20161
|
outdent: () => createIndentCommand({
|
|
20074
|
-
delta:
|
|
20162
|
+
delta: -1,
|
|
20075
20163
|
types: this.options.types
|
|
20076
20164
|
})
|
|
20077
20165
|
};
|
|
@@ -20137,7 +20225,7 @@ function createLineHeightCommand(lineHeight) {
|
|
|
20137
20225
|
}
|
|
20138
20226
|
//#endregion
|
|
20139
20227
|
//#region src/extensions/LineHeight/components/LineHeightDropdown.vue
|
|
20140
|
-
const _sfc_main$10 =
|
|
20228
|
+
const _sfc_main$10 = /*@__PURE__*/ defineComponent({
|
|
20141
20229
|
__name: "LineHeightDropdown",
|
|
20142
20230
|
props: {
|
|
20143
20231
|
editor: {
|
|
@@ -20236,7 +20324,7 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20236
20324
|
"disabled"
|
|
20237
20325
|
]);
|
|
20238
20326
|
}
|
|
20239
|
-
var LineHeightDropdown_default =
|
|
20327
|
+
var LineHeightDropdown_default = /*#__PURE__*/ export_helper_default(_sfc_main$10, [["render", _sfc_render$10], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/LineHeight/components/LineHeightDropdown.vue"]]);
|
|
20240
20328
|
//#endregion
|
|
20241
20329
|
//#region src/extensions/LineHeight/LineHeight.ts
|
|
20242
20330
|
const LineHeight = Extension.create({
|
|
@@ -20924,7 +21012,7 @@ function renderGroups(editor) {
|
|
|
20924
21012
|
}
|
|
20925
21013
|
//#endregion
|
|
20926
21014
|
//#region src/extensions/SlashCommand/CommandsList.vue
|
|
20927
|
-
const _sfc_main$9 =
|
|
21015
|
+
const _sfc_main$9 = /*@__PURE__*/ defineComponent({
|
|
20928
21016
|
__name: "CommandsList",
|
|
20929
21017
|
props: {
|
|
20930
21018
|
editor: {
|
|
@@ -21083,7 +21171,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21083
21171
|
}), 128))], 64);
|
|
21084
21172
|
}), 128))])) : (openBlock(), createElementBlock("div", _hoisted_6$1, [createElementVNode("span", _hoisted_7, toDisplayString($setup.t("editor.slash.empty")), 1)]))], 512);
|
|
21085
21173
|
}
|
|
21086
|
-
var CommandsList_default =
|
|
21174
|
+
var CommandsList_default = /*#__PURE__*/ export_helper_default(_sfc_main$9, [["render", _sfc_render$9], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/SlashCommand/CommandsList.vue"]]);
|
|
21087
21175
|
//#endregion
|
|
21088
21176
|
//#region src/extensions/SlashCommand/SlashCommand.ts
|
|
21089
21177
|
const extensionName = "slashCommand";
|
|
@@ -21251,7 +21339,7 @@ const SlashCommand = Extension.create({
|
|
|
21251
21339
|
});
|
|
21252
21340
|
//#endregion
|
|
21253
21341
|
//#region src/extensions/Image/components/ImageView.vue
|
|
21254
|
-
const _sfc_main$8 =
|
|
21342
|
+
const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
21255
21343
|
__name: "ImageView",
|
|
21256
21344
|
props: {
|
|
21257
21345
|
...nodeViewProps,
|
|
@@ -21457,7 +21545,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21457
21545
|
_: 1
|
|
21458
21546
|
});
|
|
21459
21547
|
}
|
|
21460
|
-
var ImageView_default =
|
|
21548
|
+
var ImageView_default = /*#__PURE__*/ export_helper_default(_sfc_main$8, [
|
|
21461
21549
|
["render", _sfc_render$8],
|
|
21462
21550
|
["__scopeId", "data-v-413d968c"],
|
|
21463
21551
|
["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/Image/components/ImageView.vue"]
|
|
@@ -21596,7 +21684,7 @@ const Video = Node.create({
|
|
|
21596
21684
|
allowFullscreen: true,
|
|
21597
21685
|
upload: void 0,
|
|
21598
21686
|
frameborder: false,
|
|
21599
|
-
width:
|
|
21687
|
+
width: 640,
|
|
21600
21688
|
HTMLAttributes: {
|
|
21601
21689
|
class: "iframe-wrapper",
|
|
21602
21690
|
style: "display: flex;justify-content: center;"
|
|
@@ -21687,7 +21775,7 @@ function isMobile(opts = {}) {
|
|
|
21687
21775
|
}
|
|
21688
21776
|
//#endregion
|
|
21689
21777
|
//#region src/extensions/Table/components/CreateTablePopover.vue
|
|
21690
|
-
const _sfc_main$7 =
|
|
21778
|
+
const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
21691
21779
|
__name: "CreateTablePopover",
|
|
21692
21780
|
props: { disabled: { default: false } },
|
|
21693
21781
|
emits: ["create-table"],
|
|
@@ -21791,10 +21879,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21791
21879
|
_: 3
|
|
21792
21880
|
});
|
|
21793
21881
|
}
|
|
21794
|
-
var CreateTablePopover_default =
|
|
21882
|
+
var CreateTablePopover_default = /*#__PURE__*/ export_helper_default(_sfc_main$7, [["render", _sfc_render$7], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/Table/components/CreateTablePopover.vue"]]);
|
|
21795
21883
|
//#endregion
|
|
21796
21884
|
//#region src/extensions/Table/components/TableActionButton.vue
|
|
21797
|
-
const _sfc_main$6 =
|
|
21885
|
+
const _sfc_main$6 = /*@__PURE__*/ defineComponent({
|
|
21798
21886
|
__name: "TableActionButton",
|
|
21799
21887
|
props: {
|
|
21800
21888
|
editor: {
|
|
@@ -21878,7 +21966,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21878
21966
|
_: 1
|
|
21879
21967
|
}, 8, ["disabled"]);
|
|
21880
21968
|
}
|
|
21881
|
-
var TableActionButton_default =
|
|
21969
|
+
var TableActionButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$6, [["render", _sfc_render$6], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/Table/components/TableActionButton.vue"]]);
|
|
21882
21970
|
//#endregion
|
|
21883
21971
|
//#region src/extensions/Table/table.ts
|
|
21884
21972
|
const Table = Table$1.extend({
|
|
@@ -21909,7 +21997,7 @@ const Table = Table$1.extend({
|
|
|
21909
21997
|
});
|
|
21910
21998
|
//#endregion
|
|
21911
21999
|
//#region src/extensions/AI/components/AIButton.vue
|
|
21912
|
-
const _sfc_main$5 =
|
|
22000
|
+
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
21913
22001
|
__name: "AIButton",
|
|
21914
22002
|
props: {
|
|
21915
22003
|
editor: {
|
|
@@ -22021,7 +22109,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22021
22109
|
"tooltip"
|
|
22022
22110
|
]);
|
|
22023
22111
|
}
|
|
22024
|
-
var AIButton_default =
|
|
22112
|
+
var AIButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$5, [["render", _sfc_render$5], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/AI/components/AIButton.vue"]]);
|
|
22025
22113
|
//#endregion
|
|
22026
22114
|
//#region src/extensions/AI/AI.ts
|
|
22027
22115
|
const AI = Node.create({
|
|
@@ -22235,7 +22323,7 @@ const ImportWord = Extension.create({
|
|
|
22235
22323
|
});
|
|
22236
22324
|
//#endregion
|
|
22237
22325
|
//#region src/components/ui/tabs/TabsContent.vue
|
|
22238
|
-
const _sfc_main$4 =
|
|
22326
|
+
const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
22239
22327
|
__name: "TabsContent",
|
|
22240
22328
|
props: {
|
|
22241
22329
|
value: {
|
|
@@ -22295,7 +22383,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22295
22383
|
_: 3
|
|
22296
22384
|
}, 16, ["class"]);
|
|
22297
22385
|
}
|
|
22298
|
-
var TabsContent_default =
|
|
22386
|
+
var TabsContent_default = /*#__PURE__*/ export_helper_default(_sfc_main$4, [["render", _sfc_render$4], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/components/ui/tabs/TabsContent.vue"]]);
|
|
22299
22387
|
//#endregion
|
|
22300
22388
|
//#region src/plugins/image-upload.ts
|
|
22301
22389
|
const uploadKey = new PluginKey("upload-image");
|
|
@@ -22393,7 +22481,7 @@ const handleImageDrop = (view, event, moved, uploadFn) => {
|
|
|
22393
22481
|
};
|
|
22394
22482
|
//#endregion
|
|
22395
22483
|
//#region src/extensions/ImageUpload/components/ImageUploader.vue
|
|
22396
|
-
const _sfc_main$3 =
|
|
22484
|
+
const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
22397
22485
|
__name: "ImageUploader",
|
|
22398
22486
|
props: { ...nodeViewProps },
|
|
22399
22487
|
setup(__props, { expose: __expose }) {
|
|
@@ -22560,7 +22648,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22560
22648
|
_: 1
|
|
22561
22649
|
});
|
|
22562
22650
|
}
|
|
22563
|
-
var ImageUploader_default =
|
|
22651
|
+
var ImageUploader_default = /*#__PURE__*/ export_helper_default(_sfc_main$3, [["render", _sfc_render$3], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/ImageUpload/components/ImageUploader.vue"]]);
|
|
22564
22652
|
//#endregion
|
|
22565
22653
|
//#region src/extensions/ImageUpload/ImageUpload.ts
|
|
22566
22654
|
const DEFAULT_OPTIONS = {
|
|
@@ -22653,7 +22741,7 @@ const ImageUpload = Node$1.create({
|
|
|
22653
22741
|
});
|
|
22654
22742
|
//#endregion
|
|
22655
22743
|
//#region src/extensions/VideoUpload/components/VideoUploader.vue
|
|
22656
|
-
const _sfc_main$2 =
|
|
22744
|
+
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
22657
22745
|
__name: "VideoUploader",
|
|
22658
22746
|
props: { ...nodeViewProps },
|
|
22659
22747
|
setup(__props, { expose: __expose }) {
|
|
@@ -22839,7 +22927,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22839
22927
|
_: 1
|
|
22840
22928
|
});
|
|
22841
22929
|
}
|
|
22842
|
-
var VideoUploader_default =
|
|
22930
|
+
var VideoUploader_default = /*#__PURE__*/ export_helper_default(_sfc_main$2, [["render", _sfc_render$2], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/VideoUpload/components/VideoUploader.vue"]]);
|
|
22843
22931
|
//#endregion
|
|
22844
22932
|
//#region src/extensions/VideoUpload/VideoUpload.ts
|
|
22845
22933
|
const VideoUpload = Node$1.create({
|
|
@@ -22883,7 +22971,7 @@ const VideoUpload = Node$1.create({
|
|
|
22883
22971
|
});
|
|
22884
22972
|
//#endregion
|
|
22885
22973
|
//#region src/extensions/FontFamily/components/FontFamilyMenuButton.vue
|
|
22886
|
-
const _sfc_main$1 =
|
|
22974
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
22887
22975
|
__name: "FontFamilyMenuButton",
|
|
22888
22976
|
props: {
|
|
22889
22977
|
editor: {
|
|
@@ -22988,7 +23076,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22988
23076
|
"title"
|
|
22989
23077
|
]);
|
|
22990
23078
|
}
|
|
22991
|
-
var FontFamilyMenuButton_default =
|
|
23079
|
+
var FontFamilyMenuButton_default = /*#__PURE__*/ export_helper_default(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/FontFamily/components/FontFamilyMenuButton.vue"]]);
|
|
22992
23080
|
//#endregion
|
|
22993
23081
|
//#region src/extensions/FontFamily/FontFamily.ts
|
|
22994
23082
|
const FontFamily = FontFamily$1.extend({
|
|
@@ -23280,7 +23368,7 @@ const Printer = Extension.create({
|
|
|
23280
23368
|
});
|
|
23281
23369
|
//#endregion
|
|
23282
23370
|
//#region src/extensions/Iframe/IframeNodeView.vue
|
|
23283
|
-
const _sfc_main =
|
|
23371
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
23284
23372
|
__name: "IframeNodeView",
|
|
23285
23373
|
props: { ...nodeViewProps },
|
|
23286
23374
|
setup(__props, { expose: __expose }) {
|
|
@@ -23365,7 +23453,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23365
23453
|
_: 1
|
|
23366
23454
|
});
|
|
23367
23455
|
}
|
|
23368
|
-
var IframeNodeView_default =
|
|
23456
|
+
var IframeNodeView_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "/home/hosanna/work/font_workspace/packages/rich-editor/src/extensions/Iframe/IframeNodeView.vue"]]);
|
|
23369
23457
|
//#endregion
|
|
23370
23458
|
//#region src/extensions/Iframe/Iframe.ts
|
|
23371
23459
|
const Iframe = Node.create({
|