@luzmo/embed 6.1.9-beta.2 → 6.2.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 +6 -0
- package/README.md +62 -62
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/luzmo-embed.min.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
All notable changes to this project will be documented in this file.
|
|
2
2
|
|
|
3
|
+
## [6.2.0] - 2024-11-20
|
|
4
|
+
|
|
5
|
+
### Updates
|
|
6
|
+
|
|
7
|
+
- [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.
|
|
8
|
+
|
|
3
9
|
## [6.1.9] - 2024-11-14
|
|
4
10
|
|
|
5
11
|
### Updates
|
package/README.md
CHANGED
|
@@ -362,29 +362,29 @@ These options help tailor the chat experience to fit specific use cases by contr
|
|
|
362
362
|
<br>
|
|
363
363
|
The table below provides a detailed overview of each configurable parameter and its purpose.
|
|
364
364
|
|
|
365
|
-
| Property
|
|
366
|
-
|
|
367
|
-
| `areChartActionsEnabled`
|
|
368
|
-
| `
|
|
369
|
-
| `
|
|
370
|
-
| `
|
|
371
|
-
| `
|
|
372
|
-
| `
|
|
373
|
-
| `
|
|
374
|
-
| `chatWidgetVerticalOffset`
|
|
375
|
-
| `disclaimerText`
|
|
376
|
-
| `displayMode`
|
|
377
|
-
| `initialSuggestions`
|
|
378
|
-
| `
|
|
379
|
-
| `
|
|
380
|
-
| `
|
|
381
|
-
| `
|
|
382
|
-
| `
|
|
383
|
-
| `
|
|
384
|
-
| `
|
|
385
|
-
| `
|
|
386
|
-
| `timezone`
|
|
387
|
-
| `welcomeMessages`
|
|
365
|
+
| Property | Type | Description |
|
|
366
|
+
|-------------------------------|---------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
367
|
+
| `areChartActionsEnabled` | boolean | Determines whether users should be allowed to trigger **chart actions** that enable them to explore further insights based on the given chart type. |
|
|
368
|
+
| `areWelcomeMessagesVisible` | boolean | Specifies whether to display the **welcome messages** at the chat start. |
|
|
369
|
+
| `chartTheme` | ItemThemeConfig | Defines theme settings for the charts displayed in the component. |
|
|
370
|
+
| `chatWidgetHorizontalOffset` | number | Specifies the horizontal offset for the chat widget overlay position in relation to the chat button. |
|
|
371
|
+
| `chatWidgetOverlayPosition` | string | Defines the position of the chat widget overlay in relation to the chat button. |
|
|
372
|
+
| `chatWidgetPosition` | ConnectedPosition[] | Defines the customized configuration of the chat widget overlay position. |
|
|
373
|
+
| `chatWidgetTitle` | string | The **chat title** to be displayed at the top of the chat container. |
|
|
374
|
+
| `chatWidgetVerticalOffset` | number | Specifies the vertical offset for the chat widget overlay position in relation to the chat button. |
|
|
375
|
+
| `disclaimerText` | string | Defines the **disclaimer text** to be displayed if enabled. Uses a default message if not specified. |
|
|
376
|
+
| `displayMode` | string | Configures the appearance of the chat component as either 'chatWidget' or 'fullChat'. |
|
|
377
|
+
| `initialSuggestions` | IQSuggestion[] | Predefined questions displayed at chat start, sent to the AI service upon click. |
|
|
378
|
+
| `isChartConfigurationEnabled` | boolean | Specifies whether users can configure charts via the chart configuration panel. |
|
|
379
|
+
| `isChartExportEnabled` | boolean | Specifies whether users can export charts as PNGs. |
|
|
380
|
+
| `isChartFeedbackEnabled` | boolean | Enables feedback, allowing users to rate responses and suggest corrections. |
|
|
381
|
+
| `isConversationIdVisible` | boolean | Displays the **conversation ID** for reporting or feedback purposes. |
|
|
382
|
+
| `isDisclaimerVisible` | boolean | Determines if the **disclaimer text** is shown in the chat. |
|
|
383
|
+
| `locale` | string | Specifies the **locale** for localizing text elements and chart configurations.<br/>Accepts values: "de", "en", "es", "fr", "it", "ja", "nl", "no", "pt", "ru", "sv", "tr". |
|
|
384
|
+
| `messages` | IQMessage[] | An array of processed messages to display, following the IQMessages interface. |
|
|
385
|
+
| `responseMode` | string | Specifies the response format as 'chart', 'text', or 'mixed'. |
|
|
386
|
+
| `timezone` | string | Specifies the **timezone** for displaying timestamps in charts. |
|
|
387
|
+
| `welcomeMessages` | IQMessage[] | Array of **welcome messages** displayed at chat start. |
|
|
388
388
|
|
|
389
389
|
<br>
|
|
390
390
|
|
|
@@ -396,15 +396,15 @@ These options help define whether certain elements, such as charts, text summari
|
|
|
396
396
|
<br>
|
|
397
397
|
The table below provides a detailed overview of each configurable parameter and its purpose:
|
|
398
398
|
|
|
399
|
-
| Property
|
|
400
|
-
|
|
401
|
-
| `areChartActionsEnabled`
|
|
402
|
-
| `
|
|
403
|
-
| `
|
|
404
|
-
| `
|
|
405
|
-
| `locale`
|
|
406
|
-
| `responseMode`
|
|
407
|
-
| `
|
|
399
|
+
| Property | Type | Description |
|
|
400
|
+
|-------------------------------| ------------------------------------- |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
401
|
+
| `areChartActionsEnabled` | boolean | Determines whether users should be allowed to trigger **chart actions** that enable them to explore further insights based on the given chart type. |
|
|
402
|
+
| `isChartConfigurationEnabled` | boolean | Specifies whether users should be able to configure charts with the chart configuration panel. |
|
|
403
|
+
| `isChartExportEnabled` | boolean | Specifies whether users can export charts as PNGs. |
|
|
404
|
+
| `isChartFeedbackEnabled` | boolean | Specifies whether the feedback mechanism should be displayed, allowing users to rate AI responses and suggest chart corrections. |
|
|
405
|
+
| `locale` | string | Specifies the **locale** used for component interactions, including localization of text elements like welcome messages, responses, and chart configurations. |
|
|
406
|
+
| `responseMode` | string | Defines the **response mode** for the answer component: 'chart', 'text', or 'mixed' (default). 'chart' shows AI responses as charts only, 'text' shows only text summaries, and 'mixed' displays both. |
|
|
407
|
+
| `chartTheme` | ItemThemeConfig | Specifies the theme settings for customizing the appearance of charts displayed in the component. |
|
|
408
408
|
|
|
409
409
|
<br>
|
|
410
410
|
|
|
@@ -416,60 +416,60 @@ The following CSS variables can be used to customize various aspects of the IQ c
|
|
|
416
416
|
These variables control the overall appearance of elements like borders, background colors, font sizes, and spacing.
|
|
417
417
|
|
|
418
418
|
```css
|
|
419
|
-
--luzmo-border-color: rgba(0,0,0,.1); /* Border color */
|
|
420
|
-
--luzmo-border-radius: .5rem; /* Standard border radius */
|
|
421
|
-
--luzmo-border-radius-lg: .75rem; /* Large border radius */
|
|
422
|
-
--luzmo-border-radius-xl: 1rem; /* Extra-large border radius */
|
|
423
|
-
--luzmo-border-radius-full: 999rem; /* Full (circle) border radius */
|
|
424
|
-
--luzmo-border-width: 1px; /* Standard border width */
|
|
425
|
-
--luzmo-background-color: #ffffff; /* Default background color */
|
|
426
|
-
--luzmo-background-hover-color: #f8fafc; /* Background color on hover */
|
|
427
|
-
--luzmo-background-active-color: #f1f5f9; /* Background color when active */
|
|
428
|
-
--luzmo-font-size: .875rem; /* Default font size */
|
|
429
|
-
--luzmo-font-weight: 400; /* Standard font weight */
|
|
430
|
-
--luzmo-font-color: #333; /* Default font color */
|
|
431
|
-
--luzmo-spacing-1: .125rem; /* Small spacing */
|
|
432
|
-
--luzmo-spacing-5: 1rem; /* Large spacing */
|
|
419
|
+
--luzmo-iq-border-color: rgba(0,0,0,.1); /* Border color */
|
|
420
|
+
--luzmo-iq-border-radius: .5rem; /* Standard border radius */
|
|
421
|
+
--luzmo-iq-border-radius-lg: .75rem; /* Large border radius */
|
|
422
|
+
--luzmo-iq-border-radius-xl: 1rem; /* Extra-large border radius */
|
|
423
|
+
--luzmo-iq-border-radius-full: 999rem; /* Full (circle) border radius */
|
|
424
|
+
--luzmo-iq-border-width: 1px; /* Standard border width */
|
|
425
|
+
--luzmo-iq-background-color: #ffffff; /* Default background color */
|
|
426
|
+
--luzmo-iq-background-hover-color: #f8fafc; /* Background color on hover */
|
|
427
|
+
--luzmo-iq-background-active-color: #f1f5f9; /* Background color when active */
|
|
428
|
+
--luzmo-iq-font-size: .875rem; /* Default font size */
|
|
429
|
+
--luzmo-iq-font-weight: 400; /* Standard font weight */
|
|
430
|
+
--luzmo-iq-font-color: #333; /* Default font color */
|
|
431
|
+
--luzmo-iq-spacing-1: .125rem; /* Small spacing */
|
|
432
|
+
--luzmo-iq-spacing-5: 1rem; /* Large spacing */
|
|
433
433
|
```
|
|
434
434
|
|
|
435
435
|
#### Messages Styling
|
|
436
436
|
These variables define the appearance of both human and system messages in the chat.
|
|
437
437
|
|
|
438
438
|
```css
|
|
439
|
-
--luzmo-human-message-background: blue; /* Default background color for human messages */
|
|
440
|
-
--luzmo-human-message-color: white; /* Default text color for human messages */
|
|
441
|
-
--luzmo-system-message-background: rgb(226, 232, 240); /* Default background for system messages */
|
|
442
|
-
--luzmo-system-message-color: #333; /* Default text color for system messages */
|
|
439
|
+
--luzmo-iq-human-message-background: blue; /* Default background color for human messages */
|
|
440
|
+
--luzmo-iq-human-message-color: white; /* Default text color for human messages */
|
|
441
|
+
--luzmo-iq-system-message-background: rgb(226, 232, 240); /* Default background for system messages */
|
|
442
|
+
--luzmo-iq-system-message-color: #333; /* Default text color for system messages */
|
|
443
443
|
```
|
|
444
444
|
|
|
445
445
|
#### State Loader and Spinner Styling
|
|
446
446
|
These variables are used for customizing the appearance of state loaders and spinners within the chat component.
|
|
447
447
|
|
|
448
448
|
```css
|
|
449
|
-
--luzmo-spinner-color: magenta; /* Default spinner color */
|
|
450
|
-
--luzmo-spinner-border-width: .125rem; /* Default spinner border width */
|
|
451
|
-
--luzmo-spinner-opacity: .5; /* Default spinner opacity */
|
|
452
|
-
--luzmo-state-loader-background: #778393; /* Default background color of the loader */
|
|
453
|
-
--luzmo-state-loader-color: #333; /* Default text color for the loader */
|
|
449
|
+
--luzmo-iq-spinner-color: magenta; /* Default spinner color */
|
|
450
|
+
--luzmo-iq-spinner-border-width: .125rem; /* Default spinner border width */
|
|
451
|
+
--luzmo-iq-spinner-opacity: .5; /* Default spinner opacity */
|
|
452
|
+
--luzmo-iq-state-loader-background: #778393; /* Default background color of the loader */
|
|
453
|
+
--luzmo-iq-state-loader-color: #333; /* Default text color for the loader */
|
|
454
454
|
```
|
|
455
455
|
|
|
456
456
|
#### Feedback and Ratings
|
|
457
457
|
These variables control the appearance of feedback icons and rating elements.
|
|
458
458
|
|
|
459
459
|
```css
|
|
460
|
-
--luzmo-positive-feedback-icon-hover-color: rgb(20, 120, 63); /* Default hover color for positive feedback */
|
|
461
|
-
--luzmo-negative-feedback-icon-hover-color: rgb(216, 64, 64); /* Default hover color for negative feedback */
|
|
462
|
-
--luzmo-rating-icon-size: 1rem; /* Default size of the rating icons */
|
|
463
|
-
--luzmo-info-icon-size: 1rem; /* Default size of the info icons */
|
|
460
|
+
--luzmo-iq-positive-feedback-icon-hover-color: rgb(20, 120, 63); /* Default hover color for positive feedback */
|
|
461
|
+
--luzmo-iq-negative-feedback-icon-hover-color: rgb(216, 64, 64); /* Default hover color for negative feedback */
|
|
462
|
+
--luzmo-iq-rating-icon-size: 1rem; /* Default size of the rating icons */
|
|
463
|
+
--luzmo-iq-info-icon-size: 1rem; /* Default size of the info icons */
|
|
464
464
|
```
|
|
465
465
|
|
|
466
466
|
#### Tooltips
|
|
467
467
|
These variables are used to adjust the appearance of tooltips.
|
|
468
468
|
|
|
469
469
|
```css
|
|
470
|
-
--luzmo-
|
|
471
|
-
--luzmo-
|
|
472
|
-
--luzmo-
|
|
470
|
+
--luzmo-iq-tooltip-background-color: #000; /* Tooltip background color, defaults to #000 (black) */
|
|
471
|
+
--luzmo-iq-tooltip-color: #fff; /* Tooltip text color, defaults to #fff (white) */
|
|
472
|
+
--luzmo-iq-tooltip-font-size: 0.8125rem; /* Tooltip font size, defaults to 0.8125rem */
|
|
473
473
|
```
|
|
474
474
|
|
|
475
475
|
## Changelog
|
package/index.cjs
CHANGED
|
@@ -62,7 +62,7 @@ var import_style_map = require("lit/directives/style-map.js");
|
|
|
62
62
|
var import_shared_embed = require("@luzmo/shared-embed");
|
|
63
63
|
|
|
64
64
|
// libs/embed-libs/embed/package.json
|
|
65
|
-
var version = "6.
|
|
65
|
+
var version = "6.2.0";
|
|
66
66
|
|
|
67
67
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
68
68
|
var LuzmoService = class {
|
package/index.js
CHANGED
package/luzmo-embed.min.js
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "3.1.2",
|
|
6
|
-
"@luzmo/shared-embed": "5.
|
|
7
|
-
"@luzmo/dashboard-contents-types": "1.0.
|
|
6
|
+
"@luzmo/shared-embed": "5.2.0",
|
|
7
|
+
"@luzmo/dashboard-contents-types": "1.0.5"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"keywords": [
|