@luzmo/embed 7.5.0-es2021 → 8.0.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.
Files changed (82) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/README.md +2 -2
  3. package/index.cjs +1589 -143
  4. package/index.js +1583 -129
  5. package/index.rn.cjs +1375 -0
  6. package/index.rn.js +1305 -0
  7. package/index.shared.cjs +1486 -0
  8. package/index.shared.js +1412 -0
  9. package/luzmo-embed.min.js +197 -96
  10. package/package.json +22 -2
  11. package/src/index.common.d.ts +18 -0
  12. package/src/index.d.ts +3 -3
  13. package/src/index.rn.d.ts +1 -0
  14. package/src/index.shared.d.ts +2 -0
  15. package/src/lib/dashboard/dashboard-base.d.ts +5 -1
  16. package/src/lib/iq-components/luzmo-iq-answer.d.ts +1 -2
  17. package/src/lib/iq-components/luzmo-iq-chat.d.ts +1 -1
  18. package/src/lib/shared/constants/class-constants.d.ts +1 -0
  19. package/src/lib/shared/helpers/browser-check.d.ts +2 -0
  20. package/src/lib/shared/helpers/default-parameters.d.ts +2 -0
  21. package/src/lib/shared/helpers/error.d.ts +5 -0
  22. package/src/lib/shared/helpers/extents.d.ts +7 -0
  23. package/src/lib/shared/helpers/get-loader.d.ts +5 -0
  24. package/src/lib/shared/helpers/iframe-url.d.ts +1 -0
  25. package/src/lib/shared/helpers/promise-dispatch.d.ts +3 -0
  26. package/src/lib/shared/helpers/remote-federation.d.ts +56 -0
  27. package/src/lib/shared/helpers/set-selected-data-utils.d.ts +7 -0
  28. package/src/lib/shared/helpers/styles.d.ts +8 -0
  29. package/src/lib/shared/helpers/translations.d.ts +24 -0
  30. package/src/lib/shared/helpers/update-iframe-url.d.ts +1 -0
  31. package/src/lib/shared/helpers/utils.d.ts +27 -0
  32. package/src/lib/shared/methods/export-dashboard.d.ts +5 -0
  33. package/src/lib/shared/methods/get-accessible-dashboards.d.ts +3 -0
  34. package/src/lib/shared/methods/get-dashboard-context.d.ts +3 -0
  35. package/src/lib/shared/methods/get-data.d.ts +3 -0
  36. package/src/lib/shared/methods/get-filters.d.ts +3 -0
  37. package/src/lib/shared/methods/get-insights.d.ts +3 -0
  38. package/src/lib/shared/methods/index.d.ts +13 -0
  39. package/src/lib/shared/methods/refresh-data.d.ts +2 -0
  40. package/src/lib/shared/methods/reload-dashboard.d.ts +2 -0
  41. package/src/lib/shared/methods/send-export-email.d.ts +4 -0
  42. package/src/lib/shared/methods/set-authorization.d.ts +2 -0
  43. package/src/lib/shared/methods/set-edit-mode.d.ts +3 -0
  44. package/src/lib/shared/methods/set-preview.d.ts +3 -0
  45. package/src/lib/shared/methods/set-selected-data.d.ts +4 -0
  46. package/src/lib/shared/models/common.model.d.ts +105 -0
  47. package/src/lib/shared/models/dashboard-context.model.d.ts +50 -0
  48. package/src/lib/shared/models/dashboard.model.d.ts +59 -0
  49. package/src/lib/shared/models/embed-error-event.model.d.ts +17 -0
  50. package/src/lib/shared/models/events.model.d.ts +94 -0
  51. package/src/lib/shared/models/filter-input.model.d.ts +101 -0
  52. package/src/lib/shared/models/filter-output.model.d.ts +17 -0
  53. package/src/lib/shared/models/filters.model.d.ts +26 -0
  54. package/src/lib/shared/models/index.d.ts +12 -0
  55. package/src/lib/shared/models/styles.model.d.ts +32 -0
  56. package/src/lib/shared/models/translation.model.d.ts +2 -0
  57. package/src/lib/shared/models/viz-item-post-message.model.d.ts +56 -0
  58. package/src/lib/shared/models/viz-item.model.d.ts +8 -0
  59. package/src/lib/shared/models/viz-items/areachart.model.d.ts +13 -0
  60. package/src/lib/shared/models/viz-items/barchart.model.d.ts +24 -0
  61. package/src/lib/shared/models/viz-items/choroplethmap.model.d.ts +13 -0
  62. package/src/lib/shared/models/viz-items/circlepack.model.d.ts +2 -0
  63. package/src/lib/shared/models/viz-items/columnchart.model.d.ts +24 -0
  64. package/src/lib/shared/models/viz-items/datetime.model.d.ts +13 -0
  65. package/src/lib/shared/models/viz-items/donutchart.model.d.ts +2 -0
  66. package/src/lib/shared/models/viz-items/dropdownfilter.model.d.ts +13 -0
  67. package/src/lib/shared/models/viz-items/index.d.ts +36 -0
  68. package/src/lib/shared/models/viz-items/linechart.model.d.ts +36 -0
  69. package/src/lib/shared/models/viz-items/parallelcoordinatesplot.model.d.ts +14 -0
  70. package/src/lib/shared/models/viz-items/piechart.model.d.ts +24 -0
  71. package/src/lib/shared/models/viz-items/scatterplot.model.d.ts +13 -0
  72. package/src/lib/shared/models/viz-items/slicer.model.d.ts +24 -0
  73. package/src/lib/shared/models/viz-items/slider.model.d.ts +13 -0
  74. package/src/lib/shared/models/viz-items/stripplot.model.d.ts +15 -0
  75. package/src/lib/shared/models/viz-items/sunburst.model.d.ts +14 -0
  76. package/src/lib/shared/models/viz-items/treemap.model.d.ts +24 -0
  77. package/src/lib/shared/service/calculate-dimensions.d.ts +1 -0
  78. package/src/lib/shared/service/extend-and-validate.d.ts +2 -0
  79. package/src/lib/{helper → utils}/embed-error.utils.d.ts +1 -1
  80. package/src/lib/viz-item/viz-item.base.d.ts +2 -2
  81. /package/src/lib/{helper → utils}/event-bus-handler.d.ts +0 -0
  82. /package/src/lib/{helper → utils}/json-schema-utils.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -2,45 +2,63 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [8.0.0] - 2026-09-29
