@luzmo/embed 6.7.3-es2021 → 6.7.3

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,16 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [6.7.3] - 2026-01-22
6
+
7
+ ### Added
8
+ - Added the `authorizationExpired` event on `<luzmo-embed-viz-item>` to notify when the authorization token has expired and re-authentication is required.
9
+
10
+ ## [6.7.2] - 2025-12-17
11
+
12
+ ### Changed
13
+ - Remove extra NPM dependencies.
14
+
5
15
  ## [6.7.1] - 2025-11-12
6
16
 
7
17
  ### Changed
package/index.cjs CHANGED
@@ -62,7 +62,7 @@ var import_decorators = require("lit/decorators.js");
62
62
  var import_style_map = require("lit/directives/style-map.js");
63
63
 
64
64
  // libs/embed-libs/embed/package.json
65
- var version = "6.7.1";
65
+ var version = "6.7.3";
66
66
 
67
67
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
68
68
  var SharedLib = __toESM(require("@luzmo/shared-embed"));
@@ -1122,6 +1122,22 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1122
1122
  this.libVersion = version + "-wc-luzmo";
1123
1123
  this.postInitCallQueue = [];
1124
1124
  }
1125
+ static {
1126
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1127
+ this.styles = import_lit3.css`
1128
+ :host {
1129
+ display: block;
1130
+ width: 100%;
1131
+ height: 100%;
1132
+ }
1133
+
1134
+ luzmo-embed-viz-item {
1135
+ width: 100%;
1136
+ height: 1000%;
1137
+ display: block;
1138
+ }
1139
+ `;
1140
+ }
1125
1141
  createRenderRoot() {
1126
1142
  if (!this.style.display) {
1127
1143
  this.style.display = "block";
@@ -1195,6 +1211,7 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1195
1211
  this.chartElement.addEventListener("changedFilters", (payload) => this.dispatchEvent(new CustomEvent("changedFilters", payload)));
1196
1212
  this.chartElement.addEventListener("exported", (payload) => this.dispatchEvent(new CustomEvent("exported", payload)));
1197
1213
  this.chartElement.addEventListener("customEvent", (payload) => this.dispatchEvent(new CustomEvent("customEvent", payload)));
1214
+ this.chartElement.addEventListener("authorizationExpired", (payload) => this.dispatchEvent(new CustomEvent("authorizationExpired", payload)));
1198
1215
  this.updateVizItemProperties();
1199
1216
  this.renderRoot.append(this.chartElement);
1200
1217
  }
@@ -1231,20 +1248,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1231
1248
  return import_lit3.html` `;
1232
1249
  }
1233
1250
  };
1234
- // Static styles to set host display to block, else it is not shown at all for some reason.
1235
- LuzmoBaseVizItem.styles = import_lit3.css`
1236
- :host {
1237
- display: block;
1238
- width: 100%;
1239
- height: 100%;
1240
- }
1241
-
1242
- luzmo-embed-viz-item {
1243
- width: 100%;
1244
- height: 1000%;
1245
- display: block;
1246
- }
1247
- `;
1248
1251
  __decorateClass([
1249
1252
  (0, import_decorators2.property)()
1250
1253
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -1338,6 +1341,16 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1338
1341
  this.remoteEntryServer = "http://localhost:4202/";
1339
1342
  this.aydHost = "https://ayd.luzmo.com/";
1340
1343
  }
1344
+ static {
1345
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1346
+ this.styles = import_lit4.css`
1347
+ :host {
1348
+ display: block;
1349
+ width: 100%;
1350
+ height: 100%;
1351
+ }
1352
+ `;
1353
+ }
1341
1354
  createRenderRoot() {
1342
1355
  return this;
1343
1356
  }
@@ -1406,14 +1419,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1406
1419
  observer.observe(embedChat, { childList: true, subtree: true });
1407
1420
  }
1408
1421
  };
