commandbar 1.7.3 → 1.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/build/commandbar-js/src/index.js +1 -1
  2. package/package.json +2 -2
  3. package/src/snippet.ts +1 -0
  4. package/build/internal/src/client/AddContextOptions.d.ts +0 -123
  5. package/build/internal/src/client/AnalyticsEventTypes.d.ts +0 -1
  6. package/build/internal/src/client/CommandBarClientSDK.d.ts +0 -376
  7. package/build/internal/src/client/CommandBarProxySDK.d.ts +0 -49
  8. package/build/internal/src/client/CommandBarSDK.d.ts +0 -65
  9. package/build/internal/src/client/EventHandler.d.ts +0 -207
  10. package/build/internal/src/client/OrgConfig.d.ts +0 -5
  11. package/build/internal/src/client/SDKConfig.d.ts +0 -13
  12. package/build/internal/src/client/SentryReporter.d.ts +0 -62
  13. package/build/internal/src/client/globals.d.ts +0 -20
  14. package/build/internal/src/client/proxy.d.ts +0 -15
  15. package/build/internal/src/client/symbols.d.ts +0 -41
  16. package/build/internal/src/middleware/CommandFromClientV.d.ts +0 -290
  17. package/build/internal/src/middleware/ICommandFromClientType.d.ts +0 -5
  18. package/build/internal/src/middleware/IResourceSettings.d.ts +0 -3
  19. package/build/internal/src/middleware/OrganizationV.d.ts +0 -177
  20. package/build/internal/src/middleware/ResourceSettingsV.d.ts +0 -91
  21. package/build/internal/src/middleware/checklist.d.ts +0 -740
  22. package/build/internal/src/middleware/command.d.ts +0 -6678
  23. package/build/internal/src/middleware/commandCategory.d.ts +0 -192
  24. package/build/internal/src/middleware/confetti.d.ts +0 -16
  25. package/build/internal/src/middleware/context.d.ts +0 -40
  26. package/build/internal/src/middleware/dashboardFlags.d.ts +0 -9
  27. package/build/internal/src/middleware/detailPreview.d.ts +0 -24
  28. package/build/internal/src/middleware/environment.d.ts +0 -11
  29. package/build/internal/src/middleware/generics.d.ts +0 -40
  30. package/build/internal/src/middleware/guide.d.ts +0 -37
  31. package/build/internal/src/middleware/helpDocsIntegration.d.ts +0 -66
  32. package/build/internal/src/middleware/helpDocsSync.d.ts +0 -42
  33. package/build/internal/src/middleware/helpers/actions.d.ts +0 -84
  34. package/build/internal/src/middleware/helpers/argument.d.ts +0 -448
  35. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +0 -225
  36. package/build/internal/src/middleware/helpers/endUser.d.ts +0 -11
  37. package/build/internal/src/middleware/helpers/goals.d.ts +0 -26
  38. package/build/internal/src/middleware/helpers/optionGroup.d.ts +0 -2
  39. package/build/internal/src/middleware/helpers/rules.d.ts +0 -260
  40. package/build/internal/src/middleware/helpers/tags.d.ts +0 -7
  41. package/build/internal/src/middleware/historyEvent.d.ts +0 -21
  42. package/build/internal/src/middleware/network.d.ts +0 -4
  43. package/build/internal/src/middleware/nudge.d.ts +0 -1057
  44. package/build/internal/src/middleware/organization.d.ts +0 -978
  45. package/build/internal/src/middleware/placeholder.d.ts +0 -47
  46. package/build/internal/src/middleware/profile.d.ts +0 -11
  47. package/build/internal/src/middleware/releases.d.ts +0 -261
  48. package/build/internal/src/middleware/skin.d.ts +0 -94
  49. package/build/internal/src/middleware/tab.d.ts +0 -27
  50. package/build/internal/src/middleware/types.d.ts +0 -155
  51. package/build/internal/src/middleware/user.d.ts +0 -15
  52. package/build/internal/src/util/Disposable.d.ts +0 -17
  53. package/build/internal/src/util/LocalStorage.d.ts +0 -6
  54. package/build/internal/src/util/Logger.d.ts +0 -18
  55. package/build/internal/src/util/dispatchCustomEvent.d.ts +0 -2