6
+
7
+ ### Changed
8
+
9
+ - Breaking: `<luzmo-embed-dashboard>` now defaults `embedMode` to `webComponent`. Set `embedMode="iframe"` to preserve the previous iframe behavior.
10
+ - Moved shared embed utilities/types from `@luzmo/shared-embed` into this package.
11
+ - Added `@luzmo/embed/shared` and `@luzmo/embed/rn` entry points.
12
+ - Dependencies now include `@module-federation/runtime` (`^2.9.0`) and `@luzmo/dashboard-contents-types` (`1.0.41`) directly (previously transitive via `@luzmo/shared-embed`).
13
+ - Removed the `@luzmo/shared-embed` dependency. `@luzmo/shared-embed` `7.0.0` is deprecated with no API; migrate imports to `@luzmo/embed` / `@luzmo/embed/shared` / `@luzmo/embed/rn`.
14
+
5
15
  ## [7.5.0] - 2026-09-21
6
16
 
7
17
  ### Changed
18
+
8
19
  - Updated dependencies.
9
20
 
10
21
  ## [7.4.0] - 2026-09-16
11
22
 
12
23
  ### Added
24
+
13
25
  - `DashboardFilterOutput` and `ItemFilterOutput` types, describing the filters returned by `getFilters()` on `<luzmo-embed-dashboard>` and `<luzmo-embed-viz-item>` and carried by the `changedFilters` event and the dashboard and viz-item contexts.
14
26
 
15
27
  ## [7.3.0] - 2026-09-10