1409
- // Static styles to set host display to block, else it is not shown at all for some reason.
1410
- LuzmoIQEmbedChatComponent.styles = import_lit4.css`
1411
- :host {
1412
- display: block;
1413
- width: 100%;
1414
- height: 100%;
1415
- }
1416
- `;
1417
1422
  __decorateClass([
1418
1423
  (0, import_decorators3.property)()
1419
1424
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -1479,6 +1484,16 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1479
1484
  this.libVersion = version + "-wc-luzmo";
1480
1485
  this.remoteEntryServer = "http://localhost:4202";
1481
1486
  }
1487
+ static {
1488
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1489
+ this.styles = import_lit5.css`
1490
+ :host {
1491
+ display: block;
1492
+ width: 100%;
1493
+ height: 100%;
1494
+ }
1495
+ `;
1496
+ }
1482
1497
  createRenderRoot() {
1483
1498
  return this;
1484
1499
  }
@@ -1529,14 +1544,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1529
1544
  return import_lit5.html` `;
1530
1545
  }
1531
1546
  };
1532
- // Static styles to set host display to block, else it is not shown at all for some reason.
1533
- LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
1534
- :host {
1535
- display: block;
1536
- width: 100%;
1537
- height: 100%;
1538
- }
1539
- `;
1540
1547
  __decorateClass([
1541
1548
  (0, import_decorators4.property)()
1542
1549
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
package/index.js CHANGED
@@ -23,7 +23,7 @@ import { property, query, state } from "lit/decorators.js";
23
23
  import { styleMap } from "lit/directives/style-map.js";
24
24
 
25
25
  // libs/embed-libs/embed/package.json
26
- var version = "6.7.1";
26
+ var version = "6.7.3";
27
27
 
28
28
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
29
29
  import * as SharedLib from "@luzmo/shared-embed";
@@ -1083,6 +1083,22 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1083
1083
  this.libVersion = version + "-wc-luzmo";
1084
1084
  this.postInitCallQueue = [];
1085
1085
  }
1086
+ static {
1087
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1088
+ this.styles = css2`
1089
+ :host {
1090
+ display: block;
1091
+ width: 100%;
1092
+ height: 100%;
1093
+ }
1094
+
1095
+ luzmo-embed-viz-item {
1096
+ width: 100%;
1097
+ height: 1000%;
1098
+ display: block;
1099
+ }
1100
+ `;
1101
+ }
1086
1102
  createRenderRoot() {
1087
1103
  if (!this.style.display) {
1088
1104
  this.style.display = "block";
@@ -1156,6 +1172,7 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1156
1172
  this.chartElement.addEventListener("changedFilters", (payload) => this.dispatchEvent(new CustomEvent("changedFilters", payload)));
1157
1173
  this.chartElement.addEventListener("exported", (payload) => this.dispatchEvent(new CustomEvent("exported", payload)));
1158
1174
  this.chartElement.addEventListener("customEvent", (payload) => this.dispatchEvent(new CustomEvent("customEvent", payload)));
1175
+ this.chartElement.addEventListener("authorizationExpired", (payload) => this.dispatchEvent(new CustomEvent("authorizationExpired", payload)));
1159
1176
  this.updateVizItemProperties();
1160
1177
  this.renderRoot.append(this.chartElement);
1161
1178
  }
@@ -1192,20 +1209,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1192
1209
  return html2` `;
1193
1210
  }
1194
1211
  };
1195
- // Static styles to set host display to block, else it is not shown at all for some reason.
1196
- LuzmoBaseVizItem.styles = css2`
1197
- :host {
1198
- display: block;
1199
- width: 100%;
1200
- height: 100%;
1201
- }
1202
-
1203
- luzmo-embed-viz-item {
1204
- width: 100%;
1205
- height: 1000%;
1206
- display: block;
1207
- }
1208
- `;
1209
1212
  __decorateClass([
1210
1213
  property2()
1211
1214
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -1299,6 +1302,16 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1299
1302
  this.remoteEntryServer = "http://localhost:4202/";
1300
1303
  this.aydHost = "https://ayd.luzmo.com/";
1301
1304
  }
1305
+ static {
1306
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1307
+ this.styles = css3`
1308
+ :host {
1309
+ display: block;
1310
+ width: 100%;
1311
+ height: 100%;
1312
+ }
1313
+ `;
1314
+ }
1302
1315
  createRenderRoot() {
1303
1316
  return this;
1304
1317
  }
@@ -1367,14 +1380,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1367
1380
  observer.observe(embedChat, { childList: true, subtree: true });
1368
1381
  }
1369
1382
  };
1370
- // Static styles to set host display to block, else it is not shown at all for some reason.
1371
- LuzmoIQEmbedChatComponent.styles = css3`
1372
- :host {
1373
- display: block;
1374
- width: 100%;
1375
- height: 100%;
1376
- }
1377
- `;
1378
1383
  __decorateClass([
1379
1384
  property3()
1380
1385
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -1440,6 +1445,16 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1440
1445
  this.libVersion = version + "-wc-luzmo";
1441
1446
  this.remoteEntryServer = "http://localhost:4202";
1442
1447
  }
1448
+ static {
1449
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1450
+ this.styles = css4`
1451
+ :host {
1452
+ display: block;
1453
+ width: 100%;
1454
+ height: 100%;
1455
+ }
1456
+ `;
1457
+ }
1443
1458
  createRenderRoot() {
1444
1459
  return this;
1445
1460
  }
@@ -1490,14 +1505,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1490
1505
  return html4` `;
1491
1506
  }
1492
1507
  };
1493
- // Static styles to set host display to block, else it is not shown at all for some reason.
1494
- LuzmoIQEmbedAnswerComponent.styles = css4`
1495
- :host {
1496
- display: block;
1497
- width: 100%;
1498
- height: 100%;
1499
- }
1500
- `;
1501
1508
  __decorateClass([
1502
1509
  property4()
1503
1510
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
@@ -2013,7 +2013,7 @@ var o6 = e6(class extends i5 {
2013
2013
  });
2014
2014
 
2015
2015
  // libs/embed-libs/embed/package.json
2016
- var version = "6.7.1";
2016
+ var version = "6.7.3";
2017
2017
 
2018
2018
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
2019
2019
  var LuzmoDashboardService = class {
@@ -3066,6 +3066,22 @@ var LuzmoBaseVizItem = class extends i4 {
3066
3066
  this.libVersion = version + "-wc-luzmo";
3067
3067
  this.postInitCallQueue = [];
3068
3068
  }
3069
+ static {
3070
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3071
+ this.styles = i`
3072
+ :host {
3073
+ display: block;
3074
+ width: 100%;
3075
+ height: 100%;
3076
+ }
3077
+
3078
+ luzmo-embed-viz-item {
3079
+ width: 100%;
3080
+ height: 1000%;
3081
+ display: block;
3082
+ }
3083
+ `;
3084
+ }
3069
3085
  createRenderRoot() {
3070
3086
  if (!this.style.display) {
3071
3087
  this.style.display = "block";
@@ -3139,6 +3155,7 @@ var LuzmoBaseVizItem = class extends i4 {
3139
3155
  this.chartElement.addEventListener("changedFilters", (payload) => this.dispatchEvent(new CustomEvent("changedFilters", payload)));
3140
3156
  this.chartElement.addEventListener("exported", (payload) => this.dispatchEvent(new CustomEvent("exported", payload)));
3141
3157
  this.chartElement.addEventListener("customEvent", (payload) => this.dispatchEvent(new CustomEvent("customEvent", payload)));
3158
+ this.chartElement.addEventListener("authorizationExpired", (payload) => this.dispatchEvent(new CustomEvent("authorizationExpired", payload)));
3142
3159
  this.updateVizItemProperties();
3143
3160
  this.renderRoot.append(this.chartElement);
3144
3161
  }
@@ -3175,20 +3192,6 @@ var LuzmoBaseVizItem = class extends i4 {
3175
3192
  return x` `;
3176
3193
  }
3177
3194
  };
3178
- // Static styles to set host display to block, else it is not shown at all for some reason.
3179
- LuzmoBaseVizItem.styles = i`
3180
- :host {
3181
- display: block;
3182
- width: 100%;
3183
- height: 100%;
3184
- }
3185
-
3186
- luzmo-embed-viz-item {
3187
- width: 100%;
3188
- height: 1000%;
3189
- display: block;
3190
- }
3191
- `;
3192
3195
  __decorateClass([
3193
3196
  n4()
3194
3197
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -3279,6 +3282,16 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
3279
3282
  this.remoteEntryServer = "http://localhost:4202/";
3280
3283
  this.aydHost = "https://ayd.luzmo.com/";
3281
3284
  }
3285
+ static {
3286
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3287
+ this.styles = i`
3288
+ :host {
3289
+ display: block;
3290
+ width: 100%;
3291
+ height: 100%;
3292
+ }
3293
+ `;
3294
+ }
3282
3295
  createRenderRoot() {
3283
3296
  return this;
3284
3297
  }
@@ -3347,14 +3360,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
3347
3360
  observer.observe(embedChat, { childList: true, subtree: true });
3348
3361
  }
3349
3362
  };
3350
- // Static styles to set host display to block, else it is not shown at all for some reason.
3351
- LuzmoIQEmbedChatComponent.styles = i`
3352
- :host {
3353
- display: block;
3354
- width: 100%;
3355
- height: 100%;
3356
- }
3357
- `;
3358
3363
  __decorateClass([
3359
3364
  n4()
3360
3365
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -3417,6 +3422,16 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
3417
3422
  this.libVersion = version + "-wc-luzmo";
3418
3423
  this.remoteEntryServer = "http://localhost:4202";
3419
3424
  }
3425
+ static {
3426
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3427
+ this.styles = i`
3428
+ :host {
3429
+ display: block;
3430
+ width: 100%;
3431
+ height: 100%;
3432
+ }
3433
+ `;
3434
+ }
3420
3435
  createRenderRoot() {
3421
3436
  return this;
3422
3437
  }
@@ -3467,14 +3482,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
3467
3482
  return x` `;
3468
3483
  }
3469
3484
  };
3470
- // Static styles to set host display to block, else it is not shown at all for some reason.
3471
- LuzmoIQEmbedAnswerComponent.styles = i`
3472
- :host {
3473
- display: block;
3474
- width: 100%;
3475
- height: 100%;
3476
- }
3477
- `;
3478
3485
  __decorateClass([
3479
3486
  n4()
3480
3487
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "6.7.3-es2021",
3
+ "version": "6.7.3",
4
4
  "dependencies": {
5
- "lit": "3.3.1",
6
- "@luzmo/shared-embed": "5.6.1"
5
+ "lit": "^3.3.1",
6
+ "@luzmo/shared-embed": "5.6.3"
7
7
  },
8
8
  "keywords": [
9
- "es2021",
10
- "safari-compatible",
11
9
  "es6",
12
10
  "web-component",
13
11
  "lit",
@@ -23,9 +21,5 @@
23
21
  ],
24
22
  "module": "./index.js",
25
23
  "types": "./src/index.d.ts",
26
- "license": "SEE LICENSE IN LICENSE",
27
- "description": "ES2021 build for Safari < 16.3 compatibility",
28
- "publishConfig": {
29
- "tag": "es2021"
30
- }
24
+ "license": "SEE LICENSE IN LICENSE"
31
25
  }
package/src/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export type * from '@luzmo/dashboard-contents-types';
2
- export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, SelectedDataInput, ExportType, DashboardExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, DashboardEditMode, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent } from '@luzmo/shared-embed';
2
+ export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, SelectedDataInput, ExportType, DashboardExportType, ItemData, ExportDashboard, AccessibleDashboard, SetEditMode, SetSelectedData, DashboardEditMode, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent, VizItemPostMessageAuthorizationExpiredEvent } from '@luzmo/shared-embed';
3
3
  export { selectedDataUtils } from '@luzmo/shared-embed';
4
4
  export * from './lib/dashboard/dashboard-component';
5
5
  export * from './lib/viz-item/viz-item-component';