@luzmo/embed 6.7.3 → 6.8.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,12 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [6.8.0] - 2026-02-03
6
+
7
+ ### Changed
8
+ - <luzmo-viz-item>: loosened type of `VizItemType` and `SlotName` to allow custom string values (for Custom Chart embedding support), while preserving autocomplete for known literals.
9
+ - <luzmo-viz-item>: updated the type of the `slots` input from `VizItemSlots` to `VizItemSlot[]` to make the slots array shape explicit.
10
+
5
11
  ## [6.7.3] - 2026-01-22
6
12
 
7
13
  ### Added
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.3";
65
+ var version = "6.8.0";
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,22 +1122,6 @@ 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
- }
1141
1125
  createRenderRoot() {
1142
1126
  if (!this.style.display) {
1143
1127
  this.style.display = "block";
@@ -1248,6 +1232,20 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1248
1232
  return import_lit3.html` `;
1249
1233
  }
1250
1234
  };
1235
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1236
+ LuzmoBaseVizItem.styles = import_lit3.css`
1237
+ :host {
1238
+ display: block;
1239
+ width: 100%;
1240
+ height: 100%;
1241
+ }
1242
+
1243
+ luzmo-embed-viz-item {
1244
+ width: 100%;
1245
+ height: 1000%;
1246
+ display: block;
1247
+ }
1248
+ `;
1251
1249
  __decorateClass([
1252
1250
  (0, import_decorators2.property)()
1253
1251
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -1341,16 +1339,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1341
1339
  this.remoteEntryServer = "http://localhost:4202/";
1342
1340
  this.aydHost = "https://ayd.luzmo.com/";
1343
1341
  }
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
- }
1354
1342
  createRenderRoot() {
1355
1343
  return this;
1356
1344
  }
@@ -1419,6 +1407,14 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1419
1407
  observer.observe(embedChat, { childList: true, subtree: true });
1420
1408
  }
1421
1409
  };
1410
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1411
+ LuzmoIQEmbedChatComponent.styles = import_lit4.css`
1412
+ :host {
1413
+ display: block;
1414
+ width: 100%;
1415
+ height: 100%;
1416
+ }
1417
+ `;
1422
1418
  __decorateClass([
1423
1419
  (0, import_decorators3.property)()
1424
1420
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -1484,16 +1480,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1484
1480
  this.libVersion = version + "-wc-luzmo";
1485
1481
  this.remoteEntryServer = "http://localhost:4202";
1486
1482
  }
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
- }
1497
1483
  createRenderRoot() {
1498
1484
  return this;
1499
1485
  }
@@ -1544,6 +1530,14 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1544
1530
  return import_lit5.html` `;
1545
1531
  }
1546
1532
  };