16
28
 
17
29
  ### Added
30
+
18
31
  - `agentId` attribute on `<luzmo-iq-embed-chat>`. Set it to a saved agent id to run the chat as that agent, using the datasets, capabilities and theme configured on it.
19
32
 
20
33
  ## [7.2.1] - 2026-09-04
21
34
 
22
35
  ### Fixed
36
+
23
37
  - Fixed embedded dashboards failing to load in `editFull` mode when `appServer` is set without a trailing slash.
24
38
 
25
39
  ## [7.2.0] - 2026-09-02
26
40
 
27
41
  ### Added
42
+
28
43
  - Added `getInsights()` to `<luzmo-embed-dashboard>` and `<luzmo-embed-viz-item>`.
29
44
 
30
45
  ## [7.1.0] - 2026-07-20
31
46
 
32
47
  ### Added
48
+
33
49
  - `error` event on `<luzmo-embed-dashboard>` and `<luzmo-embed-viz-item>`. Fires when the embed cannot be loaded or hits a fatal error (connectivity, permissions, invalid configuration, etc.), so you can handle it in your host app instead of showing a stuck loader.
34
50
 
35
51
  ## [7.0.0] - 2026-07-20
36
52
 
37
53
  ### Removed
54
+
38
55
  - Removed the `accentColor` property and `accent-color` attribute from `<luzmo-embed-dashboard>`.
39
56
  - Removed the `qeVersion` property and `qe-version` attribute from `<luzmo-embed-dashboard>`.
40
57
 
41
58
  ## [6.13.6] - 2026-07-03
42
59
 
43
60
  ### Added
61
+
44
62
  - `getDashboardContext()` on `<luzmo-embed-dashboard>`, returning the live dashboard context as the unified `dashboard` aiprompt input (`{ type, value }`, where `value` carries the current screen mode as `value.currentScreenMode`) in both iframe and web-component embed modes.
45
63
  - `getVizItemContext()` on `<luzmo-embed-viz-item>`, returning a flex chart's live context (id, type, slots, options, filters and datasetIds).
46
64
  - `contextChanged` event on `<luzmo-embed-dashboard>` and `<luzmo-embed-viz-item>`, emitted on any change and carrying the full context.
@@ -49,359 +67,432 @@ All notable changes to this project are documented in this file.
49
67
  ## [6.13.5] - 2026-06-09
50
68
 
51
69
  ### Fixed
70
+
52
71
  - Fixed IQ analyst panel positioning and dashboard sizing. The dashboard now fills its container (removing overflowing charts and the double scrollbar) and the analyst panel stays pinned to the visible viewport while scrolling.
53
72
 
54
73
  ## [6.13.4] - 2026-05-28
55
74
 
56
75
  ### Added
76
+
57
77
  - Added the `dashboardContext` property on `<luzmo-iq-embed-chat>` to pass the current dashboard layout, metadata and runtime filters to the IQ chat for context-aware answers.
58
78
 
59
79
  ## [6.13.3] - 2026-05-27
60
80
 
61
81
  ### Changed
82
+
62
83
  - Revert changes in `6.13.2`
63
84
 
64
85
  ## [6.13.2] - 2026-05-25
65
86
 
66
87
  ### Fixed
88
+
67
89
  - 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.
68
90
 
69
91
  ## [6.13.1] - 2026-05-13
70
92
 
71
93
  ### Fixed
94
+
72
95
  - Properly initialized dashboard webcomponent.
73
96
 
74
97
  ## [6.13.0] - 2026-03-30
75
98
 
76
99
  ### Changed
100
+
77
101
  - Adapted library to work with Vite v8.
78
102
 
79
103
  ## [6.12.0] - 2026-03-25
80
104
 
81
105
  ### Changed
106
+
82
107
  - Updated dependencies.
83
108
 
84
109
  ## [6.11.0] - 2026-03-18
85
110
 
86
111
  ### Changed
112
+
87
113
  - Improved library's loading performance.
88
114
 
89
115
  ## [6.10.0] - 2026-03-04
