@luzmo/embed 6.10.0-es2021 → 6.11.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,6 +2,11 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [6.11.0] - 2026-03-18
6
+
7
+ ### Changed
8
+ - Improved library's loading performance.
9
+
5
10
  ## [6.10.0] - 2026-03-04
6
11
 
7
12
  ### Changed
@@ -11,7 +16,7 @@ All notable changes to this project are documented in this file.
11
16
  ## [6.9.0] - 2026-02-16
12
17
 
13
18
  ### Changed
14
- - Updated dependencies and internal types
19
+ - Updated dependencies and internal types.
15
20
 
16
21
  ## [6.8.0] - 2026-02-03
17
22
 
package/index.cjs CHANGED
@@ -48,6 +48,9 @@ __export(index_exports, {
48
48
  getCachedJSONSchemas: () => getCachedJSONSchemas,
49
49
  getJSONSchemaUrl: () => getJSONSchemaUrl,
50
50
  luzmoRefParserOptions: () => luzmoRefParserOptions,
51
+ preloadDashboard: () => import_shared_embed4.preloadDashboard,
52
+ preloadIQ: () => import_shared_embed4.preloadIQ,
53
+ preloadVizItem: () => import_shared_embed4.preloadVizItem,
51
54
  selectedDataUtils: () => import_shared_embed4.selectedDataUtils
52
55
  });
53
56
  module.exports = __toCommonJS(index_exports);
@@ -62,7 +65,7 @@ var import_decorators = require("lit/decorators.js");
62
65
  var import_style_map = require("lit/directives/style-map.js");
63
66
 
64
67
  // libs/embed-libs/embed/package.json
65
- var version = "6.10.0";
68
+ var version = "6.11.0";
66
69
 
67
70
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
68
71
  var SharedLib = __toESM(require("@luzmo/shared-embed"));
@@ -1122,6 +1125,22 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1122
1125
  this.libVersion = version + "-wc-luzmo";
1123
1126
  this.postInitCallQueue = [];
1124
1127
  }
1128
+ static {
1129
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1130
+ this.styles = import_lit3.css`
1131
+ :host {
1132
+ display: block;
1133
+ width: 100%;
1134
+ height: 100%;
1135
+ }
1136
+
1137
+ luzmo-embed-viz-item {
1138
+ width: 100%;
1139
+ height: 1000%;
1140
+ display: block;
1141
+ }
1142
+ `;
1143
+ }
1125
1144
  createRenderRoot() {
1126
1145
  if (!this.style.display) {
1127
1146
  this.style.display = "block";
@@ -1232,20 +1251,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1232
1251
  return import_lit3.html` `;
1233
1252
  }
1234
1253
  };
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
- `;
1249
1254
  __decorateClass([
1250
1255
  (0, import_decorators2.property)()
1251
1256
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -1339,6 +1344,16 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1339
1344
  this.remoteEntryServer = "http://localhost:4202/";
1340
1345
  this.aydHost = "https://ayd.luzmo.com/";
1341
1346
  }
1347
+ static {
1348
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1349
+ this.styles = import_lit4.css`
1350
+ :host {
1351
+ display: block;
1352
+ width: 100%;
1353
+ height: 100%;
1354
+ }
1355
+ `;
1356
+ }
1342
1357
  createRenderRoot() {
1343
1358
  return this;
1344
1359
  }
@@ -1407,14 +1422,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1407
1422
  observer.observe(embedChat, { childList: true, subtree: true });
1408
1423
  }
1409
1424
  };
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
- `;
1418
1425
  __decorateClass([
1419
1426
  (0, import_decorators3.property)()
1420
1427
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -1480,6 +1487,16 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1480
1487
  this.libVersion = version + "-wc-luzmo";
1481
1488
  this.remoteEntryServer = "http://localhost:4202";
1482
1489
  }
1490
+ static {
1491
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1492
+ this.styles = import_lit5.css`
1493
+ :host {
1494
+ display: block;
1495
+ width: 100%;
1496
+ height: 100%;
1497
+ }
1498
+ `;
1499
+ }
1483
1500
  createRenderRoot() {
1484
1501
  return this;
1485
1502
  }
@@ -1530,14 +1547,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1530
1547
  return import_lit5.html` `;
1531
1548
  }
