@thoughtspot/visual-embed-sdk 1.53.1 → 1.53.2-beta
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/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +25 -6
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.js +40 -8
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/contracts/contracts.spec.js +165 -2
- package/cjs/src/contracts/contracts.spec.js.map +1 -1
- package/cjs/src/contracts/embed-event-payloads.d.ts +212 -14
- package/cjs/src/contracts/embed-event-payloads.d.ts.map +1 -1
- package/cjs/src/contracts/host-event-contracts.d.ts +1 -0
- package/cjs/src/contracts/host-event-contracts.d.ts.map +1 -1
- package/cjs/src/css-variables.d.ts +140 -0
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/auto-frame-renderer.d.ts +14 -1
- package/cjs/src/embed/auto-frame-renderer.d.ts.map +1 -1
- package/cjs/src/embed/auto-frame-renderer.js +91 -2
- package/cjs/src/embed/auto-frame-renderer.js.map +1 -1
- package/cjs/src/embed/auto-frame-renderer.spec.js +112 -7
- package/cjs/src/embed/auto-frame-renderer.spec.js.map +1 -1
- package/cjs/src/embed/host-events.spec.js +18 -0
- package/cjs/src/embed/host-events.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +42 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/react/util.d.ts +8 -1
- package/cjs/src/react/util.d.ts.map +1 -1
- package/cjs/src/react/util.js.map +1 -1
- package/cjs/src/types.d.ts +181 -1
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +180 -0
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-CrBnZBZv.js → index-DQ7r5f1z.js} +1 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/contracts/embed-event-payloads.d.ts +212 -14
- package/dist/src/contracts/embed-event-payloads.d.ts.map +1 -1
- package/dist/src/contracts/host-event-contracts.d.ts +1 -0
- package/dist/src/contracts/host-event-contracts.d.ts.map +1 -1
- package/dist/src/css-variables.d.ts +140 -0
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/auto-frame-renderer.d.ts +14 -1
- package/dist/src/embed/auto-frame-renderer.d.ts.map +1 -1
- package/dist/src/react/util.d.ts +8 -1
- package/dist/src/react/util.d.ts.map +1 -1
- package/dist/src/types.d.ts +181 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +230 -9
- package/dist/tsembed-react.js +229 -8
- package/dist/tsembed.es.js +298 -10
- package/dist/tsembed.js +297 -9
- package/dist/visual-embed-sdk-react-full.d.ts +534 -13
- package/dist/visual-embed-sdk-react.d.ts +531 -11
- package/dist/visual-embed-sdk.d.ts +527 -12
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +25 -6
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.js +40 -8
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/contracts/contracts.spec.js +165 -2
- package/lib/src/contracts/contracts.spec.js.map +1 -1
- package/lib/src/contracts/embed-event-payloads.d.ts +212 -14
- package/lib/src/contracts/embed-event-payloads.d.ts.map +1 -1
- package/lib/src/contracts/host-event-contracts.d.ts +1 -0
- package/lib/src/contracts/host-event-contracts.d.ts.map +1 -1
- package/lib/src/css-variables.d.ts +140 -0
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/auto-frame-renderer.d.ts +14 -1
- package/lib/src/embed/auto-frame-renderer.d.ts.map +1 -1
- package/lib/src/embed/auto-frame-renderer.js +91 -2
- package/lib/src/embed/auto-frame-renderer.js.map +1 -1
- package/lib/src/embed/auto-frame-renderer.spec.js +113 -8
- package/lib/src/embed/auto-frame-renderer.spec.js.map +1 -1
- package/lib/src/embed/host-events.spec.js +18 -0
- package/lib/src/embed/host-events.spec.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +42 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/react/util.d.ts +8 -1
- package/lib/src/react/util.d.ts.map +1 -1
- package/lib/src/react/util.js.map +1 -1
- package/lib/src/types.d.ts +181 -1
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +180 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +527 -12
- package/package.json +1 -1
- package/src/auth.spec.ts +47 -11
- package/src/auth.ts +35 -6
- package/src/contracts/contracts.spec.ts +182 -3
- package/src/contracts/embed-event-payloads.ts +281 -14
- package/src/contracts/host-event-contracts.ts +1 -0
- package/src/css-variables.ts +168 -0
- package/src/embed/auto-frame-renderer.spec.ts +134 -8
- package/src/embed/auto-frame-renderer.ts +103 -2
- package/src/embed/host-events.spec.ts +24 -0
- package/src/embed/liveboard.spec.ts +45 -0
- package/src/react/util.ts +13 -1
- package/src/types.ts +181 -0
|
@@ -4,39 +4,306 @@
|
|
|
4
4
|
* Typed payload contracts for {@link EmbedEvent}s (ThoughtSpot app -> SDK).
|
|
5
5
|
*
|
|
6
6
|
* The SDK delivers embed events to `embed.on()` callbacks wrapped in the
|
|
7
|
-
* {@link MessagePayload} envelope `{ type, data, status? }`.
|
|
8
|
-
* types the `data` field per event
|
|
9
|
-
* `any
|
|
10
|
-
*
|
|
7
|
+
* {@link MessagePayload} envelope `{ type, data, status? }`. {@link
|
|
8
|
+
* EmbedEventDataExtension} types the `data` field per event; events absent from
|
|
9
|
+
* it resolve to `any`. Shapes are composed from a few scope mixins so related
|
|
10
|
+
* events share one definition, and each is loose: known fields are typed, and
|
|
11
|
+
* the host may send more, so unknown keys stay `any` (a callback reading an
|
|
12
|
+
* un-typed field keeps compiling).
|
|
11
13
|
*
|
|
14
|
+
* These mirror the host app's `embed-event-schema` (dispatch side). Codify what
|
|
15
|
+
* the host actually sends, not what the docs say, and keep the two in sync.
|
|
12
16
|
* Same additive-only evolution rules as host-event-contracts.ts.
|
|
13
17
|
* @module contracts
|
|
14
18
|
*/
|
|
15
|
-
import type {
|
|
19
|
+
import type {
|
|
20
|
+
CustomActionPayload, EmbedEvent, MessagePayload, RuntimeFilter,
|
|
21
|
+
} from '../types';
|
|
16
22
|
// Type-only: AnswerService is an SDK-side enrichment (see
|
|
17
23
|
// EmbedEventEnvelopeExtension). Type-only import keeps the contracts subpath
|
|
18
24
|
// free of any runtime dependency on the answer-service implementation.
|
|
19
25
|
import type { AnswerService } from '../utils/graphql/answerService/answerService';
|
|
20
26
|
|
|
27
|
+
// ============================================================================
|
|
28
|
+
// Scope mixins — the field clusters events share.
|
|
29
|
+
// ============================================================================
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Base for every payload. Known fields are declared on the interfaces below;
|
|
33
|
+
* additional fields the host may send stay `any`, so a callback reading one
|
|
34
|
+
* keeps compiling.
|
|
35
|
+
*/
|
|
36
|
+
export interface EmbedEventPayloadBase {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Present on events raised from a Spotter conversation. */
|
|
41
|
+
export interface ConversationScope extends EmbedEventPayloadBase {
|
|
42
|
+
convId?: string;
|
|
43
|
+
messageId?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Scoped to a single visualization (optionally within a conversation). */
|
|
47
|
+
export interface VizScope extends ConversationScope {
|
|
48
|
+
vizId?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Scoped to a Liveboard. */
|
|
52
|
+
export interface LiveboardScope extends EmbedEventPayloadBase {
|
|
53
|
+
liveboardId?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** Scoped to an Answer. */
|
|
57
|
+
export interface AnswerScope extends EmbedEventPayloadBase {
|
|
58
|
+
answerId?: string;
|
|
59
|
+
vizId?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Actions available on a viz within a Liveboard. */
|
|
63
|
+
export interface LiveboardVizScope extends LiveboardScope, VizScope {}
|
|
64
|
+
|
|
65
|
+
/** An empty payload — the event carries no data. */
|
|
66
|
+
export type EmptyPayload = Record<string, never>;
|
|
67
|
+
|
|
68
|
+
// ============================================================================
|
|
69
|
+
// Event payloads — one interface per distinct shape.
|
|
70
|
+
// ============================================================================
|
|
71
|
+
|
|
72
|
+
/** The answer data backing the embed, delivered with {@link EmbedEvent.Data}. */
|
|
73
|
+
export interface DataEventPayload extends VizScope {
|
|
74
|
+
embedAnswerData?: any;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** {@link EmbedEvent.Error}. `message` may be a single string or a list. */
|
|
78
|
+
export interface EmbedErrorPayload extends EmbedEventPayloadBase {
|
|
79
|
+
errorType?: any;
|
|
80
|
+
message?: string | string[];
|
|
81
|
+
code?: any;
|
|
82
|
+
error?: { message?: string };
|
|
83
|
+
errors?: string[];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface FilterChangedPayload extends EmbedEventPayloadBase {
|
|
87
|
+
liveboardFilters?: any[];
|
|
88
|
+
runtimeFilters?: RuntimeFilter[];
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface CrossFilterChangedPayload extends EmbedEventPayloadBase {
|
|
92
|
+
action?: string;
|
|
93
|
+
filterContentList?: any;
|
|
94
|
+
filterRemoved?: string[];
|
|
95
|
+
removableColumnsFilterContent?: any;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface ParameterChangedPayload extends ConversationScope {
|
|
99
|
+
parameters?: any[];
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface QueryChangedPayload extends VizScope {
|
|
103
|
+
search?: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Data-source(s) chosen in the picker. The host sends an object; older hosts may
|
|
108
|
+
* send a bare list of worksheet ids, so {@link EmbedEvent.DataSourceSelected}
|
|
109
|
+
* resolves to `string[] | DataSourceSelectedPayload`.
|
|
110
|
+
*/
|
|
111
|
+
export interface DataSourceSelectedPayload extends EmbedEventPayloadBase {
|
|
112
|
+
worksheetId?: string;
|
|
113
|
+
worksheetName?: string;
|
|
114
|
+
worksheetIds?: string[];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** Shared by {@link EmbedEvent.VizPointClick} and its siblings. */
|
|
118
|
+
export interface VizInteractionPayload extends VizScope {
|
|
119
|
+
clickedPoint?: any;
|
|
120
|
+
selectedPoints?: any[];
|
|
121
|
+
embedAnswerData?: any;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface DrilldownPayload extends ConversationScope {
|
|
125
|
+
drillColumn?: any;
|
|
126
|
+
clickedPoint?: any;
|
|
127
|
+
selectedPoints?: any[];
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface TableVizRenderedPayload extends VizScope {
|
|
131
|
+
id?: string;
|
|
132
|
+
data?: any;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface SaveEventPayload extends LiveboardVizScope {
|
|
136
|
+
answerId?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface MakeACopyPayload extends LiveboardVizScope {
|
|
140
|
+
newLiveboardId?: string;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** Downloads, either viz/answer scoped or Liveboard scoped. */
|
|
144
|
+
export interface DownloadEventPayload extends VizScope {
|
|
145
|
+
answerId?: string;
|
|
146
|
+
liveboardId?: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** TML export/edit/update — answer or Liveboard scoped. */
|
|
150
|
+
export interface TmlEventPayload extends EmbedEventPayloadBase {
|
|
151
|
+
answerId?: string;
|
|
152
|
+
liveboardId?: string;
|
|
153
|
+
vizId?: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface AnswerChartSwitcherPayload extends ConversationScope {
|
|
157
|
+
answerId?: string;
|
|
158
|
+
/** The mode switched to (chart or table). */
|
|
159
|
+
chartType?: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface CopyToClipboardPayload extends ConversationScope {
|
|
163
|
+
answerId?: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface PinEventPayload extends VizScope {
|
|
167
|
+
liveboardId?: string;
|
|
168
|
+
containerId?: string;
|
|
169
|
+
answerId?: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface CopyLinkPayload extends LiveboardScope {
|
|
173
|
+
vizId?: string;
|
|
174
|
+
metricId?: any;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface FavoritePayload extends LiveboardScope {
|
|
178
|
+
isFavorite?: boolean;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface TestScheduleEmailPayload extends LiveboardScope {
|
|
182
|
+
sendToSelf?: boolean;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** Note: the app sends `liveboardID` (capital ID) for this event. */
|
|
186
|
+
export interface RenamePayload extends EmbedEventPayloadBase {
|
|
187
|
+
liveboardID?: string;
|
|
188
|
+
vizId?: string;
|
|
189
|
+
title?: string;
|
|
190
|
+
description?: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface PersonalisedViewPayload extends LiveboardScope {
|
|
194
|
+
viewName?: string;
|
|
195
|
+
viewId?: string;
|
|
196
|
+
isPublic?: boolean;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface ExitPresentModePayload extends EmbedEventPayloadBase {
|
|
200
|
+
type?: string;
|
|
201
|
+
data?: any;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/** {@link EmbedEvent.AuthInit}. */
|
|
205
|
+
export interface AuthInitPayload extends EmbedEventPayloadBase {
|
|
206
|
+
/** Whether authentication was successful. */
|
|
207
|
+
isLoggedIn?: boolean;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// ============================================================================
|
|
211
|
+
// The map — every typed embed event, grouped by domain.
|
|
212
|
+
// ============================================================================
|
|
213
|
+
|
|
21
214
|
/**
|
|
22
|
-
* Typed `data` field per embed event.
|
|
215
|
+
* Typed `data` field per embed event. Events not listed resolve to `any`.
|
|
23
216
|
*/
|
|
24
217
|
export interface EmbedEventDataExtension {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
* Whether authentication was successful.
|
|
28
|
-
*/
|
|
29
|
-
isLoggedIn?: boolean;
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
};
|
|
218
|
+
// --- Lifecycle and auth ---
|
|
219
|
+
[EmbedEvent.AuthInit]: AuthInitPayload;
|
|
32
220
|
[EmbedEvent.EmbedListenerReady]: Record<string, any>;
|
|
221
|
+
[EmbedEvent.Error]: EmbedErrorPayload | string;
|
|
222
|
+
|
|
223
|
+
// --- Custom actions ---
|
|
33
224
|
/**
|
|
34
225
|
* Fired when a callback-type custom action is triggered. Use
|
|
35
|
-
* `payload.data.id` to identify which action fired
|
|
226
|
+
* `payload.data.id` to identify which action fired; see also
|
|
227
|
+
* {@link CustomActionEventPayload} for the `answerService` enrichment.
|
|
36
228
|
*/
|
|
37
229
|
[EmbedEvent.CustomAction]: CustomActionPayload;
|
|
230
|
+
|
|
231
|
+
// --- Filters and parameters ---
|
|
232
|
+
[EmbedEvent.FilterChanged]: FilterChangedPayload;
|
|
233
|
+
[EmbedEvent.CrossFilterChanged]: CrossFilterChangedPayload;
|
|
234
|
+
[EmbedEvent.ParameterChanged]: ParameterChangedPayload;
|
|
235
|
+
|
|
236
|
+
// --- Visualization interactions ---
|
|
237
|
+
[EmbedEvent.VizPointClick]: VizInteractionPayload;
|
|
238
|
+
[EmbedEvent.VizPointDoubleClick]: VizInteractionPayload;
|
|
239
|
+
[EmbedEvent.VizPointRightClick]: VizInteractionPayload;
|
|
240
|
+
[EmbedEvent.Drilldown]: DrilldownPayload;
|
|
241
|
+
[EmbedEvent.TableVizRendered]: TableVizRenderedPayload;
|
|
242
|
+
|
|
243
|
+
// --- Data and query ---
|
|
244
|
+
[EmbedEvent.Data]: DataEventPayload;
|
|
245
|
+
[EmbedEvent.QueryChanged]: string | QueryChangedPayload;
|
|
246
|
+
|
|
247
|
+
// --- Answer and viz actions ---
|
|
248
|
+
[EmbedEvent.Save]: SaveEventPayload;
|
|
249
|
+
[EmbedEvent.Edit]: LiveboardVizScope;
|
|
250
|
+
[EmbedEvent.Present]: LiveboardVizScope;
|
|
251
|
+
[EmbedEvent.Explore]: LiveboardVizScope;
|
|
252
|
+
[EmbedEvent.MakeACopy]: MakeACopyPayload;
|
|
253
|
+
[EmbedEvent.AnswerDelete]: AnswerScope;
|
|
254
|
+
[EmbedEvent.AnswerChartSwitcher]: AnswerChartSwitcherPayload;
|
|
255
|
+
[EmbedEvent.CopyToClipboard]: CopyToClipboardPayload;
|
|
256
|
+
[EmbedEvent.SpotIQAnalyze]: AnswerScope;
|
|
257
|
+
[EmbedEvent.ShowUnderlyingData]: AnswerScope;
|
|
258
|
+
[EmbedEvent.AddToCoaching]: VizScope;
|
|
259
|
+
[EmbedEvent.Pin]: PinEventPayload;
|
|
260
|
+
|
|
261
|
+
// --- Downloads ---
|
|
262
|
+
[EmbedEvent.Download]: VizScope;
|
|
263
|
+
[EmbedEvent.DownloadAsPng]: DownloadEventPayload;
|
|
264
|
+
[EmbedEvent.DownloadAsCsv]: DownloadEventPayload;
|
|
265
|
+
[EmbedEvent.DownloadAsXlsx]: DownloadEventPayload;
|
|
266
|
+
[EmbedEvent.DownloadAsPdf]: DownloadEventPayload;
|
|
267
|
+
[EmbedEvent.DownloadLiveboardAsContinuousPDF]: LiveboardScope;
|
|
268
|
+
|
|
269
|
+
// --- TML ---
|
|
270
|
+
[EmbedEvent.ExportTML]: TmlEventPayload;
|
|
271
|
+
[EmbedEvent.EditTML]: TmlEventPayload;
|
|
272
|
+
[EmbedEvent.UpdateTML]: TmlEventPayload;
|
|
273
|
+
|
|
274
|
+
// --- Liveboard actions ---
|
|
275
|
+
[EmbedEvent.Cancel]: LiveboardScope;
|
|
276
|
+
[EmbedEvent.Delete]: LiveboardScope;
|
|
277
|
+
[EmbedEvent.Schedule]: LiveboardScope;
|
|
278
|
+
[EmbedEvent.SchedulesList]: LiveboardScope;
|
|
279
|
+
[EmbedEvent.SendTestScheduleEmail]: TestScheduleEmailPayload;
|
|
280
|
+
[EmbedEvent.LiveboardInfo]: LiveboardScope;
|
|
281
|
+
[EmbedEvent.AIHighlights]: LiveboardScope;
|
|
282
|
+
[EmbedEvent.Rename]: RenamePayload;
|
|
283
|
+
[EmbedEvent.AddToFavorites]: FavoritePayload;
|
|
284
|
+
[EmbedEvent.CopyLink]: CopyLinkPayload;
|
|
285
|
+
[EmbedEvent.ExitPresentMode]: ExitPresentModePayload;
|
|
286
|
+
|
|
287
|
+
// --- Personalised views ---
|
|
288
|
+
[EmbedEvent.SavePersonalisedView]: PersonalisedViewPayload;
|
|
289
|
+
[EmbedEvent.UpdatePersonalisedView]: PersonalisedViewPayload;
|
|
290
|
+
|
|
291
|
+
// --- Columns and sources ---
|
|
292
|
+
[EmbedEvent.AddRemoveColumns]: string[];
|
|
293
|
+
[EmbedEvent.DataSourceSelected]: string[] | DataSourceSelectedPayload;
|
|
294
|
+
|
|
295
|
+
// --- Dialogs and lifecycle ---
|
|
296
|
+
[EmbedEvent.DialogOpen]: EmptyPayload;
|
|
297
|
+
[EmbedEvent.DialogClose]: EmptyPayload;
|
|
298
|
+
[EmbedEvent.LiveboardRendered]: EmptyPayload;
|
|
299
|
+
[EmbedEvent.RequestVisibleEmbedCoordinates]: EmptyPayload;
|
|
300
|
+
[EmbedEvent.EmbedIframeCenter]: EmptyPayload;
|
|
38
301
|
}
|
|
39
302
|
|
|
303
|
+
// ============================================================================
|
|
304
|
+
// Resolvers — what `on()` delivers and how to annotate a callback.
|
|
305
|
+
// ============================================================================
|
|
306
|
+
|
|
40
307
|
/**
|
|
41
308
|
* Resolves the typed `data` payload for an embed event; `any` when the
|
|
42
309
|
* event has not been audited/typed yet.
|
|
@@ -381,6 +381,7 @@ export interface HostEventRequestMap {
|
|
|
381
381
|
[HostEvent.AIHighlights]: void;
|
|
382
382
|
[HostEvent.SendTestScheduleEmail]: ScheduleEmailRequest;
|
|
383
383
|
[HostEvent.RefreshLiveboardBrowserCache]: ScheduleEmailRequest;
|
|
384
|
+
[HostEvent.OpenAddTabModal]: void;
|
|
384
385
|
|
|
385
386
|
// ==================== SPOTTER ====================
|
|
386
387
|
[HostEvent.SpotterSearch]: SpotterSearchRequest;
|
package/src/css-variables.ts
CHANGED
|
@@ -1784,4 +1784,172 @@ export interface CustomCssVariables {
|
|
|
1784
1784
|
* Background color of the shimmer sweep animation's gradient mid-stop.
|
|
1785
1785
|
*/
|
|
1786
1786
|
'--ts-var-shimmer-sweep-background'?: string;
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* Secondary accent color. Used as the background of cross-filter chips in the
|
|
1790
|
+
* filter panel and to highlight Liveboard visualizations and Answer headers
|
|
1791
|
+
* impacted by a cross filter.
|
|
1792
|
+
*/
|
|
1793
|
+
'--ts-var-root-secondary-color'?: string;
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* Background color of the action items in the top navigation bar, such as the
|
|
1797
|
+
* search bar, Help menu, Org switcher, user menu, and notifications, on hover
|
|
1798
|
+
* or when selected.
|
|
1799
|
+
*/
|
|
1800
|
+
'--ts-var-nav-action-item-background'?: string;
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Border color of the action items in the top navigation bar, such as the
|
|
1804
|
+
* Org switcher and the search bar.
|
|
1805
|
+
*/
|
|
1806
|
+
'--ts-var-nav-action-item-border-color'?: string;
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* Border color of the search bar in the top navigation bar on hover.
|
|
1810
|
+
*/
|
|
1811
|
+
'--ts-var-nav-action-item-border-secondary-color'?: string;
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* Placeholder text color of the search bar and menus in the top navigation
|
|
1815
|
+
* bar. Also used as the background of the Help menu button when the menu
|
|
1816
|
+
* is open.
|
|
1817
|
+
*/
|
|
1818
|
+
'--ts-var-nav-action-item-placeholder-color'?: string;
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* Background color of the natural language search bar header in Sage
|
|
1822
|
+
* embed.
|
|
1823
|
+
*/
|
|
1824
|
+
'--ts-var-sage-bar-header-background-color'?: string;
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* Background color of the data source selector in the natural language
|
|
1828
|
+
* search bar.
|
|
1829
|
+
*/
|
|
1830
|
+
'--ts-var-source-selector-background-color'?: string;
|
|
1831
|
+
|
|
1832
|
+
/**
|
|
1833
|
+
* Background color of the data source selector in the natural language
|
|
1834
|
+
* search bar on hover.
|
|
1835
|
+
*/
|
|
1836
|
+
'--ts-var-source-selector-hover-color'?: string;
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Font color of the text in the natural language search box.
|
|
1840
|
+
*/
|
|
1841
|
+
'--ts-var-sage-search-box-font-color'?: string;
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Background color of the natural language search box.
|
|
1845
|
+
*/
|
|
1846
|
+
'--ts-var-sage-search-box-background-color'?: string;
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Background color of the AI-generated answer container in Sage embed.
|
|
1850
|
+
*/
|
|
1851
|
+
'--ts-var-sage-embed-background-color'?: string;
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* Background color of the suggested (seed) questions shown in the natural
|
|
1855
|
+
* language search bar and Spotter.
|
|
1856
|
+
*/
|
|
1857
|
+
'--ts-var-sage-seed-questions-background'?: string;
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* Font color of the suggested (seed) questions shown in the natural
|
|
1861
|
+
* language search bar and Spotter.
|
|
1862
|
+
*/
|
|
1863
|
+
'--ts-var-sage-seed-questions-font-color'?: string;
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* Background color of the suggested (seed) questions shown in the natural
|
|
1867
|
+
* language search bar and Spotter on hover.
|
|
1868
|
+
*/
|
|
1869
|
+
'--ts-var-sage-seed-questions-hover-background'?: string;
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* Background of the AI gradient border around the natural language search bar
|
|
1873
|
+
* and the Spotter prompt input. Accepts any CSS background value, for example,
|
|
1874
|
+
* a `linear-gradient(...)` or a solid color.
|
|
1875
|
+
*/
|
|
1876
|
+
'--ts-var-ai-gradient-color'?: string;
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* Background color of the separator line between sections of a menu.
|
|
1880
|
+
*/
|
|
1881
|
+
'--ts-var-menu-seperator-background'?: string;
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Start color of the gradient background on the icon of custom menu items in
|
|
1885
|
+
* the navigation. Defaults to the value of `--ts-var-root-color`.
|
|
1886
|
+
*/
|
|
1887
|
+
'--ts-var-home-card-color'?: string;
|
|
1888
|
+
|
|
1889
|
+
/**
|
|
1890
|
+
* Font color of the heading text on the suggestion cards in the favorites
|
|
1891
|
+
* carousel on the Home page.
|
|
1892
|
+
*/
|
|
1893
|
+
'--ts-var-home-favorite-suggestion-card-text-font-color'?: string;
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* Background color of a highlighted checkbox row on hover.
|
|
1897
|
+
*/
|
|
1898
|
+
'--ts-var-checkbox-highlighted-hover-color'?: string;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* Font family of the group title in a Liveboard. Defaults to the value of
|
|
1902
|
+
* `--ts-var-viz-title-font-family`.
|
|
1903
|
+
*/
|
|
1904
|
+
'--ts-var-liveboard-group-title-font-family'?: string;
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* Font family of the group description in a Liveboard. Defaults to the value
|
|
1908
|
+
* of `--ts-var-viz-description-font-family`.
|
|
1909
|
+
*/
|
|
1910
|
+
'--ts-var-liveboard-group-description-font-family'?: string;
|
|
1911
|
+
|
|
1912
|
+
/**
|
|
1913
|
+
* Font family of the visualization titles inside a Liveboard group. Defaults
|
|
1914
|
+
* to the value of `--ts-var-viz-title-font-family`.
|
|
1915
|
+
*/
|
|
1916
|
+
'--ts-var-liveboard-group-tile-title-font-family'?: string;
|
|
1917
|
+
|
|
1918
|
+
/**
|
|
1919
|
+
* Font family of the visualization descriptions inside a Liveboard group.
|
|
1920
|
+
* Defaults to the value of `--ts-var-viz-description-font-family`.
|
|
1921
|
+
*/
|
|
1922
|
+
'--ts-var-liveboard-group-tile-description-font-family'?: string;
|
|
1923
|
+
|
|
1924
|
+
/**
|
|
1925
|
+
* Font color of the filter chips in a Liveboard on hover. Defaults to the
|
|
1926
|
+
* value of `--ts-var-chip--hover-color`.
|
|
1927
|
+
*/
|
|
1928
|
+
'--ts-var-liveboard-chip--hover-color'?: string;
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* Font color of the filter chips in a Liveboard when active. Defaults to the
|
|
1932
|
+
* value of `--ts-var-chip--active-color`.
|
|
1933
|
+
*/
|
|
1934
|
+
'--ts-var-liveboard-chip--active-color'?: string;
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* Background color of the styling panel in the Liveboard. Defaults to the
|
|
1938
|
+
* value of `--ts-var-liveboard-edit-bar-background`.
|
|
1939
|
+
*/
|
|
1940
|
+
'--ts-var-liveboard-styling-panel-background'?: string;
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* Border radius of the visualization container on the Answer page. On a
|
|
1944
|
+
* Liveboard, this value is derived from `--ts-var-liveboard-tile-border-radius`
|
|
1945
|
+
* and `--ts-var-viz-border-radius`; use those to style Liveboard tiles.
|
|
1946
|
+
*/
|
|
1947
|
+
'--ts-var-tile-viz-border-radius'?: string;
|
|
1948
|
+
|
|
1949
|
+
/**
|
|
1950
|
+
* Color of the outline (halo) drawn around data labels on charts, which keeps
|
|
1951
|
+
* the labels readable over chart elements. Defaults to the value of
|
|
1952
|
+
* `--ts-var-root-color`.
|
|
1953
|
+
*/
|
|
1954
|
+
'--ts-var-chart-data-label-stroke-color'?: string;
|
|
1787
1955
|
}
|