90
116
 
91
117
  ### Changed
118
+
92
119
  - Added `base64` as a supported format for `<luzmo-embed-viz-item>.export()`.
93
120
  - Updated `<luzmo-embed-viz-item>.export()` to return `Promise<string | void>`.
94
121
 
95
122
  ## [6.9.0] - 2026-02-16
96
123
 
97
124
  ### Changed
125
+
98
126
  - Updated dependencies and internal types.
99
127
 
100
128
  ## [6.8.0] - 2026-02-03
101
129
 
102
130
  ### Changed
131
+
103
132
  - <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.
104
133
  - <luzmo-viz-item>: updated the type of the `slots` input from `VizItemSlots` to `VizItemSlot[]` to make the slots array shape explicit.
105
134
 
106
135
  ## [6.7.3] - 2026-01-22
107
136
 
108
137
  ### Added
138
+
109
139
  - Added the `authorizationExpired` event on `<luzmo-embed-viz-item>` to notify when the authorization token has expired and re-authentication is required.
110
140
 
111
141
  ## [6.7.2] - 2025-12-17
112
142
 
113
143
  ### Changed
144
+
114
145
  - Remove extra NPM dependencies.
115
146
 
116
147
  ## [6.7.1] - 2025-11-12
117
148
 
118
149
  ### Changed
150
+
119
151
  - Maintenance update with stability improvements.
120
152
 
121
153
  ## [6.7.0] - 2025-10-14
122
154
 
123
155
  ### Added
156
+
124
157
  - Added the `sendExportEmail()` method on `<luzmo-embed-dashboard>` to trigger immediate or scheduled export emails with optional subject and message overrides.
125
158
 
126
159
  ## [6.6.1] - 2025-09-02
127
160
 
128
161
  ### Changed
162
+
129
163
  - Updated dependencies to the latest compatible versions.
130
164
 
131
165
  ## [6.6.0] - 2025-07-14
132
166
 
133
167
  ### Changed
168
+
134
169
  - Updated dependencies to the latest compatible versions.
135
170
 
136
171
  ## [6.5.0] - 2025-06-23
137
172
 
138
173
  ### Changed
174
+
139
175
  - Updated dependencies and shipped stability improvements.
140
176
 
141
177
  ## [6.4.3] - 2025-04-28
142
178
 
143
179
  ### Added
180
+
144
181
  - Introduced the `--luzmo-iq-state-loader-color-accent` CSS variable for Luzmo IQ loaders.
145
182
 
146
183
  ## [6.4.2] - 2025-04-14
147
184
 
148
185
  ### Changed
186
+
149
187
  - Added the missing `absolute` and `percentageAllBars` values to the `bars.label` configuration for bar charts.
150
188
 
151
189
  ## [6.4.1] - 2025-03-28
152
190
 
153
191
  ### Changed
192
+
154
193
  - Updated dependencies to the latest compatible versions.
155
194
 
156
195
  ## [6.4.0] - 2025-03-20
157
196
 
158
197
  ### Added
198
+
159
199
  - Added the `editorLanguage` attribute to control the dashboard editor language.
160
200
 
161
201
  ## [6.3.7] - 2025-03-04
162
202
 
163
203
  ### Changed
204
+
164
205
  - Renamed the `experimental` attribute to `embedMode` on `<luzmo-embed-dashboard>`.
165
206
 
166
207
  ## [6.3.6] - 2025-02-27
167
208
 
168
209
  ### Added
210
+
169
211
  - Added the `availableDatasets` attribute to `<luzmo-iq-embed-chat>`.
170
212
 
171
213
  ## [6.3.5] - 2025-02-24
172
214
 
173
215
  ### Changed
216
+
174
217
  - Updated dependencies to the latest compatible versions.
175
218
 
176
219
  ## [6.3.4] - 2025-02-21
177
220
 
178
221
  ### Changed
222
+
179
223
  - Updated dependencies to the latest compatible versions.
180
224
 
181
225
  ## [6.3.3] - 2025-02-06
