@luzmo/embed 6.6.1 → 6.7.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
@@ -1,336 +1,291 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ All notable changes to this project are documented in this file.
4
4
 
5
- ## [6.6.1] - 2025-09-02
5
+ ## [6.7.0] - 2025-10-14
6
+
7
+ ### Added
8
+ - Added the `sendExportEmail()` method on `<luzmo-embed-dashboard>` to trigger immediate or scheduled export emails with optional subject and message overrides.
6
9
 
7
- ### Updates
10
+ ## [6.6.1] - 2025-09-02
8
11
 
9
- - Update dependent libraries to latest versions
12
+ ### Changed
13
+ - Updated dependencies to the latest compatible versions.
10
14
 
11
15
  ## [6.6.0] - 2025-07-14
12
16
 
13
- ### Updates
14
-
15
- - Update dependent libraries to latest versions
17
+ ### Changed
18
+ - Updated dependencies to the latest compatible versions.
16
19
 
17
20
  ## [6.5.0] - 2025-06-23
18
21
 
19
- ### Updates
20
-
21
- - Update dependent libraries to latest versions
22
- - Maintenance release with improved stability
22
+ ### Changed
23
+ - Updated dependencies and shipped stability improvements.
23
24
 
24
25
  ## [6.4.3] - 2025-04-28
25
26
 
26
- ### Updates
27
-
28
- - Add `--luzmo-iq-state-loader-color-accent` for Luzmo IQ loader
27
+ ### Added
28
+ - Introduced the `--luzmo-iq-state-loader-color-accent` CSS variable for Luzmo IQ loaders.
29
29
 
30
30
  ## [6.4.2] - 2025-04-14
31
31
 
32
- ### Updates
33
-
34
- - Update Bar chart options: add missing values "absolute" and "percentageAllBars" for "bars.label" options
32
+ ### Changed
33
+ - Added the missing `absolute` and `percentageAllBars` values to the `bars.label` configuration for bar charts.
35
34
 
36
35
  ## [6.4.1] - 2025-03-28
37
36
 
38
- ### Updates
39
-
40
- - Updated dependent lib
37
+ ### Changed
38
+ - Updated dependencies to the latest compatible versions.
41
39
 
42
40
  ## [6.4.0] - 2025-03-20
43
41
 
44
- ### Updates
45
-
46
- - Added `editorLanguage` input to set the language of the dashboard editor
42
+ ### Added
43
+ - Added the `editorLanguage` attribute to control the dashboard editor language.
47
44
 
48
45
  ## [6.3.7] - 2025-03-04
49
46
 
50
- ### Updates
51
-
52
- - Rename "experimental" input to "embedMode" in dashboard component
47
+ ### Changed
48
+ - Renamed the `experimental` attribute to `embedMode` on `<luzmo-embed-dashboard>`.
53
49
 
54
50
  ## [6.3.6] - 2025-02-27
55
51
 
56
- ### Updates
57
-
58
- - Added availableDatasets as input to luzmo-iq-embed-chat component
52
+ ### Added
53
+ - Added the `availableDatasets` attribute to `<luzmo-iq-embed-chat>`.
59
54
 
60
55
  ## [6.3.5] - 2025-02-24
61
56
 
62
- ### Updates
63
-
64
- - Updated dependent libs
57
+ ### Changed
58
+ - Updated dependencies to the latest compatible versions.
65
59
 
66
60
  ## [6.3.4] - 2025-02-21
67
61
 
68
- ### Updates
69
-
70
- - Updated dependent libs
62
+ ### Changed
63
+ - Updated dependencies to the latest compatible versions.
71
64
 
72
65
  ## [6.3.3] - 2025-02-06
73
66
 
74
- ### Updates
75
-
76
- - Updated dependent libs
67
+ ### Changed
68
+ - Updated dependencies to the latest compatible versions.
77
69
 
78
70
  ## [6.3.2] - 2025-01-31
79
71
 