@@ -1,26 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const CommandGoal: t.TypeC<{
3
- type: t.LiteralC<"command_executed">;
4
- meta: t.TypeC<{
5
- command: t.StringC;
6
- }>;
7
- }>;
8
- export declare const PageVisitedGoal: t.TypeC<{
9
- type: t.LiteralC<"page_visited">;
10
- value: t.StringC;
11
- }>;
12
- export declare const ElementClickedGoal: t.TypeC<{
13
- type: t.LiteralC<"element_clicked">;
14
- value: t.StringC;
15
- }>;
16
- export declare const ConditionsMetGoal: t.TypeC<{
17
- type: t.LiteralC<"conditions_met">;
18
- expression: t.Type<import("./rules").RuleExpression, import("./rules").RuleExpression, unknown>;
19
- }>;
20
- export declare const CTAClickedGoal: t.TypeC<{
21
- type: t.LiteralC<"cta_clicked">;
22
- }>;
23
- export declare const EventTrackedGoal: t.TypeC<{
24
- type: t.LiteralC<"event_tracked">;
25
- event: t.StringC;
26
- }>;
@@ -1,2 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const OptionGroupRenderAsV: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
@@ -1,260 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const operators: readonly ["is", "isNot", "isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "includes", "doesNotInclude", "matchesRegex", "isGreaterThan", "isLessThan", "isBefore", "isAfter", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage", "selectorOnPage"];
3
- declare const OperatorV: t.KeyofC<{
4
- includes: null;
5
- endsWith: null;
6
- startsWith: null;
7
- is: null;
8
- isNot: null;
9
- isTrue: null;
10
- isFalse: null;
11
- isTruthy: null;
12
- isFalsy: null;
13
- doesNotInclude: null;
14
- matchesRegex: null;
15
- isGreaterThan: null;
16
- isLessThan: null;
17
- isBefore: null;
18
- isAfter: null;
19
- isDefined: null;
20
- isNotDefined: null;
21
- classnameOnPage: null;
22
- idOnPage: null;
23
- selectorOnPage: null;
24
- }>;
25
- export declare const ConditionV: t.IntersectionC<[t.TypeC<{
26
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
27
- operator: t.KeyofC<{
28
- includes: null;
29
- endsWith: null;
30
- startsWith: null;
31
- is: null;
32
- isNot: null;
33
- isTrue: null;
34
- isFalse: null;
35
- isTruthy: null;
36
- isFalsy: null;
37
- doesNotInclude: null;
38
- matchesRegex: null;
39
- isGreaterThan: null;
40
- isLessThan: null;
41
- isBefore: null;
42
- isAfter: null;
43
- isDefined: null;
44
- isNotDefined: null;
45
- classnameOnPage: null;
46
- idOnPage: null;
47
- selectorOnPage: null;
48
- }>;
49
- }>, t.PartialC<{
50
- field: t.StringC;
51
- value: t.StringC;
52
- reason: t.StringC;
53
- rule_id: t.UnionC<[t.NumberC, t.StringC]>;
54
- }>]>;
55
- export declare const getConditions: (expr: RuleExpression) => ExpressionCondition[];
56
- export declare const canonicalize: (expr: RuleExpression) => RuleExpression;
57
- export declare function isCompoundExpression(expr: RuleExpression): expr is RuleExpressionAnd | RuleExpressionOr;
58
- export declare type ExpressionCondition = t.TypeOf<typeof ConditionV> | t.TypeOf<typeof NamedRuleReferenceV>;
59
- export declare type RuleExpression = RuleExpressionAnd | RuleExpressionOr | RuleExpressionLiteral | RuleExpressionCondition;
60
- export declare type RuleExpressionAnd = {
61
- type: 'AND';
62
- exprs: RuleExpression[];
63
- };
64
- export declare type RuleExpressionOr = {
65
- type: 'OR';
66
- exprs: RuleExpression[];
67
- };
68
- export declare type RuleExpressionLiteral = {
69
- type: 'LITERAL';
70
- value: boolean;
71
- };
72
- export declare type RuleExpressionCondition = {
73
- type: 'CONDITION';
74
- condition: ExpressionCondition;
75
- };
76
- export declare const RuleExpressionAndV: t.Type<RuleExpressionAnd>;
77
- export declare const RuleExpressionOrV: t.Type<RuleExpressionOr>;
78
- export declare const RuleExpressionLiteralV: t.Type<RuleExpressionLiteral>;
79
- export declare const RuleExpressionConditionV: t.Type<RuleExpressionCondition>;
80
- export declare const RuleExpressionV: t.Type<RuleExpression>;
81
- export declare const RuleExpressionTrue: t.TypeOf<typeof RuleExpressionLiteralV>;
82
- export declare const RuleExpressionFalse: t.TypeOf<typeof RuleExpressionLiteralV>;
83
- export declare const NamedRuleReferenceV: t.IntersectionC<[t.TypeC<{
84
- type: t.LiteralC<"named_rule">;
85
- rule_id: t.UnionC<[t.NumberC, t.StringC]>;
86
- }>, t.PartialC<{
87
- reason: t.StringC;
88
- }>]>;
89
- export declare const RecommendationRuleAlwaysV: t.IntersectionC<[t.TypeC<{
90
- type: t.LiteralC<"always">;
91
- }>, t.PartialC<{
92
- operator: t.UnionC<[t.UndefinedC, t.NullC]>;
93
- field: t.UnionC<[t.UndefinedC, t.NullC]>;
94
- value: t.UnionC<[t.UndefinedC, t.NullC]>;
95
- reason: t.UnionC<[t.UndefinedC, t.NullC]>;
96
- rule_id: t.UnionC<[t.NumberC, t.StringC]>;
97
- }>]>;
98
- export declare const AvailabilityRuleV: t.IntersectionC<[t.TypeC<{
99
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
100
- operator: t.KeyofC<{
101
- includes: null;
102
- endsWith: null;
103
- startsWith: null;
104
- is: null;
105
- isNot: null;
106
- isTrue: null;
107
- isFalse: null;
108
- isTruthy: null;
109
- isFalsy: null;
110
- doesNotInclude: null;
111
- matchesRegex: null;
112
- isGreaterThan: null;
113
- isLessThan: null;
114
- isBefore: null;
115
- isAfter: null;
116
- isDefined: null;
117
- isNotDefined: null;
118
- classnameOnPage: null;
119
- idOnPage: null;
120
- selectorOnPage: null;
121
- }>;
122
- }>, t.PartialC<{
123
- field: t.StringC;
124
- value: t.StringC;
125
- reason: t.StringC;
126
- rule_id: t.UnionC<[t.NumberC, t.StringC]>;
127
- }>]>;
128
- export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
129
- type: t.LiteralC<"always">;
130
- }>, t.PartialC<{
131
- operator: t.UnionC<[t.UndefinedC, t.NullC]>;
132
- field: t.UnionC<[t.UndefinedC, t.NullC]>;
133
- value: t.UnionC<[t.UndefinedC, t.NullC]>;
134
- reason: t.UnionC<[t.UndefinedC, t.NullC]>;
135
- rule_id: t.UnionC<[t.NumberC, t.StringC]>;
136
- }>]>, t.IntersectionC<[t.TypeC<{
137
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
138
- operator: t.KeyofC<{
139
- includes: null;
140
- endsWith: null;
141
- startsWith: null;
142
- is: null;
143
- isNot: null;
144
- isTrue: null;
145
- isFalse: null;
146
- isTruthy: null;
147
- isFalsy: null;
148
- doesNotInclude: null;
149
- matchesRegex: null;
150
- isGreaterThan: null;
151
- isLessThan: null;
152
- isBefore: null;
153
- isAfter: null;
154
- isDefined: null;
155
- isNotDefined: null;
156
- classnameOnPage: null;
157
- idOnPage: null;
158
- selectorOnPage: null;
159
- }>;
160
- }>, t.PartialC<{
161
- field: t.StringC;
162
- value: t.StringC;
163
- reason: t.StringC;
164
- rule_id: t.UnionC<[t.NumberC, t.StringC]>;
165
- }>]>]>;
166
- export declare const EditorAvailabilityRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
167
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
168
- operator: t.KeyofC<{
169
- includes: null;
170
- endsWith: null;
171
- startsWith: null;
172
- is: null;
173
- isNot: null;
174
- isTrue: null;
175
- isFalse: null;
176
- isTruthy: null;
177
- isFalsy: null;
178
- doesNotInclude: null;
179
- matchesRegex: null;
180
- isGreaterThan: null;
181
- isLessThan: null;
182
- isBefore: null;
183
- isAfter: null;
184
- isDefined: null;
185
- isNotDefined: null;
186
- classnameOnPage: null;
187
- idOnPage: null;
188
- selectorOnPage: null;
189
- }>;
190
- }>, t.PartialC<{
191
- field: t.StringC;
192
- value: t.StringC;
193
- reason: t.StringC;
194
- rule_id: t.UnionC<[t.NumberC, t.StringC]>;
195
- }>]>, t.IntersectionC<[t.TypeC<{
196
- type: t.LiteralC<"named_rule">;
197
- rule_id: t.UnionC<[t.NumberC, t.StringC]>;
198
- }>, t.PartialC<{
199
- reason: t.StringC;
200
- }>]>]>;
201
- export declare const EditorRecommendationRuleV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
202
- type: t.LiteralC<"always">;
203
- }>, t.PartialC<{
204
- operator: t.UnionC<[t.UndefinedC, t.NullC]>;
205
- field: t.UnionC<[t.UndefinedC, t.NullC]>;
206
- value: t.UnionC<[t.UndefinedC, t.NullC]>;
207
- reason: t.UnionC<[t.UndefinedC, t.NullC]>;
208
- rule_id: t.UnionC<[t.NumberC, t.StringC]>;
209
- }>]>, t.IntersectionC<[t.TypeC<{
210
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
211
- operator: t.KeyofC<{
212
- includes: null;
213
- endsWith: null;
214
- startsWith: null;
215
- is: null;
216
- isNot: null;
217
- isTrue: null;
218
- isFalse: null;
219
- isTruthy: null;
220
- isFalsy: null;
221
- doesNotInclude: null;
222
- matchesRegex: null;
223
- isGreaterThan: null;
224
- isLessThan: null;
225
- isBefore: null;
226
- isAfter: null;
227
- isDefined: null;
228
- isNotDefined: null;
229
- classnameOnPage: null;
230
- idOnPage: null;
231
- selectorOnPage: null;
232
- }>;
233
- }>, t.PartialC<{
234
- field: t.StringC;
235
- value: t.StringC;
236
- reason: t.StringC;
237
- rule_id: t.UnionC<[t.NumberC, t.StringC]>;
238
- }>]>]>, t.IntersectionC<[t.TypeC<{
239
- type: t.LiteralC<"named_rule">;
240
- rule_id: t.UnionC<[t.NumberC, t.StringC]>;
241
- }>, t.PartialC<{
242
- reason: t.StringC;
243
- }>]>]>;
244
- export declare const NamedRuleV: t.TypeC<{
245
- id: t.UnionC<[t.NumberC, t.StringC]>;
246
- name: t.StringC;
247
- expression: t.Type<RuleExpression, RuleExpression, unknown>;
248
- }>;
249
- export declare type IRuleOperator = t.TypeOf<typeof OperatorV>;
250
- export declare type IAvailabilityRule = t.TypeOf<typeof AvailabilityRuleV>;
251
- export declare type IEditorAvailabilityRule = t.TypeOf<typeof EditorAvailabilityRuleV>;
252
- export declare type IRecommendationRule = t.TypeOf<typeof RecommendationRuleV>;
253
- export declare type IEditorRecommendationRule = t.TypeOf<typeof EditorRecommendationRuleV>;
254
- export declare type ICondition = t.TypeOf<typeof ConditionV>;
255
- export declare type IAvailabilityRuleType = IAvailabilityRule['type'];
256
- export declare type IRecommendationRuleType = IRecommendationRule['type'];
257
- export declare type IRule = IAvailabilityRule | IRecommendationRule;
258
- export declare type IEditorRule = IEditorAvailabilityRule | IEditorRecommendationRule;
259
- export declare type INamedRule = t.TypeOf<typeof NamedRuleV>;
260
- export {};
@@ -1,7 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const GeneratedTagsV: t.PartialC<{
3
- automated: t.UnionC<[t.ArrayC<t.StringC>, t.NullC]>;
4
- manual: t.UnionC<[t.ArrayC<t.StringC>, t.NullC]>;
5
- deny: t.UnionC<[t.ArrayC<t.StringC>, t.NullC]>;
6
- }>;
7
- export declare type IGeneratedTags = t.TypeOf<typeof GeneratedTagsV>;
@@ -1,21 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const HistoryEventV: t.IntersectionC<[t.TypeC<{
3
- id: t.NumberC;
4
- organization: t.StringC;
5
- changed_by: t.StringC;
6
- description: t.StringC;
7
- created: t.StringC;
8
- sha1: t.StringC;
9
- version_num: t.NumberC;
10
- }>, t.PartialC<{}>]>;
11
- export declare class HistoryEvent {
12
- static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
13
- id: number;
14
- organization: string;
15
- changed_by: string;
16
- description: string;
17
- created: string;
18
- sha1: string;
19
- version_num: number;
20
- } & {})[]>;
21
- }
@@ -1,4 +0,0 @@
1
- export declare const baseURL: string;
2
- export declare const authorizationHeader: string | null;
3
- declare const axiosInstance: import("axios").AxiosInstance;
4
- export default axiosInstance;