182
226
 
183
227
  ### Changed
228
+
184
229
  - Updated dependencies to the latest compatible versions.
185
230
 
186
231
  ## [6.3.2] - 2025-01-31
187
232
 
188
233
  ### Added
234
+
189
235
  - Extended `export()` on `<luzmo-embed-viz-item>` to support CSV, CSV raw, XLSX, and XLSX raw formats in addition to PNG.
190
236
 
191
237
  ## [6.3.1] - 2025-01-21
192
238
 
193
239
  ### Changed
240
+
194
241
  - Updated dependencies to the latest compatible versions.
195
242
 
196
243
  ## [6.3.0] - 2025-01-16
197
244
 
198
245
  ### Changed
246
+
199
247
  - Improved Luzmo Flex performance.
200
248
 
201
249
  ## [6.2.6] - 2025-01-13
202
250
 
203
251
  ### Changed
252
+
204
253
  - Updated dependencies to the latest compatible versions.
205
254
 
206
255
  ## [6.2.5] - 2025-01-08
207
256
 
208
257
  ### Changed
258
+
209
259
  - Updated dependencies to the latest compatible versions.
210
260
 
211
261
  ## [6.2.4] - 2024-12-19
212
262
 
213
263
  ### Added
264
+
214
265
  - Added the project `LICENSE`.
215
266
 
216
267
  ## [6.2.3] - 2024-12-10
217
268
 
218
269
  ### Added
270
+
219
271
  - Enabled custom chat widget button content via slots in `<luzmo-iq-embed-chat>`.
220
272
 
221
273
  ## [6.2.2] - 2024-12-09
222
274
 
223
275
  ### Fixed
276
+
224
277
  - Applied minor fixes for EDE mode behaviour.
225
278
 
226
279
  ## [6.2.1] - 2024-11-22
227
280
 
228
281
  ### Changed
282
+
229
283
  - Updated dependencies to the latest compatible versions.
230
284
 
231
285
  ## [6.2.0] - 2024-11-20
232
286
 
233
287
  ### Added