80
- ### Updates
81
-
82
- - export() now allows you to export the viz item as a CSV, XLSX and PNG
72
+ ### Added
73
+ - Extended `export()` on `<luzmo-embed-viz-item>` to support CSV, CSV raw, XLSX, and XLSX raw formats in addition to PNG.
83
74
 
84
75
  ## [6.3.1] - 2025-01-21
85
76
 
86
- ### Updates
87
-
88
- - Updated dependent libs
77
+ ### Changed
78
+ - Updated dependencies to the latest compatible versions.
89
79
 
90
80
  ## [6.3.0] - 2025-01-16
91
81
 
92
- ### Updates
93
-
94
- - Updated Flex performance
82
+ ### Changed
83
+ - Improved Luzmo Flex performance.
95
84
 
96
85
  ## [6.2.6] - 2025-01-13
97
86
 
98
- ### Updates
99
-
100
- - Updated dependent libs
87
+ ### Changed
88
+ - Updated dependencies to the latest compatible versions.
101
89
 
102
90
  ## [6.2.5] - 2025-01-08
103
91
 
104
- ### Updates
105
-
106
- - Updated dependent libs
92
+ ### Changed
93
+ - Updated dependencies to the latest compatible versions.
107
94
 
108
95
  ## [6.2.4] - 2024-12-19
109
96
 
110
- ### Updates
111
-
112
- - Added LICENSE to the library
97
+ ### Added
98
+ - Added the project `LICENSE`.
113
99
 
114
100
  ## [6.2.3] - 2024-12-10
115
101
 
116
- ### Updates
117
-
118
- - Enable Luzmo IQ custom chat widget button content with WebComponents slot
102
+ ### Added
103
+ - Enabled custom chat widget button content via slots in `<luzmo-iq-embed-chat>`.
119
104
 
120
105
  ## [6.2.2] - 2024-12-09
121
106
 
122
- ### Updates
123
-
124
- - Minor bugfixes for EDE mode
107
+ ### Fixed
108
+ - Applied minor fixes for EDE mode behaviour.
125
109
 
126
110
  ## [6.2.1] - 2024-11-22
127
111
 
128
- ### Updates
129
-
130
- - Updated dependencies
112
+ ### Changed
113
+ - Updated dependencies to the latest compatible versions.
131
114
 
132
115
  ## [6.2.0] - 2024-11-20
133
116
 