1532
1549
  };
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
- `;
1541
1550
  __decorateClass([
1542
1551
  (0, import_decorators4.property)()
1543
1552
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
@@ -1644,5 +1653,8 @@ import_lit6.LitElement.disableWarning?.("change-in-update");
1644
1653
  getCachedJSONSchemas,
1645
1654
  getJSONSchemaUrl,
1646
1655
  luzmoRefParserOptions,
1656
+ preloadDashboard,
1657
+ preloadIQ,
1658
+ preloadVizItem,
1647
1659
  selectedDataUtils
1648
1660
  });
package/index.js CHANGED
@@ -10,7 +10,7 @@ var __decorateClass = (decorators, target, key, kind) => {
10
10
  };
11
11
 
12
12
  // libs/embed-libs/embed/src/index.ts
13
- import { selectedDataUtils } from "@luzmo/shared-embed";
13
+ import { selectedDataUtils, preloadDashboard, preloadVizItem, preloadIQ } from "@luzmo/shared-embed";
14
14
  import { LitElement as LitElement5 } from "lit";
15
15
 
16
16
  // libs/embed-libs/embed/src/lib/dashboard/dashboard-base.ts
@@ -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.10.0";
26
+ var version = "6.11.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,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";
@@ -1193,20 +1209,6 @@ var LuzmoBaseVizItem = class extends LitElement2 {
1193
1209
  return html2` `;
1194
1210
  }
1195
1211
  };
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
- `;
1210
1212
  __decorateClass([
1211
1213
  property2()
1212
1214
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -1300,6 +1302,16 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1300
1302
  this.remoteEntryServer = "http://localhost:4202/";
1301
1303
  this.aydHost = "https://ayd.luzmo.com/";
1302
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
+ }
1303
1315
  createRenderRoot() {
1304
1316
  return this;
1305
1317
  }
@@ -1368,14 +1380,6 @@ var LuzmoIQEmbedChatComponent = class extends LitElement3 {
1368
1380
  observer.observe(embedChat, { childList: true, subtree: true });
1369
1381
  }
1370
1382
  };
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
- `;
1379
1383
  __decorateClass([
1380
1384
  property3()
1381
1385
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -1441,6 +1445,16 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1441
1445
  this.libVersion = version + "-wc-luzmo";
1442
1446
  this.remoteEntryServer = "http://localhost:4202";
1443
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
+ }
1444
1458
  createRenderRoot() {
1445
1459
  return this;
1446
1460
  }
@@ -1491,14 +1505,6 @@ var LuzmoIQEmbedAnswerComponent = class extends LitElement4 {
1491
1505
  return html4` `;
1492
1506
  }
1493
1507
  };
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
- `;
1502
1508
  __decorateClass([
1503
1509
  property4()
1504
1510
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
@@ -1604,5 +1610,8 @@ export {
1604
1610
  getCachedJSONSchemas,
1605
1611
  getJSONSchemaUrl,
1606
1612
  luzmoRefParserOptions,
1613
+ preloadDashboard,
1614
+ preloadIQ,
1615
+ preloadVizItem,
1607
1616
  selectedDataUtils
1608
1617
  };
@@ -4063,6 +4063,9 @@ __export(index_exports, {
4063
4063
  getCachedJSONSchemas: () => getCachedJSONSchemas,
4064
4064
  getJSONSchemaUrl: () => getJSONSchemaUrl,
4065
4065
  luzmoRefParserOptions: () => luzmoRefParserOptions,
4066
+ preloadDashboard: () => preloadDashboard,
4067
+ preloadIQ: () => preloadIQ,
4068
+ preloadVizItem: () => preloadVizItem,
4066
4069
  selectedDataUtils: () => selectedDataUtils
4067
4070
  });
4068
4071
  module.exports = __toCommonJS(index_exports);
@@ -5291,6 +5294,27 @@ var federationRuntime = (0, import_runtime.createInstance)({
5291
5294
  });
5292
5295
  var remoteCache = /* @__PURE__ */ new Map();
5293
5296
  var remoteCounter = 0;
5297
+ var preconnectedOrigins = /* @__PURE__ */ new Set();
5298
+ function injectPreconnect(appServer) {
5299
+ if (typeof document === "undefined") {
5300
+ return;
5301
+ }
5302
+ let origin;
5303
+ try {
5304
+ origin = new URL(removeTrailingSlash(appServer)).origin;
5305
+ } catch {
5306
+ return;
5307
+ }
5308
+ if (preconnectedOrigins.has(origin)) {
5309
+ return;
5310
+ }
5311
+ preconnectedOrigins.add(origin);
5312
+ const link = document.createElement("link");
5313
+ link.rel = "preconnect";
5314
+ link.href = origin;
5315
+ link.crossOrigin = "anonymous";
5316
+ (document.head ?? document.documentElement).append(link);
5317
+ }
5294
5318
  function getManifestEntry(appServer, componentName) {
5295
5319
  const baseUrl = removeTrailingSlash(appServer);
5296
5320
  if (appServer.startsWith("http://localhost")) {
@@ -5302,7 +5326,7 @@ function getManifestEntry(appServer, componentName) {
5302
5326
  return `${baseUrl}/dashboard-app/mf-manifest.json`;
5303
5327
  }
5304
5328
  case "IQApp": {
5305
- return `${baseUrl}/iq-components/mf-manifest.json`;
5329
+ return `${baseUrl}/iq-app/mf-manifest.json`;
5306
5330
  }
5307
5331
  }
5308
5332
  }
@@ -5324,6 +5348,7 @@ function getOrCreateRemote(appServer, componentName) {
5324
5348
  return remote;
5325
5349
  }
5326
5350
  function loadLibrary(appServer, componentName = "DashboardApp") {
5351
+ injectPreconnect(appServer);
5327
5352
  const remote = getOrCreateRemote(appServer, componentName);
5328
5353
  if (remote.module) {
5329
5354
  return Promise.resolve(remote.module);
@@ -5351,6 +5376,18 @@ function loadLibrary(appServer, componentName = "DashboardApp") {
5351
5376
  });
5352
5377
  return remote.loadPromise;
5353
5378
  }
5379
+ function preloadDashboard(appServer = "https://app.luzmo.com") {
5380
+ loadLibrary(appServer, "DashboardApp").catch(() => {
5381
+ });
5382
+ }
5383
+ function preloadVizItem(appServer = "https://app.luzmo.com") {
5384
+ loadLibrary(appServer, "VizItemApp").catch(() => {
5385
+ });
5386
+ }
5387
+ function preloadIQ(appServer = "https://app.luzmo.com") {
5388
+ loadLibrary(appServer, "IQApp").catch(() => {
5389
+ });
5390
+ }
5354
5391
 
5355
5392
  // node_modules/@lit/reactive-element/css-tag.js
5356
5393
  var t = globalThis;
@@ -6013,7 +6050,7 @@ var o6 = e6(class extends i5 {
6013
6050
  });
6014
6051
 
6015
6052
  // libs/embed-libs/embed/package.json
6016
- var version = "6.10.0";
6053
+ var version = "6.11.0";
6017
6054
 
6018
6055
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
6019
6056
  var LuzmoDashboardService = class {
@@ -7066,6 +7103,22 @@ var LuzmoBaseVizItem = class extends i4 {
7066
7103
  this.libVersion = version + "-wc-luzmo";
7067
7104
  this.postInitCallQueue = [];
7068
7105
  }
7106
+ static {
7107
+ // Static styles to set host display to block, else it is not shown at all for some reason.
7108
+ this.styles = i`
7109
+ :host {
7110
+ display: block;
7111
+ width: 100%;
7112
+ height: 100%;
7113
+ }
7114
+
7115
+ luzmo-embed-viz-item {
7116
+ width: 100%;
7117
+ height: 1000%;
7118
+ display: block;
7119
+ }
7120
+ `;
7121
+ }
7069
7122
  createRenderRoot() {
7070
7123
  if (!this.style.display) {
7071
7124
  this.style.display = "block";
@@ -7176,20 +7229,6 @@ var LuzmoBaseVizItem = class extends i4 {
7176
7229
  return x` `;
7177
7230
  }
7178
7231
  };
7179
- // Static styles to set host display to block, else it is not shown at all for some reason.
7180
- LuzmoBaseVizItem.styles = i`
7181
- :host {
7182
- display: block;
7183
- width: 100%;
7184
- height: 100%;
7185
- }
7186
-
7187
- luzmo-embed-viz-item {
7188
- width: 100%;
7189
- height: 1000%;
7190
- display: block;
7191
- }
7192
- `;
7193
7232
  __decorateClass([
7194
7233
  n4()
7195
7234
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -7280,6 +7319,16 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
7280
7319
  this.remoteEntryServer = "http://localhost:4202/";
7281
7320
  this.aydHost = "https://ayd.luzmo.com/";
7282
7321
  }
7322
+ static {
7323
+ // Static styles to set host display to block, else it is not shown at all for some reason.
7324
+ this.styles = i`
7325
+ :host {
7326
+ display: block;
7327
+ width: 100%;
7328
+ height: 100%;
7329
+ }
7330
+ `;
7331
+ }
7283
7332
  createRenderRoot() {
7284
7333
  return this;
7285
7334
  }
@@ -7348,14 +7397,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
7348
7397
  observer.observe(embedChat, { childList: true, subtree: true });
7349
7398
  }
7350
7399
  };
7351
- // Static styles to set host display to block, else it is not shown at all for some reason.
7352
- LuzmoIQEmbedChatComponent.styles = i`
7353
- :host {
7354
- display: block;
7355
- width: 100%;
7356
- height: 100%;
7357
- }
7358
- `;
7359
7400
  __decorateClass([
7360
7401
  n4()
7361
7402
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -7418,6 +7459,16 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
7418
7459
  this.libVersion = version + "-wc-luzmo";
7419
7460
  this.remoteEntryServer = "http://localhost:4202";
7420
7461
  }
7462
+ static {
7463
+ // Static styles to set host display to block, else it is not shown at all for some reason.
7464
+ this.styles = i`
7465
+ :host {
7466
+ display: block;
7467
+ width: 100%;
7468
+ height: 100%;
7469
+ }
7470
+ `;
7471
+ }
7421
7472
  createRenderRoot() {
7422
7473
  return this;
7423
7474
  }
@@ -7468,14 +7519,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
7468
7519
  return x` `;
7469
7520
  }
7470
7521
  };
7471
- // Static styles to set host display to block, else it is not shown at all for some reason.
7472
- LuzmoIQEmbedAnswerComponent.styles = i`
7473
- :host {
7474
- display: block;
7475
- width: 100%;
7476
- height: 100%;
7477
- }
7478
- `;
7479
7522
  __decorateClass([
7480
7523
  n4()
7481
7524
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "6.10.0-es2021",
3
+ "version": "6.11.0",
4
4
  "dependencies": {
5
5
  "lit": "^3.3.1",
6
- "@luzmo/shared-embed": "5.9.0"
6
+ "@luzmo/shared-embed": "5.10.0"
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,6 +1,6 @@
1
1
  export type * from '@luzmo/dashboard-contents-types';
2
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
- export { selectedDataUtils } from '@luzmo/shared-embed';
3
+ export { selectedDataUtils, preloadDashboard, preloadVizItem, preloadIQ } from '@luzmo/shared-embed';
4
4
  export * from './lib/dashboard/dashboard-component';
5
5
  export * from './lib/viz-item/viz-item-component';
6
6
  export * from './lib/iq-components/luzmo-iq-chat';