commandbar 1.8.5 → 1.8.6
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 +141 -0
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
- package/build/internal/src/client/CommandBarClientSDK.d.ts +403 -0
- package/build/internal/src/client/CommandBarProxySDK.d.ts +49 -0
- package/build/internal/src/client/CommandBarSDK.d.ts +79 -0
- package/build/internal/src/client/EventHandler.d.ts +282 -0
- package/build/internal/src/client/OrgConfig.d.ts +5 -0
- package/build/internal/src/client/SDKConfig.d.ts +13 -0
- package/build/internal/src/client/SentryReporter.d.ts +63 -0
- package/build/internal/src/client/globals.d.ts +20 -0
- package/build/internal/src/client/proxy.d.ts +15 -0
- package/build/internal/src/client/symbols.d.ts +50 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +283 -0
- package/build/internal/src/middleware/ICommandFromClientType.d.ts +5 -0
- package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +329 -0
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +119 -0
- package/build/internal/src/middleware/additionalResource.d.ts +302 -0
- package/build/internal/src/middleware/billing.d.ts +41 -0
- package/build/internal/src/middleware/chatAnalytics.d.ts +2601 -0
- package/build/internal/src/middleware/checklist.d.ts +1014 -0
- package/build/internal/src/middleware/command.d.ts +8908 -0
- package/build/internal/src/middleware/commandCategory.d.ts +192 -0
- package/build/internal/src/middleware/confetti.d.ts +16 -0
- package/build/internal/src/middleware/context.d.ts +40 -0
- package/build/internal/src/middleware/dashboardFlags.d.ts +9 -0
- package/build/internal/src/middleware/detailPreview.d.ts +24 -0
- package/build/internal/src/middleware/environment.d.ts +11 -0
- package/build/internal/src/middleware/generics.d.ts +42 -0
- package/build/internal/src/middleware/guide.d.ts +37 -0
- package/build/internal/src/middleware/helpDocsIntegration.d.ts +72 -0
- package/build/internal/src/middleware/helpDocsSync.d.ts +63 -0
- package/build/internal/src/middleware/helpers/actions.d.ts +184 -0
- package/build/internal/src/middleware/helpers/argument.d.ts +318 -0
- package/build/internal/src/middleware/helpers/audience.d.ts +15 -0
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +252 -0
- package/build/internal/src/middleware/helpers/endUser.d.ts +11 -0
- package/build/internal/src/middleware/helpers/frequencyLimit.d.ts +2 -0
- package/build/internal/src/middleware/helpers/goals.d.ts +26 -0
- package/build/internal/src/middleware/helpers/optionGroup.d.ts +2 -0
- package/build/internal/src/middleware/helpers/pushTrigger.d.ts +26 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +289 -0
- package/build/internal/src/middleware/helpers/tags.d.ts +7 -0
- package/build/internal/src/middleware/historyEvent.d.ts +21 -0
- package/build/internal/src/middleware/network.d.ts +3 -0
- package/build/internal/src/middleware/nudge.d.ts +1669 -0
- package/build/internal/src/middleware/organization.d.ts +1540 -0
- package/build/internal/src/middleware/organizationSettings.d.ts +330 -0
- package/build/internal/src/middleware/placeholder.d.ts +47 -0
- package/build/internal/src/middleware/profile.d.ts +11 -0
- package/build/internal/src/middleware/qaPair.d.ts +676 -0
- package/build/internal/src/middleware/recommendationSet.d.ts +1199 -0
- package/build/internal/src/middleware/releases.d.ts +261 -0
- package/build/internal/src/middleware/skin.d.ts +102 -0
- package/build/internal/src/middleware/tab.d.ts +27 -0
- package/build/internal/src/middleware/types.d.ts +218 -0
- package/build/internal/src/middleware/user.d.ts +15 -0
- package/build/internal/src/middleware/utils.d.ts +11 -0
- package/build/internal/src/util/Disposable.d.ts +17 -0
- package/build/internal/src/util/LocalStorage.d.ts +6 -0
- package/build/internal/src/util/Logger.d.ts +18 -0
- package/build/internal/src/util/dispatchCustomEvent.d.ts +12 -0
- package/build/internal/src/util/integrations.d.ts +1 -0
- package/package.json +2 -2
- package/jest.config.js +0 -4
- package/scripts/minify-snippet.ts +0 -36
- package/scripts/watch.ts +0 -5
- package/test/init.test.ts +0 -3
- package/tsconfig.json +0 -24
- package/webpack.config.js +0 -35
@@ -0,0 +1,282 @@
|
|
1
|
+
import { IPushTrigger } from '../middleware/types';
|
2
|
+
interface EventCommandDetailsBase {
|
3
|
+
icon: string | null;
|
4
|
+
}
|
5
|
+
interface EventLinkCommandDetails {
|
6
|
+
url: string;
|
7
|
+
}
|
8
|
+
export type EventCommandDetails = EventCommandDetailsBase | EventLinkCommandDetails;
|
9
|
+
export interface AbandonedSearchEvent {
|
10
|
+
type: 'abandoned_search';
|
11
|
+
/** Event data passed for `abandoned_search` events (deadends). */
|
12
|
+
/** The id of the currently active command, if there is one. */
|
13
|
+
command?: number;
|
14
|
+
/** DEPRECATED. The text of the deadend. */
|
15
|
+
['inputText[*]']: string;
|
16
|
+
/** The text of the deadend. */
|
17
|
+
inputText: string;
|
18
|
+
/** The context key of the currently active resource, if there is one. */
|
19
|
+
resource?: string;
|
20
|
+
/** The trigger for the deadend. */
|
21
|
+
trigger: 'Backspaced' | 'Closed with text' | 'Resetting search';
|
22
|
+
/** The number of {CommandOptions, ParameterOptions}, if there are any. */
|
23
|
+
results?: {
|
24
|
+
numCommands: number;
|
25
|
+
numRecords: number;
|
26
|
+
};
|
27
|
+
/** command_ids of previously executed commands in the session */
|
28
|
+
previousCommands?: string[];
|
29
|
+
}
|
30
|
+
export interface ClosedEvent {
|
31
|
+
type: 'closed';
|
32
|
+
/** Event data passed for `command_execution` events. */
|
33
|
+
/** The user's input text when the bar was closed. */
|
34
|
+
inputText: string;
|
35
|
+
/** True if this command was triggered by a shortcut. */
|
36
|
+
shortcut?: boolean;
|
37
|
+
}
|
38
|
+
export type PreviewEngagementType = 'scrolled' | 'clicked_link' | 'watched_video';
|
39
|
+
export type HelpHubDocEngagementType = 'scrolled' | 'clicked_link' | 'watched_video' | 'opened';
|
40
|
+
export type HelpHubEngagementType = 'search' | 'scrolled' | 'chat_started' | 'chat_closed' | 'continuation_clicked' | 'suggested_query_clicked';
|
41
|
+
export type ChecklistEngagementType = 'expanded' | 'collapsed' | 'dismissed' | 'completed';
|
42
|
+
export type ChecklistItemEngagementType = 'expanded' | 'completed' | 'cta_clicked' | 'skipped';
|
43
|
+
export type EngagementType = ChecklistEngagementType | ChecklistItemEngagementType | PreviewEngagementType | HelpHubEngagementType | HelpHubDocEngagementType;
|
44
|
+
export type PushTrigger = IPushTrigger;
|
45
|
+
export interface ChecklistEvent {
|
46
|
+
type: 'questlist_shown' | 'questlist_engagement';
|
47
|
+
questlist: {
|
48
|
+
id: number;
|
49
|
+
trigger: PushTrigger;
|
50
|
+
title: string;
|
51
|
+
total_items: number;
|
52
|
+
completed_items: number;
|
53
|
+
completed: boolean;
|
54
|
+
};
|
55
|
+
engagement_type?: ChecklistEngagementType;
|
56
|
+
}
|
57
|
+
export interface ChecklistItemEvent {
|
58
|
+
type: 'questlist_item_engagement';
|
59
|
+
questlist_item: {
|
60
|
+
id: number;
|
61
|
+
questlist_id: number;
|
62
|
+
title: string;
|
63
|
+
cta?: string;
|
64
|
+
goal: {
|
65
|
+
type: 'page_visited';
|
66
|
+
value: string;
|
67
|
+
} | {
|
68
|
+
type: 'command_executed';
|
69
|
+
meta: {
|
70
|
+
command: string;
|
71
|
+
};
|
72
|
+
} | {
|
73
|
+
type: 'element_clicked';
|
74
|
+
value: string;
|
75
|
+
} | {
|
76
|
+
type: 'conditions_met';
|
77
|
+
} | {
|
78
|
+
type: 'cta_clicked';
|
79
|
+
} | {
|
80
|
+
type: 'event_tracked';
|
81
|
+
};
|
82
|
+
completed: boolean;
|
83
|
+
};
|
84
|
+
engagement_type: ChecklistItemEngagementType;
|
85
|
+
}
|
86
|
+
export interface PreviewEvent {
|
87
|
+
type: 'preview_shown' | 'next_step_selected' | 'preview_link_opened' | 'preview_engagement';
|
88
|
+
preview: {
|
89
|
+
preview_type: 'html' | 'markdown' | 'plaintext' | 'react' | 'video' | 'component';
|
90
|
+
form_factor: 'inline' | 'popover';
|
91
|
+
time_shown?: number;
|
92
|
+
source: {
|
93
|
+
command?: string;
|
94
|
+
record?: string;
|
95
|
+
};
|
96
|
+
id: string;
|
97
|
+
};
|
98
|
+
}
|
99
|
+
export interface PreviewEngagementEvent extends PreviewEvent {
|
100
|
+
type: 'preview_engagement';
|
101
|
+
engagement_type: PreviewEngagementType;
|
102
|
+
}
|
103
|
+
export type ChatHistory = {
|
104
|
+
question: string;
|
105
|
+
answer: {
|
106
|
+
message_id: number | undefined;
|
107
|
+
message: string;
|
108
|
+
} | null;
|
109
|
+
}[];
|
110
|
+
export interface HelpHubEvent {
|
111
|
+
type: 'help_hub_closed' | 'help_hub_opened' | 'help_hub_engagement';
|
112
|
+
helpHub: {
|
113
|
+
query: string | null | undefined;
|
114
|
+
};
|
115
|
+
}
|
116
|
+
type HelpHubEngagementEventExtended = {
|
117
|
+
engagement_type: 'search' | 'scrolled' | 'chat_started' | 'chat_closed';
|
118
|
+
} | {
|
119
|
+
engagement_type: 'suggested_query_clicked';
|
120
|
+
suggested_query: string;
|
121
|
+
} | {
|
122
|
+
engagement_type: 'continuation_clicked';
|
123
|
+
continuation: string;
|
124
|
+
chat_history: ChatHistory;
|
125
|
+
};
|
126
|
+
export type HelpHubEngagementEvent = HelpHubEvent & HelpHubEngagementEventExtended;
|
127
|
+
export interface HelpHubDocEvent {
|
128
|
+
type: 'help_hub_doc_closed' | 'help_hub_doc_opened' | 'help_hub_doc_engagement';
|
129
|
+
helpHubDoc: {
|
130
|
+
time_shown?: number;
|
131
|
+
query: string | null | undefined;
|
132
|
+
trigger?: ExecutionEventSource;
|
133
|
+
command?: number | string | undefined;
|
134
|
+
};
|
135
|
+
}
|
136
|
+
export interface HelpHubDocEngagementEvent extends HelpHubDocEvent {
|
137
|
+
type: 'help_hub_doc_engagement';
|
138
|
+
engagement_type: HelpHubDocEngagementType;
|
139
|
+
}
|
140
|
+
export interface HelpHubDocEngagementEvent extends HelpHubDocEvent {
|
141
|
+
type: 'help_hub_doc_engagement';
|
142
|
+
engagement_type: HelpHubDocEngagementType;
|
143
|
+
}
|
144
|
+
export interface NudgeEvent {
|
145
|
+
type: 'nudge_seen' | 'nudge_clicked' | 'nudge_completed' | 'nudge_dismissed';
|
146
|
+
nudge: {
|
147
|
+
id: string;
|
148
|
+
slug: string;
|
149
|
+
template_source: string;
|
150
|
+
frequency_limit: 'no_limit' | 'once_per_session' | 'once_per_user' | 'until_interaction';
|
151
|
+
trigger: PushTrigger;
|
152
|
+
step: {
|
153
|
+
id: number;
|
154
|
+
title: string;
|
155
|
+
} | undefined;
|
156
|
+
};
|
157
|
+
}
|
158
|
+
export interface SurveyResponseEvent {
|
159
|
+
type: 'survey_response';
|
160
|
+
response: {
|
161
|
+
type: 'number';
|
162
|
+
value: number;
|
163
|
+
emoji?: string;
|
164
|
+
max: number;
|
165
|
+
} | {
|
166
|
+
type: 'string';
|
167
|
+
value: string;
|
168
|
+
};
|
169
|
+
nudge: NudgeEvent['nudge'];
|
170
|
+
status: {
|
171
|
+
is_preview: boolean;
|
172
|
+
is_live: boolean;
|
173
|
+
};
|
174
|
+
}
|
175
|
+
export type ExecutionEventSource = {
|
176
|
+
type: 'bar';
|
177
|
+
} | {
|
178
|
+
type: 'helphub';
|
179
|
+
} | {
|
180
|
+
type: 'helphub_additional_resource';
|
181
|
+
} | {
|
182
|
+
type: 'helphub_recommendation';
|
183
|
+
} | {
|
184
|
+
type: 'nudge';
|
185
|
+
id: number | string;
|
186
|
+
} | {
|
187
|
+
type: 'questlist';
|
188
|
+
id: number;
|
189
|
+
};
|
190
|
+
export interface CommandExecutionEvent {
|
191
|
+
type: 'command_execution';
|
192
|
+
/** Event data passed for `command_execution` events. */
|
193
|
+
/** The category id of the command. Only provided if the command has a category. */
|
194
|
+
category?: string | number | null;
|
195
|
+
/** The text of the category */
|
196
|
+
categoryText?: string;
|
197
|
+
/**
|
198
|
+
* The unique id of the command. For commands defined via the Editor, the value will be a number. For programmatic
|
199
|
+
* commands, the `name` (string) provided will be used.
|
200
|
+
*/
|
201
|
+
command: number | string | undefined;
|
202
|
+
/** The text of the command */
|
203
|
+
commandText: string;
|
204
|
+
/** The source of the command. */
|
205
|
+
source: string;
|
206
|
+
/** The source of the command execution. */
|
207
|
+
eventSource: ExecutionEventSource;
|
208
|
+
/** DEPRECATED. The text input.*/
|
209
|
+
['inputText[*]']: string;
|
210
|
+
/** The text input.*/
|
211
|
+
inputText?: string;
|
212
|
+
/** True if this command was triggered by a shortcut. */
|
213
|
+
shortcut?: boolean;
|
214
|
+
/** Ranking order of the command option */
|
215
|
+
ranking?: number;
|
216
|
+
/** command_ids of previously executed commands in the session */
|
217
|
+
previousCommands?: string[];
|
218
|
+
/** Command types, as defined at: https://www.commandbar.com/docs/commands/overview */
|
219
|
+
commandType?: 'admin' | 'link' | 'script' | 'clickByXpath' | 'clickBySelector' | 'click' | 'callback' | 'builtin' | 'webhook' | 'request' | 'video' | 'helpdoc' | 'appcues' | 'trigger';
|
220
|
+
/** Selected arguments */
|
221
|
+
selections?: Record<string, unknown>;
|
222
|
+
commandDetails: EventCommandDetails;
|
223
|
+
}
|
224
|
+
export interface EndUserShortcutChangedEvent {
|
225
|
+
type: 'shortcut_edited';
|
226
|
+
/** Event data passed for `command_execution` events. */
|
227
|
+
/** The category id of the command. Only provided if the command has a category. */
|
228
|
+
category?: number | null;
|
229
|
+
/**
|
230
|
+
* The unique id of the command. For commands defined via the Editor, the value will be a number. For programmatic
|
231
|
+
* commands, the `name` (string) provided will be used.
|
232
|
+
*/
|
233
|
+
command: number | string | undefined;
|
234
|
+
/** The text of the command */
|
235
|
+
commandText: string;
|
236
|
+
/** The source of the command. */
|
237
|
+
source: string;
|
238
|
+
/** The updated shortcut. */
|
239
|
+
oldShortcut: string;
|
240
|
+
newShortcut: string;
|
241
|
+
defaultShortcut: string;
|
242
|
+
}
|
243
|
+
export interface CommandSuggestionEvent {
|
244
|
+
type: 'command_suggestion';
|
245
|
+
/** The text of the suggestion. */
|
246
|
+
text: string;
|
247
|
+
}
|
248
|
+
export interface OpenedEvent {
|
249
|
+
type: 'opened';
|
250
|
+
/** Event data passed for `command_execution` events. */
|
251
|
+
/**
|
252
|
+
* The entrypoint through which the bar was opened.
|
253
|
+
*
|
254
|
+
* * `launcher`: Click on the provided CommandBar launcher
|
255
|
+
* * `keyboard`: Cmd/Ctrl+K
|
256
|
+
* * `programmatic`: Call to `window.CommandBar.open()`. Clicks on the
|
257
|
+
* [commandbar-launcher](https://www.npmjs.com/package/commandbar-launcher) component register as programmatic
|
258
|
+
* opens.
|
259
|
+
*/
|
260
|
+
trigger: 'launcher' | 'keyboard' | 'programmatic' | 'nudge';
|
261
|
+
/** The placeholder showing when the user opened the bar. */
|
262
|
+
placeholder: string;
|
263
|
+
}
|
264
|
+
export type OpenedEventTrigger = OpenedEvent['trigger'];
|
265
|
+
export interface NoResultsForQueryEvent {
|
266
|
+
type: 'no_results_for_query';
|
267
|
+
/** Event data passed for `no_results_for_query` event */
|
268
|
+
/** The user's input text when the no results state was reached. */
|
269
|
+
inputText: string;
|
270
|
+
eventSource: ExecutionEventSource;
|
271
|
+
}
|
272
|
+
export interface NoChatResponseEvent {
|
273
|
+
type: 'no_chat_response';
|
274
|
+
/** Event data passed for `no_results_for_query` event */
|
275
|
+
/** The user's input text when the no results state was reached. */
|
276
|
+
chatHistory: ChatHistory;
|
277
|
+
}
|
278
|
+
export type EventData = AbandonedSearchEvent | ClosedEvent | CommandExecutionEvent | CommandSuggestionEvent | NudgeEvent | OpenedEvent | NoResultsForQueryEvent | EndUserShortcutChangedEvent;
|
279
|
+
export type EventHandler = (eventName: EventType, eventData: EventData) => void;
|
280
|
+
export type EventSubscriber = EventHandler;
|
281
|
+
export type EventType = 'abandoned_search' | 'command_suggestion' | 'command_execution' | 'nudge_shown' | 'nudge_clicked' | 'nudge_completed' | 'nudge_dismissed' | 'opened' | 'closed' | 'no_results_for_query' | 'client_error' | 'shortcut_edited' | 'preview_shown' | 'next_step_selected' | 'preview_link_opened' | 'preview_engagement' | 'questlist_shown' | 'questlist_engagement' | 'questlist_item_engagement' | 'help_hub_opened' | 'help_hub_closed' | 'help_hub_engagement' | 'help_hub_doc_opened' | 'help_hub_doc_closed' | 'help_hub_doc_engagement' | 'survey_response' | 'no_chat_response';
|
282
|
+
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { IConfigEndpointResponse } from '../middleware/types';
|
2
|
+
export interface SDKConfig {
|
3
|
+
api: string;
|
4
|
+
editor: string;
|
5
|
+
proxy: string;
|
6
|
+
session: string;
|
7
|
+
uuid: string;
|
8
|
+
foobarVersion?: string;
|
9
|
+
airgap: boolean;
|
10
|
+
environment?: string;
|
11
|
+
version?: string;
|
12
|
+
config?: IConfigEndpointResponse;
|
13
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { IOrganizationType } from '../middleware/types';
|
2
|
+
import { PublicDisposable } from '../util/Disposable';
|
3
|
+
type ExtraData = Record<string, unknown>;
|
4
|
+
export interface UserScopeOptions {
|
5
|
+
configuration: {
|
6
|
+
uuid?: string;
|
7
|
+
api: string;
|
8
|
+
editor: string;
|
9
|
+
proxy: string;
|
10
|
+
session: string;
|
11
|
+
};
|
12
|
+
organization?: IOrganizationType;
|
13
|
+
organizationId: string | number;
|
14
|
+
organizationName?: string;
|
15
|
+
session: string;
|
16
|
+
userId?: string;
|
17
|
+
}
|
18
|
+
declare enum Severity {
|
19
|
+
Fatal = "fatal",
|
20
|
+
Error = "error",
|
21
|
+
Warning = "warning",
|
22
|
+
Log = "log",
|
23
|
+
Info = "info",
|
24
|
+
Debug = "debug",
|
25
|
+
Critical = "critical"
|
26
|
+
}
|
27
|
+
export interface Breadcrumb {
|
28
|
+
type?: string;
|
29
|
+
level?: Severity;
|
30
|
+
event_id?: string;
|
31
|
+
category?: string;
|
32
|
+
message?: string;
|
33
|
+
data?: {
|
34
|
+
[key: string]: any;
|
35
|
+
};
|
36
|
+
timestamp?: number;
|
37
|
+
hint?: BreadcrumbHint;
|
38
|
+
}
|
39
|
+
export interface BreadcrumbHint {
|
40
|
+
[key: string]: any;
|
41
|
+
}
|
42
|
+
export declare abstract class SentryReporter implements PublicDisposable {
|
43
|
+
_disposed: boolean;
|
44
|
+
breadcrumb: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => void;
|
45
|
+
dispose(): void;
|
46
|
+
/**
|
47
|
+
* Report an error to Sentry. The first argument must either be a string or error object, and optionally an error
|
48
|
+
* object and extra data (in the form of an object) may be provided as well.
|
49
|
+
*
|
50
|
+
* If a string message is provided instead of an Error object a new Error will be generated. This will cause the
|
51
|
+
* stacktrace to begin at this function; for that reason it is **strongly** recommended to provide an error object
|
52
|
+
* so that the original stack trace can be preserved (as originalException).
|
53
|
+
*/
|
54
|
+
abstract exception(message: string, err?: Error, extra?: ExtraData): void;
|
55
|
+
abstract exception(message: string, extra?: ExtraData): void;
|
56
|
+
abstract exception(err: Error, extra?: ExtraData): void;
|
57
|
+
/**
|
58
|
+
* Assigns various scope properties related to the currently active user and organization so that error events can
|
59
|
+
* be easily associated with them.
|
60
|
+
*/
|
61
|
+
abstract setUserScope(opts: UserScopeOptions): void;
|
62
|
+
}
|
63
|
+
export {};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { CommandBarClientSDK } from './CommandBarClientSDK';
|
2
|
+
import { CommandBarSDK } from './CommandBarSDK';
|
3
|
+
declare global {
|
4
|
+
interface Window {
|
5
|
+
CommandBar: CommandBarClientSDK;
|
6
|
+
_CommandBarTmpQueueProcessing: CommandBarSDK | undefined;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
export { initProxySDK, getProxySDK } from './proxy';
|
10
|
+
/**
|
11
|
+
* Returns the CommandBar global SDK.
|
12
|
+
* The SDK object might be a proxy instead if `initSDK` has not yet been called.
|
13
|
+
*/
|
14
|
+
export declare function getSDK(): CommandBarSDK;
|
15
|
+
/**
|
16
|
+
* Returns the CommandBar global, coerced to match the client interface.
|
17
|
+
* The SDK object might be a proxy instead if `initSDK` has not yet been called.
|
18
|
+
*/
|
19
|
+
export declare function getClientSDK(): CommandBarClientSDK;
|
20
|
+
export declare const SDK_INTERNAL_PREFIX = "__commandbar_INTERNAL_";
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { CommandBarProxyGlobal } from './CommandBarProxySDK';
|
2
|
+
/**
|
3
|
+
* Returns the "pre-boot" proxied SDK object, creating it if necessary. This object might actually be a full SDK if it
|
4
|
+
* was already upgraded using `initSDK`. In either case, the returned object will _not_ itself be a proxy.
|
5
|
+
*
|
6
|
+
* The proxy SDK will only be created if one of the following hold:
|
7
|
+
* - window.CommandBar === undefined
|
8
|
+
* - window.CommandBar[_disposed] === true
|
9
|
+
* - window.CommandBar.disposed === true
|
10
|
+
*
|
11
|
+
* Otherwise the existing value of `window.CommandBar` is returned, whatever that may be.
|
12
|
+
*/
|
13
|
+
export declare function getProxySDK(): CommandBarProxyGlobal;
|
14
|
+
/** Replaces `window.CommandBar` with a new Proxy SDK object. */
|
15
|
+
export declare function initProxySDK(): void;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
export declare const _access: unique symbol;
|
2
|
+
export declare const _configuration: unique symbol;
|
3
|
+
export declare const _configure: unique symbol;
|
4
|
+
export declare const _configUser: unique symbol;
|
5
|
+
export declare const _dispatch: unique symbol;
|
6
|
+
export declare const _dispose: unique symbol;
|
7
|
+
export declare const _disposed: unique symbol;
|
8
|
+
export declare const _instanceAttributes: unique symbol;
|
9
|
+
export declare const _isProxy: unique symbol;
|
10
|
+
export declare const _loadEditor: unique symbol;
|
11
|
+
export declare const _onEditorPathChange: unique symbol;
|
12
|
+
export declare const _shareEditorRouteWithBar: unique symbol;
|
13
|
+
export declare const _shareInitialEditorPath: unique symbol;
|
14
|
+
export declare const _orgConfig: unique symbol;
|
15
|
+
export declare const _perf: unique symbol;
|
16
|
+
export declare const _programmaticTheme: unique symbol;
|
17
|
+
export declare const _queue: unique symbol;
|
18
|
+
export declare const _reload: unique symbol;
|
19
|
+
export declare const _reloadCommands: unique symbol;
|
20
|
+
export declare const _reloadOrganization: unique symbol;
|
21
|
+
export declare const _reloadPlaceholders: unique symbol;
|
22
|
+
export declare const _reloadNudges: unique symbol;
|
23
|
+
export declare const _reloadHelpHub: unique symbol;
|
24
|
+
export declare const _previewRecommendationSet: unique symbol;
|
25
|
+
export declare const _stopRecommendationSetPreview: unique symbol;
|
26
|
+
export declare const _previewNudge: unique symbol;
|
27
|
+
export declare const _stopChecklistPreview: unique symbol;
|
28
|
+
export declare const _stopNudgePreview: unique symbol;
|
29
|
+
export declare const _previewChecklist: unique symbol;
|
30
|
+
export declare const _reloadChecklists: unique symbol;
|
31
|
+
export declare const _report: unique symbol;
|
32
|
+
export declare const _reporter: unique symbol;
|
33
|
+
export declare const _search: unique symbol;
|
34
|
+
export declare const _setDashboard: unique symbol;
|
35
|
+
export declare const _setPreviewMode: unique symbol;
|
36
|
+
export declare const _setTestMode: unique symbol;
|
37
|
+
export declare const _setEditorVisible: unique symbol;
|
38
|
+
export declare const _shareConfig: unique symbol;
|
39
|
+
export declare const _shareContextSettings: unique symbol;
|
40
|
+
export declare const _shareProgrammaticCommands: unique symbol;
|
41
|
+
export declare const _showGuide: unique symbol;
|
42
|
+
export declare const _showMessage: unique symbol;
|
43
|
+
export declare const _state: unique symbol;
|
44
|
+
export declare const _unwrap: unique symbol;
|
45
|
+
export declare const _user: unique symbol;
|
46
|
+
export declare const _fingerprint: unique symbol;
|
47
|
+
export declare const _userAttributes: unique symbol;
|
48
|
+
export declare const _eventSubscriptions: unique symbol;
|
49
|
+
export declare const _metaAttributes: unique symbol;
|
50
|
+
export declare const _updateEditorRoute: unique symbol;
|