@qodalis/vue-cli 2.0.0-beta.9 → 2.0.0-rc.1

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 CHANGED
@@ -1,7 +1,7 @@
1
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';
2
+ import { PropType, VNode, InjectionKey, Ref } from 'vue';
3
+ import { ICliModule, CliEngineSnapshot, CliPanelConfig, CliPanelPosition } from '@qodalis/cli-core';
4
+ import { CliEngineOptions, CliEngine, CreateCliEngineConfig } from '@qodalis/cli';
5
5
  export { CliEngine, CliEngineOptions } from '@qodalis/cli';
6
6
 
7
7
  /**
@@ -9,7 +9,6 @@ export { CliEngine, CliEngineOptions } from '@qodalis/cli';
9
9
  */
10
10
  interface CliProps {
11
11
  modules?: ICliModule[];
12
- processors?: ICliCommandProcessor[];
13
12
  options?: CliEngineOptions;
14
13
  services?: Record<string, any>;
15
14
  snapshot?: CliEngineSnapshot;
@@ -21,10 +20,6 @@ declare const Cli: vue.DefineComponent<vue.ExtractPropTypes<{
21
20
  type: PropType<ICliModule[]>;
22
21
  default: undefined;
23
22
  };
24
- processors: {
25
- type: PropType<ICliCommandProcessor[]>;
26
- default: undefined;
27
- };
28
23
  options: {
29
24
  type: PropType<CliEngineOptions>;
30
25
  default: undefined;
@@ -52,10 +47,6 @@ declare const Cli: vue.DefineComponent<vue.ExtractPropTypes<{
52
47
  type: PropType<ICliModule[]>;
53
48
  default: undefined;
54
49
  };
55
- processors: {
56
- type: PropType<ICliCommandProcessor[]>;
57
- default: undefined;
58
- };
59
50
  options: {
60
51
  type: PropType<CliEngineOptions>;
61
52
  default: undefined;
@@ -80,7 +71,6 @@ declare const Cli: vue.DefineComponent<vue.ExtractPropTypes<{
80
71
  onReady?: ((...args: any[]) => any) | undefined;
81
72
  }>, {
82
73
  modules: ICliModule[];
83
- processors: ICliCommandProcessor[];
84
74
  options: CliEngineOptions;
85
75
  services: Record<string, any>;
86
76
  snapshot: CliEngineSnapshot;
@@ -99,10 +89,6 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
99
89
  type: PropType<ICliModule[]>;
100
90
  default: undefined;
101
91
  };
102
- processors: {
103
- type: PropType<ICliCommandProcessor[]>;
104
- default: undefined;
105
- };
106
92
  services: {
107
93
  type: PropType<Record<string, any>>;
108
94
  default: undefined;
@@ -111,6 +97,34 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
111
97
  type: PropType<() => void>;
112
98
  default: undefined;
113
99
  };
100
+ collapsed: {
101
+ type: BooleanConstructor;
102
+ default: undefined;
103
+ };
104
+ hidden: {
105
+ type: BooleanConstructor;
106
+ default: undefined;
107
+ };
108
+ maximized: {
109
+ type: BooleanConstructor;
110
+ default: undefined;
111
+ };
112
+ activeTabId: {
113
+ type: NumberConstructor;
114
+ default: undefined;
115
+ };
116
+ position: {
117
+ type: PropType<CliPanelPosition>;
118
+ default: undefined;
119
+ };
120
+ height: {
121
+ type: NumberConstructor;
122
+ default: undefined;
123
+ };
124
+ width: {
125
+ type: NumberConstructor;
126
+ default: undefined;
127
+ };
114
128
  style: {
115
129
  type: PropType<Record<string, string>>;
116
130
  default: undefined;
@@ -119,9 +133,9 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
119
133
  type: StringConstructor;
120
134
  default: undefined;
121
135
  };
122
- }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
136
+ }>, () => VNode<vue.RendererNode, vue.RendererElement, {
123
137
  [key: string]: any;
124
- }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
138
+ }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("close" | "update:collapsed" | "update:hidden" | "update:maximized" | "update:activeTabId" | "update:position" | "update:height" | "update:width" | "tab-added" | "tab-closed" | "pane-split" | "pane-closed")[], "close" | "update:collapsed" | "update:hidden" | "update:maximized" | "update:activeTabId" | "update:position" | "update:height" | "update:width" | "tab-added" | "tab-closed" | "pane-split" | "pane-closed", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
125
139
  options: {
126
140
  type: PropType<CliPanelOptions>;
127
141
  default: undefined;
@@ -130,10 +144,6 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
130
144
  type: PropType<ICliModule[]>;
131
145
  default: undefined;
132
146
  };
133
- processors: {
134
- type: PropType<ICliCommandProcessor[]>;
135
- default: undefined;
136
- };
137
147
  services: {
138
148
  type: PropType<Record<string, any>>;
139
149
  default: undefined;
@@ -142,6 +152,34 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
142
152
  type: PropType<() => void>;
143
153
  default: undefined;
144
154
  };
155
+ collapsed: {
156
+ type: BooleanConstructor;
157
+ default: undefined;
158
+ };
159
+ hidden: {
160
+ type: BooleanConstructor;
161
+ default: undefined;
162
+ };
163
+ maximized: {
164
+ type: BooleanConstructor;
165
+ default: undefined;
166
+ };
167
+ activeTabId: {
168
+ type: NumberConstructor;
169
+ default: undefined;
170
+ };
171
+ position: {
172
+ type: PropType<CliPanelPosition>;
173
+ default: undefined;
174
+ };
175
+ height: {
176
+ type: NumberConstructor;
177
+ default: undefined;
178
+ };
179
+ width: {
180
+ type: NumberConstructor;
181
+ default: undefined;
182
+ };
145
183
  style: {
146
184
  type: PropType<Record<string, string>>;
147
185
  default: undefined;
@@ -150,14 +188,33 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
150
188
  type: StringConstructor;
151
189
  default: undefined;
152
190
  };
