vdc-editor 0.1.21 → 0.1.24
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/lib/src/components/editor/ArticleEditor.vue.d.ts +30 -0
- package/lib/src/components/editor/DigitalNewsEditor.vue.d.ts +14 -0
- package/lib/src/components/ui/toast/use-toast.d.ts +349 -0
- package/lib/src/hooks/useStore.d.ts +4 -4
- package/lib/src/hooks/useSuperTextStore.d.ts +4 -4
- package/lib/src/index.d.ts +3 -1
- package/lib/vdc-editor.mjs +6808 -6746
- package/lib/vdc-editor.mjs.map +1 -1
- package/lib/vdc-editor.umd.js +54 -54
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EditorProps, EditorMode } from '../../type';
|
|
2
|
+
|
|
3
|
+
interface Props extends EditorProps {
|
|
4
|
+
mode: EditorMode.REPORT | EditorMode.STRAIGHT;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
7
|
+
mode: EditorMode;
|
|
8
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
|
+
mode: EditorMode;
|
|
10
|
+
}>>> & Readonly<{}>, {
|
|
11
|
+
mode: EditorMode.REPORT | EditorMode.STRAIGHT;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type __VLS_WithDefaults<P, D> = {
|
|
24
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
|
+
default: D[K];
|
|
26
|
+
}> : P[K];
|
|
27
|
+
};
|
|
28
|
+
type __VLS_Prettify<T> = {
|
|
29
|
+
[K in keyof T]: T[K];
|
|
30
|
+
} & {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EditorProps } from '../../type';
|
|
2
|
+
|
|
3
|
+
type Props = Omit<EditorProps, 'mode'>;
|
|
4
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export default _default;
|
|
6
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
7
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
8
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
9
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
10
|
+
} : {
|
|
11
|
+
type: import('vue').PropType<T[K]>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { Component, VNode } from 'vue';
|
|
2
|
+
import { ToastProps } from '.';
|
|
3
|
+
|
|
4
|
+
export type StringOrVNode = string | VNode | (() => VNode);
|
|
5
|
+
type ToasterToast = ToastProps & {
|
|
6
|
+
id: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: StringOrVNode;
|
|
9
|
+
action?: Component;
|
|
10
|
+
};
|
|
11
|
+
declare function useToast(): {
|
|
12
|
+
toasts: globalThis.ComputedRef<{
|
|
13
|
+
class?: import('vue').HTMLAttributes["class"];
|
|
14
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
15
|
+
onOpenChange?: ((value: boolean) => void) | undefined | undefined;
|
|
16
|
+
defaultOpen?: boolean | undefined;
|
|
17
|
+
forceMount?: boolean | undefined;
|
|
18
|
+
type?: "foreground" | "background" | undefined;
|
|
19
|
+
open?: boolean | undefined;
|
|
20
|
+
duration?: number | undefined;
|
|
21
|
+
asChild?: boolean | undefined;
|
|
22
|
+
as?: import('vue').FunctionalComponent<any, {}, any, {}> | {
|
|
23
|
+
new (...args: any[]): any;
|
|
24
|
+
__isFragment?: never;
|
|
25
|
+
__isTeleport?: never;
|
|
26
|
+
__isSuspense?: never;
|
|
27
|
+
} | import('radix-vue').AsTag | {
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
setup?: ((this: void, props: import('@vue/shared').LooseRequired<any>, ctx: {
|
|
30
|
+
attrs: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
slots: Readonly<{
|
|
34
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
37
|
+
expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
|
|
38
|
+
}) => any) | undefined;
|
|
39
|
+
name?: string | undefined;
|
|
40
|
+
template?: string | object | undefined;
|
|
41
|
+
render?: Function | undefined;
|
|
42
|
+
components?: Record<string, Component> | undefined;
|
|
43
|
+
directives?: Record<string, import('vue').Directive<any, any, string, string>> | undefined;
|
|
44
|
+
inheritAttrs?: boolean | undefined;
|
|
45
|
+
emits?: any;
|
|
46
|
+
slots?: {} | undefined;
|
|
47
|
+
expose?: string[] | undefined;
|
|
48
|
+
serverPrefetch?: (() => void | Promise<any>) | undefined;
|
|
49
|
+
compilerOptions?: {
|
|
50
|
+
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
51
|
+
whitespace?: "preserve" | "condense" | undefined;
|
|
52
|
+
comments?: boolean | undefined;
|
|
53
|
+
delimiters?: [string, string] | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
56
|
+
__isFragment?: never | undefined;
|
|
57
|
+
__isTeleport?: never | undefined;
|
|
58
|
+
__isSuspense?: never | undefined;
|
|
59
|
+
__defaults?: {} | undefined;
|
|
60
|
+
compatConfig?: {
|
|
61
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
62
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
63
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
64
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
65
|
+
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
66
|
+
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
67
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
68
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
69
|
+
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
70
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
71
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
72
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
73
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
74
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
75
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
76
|
+
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
77
|
+
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
78
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
79
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
80
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
81
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
82
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
83
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
84
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
85
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
86
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
87
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
88
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
89
|
+
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
90
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
91
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
92
|
+
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
93
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
94
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
95
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
96
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
97
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
98
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
99
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
100
|
+
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
101
|
+
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
102
|
+
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
103
|
+
MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3) | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
data?: ((this: any, vm: any) => any) | undefined;
|
|
106
|
+
computed?: import('vue').ComputedOptions | undefined;
|
|
107
|
+
methods?: import('vue').MethodOptions | undefined;
|
|
108
|
+
watch?: {
|
|
109
|
+
[x: string]: (string | import('vue').WatchCallback | ({
|
|
110
|
+
handler: import('vue').WatchCallback | string;
|
|
111
|
+
} & import('vue').WatchOptions<boolean>)) | (string | import('vue').WatchCallback | ({
|
|
112
|
+
handler: import('vue').WatchCallback | string;
|
|
113
|
+
} & import('vue').WatchOptions<boolean>))[];
|
|
114
|
+
} | undefined;
|
|
115
|
+
provide?: import('vue').ComponentProvideOptions | undefined;
|
|
116
|
+
inject?: {} | string[] | undefined;
|
|
117
|
+
filters?: Record<string, Function> | undefined;
|
|
118
|
+
mixins?: any[] | undefined;
|
|
119
|
+
extends?: any;
|
|
120
|
+
beforeCreate?: (() => void) | undefined;
|
|
121
|
+
created?: (() => void) | undefined;
|
|
122
|
+
beforeMount?: (() => void) | undefined;
|
|
123
|
+
mounted?: (() => void) | undefined;
|
|
124
|
+
beforeUpdate?: (() => void) | undefined;
|
|
125
|
+
updated?: (() => void) | undefined;
|
|
126
|
+
activated?: (() => void) | undefined;
|
|
127
|
+
deactivated?: (() => void) | undefined;
|
|
128
|
+
beforeDestroy?: (() => void) | undefined;
|
|
129
|
+
beforeUnmount?: (() => void) | undefined;
|
|
130
|
+
destroyed?: (() => void) | undefined;
|
|
131
|
+
unmounted?: (() => void) | undefined;
|
|
132
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | undefined;
|
|
133
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | undefined;
|
|
134
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | undefined;
|
|
135
|
+
delimiters?: [string, string] | undefined;
|
|
136
|
+
__differentiator?: string | number | symbol | undefined;
|
|
137
|
+
__isBuiltIn?: boolean | undefined;
|
|
138
|
+
__file?: string | undefined;
|
|
139
|
+
__name?: string | undefined;
|
|
140
|
+
i18n?: {
|
|
141
|
+
locale?: string | undefined;
|
|
142
|
+
fallbackLocale?: string | false | string[] | {
|
|
143
|
+
[x: string]: string[];
|
|
144
|
+
} | undefined;
|
|
145
|
+
messages?: {
|
|
146
|
+
[x: string]: import('@intlify/core-base').LocaleMessage<import('vue-i18n').VueMessageType>;
|
|
147
|
+
} | undefined;
|
|
148
|
+
flatJson?: boolean | undefined;
|
|
149
|
+
datetimeFormats?: {
|
|
150
|
+
[x: string]: import('vue-i18n').IntlDateTimeFormat;
|
|
151
|
+
} | undefined;
|
|
152
|
+
numberFormats?: {
|
|
153
|
+
[x: string]: import('vue-i18n').IntlNumberFormat;
|
|
154
|
+
} | undefined;
|
|
155
|
+
availableLocales?: import('vue-i18n').Locale[] | undefined;
|
|
156
|
+
modifiers?: import('vue-i18n').LinkedModifiers<import('vue-i18n').VueMessageType> | undefined;
|
|
157
|
+
missing?: import('vue-i18n').MissingHandler | undefined;
|
|
158
|
+
fallbackRoot?: boolean | undefined;
|
|
159
|
+
silentTranslationWarn?: boolean | RegExp | undefined;
|
|
160
|
+
silentFallbackWarn?: boolean | RegExp | undefined;
|
|
161
|
+
formatFallbackMessages?: boolean | undefined;
|
|
162
|
+
warnHtmlInMessage?: import('vue-i18n').WarnHtmlInMessageLevel | undefined;
|
|
163
|
+
escapeParameterHtml?: boolean | undefined;
|
|
164
|
+
sharedMessages?: import('vue-i18n').LocaleMessages<import('vue-i18n').VueMessageType> | undefined;
|
|
165
|
+
pluralizationRules?: import('@intlify/core-base').PluralizationRules | undefined;
|
|
166
|
+
postTranslation?: import('vue-i18n').PostTranslationHandler<import('vue-i18n').VueMessageType> | undefined;
|
|
167
|
+
sync?: boolean | undefined;
|
|
168
|
+
messageResolver?: import('vue-i18n').MessageResolver | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
__i18n?: {
|
|
171
|
+
locale: import('vue-i18n').Locale;
|
|
172
|
+
resource: import('vue-i18n').LocaleMessages<import('vue-i18n').VueMessageType>;
|
|
173
|
+
}[] | undefined;
|
|
174
|
+
__INTLIFY_META__?: string | undefined;
|
|
175
|
+
beforeRouteEnter?: (import('vue-router').TypesConfig extends Record<"beforeRouteEnter", infer T> ? T : import('vue-router').NavigationGuardWithThis<undefined>) | undefined;
|
|
176
|
+
beforeRouteUpdate?: (import('vue-router').TypesConfig extends Record<"beforeRouteUpdate", infer T> ? T : import('vue-router').NavigationGuard) | undefined;
|
|
177
|
+
beforeRouteLeave?: (import('vue-router').TypesConfig extends Record<"beforeRouteLeave", infer T> ? T : import('vue-router').NavigationGuard) | undefined;
|
|
178
|
+
} | undefined;
|
|
179
|
+
id: string;
|
|
180
|
+
title?: string | undefined;
|
|
181
|
+
description?: StringOrVNode | undefined;
|
|
182
|
+
action?: import('vue').FunctionalComponent<any, {}, any, {}> | {
|
|
183
|
+
new (...args: any[]): any;
|
|
184
|
+
__isFragment?: never;
|
|
185
|
+
__isTeleport?: never;
|
|
186
|
+
__isSuspense?: never;
|
|
187
|
+
} | {
|
|
188
|
+
[x: string]: any;
|
|
189
|
+
setup?: ((this: void, props: import('@vue/shared').LooseRequired<any>, ctx: {
|
|
190
|
+
attrs: {
|
|
191
|
+
[x: string]: unknown;
|
|
192
|
+
};
|
|
193
|
+
slots: Readonly<{
|
|
194
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
195
|
+
}>;
|
|
196
|
+
emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
197
|
+
expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
|
|
198
|
+
}) => any) | undefined;
|
|
199
|
+
name?: string | undefined;
|
|
200
|
+
template?: string | object | undefined;
|
|
201
|
+
render?: Function | undefined;
|
|
202
|
+
components?: Record<string, Component> | undefined;
|
|
203
|
+
directives?: Record<string, import('vue').Directive<any, any, string, string>> | undefined;
|
|
204
|
+
inheritAttrs?: boolean | undefined;
|
|
205
|
+
emits?: any;
|
|
206
|
+
slots?: {} | undefined;
|
|
207
|
+
expose?: string[] | undefined;
|
|
208
|
+
serverPrefetch?: (() => void | Promise<any>) | undefined;
|
|
209
|
+
compilerOptions?: {
|
|
210
|
+
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
211
|
+
whitespace?: "preserve" | "condense" | undefined;
|
|
212
|
+
comments?: boolean | undefined;
|
|
213
|
+
delimiters?: [string, string] | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
216
|
+
__isFragment?: never | undefined;
|
|
217
|
+
__isTeleport?: never | undefined;
|
|
218
|
+
__isSuspense?: never | undefined;
|
|
219
|
+
__defaults?: {} | undefined;
|
|
220
|
+
compatConfig?: {
|
|
221
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
222
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
223
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
224
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
225
|
+
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
226
|
+
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
227
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
228
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
229
|
+
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
230
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
231
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
232
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
233
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
234
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
235
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
236
|
+
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
237
|
+
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
238
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
239
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
240
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
241
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
242
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
243
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
244
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
245
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
246
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
247
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
248
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
249
|
+
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
250
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
251
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
252
|
+
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
253
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
254
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
255
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
256
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
257
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
258
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
259
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
260
|
+
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
261
|
+
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
262
|
+
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
263
|
+
MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3) | undefined;
|
|
264
|
+
} | undefined;
|
|
265
|
+
data?: ((this: any, vm: any) => any) | undefined;
|
|
266
|
+
computed?: import('vue').ComputedOptions | undefined;
|
|
267
|
+
methods?: import('vue').MethodOptions | undefined;
|
|
268
|
+
watch?: {
|
|
269
|
+
[x: string]: (string | import('vue').WatchCallback | ({
|
|
270
|
+
handler: import('vue').WatchCallback | string;
|
|
271
|
+
} & import('vue').WatchOptions<boolean>)) | (string | import('vue').WatchCallback | ({
|
|
272
|
+
handler: import('vue').WatchCallback | string;
|
|
273
|
+
} & import('vue').WatchOptions<boolean>))[];
|
|
274
|
+
} | undefined;
|
|
275
|
+
provide?: import('vue').ComponentProvideOptions | undefined;
|
|
276
|
+
inject?: {} | string[] | undefined;
|
|
277
|
+
filters?: Record<string, Function> | undefined;
|
|
278
|
+
mixins?: any[] | undefined;
|
|
279
|
+
extends?: any;
|
|
280
|
+
beforeCreate?: (() => void) | undefined;
|
|
281
|
+
created?: (() => void) | undefined;
|
|
282
|
+
beforeMount?: (() => void) | undefined;
|
|
283
|
+
mounted?: (() => void) | undefined;
|
|
284
|
+
beforeUpdate?: (() => void) | undefined;
|
|
285
|
+
updated?: (() => void) | undefined;
|
|
286
|
+
activated?: (() => void) | undefined;
|
|
287
|
+
deactivated?: (() => void) | undefined;
|
|
288
|
+
beforeDestroy?: (() => void) | undefined;
|
|
289
|
+
beforeUnmount?: (() => void) | undefined;
|
|
290
|
+
destroyed?: (() => void) | undefined;
|
|
291
|
+
unmounted?: (() => void) | undefined;
|
|
292
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | undefined;
|
|
293
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | undefined;
|
|
294
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | undefined;
|
|
295
|
+
delimiters?: [string, string] | undefined;
|
|
296
|
+
__differentiator?: string | number | symbol | undefined;
|
|
297
|
+
__isBuiltIn?: boolean | undefined;
|
|
298
|
+
__file?: string | undefined;
|
|
299
|
+
__name?: string | undefined;
|
|
300
|
+
i18n?: {
|
|
301
|
+
locale?: string | undefined;
|
|
302
|
+
fallbackLocale?: string | false | string[] | {
|
|
303
|
+
[x: string]: string[];
|
|
304
|
+
} | undefined;
|
|
305
|
+
messages?: {
|
|
306
|
+
[x: string]: import('@intlify/core-base').LocaleMessage<import('vue-i18n').VueMessageType>;
|
|
307
|
+
} | undefined;
|
|
308
|
+
flatJson?: boolean | undefined;
|
|
309
|
+
datetimeFormats?: {
|
|
310
|
+
[x: string]: import('vue-i18n').IntlDateTimeFormat;
|
|
311
|
+
} | undefined;
|
|
312
|
+
numberFormats?: {
|
|
313
|
+
[x: string]: import('vue-i18n').IntlNumberFormat;
|
|
314
|
+
} | undefined;
|
|
315
|
+
availableLocales?: import('vue-i18n').Locale[] | undefined;
|
|
316
|
+
modifiers?: import('vue-i18n').LinkedModifiers<import('vue-i18n').VueMessageType> | undefined;
|
|
317
|
+
missing?: import('vue-i18n').MissingHandler | undefined;
|
|
318
|
+
fallbackRoot?: boolean | undefined;
|
|
319
|
+
silentTranslationWarn?: boolean | RegExp | undefined;
|
|
320
|
+
silentFallbackWarn?: boolean | RegExp | undefined;
|
|
321
|
+
formatFallbackMessages?: boolean | undefined;
|
|
322
|
+
warnHtmlInMessage?: import('vue-i18n').WarnHtmlInMessageLevel | undefined;
|
|
323
|
+
escapeParameterHtml?: boolean | undefined;
|
|
324
|
+
sharedMessages?: import('vue-i18n').LocaleMessages<import('vue-i18n').VueMessageType> | undefined;
|
|
325
|
+
pluralizationRules?: import('@intlify/core-base').PluralizationRules | undefined;
|
|
326
|
+
postTranslation?: import('vue-i18n').PostTranslationHandler<import('vue-i18n').VueMessageType> | undefined;
|
|
327
|
+
sync?: boolean | undefined;
|
|
328
|
+
messageResolver?: import('vue-i18n').MessageResolver | undefined;
|
|
329
|
+
} | undefined;
|
|
330
|
+
__i18n?: {
|
|
331
|
+
locale: import('vue-i18n').Locale;
|
|
332
|
+
resource: import('vue-i18n').LocaleMessages<import('vue-i18n').VueMessageType>;
|
|
333
|
+
}[] | undefined;
|
|
334
|
+
__INTLIFY_META__?: string | undefined;
|
|
335
|
+
beforeRouteEnter?: (import('vue-router').TypesConfig extends Record<"beforeRouteEnter", infer T> ? T : import('vue-router').NavigationGuardWithThis<undefined>) | undefined;
|
|
336
|
+
beforeRouteUpdate?: (import('vue-router').TypesConfig extends Record<"beforeRouteUpdate", infer T> ? T : import('vue-router').NavigationGuard) | undefined;
|
|
337
|
+
beforeRouteLeave?: (import('vue-router').TypesConfig extends Record<"beforeRouteLeave", infer T> ? T : import('vue-router').NavigationGuard) | undefined;
|
|
338
|
+
} | undefined;
|
|
339
|
+
}[]>;
|
|
340
|
+
toast: typeof toast;
|
|
341
|
+
dismiss: (toastId?: string) => void;
|
|
342
|
+
};
|
|
343
|
+
type Toast = Omit<ToasterToast, 'id'>;
|
|
344
|
+
declare function toast(props: Toast): {
|
|
345
|
+
id: string;
|
|
346
|
+
dismiss: () => void;
|
|
347
|
+
update: (props: ToasterToast) => void;
|
|
348
|
+
};
|
|
349
|
+
export { toast, useToast };
|
|
@@ -146,10 +146,10 @@ export declare const useTiptapStore: () => {
|
|
|
146
146
|
updatePositionSuperText: (state: Pick<import('./useSuperTextStore').ModalState, "position" | "id" | "pageId">) => void;
|
|
147
147
|
addMoreSuperText: (text: string, position?: DOMRect) => string;
|
|
148
148
|
addSuperText: (state: import('./useSuperTextStore').ModalState) => void;
|
|
149
|
-
onUpdatePositionEvent: import('@vueuse/
|
|
150
|
-
onUpdatePositionTrigger: import('@vueuse/
|
|
151
|
-
onHoverEvent: import('@vueuse/
|
|
152
|
-
onHoverEventTrigger: import('@vueuse/
|
|
149
|
+
onUpdatePositionEvent: import('@vueuse/shared').EventHookOn<any>;
|
|
150
|
+
onUpdatePositionTrigger: import('@vueuse/shared').EventHookTrigger<any>;
|
|
151
|
+
onHoverEvent: import('@vueuse/shared').EventHookOn<any>;
|
|
152
|
+
onHoverEventTrigger: import('@vueuse/shared').EventHookTrigger<any>;
|
|
153
153
|
};
|
|
154
154
|
checkSpellStore: {
|
|
155
155
|
languages: "ko" | "en";
|
|
@@ -14,8 +14,8 @@ export declare const useSuperTextStore: () => {
|
|
|
14
14
|
updatePositionSuperText: (state: Pick<ModalState, "position" | "id" | "pageId">) => void;
|
|
15
15
|
addMoreSuperText: (text: string, position?: DOMRect) => string;
|
|
16
16
|
addSuperText: (state: ModalState) => void;
|
|
17
|
-
onUpdatePositionEvent: import('@vueuse/
|
|
18
|
-
onUpdatePositionTrigger: import('@vueuse/
|
|
19
|
-
onHoverEvent: import('@vueuse/
|
|
20
|
-
onHoverEventTrigger: import('@vueuse/
|
|
17
|
+
onUpdatePositionEvent: import('@vueuse/shared').EventHookOn<any>;
|
|
18
|
+
onUpdatePositionTrigger: import('@vueuse/shared').EventHookTrigger<any>;
|
|
19
|
+
onHoverEvent: import('@vueuse/shared').EventHookOn<any>;
|
|
20
|
+
onHoverEventTrigger: import('@vueuse/shared').EventHookTrigger<any>;
|
|
21
21
|
};
|
package/lib/src/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Plugin } from 'vue';
|
|
2
2
|
import { default as CoreEditor } from './components/editor/CoreEditor.vue';
|
|
3
|
+
import { default as ArticleEditor } from './components/editor/ArticleEditor.vue';
|
|
4
|
+
import { default as DigitalNewsEditor } from './components/editor/DigitalNewsEditor.vue';
|
|
3
5
|
|
|
4
6
|
declare const SBSEditorPlugin: Plugin;
|
|
5
7
|
export * as extension from './extensions';
|
|
@@ -9,5 +11,5 @@ export type * from './type';
|
|
|
9
11
|
export { useEditor } from '@tiptap/vue-3';
|
|
10
12
|
export { type Editor as EditorInstance } from '@tiptap/core';
|
|
11
13
|
export { enUS, koKR } from './locales';
|
|
12
|
-
export { SBSEditorPlugin, CoreEditor };
|
|
14
|
+
export { SBSEditorPlugin, CoreEditor, ArticleEditor, DigitalNewsEditor };
|
|
13
15
|
export default SBSEditorPlugin;
|