@luzmo/embed 8.0.0-es2021 → 8.1.0-es2021

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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [8.1.0] - 2026-10-09
6
+
7
+ ### Added
8
+
9
+ - `inlineData` on `<luzmo-embed-viz-item>`, so a FLEX chart can render from records you pass in instead of a dataset. Each slot picks its record property through `field`. See the viz item properties in the README.
10
+
11
+ ### Changed
12
+
13
+ - `@luzmo/dashboard-contents-types` is now `1.0.45` (was `1.0.41` in 8.0.0). It brings the inline data types, the filter on select and brush options, and the hierarchy ordering options, which this package re-exports.
14
+ - Stricter null handling inside the dashboard and viz item components. `addFilters` now returns a rejected promise when the dashboard is not loaded yet, instead of throwing.
15
+ - Exported types are stricter: `AccessibleDashboard.accessibleBy[].name` can now also be an empty object, and `slug` in the accessible dashboards list can be `null`.
16
+
5
17
  ## [8.0.0] - 2026-09-29
6
18
 
7
19
  ### Changed
package/README.md CHANGED
@@ -51,46 +51,63 @@ OR
51
51
  Use the viz-item components as if they were native HTML tags.
52
52
 
53
53
  **In your HTML template.**
54
+
54
55
  ```html
55
- <luzmo-embed-viz-item type="bar-chart" slots="slotsArray[]" options="optionsObject" authKey="luzmoAuthKey" authToken="luzmoAuthToken"></luzmo-embed-viz-item>
56
+ <luzmo-embed-viz-item
57
+ type="bar-chart"
58
+ slots="slotsArray[]"
59
+ options="optionsObject"
60
+ authKey="luzmoAuthKey"
61
+ authToken="luzmoAuthToken"></luzmo-embed-viz-item>
56
62
 
57
63
  OR
58
64
 
59
- <luzmo-embed-viz-item dashboardId="dashboardId" itemId="itemId" options="optionsObject" authKey="authKey" authToken="authToken"></luzmo-embed-viz-item>
60
-
65
+ <luzmo-embed-viz-item
66
+ dashboardId="dashboardId"
67
+ itemId="itemId"
68
+ options="optionsObject"
69
+ authKey="authKey"
70
+ authToken="authToken"></luzmo-embed-viz-item>
61
71
  ```
72
+
62
73
  <br/>
63
74
 
64
75
  ### Properties: luzmo-embed-viz-item
65
76
 
66
77
  Below a list of available properties on the viz item web component
67
78
 
68
- | Property | Type | Description |
69
- |----------------------------|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
70
- | `type` | string | The type of viz item to embed. |
71
- | `options` | object | The options object to be passed on to viz item |
72
- | `slots` | array | The slots array to specify which columns to use to fetch data. depends on the type of chart. |
73
- | `contextId` | string | contextId is a unique id that can be assigned to viz item which will be used in filtering with `canFilter`. |
74
- | `authKey` | string | Authorization key generated via Luzmo API |
75
- | `authToken` | string | Authorization token generated via Luzmo API |
76
- | `canFilter` | string \| array | `canFilter` can be either set to `all` or an array of `contextId`'s. |
77
- | `filters` | object | `filters` object is used to set initial filters. |
78
- | `appServer` | string | Tenancy of luzmo.com to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
79
- | `apiHost` | string | API server to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
79
+ | Property | Type | Description |
80
+ | ------------ | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
81
+ | `type` | string | The type of viz item to embed. |
82
+ | `options` | object | The options object to be passed on to viz item |
83
+ | `slots` | array | The slots array to specify which columns to use to fetch data. depends on the type of chart. |
84
+ | `inlineData` | object | Final query-equivalent records for source-neutral charts. Each populated slot content selects a record property through `field`. Supports an optional `sourceDescription` and `topojson`; no aggregation, ranking, filtering, or period-over-period calculation is applied. |
85
+ | `contextId` | string | contextId is a unique id that can be assigned to viz item which will be used in filtering with `canFilter`. |
86
+ | `authKey` | string | Authorization key generated via Luzmo API |
87
+ | `authToken` | string | Authorization token generated via Luzmo API |
88
+ | `canFilter` | string \| array | `canFilter` can be either set to `all` or an array of `contextId`'s. |
89
+ | `filters` | object | `filters` object is used to set initial filters. |
90
+ | `appServer` | string | Tenancy of luzmo.com to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
91
+ | `apiHost` | string | API server to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
92
+
93
+ `inlineData` is treated as already-authorized final output. Viewer token
94
+ filters are not applied to these records, including when they are persisted in
95
+ a dashboard. Remove data the viewer must not access before supplying
96
+ `inlineData`.
80
97
 
81
98
  <br/>
82
99
 
83
100
  ### Events luzmo-embed-viz-item
84
101
 