134
- ### Updates
135
-
136
- - [Luzmo IQ](https://developer.luzmo.com/guide/iq--introduction) allows you to generate AI-powered answers to data-related questions. The update adds components that allows you embed chat and answer components onto your page
117
+ ### Added
118
+ - Introduced [Luzmo IQ](https://developer.luzmo.com/guide/iq--introduction) components to embed AI-powered chat and answer experiences.
137
119
 
138
120
  ## [6.1.9] - 2024-11-14
139
121
 
140
- ### Updates
141
-
142
- - Updated dependencies
122
+ ### Changed
123
+ - Updated dependencies to the latest compatible versions.
143
124
 
144
125
  ## [6.1.8] - 2024-11-12
145
126
 
146
- ### Updates
147
-
148
- - Fixes for getAccessibleDashboards()
127
+ ### Fixed
128
+ - Resolved issues affecting `getAccessibleDashboards()`.
149
129
 
150
130
  ## [6.1.7] - 2024-10-25
151
131
 
152
- ### Updates
153
-
154
- - Fix setting a size (width, height) in the inline style for <luzmo-embed-viz-item>
132
+ ### Fixed
133
+ - Corrected width and height handling when setting inline styles on `<luzmo-embed-viz-item>`.
155
134
 
156
135
  ## [6.1.6] - 2024-10-22
157
136
 
158
- ### Updates
159
-
160
- - Fix displaying Search Filter in Flex
137
+ ### Fixed
138
+ - Fixed Flex search filter display issues.
161
139
 
162
140
  ## [6.1.5] - 2024-10-21
163
141
 
164
- ### Updates
165
-
166
- - Updated dependencies
142
+ ### Changed
143
+ - Updated dependencies to the latest compatible versions.
167
144
 
168
145
  ## [6.1.4] - 2024-10-14
169
146
 
170
- ### Updates
171
-
172
- - Updated dependencies
147
+ ### Changed
148
+ - Updated dependencies to the latest compatible versions.
173
149
 
174
150
  ## [6.1.3] - 2024-09-26
175
151
 
176
- ### Updates
152
+ ### Changed
153
+ - Updated public TypeScript definitions.
177
154
 
178
- - Updated types
179
- - Fixed a runtime issue where CSP of script-src 'unsafe-eval' was required
155
+ ### Fixed
156
+ - Removed the requirement for `script-src 'unsafe-eval'` in runtime CSP settings.
180
157
 
181
158
  ## [6.1.2] - 2024-09-23
182
159
 
183
- ### Bugfixes
184
-
185
- - Web component now is only registered once, if already registered, the registration is skipped. (Fixes issue with libraries being included multiple times)
160
+ ### Fixed
161
+ - Ensured the web component registers only once when libraries are included multiple times.
186
162
 
187
163
  ## [6.1.1] - 2024-09-09
188
164
 
189
- ### Chore
190
-
191
- - Updated lib dependencies
165
+ ### Changed
166
+ - Updated dependencies to the latest compatible versions.
192
167
 
193
168
  ## [6.1.0] - 2024-09-09
194
169
 
195
- ### Updates
196
- - [Luzmo Flex](https://developer.luzmo.com/guide/flex--introduction) allows you to create customizable visualizations fully from code, allowing you to build and embed powerful, hyper-personalized data analytics products
170
+ ### Added
171
+ - Highlighted [Luzmo Flex](https://developer.luzmo.com/guide/flex--introduction) for building customizable visualizations entirely in code.
197
172
 
198
173
  ## [6.0.1] - 2024-07-11
199
174
 
200
- - Fix for loader color when embedding dashboard as a web component, and other bug fixes
175
+ ### Fixed
176
+ - Corrected loader color handling when embedding dashboards as web components.
201
177
 
202
178
  ## [6.0.0] - 2024-07-11
203
179
 
204
- ### Breaking changes
180
+ ### Changed
181
+ - Replaced the `LuzmoDashboard` type with `LuzmoEmbedDashboard`.
205
182
 
206
- - Removed `<luzmo-dashboard>` web component, It has been replaced with `<luzmo-embed-dashboard>`
207
- - `LuzmoDashboard` has been replaced with `LuzmoEmbedDashboard`
183
+ ### Removed
184
+ - Removed the legacy `<luzmo-dashboard>` component in favour of `<luzmo-embed-dashboard>`.
208
185
 
209
- ### Bugfixes
210
-
211
- - Fix for loader color when embedding dashboard as a web component, and other bug fixes
186
+ ### Fixed
187
+ - Corrected loader color handling when embedding dashboards as web components.
212
188
 
213
189
  ## [5.1.5] - 2024-05-03
214
190
 
215
- ### Bugfixes
216
-
217
- - Fix bugs in experimental=true, dashboard not loading at times
191
+ ### Fixed
192
+ - Addressed intermittent loading issues when `experimental=true`.
218
193
 
219
194
  ## [5.1.4] - 2024-05-02
220
195
 
221
- ### Bugfixes
222
-
223
- - Fix build issues with CRA 5.0 and Webpack 5.0
196
+ ### Fixed
197
+ - Resolved compatibility issues with CRA 5.0 and Webpack 5.0 builds.
224
198
 
225
199
  ## [5.1.3] - 2024-05-02
226
200
 
227
- ### Bugfixes
228
-
229
- - Height in edit mode is set to 100%, taking 100% of parent height
201
+ ### Fixed
202
+ - Ensured the editor mode height respects a 100% parent height.
230
203
 
231
204
  ## [5.1.2] - 2024-04-29
232
205
 
233
- ### Bugfixes
234
-
235
- - Height in edit mode is set to a minimum of 100vh
236
-
206
+ ### Fixed
207
+ - Set the minimum height in editor mode to 100vh.
237
208
 
238
209
  ## [5.1.1] - 2024-04-24
239
210
 
240
- ### Updates
241
-
242
- - Show actual error messages from luzmo application
211
+ ### Changed
212
+ - Surface detailed error messages from the Luzmo application.
243
213
 
244
214
  ## [5.1.0] - 2024-04-17
245
215
 
246
- ### Updates
247
-
248
- - Deprecated `luzmo-dashboard`, `luzmo-embed-dashboard` is the new element, `luzmo-dashboard` will be removed in next major release (`6.0.0`)
216
+ ### Changed
217
+ - Deprecated `<luzmo-dashboard>` in favour of `<luzmo-embed-dashboard>` ahead of removal in `6.0.0`.
249
218
 
250
219
  ## [5.0.14] - 2024-03-28
251
220
 
252
- ### Bugfixes
253
-
254
- - Shared embed lib updated with bugfixes
221
+ ### Fixed
222
+ - Pulled shared embed library fixes.
255
223
 
256
224
  ## [5.0.13] - 2024-03-26
257
225
 
258
- ### Updates
259
-
260
- - Add ESM build for libs entry point in `@luzmo/embed`
226
+ ### Added
227
+ - Added an ESM build entry point to `@luzmo/embed`.
261
228
 
262
229
  ## [5.0.12] - 2024-03-19
263
230
 
264
- ### Bugfixes
265
-
266
- - Fixed getAccessibleDashboards() to correctly work with embed tokens
231
+ ### Fixed
232
+ - Ensured `getAccessibleDashboards()` works correctly with embed tokens.
267
233
 
268
234
  ## [5.0.11] - 2024-03-18
269
235
 
270
- ### Updates
271
-
272
- - Correct typings are now exposed from @luzmo/embed
236
+ ### Changed
237
+ - Exposed the correct TypeScript typings from `@luzmo/embed`.
273
238
 
274
239
  ## [5.0.10] - 2024-03-11
275
240
 
276
- ### Bugfixes
277
-
278
- - Use display block for the luzmo-dashboard component
241
+ ### Fixed
242
+ - Set `<luzmo-dashboard>` to display as a block-level element.
279
243
 
280
244
  ## [5.0.9] - 2024-03-07
281
245
 
282
- ### Bugfixes
283
-
284
- - Fixed EDE width and height issue not being 100%
246
+ ### Fixed
247
+ - Corrected EDE width and height behaviour to use 100% of the container.
285
248
 
286
249
  ## [5.0.8] - 2024-03-05
287
250
 
288
- ### Updates
289
-
290
- - Typing improvements in shared lib
251
+ ### Changed
252
+ - Improved typings in the shared library.
291
253
 
292
254
  ## [5.0.7] - 2024-02-28
293
255
 
294
- ### Updates
295
-
296
- - Bugfixes in experimental mode for width height issue
297
-
256
+ ### Fixed
257
+ - Addressed width and height issues for experimental mode.
298
258
 
299
259
  ## [5.0.6] - 2024-02-17
300
260
 
301
- ### Updates
302
-
303
- - Added type: "module" to package.json
304
- - Updated dependencies
261
+ ### Changed
262
+ - Added `"type": "module"` to `package.json`.
263
+ - Updated dependencies to the latest compatible versions.
305
264
 
306
265
  ## [5.0.5] - 2024-02-16
307
266
 
308
- ### Updates
309
-
310
- - Typing issue fixed
267
+ ### Fixed
268
+ - Resolved a typing issue.
311
269
 
312
270
  ## [5.0.4] - 2024-02-08
313
271
 
314
- ### Updates
315
-
316
- - Changelog update / README updated
272
+ ### Changed
273
+ - Refreshed documentation and changelog content.
317
274
 
318
275
  ## [5.0.3] - 2024-02-01
319
276
 
320
- ### Updates
277
+ ### Added
278
+ - Added a parameter to help clients test upstream changes.
321
279
 
322
- - Added a parameter to allow testing upstream changes for clients
323
- - Performance improvements
280
+ ### Changed
281
+ - Delivered performance improvements.
324
282
 
325
283
  ## [5.0.2] - 2023-12-07
326
284
 
327
- ### BUGFIX
328
-
329
- - Fixed incorrect dependency version in library
330
-
285
+ ### Fixed
286
+ - Corrected an incorrect dependency version.
331
287
 
332
288
  ## [5.0.1] - 2023-12-06
333
289
 
334
- ### BUGFIX
335
-
336
- - Fixed a bug where dimensions were calculated before dimension data was available which resulted in a crash
290
+ ### Fixed
291
+ - Prevented crashes caused by dimensions being calculated before dimension data was available.
package/README.md CHANGED
@@ -230,6 +230,9 @@ reloadDashboard(): Promise<void>;
230
230
  // Exports the current dashboard as either pdf or png. A container class needs to be passed as an argument and an optional type parameter.
231
231
  exportDashboard(type?: ExportType): Promise<ExportDashboard>;
232
232
 
233
+ // Opens a pop-up modal to send the current dashboard export via email immediately or on a schedule (`type` argument). Optional arguments to override the email subject and email body message.
234
+ sendExportEmail(type: 'once' | 'scheduled', subject?: Record<string, string>, message?: Record<string, string>): void;
235
+
233
236
  // Get accessible dashboards in a integration, make sure 'apiHost', 'authKey', 'authToken' are set correctly on the instance.
234
237
  getAccessibleDashboards(): Promise<AccessibleDashboard[]>;
235
238
 
@@ -298,6 +301,20 @@ dashboardComponent.exportDashboard('png').then((data) => {
298
301
  });
299
302
  ```
300
303
 
304
+ Open a pop-up modal to send a dashboard export via email
305
+
306
+ ```typescript
307
+ // Open a pop-up modal to trigger an immediate export email using the default subject and message
308
+ dashboardComponent.sendExportEmail('once');
309
+
310
+ // Open a pop-up modal to schedule a recurring export email with custom email subject and message translations
311
+ dashboardComponent.sendExportEmail(
312
+ 'scheduled',
313
+ { en: 'Weekly KPI dashboard', fr: 'Tableau de bord KPI hebdomadaire' },
314
+ { en: 'Automated KPI export created by our app.', fr: 'Export KPI automatisé créé par notre application.' }
315
+ );
316
+ ```
317
+
301
318
  Get accessible dashboards of an integration
302
319
 
303
320
  ```typescript
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.6.1";
65
+ var version = "6.7.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"));
@@ -921,6 +921,14 @@ var LuzmoDashboard = class extends import_lit2.LitElement {
921
921
  }
922
922
  return SharedLib2.setPreview(this, this.iframe, preview);
923
923
  }
924
+ sendExportEmail(type, subject, message) {
925
+ if (this.isWebComponentViewMode() && this.dashboardReference) {
926
+ return this.dashboardReference.sendExportEmail(type, subject, message);
927
+ } else if (!this.isWebComponentViewMode()) {
928
+ return SharedLib2.sendExportEmail(this, this.iframe, type, subject, message);
929
+ }
930
+ return Promise.reject();
931
+ }
924
932
  isWebComponentViewMode() {
925
933
  return this.embedMode === "webComponent" && (this.params.editMode === "view" || this.params.editMode === void 0);
926
934
  }
@@ -1101,7 +1109,7 @@ if (!customElements.get("luzmo-embed-dashboard")) {
1101
1109
  var SharedLib3 = __toESM(require("@luzmo/shared-embed"));
1102
1110
  var import_lit3 = require("lit");
1103
1111
  var import_decorators2 = require("lit/decorators.js");
1104
- var dashboardContentsVersion = "0.1.97";
1112
+ var dashboardContentsVersion = "0.1.98";
1105
1113
  var vizItemRemote = "VizItemApp";
1106
1114
  var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1107
1115
  constructor() {
@@ -1114,22 +1122,6 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1114
1122
  this.libVersion = version + "-wc-luzmo";
1115
1123
  this.postInitCallQueue = [];
1116
1124
  }
1117
- static {
1118
- // Static styles to set host display to block, else it is not shown at all for some reason.
1119
- this.styles = import_lit3.css`
1120
- :host {
1121
- display: block;
1122
- width: 100%;
1123
- height: 100%;
1124
- }
1125
-
1126
- luzmo-embed-viz-item {
1127
- width: 100%;
1128
- height: 1000%;
1129
- display: block;
1130
- }
1131
- `;
1132
- }
1133
1125
  createRenderRoot() {
1134
1126
  if (!this.style.display) {
1135
1127
  this.style.display = "block";
@@ -1239,6 +1231,20 @@ var LuzmoBaseVizItem = class extends import_lit3.LitElement {
1239
1231
  return import_lit3.html` `;
1240
1232
  }
1241
1233
  };
1234
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1235
+ LuzmoBaseVizItem.styles = import_lit3.css`
1236
+ :host {
1237
+ display: block;
1238
+ width: 100%;
1239
+ height: 100%;
1240
+ }
1241
+
1242
+ luzmo-embed-viz-item {
1243
+ width: 100%;
1244
+ height: 1000%;
1245
+ display: block;
1246
+ }
1247
+ `;
1242
1248
  __decorateClass([
1243
1249
  (0, import_decorators2.property)()
1244
1250
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -1332,16 +1338,6 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1332
1338
  this.remoteEntryServer = "http://localhost:4202/";
1333
1339
  this.aydHost = "https://ayd.luzmo.com/";
1334
1340
  }
1335
- static {
1336
- // Static styles to set host display to block, else it is not shown at all for some reason.
1337
- this.styles = import_lit4.css`
1338
- :host {
1339
- display: block;
1340
- width: 100%;
1341
- height: 100%;
1342
- }
1343
- `;
1344
- }
1345
1341
  createRenderRoot() {
1346
1342
  return this;
1347
1343
  }
@@ -1410,6 +1406,14 @@ var LuzmoIQEmbedChatComponent = class extends import_lit4.LitElement {
1410
1406
  observer.observe(embedChat, { childList: true, subtree: true });
1411
1407
  }
1412
1408
  };
1409
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1410
+ LuzmoIQEmbedChatComponent.styles = import_lit4.css`
1411
+ :host {
1412
+ display: block;
1413
+ width: 100%;
1414
+ height: 100%;
1415
+ }
1416
+ `;
1413
1417
  __decorateClass([
1414
1418
  (0, import_decorators3.property)()
1415
1419
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -1475,16 +1479,6 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1475
1479
  this.libVersion = version + "-wc-luzmo";
1476
1480
  this.remoteEntryServer = "http://localhost:4202";
1477
1481
  }
1478
- static {
1479
- // Static styles to set host display to block, else it is not shown at all for some reason.
1480
- this.styles = import_lit5.css`
1481
- :host {
1482
- display: block;
1483
- width: 100%;
1484
- height: 100%;
1485
- }
1486
- `;
1487
- }
1488
1482
  createRenderRoot() {
1489
1483
  return this;
1490
1484
  }
@@ -1535,6 +1529,14 @@ var LuzmoIQEmbedAnswerComponent = class extends import_lit5.LitElement {
1535
1529
  return import_lit5.html` `;
1536
1530
  }
1537
1531
  };
1532
+ // Static styles to set host display to block, else it is not shown at all for some reason.
1533
+ LuzmoIQEmbedAnswerComponent.styles = import_lit5.css`
1534
+ :host {
1535
+ display: block;
1536
+ width: 100%;
1537
+ height: 100%;
1538
+ }
1539
+ `;
1538
1540
  __decorateClass([
1539
1541
  (0, import_decorators4.property)()
1540
1542
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);