commandbar 1.6.7 → 1.6.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/build/commandbar-js/src/index.d.ts +10 -0
  2. package/build/commandbar-js/src/index.js +1 -0
  3. package/build/commandbar-js/src/init.d.ts +21 -0
  4. package/build/commandbar-js/src/snippet.d.ts +1 -0
  5. package/build/internal/src/client/AddContextOptions.d.ts +108 -0
  6. package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
  7. package/build/internal/src/client/CommandBarClientSDK.d.ts +303 -0
  8. package/build/internal/src/client/CommandBarProxySDK.d.ts +48 -0
  9. package/build/internal/src/client/CommandBarSDK.d.ts +50 -0
  10. package/build/internal/src/client/EventHandler.d.ts +99 -0
  11. package/build/internal/src/client/SDKConfig.d.ts +13 -0
  12. package/build/internal/src/client/SentryReporter.d.ts +41 -0
  13. package/build/internal/src/client/globals.d.ts +18 -0
  14. package/build/internal/src/client/proxy.d.ts +15 -0
  15. package/build/internal/src/client/symbols.d.ts +32 -0
  16. package/build/internal/src/middleware/CommandFromClientV.d.ts +252 -0
  17. package/build/internal/src/middleware/ICommandFromClientType.d.ts +5 -0
  18. package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
  19. package/build/internal/src/middleware/OrganizationV.d.ts +120 -0
  20. package/build/internal/src/middleware/ResourceSettingsV.d.ts +57 -0
  21. package/build/internal/src/middleware/command.d.ts +5464 -0
  22. package/build/internal/src/middleware/commandCategory.d.ts +136 -0
  23. package/build/internal/src/middleware/confetti.d.ts +16 -0
  24. package/build/internal/src/middleware/context.d.ts +40 -0
  25. package/build/internal/src/middleware/detailPreview.d.ts +21 -0
  26. package/build/internal/src/middleware/environment.d.ts +11 -0
  27. package/build/internal/src/middleware/generics.d.ts +40 -0
  28. package/build/internal/src/middleware/guide.d.ts +37 -0
  29. package/build/internal/src/middleware/helpDocsIntegration.d.ts +66 -0
  30. package/build/internal/src/middleware/helpDocsSync.d.ts +42 -0
  31. package/build/internal/src/middleware/helpers/argument.d.ts +412 -0
  32. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +191 -0
  33. package/build/internal/src/middleware/helpers/endUser.d.ts +10 -0
  34. package/build/internal/src/middleware/helpers/optionGroup.d.ts +2 -0
  35. package/build/internal/src/middleware/helpers/rules.d.ts +231 -0
  36. package/build/internal/src/middleware/historyEvent.d.ts +40 -0
  37. package/build/internal/src/middleware/network.d.ts +4 -0
  38. package/build/internal/src/middleware/organization.d.ts +710 -0
  39. package/build/internal/src/middleware/placeholder.d.ts +47 -0
  40. package/build/internal/src/middleware/profile.d.ts +11 -0
  41. package/build/internal/src/middleware/releases.d.ts +261 -0
  42. package/build/internal/src/middleware/skin.d.ts +66 -0
  43. package/build/internal/src/middleware/types.d.ts +425 -0
  44. package/build/internal/src/middleware/user.d.ts +12 -0
  45. package/build/internal/src/util/Disposable.d.ts +17 -0
  46. package/build/internal/src/util/LocalStorage.d.ts +6 -0
  47. package/build/internal/src/util/Logger.d.ts +18 -0
  48. package/build/internal/src/util/dispatchCustomEvent.d.ts +2 -0
  49. package/package.json +1 -1
  50. package/src/init.ts +1 -1
