@luzmo/embed 7.2.1 → 7.3.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,11 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [7.3.0] - 2026-09-10
6
+
7
+ ### Added
8
+ - `agentId` attribute on `<luzmo-iq-embed-chat>`. Set it to a saved agent id to run the chat as that agent, using the datasets, capabilities and theme configured on it.
9
+
5
10
  ## [7.2.1] - 2026-09-04
6
11
 
7
12
  ### Fixed
package/README.md CHANGED
@@ -383,6 +383,7 @@ All available properties for the IQ chat component can be seen in the table belo
383
383
  | `dashboardContext` | DashboardContext | A `dashboard-context` to answer over (manual API path). Accepts a JSON object string attribute. |
384
384
  | `dashboardId` | string | Connect the chat to a dashboard embedded on the same page; it auto-reads live context and refreshes on change. |
385
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. |
386
387
 
387
388
  <br/>
388
389
 
package/index.cjs CHANGED
@@ -64,7 +64,7 @@ var import_decorators = require("lit/decorators.js");
64
64
  var import_style_map = require("lit/directives/style-map.js");
65
65
 
66
66
  // libs/embed-libs/embed/package.json
67
- var version = "7.2.1";
67
+ var version = "7.3.0";
68
68
 
69
69
  // libs/embed-libs/embed/src/lib/helper/embed-error.utils.ts
70
70
  function buildEmbedErrorDetail(errorMsg) {
@@ -1312,22 +1312,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1312
1312
  this.libVersion = version + "-wc-luzmo";
1313
1313
  this.postInitCallQueue = [];
1314
1314
  }
1315
- static {
1316
- // Static styles to set host display to block, else it is not shown at all for some reason.
1317
- this.styles = import_lit3.css`
1318
- :host {
1319
- display: block;
1320
- width: 100%;
1321
- height: 100%;
1322
- }
1323
-
1324
- luzmo-embed-viz-item {
1325
- width: 100%;
1326
- height: 1000%;
1327
- display: block;
1328
- }
1329
- `;
1330
- }
1331
1315
  createRenderRoot() {
1332
1316
  if (!this.style.display) {
1333
1317
  this.style.display = "block";
@@ -1467,6 +1451,20 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1467
1451
  return import_lit3.html` `;
1468
1452
  }
1469
1453
  };
1454
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1455
+ LuzmoBaseVizItem.styles = import_lit3.css`
1456
+ :host {
1457
+ display: block;
1458
+ width: 100%;
1459
+ height: 100%;
1460
+ }
1461
+
1462
+ luzmo-embed-viz-item {
1463
+ width: 100%;
1464
+ height: 1000%;
1465
+ display: block;
1466
+ }
1467
+ `;
1470
1468
  __decorateClass([
1471
1469
  (0, import_decorators2.property)()
1472
1470
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -1552,7 +1550,8 @@ var inputMap = {
1552
1550
  availableDatasets: "available-datasets",
1553
1551
  dashboardContext: "dashboard-context",
1554
1552
  dashboardId: "dashboard-id",
1555
- contextIds: "context-ids"
1553
+ contextIds: "context-ids",
1554
+ agentId: "agent-id"
1556
1555
  };
1557
1556
  var embedChatTag = "luzmo-iq-embed-chat";
1558
1557
  var chatComponentTag = "luzmo-iq-chat-component";
@@ -1566,16 +1565,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1566
1565
  this.remoteEntryServer = "http://localhost:4202/";
1567
1566
  this.aydHost = "https://ayd.luzmo.com/";
1568
1567
  }
1569
- static {
1570
- // Static styles to set host display to block, else it is not shown at all for some reason.
1571
- this.styles = import_lit4.css`
1572
- :host {
1573
- display: block;
1574
- width: 100%;
1575
- height: 100%;
1576
- }
1577
- `;
1578
- }
1579
1568
  createRenderRoot() {
1580
1569
  return this;
1581
1570
  }
@@ -1653,6 +1642,14 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1653
1642
  observer.observe(embedChat, { childList: true, subtree: true });
1654
1643
  }
1655
1644
  };
