@luzmo/embed 6.13.1 → 6.13.2

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,10 +2,15 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [6.13.2] - 2026-05-25
6
+
7
+ ### Fixed
8
+ - Updated `@luzmo/shared-embed` to `5.12.1`, which reuses the host page's existing Module Federation runtime instead of creating a siloed private instance. Fixes NG0201 / NG0203 DI errors when a Luzmo remote (e.g. iq-app, dashboard-app) is loaded into a host that already has its own MF runtime.
9
+
5
10
  ## [6.13.1] - 2026-05-13
6
11
 
7
12
  ### Fixed
8
- - Properly initialize dashboard webcomponent
13
+ - Properly initialized dashboard webcomponent.
9
14
 
10
15
  ## [6.13.0] - 2026-03-30
11
16
 
package/index.cjs CHANGED
@@ -65,7 +65,7 @@ var import_decorators = require("lit/decorators.js");
65
65
  var import_style_map = require("lit/directives/style-map.js");
66
66
 
67
67
  // libs/embed-libs/embed/package.json
68
- var version = "6.13.1";
68
+ var version = "6.13.2";
69
69
 
70
70
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
71
71
  var SharedLib = __toESM(require("@luzmo/shared-embed"));
@@ -1122,14 +1122,12 @@ if (!customElements.get("luzmo-embed-dashboard")) {
1122
1122
  customElements.define("luzmo-embed-dashboard", LuzmoEmbedDashboard);
1123
1123
  }
1124
1124
 
1125
- // libs/dashboard-contents-types/src/lib/shared/version.ts
1126
- var CONTENTS_VERSION = "0.1.99";
1127
-
1128
1125
  // libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
1126
+ var import_dashboard_contents_types = require("@luzmo/dashboard-contents-types");
1129
1127
  var SharedLib3 = __toESM(require("@luzmo/shared-embed"));
1130
1128
  var import_lit3 = require("lit");
1131
1129
  var import_decorators2 = require("lit/decorators.js");
1132
- var dashboardContentsVersion = CONTENTS_VERSION;
1130
+ var dashboardContentsVersion = import_dashboard_contents_types.CONTENTS_VERSION;
1133
1131
  var vizItemRemote = "VizItemApp";
1134
1132
  var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1135
1133
  constructor() {
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.13.1";
26
+ var version = "6.13.2";
27
27
 
28
28
  // libs/embed-libs/embed/src/lib/helper/event-bus-handler.ts
29
29
  import * as SharedLib from "@luzmo/shared-embed";
@@ -1080,10 +1080,8 @@ if (!customElements.get("luzmo-embed-dashboard")) {
1080
1080
  customElements.define("luzmo-embed-dashboard", LuzmoEmbedDashboard);
1081
1081
  }
1082
1082
 
1083
- // libs/dashboard-contents-types/src/lib/shared/version.ts
1084
- var CONTENTS_VERSION = "0.1.99";
1085
-
1086
1083
  // libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
1084
+ import { CONTENTS_VERSION } from "@luzmo/dashboard-contents-types";
1087
1085
  import * as SharedLib3 from "@luzmo/shared-embed";
1088
1086
  import { css as css2, html as html2, LitElement as LitElement2 } from "lit";
1089
1087
  import { property as property2 } from "lit/decorators.js";
@@ -391,7 +391,7 @@ var createIframeUrl = (dashboardContent) => {
391
391
  searchString.push(`accentColor=${accentColor}`);
392
392
  }
393
393
  if (screenMode && screenMode !== "auto") {
394
- searchString.push(`screenMode=&{screenMode}`);
394
+ searchString.push(`screenMode=${screenMode}`);
395
395
  }
396
396
  if (timezoneId) {
397
397
  searchString.push("timezoneId=" + timezoneId);
@@ -1416,21 +1416,6 @@ function generateSnapshotFromManifest(manifest, options = {}) {
1416
1416
  assets: expose.assets
1417
1417
  }))
1418
1418
  };