288
+
234
289
  - Introduced [Luzmo IQ](https://developer.luzmo.com/guide/iq--introduction) components to embed AI-powered chat and answer experiences.
235
290
 
236
291
  ## [6.1.9] - 2024-11-14
237
292
 
238
293
  ### Changed
294
+
239
295
  - Updated dependencies to the latest compatible versions.
240
296
 
241
297
  ## [6.1.8] - 2024-11-12
242
298
 
243
299
  ### Fixed
300
+
244
301
  - Resolved issues affecting `getAccessibleDashboards()`.
245
302
 
246
303
  ## [6.1.7] - 2024-10-25
247
304
 
248
305
  ### Fixed
306
+
249
307
  - Corrected width and height handling when setting inline styles on `<luzmo-embed-viz-item>`.
250
308
 
251
309
  ## [6.1.6] - 2024-10-22
252
310
 
253
311
  ### Fixed
312
+
254
313
  - Fixed Flex search filter display issues.
255
314
 
256
315
  ## [6.1.5] - 2024-10-21
257
316
 
258
317
  ### Changed
318
+
259
319
  - Updated dependencies to the latest compatible versions.
260
320
 
261
321
  ## [6.1.4] - 2024-10-14
262
322
 
263
323
  ### Changed
324
+
264
325
  - Updated dependencies to the latest compatible versions.
265
326
 
266
327
  ## [6.1.3] - 2024-09-26
267
328
 
268
329
  ### Changed
330
+
269
331
  - Updated public TypeScript definitions.
270
332
 
271
333
  ### Fixed
334
+
272
335
  - Removed the requirement for `script-src 'unsafe-eval'` in runtime CSP settings.
273
336
 
274
337
  ## [6.1.2] - 2024-09-23
275
338
 
276
339
  ### Fixed
340
+
277
341
  - Ensured the web component registers only once when libraries are included multiple times.
278
342
 
279
343
  ## [6.1.1] - 2024-09-09
280
344
 
281
345
  ### Changed
346
+
282
347
  - Updated dependencies to the latest compatible versions.
283
348
 
284
349
  ## [6.1.0] - 2024-09-09
285
350
 
286
351
  ### Added
352
+
287
353
  - Highlighted [Luzmo Flex](https://developer.luzmo.com/guide/flex--introduction) for building customizable visualizations entirely in code.
288
354
 
289
355
  ## [6.0.1] - 2024-07-11
290
356
 
291
357
  ### Fixed
358
+
292
359
  - Corrected loader color handling when embedding dashboards as web components.
293
360
 
294
361
  ## [6.0.0] - 2024-07-11
295
362
 
296
363
  ### Changed
364
+
297
365
  - Replaced the `LuzmoDashboard` type with `LuzmoEmbedDashboard`.
298
366
 
299
367
  ### Removed
368
+
300
369
  - Removed the legacy `<luzmo-dashboard>` component in favour of `<luzmo-embed-dashboard>`.
301
370
 
302
371
  ### Fixed
372
+
303
373
  - Corrected loader color handling when embedding dashboards as web components.
304
374
 
305
375
  ## [5.1.5] - 2024-05-03
306
376
 
307
377
  ### Fixed
378
+
308
379
  - Addressed intermittent loading issues when `experimental=true`.
309
380
 
310
381
  ## [5.1.4] - 2024-05-02
311
382
 
312
383
  ### Fixed
384
+
313
385
  - Resolved compatibility issues with CRA 5.0 and Webpack 5.0 builds.
314
386
 
315
387
  ## [5.1.3] - 2024-05-02
316
388
 
317
389
  ### Fixed
390
+
318
391
  - Ensured the editor mode height respects a 100% parent height.
319
392
 
320
393
  ## [5.1.2] - 2024-04-29
321
394
 
322
395
  ### Fixed
396
+
323
397
  - Set the minimum height in editor mode to 100vh.
324
398
 
325
399
  ## [5.1.1] - 2024-04-24
326
400
 
327
401
  ### Changed
402
+
328
403
  - Surface detailed error messages from the Luzmo application.
329
404
 
330
405
  ## [5.1.0] - 2024-04-17
331
406
 
332
407
  ### Changed
408
+
333
409
  - Deprecated `<luzmo-dashboard>` in favour of `<luzmo-embed-dashboard>` ahead of removal in `6.0.0`.
334
410
 
335
411
  ## [5.0.14] - 2024-03-28
336
412
 
337
413
  ### Fixed
414
+
338
415
  - Pulled shared embed library fixes.
339
416
 
340
417
  ## [5.0.13] - 2024-03-26
341
418
 
342
419
  ### Added
420
+
343
421
  - Added an ESM build entry point to `@luzmo/embed`.
344
422
 
345
423
  ## [5.0.12] - 2024-03-19
346
424
 
347
425
  ### Fixed
426
+
348
427
  - Ensured `getAccessibleDashboards()` works correctly with embed tokens.
349
428
 
350
429
  ## [5.0.11] - 2024-03-18
351
430
 
352
431
  ### Changed
432
+
353
433
  - Exposed the correct TypeScript typings from `@luzmo/embed`.
354
434
 
355
435
  ## [5.0.10] - 2024-03-11
356
436
 
357
437
  ### Fixed
438
+
358
439
  - Set `<luzmo-dashboard>` to display as a block-level element.
359
440
 
360
441
  ## [5.0.9] - 2024-03-07
361
442
 
362
443
  ### Fixed
444
+
363
445
  - Corrected EDE width and height behaviour to use 100% of the container.
364
446
 
365
447
  ## [5.0.8] - 2024-03-05
366
448
 
367
449
  ### Changed
450
+
368
451
  - Improved typings in the shared library.
369
452
 
370
453
  ## [5.0.7] - 2024-02-28
371
454
 
372
455
  ### Fixed
456
+
373
457
  - Addressed width and height issues for experimental mode.
374
458
 
375
459
  ## [5.0.6] - 2024-02-17
376
460
 
377
461
  ### Changed
462
+
378
463
  - Added `"type": "module"` to `package.json`.
379
464
  - Updated dependencies to the latest compatible versions.
380
465
 
381
466
  ## [5.0.5] - 2024-02-16
382
467
 
383
468
  ### Fixed
469
+
384
470
  - Resolved a typing issue.
385
471
 
386
472
  ## [5.0.4] - 2024-02-08
387
473
 
388
474
  ### Changed
475
+
389
476
  - Refreshed documentation and changelog content.
390
477
 
391
478
  ## [5.0.3] - 2024-02-01
392
479
 
393
480
  ### Added
481
+
394
482
  - Added a parameter to help clients test upstream changes.
395
483
 
396
484
  ### Changed
485
+
397
486
  - Delivered performance improvements.
398
487
 
399
488
  ## [5.0.2] - 2023-12-07
400
489
 
401
490
  ### Fixed
491
+
402
492
  - Corrected an incorrect dependency version.
403
493
 
404
494
  ## [5.0.1] - 2023-12-06
405
495
 
406
496
  ### Fixed
497
+
407
498
  - Prevented crashes caused by dimensions being calculated before dimension data was available.
package/README.md CHANGED
@@ -196,13 +196,13 @@ Below a list of available properties on the dashboard web component
196
196
  | `apiHost` | string | API server to connect to (Default: 'https://api.luzmo.com/' , for US set apiHost to 'https://api.us.luzmo.com/') |
197
197
  | `editMode` | string | Specifies if the embedded dashboard should be editable or not. Accepted values: "view" , "editLimited" , "editFull" . Use "view" if you don't want the embedded dashboard to be editable. (Default: "view" ) |
198
198
  | `mainColor` | string | Optional override of the main color used in the whitelabeling of the embedded dashboard editor. If not provided, the main color of the whitelabeling colors set on the organization will be used. Should be specified as a string of rgb values (i.e. "rgb(50,50,50)"). |
199
- | `embedMode` | `'iframe' \| 'webComponent'` | How the dashboard is mounted inside your page. Defaults to `'iframe'` (rendered inside an `<iframe>`). Use `'webComponent'` to render the dashboard directly on your page (no iframe), which gives you full control over styling via CSS variables. `'webComponent'` is view-mode only; edit modes always fall back to iframe. See ["Embed modes and network requirements"](#embed-modes-and-network-requirements) below. |
199
+ | `embedMode` | `'iframe' \| 'webComponent'` | How the dashboard is mounted inside your page. Defaults to `'webComponent'`, which renders the dashboard directly on your page (no iframe) and gives you full control over styling via CSS variables. Set `embedMode="iframe"` to preserve iframe rendering. `'webComponent'` is view-mode only; edit modes always fall back to iframe. See ["Embed modes and network requirements"](#embed-modes-and-network-requirements) below. |
200
200
 
201
201
  <br/>
202
202
 
203
203
  ### Embed modes and network requirements
204
204
 
205
- `embedMode="webComponent"` renders the dashboard directly on your page (no iframe), which gives you full control over styling via CSS variables. Because the dashboard then connects to your Luzmo API host directly from your domain, keep the following in mind:
205
+ Omitting `embedMode` renders the dashboard directly on your page (no iframe), which gives you full control over styling via CSS variables. Set `embedMode="iframe"` if you need the previous iframe behavior. Because web-component mode connects to your Luzmo API host directly from your domain, keep the following in mind:
206
206
 
207
207
  - **WebSocket connectivity** to your Luzmo API host must be allowed by any reverse proxy, CSP or corporate firewall in front of your users. Your API host is whatever you set as `apiHost` (`api.luzmo.com` by default); make sure `wss://` connections to it are permitted. This lets the embed load reliably without relying on third-party cookies, which modern browsers and incognito windows block by default.
208
208
  - **CNAME whitelabeling** (serving the Luzmo API from a subdomain of your own site) is still supported and is a good option if you want a fully first-party setup, but it is no longer required.