commandbar 1.6.5-alpha.1 → 1.6.8
Sign up to get free protection for your applications and to get access to all the features.
- package/build/commandbar-js/src/index.js +1 -1
- package/build/internal/src/client/AddContextOptions.d.ts +39 -2
- package/build/internal/src/client/CommandBarClientSDK.d.ts +58 -19
- package/build/internal/src/client/CommandBarSDK.d.ts +8 -1
- package/build/internal/src/client/symbols.d.ts +2 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +16 -1
- package/build/internal/src/middleware/OrganizationV.d.ts +2 -2
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +2 -2
- package/build/internal/src/middleware/command.d.ts +779 -23
- package/build/internal/src/middleware/confetti.d.ts +16 -0
- package/build/internal/src/middleware/helpers/argument.d.ts +8 -0
- package/build/internal/src/middleware/organization.d.ts +21 -6
- package/build/internal/src/middleware/types.d.ts +22 -3
- package/package.json +1 -1
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const ConfettiConfigV: t.PartialC<{
|
3
|
+
angle: t.NumberC;
|
4
|
+
spread: t.NumberC;
|
5
|
+
width: t.StringC;
|
6
|
+
height: t.StringC;
|
7
|
+
duration: t.NumberC;
|
8
|
+
dragFriction: t.NumberC;
|
9
|
+
stagger: t.NumberC;
|
10
|
+
startVelocity: t.NumberC;
|
11
|
+
elementCount: t.NumberC;
|
12
|
+
decay: t.NumberC;
|
13
|
+
colors: t.ArrayC<t.StringC>;
|
14
|
+
random: t.AnyC;
|
15
|
+
}>;
|
16
|
+
export declare type IConfettiConfig = t.TypeOf<typeof ConfettiConfigV>;
|
@@ -26,6 +26,8 @@ export declare const ContextArgumentV: t.IntersectionC<[t.TypeC<{
|
|
26
26
|
loaded: t.ArrayC<t.AnyC>;
|
27
27
|
allow_create: t.BooleanC;
|
28
28
|
allow_create_label: t.StringC;
|
29
|
+
show_in_record_action_list: t.BooleanC;
|
30
|
+
show_in_default_list: t.BooleanC;
|
29
31
|
}>]>;
|
30
32
|
export declare const SetArgumentV: t.IntersectionC<[t.TypeC<{
|
31
33
|
type: t.LiteralC<"set">;
|
@@ -127,6 +129,8 @@ export declare const ArgumentTypeV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
127
129
|
loaded: t.ArrayC<t.AnyC>;
|
128
130
|
allow_create: t.BooleanC;
|
129
131
|
allow_create_label: t.StringC;
|
132
|
+
show_in_record_action_list: t.BooleanC;
|
133
|
+
show_in_default_list: t.BooleanC;
|
130
134
|
}>]>, t.IntersectionC<[t.TypeC<{
|
131
135
|
type: t.LiteralC<"set">;
|
132
136
|
value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
|
@@ -224,6 +228,8 @@ export declare const ArgumentMapV: t.RecordC<t.StringC, t.UnionC<[t.Intersection
|
|
224
228
|
loaded: t.ArrayC<t.AnyC>;
|
225
229
|
allow_create: t.BooleanC;
|
226
230
|
allow_create_label: t.StringC;
|
231
|
+
show_in_record_action_list: t.BooleanC;
|
232
|
+
show_in_default_list: t.BooleanC;
|
227
233
|
}>]>, t.IntersectionC<[t.TypeC<{
|
228
234
|
type: t.LiteralC<"set">;
|
229
235
|
value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
|
@@ -324,6 +330,8 @@ export declare const StepArgumentTypeV: t.IntersectionC<[t.TypeC<{
|
|
324
330
|
loaded: t.ArrayC<t.AnyC>;
|
325
331
|
allow_create: t.BooleanC;
|
326
332
|
allow_create_label: t.StringC;
|
333
|
+
show_in_record_action_list: t.BooleanC;
|
334
|
+
show_in_default_list: t.BooleanC;
|
327
335
|
}>]>, t.IntersectionC<[t.TypeC<{
|
328
336
|
type: t.LiteralC<"set">;
|
329
337
|
value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
|
@@ -22,6 +22,7 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
22
22
|
analytics_control: t.TypeC<{
|
23
23
|
silent_enabled: t.BooleanC;
|
24
24
|
allow_event_handlers: t.BooleanC;
|
25
|
+
event_attribute_block_list: t.ArrayC<t.StringC>;
|
25
26
|
}>;
|
26
27
|
skins: t.TypeC<{
|
27
28
|
limit: t.NumberC;
|
@@ -74,7 +75,7 @@ export declare class Organization {
|
|
74
75
|
sort_key?: number | undefined;
|
75
76
|
max_options_count?: number | null | undefined;
|
76
77
|
sortFunction?: any;
|
77
|
-
default_command_id?: number | undefined;
|
78
|
+
default_command_id?: string | number | undefined;
|
78
79
|
showResources?: boolean | undefined;
|
79
80
|
show_with_no_results?: boolean | undefined;
|
80
81
|
search_tab_enabled?: boolean | undefined;
|
@@ -127,7 +128,7 @@ export declare class Organization {
|
|
127
128
|
sort_key?: number | undefined;
|
128
129
|
max_options_count?: number | null | undefined;
|
129
130
|
sortFunction?: any;
|
130
|
-
default_command_id?: number | undefined;
|
131
|
+
default_command_id?: string | number | undefined;
|
131
132
|
showResources?: boolean | undefined;
|
132
133
|
show_with_no_results?: boolean | undefined;
|
133
134
|
search_tab_enabled?: boolean | undefined;
|
@@ -179,7 +180,7 @@ export declare class Organization {
|
|
179
180
|
sort_key?: number | undefined;
|
180
181
|
max_options_count?: number | null | undefined;
|
181
182
|
sortFunction?: any;
|
182
|
-
default_command_id?: number | undefined;
|
183
|
+
default_command_id?: string | number | undefined;
|
183
184
|
showResources?: boolean | undefined;
|
184
185
|
show_with_no_results?: boolean | undefined;
|
185
186
|
search_tab_enabled?: boolean | undefined;
|
@@ -290,6 +291,8 @@ export declare class Organization {
|
|
290
291
|
loaded?: any[] | undefined;
|
291
292
|
allow_create?: boolean | undefined;
|
292
293
|
allow_create_label?: string | undefined;
|
294
|
+
show_in_record_action_list?: boolean | undefined;
|
295
|
+
show_in_default_list?: boolean | undefined;
|
293
296
|
}) | ({
|
294
297
|
type: "set";
|
295
298
|
value: string[] | number[] | {
|
@@ -402,8 +405,19 @@ export declare class Organization {
|
|
402
405
|
category: number | null;
|
403
406
|
sort_key: number | null;
|
404
407
|
icon: string | null;
|
405
|
-
celebrate: {
|
406
|
-
|
408
|
+
celebrate: boolean | {
|
409
|
+
angle?: number | undefined;
|
410
|
+
spread?: number | undefined;
|
411
|
+
width?: string | undefined;
|
412
|
+
height?: string | undefined;
|
413
|
+
duration?: number | undefined;
|
414
|
+
dragFriction?: number | undefined;
|
415
|
+
stagger?: number | undefined;
|
416
|
+
startVelocity?: number | undefined;
|
417
|
+
elementCount?: number | undefined;
|
418
|
+
decay?: number | undefined;
|
419
|
+
colors?: string[] | undefined;
|
420
|
+
random?: any;
|
407
421
|
} | null;
|
408
422
|
recommend_sort_key: number | null;
|
409
423
|
shortcut_mac: string[];
|
@@ -515,6 +529,7 @@ export declare class Organization {
|
|
515
529
|
analytics_control: {
|
516
530
|
silent_enabled: boolean;
|
517
531
|
allow_event_handlers: boolean;
|
532
|
+
event_attribute_block_list: string[];
|
518
533
|
};
|
519
534
|
skins: {
|
520
535
|
limit: number;
|
@@ -563,7 +578,7 @@ export declare class Organization {
|
|
563
578
|
sort_key?: number | undefined;
|
564
579
|
max_options_count?: number | null | undefined;
|
565
580
|
sortFunction?: any;
|
566
|
-
default_command_id?: number | undefined;
|
581
|
+
default_command_id?: string | number | undefined;
|
567
582
|
showResources?: boolean | undefined;
|
568
583
|
show_with_no_results?: boolean | undefined;
|
569
584
|
search_tab_enabled?: boolean | undefined;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*******************************************************************************/
|
2
2
|
import * as t from 'io-ts';
|
3
|
-
import { CommandV, EditorCommandV } from './command';
|
3
|
+
import { BatchEditorCommandRequestV, BatchEditorCommandResponseV, BatchOperationV, CommandV, EditorCommandV } from './command';
|
4
4
|
import { ArgumentMapV, ArgumentTypeV, ConditionV, ConditionOperatorV, StepArgumentTypeV, ContextArgumentV, SetArgumentV, DynamicArgumentV, DependentArgumentV, FunctionArgumentV } from './helpers/argument';
|
5
5
|
import { TemplateV, TemplateOptionsV } from './helpers/commandTemplate';
|
6
6
|
import { CommandCategoryV } from './commandCategory';
|
@@ -38,6 +38,10 @@ export declare type IReleaseStep = t.TypeOf<typeof ReleaseStepV>;
|
|
38
38
|
export declare type IRelease = t.TypeOf<typeof ReleaseV>;
|
39
39
|
export declare type IEnvReleaseInfo = t.TypeOf<typeof EnvReleaseInfoV>;
|
40
40
|
/*******************************************************************************/
|
41
|
+
export declare type IBatchOperation = t.TypeOf<typeof BatchOperationV>;
|
42
|
+
export declare type IBatchEditorCommandRequst = t.TypeOf<typeof BatchEditorCommandRequestV>;
|
43
|
+
export declare type IBatchEditorCommandResponse = t.TypeOf<typeof BatchEditorCommandResponseV>;
|
44
|
+
/*******************************************************************************/
|
41
45
|
export declare type IKeyEventCategory = t.TypeOf<typeof KeyEventV>;
|
42
46
|
export declare type IArgumentMap = t.TypeOf<typeof ArgumentMapV>;
|
43
47
|
export declare type IArgumentType = t.TypeOf<typeof ArgumentTypeV>;
|
@@ -174,6 +178,8 @@ export declare const isCommand: (command?: ICommandType | any) => command is {
|
|
174
178
|
loaded?: any[] | undefined;
|
175
179
|
allow_create?: boolean | undefined;
|
176
180
|
allow_create_label?: string | undefined;
|
181
|
+
show_in_record_action_list?: boolean | undefined;
|
182
|
+
show_in_default_list?: boolean | undefined;
|
177
183
|
}) | ({
|
178
184
|
type: "set";
|
179
185
|
value: string[] | number[] | {
|
@@ -286,8 +292,19 @@ export declare const isCommand: (command?: ICommandType | any) => command is {
|
|
286
292
|
category: number | null;
|
287
293
|
sort_key: number | null;
|
288
294
|
icon: string | null;
|
289
|
-
celebrate: {
|
290
|
-
|
295
|
+
celebrate: boolean | {
|
296
|
+
angle?: number | undefined;
|
297
|
+
spread?: number | undefined;
|
298
|
+
width?: string | undefined;
|
299
|
+
height?: string | undefined;
|
300
|
+
duration?: number | undefined;
|
301
|
+
dragFriction?: number | undefined;
|
302
|
+
stagger?: number | undefined;
|
303
|
+
startVelocity?: number | undefined;
|
304
|
+
elementCount?: number | undefined;
|
305
|
+
decay?: number | undefined;
|
306
|
+
colors?: string[] | undefined;
|
307
|
+
random?: any;
|
291
308
|
} | null;
|
292
309
|
recommend_sort_key: number | null;
|
293
310
|
shortcut_mac: string[];
|
@@ -315,6 +332,8 @@ export declare const isContextArgument: (argument: IArgumentType) => argument is
|
|
315
332
|
loaded?: any[] | undefined;
|
316
333
|
allow_create?: boolean | undefined;
|
317
334
|
allow_create_label?: string | undefined;
|
335
|
+
show_in_record_action_list?: boolean | undefined;
|
336
|
+
show_in_default_list?: boolean | undefined;
|
318
337
|
};
|
319
338
|
export declare const isTimeArgument: (argument: IArgumentType) => argument is {
|
320
339
|
type: "provided";
|