1419
- if (manifest.metaData?.prefetchInterface) {
1420
- const prefetchInterface = manifest.metaData.prefetchInterface;
1421
- basicRemoteSnapshot = {
1422
- ...basicRemoteSnapshot,
1423
- prefetchInterface
1424
- };
1425
- }
1426
- if (manifest.metaData?.prefetchEntry) {
1427
- const { path, name, type } = manifest.metaData.prefetchEntry;
1428
- basicRemoteSnapshot = {
1429
- ...basicRemoteSnapshot,
1430
- prefetchEntry: simpleJoinRemoteEntry(path, name),
1431
- prefetchEntryType: type
1432
- };
1433
- }
1434
1419
  if ("publicPath" in manifest.metaData) {
1435
1420
  remoteSnapshot = {
1436
1421
  ...basicRemoteSnapshot,
@@ -2001,8 +1986,8 @@ function setGlobalDefaultVal(target) {
2001
1986
  }
2002
1987
  setGlobalDefaultVal(CurrentGlobal);
2003
1988
  setGlobalDefaultVal(nativeGlobal);
2004
- function setGlobalFederationInstance(FederationInstance) {
2005
- CurrentGlobal.__FEDERATION__.__INSTANCES__.push(FederationInstance);
1989
+ function setGlobalFederationInstance(FederationInstance2) {
1990
+ CurrentGlobal.__FEDERATION__.__INSTANCES__.push(FederationInstance2);
2006
1991
  }
2007
1992
  function getGlobalFederationConstructor() {
2008
1993
  return CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__;
@@ -2010,7 +1995,7 @@ function getGlobalFederationConstructor() {
2010
1995
  function setGlobalFederationConstructor(FederationConstructor, isDebug = isDebugMode()) {
2011
1996
  if (isDebug) {
2012
1997
  CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
2013
- CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "2.3.3";
1998
+ CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "2.4.0";
2014
1999
  }
2015
2000
  }
2016
2001
  function getInfoWithoutType(target, key) {
@@ -2926,7 +2911,6 @@ function defaultPreloadArgs(preloadConfig) {
2926
2911
  resourceCategory: "sync",
2927
2912
  share: true,
2928
2913
  depsRemote: true,
2929
- prefetchInterface: false,
2930
2914
  ...preloadConfig
2931
2915
  };
2932
2916
  }
@@ -4303,7 +4287,7 @@ var ModuleFederation = class {
4303
4287
  beforeInitContainer: new AsyncWaterfallHook("beforeInitContainer"),
4304
4288
  initContainer: new AsyncWaterfallHook("initContainer")
4305
4289
  });
4306
- this.version = "2.3.3";
4290
+ this.version = "2.4.0";
4307
4291
  this.moduleCache = /* @__PURE__ */ new Map();
4308
4292
  this.loaderHook = new PluginSystem({
4309
4293
  getModuleInfo: new SyncHook(),
@@ -4394,7 +4378,8 @@ var ModuleFederation = class {
4394
4378
  ...userOptions,
4395
4379
  plugins,
4396
4380
  remotes,
4397
- shared: allShareInfos
4381
+ shared: allShareInfos,
4382
+ id: userOptionsRes.id || globalOptions.id
4398
4383
  };
4399
4384
  this.hooks.lifecycle.init.emit({
4400
4385
  origin: this,
@@ -4423,17 +4408,31 @@ var ModuleFederation = class {
4423
4408
 
4424
4409
  // node_modules/@module-federation/runtime/dist/index.js
4425
4410
  function createInstance(options) {
4426
- const instance = new (getGlobalFederationConstructor() || ModuleFederation)(options);
4411
+ const instance = new (getGlobalFederationConstructor() || ModuleFederation)({
4412
+ id: `${options.name}@${options.version || Date.now()}`,
4413
+ ...options
4414
+ });
4427
4415
  setGlobalFederationInstance(instance);
4428
4416
  return instance;
4429
4417
  }
4418
+ var FederationInstance = null;
4419
+ function getInstance() {
4420
+ return FederationInstance;
4421
+ }
4430
4422
  setGlobalFederationConstructor(ModuleFederation);
4431
4423
 
4432
4424
  // libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.ts
4433
- var federationRuntime = createInstance({
4434
- name: "luzmo-embed-runtime",
4435
- remotes: []
4436
- });
4425
+ var resolvedFederationRuntime = null;
4426
+ function getFederationRuntime() {
4427
+ if (resolvedFederationRuntime) {
4428
+ return resolvedFederationRuntime;
4429
+ }
4430
+ resolvedFederationRuntime = getInstance() ?? createInstance({
4431
+ name: "luzmo-embed-runtime",
4432
+ remotes: []
4433
+ });
4434
+ return resolvedFederationRuntime;
4435
+ }
4437
4436
  var remoteCache = /* @__PURE__ */ new Map();
4438
4437
  var remoteCounter = 0;
4439
4438
  var preconnectedOrigins = /* @__PURE__ */ new Set();
@@ -4498,8 +4497,9 @@ function loadLibrary(appServer, componentName = "DashboardApp") {
4498
4497
  if (remote.loadPromise) {
4499
4498
  return remote.loadPromise;
4500
4499
  }
4500
+ const runtime = getFederationRuntime();
4501
4501
  if (!remote.registered) {
4502
- federationRuntime.registerRemotes([
4502
+ runtime.registerRemotes([
4503
4503
  {
4504
4504
  name: remote.remoteName,
4505
4505
  entry: remote.entry
@@ -4507,7 +4507,7 @@ function loadLibrary(appServer, componentName = "DashboardApp") {
4507
4507
  ]);
4508
4508
  remote.registered = true;
4509
4509
  }
4510
- remote.loadPromise = federationRuntime.loadRemote(`${remote.remoteName}/${componentName}`).then((module2) => {
4510
+ remote.loadPromise = runtime.loadRemote(`${remote.remoteName}/${componentName}`).then((module2) => {
4511
4511
  if (!module2) {
4512
4512
  throw new Error(`Failed to load "${componentName}" from "${remote.entry}".`);
4513
4513
  }
@@ -5193,7 +5193,7 @@ var o6 = e6(class extends i5 {
5193
5193
  });
5194
5194
 
5195
5195
  // libs/embed-libs/embed/package.json
5196
- var version = "6.13.1";
5196
+ var version = "6.13.2";
5197
5197
 
5198
5198
  // libs/embed-libs/embed/src/lib/luzmo-service.ts
5199
5199
  var LuzmoDashboardService = class {
@@ -6247,7 +6247,7 @@ if (!customElements.get("luzmo-embed-dashboard")) {
6247
6247
  }
6248
6248
 
6249
6249
  // libs/dashboard-contents-types/src/lib/shared/version.ts
6250
- var CONTENTS_VERSION = "0.1.99";
6250
+ var CONTENTS_VERSION = "0.1.100";
6251
6251
 
6252
6252
  // libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
6253
6253
  var dashboardContentsVersion = CONTENTS_VERSION;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@luzmo/embed",
3
- "version": "6.13.1",
3
+ "version": "6.13.2",
4
4
  "dependencies": {
5
5
  "lit": "^3.3.1",
6
- "@luzmo/shared-embed": "5.12.0"
6
+ "@luzmo/shared-embed": "5.12.1"
7
7
  },
8
8
  "keywords": [
9
9
  "es6",
@@ -9,7 +9,7 @@ import { LitElement, PropertyValues } from 'lit';
9
9
  * together with this dashboard contents version are passed to the dashboard app (https://app.luzmo.com/dashboard-app/remoteEntry.js)
10
10
  * and if needed the migration will be applied on the dashboard app level.
11
11
  */
12
- export declare const dashboardContentsVersion = "0.1.99";
12
+ export declare const dashboardContentsVersion = "0.1.100";
13
13
  type FunctionCall = [(...args: any) => any, any[]];
14
14
  interface LuzmoVizItemComponentInterface extends HTMLElement {
15
15
  options?: VizItemOptions;