153
- }>> & Readonly<{}>, {
191
+ }>> & Readonly<{
192
+ onClose?: ((...args: any[]) => any) | undefined;
193
+ "onUpdate:collapsed"?: ((...args: any[]) => any) | undefined;
194
+ "onUpdate:hidden"?: ((...args: any[]) => any) | undefined;
195
+ "onUpdate:maximized"?: ((...args: any[]) => any) | undefined;
196
+ "onUpdate:activeTabId"?: ((...args: any[]) => any) | undefined;
197
+ "onUpdate:position"?: ((...args: any[]) => any) | undefined;
198
+ "onUpdate:height"?: ((...args: any[]) => any) | undefined;
199
+ "onUpdate:width"?: ((...args: any[]) => any) | undefined;
200
+ "onTab-added"?: ((...args: any[]) => any) | undefined;
201
+ "onTab-closed"?: ((...args: any[]) => any) | undefined;
202
+ "onPane-split"?: ((...args: any[]) => any) | undefined;
203
+ "onPane-closed"?: ((...args: any[]) => any) | undefined;
204
+ }>, {
154
205
  modules: ICliModule[];
155
- processors: ICliCommandProcessor[];
156
206
  options: CliPanelOptions;
157
207
  services: Record<string, any>;
158
208
  style: Record<string, string>;
159
209
  class: string;
160
210
  onClose: () => void;
211
+ collapsed: boolean;
212
+ hidden: boolean;
213
+ maximized: boolean;
214
+ activeTabId: number;
215
+ position: CliPanelPosition;
216
+ height: number;
217
+ width: number;
161
218
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
162
219
 
163
220
  declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
@@ -165,10 +222,6 @@ declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
165
222
  type: PropType<ICliModule[]>;
166
223
  default: undefined;
167
224
  };
168
- processors: {
169
- type: PropType<ICliCommandProcessor[]>;
170
- default: undefined;
171
- };
172
225
  options: {
173
226
  type: PropType<CliEngineOptions>;
174
227
  default: undefined;
@@ -188,10 +241,6 @@ declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
188
241
  type: PropType<ICliModule[]>;
189
242
  default: undefined;
190
243
  };
191
- processors: {
192
- type: PropType<ICliCommandProcessor[]>;
193
- default: undefined;
194
- };
195
244
  options: {
196
245
  type: PropType<CliEngineOptions>;
197
246
  default: undefined;
@@ -208,7 +257,6 @@ declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
208
257
  onReady?: ((...args: any[]) => any) | undefined;
209
258
  }>, {
210
259
  modules: ICliModule[];
211
- processors: ICliCommandProcessor[];
212
260
  options: CliEngineOptions;
213
261
  services: Record<string, any>;
214
262
  style: Record<string, string>;
@@ -216,7 +264,6 @@ declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
216
264
 
217
265
  interface CliConfigValue {
218
266
  modules?: ICliModule[];
219
- processors?: ICliCommandProcessor[];
220
267
  options?: CliEngineOptions;
221
268
  services?: Record<string, any>;
222
269
  }
@@ -226,10 +273,6 @@ declare const CliConfigProvider: vue.DefineComponent<vue.ExtractPropTypes<{
226
273
  type: PropType<ICliModule[]>;
227
274
  default: undefined;
228
275
  };
229
- processors: {
230
- type: PropType<ICliCommandProcessor[]>;
231
- default: undefined;
232
- };
233
276
  options: {
234
277
  type: PropType<CliEngineOptions>;
235
278
  default: undefined;
@@ -245,10 +288,6 @@ declare const CliConfigProvider: vue.DefineComponent<vue.ExtractPropTypes<{
245
288
  type: PropType<ICliModule[]>;
246
289
  default: undefined;
247
290
  };
248
- processors: {
249
- type: PropType<ICliCommandProcessor[]>;
250
- default: undefined;
251
- };
252
291
  options: {
253
292
  type: PropType<CliEngineOptions>;
254
293
  default: undefined;
@@ -259,7 +298,6 @@ declare const CliConfigProvider: vue.DefineComponent<vue.ExtractPropTypes<{
259
298
  };
260
299
  }>> & Readonly<{}>, {
261
300
  modules: ICliModule[];
262
- processors: ICliCommandProcessor[];
263
301
  options: CliEngineOptions;
264
302
  services: Record<string, any>;
265
303
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -271,12 +309,8 @@ declare const CliInjectionKey: InjectionKey<CliContextValue>;
271
309
 
272
310
  declare function useCli(): CliContextValue;
273
311
 
274
- interface UseCliEngineConfig {
275
- modules?: ICliModule[];
276
- processors?: ICliCommandProcessor[];
277
- options?: CliEngineOptions;
278
- services?: Record<string, any>;
279
- }
312
+ type UseCliEngineConfig = Omit<CreateCliEngineConfig, 'framework'>;
280
313
  declare function useCliEngine(containerRef: Ref<HTMLElement | null>, config?: UseCliEngineConfig): Ref<CliEngine | null>;
281
314
 
282
- export { Cli, CliConfigKey, CliConfigProvider, type CliConfigValue, type CliContextValue, CliInjectionKey, CliPanel, type CliPanelOptions, type CliProps, CliProvider, type UseCliEngineConfig, useCli, useCliEngine };
315
+ export { Cli, CliConfigKey, CliConfigProvider, CliInjectionKey, CliPanel, CliProvider, useCli, useCliEngine };
316
+ export type { CliConfigValue, CliContextValue, CliPanelOptions, CliProps, UseCliEngineConfig };