85
- | Name | Description |
86
- |----------------|-------------------------------------------------------------|
87
- | changedFilters | Emitted when filters are changed |
88
- | contextChanged | Emitted on any change, carries the full viz-item context |
89
- | customEvent | Emitted when a custom event is fired |
102
+ | Name | Description |
103
+ | -------------- | ------------------------------------------------------------------------------------------------------------------ |
104
+ | changedFilters | Emitted when filters are changed |
105
+ | contextChanged | Emitted on any change, carries the full viz-item context |
106
+ | customEvent | Emitted when a custom event is fired |
90
107
  | error | Emitted when the viz item cannot be loaded or encounters a fatal error. Check `event.detail.errorMsg` for details. |
91
- | exported | Emitted when export completes or fails |
92
- | rendered | Emitted when the item is rendered |
93
- | load | Emitted when viz item is loaded |
108
+ | exported | Emitted when export completes or fails |
109
+ | rendered | Emitted when the item is rendered |
110
+ | load | Emitted when viz item is loaded |
94
111
 
95
112
  <br/>
96
113
 
@@ -116,6 +133,7 @@ setAuthorization(key: string, token: string): void;
116
133
  // Export the viz item as png, base64, csv, xlsx, xlsx-raw, csv-raw.
117
134
  export(type: 'png' | 'base64' | 'xlsx' | 'csv' | 'xlsx-raw' | 'csv-raw'): Promise<string | void>;
118
135
  ```
136
+
119
137
  <br/>
120
138
 
121
139
  ### Examples luzmo-embed-viz-item
@@ -125,6 +143,7 @@ A Bar chart with display title hidden.
125
143
  ```html
126
144
  <luzmo-embed-viz-item id="vizItem" type="bar-chart" options='{ "display": { "title": false } }'></luzmo-embed-viz-item>
127
145
  ```
146
+
128
147
  Add an event listener to the viz item.
129
148
 
130
149
  ```typescript