1533
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1534
+ LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
1535
+ :host {
1536
+ display: block;
1537
+ width: 100%;
1538
+ height: 100%;
1539
+ }
1540
+ `;
1547
1541
  __decorateClass([
1548
1542
  (0, import_decorators4.property)()
1549
1543
  ], 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.3";
26
+ var version = "6.8.0";
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,22 +1083,6 @@ 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
- }
1102
1086
  createRenderRoot() {
1103
1087
  if (!this.style.display) {
1104
1088
  this.style.display = "block";
@@ -1209,6 +1193,20 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1209
1193
  return html2` `;
1210
1194
  }
1211
1195
  };
1196
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1197
+ LuzmoBaseVizItem.styles = css2`
1198
+ :host {
1199
+ display: block;
1200
+ width: 100%;
1201
+ height: 100%;
1202
+ }
1203
+
1204
+ luzmo-embed-viz-item {
1205
+ width: 100%;
1206
+ height: 1000%;
1207
+ display: block;
1208
+ }
1209
+ `;
1212
1210
  __decorateClass([
1213
1211
  property2()
1214
1212
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -1302,16 +1300,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1302
1300
  this.remoteEntryServer = "http://localhost:4202/";
1303
1301
  this.aydHost = "https://ayd.luzmo.com/";
1304
1302
  }
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
- }
1315
1303
  createRenderRoot() {
1316
1304
  return this;
1317
1305
  }
@@ -1380,6 +1368,14 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1380
1368
  observer.observe(embedChat, { childList: true, subtree: true });
1381
1369
  }
1382
1370
  };
1371
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1372
+ LuzmoIQEmbedChatComponent.styles = css3`
1373
+ :host {
1374
+ display: block;
1375
+ width: 100%;
1376
+ height: 100%;
1377
+ }
1378
+ `;
1383
1379
  __decorateClass([
1384
1380
  property3()
1385
1381
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -1445,16 +1441,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1445
1441
  this.libVersion = version + "-wc-luzmo";
1446
1442
  this.remoteEntryServer = "http://localhost:4202";
1447
1443
  }
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
- }
1458
1444
  createRenderRoot() {
1459
1445
  return this;
1460
1446
  }
@@ -1505,6 +1491,14 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1505
1491
  return html4` `;
1506
1492
  }
1507
1493
  };
1494
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1495
+ LuzmoIQEmbedAnswerComponent.styles = css4`
1496
+ :host {
1497
+ display: block;
1498
+ width: 100%;
1499
+ height: 100%;
1500
+ }
1501
+ `;
1508
1502
  __decorateClass([
1509
1503
  property4()
1510
1504
  ], 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.3";
2016
+ var version = "6.8.0";
2017
2017
 
2018
2018
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
2019
2019
  var LuzmoDashboardService = class {
@@ -3066,22 +3066,6 @@ 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
- }
3085
3069
  createRenderRoot() {
3086
3070
  if (!this.style.display) {
3087
3071
  this.style.display = "block";
@@ -3192,6 +3176,20 @@ var LuzmoBaseVizItem = class extends i4 {
3192
3176
  return x` `;
3193
3177
  }
3194
3178
  };
3179
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3180
+ LuzmoBaseVizItem.styles = i`
3181
+ :host {
3182
+ display: block;
3183
+ width: 100%;
3184
+ height: 100%;
3185
+ }
3186
+
3187
+ luzmo-embed-viz-item {
3188
+ width: 100%;
3189
+ height: 1000%;
3190
+ display: block;
3191
+ }
3192
+ `;
3195
3193
  __decorateClass([
3196
3194
  n4()
3197
3195
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -3282,16 +3280,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
3282
3280
  this.remoteEntryServer = "http://localhost:4202/";
3283
3281
  this.aydHost = "https://ayd.luzmo.com/";
3284
3282
  }
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
- }
3295
3283
  createRenderRoot() {
3296
3284
  return this;
3297
3285
  }
@@ -3360,6 +3348,14 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
3360
3348
  observer.observe(embedChat, { childList: true, subtree: true });
3361
3349
  }
3362
3350
  };
3351
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3352
+ LuzmoIQEmbedChatComponent.styles = i`
3353
+ :host {
3354
+ display: block;
3355
+ width: 100%;
3356
+ height: 100%;
3357
+ }
3358
+ `;
3363
3359
  __decorateClass([
3364
3360
  n4()
3365
3361
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -3422,16 +3418,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
3422
3418
  this.libVersion = version + "-wc-luzmo";
3423
3419
  this.remoteEntryServer = "http://localhost:4202";
3424
3420
  }
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
- }
3435
3421
  createRenderRoot() {
3436
3422
  return this;
3437
3423
  }
@@ -3482,6 +3468,14 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
3482
3468
  return x` `;
3483
3469
  }
3484
3470
  };
3471
+ // Static styles to set host display to block, else it is not shown at all for some reason.
3472
+ LuzmoIQEmbedAnswerComponent.styles = i`
3473
+ :host {
3474
+ display: block;
3475
+ width: 100%;
3476
+ height: 100%;
3477
+ }
3478
+ `;
3485
3479
  __decorateClass([
3486
3480
  n4()
3487
3481
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "6.7.3",
3
+ "version": "6.8.0-es2021",
4
4
  "dependencies": {
5
5
  "lit": "^3.3.1",
6
- "@luzmo/shared-embed": "5.6.3"
6
+ "@luzmo/shared-embed": "5.7.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
  }
@@ -1,4 +1,4 @@
1
- import { VizItemExportType, FilterGroup, VizItemOptions, VizItemSlots, VizItemType } from '@luzmo/dashboard-contents-types';
1
+ import { VizItemExportType, FilterGroup, VizItemOptions, VizItemSlot, VizItemType } from '@luzmo/dashboard-contents-types';
2
2
  import * as SharedLib from '@luzmo/shared-embed';
3
3
  import { LitElement, PropertyValues } from 'lit';
4
4
  /**
@@ -16,7 +16,7 @@ interface LuzmoVizItemComponentInterface extends HTMLElement {
16
16
  type?: VizItemType;
17
17
  appServer?: string;
18
18
  apiHost?: string;
19
- slots?: VizItemSlots;
19
+ slots?: VizItemSlot[];
20
20
  canFilter?: string[] | 'all';
21
21
  filters?: FilterGroup[];
22
22
  contextId?: string;
@@ -35,7 +35,7 @@ export type { LuzmoVizItemComponentInterface };
35
35
  export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItemComponentInterface {
36
36
  appServer?: string;
37
37
  apiHost?: string;
38
- slots?: VizItemSlots;
38
+ slots?: VizItemSlot[];
39
39
  options?: VizItemOptions;
40
40
  type?: VizItemType;
41
41
  authKey?: string;