1645
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1646
+ LuzmoIQEmbedChatComponent.styles = import_lit4.css`
1647
+ :host {
1648
+ display: block;
1649
+ width: 100%;
1650
+ height: 100%;
1651
+ }
1652
+ `;
1656
1653
  __decorateClass([
1657
1654
  (0, import_decorators3.property)()
1658
1655
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -1698,6 +1695,9 @@ __decorateClass([
1698
1695
  __decorateClass([
1699
1696
  (0, import_decorators3.property)({ type: Array })
1700
1697
  ], LuzmoIQEmbedChatComponent.prototype, "contextIds", 2);
1698
+ __decorateClass([
1699
+ (0, import_decorators3.property)()
1700
+ ], LuzmoIQEmbedChatComponent.prototype, "agentId", 2);
1701
1701
  if (!customElements.get(embedChatTag)) {
1702
1702
  customElements.define(embedChatTag, LuzmoIQEmbedChatComponent);
1703
1703
  }
@@ -1727,16 +1727,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1727
1727
  this.libVersion = version + "-wc-luzmo";
1728
1728
  this.remoteEntryServer = "http://localhost:4202";
1729
1729
  }
1730
- static {
1731
- // Static styles to set host display to block, else it is not shown at all for some reason.
1732
- this.styles = import_lit5.css`
1733
- :host {
1734
- display: block;
1735
- width: 100%;
1736
- height: 100%;
1737
- }
1738
- `;
1739
- }
1740
1730
  createRenderRoot() {
1741
1731
  return this;
1742
1732
  }
@@ -1787,6 +1777,14 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1787
1777
  return import_lit5.html` `;
1788
1778
  }
1789
1779
  };
1780
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1781
+ LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
1782
+ :host {
1783
+ display: block;
1784
+ width: 100%;
1785
+ height: 100%;
1786
+ }
1787
+ `;
1790
1788
  __decorateClass([
1791
1789
  (0, import_decorators4.property)()
1792
1790
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
package/index.js CHANGED
@@ -20,7 +20,7 @@ import { property, query, state } from "lit/decorators.js";
20
20
  import { styleMap } from "lit/directives/style-map.js";
21
21
 
22
22
  // libs/embed-libs/embed/package.json
23
- var version = "7.2.1";
23
+ var version = "7.3.0";
24
24
 
25
25
  // libs/embed-libs/embed/src/lib/helper/embed-error.utils.ts
26
26
  function buildEmbedErrorDetail(errorMsg) {
@@ -1268,22 +1268,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1268
1268
  this.libVersion = version + "-wc-luzmo";
1269
1269
  this.postInitCallQueue = [];
1270
1270
  }
1271
- static {
1272
- // Static styles to set host display to block, else it is not shown at all for some reason.
1273
- this.styles = css2`
1274
- :host {
1275
- display: block;
1276
- width: 100%;
1277
- height: 100%;
1278
- }
1279
-
1280
- luzmo-embed-viz-item {
1281
- width: 100%;
1282
- height: 1000%;
1283
- display: block;
1284
- }
1285
- `;
1286
- }
1287
1271
  createRenderRoot() {
1288
1272
  if (!this.style.display) {
1289
1273
  this.style.display = "block";
@@ -1423,6 +1407,20 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1423
1407
  return html2` `;
1424
1408
  }
1425
1409
  };
1410
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1411
+ LuzmoBaseVizItem.styles = css2`
1412
+ :host {
1413
+ display: block;
1414
+ width: 100%;
1415
+ height: 100%;
1416
+ }
1417
+
1418
+ luzmo-embed-viz-item {
1419
+ width: 100%;
1420
+ height: 1000%;
1421
+ display: block;
1422
+ }
1423
+ `;
1426
1424
  __decorateClass([
1427
1425
  property2()
1428
1426
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -1508,7 +1506,8 @@ var inputMap = {
1508
1506
  availableDatasets: "available-datasets",
1509
1507
  dashboardContext: "dashboard-context",
1510
1508
  dashboardId: "dashboard-id",
1511
- contextIds: "context-ids"
1509
+ contextIds: "context-ids",
1510
+ agentId: "agent-id"
1512
1511
  };
1513
1512
  var embedChatTag = "luzmo-iq-embed-chat";
1514
1513
  var chatComponentTag = "luzmo-iq-chat-component";
@@ -1522,16 +1521,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1522
1521
  this.remoteEntryServer = "http://localhost:4202/";
1523
1522
  this.aydHost = "https://ayd.luzmo.com/";
1524
1523
  }
1525
- static {
1526
- // Static styles to set host display to block, else it is not shown at all for some reason.
1527
- this.styles = css3`
1528
- :host {
1529
- display: block;
1530
- width: 100%;
1531
- height: 100%;
1532
- }
1533
- `;
1534
- }
1535
1524
  createRenderRoot() {
1536
1525
  return this;
1537
1526
  }
@@ -1609,6 +1598,14 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1609
1598
  observer.observe(embedChat, { childList: true, subtree: true });
1610
1599
  }
1611
1600
  };
1601
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1602
+ LuzmoIQEmbedChatComponent.styles = css3`
1603
+ :host {
1604
+ display: block;
1605
+ width: 100%;
1606
+ height: 100%;
1607
+ }
1608
+ `;
1612
1609
  __decorateClass([
1613
1610
  property3()
1614
1611
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -1654,6 +1651,9 @@ __decorateClass([
1654
1651
  __decorateClass([
1655
1652
  property3({ type: Array })
1656
1653
  ], LuzmoIQEmbedChatComponent.prototype, "contextIds", 2);
1654
+ __decorateClass([
1655
+ property3()
1656
+ ], LuzmoIQEmbedChatComponent.prototype, "agentId", 2);
1657
1657
  if (!customElements.get(embedChatTag)) {
1658
1658
  customElements.define(embedChatTag, LuzmoIQEmbedChatComponent);
1659
1659
  }
@@ -1683,16 +1683,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1683
1683
  this.libVersion = version + "-wc-luzmo";
1684
1684
  this.remoteEntryServer = "http://localhost:4202";
1685
1685
  }
1686
- static {
1687
- // Static styles to set host display to block, else it is not shown at all for some reason.
1688
- this.styles = css4`
1689
- :host {
1690
- display: block;
1691
- width: 100%;
1692
- height: 100%;
1693
- }
1694
- `;
1695
- }
1696
1686
  createRenderRoot() {
1697
1687
  return this;
1698
1688
  }
@@ -1743,6 +1733,14 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1743
1733
  return html4` `;
1744
1734
  }
1745
1735
  };
1736
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1737
+ LuzmoIQEmbedAnswerComponent.styles = css4`
1738
+ :host {
1739
+ display: block;
1740
+ width: 100%;
1741
+ height: 100%;
1742
+ }
1743
+ `;
1746
1744
  __decorateClass([
1747
1745
  property4()
1748
1746
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
@@ -5930,7 +5930,7 @@ var o6 = e6(class extends i5 {
5930
5930
  });
5931
5931
 
5932
5932
  // libs/embed-libs/embed/package.json
5933
- var version = "7.2.1";
5933
+ var version = "7.3.0";
5934
5934
 
5935
5935
  // libs/embed-libs/embed/src/lib/helper/embed-error.utils.ts
5936
5936
  function buildEmbedErrorDetail(errorMsg) {
@@ -7173,22 +7173,6 @@ var LuzmoBaseVizItem = class extends i4 {
7173
7173
  this.libVersion = version + "-wc-luzmo";
7174
7174
  this.postInitCallQueue = [];
7175
7175
  }
7176
- static {
7177
- // Static styles to set host display to block, else it is not shown at all for some reason.
7178
- this.styles = i`
7179
- :host {
7180
- display: block;
7181
- width: 100%;
7182
- height: 100%;
7183
- }
7184
-
7185
- luzmo-embed-viz-item {
7186
- width: 100%;
7187
- height: 1000%;
7188
- display: block;
7189
- }
7190
- `;
7191
- }
7192
7176
  createRenderRoot() {
7193
7177
  if (!this.style.display) {
7194
7178
  this.style.display = "block";
@@ -7328,6 +7312,20 @@ var LuzmoBaseVizItem = class extends i4 {
7328
7312
  return b2` `;
7329
7313
  }
7330
7314
  };
7315
+ // Static styles to set host display to block, else it is not shown at all for some reason.
7316
+ LuzmoBaseVizItem.styles = i`
7317
+ :host {
7318
+ display: block;
7319
+ width: 100%;
7320
+ height: 100%;
7321
+ }
7322
+
7323
+ luzmo-embed-viz-item {
7324
+ width: 100%;
7325
+ height: 1000%;
7326
+ display: block;
7327
+ }
7328
+ `;
7331
7329
  __decorateClass([
7332
7330
  n4()
7333
7331
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -7410,7 +7408,8 @@ var inputMap = {
7410
7408
  availableDatasets: "available-datasets",
7411
7409
  dashboardContext: "dashboard-context",
7412
7410
  dashboardId: "dashboard-id",
7413
- contextIds: "context-ids"
7411
+ contextIds: "context-ids",
7412
+ agentId: "agent-id"
7414
7413
  };
7415
7414
  var embedChatTag = "luzmo-iq-embed-chat";
7416
7415
  var chatComponentTag = "luzmo-iq-chat-component";
@@ -7424,16 +7423,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
7424
7423
  this.remoteEntryServer = "http://localhost:4202/";
7425
7424
  this.aydHost = "https://ayd.luzmo.com/";
7426
7425
  }
7427
- static {
7428
- // Static styles to set host display to block, else it is not shown at all for some reason.
7429
- this.styles = i`
7430
- :host {
7431
- display: block;
7432
- width: 100%;
7433
- height: 100%;
7434
- }
7435
- `;
7436
- }
7437
7426
  createRenderRoot() {
7438
7427
  return this;
7439
7428
  }
@@ -7511,6 +7500,14 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
7511
7500
  observer.observe(embedChat, { childList: true, subtree: true });
7512
7501
  }
7513
7502
  };
7503
+ // Static styles to set host display to block, else it is not shown at all for some reason.
7504
+ LuzmoIQEmbedChatComponent.styles = i`
7505
+ :host {
7506
+ display: block;
7507
+ width: 100%;
7508
+ height: 100%;
7509
+ }
7510
+ `;
7514
7511
  __decorateClass([
7515
7512
  n4()
7516
7513
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -7556,6 +7553,9 @@ __decorateClass([
7556
7553
  __decorateClass([
7557
7554
  n4({ type: Array })
7558
7555
  ], LuzmoIQEmbedChatComponent.prototype, "contextIds", 2);
7556
+ __decorateClass([
7557
+ n4()
7558
+ ], LuzmoIQEmbedChatComponent.prototype, "agentId", 2);
7559
7559
  if (!customElements.get(embedChatTag)) {
7560
7560
  customElements.define(embedChatTag, LuzmoIQEmbedChatComponent);
7561
7561
  }
@@ -7582,16 +7582,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
7582
7582
  this.libVersion = version + "-wc-luzmo";
7583
7583
  this.remoteEntryServer = "http://localhost:4202";
7584
7584
  }
7585
- static {
7586
- // Static styles to set host display to block, else it is not shown at all for some reason.
7587
- this.styles = i`
7588
- :host {
7589
- display: block;
7590
- width: 100%;
7591
- height: 100%;
7592
- }
7593
- `;
7594
- }
7595
7585
  createRenderRoot() {
7596
7586
  return this;
7597
7587
  }
@@ -7642,6 +7632,14 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
7642
7632
  return b2` `;
7643
7633
  }
7644
7634
  };
7635
+ // Static styles to set host display to block, else it is not shown at all for some reason.
7636
+ LuzmoIQEmbedAnswerComponent.styles = i`
7637
+ :host {
7638
+ display: block;
7639
+ width: 100%;
7640
+ height: 100%;
7641
+ }
7642
+ `;
7645
7643
  __decorateClass([
7646
7644
  n4()
7647
7645
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "7.2.1",
3
+ "version": "7.3.0-es2021",
4
4
  "dependencies": {
5
5
  "lit": "^3.3.1",
6
- "@luzmo/shared-embed": "6.2.1"
6
+ "@luzmo/shared-embed": "6.3.0"
7
7
  },
8
8
  "keywords": [
9
+ "es2021",
10
+ "safari-compatible",
9
11
  "es6",
10
12
  "web-component",
11
13
  "lit",
@@ -21,5 +23,9 @@
21
23
  ],
22
24
  "module": "./index.js",
23
25
  "types": "./src/index.d.ts",
24
- "license": "SEE LICENSE IN LICENSE"
26
+ "license": "SEE LICENSE IN LICENSE",
27
+ "description": "ES2021 build for Safari < 16.3 compatibility",
28
+ "publishConfig": {
29
+ "tag": "es2021"
30
+ }
25
31
  }
@@ -25,6 +25,7 @@ export declare class LuzmoIQEmbedChatComponent extends LitElement {
25
25
  dashboardContext?: SerializedDashboardContext;
26
26
  dashboardId?: string;
27
27
  contextIds?: string[];
28
+ agentId?: string;
28
29
  chartElement: HTMLElement;
29
30
  static styles: import("lit").CSSResult;
30
31
  protected createRenderRoot(): HTMLElement | DocumentFragment;