@luzmo/embed 5.1.5 → 5.1.6
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 +4 -0
- package/MIGRATIONS.md +6 -0
- package/index.cjs +16 -21
- package/index.js +16 -20
- package/lib/dashboard-component/dashboard-component.d.ts +2 -10
- package/luzmo-embed.min.js +16 -20
- package/package.json +1 -1
- package/index.libs.cjs +0 -1078
- package/index.libs.d.ts +0 -1
- package/index.libs.js +0 -1058
- package/lib/dashboard-component/dashboard-web-component.d.ts +0 -3
- package/luzmo-embed.libs.js +0 -3062
- package/src/index.d.ts +0 -2
- package/src/lib/dashboard-component/dashboard-base.d.ts +0 -98
- package/src/lib/dashboard-component/dashboard-component.d.ts +0 -16
- package/src/lib/dashboard-component/dashboard-styles.d.ts +0 -1
- package/src/lib/helper/event-bus-handler.d.ts +0 -1
- package/src/lib/luzmo-service.d.ts +0 -6
package/CHANGELOG.md
CHANGED
package/MIGRATIONS.md
CHANGED
package/index.cjs
CHANGED
|
@@ -39,7 +39,6 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
39
39
|
// libs/embed-libs/embed/src/index.ts
|
|
40
40
|
var src_exports = {};
|
|
41
41
|
__export(src_exports, {
|
|
42
|
-
LuzmoDashboard: () => LuzmoDashboard2,
|
|
43
42
|
LuzmoEmbedDashboard: () => LuzmoEmbedDashboard
|
|
44
43
|
});
|
|
45
44
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -55,7 +54,7 @@ var import_style_map = require("lit/directives/style-map.js");
|
|
|
55
54
|
var import_shared_embed = require("@luzmo/shared-embed");
|
|
56
55
|
|
|
57
56
|
// libs/embed-libs/embed/package.json
|
|
58
|
-
var version = "5.1.
|
|
57
|
+
var version = "5.1.6";
|
|
59
58
|
|
|
60
59
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
61
60
|
var LuzmoService = class {
|
|
@@ -100,7 +99,7 @@ var _setEventHandler = () => {
|
|
|
100
99
|
}
|
|
101
100
|
dashboardComponent.iframeLoaded = true;
|
|
102
101
|
dashboardComponent._displayError();
|
|
103
|
-
console.error("Dashboard error: ", event.data.errorMsg);
|
|
102
|
+
console.error("Dashboard error: ", event.data.errorMsg ?? event.data.error?.msg);
|
|
104
103
|
break;
|
|
105
104
|
}
|
|
106
105
|
case "data": {
|
|
@@ -465,6 +464,8 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
465
464
|
initComponent() {
|
|
466
465
|
this.params = this._setOptions();
|
|
467
466
|
if (this.getIsViewMode()) {
|
|
467
|
+
this._setupLoader();
|
|
468
|
+
this._loaderStyles();
|
|
468
469
|
this.loadLibrary(this.params.appServer).then(async () => {
|
|
469
470
|
this.isLibraryLoaded = true;
|
|
470
471
|
await this.updateComplete;
|
|
@@ -505,18 +506,18 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
|
|
|
505
506
|
if (!["authKey", "authToken", "apiHost", "itemDimensions"].includes(key) && this.params[key]) {
|
|
506
507
|
this.dashboardReference.setAttribute(this.attributesMap[key], this.params[key]);
|
|
507
508
|
}
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
509
|
+
}
|
|
510
|
+
if (this.params.itemDimensions) {
|
|
511
|
+
this.dashboardReference.setAttribute("item-dimensions", JSON.stringify(this.params.itemDimensions));
|
|
512
|
+
}
|
|
513
|
+
if (this.params.apiHost) {
|
|
514
|
+
this.dashboardReference.setAttribute("api-host", SharedLib2.removeTrailingSlash(this.params.apiHost));
|
|
515
|
+
}
|
|
516
|
+
if (this.params.key) {
|
|
517
|
+
this.dashboardReference.setAttribute("auth-key", this.params.key);
|
|
518
|
+
}
|
|
519
|
+
if (this.params.token) {
|
|
520
|
+
this.dashboardReference.setAttribute("auth-token", this.params.token);
|
|
520
521
|
}
|
|
521
522
|
}
|
|
522
523
|
}
|
|
@@ -1068,11 +1069,6 @@ __decorateClass([
|
|
|
1068
1069
|
], LuzmoDashboard.prototype, "isInitCalled", 2);
|
|
1069
1070
|
|
|
1070
1071
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
|
|
1071
|
-
var LuzmoDashboard2 = class extends LuzmoDashboard {
|
|
1072
|
-
};
|
|
1073
|
-
LuzmoDashboard2 = __decorateClass([
|
|
1074
|
-
(0, import_decorators2.customElement)("luzmo-dashboard")
|
|
1075
|
-
], LuzmoDashboard2);
|
|
1076
1072
|
var LuzmoEmbedDashboard = class extends LuzmoDashboard {
|
|
1077
1073
|
};
|
|
1078
1074
|
LuzmoEmbedDashboard = __decorateClass([
|
|
@@ -1080,6 +1076,5 @@ LuzmoEmbedDashboard = __decorateClass([
|
|
|
1080
1076
|
], LuzmoEmbedDashboard);
|
|
1081
1077
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1082
1078
|
0 && (module.exports = {
|
|
1083
|
-
LuzmoDashboard,
|
|
1084
1079
|
LuzmoEmbedDashboard
|
|
1085
1080
|
});
|
package/index.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "@luzmo/shared-embed";
|
|
38
38
|
|
|
39
39
|
// libs/embed-libs/embed/package.json
|
|
40
|
-
var version = "5.1.
|
|
40
|
+
var version = "5.1.6";
|
|
41
41
|
|
|
42
42
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
43
43
|
var LuzmoService = class {
|
|
@@ -82,7 +82,7 @@ var _setEventHandler = () => {
|
|
|
82
82
|
}
|
|
83
83
|
dashboardComponent.iframeLoaded = true;
|
|
84
84
|
dashboardComponent._displayError();
|
|
85
|
-
console.error("Dashboard error: ", event.data.errorMsg);
|
|
85
|
+
console.error("Dashboard error: ", event.data.errorMsg ?? event.data.error?.msg);
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
case "data": {
|
|
@@ -447,6 +447,8 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
447
447
|
initComponent() {
|
|
448
448
|
this.params = this._setOptions();
|
|
449
449
|
if (this.getIsViewMode()) {
|
|
450
|
+
this._setupLoader();
|
|
451
|
+
this._loaderStyles();
|
|
450
452
|
this.loadLibrary(this.params.appServer).then(async () => {
|
|
451
453
|
this.isLibraryLoaded = true;
|
|
452
454
|
await this.updateComplete;
|
|
@@ -487,18 +489,18 @@ var LuzmoDashboard = class extends LitElement {
|
|
|
487
489
|
if (!["authKey", "authToken", "apiHost", "itemDimensions"].includes(key) && this.params[key]) {
|
|
488
490
|
this.dashboardReference.setAttribute(this.attributesMap[key], this.params[key]);
|
|
489
491
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
492
|
+
}
|
|
493
|
+
if (this.params.itemDimensions) {
|
|
494
|
+
this.dashboardReference.setAttribute("item-dimensions", JSON.stringify(this.params.itemDimensions));
|
|
495
|
+
}
|
|
496
|
+
if (this.params.apiHost) {
|
|
497
|
+
this.dashboardReference.setAttribute("api-host", SharedLib2.removeTrailingSlash(this.params.apiHost));
|
|
498
|
+
}
|
|
499
|
+
if (this.params.key) {
|
|
500
|
+
this.dashboardReference.setAttribute("auth-key", this.params.key);
|
|
501
|
+
}
|
|
502
|
+
if (this.params.token) {
|
|
503
|
+
this.dashboardReference.setAttribute("auth-token", this.params.token);
|
|
502
504
|
}
|
|
503
505
|
}
|
|
504
506
|
}
|
|
@@ -1050,17 +1052,11 @@ __decorateClass([
|
|
|
1050
1052
|
], LuzmoDashboard.prototype, "isInitCalled", 2);
|
|
1051
1053
|
|
|
1052
1054
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
|
|
1053
|
-
var LuzmoDashboard2 = class extends LuzmoDashboard {
|
|
1054
|
-
};
|
|
1055
|
-
LuzmoDashboard2 = __decorateClass([
|
|
1056
|
-
customElement("luzmo-dashboard")
|
|
1057
|
-
], LuzmoDashboard2);
|
|
1058
1055
|
var LuzmoEmbedDashboard = class extends LuzmoDashboard {
|
|
1059
1056
|
};
|
|
1060
1057
|
LuzmoEmbedDashboard = __decorateClass([
|
|
1061
1058
|
customElement("luzmo-embed-dashboard")
|
|
1062
1059
|
], LuzmoEmbedDashboard);
|
|
1063
1060
|
export {
|
|
1064
|
-
LuzmoDashboard2 as LuzmoDashboard,
|
|
1065
1061
|
LuzmoEmbedDashboard
|
|
1066
1062
|
};
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import { LuzmoDashboard
|
|
2
|
-
/**!
|
|
3
|
-
* @element luzmo-dashboard
|
|
4
|
-
* @description Exposed by @luzmo/embed lib to everyone.
|
|
5
|
-
*
|
|
6
|
-
* @deprecated Will be removed in next major release. Switch to <luzmo-embed-dashboard> instead.
|
|
7
|
-
*/
|
|
8
|
-
export declare class LuzmoDashboard extends LuzmoBaseDashboard {
|
|
9
|
-
}
|
|
1
|
+
import { LuzmoDashboard } from './dashboard-base';
|
|
10
2
|
/**!
|
|
11
3
|
* @element luzmo-embed-dashboard
|
|
12
4
|
* @description Exposed by @luzmo/embed lib to everyone.
|
|
13
5
|
*
|
|
14
6
|
*/
|
|
15
|
-
export declare class LuzmoEmbedDashboard extends
|
|
7
|
+
export declare class LuzmoEmbedDashboard extends LuzmoDashboard {
|
|
16
8
|
}
|
package/luzmo-embed.min.js
CHANGED
|
@@ -42,7 +42,6 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
42
42
|
// libs/embed-libs/embed/src/index.ts
|
|
43
43
|
var src_exports2 = {};
|
|
44
44
|
__export(src_exports2, {
|
|
45
|
-
LuzmoDashboard: () => LuzmoDashboard2,
|
|
46
45
|
LuzmoEmbedDashboard: () => LuzmoEmbedDashboard
|
|
47
46
|
});
|
|
48
47
|
module.exports = __toCommonJS(src_exports2);
|
|
@@ -1907,7 +1906,7 @@ var o5 = e6(class extends i4 {
|
|
|
1907
1906
|
});
|
|
1908
1907
|
|
|
1909
1908
|
// libs/embed-libs/embed/package.json
|
|
1910
|
-
var version = "5.1.
|
|
1909
|
+
var version = "5.1.6";
|
|
1911
1910
|
|
|
1912
1911
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
1913
1912
|
var LuzmoService = class {
|
|
@@ -1951,7 +1950,7 @@ var _setEventHandler = () => {
|
|
|
1951
1950
|
}
|
|
1952
1951
|
dashboardComponent.iframeLoaded = true;
|
|
1953
1952
|
dashboardComponent._displayError();
|
|
1954
|
-
console.error("Dashboard error: ", event.data.errorMsg);
|
|
1953
|
+
console.error("Dashboard error: ", event.data.errorMsg ?? event.data.error?.msg);
|
|
1955
1954
|
break;
|
|
1956
1955
|
}
|
|
1957
1956
|
case "data": {
|
|
@@ -2315,6 +2314,8 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2315
2314
|
initComponent() {
|
|
2316
2315
|
this.params = this._setOptions();
|
|
2317
2316
|
if (this.getIsViewMode()) {
|
|
2317
|
+
this._setupLoader();
|
|
2318
|
+
this._loaderStyles();
|
|
2318
2319
|
this.loadLibrary(this.params.appServer).then(async () => {
|
|
2319
2320
|
this.isLibraryLoaded = true;
|
|
2320
2321
|
await this.updateComplete;
|
|
@@ -2355,18 +2356,18 @@ var LuzmoDashboard = class extends s3 {
|
|
|
2355
2356
|
if (!["authKey", "authToken", "apiHost", "itemDimensions"].includes(key) && this.params[key]) {
|
|
2356
2357
|
this.dashboardReference.setAttribute(this.attributesMap[key], this.params[key]);
|
|
2357
2358
|
}
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2359
|
+
}
|
|
2360
|
+
if (this.params.itemDimensions) {
|
|
2361
|
+
this.dashboardReference.setAttribute("item-dimensions", JSON.stringify(this.params.itemDimensions));
|
|
2362
|
+
}
|
|
2363
|
+
if (this.params.apiHost) {
|
|
2364
|
+
this.dashboardReference.setAttribute("api-host", removeTrailingSlash(this.params.apiHost));
|
|
2365
|
+
}
|
|
2366
|
+
if (this.params.key) {
|
|
2367
|
+
this.dashboardReference.setAttribute("auth-key", this.params.key);
|
|
2368
|
+
}
|
|
2369
|
+
if (this.params.token) {
|
|
2370
|
+
this.dashboardReference.setAttribute("auth-token", this.params.token);
|
|
2370
2371
|
}
|
|
2371
2372
|
}
|
|
2372
2373
|
}
|
|
@@ -2918,11 +2919,6 @@ __decorateClass([
|
|
|
2918
2919
|
], LuzmoDashboard.prototype, "isInitCalled", 2);
|
|
2919
2920
|
|
|
2920
2921
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
|
|
2921
|
-
var LuzmoDashboard2 = class extends LuzmoDashboard {
|
|
2922
|
-
};
|
|
2923
|
-
LuzmoDashboard2 = __decorateClass([
|
|
2924
|
-
t("luzmo-dashboard")
|
|
2925
|
-
], LuzmoDashboard2);
|
|
2926
2922
|
var LuzmoEmbedDashboard = class extends LuzmoDashboard {
|
|
2927
2923
|
};
|
|
2928
2924
|
LuzmoEmbedDashboard = __decorateClass([
|