@luzmo/embed 6.13.2 → 6.13.5
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 +15 -0
- package/index.cjs +77 -2
- package/index.js +77 -2
- package/luzmo-embed.min.js +902 -277
- package/package.json +2 -2
- package/src/lib/dashboard/dashboard-base.d.ts +5 -0
- package/src/lib/iq-components/luzmo-iq-chat.d.ts +12 -0
- package/src/lib/viz-item/viz-item.base.d.ts +2 -0
package/package.json
CHANGED
|
@@ -65,9 +65,14 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.WebC
|
|
|
65
65
|
iframeHeight?: string;
|
|
66
66
|
iframeWidth?: string;
|
|
67
67
|
_resizeObserver: ResizeObserver;
|
|
68
|
+
private _viewportTrackingActive;
|
|
69
|
+
private _onViewportChange;
|
|
68
70
|
constructor();
|
|
69
71
|
connectedCallback(): void;
|
|
70
72
|
disconnectedCallback(): void;
|
|
73
|
+
_startViewportTracking(): void;
|
|
74
|
+
_stopViewportTracking(): void;
|
|
75
|
+
private _postViewport;
|
|
71
76
|
firstUpdated(): void;
|
|
72
77
|
initComponent(): void;
|
|
73
78
|
setAllAttributes(): void;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import type { IQChatOptions } from '@luzmo/dashboard-contents-types';
|
|
2
2
|
import { LitElement, PropertyValues } from 'lit';
|
|
3
3
|
import type { TemplateResult } from 'lit-html';
|
|
4
|
+
export interface SerializedDashboardContext {
|
|
5
|
+
type: 'dashboard-context';
|
|
6
|
+
id: string;
|
|
7
|
+
json: unknown;
|
|
8
|
+
screen_mode?: string;
|
|
9
|
+
meta?: {
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
};
|
|
13
|
+
runtime_filters?: unknown[];
|
|
14
|
+
}
|
|
4
15
|
export declare class LuzmoIQEmbedChatComponent extends LitElement {
|
|
5
16
|
appServer?: string;
|
|
6
17
|
apiHost?: string;
|
|
@@ -14,6 +25,7 @@ export declare class LuzmoIQEmbedChatComponent extends LitElement {
|
|
|
14
25
|
remoteEntryServer: string;
|
|
15
26
|
aydHost: string;
|
|
16
27
|
availableDatasets?: string[];
|
|
28
|
+
dashboardContext?: SerializedDashboardContext;
|
|
17
29
|
chartElement: HTMLElement;
|
|
18
30
|
static styles: import("lit").CSSResult;
|
|
19
31
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
@@ -24,6 +24,7 @@ interface LuzmoVizItemComponentInterface extends HTMLElement {
|
|
|
24
24
|
authToken?: string;
|
|
25
25
|
dashboardId?: string;
|
|
26
26
|
itemId?: string;
|
|
27
|
+
aiMessageAssetId?: string;
|
|
27
28
|
getFilters: () => FilterGroup[];
|
|
28
29
|
export: (type?: VizItemExportType) => Promise<string | void>;
|
|
29
30
|
refreshData: () => void;
|
|
@@ -46,6 +47,7 @@ export declare class LuzmoBaseVizItem extends LitElement implements LuzmoVizItem
|
|
|
46
47
|
filters?: FilterGroup[];
|
|
47
48
|
dashboardId?: string;
|
|
48
49
|
itemId?: string;
|
|
50
|
+
aiMessageAssetId?: string;
|
|
49
51
|
selectedData: SharedLib.SelectedDataInput;
|
|
50
52
|
dashboardContentsVersion?: string;
|
|
51
53
|
libVersion?: string;
|