@tmagic/editor 1.1.4 → 1.1.6

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.
@@ -16,28 +16,15 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { reactive, toRaw } from 'vue';
19
+ import { reactive } from 'vue';
20
20
 
21
21
  import type StageCore from '@tmagic/stage';
22
22
 
23
23
  import editorService from '../services/editor';
24
- import type { GetColumnWidth, SetColumnWidth, StageRect, UiState } from '../type';
24
+ import type { StageRect, UiState } from '../type';
25
25
 
26
26
  import BaseService from './BaseService';
27
27
 
28
- const DEFAULT_LEFT_COLUMN_WIDTH = 310;
29
- const MIN_LEFT_COLUMN_WIDTH = 45;
30
- const DEFAULT_RIGHT_COLUMN_WIDTH = 480;
31
- const MIN_RIGHT_COLUMN_WIDTH = 1;
32
-
33
- const COLUMN_WIDTH_STORAGE_KEY = '$MagicEditorColumnWidthData';
34
-
35
- const defaultColumnWidth = {
36
- left: DEFAULT_LEFT_COLUMN_WIDTH,
37
- center: globalThis.document.body.clientWidth - DEFAULT_LEFT_COLUMN_WIDTH - DEFAULT_RIGHT_COLUMN_WIDTH,
38
- right: DEFAULT_RIGHT_COLUMN_WIDTH,
39
- };
40
-
41
28
  const state = reactive<UiState>({
42
29
  uiSelectMode: false,
43
30
  showSrc: false,
@@ -50,7 +37,11 @@ const state = reactive<UiState>({
50
37
  width: 375,
51
38
  height: 817,
52
39
  },
53
- columnWidth: defaultColumnWidth,
40
+ columnWidth: {
41
+ left: 0,
42
+ right: 0,
43
+ center: 0,
44
+ },
54
45
  showGuides: true,
55
46
  showRule: true,
56
47
  propsPanelSize: 'small',
@@ -59,22 +50,12 @@ const state = reactive<UiState>({
59
50
 
60
51
  class Ui extends BaseService {
61
52
  constructor() {
62
- super(['initColumnWidth', 'zoom', 'calcZoom']);
63
- globalThis.addEventListener('resize', () => {
64
- this.setColumnWidth({
65
- center: 'auto',
66
- });
67
- });
53
+ super(['zoom', 'calcZoom']);
68
54
  }
69
55
 
70
56
  public set<T = any>(name: keyof UiState, value: T) {
71
57
  const mask = editorService.get<StageCore>('stage')?.mask;
72
58
 
73
- if (name === 'columnWidth') {
74
- this.setColumnWidth(value as unknown as SetColumnWidth);
75
- return;
76
- }
77
-
78
59
  if (name === 'stageRect') {
79
60
  this.setStageRect(value as unknown as StageRect);
80
61
  return;
@@ -95,18 +76,6 @@ class Ui extends BaseService {
95
76
  return (state as any)[name];
96
77
  }
97
78
 
98
- public async initColumnWidth() {
99
- const columnWidthCacheData = globalThis.localStorage.getItem(COLUMN_WIDTH_STORAGE_KEY);
100
- if (columnWidthCacheData) {
101
- try {
102
- const columnWidthCache = JSON.parse(columnWidthCacheData);
103
- this.setColumnWidth(columnWidthCache);
104
- } catch (e) {
105
- console.error(e);
106
- }
107
- }
108
- }
109
-
110
79
  public async zoom(zoom: number) {
111
80
  this.set('zoom', (this.get<number>('zoom') * 100 + zoom * 100) / 100);
112
81
  if (this.get<number>('zoom') < 0.1) this.set('zoom', 0.1);
@@ -132,36 +101,6 @@ class Ui extends BaseService {
132
101
  this.removeAllListeners();
133
102
  }
134
103
 
135
- private setColumnWidth({ left, center, right }: SetColumnWidth) {
136
- const columnWidth = {
137
- ...toRaw(this.get<GetColumnWidth>('columnWidth')),
138
- };
139
-
140
- if (left) {
141
- columnWidth.left = Math.max(left, MIN_LEFT_COLUMN_WIDTH);
142
- }
143
-
144
- if (right) {
145
- columnWidth.right = Math.max(right, MIN_RIGHT_COLUMN_WIDTH);
146
- }
147
-
148
- if (!center || center === 'auto') {
149
- const bodyWidth = globalThis.document.body.clientWidth;
150
- columnWidth.center = bodyWidth - (columnWidth?.left || 0) - (columnWidth?.right || 0);
151
- if (columnWidth.center <= 0) {
152
- columnWidth.left = defaultColumnWidth.left;
153
- columnWidth.center = defaultColumnWidth.center;
154
- columnWidth.right = defaultColumnWidth.right;
155
- }
156
- } else {
157
- columnWidth.center = center;
158
- }
159
-
160
- globalThis.localStorage.setItem(COLUMN_WIDTH_STORAGE_KEY, JSON.stringify(columnWidth));
161
-
162
- state.columnWidth = columnWidth;
163
- }
164
-
165
104
  private async setStageRect(value: StageRect) {
166
105
  state.stageRect = {
167
106
  ...state.stageRect,
@@ -8,7 +8,7 @@ declare const _default: {
8
8
  eventType: 'mousedown' | 'mouseup' | 'click';
9
9
  }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
10
  data?: MenuButton | MenuComponent | undefined;
11
- eventType?: "click" | "mousedown" | "mouseup" | undefined;
11
+ eventType?: "mousedown" | "click" | "mouseup" | undefined;
12
12
  }>, {
13
13
  data: () => {
14
14
  type: string;
@@ -31,7 +31,7 @@ declare const _default: {
31
31
  $el: any;
32
32
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
33
33
  data?: MenuButton | MenuComponent | undefined;
34
- eventType?: "click" | "mousedown" | "mouseup" | undefined;
34
+ eventType?: "mousedown" | "click" | "mouseup" | undefined;
35
35
  }>, {
36
36
  data: () => {
37
37
  type: string;
@@ -63,7 +63,7 @@ declare const _default: {
63
63
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
64
64
  } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
65
65
  data?: MenuButton | MenuComponent | undefined;
66
- eventType?: "click" | "mousedown" | "mouseup" | undefined;
66
+ eventType?: "mousedown" | "click" | "mouseup" | undefined;
67
67
  }>, {
68
68
  data: () => {
69
69
  type: string;
@@ -76,7 +76,7 @@ declare const _default: {
76
76
  __isSuspense?: undefined;
77
77
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
78
78
  data?: MenuButton | MenuComponent | undefined;
79
- eventType?: "click" | "mousedown" | "mouseup" | undefined;
79
+ eventType?: "mousedown" | "click" | "mouseup" | undefined;
80
80
  }>, {
81
81
  data: () => {
82
82
  type: string;
@@ -1,23 +1,91 @@
1
- declare const _default: import("vue").DefineComponent<Readonly<{
2
- name?: any;
3
- model?: any;
4
- config?: any;
5
- prop?: any;
6
- }>, {
7
- height: import("vue").ComputedRef<string>;
8
- language: import("vue").ComputedRef<any>;
9
- save(v: string): void;
10
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
11
- name?: any;
12
- model?: any;
13
- config?: any;
14
- prop?: any;
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ model: any;
7
+ name: string;
8
+ config: {
9
+ language?: string | undefined;
10
+ };
11
+ prop: string;
12
+ }>>> & {
13
+ onChange?: ((...args: any[]) => any) | undefined;
14
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
15
+ $attrs: {
16
+ [x: string]: unknown;
17
+ };
18
+ $refs: {
19
+ [x: string]: unknown;
20
+ };
21
+ $slots: Readonly<{
22
+ [name: string]: import("vue").Slot | undefined;
23
+ }>;
24
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
25
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
26
+ $emit: (event: "change", ...args: any[]) => void;
27
+ $el: any;
28
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
29
+ model: any;
30
+ name: string;
31
+ config: {
32
+ language?: string | undefined;
33
+ };
34
+ prop: string;
35
+ }>>> & {
36
+ onChange?: ((...args: any[]) => any) | undefined;
37
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], string, {}> & {
38
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
39
+ created?: ((() => void) | (() => void)[]) | undefined;
40
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
41
+ mounted?: ((() => void) | (() => void)[]) | undefined;
42
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
43
+ updated?: ((() => void) | (() => void)[]) | undefined;
44
+ activated?: ((() => void) | (() => void)[]) | undefined;
45
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
46
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
47
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
48
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
49
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
50
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
51
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
52
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
53
+ };
54
+ $forceUpdate: () => void;
55
+ $nextTick: typeof import("vue").nextTick;
56
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
57
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
58
+ model: any;
59
+ name: string;
60
+ config: {
61
+ language?: string | undefined;
62
+ };
63
+ prop: string;
64
+ }>>> & {
65
+ onChange?: ((...args: any[]) => any) | undefined;
66
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
67
+ __isFragment?: undefined;
68
+ __isTeleport?: undefined;
69
+ __isSuspense?: undefined;
70
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
71
+ model: any;
72
+ name: string;
73
+ config: {
74
+ language?: string | undefined;
75
+ };
76
+ prop: string;
15
77
  }>>> & {
16
78
  onChange?: ((...args: any[]) => any) | undefined;
17
- }, {
18
- readonly name?: any;
19
- readonly model?: any;
20
- readonly config?: any;
21
- readonly prop?: any;
22
- }>;
79
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
80
+ $slots: {};
81
+ });
23
82
  export default _default;
83
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
84
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
85
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
86
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
87
+ } : {
88
+ type: import('vue').PropType<T[K]>;
89
+ required: true;
90
+ };
91
+ };
@@ -1,52 +1,103 @@
1
- import { PropType } from 'vue';
2
- interface CodeLinkConfig {
3
- type: 'code-link';
4
- name: string;
5
- text?: string;
6
- formTitle?: string;
7
- }
8
- declare const _default: import("vue").DefineComponent<{
9
- config: {
10
- type: PropType<CodeLinkConfig>;
11
- };
12
- model: {
13
- type: ObjectConstructor;
14
- };
15
- name: {
16
- type: StringConstructor;
17
- };
18
- prop: {
19
- type: StringConstructor;
20
- };
21
- }, {
22
- modelValue: import("vue").Ref<{
23
- form: Record<string, any>;
24
- }>;
25
- formConfig: import("vue").ComputedRef<{
26
- text: string;
27
- type: string;
28
- form: {
29
- name: string | undefined;
30
- type: string;
31
- }[];
32
- name?: string | undefined;
33
- formTitle?: string | undefined;
34
- }>;
35
- changeHandler(v: Record<string, any>): void;
36
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ config: {
7
+ type: 'code-link';
8
+ name: string;
9
+ text?: string;
10
+ formTitle?: string;
11
+ };
12
+ model: any;
13
+ name: string;
14
+ prop: string;
15
+ }>>> & {
16
+ onChange?: ((...args: any[]) => any) | undefined;
17
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
18
+ $attrs: {
19
+ [x: string]: unknown;
20
+ };
21
+ $refs: {
22
+ [x: string]: unknown;
23
+ };
24
+ $slots: Readonly<{
25
+ [name: string]: import("vue").Slot | undefined;
26
+ }>;
27
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
28
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
29
+ $emit: (event: "change", ...args: any[]) => void;
30
+ $el: any;
31
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
32
+ config: {
33
+ type: 'code-link';
34
+ name: string;
35
+ text?: string;
36
+ formTitle?: string;
37
+ };
38
+ model: any;
39
+ name: string;
40
+ prop: string;
41
+ }>>> & {
42
+ onChange?: ((...args: any[]) => any) | undefined;
43
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], string, {}> & {
44
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
45
+ created?: ((() => void) | (() => void)[]) | undefined;
46
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
47
+ mounted?: ((() => void) | (() => void)[]) | undefined;
48
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
49
+ updated?: ((() => void) | (() => void)[]) | undefined;
50
+ activated?: ((() => void) | (() => void)[]) | undefined;
51
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
52
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
53
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
54
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
55
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
56
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
57
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
58
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
59
+ };
60
+ $forceUpdate: () => void;
61
+ $nextTick: typeof import("vue").nextTick;
62
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
63
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
64
+ config: {
65
+ type: 'code-link';
66
+ name: string;
67
+ text?: string;
68
+ formTitle?: string;
69
+ };
70
+ model: any;
71
+ name: string;
72
+ prop: string;
73
+ }>>> & {
74
+ onChange?: ((...args: any[]) => any) | undefined;
75
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
76
+ __isFragment?: undefined;
77
+ __isTeleport?: undefined;
78
+ __isSuspense?: undefined;
79
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
37
80
  config: {
38
- type: PropType<CodeLinkConfig>;
81
+ type: 'code-link';
82
+ name: string;
83
+ text?: string;
84
+ formTitle?: string;
39
85
  };
40
- model: {
41
- type: ObjectConstructor;
42
- };
43
- name: {
44
- type: StringConstructor;
45
- };
46
- prop: {
47
- type: StringConstructor;
48
- };
49
- }>> & {
86
+ model: any;
87
+ name: string;
88
+ prop: string;
89
+ }>>> & {
50
90
  onChange?: ((...args: any[]) => any) | undefined;
51
- }, {}>;
91
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
92
+ $slots: {};
93
+ });
52
94
  export default _default;
95
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
96
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
97
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
98
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
99
+ } : {
100
+ type: import('vue').PropType<T[K]>;
101
+ required: true;
102
+ };
103
+ };
@@ -1,22 +1,90 @@
1
- import type { MApp } from '@tmagic/schema';
2
- import { GetColumnWidth } from '../type';
3
- declare const _default: import("vue").DefineComponent<{
4
- codeOptions: {
5
- type: ObjectConstructor;
6
- default: () => {};
7
- };
8
- }, {
9
- root: import("vue").ComputedRef<MApp | undefined>;
10
- pageLength: import("vue").ComputedRef<number>;
11
- showSrc: import("vue").ComputedRef<boolean | undefined>;
12
- columnWidth: import("vue").ComputedRef<GetColumnWidth | undefined>;
13
- saveCode(value: string): void;
14
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
- codeOptions: {
16
- type: ObjectConstructor;
17
- default: () => {};
18
- };
19
- }>>, {
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ codeOptions: Record<string, any>;
7
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
+ codeOptions?: Record<string, any> | undefined;
9
+ }>, {
10
+ codeOptions: () => {};
11
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "codeOptions">;
12
+ $attrs: {
13
+ [x: string]: unknown;
14
+ };
15
+ $refs: {
16
+ [x: string]: unknown;
17
+ };
18
+ $slots: Readonly<{
19
+ [name: string]: import("vue").Slot | undefined;
20
+ }>;
21
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
22
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
23
+ $emit: (event: string, ...args: any[]) => void;
24
+ $el: any;
25
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
26
+ codeOptions?: Record<string, any> | undefined;
27
+ }>, {
28
+ codeOptions: () => {};
29
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
30
+ codeOptions: Record<string, any>;
31
+ }> & {
32
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
33
+ created?: ((() => void) | (() => void)[]) | undefined;
34
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
35
+ mounted?: ((() => void) | (() => void)[]) | undefined;
36
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
37
+ updated?: ((() => void) | (() => void)[]) | undefined;
38
+ activated?: ((() => void) | (() => void)[]) | undefined;
39
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
40
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
41
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
42
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
43
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
44
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
45
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
46
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
47
+ };
48
+ $forceUpdate: () => void;
49
+ $nextTick: typeof import("vue").nextTick;
50
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
51
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
52
+ codeOptions?: Record<string, any> | undefined;
53
+ }>, {
54
+ codeOptions: () => {};
55
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
56
+ __isFragment?: undefined;
57
+ __isTeleport?: undefined;
58
+ __isSuspense?: undefined;
59
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
60
+ codeOptions?: Record<string, any> | undefined;
61
+ }>, {
62
+ codeOptions: () => {};
63
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
20
64
  codeOptions: Record<string, any>;
21
- }>;
65
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
66
+ $slots: {
67
+ nav: (_: {
68
+ class: string;
69
+ }) => any;
70
+ sidebar: (_: {}) => any;
71
+ workspace: (_: {}) => any;
72
+ empty: (_: {}) => any;
73
+ 'props-panel': (_: {}) => any;
74
+ };
75
+ });
22
76
  export default _default;
77
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
78
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
79
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
80
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
81
+ } : {
82
+ type: import('vue').PropType<T[K]>;
83
+ required: true;
84
+ };
85
+ };
86
+ declare type __VLS_WithDefaults<P, D> = {
87
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
88
+ default: D[K];
89
+ } : P[K];
90
+ };