@@ -0,0 +1,425 @@
1
+ /*******************************************************************************/
2
+ import * as t from 'io-ts';
3
+ import { BatchEditorCommandResponseV, BatchOperationV, CommandV, HelpSyncCommandV, EditorCommandV } from './command';
4
+ import { ArgumentMapV, ArgumentTypeV, ConditionV, ConditionOperatorV, StepArgumentTypeV, ContextArgumentV, SetArgumentV, DynamicArgumentV, DependentArgumentV, FunctionArgumentV } from './helpers/argument';
5
+ import { GenericBatchRequest } from './generics';
6
+ import { OptionGroupRenderAsV } from './helpers/optionGroup';
7
+ import { TemplateV, TemplateOptionsV, RequestTemplateV, RequestV } from './helpers/commandTemplate';
8
+ import { CommandCategoryV } from './commandCategory';
9
+ import { OrganizationStatusV, KeyEventV, ResourceSettingsByContextKeyV, InternalSettingsV, OrganizationSettingsV } from './organization';
10
+ import { UserV } from './user';
11
+ import { ContextV } from './context';
12
+ import { GuideV } from './guide';
13
+ import { HistoryEventV } from './historyEvent';
14
+ import { HelpDocsSyncV } from './helpDocsSync';
15
+ import { HelpDocsIntegrationV } from './helpDocsIntegration';
16
+ import { EndUserV } from './helpers/endUser';
17
+ import { SkinV } from './skin';
18
+ import { ProfileV } from './profile';
19
+ import { PlaceholderV } from './placeholder';
20
+ import { EnvReleaseInfoV, ReleaseStepV, ReleaseV } from './releases';
21
+ import { EnvironmentV } from './environment';
22
+ /*******************************************************************************/
23
+ export declare type IContextType = t.TypeOf<typeof ContextV>;
24
+ export declare type IUserType = t.TypeOf<typeof UserV>;
25
+ export declare type ICommandType = t.TypeOf<typeof CommandV>;
26
+ export declare type IEditorCommandType = t.TypeOf<typeof EditorCommandV>;
27
+ export declare type IHelpSyncCommandType = t.TypeOf<typeof HelpSyncCommandV>;
28
+ export type { ICommandFromClientType } from './ICommandFromClientType';
29
+ export declare type ICommandCategoryType = t.TypeOf<typeof CommandCategoryV>;
30
+ export declare type IGuideType = t.TypeOf<typeof GuideV> & {
31
+ preview?: boolean;
32
+ };
33
+ export declare type IHistoryEventType = t.TypeOf<typeof HistoryEventV>;
34
+ export declare type IHelpDocsSyncType = t.TypeOf<typeof HelpDocsSyncV>;
35
+ export declare type IHelpDocsIntegrationType = t.TypeOf<typeof HelpDocsIntegrationV>;
36
+ export type { IOrganizationType } from './OrganizationV';
37
+ export declare type IOrganizationStatusType = t.TypeOf<typeof OrganizationStatusV>;
38
+ export declare type IInternalSettingsType = t.TypeOf<typeof InternalSettingsV>;
39
+ export declare type ISkinType = t.TypeOf<typeof SkinV>;
40
+ export declare type IProfileType = t.TypeOf<typeof ProfileV>;
41
+ export declare type IOrganizationSettingsType = t.TypeOf<typeof OrganizationSettingsV>;
42
+ export declare type IPlaceholderType = t.TypeOf<typeof PlaceholderV>;
43
+ export declare type IEnvironmentType = t.TypeOf<typeof EnvironmentV>;
44
+ export declare type IReleaseStep = t.TypeOf<typeof ReleaseStepV>;
45
+ export declare type IRelease = t.TypeOf<typeof ReleaseV>;
46
+ export declare type IEnvReleaseInfo = t.TypeOf<typeof EnvReleaseInfoV>;
47
+ /*******************************************************************************/
48
+ export declare type IBatchOperation = t.TypeOf<typeof BatchOperationV>;
49
+ export declare type IBatchEditorCommandRequst = t.TypeOf<typeof GenericBatchRequest>;
50
+ export declare type IBatchEditorCommandResponse = t.TypeOf<typeof BatchEditorCommandResponseV>;
51
+ /*******************************************************************************/
52
+ export declare type IKeyEventCategory = t.TypeOf<typeof KeyEventV>;
53
+ export declare type IArgumentMap = t.TypeOf<typeof ArgumentMapV>;
54
+ export declare type IArgumentType = t.TypeOf<typeof ArgumentTypeV>;
55
+ export declare type IStepArgumentType = t.TypeOf<typeof StepArgumentTypeV>;
56
+ export declare type ITemplate = t.TypeOf<typeof TemplateV>;
57
+ export declare type RequestTemplateType = t.TypeOf<typeof RequestTemplateV>;
58
+ export declare type RequestType = t.TypeOf<typeof RequestV>;
59
+ export declare type ITemplateOptions = t.TypeOf<typeof TemplateOptionsV>;
60
+ export declare type IEndUserType = t.TypeOf<typeof EndUserV>;
61
+ export declare type IConditionType = t.TypeOf<typeof ConditionV>;
62
+ export declare type IConditionOperatorType = t.TypeOf<typeof ConditionOperatorV>;
63
+ export declare type IContextArgumentType = t.TypeOf<typeof ContextArgumentV>;
64
+ export declare type ISetArgumentType = t.TypeOf<typeof SetArgumentV>;
65
+ export declare type IDynamicArgumentType = t.TypeOf<typeof DynamicArgumentV>;
66
+ export declare type IDependentArgumentType = t.TypeOf<typeof DependentArgumentV>;
67
+ export declare type IFunctionArgumentType = t.TypeOf<typeof FunctionArgumentV>;
68
+ export declare type OptionGroupRenderAsType = t.TypeOf<typeof OptionGroupRenderAsV>;
69
+ export interface ICommandInput {
70
+ text: string;
71
+ command: ICommandType;
72
+ context: IUserContext;
73
+ }
74
+ export interface IArgValues {
75
+ [arg: string]: string | number | undefined;
76
+ }
77
+ export declare type IHistoryType = Array<{
78
+ activeCommand: ICommandType;
79
+ options: ICommandType[];
80
+ }>;
81
+ export interface IUserContext {
82
+ [variable: string]: any;
83
+ }
84
+ export interface ICallbackMap {
85
+ [variable: string]: (...args: any[]) => any;
86
+ }
87
+ export interface IResourceType extends IUserContext {
88
+ _cbLinkedCommmands: Array<{
89
+ command: number;
90
+ arg: string;
91
+ }>;
92
+ }
93
+ export declare type IConfigEndpointResponse = {
94
+ commands: any[];
95
+ categories: any[];
96
+ organization: any;
97
+ environments_with_versions?: any[];
98
+ placeholders?: any[];
99
+ };
100
+ export type { IResourceSettings } from './IResourceSettings';
101
+ export declare type IResourceSettingsByContextKey = t.TypeOf<typeof ResourceSettingsByContextKeyV>;
102
+ export type { DetailPreviewObjectType, DetailPreviewType, DataRowMedata } from './detailPreview';
103
+ /*******************************************************************************/
104
+ export declare const isCommand: (command?: ICommandType | any) => command is {
105
+ id: number;
106
+ organization: string | number;
107
+ text: string;
108
+ template: ({
109
+ type: "admin";
110
+ value: string;
111
+ } & {} & {
112
+ commandType?: "object" | "independent" | "help" | undefined;
113
+ object?: string | undefined;
114
+ hoverTooltip?: boolean | undefined;
115
+ operation?: "self" | "router" | "blank" | undefined;
116
+ }) | ({
117
+ type: "callback";
118
+ value: string;
119
+ } & {} & {
120
+ commandType?: "object" | "independent" | "help" | undefined;
121
+ object?: string | undefined;
122
+ hoverTooltip?: boolean | undefined;
123
+ operation?: "self" | "router" | "blank" | undefined;
124
+ }) | ({
125
+ type: "link";
126
+ value: string;
127
+ } & {} & {
128
+ commandType?: "object" | "independent" | "help" | undefined;
129
+ object?: string | undefined;
130
+ hoverTooltip?: boolean | undefined;
131
+ operation?: "self" | "router" | "blank" | undefined;
132
+ }) | ({
133
+ type: "click" | "clickByXpath" | "clickBySelector";
134
+ value: string[];
135
+ } & {} & {
136
+ commandType?: "object" | "independent" | "help" | undefined;
137
+ object?: string | undefined;
138
+ hoverTooltip?: boolean | undefined;
139
+ operation?: "self" | "router" | "blank" | undefined;
140
+ }) | ({
141
+ type: "builtin";
142
+ value: string;
143
+ } & {} & {
144
+ commandType?: "object" | "independent" | "help" | undefined;
145
+ object?: string | undefined;
146
+ hoverTooltip?: boolean | undefined;
147
+ operation?: "self" | "router" | "blank" | undefined;
148
+ }) | ({
149
+ type: "webhook";
150
+ value: string;
151
+ } & {} & {
152
+ commandType?: "object" | "independent" | "help" | undefined;
153
+ object?: string | undefined;
154
+ hoverTooltip?: boolean | undefined;
155
+ operation?: "self" | "router" | "blank" | undefined;
156
+ }) | ({
157
+ type: "script";
158
+ value: string;
159
+ } & {} & {
160
+ commandType?: "object" | "independent" | "help" | undefined;
161
+ object?: string | undefined;
162
+ hoverTooltip?: boolean | undefined;
163
+ operation?: "self" | "router" | "blank" | undefined;
164
+ }) | ({
165
+ type: "request";
166
+ value: {
167
+ method: "head" | "options" | "get" | "delete" | "post" | "put" | "patch";
168
+ url: string;
169
+ } & {
170
+ headers?: {
171
+ [key: string]: unknown;
172
+ } | undefined;
173
+ body?: {
174
+ [key: string]: unknown;
175
+ } | undefined;
176
+ onSend?: string | undefined;
177
+ onSuccess?: string | undefined;
178
+ onError?: string | undefined;
179
+ };
180
+ } & {} & {
181
+ commandType?: "object" | "independent" | "help" | undefined;
182
+ object?: string | undefined;
183
+ hoverTooltip?: boolean | undefined;
184
+ operation?: "self" | "router" | "blank" | undefined;
185
+ }) | ({
186
+ type: "appcues";
187
+ value: string;
188
+ } & {} & {
189
+ commandType?: "object" | "independent" | "help" | undefined;
190
+ object?: string | undefined;
191
+ hoverTooltip?: boolean | undefined;
192
+ operation?: "self" | "router" | "blank" | undefined;
193
+ });
194
+ } & {
195
+ disabledReason?: string | undefined;
196
+ source?: string | undefined;
197
+ name?: string | undefined;
198
+ last_available?: string | null | undefined;
199
+ modified?: string | undefined;
200
+ } & {
201
+ arguments: {
202
+ [x: string]: ({
203
+ type: "context";
204
+ value: string;
205
+ order_key: number;
206
+ } & {
207
+ label?: string | undefined;
208
+ chosen?: string | number | undefined;
209
+ selected?: any[] | undefined;
210
+ input_type?: string | undefined;
211
+ preselected_key?: string | undefined;
212
+ label_field?: string | undefined;
213
+ availability_condition?: {
214
+ field: string;
215
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
216
+ value: string | undefined;
217
+ }[] | undefined;
218
+ loaded?: any[] | undefined;
219
+ allow_create?: boolean | undefined;
220
+ allow_create_label?: string | undefined;
221
+ show_in_record_action_list?: boolean | undefined;
222
+ show_in_default_list?: boolean | undefined;
223
+ }) | ({
224
+ type: "set";
225
+ value: string[] | number[] | {
226
+ [key: string]: unknown;
227
+ }[];
228
+ order_key: number;
229
+ } & {
230
+ label?: string | undefined;
231
+ chosen?: string | number | undefined;
232
+ selected?: any[] | undefined;
233
+ input_type?: string | undefined;
234
+ preselected_key?: string | undefined;
235
+ label_field?: string | undefined;
236
+ availability_condition?: {
237
+ field: string;
238
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
239
+ value: string | undefined;
240
+ }[] | undefined;
241
+ loaded?: any[] | undefined;
242
+ allow_create?: boolean | undefined;
243
+ allow_create_label?: string | undefined;
244
+ }) | ({
245
+ type: "provided";
246
+ value: "time" | "text";
247
+ order_key: number;
248
+ } & {
249
+ label?: string | undefined;
250
+ chosen?: string | number | undefined;
251
+ selected?: any[] | undefined;
252
+ input_type?: string | undefined;
253
+ preselected_key?: string | undefined;
254
+ label_field?: string | undefined;
255
+ availability_condition?: {
256
+ field: string;
257
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
258
+ value: string | undefined;
259
+ }[] | undefined;
260
+ loaded?: any[] | undefined;
261
+ dateTimeArgumentTypeId?: number | undefined;
262
+ allow_create?: boolean | undefined;
263
+ allow_create_label?: string | undefined;
264
+ }) | ({
265
+ type: "dependent";
266
+ value: string;
267
+ order_key: number;
268
+ } & {
269
+ label?: string | undefined;
270
+ chosen?: string | number | undefined;
271
+ selected?: any[] | undefined;
272
+ input_type?: string | undefined;
273
+ preselected_key?: string | undefined;
274
+ label_field?: string | undefined;
275
+ availability_condition?: {
276
+ field: string;
277
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
278
+ value: string | undefined;
279
+ }[] | undefined;
280
+ loaded?: any[] | undefined;
281
+ allow_create?: boolean | undefined;
282
+ allow_create_label?: string | undefined;
283
+ }) | ({
284
+ type: "function";
285
+ value: string;
286
+ order_key: number;
287
+ } & {
288
+ label?: string | undefined;
289
+ chosen?: string | number | undefined;
290
+ selected?: any[] | undefined;
291
+ input_type?: string | undefined;
292
+ preselected_key?: string | undefined;
293
+ label_field?: string | undefined;
294
+ availability_condition?: {
295
+ field: string;
296
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
297
+ value: string | undefined;
298
+ }[] | undefined;
299
+ loaded?: any[] | undefined;
300
+ allow_create?: boolean | undefined;
301
+ allow_create_label?: string | undefined;
302
+ });
303
+ };
304
+ tags: string[];
305
+ availability_rules: ({
306
+ type: "url" | "context" | "element";
307
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
308
+ } & {
309
+ field?: string | undefined;
310
+ value?: string | undefined;
311
+ reason?: string | undefined;
312
+ })[];
313
+ recommend_rules: (({
314
+ type: "always";
315
+ } & {
316
+ operator?: null | undefined;
317
+ field?: null | undefined;
318
+ value?: null | undefined;
319
+ reason?: null | undefined;
320
+ }) | ({
321
+ type: "url" | "context" | "element";
322
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
323
+ } & {
324
+ field?: string | undefined;
325
+ value?: string | undefined;
326
+ reason?: string | undefined;
327
+ }))[];
328
+ confirm: string;
329
+ shortcut: string[];
330
+ explanation: string;
331
+ is_live: boolean;
332
+ category: number | null;
333
+ sort_key: number | null;
334
+ icon: string | null;
335
+ celebrate: boolean | {
336
+ angle?: number | undefined;
337
+ spread?: number | undefined;
338
+ width?: string | undefined;
339
+ height?: string | undefined;
340
+ duration?: number | undefined;
341
+ dragFriction?: number | undefined;
342
+ stagger?: number | undefined;
343
+ startVelocity?: number | undefined;
344
+ elementCount?: number | undefined;
345
+ decay?: number | undefined;
346
+ colors?: string[] | undefined;
347
+ random?: any;
348
+ } | null;
349
+ recommend_sort_key: number | null;
350
+ shortcut_mac: string[];
351
+ shortcut_win: string[];
352
+ hotkey_mac: string;
353
+ hotkey_win: string;
354
+ detail: string | {
355
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
356
+ value: string;
357
+ } | (string | {
358
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
359
+ value: string;
360
+ })[] | null;
361
+ };
362
+ export declare const isResource: (option: any) => option is IResourceType;
363
+ export declare const isContextArgument: (argument: IArgumentType) => argument is {
364
+ type: "context";
365
+ value: string;
366
+ order_key: number;
367
+ } & {
368
+ label?: string | undefined;
369
+ chosen?: string | number | undefined;
370
+ selected?: any[] | undefined;
371
+ input_type?: string | undefined;
372
+ preselected_key?: string | undefined;
373
+ label_field?: string | undefined;
374
+ availability_condition?: {
375
+ field: string;
376
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
377
+ value: string | undefined;
378
+ }[] | undefined;
379
+ loaded?: any[] | undefined;
380
+ allow_create?: boolean | undefined;
381
+ allow_create_label?: string | undefined;
382
+ show_in_record_action_list?: boolean | undefined;
383
+ show_in_default_list?: boolean | undefined;
384
+ };
385
+ export declare const isTimeArgument: (argument: IArgumentType) => argument is {
386
+ type: "provided";
387
+ value: "time" | "text";
388
+ order_key: number;
389
+ } & {
390
+ label?: string | undefined;
391
+ chosen?: string | number | undefined;
392
+ selected?: any[] | undefined;
393
+ input_type?: string | undefined;
394
+ preselected_key?: string | undefined;
395
+ label_field?: string | undefined;
396
+ availability_condition?: {
397
+ field: string;
398
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
399
+ value: string | undefined;
400
+ }[] | undefined;
401
+ loaded?: any[] | undefined;
402
+ dateTimeArgumentTypeId?: number | undefined;
403
+ allow_create?: boolean | undefined;
404
+ allow_create_label?: string | undefined;
405
+ };
406
+ export declare const isFunctionArgument: (argument: IArgumentType) => argument is {
407
+ type: "function";
408
+ value: string;
409
+ order_key: number;
410
+ } & {
411
+ label?: string | undefined;
412
+ chosen?: string | number | undefined;
413
+ selected?: any[] | undefined;
414
+ input_type?: string | undefined;
415
+ preselected_key?: string | undefined;
416
+ label_field?: string | undefined;
417
+ availability_condition?: {
418
+ field: string;
419
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
420
+ value: string | undefined;
421
+ }[] | undefined;
422
+ loaded?: any[] | undefined;
423
+ allow_create?: boolean | undefined;
424
+ allow_create_label?: string | undefined;
425
+ };
@@ -0,0 +1,12 @@
1
+ import * as t from 'io-ts';
2
+ export declare const UserV: t.IntersectionC<[t.TypeC<{
3
+ id: t.UnionC<[t.NumberC, t.StringC]>;
4
+ }>, t.TypeC<{
5
+ token: t.StringC;
6
+ email: t.StringC;
7
+ organization: t.StringC;
8
+ api_token: t.UnionC<[t.StringC, t.NullC]>;
9
+ profile: t.NumberC;
10
+ has_updated_password: t.BooleanC;
11
+ is_active: t.BooleanC;
12
+ }>, t.PartialC<{}>]>;
@@ -0,0 +1,17 @@
1
+ import { _dispose, _disposed } from '../client/symbols';
2
+ export declare type PublicDisposable = {
3
+ dispose: VoidFunction;
4
+ _disposed?: boolean;
5
+ };
6
+ export declare type PrivateDisposable = {
7
+ [_dispose]: VoidFunction;
8
+ [_disposed]?: boolean;
9
+ };
10
+ export declare type Disposable = undefined | PublicDisposable | PrivateDisposable;
11
+ export declare const isDisposable: (x: unknown) => x is Disposable;
12
+ /**
13
+ * Determines if the provided value is "disposed". A value is considered "disposed" if it is an object with the
14
+ * _disposed property or symbol symbol set to true, or if the actual value is undefined.
15
+ */
16
+ export declare const isDisposed: (x: unknown) => boolean;
17
+ export declare function dispose(x: Disposable): void;
@@ -0,0 +1,6 @@
1
+ declare const LocalStorage: {
2
+ set: (label: string, value: string | boolean | number) => string | number | boolean;
3
+ get: (label: string, defaultValue: string | boolean | number) => string | number | boolean;
4
+ remove: (label: string) => void;
5
+ };
6
+ export default LocalStorage;
@@ -0,0 +1,18 @@
1
+ import Debug from 'debug';
2
+ declare const Logger: {
3
+ debug: Debug.Debugger;
4
+ log: Debug.Debugger;
5
+ info: Debug.Debugger;
6
+ warn: Debug.Debugger;
7
+ error: Debug.Debugger;
8
+ red: (...args: any[]) => void;
9
+ green: (...args: any[]) => void;
10
+ blue: (...args: any[]) => void;
11
+ orange: (...args: any[]) => void;
12
+ yellow: (...args: any[]) => void;
13
+ purple: (...args: any[]) => void;
14
+ black: (...args: any[]) => void;
15
+ portalsend: (...args: any[]) => void;
16
+ portalreceive: (...args: any[]) => void;
17
+ };
18
+ export default Logger;
@@ -0,0 +1,2 @@
1
+ export declare function dispatchCustomEvent<T>(eventType: string, detail: T, canBubble?: boolean, cancelable?: boolean): CustomEvent<T>;
2
+ export default dispatchCustomEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commandbar",
3
- "version": "1.6.7",
3
+ "version": "1.6.10",
4
4
  "description": "Javascript Utility for CommandBar",
5
5
  "main": "build/commandbar-js/src/index.js",
6
6
  "types": "build/commandbar-js/src/index.d.ts",
package/src/init.ts CHANGED
@@ -3,7 +3,7 @@ import 'es6-object-assign/auto';
3
3
  import 'es6-symbol/implement';
4
4
  import { getProxySDK } from '../../internal/src/client/proxy';
5
5
  import { _configuration } from '../../internal/src/client/symbols';
6
- import { IConfigEndpointResponse } from '@commandbar/internal/middleware/types';
6
+ import { IConfigEndpointResponse } from '../../internal/src/middleware/types';
7
7
 
8
8
  interface IInitOptions {
9
9
  debug?: boolean;