@luzmo/embed 6.4.3 → 6.5.0

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,11 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [6.5.0] - 2025-06-23
6
+
7
+ ### Updates
8
+
9
+ - Update dependent libraries to latest versions
10
+ - Maintenance release with improved stability
11
+
5
12
  ## [6.4.3] - 2025-04-28
6
13
 
7
14
  ### Updates
8
15
 
9
- - Added `--luzmo-iq-state-loader-color-accent` for Luzmo IQ loader.
16
+ - Add `--luzmo-iq-state-loader-color-accent` for Luzmo IQ loader
10
17
 
11
18
  ## [6.4.2] - 2025-04-14
12
19
 
package/README.md CHANGED
@@ -9,7 +9,7 @@ A modern [Web Component](https://developer.mozilla.org/en-US/docs/Web/Web_Compon
9
9
  3. [Luzmo Embed Dashboard](#luzmo-embed-dashboard)
10
10
  4. [Luzmo IQ Components](#luzmo-iq-components)
11
11
  5. [Changelog](#changelog)
12
- 6. [Migration](#migration)
12
+ 6. [Migrations](#migrations)
13
13
  7. [Quick links](#quick-links)
14
14
 
15
15
  ## Installation instructions
@@ -95,20 +95,20 @@ Below a list of available properties on the viz item web component
95
95
  ### Public methods luzmo-embed-viz-item
96
96
 
97
97
  ```typescript
98
- getData(): any
99
98
  // Return an array of the data of the viz item that's embedded.
99
+ getData(): ItemData;
100
100
 
101
- getFilters(): FilterGroup[];
102
101
  // Return an array of active filters on the viz item.
102
+ getFilters(): FilterGroup[];
103
103
 
104
- refreshData(): void
105
104
  // Refresh the data of the viz item.
105
+ refreshData(): void;
106
106
 
107
- setAuthorization(key: string, token: string): void
108
107
  // Changes the authorization of the viz item. To fetch data based on new authorization parameters, refreshData() needs to be called.
108
+ setAuthorization(key: string, token: string): void;
109
109
 
110
- export(type: 'png' | 'xlsx' | 'csv' | 'xlsx-raw' | 'csv-raw'): void
111
110
  // Export the viz item as png, csv, xlsx, xlsx-raw, csv-raw.
111
+ export(type: 'png' | 'xlsx' | 'csv' | 'xlsx-raw' | 'csv-raw'): void;
112
112
  ```
113
113
  <br/>
114
114
 
@@ -209,32 +209,32 @@ Below a list of available properties on the dashboard web component
209
209
  ### Public methods luzmo-embed-dashboard
210
210
 
211
211
  ```typescript
212
- getDashboards(): Promise<LuzmoDashboard[]>
213
212
  // Returns an instantly resolved promise with an array of all the visible dashboards on a page with their information.
213
+ getDashboards(): Promise<LuzmoDashboard[]>;
214
214
 
215
- getData(itemId: string): Promise<ItemData>
216
215
  // Returns an array the data of a chart of a certain dashboard by adding the dashboardId or the container of the iframe.
216
+ getData(itemId: string): Promise<ItemData>;
217
217
 
218
- getFilters(): Promise<FilterGroup[]>
219
218
  // Returns an array of active filters.
219
+ getFilters(): Promise<FilterGroup[]>;
220
220
 
221
- setAuthorization(key: string, token: string): Promise<void>
222
221
  // Changes the authorization of all or one dashboard. To fetch data based on new authorization parameters, reloadDashboard() or refreshData() needs to be called.
222
+ setAuthorization(key: string, token: string): Promise<void>;
223
223
 
224
- refreshData(itemId?: string): Promise<void>
225
224
  // Refreshes the data of a specific chart when the id of that item is supplied. Without a itemId this refreshes the data in all items.
225
+ refreshData(itemId?: string): Promise<void>;
226
226
 
227
- reloadDashboard(): Promise<void>
228
227
  // Reload the dashboard. (useful when the authorization is changed, and dashboard needs to be reloaded without reloading the iFrame)
228
+ reloadDashboard(): Promise<void>;
229
229
 
230
- exportDashboard(type?: ExportType): Promise<ExportDashboard>
231
230
  // Exports the current dashboard as either pdf or png. A container class needs to be passed as an argument and an optional type parameter.
231
+ exportDashboard(type?: ExportType): Promise<ExportDashboard>;
232
232
 
233
- getAccessibleDashboards(): Promise<AccessibleDashboard[]>
234
233
  // Get accessible dashboards in a integration, make sure 'apiHost', 'authKey', 'authToken' are set correctly on the instance.
234
+ getAccessibleDashboards(): Promise<AccessibleDashboard[]>;
235
235
 
236
- setEditMode(editMode: DashboardEditMode): Promise<SetEditMode>
237
236
  // Sets the editMode of the current dashboard. Accepted parameters: "view" , "editLimited" , "editFull".
237
+ setEditMode(editMode: DashboardEditMode): Promise<SetEditMode>;
238
238
  ```
239
239
 
240
240
  <br/>
@@ -264,6 +264,7 @@ Add an event listener when all items are rendered
264
264
  ```typescript
265
265
  // get the component, here we query the component that has an id 'dashboard'
266
266
  const dashboardComponent = document.getElementById('dashboard');
267
+
267
268
  dashboardComponent.addEventListener('itemsRendered', (event) => {
268
269
  // do something after all items are rendered
269
270
  console.log(event);
@@ -334,7 +335,7 @@ All available properties for the IQ chat component can be seen in the table belo
334
335
  | `authToken` | string | Authorization token generated via Luzmo API |
335
336
  | `appServer` | string | Tenancy of Luzmo app to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
336
337
  | `apiHost` | string | Tenancy of Luzmo API to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
337
- | `options` | string | Specifies the customization options of the IQ chat component that affect its appearance and functionality. |
338
+ | `options` | IQChatOptions | Specifies the customization options of the IQ chat component that affect its appearance and functionality. |
338
339
  | `initialSuggestionsDatasetId` | string | ID of a dataset that assists the AI service in generating automated, initial prompts based on the provided data. |
339
340
 
340
341
  <br/>
@@ -349,7 +350,7 @@ All available properties for the IQ answer component can be seen in the table be
349
350
  | `authToken` | string | Authorization token generated via Luzmo API |
350
351
  | `appServer` | string | Tenancy of Luzmo app to connect to (Default: 'https://app.luzmo.com/' for US set appServer to 'https://app.us.luzmo.com/') |
351
352
  | `apiHost` | string | Tenancy of Luzmo API to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
352
- | `options` | string | Specifies the customization options of the IQ answer component that affect its appearance and functionality. |
353
+ | `options` | IQAnswerOptions | Specifies the customization options of the IQ answer component that affect its appearance and functionality. |
353
354
  | `messages` | string | Specifies an array of messages to be displayed in the IQ answer component. |
354
355
 
355
356
  <br/>
@@ -358,7 +359,7 @@ All available properties for the IQ answer component can be seen in the table be
358
359
 
359
360
  #### IQ chat component
360
361
 
361
- The `IQChatOptions` interface provides a range of configuration options that allow you to customize the appearance and functionalitie of the IQ chat component.
362
+ The `IQChatOptions` interface provides a range of configuration options that allow you to customize the appearance and functionality of the IQ chat component.
362
363
  <br>
363
364
  These options help tailor the chat experience to fit specific use cases by controlling elements such as welcome messages, translations, interaction options, and whether to display charts or text summaries.
364
365
  <br>
@@ -370,21 +371,21 @@ The table below provides a detailed overview of each configurable parameter and
370
371
  | `areWelcomeMessagesVisible` | boolean | Specifies whether to display the **welcome messages** at the chat start. |
371
372
  | `chartTheme` | ItemThemeConfig | Defines theme settings for the charts displayed in the component. |
372
373
  | `chatWidgetHorizontalOffset` | number | Specifies the horizontal offset for the chat widget overlay position in relation to the chat button. |
373
- | `chatWidgetOverlayPosition` | string | Defines the position of the chat widget overlay in relation to the chat button. |
374
+ | `chatWidgetOverlayPosition` | IQChatWidgetOverlayPosition | Defines the position of the chat widget overlay in relation to the chat button. |
374
375
  | `chatWidgetPosition` | ConnectedPosition[] | Defines the customized configuration of the chat widget overlay position. |
375
376
  | `chatWidgetTitle` | string | The **chat title** to be displayed at the top of the chat container. |
376
377
  | `chatWidgetVerticalOffset` | number | Specifies the vertical offset for the chat widget overlay position in relation to the chat button. |
377
378
  | `disclaimerText` | string | Defines the **disclaimer text** to be displayed if enabled. Uses a default message if not specified. |
378
- | `displayMode` | string | Configures the appearance of the chat component as either 'chatWidget' or 'fullChat'. |
379
+ | `displayMode` | IQChatDisplayMode | Configures the appearance of the chat component as either 'chatWidget' or 'fullChat'. |
379
380
  | `initialSuggestions` | IQSuggestion[] | Predefined questions displayed at chat start, sent to the AI service upon click. |
380
381
  | `isChartConfigurationEnabled` | boolean | Specifies whether users can configure charts via the chart configuration panel. |
381
382
  | `isChartExportEnabled` | boolean | Specifies whether users can export charts as PNGs. |
382
383
  | `isChartFeedbackEnabled` | boolean | Enables feedback, allowing users to rate responses and suggest corrections. |
383
384
  | `isConversationIdVisible` | boolean | Displays the **conversation ID** for reporting or feedback purposes. |
384
385
  | `isDisclaimerVisible` | boolean | Determines if the **disclaimer text** is shown in the chat. |
385
- | `locale` | string | 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". |
386
+ | `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". |
386
387
  | `messages` | IQMessage[] | An array of processed messages to display, following the IQMessages interface. |
387
- | `responseMode` | string | Specifies the response format as 'chart', 'text', or 'mixed'. |
388
+ | `responseMode` | IQResponseMode | Specifies the response format as 'chart', 'text', or 'mixed'. |
388
389
  | `timezone` | string | Specifies the **timezone** for displaying timestamps in charts. |
389
390
  | `welcomeMessages` | IQMessage[] | Array of **welcome messages** displayed at chat start. |
390
391
 
@@ -404,9 +405,9 @@ The table below provides a detailed overview of each configurable parameter and
404
405
  | `isChartConfigurationEnabled` | boolean | Specifies whether users should be able to configure charts with the chart configuration panel. |
405
406
  | `isChartExportEnabled` | boolean | Specifies whether users can export charts as PNGs. |
406
407
  | `isChartFeedbackEnabled` | boolean | Specifies whether the feedback mechanism should be displayed, allowing users to rate AI responses and suggest chart corrections. |
407
- | `locale` | string | Specifies the **locale** used for component interactions, including localization of text elements like welcome messages, responses, and chart configurations. |
408
- | `responseMode` | string | 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. |
409
- | `chartTheme` | ItemThemeConfig | Specifies the theme settings for customizing the appearance of charts displayed in the component. |
408
+ | `locale` | IQLocale | Specifies the **locale** used for component interactions, including localization of text elements like welcome messages, responses, and chart configurations. |
409
+ | `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. |
410
+ | `chartTheme` | ItemThemeConfig | Specifies the theme settings for customizing the appearance of charts displayed in the component. |
410
411
 
411
412
  <br>
412
413
 
@@ -418,7 +419,7 @@ The following CSS variables can be used to customize various aspects of the IQ c
418
419
  These variables control the overall appearance of elements like borders, background colors, font sizes, and spacing.
419
420
 
420
421
  ```css
421
- --luzmo-iq-border-color: rgba(0,0,0,.1); /* Border color */
422
+ --luzmo-iq-border-color: rgba(0, 0, 0, .1); /* Border color */
422
423
  --luzmo-iq-border-radius: .5rem; /* Standard border radius */
423
424
  --luzmo-iq-border-radius-lg: .75rem; /* Large border radius */
424
425
  --luzmo-iq-border-radius-xl: 1rem; /* Extra-large border radius */
@@ -438,10 +439,10 @@ These variables control the overall appearance of elements like borders, backgro
438
439
  These variables define the appearance of both human and system messages in the chat.
439
440
 
440
441
  ```css
441
- --luzmo-iq-human-message-background: blue; /* Default background color for human messages */
442
- --luzmo-iq-human-message-color: white; /* Default text color for human messages */
443
- --luzmo-iq-system-message-background: rgb(226, 232, 240); /* Default background for system messages */
444
- --luzmo-iq-system-message-color: #333; /* Default text color for system messages */
442
+ --luzmo-iq-human-message-background: blue; /* Default background color for human messages */
443
+ --luzmo-iq-human-message-color: white; /* Default text color for human messages */
444
+ --luzmo-iq-system-message-background: rgb(226, 232, 240); /* Default background for system messages */
445
+ --luzmo-iq-system-message-color: #333; /* Default text color for system messages */
445
446
  ```
446
447
 
447
448
  #### State Loader and Spinner Styling
@@ -453,17 +454,17 @@ These variables are used for customizing the appearance of state loaders and spi
453
454
  --luzmo-iq-spinner-opacity: .5; /* Default spinner opacity */
454
455
  --luzmo-iq-state-loader-background: #778393; /* Default background color of the loader */
455
456
  --luzmo-iq-state-loader-color: #333; /* Default text color for the loader */
456
- --luzmo-iq-state-loader-color-accent: #ccc; /* Default accent color for the loader */
457
+ --luzmo-iq-state-loader-color-accent: #ccc; /* Default accent color for the loader */
457
458
  ```
458
459
 
459
460
  #### Feedback and Ratings
460
461
  These variables control the appearance of feedback icons and rating elements.
461
462
 
462
463
  ```css
463
- --luzmo-iq-positive-feedback-icon-hover-color: rgb(20, 120, 63); /* Default hover color for positive feedback */
464
- --luzmo-iq-negative-feedback-icon-hover-color: rgb(216, 64, 64); /* Default hover color for negative feedback */
465
- --luzmo-iq-rating-icon-size: 1rem; /* Default size of the rating icons */
466
- --luzmo-iq-info-icon-size: 1rem; /* Default size of the info icons */
464
+ --luzmo-iq-positive-feedback-icon-hover-color: rgb(20, 120, 63); /* Default hover color for positive feedback */
465
+ --luzmo-iq-negative-feedback-icon-hover-color: rgb(216, 64, 64); /* Default hover color for negative feedback */
466
+ --luzmo-iq-rating-icon-size: 1rem; /* Default size of the rating icons */
467
+ --luzmo-iq-info-icon-size: 1rem; /* Default size of the info icons */
467
468
  ```
468
469
 
469
470
  #### Tooltips
@@ -479,7 +480,7 @@ These variables are used to adjust the appearance of tooltips.
479
480
 
480
481
  - [Changelog](https://embed-libs.luzmo.com/changelogs/embed/)
481
482
 
482
- ## Migration
483
+ ## Migrations
483
484
 
484
485
  ### Migrating from cumul.io to luzmo.
485
486
 
package/index.cjs CHANGED
@@ -49,10 +49,10 @@ __export(src_exports, {
49
49
  getCachedJSONSchemas: () => getCachedJSONSchemas,
50
50
  getJSONSchemaUrl: () => getJSONSchemaUrl,
51
51
  luzmoRefParserOptions: () => luzmoRefParserOptions,
52
- selectedDataUtils: () => import_shared_embed2.selectedDataUtils
52
+ selectedDataUtils: () => import_shared_embed4.selectedDataUtils
53
53
  });
54
54
  module.exports = __toCommonJS(src_exports);
55
- var import_shared_embed2 = require("@luzmo/shared-embed");
55
+ var import_shared_embed4 = require("@luzmo/shared-embed");
56
56
  var import_lit6 = require("lit");
57
57
 
58
58
  // libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
@@ -63,7 +63,7 @@ var import_decorators = require("lit/decorators.js");
63
63
  var import_style_map = require("lit/directives/style-map.js");
64
64
 
65
65
  // libs/embed-libs/embed/package.json
66
- var version = "6.4.3";
66
+ var version = "6.5.0";
67
67
 
68
68
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
69
69
  var SharedLib = __toESM(require("@luzmo/shared-embed"), 1);
@@ -1304,7 +1304,7 @@ if (!customElements.get("luzmo-embed-viz-item")) {
1304
1304
  }
1305
1305
 
1306
1306
  // libs/embed-libs/embed/src/lib/luzmo-iq-components/luzmo-iq-chat.ts
1307
- var SharedLib4 = __toESM(require("@luzmo/shared-embed"), 1);
1307
+ var import_shared_embed2 = require("@luzmo/shared-embed");
1308
1308
  var import_lit4 = require("lit");
1309
1309
  var import_decorators3 = require("lit/decorators.js");
1310
1310
  var inputMap = {
@@ -1331,7 +1331,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1331
1331
  this.libVersion = version + "-wc-luzmo";
1332
1332
  this.remoteEntryServer = "http://localhost:4202/";
1333
1333
  this.aydHost = "https://ayd.luzmo.com/";
1334
- this.availableDatasets = [];
1335
1334
  }
1336
1335
  static {
1337
1336
  // Static styles to set host display to block, else it is not shown at all for some reason.
@@ -1348,7 +1347,7 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1348
1347
  }
1349
1348
  async firstUpdated(_changedProperties) {
1350
1349
  super.firstUpdated(_changedProperties);
1351
- await SharedLib4.loadLibrary(this.calculatedAppServer, "IQApp");
1350
+ await (0, import_shared_embed2.loadLibrary)(this.calculatedAppServer, "IQApp");
1352
1351
  this.createAndAppendElement();
1353
1352
  }
1354
1353
  get calculatedAppServer() {
@@ -1367,7 +1366,7 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1367
1366
  for (const key in inputMap) {
1368
1367
  const value = this[key];
1369
1368
  if (value) {
1370
- const attributeValue = ["appServer", "apiHost", "aydHost"].includes(key) ? SharedLib4.removeTrailingSlash(value) : value;
1369
+ const attributeValue = ["appServer", "apiHost", "aydHost"].includes(key) ? (0, import_shared_embed2.removeTrailingSlash)(value) : value;
1371
1370
  this.chartElement.setAttribute(
1372
1371
  inputMap[key],
1373
1372
  typeof attributeValue === "object" ? JSON.stringify(attributeValue) : attributeValue
@@ -1384,7 +1383,7 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1384
1383
  this.chartElement.setAttribute(mappedAttributeName, attributeValue);
1385
1384
  }
1386
1385
  } else {
1387
- await SharedLib4.loadLibrary(this.calculatedAppServer, "IQApp");
1386
+ await (0, import_shared_embed2.loadLibrary)(this.calculatedAppServer, "IQApp");
1388
1387
  this.createAndAppendElement();
1389
1388
  }
1390
1389
  }
@@ -1452,9 +1451,9 @@ if (!customElements.get(embedChatTag)) {
1452
1451
  }
1453
1452
 
1454
1453
  // libs/embed-libs/embed/src/lib/luzmo-iq-components/luzmo-iq-answer.ts
1455
- var SharedLib5 = __toESM(require("@luzmo/shared-embed"), 1);
1456
1454
  var import_lit5 = require("lit");
1457
1455
  var import_decorators4 = require("lit/decorators.js");
1456
+ var import_shared_embed3 = require("@luzmo/shared-embed");
1458
1457
  var inputMap2 = {
1459
1458
  aiEndPoint: "ai-end-point",
1460
1459
  appServer: "app-server",
@@ -1491,7 +1490,7 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1491
1490
  }
1492
1491
  async firstUpdated(_changedProperties) {
1493
1492
  super.firstUpdated(_changedProperties);
1494
- await SharedLib5.loadLibrary(this.calculatedAppServer, "IQApp");
1493
+ await (0, import_shared_embed3.loadLibrary)(this.calculatedAppServer, "IQApp");
1495
1494
  this.createAndAppendElement();
1496
1495
  }
1497
1496
  get calculatedAppServer() {
@@ -1511,7 +1510,7 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1511
1510
  for (const key in inputMap2) {
1512
1511
  const value = this[key];
1513
1512
  if (value) {
1514
- const attributeValue = ["appServer", "apiHost"].includes(key) ? SharedLib5.removeTrailingSlash(value) : value;
1513
+ const attributeValue = ["appServer", "apiHost"].includes(key) ? (0, import_shared_embed3.removeTrailingSlash)(value) : value;
1515
1514
  this.chartElement.setAttribute(
1516
1515
  inputMap2[key],
1517
1516
  typeof attributeValue === "object" ? JSON.stringify(attributeValue) : attributeValue
@@ -1528,7 +1527,7 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1528
1527
  this.chartElement.setAttribute(mappedAttributeName, attributeValue);
1529
1528
  }
1530
1529
  } else {
1531
- await SharedLib5.loadLibrary(this.calculatedAppServer, "IQApp");
1530
+ await (0, import_shared_embed3.loadLibrary)(this.calculatedAppServer, "IQApp");
1532
1531
  this.createAndAppendElement();
1533
1532
  }
1534
1533
  }
package/index.js CHANGED
@@ -24,7 +24,7 @@ import { property, query, state } from "lit/decorators.js";
24
24
  import { styleMap } from "lit/directives/style-map.js";
25
25
 
26
26
  // libs/embed-libs/embed/package.json
27
- var version = "6.4.3";
27
+ var version = "6.5.0";
28
28
 
29
29
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
30
30
  import * as SharedLib from "@luzmo/shared-embed";
@@ -1265,7 +1265,7 @@ if (!customElements.get("luzmo-embed-viz-item")) {
1265
1265
  }
1266
1266
 
1267
1267
  // libs/embed-libs/embed/src/lib/luzmo-iq-components/luzmo-iq-chat.ts
1268
- import * as SharedLib4 from "@luzmo/shared-embed";
1268
+ import { loadLibrary as loadLibrary3, removeTrailingSlash as removeTrailingSlash3 } from "@luzmo/shared-embed";
1269
1269
  import { css as css3, html as html3, LitElement as LitElement3 } from "lit";
1270
1270
  import { property as property3 } from "lit/decorators.js";
1271
1271
  var inputMap = {
@@ -1292,7 +1292,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1292
1292
  this.libVersion = version + "-wc-luzmo";
1293
1293
  this.remoteEntryServer = "http://localhost:4202/";
1294
1294
  this.aydHost = "https://ayd.luzmo.com/";
1295
- this.availableDatasets = [];
1296
1295
  }
1297
1296
  static {
1298
1297
  // Static styles to set host display to block, else it is not shown at all for some reason.
@@ -1309,7 +1308,7 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1309
1308
  }
1310
1309
  async firstUpdated(_changedProperties) {
1311
1310
  super.firstUpdated(_changedProperties);
1312
- await SharedLib4.loadLibrary(this.calculatedAppServer, "IQApp");
1311
+ await loadLibrary3(this.calculatedAppServer, "IQApp");
1313
1312
  this.createAndAppendElement();
1314
1313
  }
1315
1314
  get calculatedAppServer() {
@@ -1328,7 +1327,7 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1328
1327
  for (const key in inputMap) {
1329
1328
  const value = this[key];
1330
1329
  if (value) {
1331
- const attributeValue = ["appServer", "apiHost", "aydHost"].includes(key) ? SharedLib4.removeTrailingSlash(value) : value;
1330
+ const attributeValue = ["appServer", "apiHost", "aydHost"].includes(key) ? removeTrailingSlash3(value) : value;
1332
1331
  this.chartElement.setAttribute(
1333
1332
  inputMap[key],
1334
1333
  typeof attributeValue === "object" ? JSON.stringify(attributeValue) : attributeValue
@@ -1345,7 +1344,7 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1345
1344
  this.chartElement.setAttribute(mappedAttributeName, attributeValue);
1346
1345
  }
1347
1346
  } else {
1348
- await SharedLib4.loadLibrary(this.calculatedAppServer, "IQApp");
1347
+ await loadLibrary3(this.calculatedAppServer, "IQApp");
1349
1348
  this.createAndAppendElement();
1350
1349
  }
1351
1350
  }
@@ -1413,9 +1412,9 @@ if (!customElements.get(embedChatTag)) {
1413
1412
  }
1414
1413
 
1415
1414
  // libs/embed-libs/embed/src/lib/luzmo-iq-components/luzmo-iq-answer.ts
1416
- import * as SharedLib5 from "@luzmo/shared-embed";
1417
1415
  import { css as css4, html as html4, LitElement as LitElement4 } from "lit";
1418
1416
  import { property as property4 } from "lit/decorators.js";
1417
+ import { loadLibrary as loadLibrary4, removeTrailingSlash as removeTrailingSlash4 } from "@luzmo/shared-embed";
1419
1418
  var inputMap2 = {
1420
1419
  aiEndPoint: "ai-end-point",
1421
1420
  appServer: "app-server",
@@ -1452,7 +1451,7 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1452
1451
  }
1453
1452
  async firstUpdated(_changedProperties) {
1454
1453
  super.firstUpdated(_changedProperties);
1455
- await SharedLib5.loadLibrary(this.calculatedAppServer, "IQApp");
1454
+ await loadLibrary4(this.calculatedAppServer, "IQApp");
1456
1455
  this.createAndAppendElement();
1457
1456
  }
1458
1457
  get calculatedAppServer() {
@@ -1472,7 +1471,7 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1472
1471
  for (const key in inputMap2) {
1473
1472
  const value = this[key];
1474
1473
  if (value) {
1475
- const attributeValue = ["appServer", "apiHost"].includes(key) ? SharedLib5.removeTrailingSlash(value) : value;
1474
+ const attributeValue = ["appServer", "apiHost"].includes(key) ? removeTrailingSlash4(value) : value;
1476
1475
  this.chartElement.setAttribute(
1477
1476
  inputMap2[key],
1478
1477
  typeof attributeValue === "object" ? JSON.stringify(attributeValue) : attributeValue
@@ -1489,7 +1488,7 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1489
1488
  this.chartElement.setAttribute(mappedAttributeName, attributeValue);
1490
1489
  }
1491
1490
  } else {
1492
- await SharedLib5.loadLibrary(this.calculatedAppServer, "IQApp");
1491
+ await loadLibrary4(this.calculatedAppServer, "IQApp");
1493
1492
  this.createAndAppendElement();
1494
1493
  }
1495
1494
  }