@bagelink/vue 1.4.62 → 1.4.69
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/components/BglVideo.vue.d.ts.map +1 -1
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/composables/useCommands.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/composables/useEditor.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/composables/useEditorKeyboard.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/index.vue.d.ts +128 -1
- package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/utils/commands.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/utils/selection.d.ts.map +1 -1
- package/dist/index.cjs +20 -20
- package/dist/index.mjs +20 -20
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/BglVideo.vue +16 -21
- package/src/components/NavBar.vue +17 -5
- package/src/components/form/inputs/RichText/composables/useCommands.ts +9 -29
- package/src/components/form/inputs/RichText/composables/useEditor.ts +45 -46
- package/src/components/form/inputs/RichText/composables/useEditorKeyboard.ts +52 -3
- package/src/components/form/inputs/RichText/index.vue +148 -43
- package/src/components/form/inputs/RichText/utils/commands.ts +347 -282
- package/src/components/form/inputs/RichText/utils/selection.ts +55 -37
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BglVideo.vue.d.ts","sourceRoot":"","sources":["../../src/components/BglVideo.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BglVideo.vue.d.ts","sourceRoot":"","sources":["../../src/components/BglVideo.vue"],"names":[],"mappings":"AAuJA,KAAK,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AACnC,UAAU,KAAK;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;AAsBD,iBAAS,IAAI,SAEZ;AAED,iBAAS,KAAK,SAEb;;;;;;;;AAuJD,wBASG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/NavBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/NavBar.vue"],"names":[],"mappings":"AAuYA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAItD,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,OAAO,EAAE,CAAA;IACvB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAqCH,iBAAS,cAAc;WAsJT,OAAO,IAA6B;;;;YAXzB,GAAG;uBACA,GAAG;;;;EAe9B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAjNX,OAAO,EAAE;iBADH,OAAO,EAAE;cAEZ,QAAQ;eACP,MAAM;YACT,MAAM;wFAsNf,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCommands.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useCommands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGnD,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE;IAAE,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE;uBAK5F,MAAM,UAAU,MAAM;;;
|
|
1
|
+
{"version":3,"file":"useCommands.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useCommands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGnD,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE;IAAE,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE;uBAK5F,MAAM,UAAU,MAAM;;;EAiD1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useEditor.ts"],"names":[],"mappings":"AAmCA,wBAAgB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAzBC,CAAC;;;;;8FAIJ,CAAC;;;6BAErB,CAAC;;;;;;;;;;;;;;qDAJ+B,CAAC;;+CAGhC,CAAC;;;;2CAKJ,CAAC;;;
|
|
1
|
+
{"version":3,"file":"useEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useEditor.ts"],"names":[],"mappings":"AAmCA,wBAAgB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAzBC,CAAC;;;;;8FAIJ,CAAC;;;6BAErB,CAAC;;;;;;;;;;;;;;qDAJ+B,CAAC;;+CAGhC,CAAC;;;;2CAKJ,CAAC;;;gBA+QkB,QAAQ;;;0BAhNR,MAAM,GAAG,MAAM;;;;;;;;;EAuTlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditorKeyboard.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useEditorKeyboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AA8BxD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"useEditorKeyboard.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useEditorKeyboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AA8BxD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,GAAG,IAAI,CAyHhF"}
|
|
@@ -6,7 +6,134 @@ type __VLS_Props = {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
height?: number | string;
|
|
8
8
|
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
10
|
+
editor: {
|
|
11
|
+
state: {
|
|
12
|
+
content: string;
|
|
13
|
+
doc?: Document | undefined;
|
|
14
|
+
selection: {
|
|
15
|
+
readonly anchorNode: Node | null;
|
|
16
|
+
readonly anchorOffset: number;
|
|
17
|
+
readonly direction: string;
|
|
18
|
+
readonly focusNode: Node | null;
|
|
19
|
+
readonly focusOffset: number;
|
|
20
|
+
readonly isCollapsed: boolean;
|
|
21
|
+
readonly rangeCount: number;
|
|
22
|
+
readonly type: string;
|
|
23
|
+
addRange: (range: Range) => void;
|
|
24
|
+
collapse: (node: Node | null, offset?: number) => void;
|
|
25
|
+
collapseToEnd: () => void;
|
|
26
|
+
collapseToStart: () => void;
|
|
27
|
+
containsNode: (node: Node, allowPartialContainment?: boolean) => boolean;
|
|
28
|
+
deleteFromDocument: () => void;
|
|
29
|
+
empty: () => void;
|
|
30
|
+
extend: (node: Node, offset?: number) => void;
|
|
31
|
+
getRangeAt: (index: number) => Range;
|
|
32
|
+
modify: (alter?: string, direction?: string, granularity?: string) => void;
|
|
33
|
+
removeAllRanges: () => void;
|
|
34
|
+
removeRange: (range: Range) => void;
|
|
35
|
+
selectAllChildren: (node: Node) => void;
|
|
36
|
+
setBaseAndExtent: (anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number) => void;
|
|
37
|
+
setPosition: (node: Node | null, offset?: number) => void;
|
|
38
|
+
toString: () => string;
|
|
39
|
+
} | null;
|
|
40
|
+
selectedStyles: Set<string> & Omit<Set<string>, keyof Set<any>>;
|
|
41
|
+
isFullscreen: boolean;
|
|
42
|
+
isSplitView: boolean;
|
|
43
|
+
isCodeView: boolean;
|
|
44
|
+
hasInit: boolean;
|
|
45
|
+
undoStack: string[];
|
|
46
|
+
redoStack: string[];
|
|
47
|
+
rangeCount: number;
|
|
48
|
+
range: {
|
|
49
|
+
readonly commonAncestorContainer: Node;
|
|
50
|
+
cloneContents: () => DocumentFragment;
|
|
51
|
+
cloneRange: () => Range;
|
|
52
|
+
collapse: (toStart?: boolean) => void;
|
|
53
|
+
compareBoundaryPoints: (how: number, sourceRange: Range) => number;
|
|
54
|
+
comparePoint: (node: Node, offset: number) => number;
|
|
55
|
+
createContextualFragment: (string: string) => DocumentFragment;
|
|
56
|
+
deleteContents: () => void;
|
|
57
|
+
detach: () => void;
|
|
58
|
+
extractContents: () => DocumentFragment;
|
|
59
|
+
getBoundingClientRect: () => DOMRect;
|
|
60
|
+
getClientRects: () => DOMRectList;
|
|
61
|
+
insertNode: (node: Node) => void;
|
|
62
|
+
intersectsNode: (node: Node) => boolean;
|
|
63
|
+
isPointInRange: (node: Node, offset: number) => boolean;
|
|
64
|
+
selectNode: (node: Node) => void;
|
|
65
|
+
selectNodeContents: (node: Node) => void;
|
|
66
|
+
setEnd: (node: Node, offset: number) => void;
|
|
67
|
+
setEndAfter: (node: Node) => void;
|
|
68
|
+
setEndBefore: (node: Node) => void;
|
|
69
|
+
setStart: (node: Node, offset: number) => void;
|
|
70
|
+
setStartAfter: (node: Node) => void;
|
|
71
|
+
setStartBefore: (node: Node) => void;
|
|
72
|
+
surroundContents: (newParent: Node) => void;
|
|
73
|
+
toString: () => string;
|
|
74
|
+
readonly START_TO_START: 0;
|
|
75
|
+
readonly START_TO_END: 1;
|
|
76
|
+
readonly END_TO_END: 2;
|
|
77
|
+
readonly END_TO_START: 3;
|
|
78
|
+
readonly collapsed: boolean;
|
|
79
|
+
readonly endContainer: Node;
|
|
80
|
+
readonly endOffset: number;
|
|
81
|
+
readonly startContainer: Node;
|
|
82
|
+
readonly startOffset: number;
|
|
83
|
+
} | null;
|
|
84
|
+
modal: {
|
|
85
|
+
showModal: <T extends {
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
}>(options: import('../../../..').ModalOptions, slots?: {
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
}) => import('../../../..').ModalComponentProps<T> | undefined;
|
|
90
|
+
showModalForm: <T extends {
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
}>(options: import('../../../../plugins/modalTypes').ModalFormOptions<T>, slots?: {
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
}) => import('../../../../plugins/modalTypes').ModalFormComponentProps<T> | undefined;
|
|
95
|
+
hideModal: (index?: number) => void;
|
|
96
|
+
confirmModal: (options: import('../../../../plugins/modalTypes').ConfirmModalUserOptions) => Promise<boolean>;
|
|
97
|
+
};
|
|
98
|
+
debug?: {
|
|
99
|
+
debugger: {
|
|
100
|
+
logCommand: (command: string, value: string | undefined, state: any) => void;
|
|
101
|
+
logPaste: (data: DataTransfer, state: any) => void;
|
|
102
|
+
logKeyboard: (event: KeyboardEvent, state: any) => void;
|
|
103
|
+
logSelection: (state: any) => void;
|
|
104
|
+
logInput: (inputType: string, data: string | null, state: any) => void;
|
|
105
|
+
getSession: () => any;
|
|
106
|
+
clearSession: () => void;
|
|
107
|
+
downloadSession: () => void;
|
|
108
|
+
exportSession: () => string;
|
|
109
|
+
exportSessionWithPrompt: (userMessage?: string) => string;
|
|
110
|
+
};
|
|
111
|
+
logCommand: (command: string, value?: string) => void;
|
|
112
|
+
getSession: () => any;
|
|
113
|
+
clearSession: () => void;
|
|
114
|
+
downloadSession: () => void;
|
|
115
|
+
exportDebugWithPrompt: (message?: string) => string | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
};
|
|
118
|
+
init: (doc: Document) => void;
|
|
119
|
+
updateState: {
|
|
120
|
+
styles: () => void;
|
|
121
|
+
content: (source: "html" | "text") => void;
|
|
122
|
+
selection: () => void;
|
|
123
|
+
};
|
|
124
|
+
history: {
|
|
125
|
+
undo: () => void;
|
|
126
|
+
redo: () => void;
|
|
127
|
+
};
|
|
128
|
+
initDebugger: () => void;
|
|
129
|
+
cleanup: () => void;
|
|
130
|
+
};
|
|
131
|
+
commands: {
|
|
132
|
+
execute: (command: string, value?: string) => void;
|
|
133
|
+
isActive: (command: string) => boolean;
|
|
134
|
+
getValue: (command: string) => string | null;
|
|
135
|
+
};
|
|
136
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
137
|
"update:modelValue": (...args: any[]) => void;
|
|
11
138
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
139
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText/index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText/index.vue"],"names":[],"mappings":"AAmZA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAQpD,KAAK,WAAW,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,aAAa,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEARpI,CA1YkF;;;;;+FA0YlF,CAtYE;;;iCAsYF,CApY4B;;;;;;;;;;;;;;yDAoY5B,CA1Y+H;;mDA0Y/H,CArYG;;;;+CAqYH,CAjYyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAm2BzB,wBAUG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/utils/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/utils/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAInD,MAAM,WAAW,OAAO;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAA;IAC1C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,MAAM,GAAG,IAAI,CAAA;CAChD;AAED,MAAM,WAAW,eAAe;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAClD,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;IACtC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;CAC5C;AAoDD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,WAAW,GAAG,eAAe,CA4dzE;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,GAAG,eAAe,CAiBpG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/utils/selection.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,OAEtC;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,OAE3C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/utils/selection.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,OAEtC;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,OAE3C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,WA4EzD;AAED,MAAM,WAAW,aAAa;IAC7B,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,IAAI,CAAA;IACnB,WAAW,EAAE,IAAI,CAAA;IACjB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,iBAAiB,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;CACf;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,CAkClF;AAED,wBAAgB,gBAAgB,CAC/B,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,aAAa,EACnB,YAAY,CAAC,EAAE,IAAI,QAYnB;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,EAAE,CASlF"}
|