@@ -139,7 +158,7 @@ vizItemComponent.addEventListener('rendered', (event) => {
139
158
  Get data from the viz item
140
159
 
141
160
  ```typescript
142
- const data = vizItemComponent.getData()
161
+ const data = vizItemComponent.getData();
143
162
  ```
144
163
 
145
164
  Get Active filters in the viz item
@@ -168,34 +187,35 @@ Use the dashboard components as if they were native HTML tags. Use the id of the
168
187
  OR
169
188
 
170
189
  <!-- Embed a item by passing the item id as well -->
171
- <luzmo-embed-dashboard dashboardId="55cfb99c-d602-492b-b192-6c15277fdb9a" itemId="59fe5bd7-5070-42f5-98f4-da7f931e316c"> </luzmo-embed-dashboard>
190
+ <luzmo-embed-dashboard dashboardId="55cfb99c-d602-492b-b192-6c15277fdb9a" itemId="59fe5bd7-5070-42f5-98f4-da7f931e316c">
191
+ </luzmo-embed-dashboard>
172
192
  ```
173
193
 
174
194
  ### Properties: luzmo-embed-dashboard
175
195
 
176
196
  Below a list of available properties on the dashboard web component
177
197
 
178
- | Property | Type | Description |
179
- |----------------------------|--------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
180
- | `dashboardId` | string | The id of the Luzmo dashboard you wish to embed |
181
- | `dashboardSlug` | string | The slug of the Luzmo dashboard you wish to embed (if a dashboardId is supplied that one will be used) |
182
- | `itemId` | string | The id of the Luzmo item you wish to embed. The `dashboardId` should be provided as well if you what to embed just a Luzmo item. |
183
- | `itemDimensions` | { width: number/string; height: number/string; } | width and height of item only applies when itemId is provided. Accepts a JSON string. |
184
- | `authKey` | string | Authorization key generated via Luzmo API |
185
- | `authToken` | string | Authorization token generated via Luzmo API |
186
- | `language` | string | The language of the dashboard: eg. 'en' (Default: 'auto') |
187
- | `editorLanguage` | string | The language of the dashboard editor: eg. 'en' (Default: 'auto') |
188
- | `screenMode` | string | The screen mode of your dashboard: 'mobile', 'tablet', 'desktop', 'largeScreen', 'fixed' or 'auto' (Default: 'auto') |
189
- | `switchScreenModeOnResize` | boolean | true: the embedded dashboard can switch screenModes on resize of the container , false: Dashboard will keep the same screenMode (Default: true) |
190
- | `loaderBackground` | string | Background color of the loader element (Default: '#f9f9f9') |
191
- | `loaderFontColor` | string | Font color of the text of the loaders (Default: '#5a5a5a') |
192
- | `loaderSpinnerColor` | string | Spinner color of the loader (Default: 'rgba(255, 165, 0, 0.7)') |
193
- | `loaderSpinnerBackground` | string | Background color of the spinner (Default: 'rgba(169, 169, 169, 0.14)') |
194
- | `appServer` | string | Tenancy of luzmo.com to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
195
- | `timezoneId` | string | The timezone you you wish to use in your dashboard. This timezone id needs to be a valid id that is available in the [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List), for example: Europe/Brussels or America/New_York. |
196
- | `apiHost` | string | API server to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
197
- | `editMode` | string | Specifies if the embedded dashboard should be editable or not. Accepted values: "view" , "editLimited" , "editFull" . Use "view" if you don't want the embedded dashboard to be editable. (Default: "view" ) |
198
- | `mainColor` | string | Optional override of the main color used in the whitelabeling of the embedded dashboard editor. If not provided, the main color of the whitelabeling colors set on the organization will be used. Should be specified as a string of rgb values (i.e. "rgb(50,50,50)"). |
198
+ | Property | Type | Description |
199
+ | -------------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
200
+ | `dashboardId` | string | The id of the Luzmo dashboard you wish to embed |
201
+ | `dashboardSlug` | string | The slug of the Luzmo dashboard you wish to embed (if a dashboardId is supplied that one will be used) |
202
+ | `itemId` | string | The id of the Luzmo item you wish to embed. The `dashboardId` should be provided as well if you what to embed just a Luzmo item. |
203
+ | `itemDimensions` | { width: number/string; height: number/string; } | width and height of item only applies when itemId is provided. Accepts a JSON string. |
204
+ | `authKey` | string | Authorization key generated via Luzmo API |
205
+ | `authToken` | string | Authorization token generated via Luzmo API |
206
+ | `language` | string | The language of the dashboard: eg. 'en' (Default: 'auto') |
207
+ | `editorLanguage` | string | The language of the dashboard editor: eg. 'en' (Default: 'auto') |
208
+ | `screenMode` | string | The screen mode of your dashboard: 'mobile', 'tablet', 'desktop', 'largeScreen', 'fixed' or 'auto' (Default: 'auto') |
209
+ | `switchScreenModeOnResize` | boolean | true: the embedded dashboard can switch screenModes on resize of the container , false: Dashboard will keep the same screenMode (Default: true) |
210
+ | `loaderBackground` | string | Background color of the loader element (Default: '#f9f9f9') |
211
+ | `loaderFontColor` | string | Font color of the text of the loaders (Default: '#5a5a5a') |
212
+ | `loaderSpinnerColor` | string | Spinner color of the loader (Default: 'rgba(255, 165, 0, 0.7)') |
213
+ | `loaderSpinnerBackground` | string | Background color of the spinner (Default: 'rgba(169, 169, 169, 0.14)') |
214
+ | `appServer` | string | Tenancy of luzmo.com to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
215
+ | `timezoneId` | string | The timezone you you wish to use in your dashboard. This timezone id needs to be a valid id that is available in the [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List), for example: Europe/Brussels or America/New_York. |
216
+ | `apiHost` | string | API server to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
217
+ | `editMode` | string | Specifies if the embedded dashboard should be editable or not. Accepted values: "view" , "editLimited" , "editFull" . Use "view" if you don't want the embedded dashboard to be editable. (Default: "view" ) |
218
+ | `mainColor` | string | Optional override of the main color used in the whitelabeling of the embedded dashboard editor. If not provided, the main color of the whitelabeling colors set on the organization will be used. Should be specified as a string of rgb values (i.e. "rgb(50,50,50)"). |
199
219
  | `embedMode` | `'iframe' \| 'webComponent'` | How the dashboard is mounted inside your page. Defaults to `'webComponent'`, which renders the dashboard directly on your page (no iframe) and gives you full control over styling via CSS variables. Set `embedMode="iframe"` to preserve iframe rendering. `'webComponent'` is view-mode only; edit modes always fall back to iframe. See ["Embed modes and network requirements"](#embed-modes-and-network-requirements) below. |
200
220
 
201
221
  <br/>
@@ -212,15 +232,15 @@ Omitting `embedMode` renders the dashboard directly on your page (no iframe), wh
212
232
 
213
233
  ### Events luzmo-embed-dashboard
214
234
 
215
- | Name | Description | Event Arguments |
216
- | -------------- | ------------------------------------------------------------ | ---------------------- |
217
- | changedFilters | Emitted when filters are changed | `ChangedFiltersEvent` |
218
- | contextChanged | Emitted on any dashboard change, carries the full context | `ContextChangedEvent` |
219
- | customEvent | Emitted when a custom event is fired | `CustomEvent` |
220
- | error | Emitted when the dashboard cannot be loaded or encounters a fatal error. Check `event.detail.errorMsg` for details. | `EmbedErrorEvent` |
221
- | exported | Emitted when export completes or fails | `ExportedEvent` |
222
- | itemsRendered | Emitted when all items are rendered | `ItemsRenderedEvent` |
223
- | load | Emitted when dashboard is loaded | `LoadEvent` |
235
+ | Name | Description | Event Arguments |
236
+ | -------------- | ------------------------------------------------------------------------------------------------------------------- | --------------------- |
237
+ | changedFilters | Emitted when filters are changed | `ChangedFiltersEvent` |
238
+ | contextChanged | Emitted on any dashboard change, carries the full context | `ContextChangedEvent` |
239
+ | customEvent | Emitted when a custom event is fired | `CustomEvent` |
240
+ | error | Emitted when the dashboard cannot be loaded or encounters a fatal error. Check `event.detail.errorMsg` for details. | `EmbedErrorEvent` |
241
+ | exported | Emitted when export completes or fails | `ExportedEvent` |
242
+ | itemsRendered | Emitted when all items are rendered | `ItemsRenderedEvent` |
243
+ | load | Emitted when dashboard is loaded | `LoadEvent` |
224
244
 
225
245
  <br/>
226
246
 
@@ -272,19 +292,30 @@ setEditMode(editMode: DashboardEditMode): Promise<SetEditMode>;
272
292
  A dashboard with a gray loader background
273
293
 
274
294
  ```html
275
- <luzmo-embed-dashboard dashboardId="035c0304-0bfe-4b7c-8c10-a4acb8eb9d76" loaderBackground="rgb(238,243,246)"> </luzmo-embed-dashboard>
295
+ <luzmo-embed-dashboard dashboardId="035c0304-0bfe-4b7c-8c10-a4acb8eb9d76" loaderBackground="rgb(238,243,246)">
296
+ </luzmo-embed-dashboard>
276
297
  ```
277
298
 
278
299
  A secured dashboard using an [authorization key & token](https://developer.luzmo.com/#quickstart)
279
300
 
280
301
  ```html
281
- <luzmo-embed-dashboard dashboardId="035c0304-0bfe-4b7c-8c10-a4acb8eb9d76" authKey="<!-- your generated authKey-->" authToken="<!-- your generated authToken -->"> </luzmo-embed-dashboard>
302
+ <luzmo-embed-dashboard
303
+ dashboardId="035c0304-0bfe-4b7c-8c10-a4acb8eb9d76"
304
+ authKey="<!-- your generated authKey-->"
305
+ authToken="<!-- your generated authToken -->">
306
+ </luzmo-embed-dashboard>
282
307
  ```
283
308
 
284
309
  A dashboard with a purple spinner color of the loader with screenMode="mobile" and switchScreenModeOnResize=false, so that the dashboard will stay in mobile mode
285
310
 
286
311
  ```html
287
- <luzmo-embed-dashboard id="dashboard" dashboardId="55cfb99c-d602-492b-b192-6c15277fdb9a" loaderSpinnerColor="purple" screenMode="mobile" switchScreenModeOnResize="false"> </luzmo-embed-dashboard>
312
+ <luzmo-embed-dashboard
313
+ id="dashboard"
314
+ dashboardId="55cfb99c-d602-492b-b192-6c15277fdb9a"
315
+ loaderSpinnerColor="purple"
316
+ screenMode="mobile"
317
+ switchScreenModeOnResize="false">
318
+ </luzmo-embed-dashboard>
288
319
  ```
289
320
 
290
321
  Add an event listener when all items are rendered
@@ -362,7 +393,8 @@ Use the IQ components as if they were native HTML tags.
362
393
 
363
394
  OR
364
395
 
365
- <luzmo-iq-embed-answer authKey="Your auth key" authToken="Your auth token" options="options" messages="messages"> </luzmo-iq-embed-answer>
396
+ <luzmo-iq-embed-answer authKey="Your auth key" authToken="Your auth token" options="options" messages="messages">
397
+ </luzmo-iq-embed-answer>
366
398
  ```
367
399
 
368
400
  ### Properties
@@ -371,19 +403,19 @@ OR
371
403
 
372
404
  All available properties for the IQ chat component can be seen in the table below.
373
405
 
374
- | Property | Type | Description |
375
- |-------------------------------|--------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|
376
- | `authKey` | string | Authorization key generated via Luzmo API |
377
- | `authToken` | string | Authorization token generated via Luzmo API |
378
- | `appServer` | string | Tenancy of Luzmo app to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
379
- | `apiHost` | string | Tenancy of Luzmo API to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
380
- | `options` | IQChatOptions | Specifies the customization options of the IQ chat component that affect its appearance and functionality. |
381
- | `initialSuggestionsDatasetId` | string | ID of a dataset that assists the AI service in generating automated, initial prompts based on the provided data. |
382
- | `availableDatasets` | string[] | Restrict the analyst to these dataset ids. Accepts a JSON array string attribute. |
383
- | `dashboardContext` | DashboardContext | A `dashboard-context` to answer over (manual API path). Accepts a JSON object string attribute. |
384
- | `dashboardId` | string | Connect the chat to a dashboard embedded on the same page; it auto-reads live context and refreshes on change. |
385
- | `contextIds` | string[] | Connect the chat to one or more flex charts by their `context-id`; a synthetic dashboard-context is assembled. JSON array. |
386
- | `agentId` | string | Answer with a saved agent instead of the default analyst; pass the agent id. |
406
+ | Property | Type | Description |
407
+ | ----------------------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------- |
408
+ | `authKey` | string | Authorization key generated via Luzmo API |
409
+ | `authToken` | string | Authorization token generated via Luzmo API |
410
+ | `appServer` | string | Tenancy of Luzmo app to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
411
+ | `apiHost` | string | Tenancy of Luzmo API to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
412
+ | `options` | IQChatOptions | Specifies the customization options of the IQ chat component that affect its appearance and functionality. |
413
+ | `initialSuggestionsDatasetId` | string | ID of a dataset that assists the AI service in generating automated, initial prompts based on the provided data. |
414
+ | `availableDatasets` | string[] | Restrict the analyst to these dataset ids. Accepts a JSON array string attribute. |
415
+ | `dashboardContext` | DashboardContext | A `dashboard-context` to answer over (manual API path). Accepts a JSON object string attribute. |
416
+ | `dashboardId` | string | Connect the chat to a dashboard embedded on the same page; it auto-reads live context and refreshes on change. |
417
+ | `contextIds` | string[] | Connect the chat to one or more flex charts by their `context-id`; a synthetic dashboard-context is assembled. JSON array. |
418
+ | `agentId` | string | Answer with a saved agent instead of the default analyst; pass the agent id. |
387
419
 
388
420
  <br/>
389
421
 
@@ -414,14 +446,14 @@ For a customer's own UI you can also skip auto-connect and forward context yours
414
446
 
415
447
  All available properties for the IQ answer component can be seen in the table below.
416
448
 
417
- | Property | Type | Description |
418
- |-------------|--------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|
419
- | `authKey` | string | Authorization key generated via Luzmo API |
420
- | `authToken` | string | Authorization token generated via Luzmo API |
421
- | `appServer` | string | Tenancy of Luzmo app to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
422
- | `apiHost` | string | Tenancy of Luzmo API to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
423
- | `options` | IQAnswerOptions | Specifies the customization options of the IQ answer component that affect its appearance and functionality. |
424
- | `messages` | string | Specifies an array of messages to be displayed in the IQ answer component. |
449
+ | Property | Type | Description |
450
+ | ----------- | --------------- | -------------------------------------------------------------------------------------------------------------------------- |
451
+ | `authKey` | string | Authorization key generated via Luzmo API |
452
+ | `authToken` | string | Authorization token generated via Luzmo API |
453
+ | `appServer` | string | Tenancy of Luzmo app to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
454
+ | `apiHost` | string | Tenancy of Luzmo API to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
455
+ | `options` | IQAnswerOptions | Specifies the customization options of the IQ answer component that affect its appearance and functionality. |
456
+ | `messages` | string | Specifies an array of messages to be displayed in the IQ answer component. |
425
457
 
426
458
  <br/>
427
459
 
@@ -435,29 +467,29 @@ These options help tailor the chat experience to fit specific use cases by contr
435
467
  <br>
436
468
  The table below provides a detailed overview of each configurable parameter and its purpose.
437
469
 
438
- | Property | Type | Description |
439
- |-------------------------------|---------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
440
- | `areChartActionsEnabled` | boolean | Determines whether users should be allowed to trigger **chart actions** that enable them to explore further insights based on the given chart type. |
441
- | `areWelcomeMessagesVisible` | boolean | Specifies whether to display the **welcome messages** at the chat start. |
442
- | `chartTheme` | ItemThemeConfig | Defines theme settings for the charts displayed in the component. |
443
- | `chatWidgetHorizontalOffset` | number | Specifies the horizontal offset for the chat widget overlay position in relation to the chat button. |
444
- | `chatWidgetOverlayPosition` | IQChatWidgetOverlayPosition | Defines the position of the chat widget overlay in relation to the chat button. |
445
- | `chatWidgetPosition` | ConnectedPosition[] | Defines the customized configuration of the chat widget overlay position. |
446
- | `chatWidgetTitle` | string | The **chat title** to be displayed at the top of the chat container. |
447
- | `chatWidgetVerticalOffset` | number | Specifies the vertical offset for the chat widget overlay position in relation to the chat button. |
448
- | `disclaimerText` | string | Defines the **disclaimer text** to be displayed if enabled. Uses a default message if not specified. |
449
- | `displayMode` | IQChatDisplayMode | Configures the appearance of the chat component as either 'chatWidget' or 'fullChat'. |
450
- | `initialSuggestions` | IQSuggestion[] | Predefined questions displayed at chat start, sent to the AI service upon click. |
451
- | `isChartConfigurationEnabled` | boolean | Specifies whether users can configure charts via the chart configuration panel. |
452
- | `isChartExportEnabled` | boolean | Specifies whether users can export charts as PNGs. |
453
- | `isChartFeedbackEnabled` | boolean | Enables feedback, allowing users to rate responses and suggest corrections. |
454
- | `isConversationIdVisible` | boolean | Displays the **conversation ID** for reporting or feedback purposes. |
455
- | `isDisclaimerVisible` | boolean | Determines if the **disclaimer text** is shown in the chat. |
456
- | `locale` | IQLocale | Specifies the **locale** for localizing text elements and chart configurations.<br/>Accepts values: "de", "en", "es", "fr", "it", "ja", "nl", "no", "pt", "ru", "sv", "tr". |
457
- | `messages` | IQMessage[] | An array of processed messages to display, following the IQMessages interface. |
458
- | `responseMode` | IQResponseMode | Specifies the response format as 'chart', 'text', or 'mixed'. |
459
- | `timezone` | string | Specifies the **timezone** for displaying timestamps in charts. |
460
- | `welcomeMessages` | IQMessage[] | Array of **welcome messages** displayed at chat start. |
470
+ | Property | Type | Description |
471
+ | ----------------------------- | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
472
+ | `areChartActionsEnabled` | boolean | Determines whether users should be allowed to trigger **chart actions** that enable them to explore further insights based on the given chart type. |
473
+ | `areWelcomeMessagesVisible` | boolean | Specifies whether to display the **welcome messages** at the chat start. |
474
+ | `chartTheme` | ItemThemeConfig | Defines theme settings for the charts displayed in the component. |
475
+ | `chatWidgetHorizontalOffset` | number | Specifies the horizontal offset for the chat widget overlay position in relation to the chat button. |
476
+ | `chatWidgetOverlayPosition` | IQChatWidgetOverlayPosition | Defines the position of the chat widget overlay in relation to the chat button. |
477
+ | `chatWidgetPosition` | ConnectedPosition[] | Defines the customized configuration of the chat widget overlay position. |
478
+ | `chatWidgetTitle` | string | The **chat title** to be displayed at the top of the chat container. |
479
+ | `chatWidgetVerticalOffset` | number | Specifies the vertical offset for the chat widget overlay position in relation to the chat button. |
480
+ | `disclaimerText` | string | Defines the **disclaimer text** to be displayed if enabled. Uses a default message if not specified. |
481
+ | `displayMode` | IQChatDisplayMode | Configures the appearance of the chat component as either 'chatWidget' or 'fullChat'. |
482
+ | `initialSuggestions` | IQSuggestion[] | Predefined questions displayed at chat start, sent to the AI service upon click. |
483
+ | `isChartConfigurationEnabled` | boolean | Specifies whether users can configure charts via the chart configuration panel. |
484
+ | `isChartExportEnabled` | boolean | Specifies whether users can export charts as PNGs. |
485
+ | `isChartFeedbackEnabled` | boolean | Enables feedback, allowing users to rate responses and suggest corrections. |
486
+ | `isConversationIdVisible` | boolean | Displays the **conversation ID** for reporting or feedback purposes. |
487
+ | `isDisclaimerVisible` | boolean | Determines if the **disclaimer text** is shown in the chat. |
488
+ | `locale` | IQLocale | Specifies the **locale** for localizing text elements and chart configurations.<br/>Accepts values: "de", "en", "es", "fr", "it", "ja", "nl", "no", "pt", "ru", "sv", "tr". |
489
+ | `messages` | IQMessage[] | An array of processed messages to display, following the IQMessages interface. |
490
+ | `responseMode` | IQResponseMode | Specifies the response format as 'chart', 'text', or 'mixed'. |
491
+ | `timezone` | string | Specifies the **timezone** for displaying timestamps in charts. |
492
+ | `welcomeMessages` | IQMessage[] | Array of **welcome messages** displayed at chat start. |
461
493
 
462
494
  <br>
463
495
 
@@ -469,15 +501,15 @@ These options help define whether certain elements, such as charts, text summari
469
501
  <br>
470
502
  The table below provides a detailed overview of each configurable parameter and its purpose:
471
503
 
472
- | Property | Type | Description |
473
- |-------------------------------| ------------------------------------- |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
474
- | `areChartActionsEnabled` | boolean | Determines whether users should be allowed to trigger **chart actions** that enable them to explore further insights based on the given chart type. |
475
- | `isChartConfigurationEnabled` | boolean | Specifies whether users should be able to configure charts with the chart configuration panel. |
476
- | `isChartExportEnabled` | boolean | Specifies whether users can export charts as PNGs. |
477
- | `isChartFeedbackEnabled` | boolean | Specifies whether the feedback mechanism should be displayed, allowing users to rate AI responses and suggest chart corrections. |
478
- | `locale` | IQLocale | Specifies the **locale** used for component interactions, including localization of text elements like welcome messages, responses, and chart configurations. |
479
- | `responseMode` | IQResponseMode | Defines the **response mode** for the answer component: 'chart', 'text', or 'mixed' (default). 'chart' shows AI responses as charts only, 'text' shows only text summaries, and 'mixed' displays both. |
480
- | `chartTheme` | ItemThemeConfig | Specifies the theme settings for customizing the appearance of charts displayed in the component. |
504
+ | Property | Type | Description |
505
+ | ----------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
506
+ | `areChartActionsEnabled` | boolean | Determines whether users should be allowed to trigger **chart actions** that enable them to explore further insights based on the given chart type. |
507
+ | `isChartConfigurationEnabled` | boolean | Specifies whether users should be able to configure charts with the chart configuration panel. |
508
+ | `isChartExportEnabled` | boolean | Specifies whether users can export charts as PNGs. |
509
+ | `isChartFeedbackEnabled` | boolean | Specifies whether the feedback mechanism should be displayed, allowing users to rate AI responses and suggest chart corrections. |
510
+ | `locale` | IQLocale | Specifies the **locale** used for component interactions, including localization of text elements like welcome messages, responses, and chart configurations. |
511
+ | `responseMode` | IQResponseMode | Defines the **response mode** for the answer component: 'chart', 'text', or 'mixed' (default). 'chart' shows AI responses as charts only, 'text' shows only text summaries, and 'mixed' displays both. |
512
+ | `chartTheme` | ItemThemeConfig | Specifies the theme settings for customizing the appearance of charts displayed in the component. |
481
513
 
482
514
  <br>
483
515
 
@@ -486,64 +518,69 @@ The table below provides a detailed overview of each configurable parameter and
486
518
  The following CSS variables can be used to customize various aspects of the IQ components. They are grouped based on their functionality, such as general styling, chat appearance, bubble styles, messages, and feedback.
487
519
 
488
520
  #### General Styling
521
+
489
522
  These variables control the overall appearance of elements like borders, background colors, font sizes, and spacing.
490
523
 
491
524
  ```css
492
- --luzmo-iq-border-color: rgba(0, 0, 0, .1); /* Border color */
493
- --luzmo-iq-border-radius: .5rem; /* Standard border radius */
494
- --luzmo-iq-border-radius-lg: .75rem; /* Large border radius */
495
- --luzmo-iq-border-radius-xl: 1rem; /* Extra-large border radius */
496
- --luzmo-iq-border-radius-full: 999rem; /* Full (circle) border radius */
497
- --luzmo-iq-border-width: 1px; /* Standard border width */
498
- --luzmo-iq-background-color: #ffffff; /* Default background color */
499
- --luzmo-iq-background-hover-color: #f8fafc; /* Background color on hover */
500
- --luzmo-iq-background-active-color: #f1f5f9; /* Background color when active */
501
- --luzmo-iq-font-size: .875rem; /* Default font size */
502
- --luzmo-iq-font-weight: 400; /* Standard font weight */
503
- --luzmo-iq-font-color: #333; /* Default font color */
504
- --luzmo-iq-spacing-1: .125rem; /* Small spacing */
505
- --luzmo-iq-spacing-5: 1rem; /* Large spacing */
525
+ --luzmo-iq-border-color: rgba(0, 0, 0, 0.1); /* Border color */
526
+ --luzmo-iq-border-radius: 0.5rem; /* Standard border radius */
527
+ --luzmo-iq-border-radius-lg: 0.75rem; /* Large border radius */
528
+ --luzmo-iq-border-radius-xl: 1rem; /* Extra-large border radius */
529
+ --luzmo-iq-border-radius-full: 999rem; /* Full (circle) border radius */
530
+ --luzmo-iq-border-width: 1px; /* Standard border width */
531
+ --luzmo-iq-background-color: #ffffff; /* Default background color */
532
+ --luzmo-iq-background-hover-color: #f8fafc; /* Background color on hover */
533
+ --luzmo-iq-background-active-color: #f1f5f9; /* Background color when active */
534
+ --luzmo-iq-font-size: 0.875rem; /* Default font size */
535
+ --luzmo-iq-font-weight: 400; /* Standard font weight */
536
+ --luzmo-iq-font-color: #333; /* Default font color */
537
+ --luzmo-iq-spacing-1: 0.125rem; /* Small spacing */
538
+ --luzmo-iq-spacing-5: 1rem; /* Large spacing */
506
539
  ```
507
540
 
508
541
  #### Messages Styling
542
+
509
543
  These variables define the appearance of both human and system messages in the chat.
510
544
 
511
545
  ```css
512
- --luzmo-iq-human-message-background: blue; /* Default background color for human messages */
513
- --luzmo-iq-human-message-color: white; /* Default text color for human messages */
514
- --luzmo-iq-system-message-background: rgb(226, 232, 240); /* Default background for system messages */
515
- --luzmo-iq-system-message-color: #333; /* Default text color for system messages */
546
+ --luzmo-iq-human-message-background: blue; /* Default background color for human messages */
547
+ --luzmo-iq-human-message-color: white; /* Default text color for human messages */
548
+ --luzmo-iq-system-message-background: rgb(226, 232, 240); /* Default background for system messages */
549
+ --luzmo-iq-system-message-color: #333; /* Default text color for system messages */
516
550
  ```
517
551
 
518
552
  #### State Loader and Spinner Styling
553
+
519
554
  These variables are used for customizing the appearance of state loaders and spinners within the chat component.
520
555
 
521
556
  ```css
522
- --luzmo-iq-spinner-color: magenta; /* Default spinner color */
523
- --luzmo-iq-spinner-border-width: .125rem; /* Default spinner border width */
524
- --luzmo-iq-spinner-opacity: .5; /* Default spinner opacity */
525
- --luzmo-iq-state-loader-background: #778393; /* Default background color of the loader */
526
- --luzmo-iq-state-loader-color: #333; /* Default text color for the loader */
527
- --luzmo-iq-state-loader-color-accent: #ccc; /* Default accent color for the loader */
557
+ --luzmo-iq-spinner-color: magenta; /* Default spinner color */
558
+ --luzmo-iq-spinner-border-width: 0.125rem; /* Default spinner border width */
559
+ --luzmo-iq-spinner-opacity: 0.5; /* Default spinner opacity */
560
+ --luzmo-iq-state-loader-background: #778393; /* Default background color of the loader */
561
+ --luzmo-iq-state-loader-color: #333; /* Default text color for the loader */
562
+ --luzmo-iq-state-loader-color-accent: #ccc; /* Default accent color for the loader */
528
563
  ```
529
564
 
530
565
  #### Feedback and Ratings
566
+
531
567
  These variables control the appearance of feedback icons and rating elements.
532
568
 
533
569
  ```css
534
- --luzmo-iq-positive-feedback-icon-hover-color: rgb(20, 120, 63); /* Default hover color for positive feedback */
535
- --luzmo-iq-negative-feedback-icon-hover-color: rgb(216, 64, 64); /* Default hover color for negative feedback */
536
- --luzmo-iq-rating-icon-size: 1rem; /* Default size of the rating icons */
537
- --luzmo-iq-info-icon-size: 1rem; /* Default size of the info icons */
570
+ --luzmo-iq-positive-feedback-icon-hover-color: rgb(20, 120, 63); /* Default hover color for positive feedback */
571
+ --luzmo-iq-negative-feedback-icon-hover-color: rgb(216, 64, 64); /* Default hover color for negative feedback */
572
+ --luzmo-iq-rating-icon-size: 1rem; /* Default size of the rating icons */
573
+ --luzmo-iq-info-icon-size: 1rem; /* Default size of the info icons */
538
574
  ```
539
575
 
540
576
  #### Tooltips
577
+
541
578
  These variables are used to adjust the appearance of tooltips.
542
579
 
543
580
  ```css
544
- --luzmo-iq-tooltip-background-color: #000; /* Tooltip background color, defaults to #000 (black) */
545
- --luzmo-iq-tooltip-color: #fff; /* Tooltip text color, defaults to #fff (white) */
546
- --luzmo-iq-tooltip-font-size: 0.8125rem; /* Tooltip font size, defaults to 0.8125rem */
581
+ --luzmo-iq-tooltip-background-color: #000; /* Tooltip background color, defaults to #000 (black) */
582
+ --luzmo-iq-tooltip-color: #fff; /* Tooltip text color, defaults to #fff (white) */
583
+ --luzmo-iq-tooltip-font-size: 0.8125rem; /* Tooltip font size, defaults to 0.8125rem */
547
584
  ```
548
585
 
549
586
  ## Changelog
@@ -554,8 +591,8 @@ These variables are used to adjust the appearance of tooltips.
554
591
 
555
592
  ### Migrating from cumul.io to luzmo.
556
593
 
557
- * Change `import '@cumul.io/cumulio-dashboard` to `import @luzmo/embed`.
558
- * Replace all references of `cumulio-dashboard` to `luzmo-embed-dashboard`
594
+ - Change `import '@cumul.io/cumulio-dashboard` to `import @luzmo/embed`.
595
+ - Replace all references of `cumulio-dashboard` to `luzmo-embed-dashboard`
559
596
 
560
597
  ## Quick links
561
598