@qodalis/vue-cli 2.0.0-beta.3 → 2.0.0-beta.5

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.
@@ -0,0 +1,269 @@
1
+ import * as vue from 'vue';
2
+ import { PropType, InjectionKey, Ref } from 'vue';
3
+ import { ICliModule, ICliCommandProcessor, CliEngineSnapshot, CliPanelConfig } from '@qodalis/cli-core';
4
+ import { CliEngineOptions, CliEngine } from '@qodalis/cli';
5
+ export { CliEngine, CliEngineOptions } from '@qodalis/cli';
6
+
7
+ declare const Cli: vue.DefineComponent<vue.ExtractPropTypes<{
8
+ modules: {
9
+ type: PropType<ICliModule[]>;
10
+ default: undefined;
11
+ };
12
+ processors: {
13
+ type: PropType<ICliCommandProcessor[]>;
14
+ default: undefined;
15
+ };
16
+ options: {
17
+ type: PropType<CliEngineOptions>;
18
+ default: undefined;
19
+ };
20
+ services: {
21
+ type: PropType<Record<string, any>>;
22
+ default: undefined;
23
+ };
24
+ snapshot: {
25
+ type: PropType<CliEngineSnapshot>;
26
+ default: undefined;
27
+ };
28
+ style: {
29
+ type: PropType<Record<string, string>>;
30
+ default: undefined;
31
+ };
32
+ class: {
33
+ type: StringConstructor;
34
+ default: undefined;
35
+ };
36
+ }>, (() => null) | (() => vue.VNode<vue.RendererNode, vue.RendererElement, {
37
+ [key: string]: any;
38
+ }>), {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "ready"[], "ready", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
39
+ modules: {
40
+ type: PropType<ICliModule[]>;
41
+ default: undefined;
42
+ };
43
+ processors: {
44
+ type: PropType<ICliCommandProcessor[]>;
45
+ default: undefined;
46
+ };
47
+ options: {
48
+ type: PropType<CliEngineOptions>;
49
+ default: undefined;
50
+ };
51
+ services: {
52
+ type: PropType<Record<string, any>>;
53
+ default: undefined;
54
+ };
55
+ snapshot: {
56
+ type: PropType<CliEngineSnapshot>;
57
+ default: undefined;
58
+ };
59
+ style: {
60
+ type: PropType<Record<string, string>>;
61
+ default: undefined;
62
+ };
63
+ class: {
64
+ type: StringConstructor;
65
+ default: undefined;
66
+ };
67
+ }>> & Readonly<{
68
+ onReady?: ((...args: any[]) => any) | undefined;
69
+ }>, {
70
+ modules: ICliModule[];
71
+ processors: ICliCommandProcessor[];
72
+ options: CliEngineOptions;
73
+ services: Record<string, any>;
74
+ snapshot: CliEngineSnapshot;
75
+ style: Record<string, string>;
76
+ class: string;
77
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
78
+
79
+ type CliPanelOptions = CliEngineOptions & CliPanelConfig;
80
+ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
81
+ options: {
82
+ type: PropType<CliPanelOptions>;
83
+ default: undefined;
84
+ };
85
+ modules: {
86
+ type: PropType<ICliModule[]>;
87
+ default: undefined;
88
+ };
89
+ processors: {
90
+ type: PropType<ICliCommandProcessor[]>;
91
+ default: undefined;
92
+ };
93
+ services: {
94
+ type: PropType<Record<string, any>>;
95
+ default: undefined;
96
+ };
97
+ onClose: {
98
+ type: PropType<() => void>;
99
+ default: undefined;
100
+ };
101
+ style: {
102
+ type: PropType<Record<string, string>>;
103
+ default: undefined;
104
+ };
105
+ class: {
106
+ type: StringConstructor;
107
+ default: undefined;
108
+ };
109
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
110
+ [key: string]: any;
111
+ }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
112
+ options: {
113
+ type: PropType<CliPanelOptions>;
114
+ default: undefined;
115
+ };
116
+ modules: {
117
+ type: PropType<ICliModule[]>;
118
+ default: undefined;
119
+ };
120
+ processors: {
121
+ type: PropType<ICliCommandProcessor[]>;
122
+ default: undefined;
123
+ };
124
+ services: {
125
+ type: PropType<Record<string, any>>;
126
+ default: undefined;
127
+ };
128
+ onClose: {
129
+ type: PropType<() => void>;
130
+ default: undefined;
131
+ };
132
+ style: {
133
+ type: PropType<Record<string, string>>;
134
+ default: undefined;
135
+ };
136
+ class: {
137
+ type: StringConstructor;
138
+ default: undefined;
139
+ };
140
+ }>> & Readonly<{}>, {
141
+ modules: ICliModule[];
142
+ processors: ICliCommandProcessor[];
143
+ options: CliPanelOptions;
144
+ services: Record<string, any>;
145
+ style: Record<string, string>;
146
+ class: string;
147
+ onClose: () => void;
148
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
149
+
150
+ declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
151
+ modules: {
152
+ type: PropType<ICliModule[]>;
153
+ default: undefined;
154
+ };
155
+ processors: {
156
+ type: PropType<ICliCommandProcessor[]>;
157
+ default: undefined;
158
+ };
159
+ options: {
160
+ type: PropType<CliEngineOptions>;
161
+ default: undefined;
162
+ };
163
+ services: {
164
+ type: PropType<Record<string, any>>;
165
+ default: undefined;
166
+ };
167
+ style: {
168
+ type: PropType<Record<string, string>>;
169
+ default: undefined;
170
+ };
171
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
172
+ [key: string]: any;
173
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "ready"[], "ready", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
174
+ modules: {
175
+ type: PropType<ICliModule[]>;
176
+ default: undefined;
177
+ };
178
+ processors: {
179
+ type: PropType<ICliCommandProcessor[]>;
180
+ default: undefined;
181
+ };
182
+ options: {
183
+ type: PropType<CliEngineOptions>;
184
+ default: undefined;
185
+ };
186
+ services: {
187
+ type: PropType<Record<string, any>>;
188
+ default: undefined;
189
+ };
190
+ style: {
191
+ type: PropType<Record<string, string>>;
192
+ default: undefined;
193
+ };
194
+ }>> & Readonly<{
195
+ onReady?: ((...args: any[]) => any) | undefined;
196
+ }>, {
197
+ modules: ICliModule[];
198
+ processors: ICliCommandProcessor[];
199
+ options: CliEngineOptions;
200
+ services: Record<string, any>;
201
+ style: Record<string, string>;
202
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
203
+
204
+ interface CliConfigValue {
205
+ modules?: ICliModule[];
206
+ processors?: ICliCommandProcessor[];
207
+ options?: CliEngineOptions;
208
+ services?: Record<string, any>;
209
+ }
210
+ declare const CliConfigKey: InjectionKey<CliConfigValue>;
211
+ declare const CliConfigProvider: vue.DefineComponent<vue.ExtractPropTypes<{
212
+ modules: {
213
+ type: PropType<ICliModule[]>;
214
+ default: undefined;
215
+ };
216
+ processors: {
217
+ type: PropType<ICliCommandProcessor[]>;
218
+ default: undefined;
219
+ };
220
+ options: {
221
+ type: PropType<CliEngineOptions>;
222
+ default: undefined;
223
+ };
224
+ services: {
225
+ type: PropType<Record<string, any>>;
226
+ default: undefined;
227
+ };
228
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
229
+ [key: string]: any;
230
+ }>[] | undefined, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
231
+ modules: {
232
+ type: PropType<ICliModule[]>;
233
+ default: undefined;
234
+ };
235
+ processors: {
236
+ type: PropType<ICliCommandProcessor[]>;
237
+ default: undefined;
238
+ };
239
+ options: {
240
+ type: PropType<CliEngineOptions>;
241
+ default: undefined;
242
+ };
243
+ services: {
244
+ type: PropType<Record<string, any>>;
245
+ default: undefined;
246
+ };
247
+ }>> & Readonly<{}>, {
248
+ modules: ICliModule[];
249
+ processors: ICliCommandProcessor[];
250
+ options: CliEngineOptions;
251
+ services: Record<string, any>;
252
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
253
+
254
+ interface CliContextValue {
255
+ engine: Ref<CliEngine | null>;
256
+ }
257
+ declare const CliInjectionKey: InjectionKey<CliContextValue>;
258
+
259
+ declare function useCli(): CliContextValue;
260
+
261
+ interface UseCliEngineConfig {
262
+ modules?: ICliModule[];
263
+ processors?: ICliCommandProcessor[];
264
+ options?: CliEngineOptions;
265
+ services?: Record<string, any>;
266
+ }
267
+ declare function useCliEngine(containerRef: Ref<HTMLElement | null>, config?: UseCliEngineConfig): Ref<CliEngine | null>;
268
+
269
+ export { Cli, CliConfigKey, CliConfigProvider, type CliConfigValue, type CliContextValue, CliInjectionKey, CliPanel, type CliPanelOptions, CliProvider, type UseCliEngineConfig, useCli, useCliEngine };
@@ -0,0 +1,269 @@
1
+ import * as vue from 'vue';
2
+ import { PropType, InjectionKey, Ref } from 'vue';
3
+ import { ICliModule, ICliCommandProcessor, CliEngineSnapshot, CliPanelConfig } from '@qodalis/cli-core';
4
+ import { CliEngineOptions, CliEngine } from '@qodalis/cli';
5
+ export { CliEngine, CliEngineOptions } from '@qodalis/cli';
6
+
7
+ declare const Cli: vue.DefineComponent<vue.ExtractPropTypes<{
8
+ modules: {
9
+ type: PropType<ICliModule[]>;
10
+ default: undefined;
11
+ };
12
+ processors: {
13
+ type: PropType<ICliCommandProcessor[]>;
14
+ default: undefined;
15
+ };
16
+ options: {
17
+ type: PropType<CliEngineOptions>;
18
+ default: undefined;
19
+ };
20
+ services: {
21
+ type: PropType<Record<string, any>>;
22
+ default: undefined;
23
+ };
24
+ snapshot: {
25
+ type: PropType<CliEngineSnapshot>;
26
+ default: undefined;
27
+ };
28
+ style: {
29
+ type: PropType<Record<string, string>>;
30
+ default: undefined;
31
+ };
32
+ class: {
33
+ type: StringConstructor;
34
+ default: undefined;
35
+ };
36
+ }>, (() => null) | (() => vue.VNode<vue.RendererNode, vue.RendererElement, {
37
+ [key: string]: any;
38
+ }>), {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "ready"[], "ready", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
39
+ modules: {
40
+ type: PropType<ICliModule[]>;
41
+ default: undefined;
42
+ };
43
+ processors: {
44
+ type: PropType<ICliCommandProcessor[]>;
45
+ default: undefined;
46
+ };
47
+ options: {
48
+ type: PropType<CliEngineOptions>;
49
+ default: undefined;
50
+ };
51
+ services: {
52
+ type: PropType<Record<string, any>>;
53
+ default: undefined;
54
+ };
55
+ snapshot: {
56
+ type: PropType<CliEngineSnapshot>;
57
+ default: undefined;
58
+ };
59
+ style: {
60
+ type: PropType<Record<string, string>>;
61
+ default: undefined;
62
+ };
63
+ class: {
64
+ type: StringConstructor;
65
+ default: undefined;
66
+ };
67
+ }>> & Readonly<{
68
+ onReady?: ((...args: any[]) => any) | undefined;
69
+ }>, {
70
+ modules: ICliModule[];
71
+ processors: ICliCommandProcessor[];
72
+ options: CliEngineOptions;
73
+ services: Record<string, any>;
74
+ snapshot: CliEngineSnapshot;
75
+ style: Record<string, string>;
76
+ class: string;
77
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
78
+
79
+ type CliPanelOptions = CliEngineOptions & CliPanelConfig;
80
+ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
81
+ options: {
82
+ type: PropType<CliPanelOptions>;
83
+ default: undefined;
84
+ };
85
+ modules: {
86
+ type: PropType<ICliModule[]>;
87
+ default: undefined;
88
+ };
89
+ processors: {
90
+ type: PropType<ICliCommandProcessor[]>;
91
+ default: undefined;
92
+ };
93
+ services: {
94
+ type: PropType<Record<string, any>>;
95
+ default: undefined;
96
+ };
97
+ onClose: {
98
+ type: PropType<() => void>;
99
+ default: undefined;
100
+ };
101
+ style: {
102
+ type: PropType<Record<string, string>>;
103
+ default: undefined;
104
+ };
105
+ class: {
106
+ type: StringConstructor;
107
+ default: undefined;
108
+ };
109
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
110
+ [key: string]: any;
111
+ }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
112
+ options: {
113
+ type: PropType<CliPanelOptions>;
114
+ default: undefined;
115
+ };
116
+ modules: {
117
+ type: PropType<ICliModule[]>;
118
+ default: undefined;
119
+ };
120
+ processors: {
121
+ type: PropType<ICliCommandProcessor[]>;
122
+ default: undefined;
123
+ };
124
+ services: {
125
+ type: PropType<Record<string, any>>;
126
+ default: undefined;
127
+ };
128
+ onClose: {
129
+ type: PropType<() => void>;
130
+ default: undefined;
131
+ };
132
+ style: {
133
+ type: PropType<Record<string, string>>;
134
+ default: undefined;
135
+ };
136
+ class: {
137
+ type: StringConstructor;
138
+ default: undefined;
139
+ };
140
+ }>> & Readonly<{}>, {
141
+ modules: ICliModule[];
142
+ processors: ICliCommandProcessor[];
143
+ options: CliPanelOptions;
144
+ services: Record<string, any>;
145
+ style: Record<string, string>;
146
+ class: string;
147
+ onClose: () => void;
148
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
149
+
150
+ declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
151
+ modules: {
152
+ type: PropType<ICliModule[]>;
153
+ default: undefined;
154
+ };
155
+ processors: {
156
+ type: PropType<ICliCommandProcessor[]>;
157
+ default: undefined;
158
+ };
159
+ options: {
160
+ type: PropType<CliEngineOptions>;
161
+ default: undefined;
162
+ };
163
+ services: {
164
+ type: PropType<Record<string, any>>;
165
+ default: undefined;
166
+ };
167
+ style: {
168
+ type: PropType<Record<string, string>>;
169
+ default: undefined;
170
+ };
171
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
172
+ [key: string]: any;
173
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "ready"[], "ready", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
174
+ modules: {
175
+ type: PropType<ICliModule[]>;
176
+ default: undefined;
177
+ };
178
+ processors: {
179
+ type: PropType<ICliCommandProcessor[]>;
180
+ default: undefined;
181
+ };
182
+ options: {
183
+ type: PropType<CliEngineOptions>;
184
+ default: undefined;
185
+ };
186
+ services: {
187
+ type: PropType<Record<string, any>>;
188
+ default: undefined;
189
+ };
190
+ style: {
191
+ type: PropType<Record<string, string>>;
192
+ default: undefined;
193
+ };
194
+ }>> & Readonly<{
195
+ onReady?: ((...args: any[]) => any) | undefined;
196
+ }>, {
197
+ modules: ICliModule[];
198
+ processors: ICliCommandProcessor[];
199
+ options: CliEngineOptions;
200
+ services: Record<string, any>;
201
+ style: Record<string, string>;
202
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
203
+
204
+ interface CliConfigValue {
205
+ modules?: ICliModule[];
206
+ processors?: ICliCommandProcessor[];
207
+ options?: CliEngineOptions;
208
+ services?: Record<string, any>;
209
+ }
210
+ declare const CliConfigKey: InjectionKey<CliConfigValue>;
211
+ declare const CliConfigProvider: vue.DefineComponent<vue.ExtractPropTypes<{
212
+ modules: {
213
+ type: PropType<ICliModule[]>;
214
+ default: undefined;
215
+ };
216
+ processors: {
217
+ type: PropType<ICliCommandProcessor[]>;
218
+ default: undefined;
219
+ };
220
+ options: {
221
+ type: PropType<CliEngineOptions>;
222
+ default: undefined;
223
+ };
224
+ services: {
225
+ type: PropType<Record<string, any>>;
226
+ default: undefined;
227
+ };
228
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
229
+ [key: string]: any;
230
+ }>[] | undefined, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
231
+ modules: {
232
+ type: PropType<ICliModule[]>;
233
+ default: undefined;
234
+ };
235
+ processors: {
236
+ type: PropType<ICliCommandProcessor[]>;
237
+ default: undefined;
238
+ };
239
+ options: {
240
+ type: PropType<CliEngineOptions>;
241
+ default: undefined;
242
+ };
243
+ services: {
244
+ type: PropType<Record<string, any>>;
245
+ default: undefined;
246
+ };
247
+ }>> & Readonly<{}>, {
248
+ modules: ICliModule[];
249
+ processors: ICliCommandProcessor[];
250
+ options: CliEngineOptions;
251
+ services: Record<string, any>;
252
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
253
+
254
+ interface CliContextValue {
255
+ engine: Ref<CliEngine | null>;
256
+ }
257
+ declare const CliInjectionKey: InjectionKey<CliContextValue>;
258
+
259
+ declare function useCli(): CliContextValue;
260
+
261
+ interface UseCliEngineConfig {
262
+ modules?: ICliModule[];
263
+ processors?: ICliCommandProcessor[];
264
+ options?: CliEngineOptions;
265
+ services?: Record<string, any>;
266
+ }
267
+ declare function useCliEngine(containerRef: Ref<HTMLElement | null>, config?: UseCliEngineConfig): Ref<CliEngine | null>;
268
+
269
+ export { Cli, CliConfigKey, CliConfigProvider, type CliConfigValue, type CliContextValue, CliInjectionKey, CliPanel, type CliPanelOptions, CliProvider, type UseCliEngineConfig, useCli, useCliEngine };