@sigmacomputing/embed-sdk 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +102 -5
- package/dist/index.d.ts +102 -5
- package/dist/index.js +150 -3
- package/dist/index.mjs +136 -3
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
@@ -26,14 +26,40 @@ interface LevelTableColumnCell_t extends Cell_t {
|
|
26
26
|
}
|
27
27
|
type LevelTableCell_t = LevelTableValueCell_t | LevelTableColumnCell_t;
|
28
28
|
type LevelTableCells = LevelTableCell_t[];
|
29
|
+
interface PathChunk_t {
|
30
|
+
name: string;
|
31
|
+
value: Value_t;
|
32
|
+
}
|
33
|
+
type PivotPath_t = PathChunk_t[];
|
34
|
+
interface PivotTableCell_t extends Cell_t {
|
35
|
+
rowPath: PivotPath_t | null;
|
36
|
+
columnPath: PivotPath_t | null;
|
37
|
+
}
|
38
|
+
type PivotTableCells_t = PivotTableCell_t[];
|
39
|
+
type ChartValue_t = Record<string, Value_t>;
|
40
|
+
type ChartValues_t = ChartValue_t[];
|
29
41
|
declare const WorkbookLoadedEventName: "workbook:loaded";
|
30
42
|
declare const WorkbookErrorEventName: "workbook:error";
|
31
|
-
declare const
|
43
|
+
declare const WorkbookVariableEventOnChangeName: "workbook:variables:onchange";
|
32
44
|
declare const WorkbookTableCellSelectEventName: "workbook:table:oncellselect";
|
33
45
|
declare const WorkbookPublishedEventName: "workbook:published";
|
34
46
|
declare const WorkbookFullScreenEventName: "workbook:fullscreen:onchange";
|
35
47
|
declare const WorkbookPageHeightEventName: "workbook:pageheight:onchange";
|
36
48
|
declare const WorkbookPageSelectedNodeEventName: "workbook:selectednodeid:onchange";
|
49
|
+
declare const WorkbookPivotTableCellSelectEventName: "workbook:pivottable:oncellselect";
|
50
|
+
declare const WorkbookChartValueSelectEventName: "workbook:chart:onvalueselect";
|
51
|
+
declare const WorkbookCurrentVariablesEventName: "workbook:variables:current";
|
52
|
+
declare const WorkbookBookmarkOnCreateEventName: "workbook:bookmark:oncreate";
|
53
|
+
declare const WorkbookDataLoadedEventName: "workbook:dataloaded";
|
54
|
+
declare const WorkbookChartErrorEventName: "workbook:chart:error";
|
55
|
+
declare const WorkbookExploreKeyOnChangeEventName: "workbook:explorekey:onchange";
|
56
|
+
declare const WorkbookBookmarkOnChangeEventName: "workbook:bookmark:onchange";
|
57
|
+
declare const UrlOnChangeEventName: "url:onchange";
|
58
|
+
declare const WorkbookIdOnChangeEventName: "workbook:id:onchange";
|
59
|
+
declare const WorkbookBookmarkCreateEventName: "workbook:bookmark:create";
|
60
|
+
declare const WorkbookBookmarkUpdateEventName: "workbook:bookmark:update";
|
61
|
+
declare const WorkbookFullscreenUpdateEventName: "workbook:fullscreen:update";
|
62
|
+
declare const WorkbookSelectedNodeIdUpdateEventName: "workbook:selectednodeid:update";
|
37
63
|
interface WorkbookLoadedEvent {
|
38
64
|
type: typeof WorkbookLoadedEventName;
|
39
65
|
workbook: {
|
@@ -45,8 +71,8 @@ interface WorkbookErrorEvent {
|
|
45
71
|
code: string;
|
46
72
|
message: string;
|
47
73
|
}
|
48
|
-
interface
|
49
|
-
type: typeof
|
74
|
+
interface WorkbookVariableOnChangeEvent {
|
75
|
+
type: typeof WorkbookVariableEventOnChangeName;
|
50
76
|
variables: Record<string, string>;
|
51
77
|
}
|
52
78
|
interface WorkbookTableCellSelectEvent {
|
@@ -71,14 +97,85 @@ type WorkbookPageSelectedNodeEvent = {
|
|
71
97
|
type: typeof WorkbookPageSelectedNodeEventName;
|
72
98
|
selectedNodeId: string | null;
|
73
99
|
};
|
100
|
+
type WorkbookPivotTableCellSelectEvent = {
|
101
|
+
type: typeof WorkbookPivotTableCellSelectEventName;
|
102
|
+
nodeId: string;
|
103
|
+
title: string;
|
104
|
+
cells: PivotTableCells_t;
|
105
|
+
};
|
106
|
+
type WorkbookChartValueSelectEvent = {
|
107
|
+
type: typeof WorkbookChartValueSelectEventName;
|
108
|
+
nodeId: string;
|
109
|
+
title: string;
|
110
|
+
values: ChartValues_t;
|
111
|
+
};
|
112
|
+
type WorkbookCurrentVariablesEvent = {
|
113
|
+
type: typeof WorkbookCurrentVariablesEventName;
|
114
|
+
variables: Record<string, string>;
|
115
|
+
};
|
116
|
+
type WorkbookBookmarkOnCreateEvent = {
|
117
|
+
type: typeof WorkbookBookmarkOnCreateEventName;
|
118
|
+
bookmarkName: string;
|
119
|
+
workbookId: string;
|
120
|
+
versionTagName: string | null;
|
121
|
+
bookmarkId: string;
|
122
|
+
};
|
123
|
+
type WorkbookDataLoadedEvent = {
|
124
|
+
type: typeof WorkbookDataLoadedEventName;
|
125
|
+
};
|
126
|
+
type WorkbookChartErrorEvent = {
|
127
|
+
type: typeof WorkbookChartErrorEventName;
|
128
|
+
message: string | undefined;
|
129
|
+
code: string;
|
130
|
+
nodeId: string;
|
131
|
+
};
|
132
|
+
type WorkbookExploreKeyOnChangeEvent = {
|
133
|
+
type: typeof WorkbookExploreKeyOnChangeEventName;
|
134
|
+
exploreKey: string | null;
|
135
|
+
};
|
136
|
+
type WorkbookBookmarkOnChangeEvent = {
|
137
|
+
type: typeof WorkbookBookmarkOnChangeEventName;
|
138
|
+
bookmarkName: string | null;
|
139
|
+
workbookId: string;
|
140
|
+
versionTagName: string | null;
|
141
|
+
bookmarkId: string | null;
|
142
|
+
};
|
143
|
+
type UrlOnChangeEvent = {
|
144
|
+
type: typeof UrlOnChangeEventName;
|
145
|
+
url: string;
|
146
|
+
};
|
147
|
+
type WorkbookIdOnChangeEvent = {
|
148
|
+
type: typeof WorkbookIdOnChangeEventName;
|
149
|
+
id: string;
|
150
|
+
};
|
151
|
+
type WorkbookBookmarkCreateEvent = {
|
152
|
+
name: string;
|
153
|
+
isDefault: boolean;
|
154
|
+
isShared: boolean;
|
155
|
+
};
|
74
156
|
|
75
157
|
declare const workbookLoadedListener: (event: MessageEvent, iframe: HTMLIFrameElement, onLoaded: (event: WorkbookLoadedEvent) => void) => void;
|
76
158
|
declare const workbookErrorListener: (event: MessageEvent, iframe: HTMLIFrameElement, onError: (event: WorkbookErrorEvent) => void) => void;
|
77
|
-
declare const workbookVariableListener: (event: MessageEvent, iframe: HTMLIFrameElement, onVariable: (event:
|
159
|
+
declare const workbookVariableListener: (event: MessageEvent, iframe: HTMLIFrameElement, onVariable: (event: WorkbookVariableOnChangeEvent) => void) => void;
|
78
160
|
declare const workbookTableCellSelectListener: (event: MessageEvent, iframe: HTMLIFrameElement, onTableCellSelect: (event: WorkbookTableCellSelectEvent) => void) => void;
|
79
161
|
declare const workbookPublishedListener: (event: MessageEvent, iframe: HTMLIFrameElement, onPublished: (event: WorkbookPublishedEvent) => void) => void;
|
80
162
|
declare const workbookFullScreenListener: (event: MessageEvent, iframe: HTMLIFrameElement, onFullScreen: (event: WorkbookFullScreenEvent) => void) => void;
|
81
163
|
declare const workbookPageHeightListener: (event: MessageEvent, iframe: HTMLIFrameElement, onPageHeight: (event: WorkbookPageHeightEvent) => void) => void;
|
82
164
|
declare const workbookPageSelectedNodeListener: (event: MessageEvent, iframe: HTMLIFrameElement, onPageSelectedNode: (event: WorkbookPageSelectedNodeEvent) => void) => void;
|
165
|
+
declare const workbookPivotTableCellSelectListener: (event: MessageEvent, iframe: HTMLIFrameElement, onPivotTableCellSelect: (event: WorkbookPivotTableCellSelectEvent) => void) => void;
|
166
|
+
declare const workbookChartValueSelectListener: (event: MessageEvent, iframe: HTMLIFrameElement, onChartValueSelect: (event: WorkbookChartValueSelectEvent) => void) => void;
|
167
|
+
declare const workbookCurrentVariablesListener: (event: MessageEvent, iframe: HTMLIFrameElement, onCurrentVariables: (event: WorkbookCurrentVariablesEvent) => void) => void;
|
168
|
+
declare const workbookBookmarkCreateListener: (event: MessageEvent, iframe: HTMLIFrameElement, onBookmarkCreate: (event: WorkbookBookmarkOnCreateEvent) => void) => void;
|
169
|
+
declare const workbookDataLoadedListener: (event: MessageEvent, iframe: HTMLIFrameElement, onWorkbookDataLoaded: (event: WorkbookDataLoadedEvent) => void) => void;
|
170
|
+
declare const workbookChartErrorListener: (event: MessageEvent, iframe: HTMLIFrameElement, onChartError: (event: WorkbookChartErrorEvent) => void) => void;
|
171
|
+
declare const workbookExploreKeyOnChangeListener: (event: MessageEvent, iframe: HTMLIFrameElement, onExploreKeyOnChange: (event: WorkbookExploreKeyOnChangeEvent) => void) => void;
|
172
|
+
declare const workbookBookmarkOnChangeListener: (event: MessageEvent, iframe: HTMLIFrameElement, onBookmarkChange: (event: WorkbookBookmarkOnChangeEvent) => void) => void;
|
173
|
+
declare const urlOnChangeListener: (event: MessageEvent, iframe: HTMLIFrameElement, onUrlChange: (event: UrlOnChangeEvent) => void) => void;
|
174
|
+
declare const workbookIdOnChangeListener: (event: MessageEvent, iframe: HTMLIFrameElement, onWorkbookIdChange: (event: WorkbookIdOnChangeEvent) => void) => void;
|
175
|
+
|
176
|
+
declare const workbookBookmarkCreate: (iframe: HTMLIFrameElement, bookmark: WorkbookBookmarkCreateEvent) => void;
|
177
|
+
declare const workbookBookmarkUpdate: (iframe: HTMLIFrameElement) => void;
|
178
|
+
declare const workbookFullscreenUpdate: (iframe: HTMLIFrameElement, nodeId: string | null) => void;
|
179
|
+
declare const workbookSelectedNodeIdUpdate: (iframe: HTMLIFrameElement, nodeId: string, nodeType: "element" | "page") => void;
|
83
180
|
|
84
|
-
export { workbookErrorListener, workbookFullScreenListener, workbookLoadedListener, workbookPageHeightListener, workbookPageSelectedNodeListener, workbookPublishedListener, workbookTableCellSelectListener, workbookVariableListener };
|
181
|
+
export { CellType_t, type Cell_t, type ChartValue_t, type ChartValues_t, type DataRow_t, type DataRows_t, type Data_t, type LevelTableCell_t, type LevelTableCells, type LevelTableColumnCell_t, type LevelTableValueCell_t, type PathChunk_t, type PivotPath_t, type PivotTableCell_t, type PivotTableCells_t, type UrlOnChangeEvent, UrlOnChangeEventName, type Value_t, type WorkbookBookmarkCreateEvent, WorkbookBookmarkCreateEventName, type WorkbookBookmarkOnChangeEvent, WorkbookBookmarkOnChangeEventName, type WorkbookBookmarkOnCreateEvent, WorkbookBookmarkOnCreateEventName, WorkbookBookmarkUpdateEventName, type WorkbookChartErrorEvent, WorkbookChartErrorEventName, type WorkbookChartValueSelectEvent, WorkbookChartValueSelectEventName, type WorkbookCurrentVariablesEvent, WorkbookCurrentVariablesEventName, type WorkbookDataLoadedEvent, WorkbookDataLoadedEventName, type WorkbookErrorEvent, WorkbookErrorEventName, type WorkbookExploreKeyOnChangeEvent, WorkbookExploreKeyOnChangeEventName, type WorkbookFullScreenEvent, WorkbookFullScreenEventName, WorkbookFullscreenUpdateEventName, type WorkbookIdOnChangeEvent, WorkbookIdOnChangeEventName, type WorkbookLoadedEvent, WorkbookLoadedEventName, type WorkbookPageHeightEvent, WorkbookPageHeightEventName, type WorkbookPageSelectedNodeEvent, WorkbookPageSelectedNodeEventName, type WorkbookPivotTableCellSelectEvent, WorkbookPivotTableCellSelectEventName, type WorkbookPublishedEvent, WorkbookPublishedEventName, WorkbookSelectedNodeIdUpdateEventName, type WorkbookTableCellSelectEvent, WorkbookTableCellSelectEventName, WorkbookVariableEventOnChangeName, type WorkbookVariableOnChangeEvent, urlOnChangeListener, workbookBookmarkCreate, workbookBookmarkCreateListener, workbookBookmarkOnChangeListener, workbookBookmarkUpdate, workbookChartErrorListener, workbookChartValueSelectListener, workbookCurrentVariablesListener, workbookDataLoadedListener, workbookErrorListener, workbookExploreKeyOnChangeListener, workbookFullScreenListener, workbookFullscreenUpdate, workbookIdOnChangeListener, workbookLoadedListener, workbookPageHeightListener, workbookPageSelectedNodeListener, workbookPivotTableCellSelectListener, workbookPublishedListener, workbookSelectedNodeIdUpdate, workbookTableCellSelectListener, workbookVariableListener };
|
package/dist/index.d.ts
CHANGED
@@ -26,14 +26,40 @@ interface LevelTableColumnCell_t extends Cell_t {
|
|
26
26
|
}
|
27
27
|
type LevelTableCell_t = LevelTableValueCell_t | LevelTableColumnCell_t;
|
28
28
|
type LevelTableCells = LevelTableCell_t[];
|
29
|
+
interface PathChunk_t {
|
30
|
+
name: string;
|
31
|
+
value: Value_t;
|
32
|
+
}
|
33
|
+
type PivotPath_t = PathChunk_t[];
|
34
|
+
interface PivotTableCell_t extends Cell_t {
|
35
|
+
rowPath: PivotPath_t | null;
|
36
|
+
columnPath: PivotPath_t | null;
|
37
|
+
}
|
38
|
+
type PivotTableCells_t = PivotTableCell_t[];
|
39
|
+
type ChartValue_t = Record<string, Value_t>;
|
40
|
+
type ChartValues_t = ChartValue_t[];
|
29
41
|
declare const WorkbookLoadedEventName: "workbook:loaded";
|
30
42
|
declare const WorkbookErrorEventName: "workbook:error";
|
31
|
-
declare const
|
43
|
+
declare const WorkbookVariableEventOnChangeName: "workbook:variables:onchange";
|
32
44
|
declare const WorkbookTableCellSelectEventName: "workbook:table:oncellselect";
|
33
45
|
declare const WorkbookPublishedEventName: "workbook:published";
|
34
46
|
declare const WorkbookFullScreenEventName: "workbook:fullscreen:onchange";
|
35
47
|
declare const WorkbookPageHeightEventName: "workbook:pageheight:onchange";
|
36
48
|
declare const WorkbookPageSelectedNodeEventName: "workbook:selectednodeid:onchange";
|
49
|
+
declare const WorkbookPivotTableCellSelectEventName: "workbook:pivottable:oncellselect";
|
50
|
+
declare const WorkbookChartValueSelectEventName: "workbook:chart:onvalueselect";
|
51
|
+
declare const WorkbookCurrentVariablesEventName: "workbook:variables:current";
|
52
|
+
declare const WorkbookBookmarkOnCreateEventName: "workbook:bookmark:oncreate";
|
53
|
+
declare const WorkbookDataLoadedEventName: "workbook:dataloaded";
|
54
|
+
declare const WorkbookChartErrorEventName: "workbook:chart:error";
|
55
|
+
declare const WorkbookExploreKeyOnChangeEventName: "workbook:explorekey:onchange";
|
56
|
+
declare const WorkbookBookmarkOnChangeEventName: "workbook:bookmark:onchange";
|
57
|
+
declare const UrlOnChangeEventName: "url:onchange";
|
58
|
+
declare const WorkbookIdOnChangeEventName: "workbook:id:onchange";
|
59
|
+
declare const WorkbookBookmarkCreateEventName: "workbook:bookmark:create";
|
60
|
+
declare const WorkbookBookmarkUpdateEventName: "workbook:bookmark:update";
|
61
|
+
declare const WorkbookFullscreenUpdateEventName: "workbook:fullscreen:update";
|
62
|
+
declare const WorkbookSelectedNodeIdUpdateEventName: "workbook:selectednodeid:update";
|
37
63
|
interface WorkbookLoadedEvent {
|
38
64
|
type: typeof WorkbookLoadedEventName;
|
39
65
|
workbook: {
|
@@ -45,8 +71,8 @@ interface WorkbookErrorEvent {
|
|
45
71
|
code: string;
|
46
72
|
message: string;
|
47
73
|
}
|
48
|
-
interface
|
49
|
-
type: typeof
|
74
|
+
interface WorkbookVariableOnChangeEvent {
|
75
|
+
type: typeof WorkbookVariableEventOnChangeName;
|
50
76
|
variables: Record<string, string>;
|
51
77
|
}
|
52
78
|
interface WorkbookTableCellSelectEvent {
|
@@ -71,14 +97,85 @@ type WorkbookPageSelectedNodeEvent = {
|
|
71
97
|
type: typeof WorkbookPageSelectedNodeEventName;
|
72
98
|
selectedNodeId: string | null;
|
73
99
|
};
|
100
|
+
type WorkbookPivotTableCellSelectEvent = {
|
101
|
+
type: typeof WorkbookPivotTableCellSelectEventName;
|
102
|
+
nodeId: string;
|
103
|
+
title: string;
|
104
|
+
cells: PivotTableCells_t;
|
105
|
+
};
|
106
|
+
type WorkbookChartValueSelectEvent = {
|
107
|
+
type: typeof WorkbookChartValueSelectEventName;
|
108
|
+
nodeId: string;
|
109
|
+
title: string;
|
110
|
+
values: ChartValues_t;
|
111
|
+
};
|
112
|
+
type WorkbookCurrentVariablesEvent = {
|
113
|
+
type: typeof WorkbookCurrentVariablesEventName;
|
114
|
+
variables: Record<string, string>;
|
115
|
+
};
|
116
|
+
type WorkbookBookmarkOnCreateEvent = {
|
117
|
+
type: typeof WorkbookBookmarkOnCreateEventName;
|
118
|
+
bookmarkName: string;
|
119
|
+
workbookId: string;
|
120
|
+
versionTagName: string | null;
|
121
|
+
bookmarkId: string;
|
122
|
+
};
|
123
|
+
type WorkbookDataLoadedEvent = {
|
124
|
+
type: typeof WorkbookDataLoadedEventName;
|
125
|
+
};
|
126
|
+
type WorkbookChartErrorEvent = {
|
127
|
+
type: typeof WorkbookChartErrorEventName;
|
128
|
+
message: string | undefined;
|
129
|
+
code: string;
|
130
|
+
nodeId: string;
|
131
|
+
};
|
132
|
+
type WorkbookExploreKeyOnChangeEvent = {
|
133
|
+
type: typeof WorkbookExploreKeyOnChangeEventName;
|
134
|
+
exploreKey: string | null;
|
135
|
+
};
|
136
|
+
type WorkbookBookmarkOnChangeEvent = {
|
137
|
+
type: typeof WorkbookBookmarkOnChangeEventName;
|
138
|
+
bookmarkName: string | null;
|
139
|
+
workbookId: string;
|
140
|
+
versionTagName: string | null;
|
141
|
+
bookmarkId: string | null;
|
142
|
+
};
|
143
|
+
type UrlOnChangeEvent = {
|
144
|
+
type: typeof UrlOnChangeEventName;
|
145
|
+
url: string;
|
146
|
+
};
|
147
|
+
type WorkbookIdOnChangeEvent = {
|
148
|
+
type: typeof WorkbookIdOnChangeEventName;
|
149
|
+
id: string;
|
150
|
+
};
|
151
|
+
type WorkbookBookmarkCreateEvent = {
|
152
|
+
name: string;
|
153
|
+
isDefault: boolean;
|
154
|
+
isShared: boolean;
|
155
|
+
};
|
74
156
|
|
75
157
|
declare const workbookLoadedListener: (event: MessageEvent, iframe: HTMLIFrameElement, onLoaded: (event: WorkbookLoadedEvent) => void) => void;
|
76
158
|
declare const workbookErrorListener: (event: MessageEvent, iframe: HTMLIFrameElement, onError: (event: WorkbookErrorEvent) => void) => void;
|
77
|
-
declare const workbookVariableListener: (event: MessageEvent, iframe: HTMLIFrameElement, onVariable: (event:
|
159
|
+
declare const workbookVariableListener: (event: MessageEvent, iframe: HTMLIFrameElement, onVariable: (event: WorkbookVariableOnChangeEvent) => void) => void;
|
78
160
|
declare const workbookTableCellSelectListener: (event: MessageEvent, iframe: HTMLIFrameElement, onTableCellSelect: (event: WorkbookTableCellSelectEvent) => void) => void;
|
79
161
|
declare const workbookPublishedListener: (event: MessageEvent, iframe: HTMLIFrameElement, onPublished: (event: WorkbookPublishedEvent) => void) => void;
|
80
162
|
declare const workbookFullScreenListener: (event: MessageEvent, iframe: HTMLIFrameElement, onFullScreen: (event: WorkbookFullScreenEvent) => void) => void;
|
81
163
|
declare const workbookPageHeightListener: (event: MessageEvent, iframe: HTMLIFrameElement, onPageHeight: (event: WorkbookPageHeightEvent) => void) => void;
|
82
164
|
declare const workbookPageSelectedNodeListener: (event: MessageEvent, iframe: HTMLIFrameElement, onPageSelectedNode: (event: WorkbookPageSelectedNodeEvent) => void) => void;
|
165
|
+
declare const workbookPivotTableCellSelectListener: (event: MessageEvent, iframe: HTMLIFrameElement, onPivotTableCellSelect: (event: WorkbookPivotTableCellSelectEvent) => void) => void;
|
166
|
+
declare const workbookChartValueSelectListener: (event: MessageEvent, iframe: HTMLIFrameElement, onChartValueSelect: (event: WorkbookChartValueSelectEvent) => void) => void;
|
167
|
+
declare const workbookCurrentVariablesListener: (event: MessageEvent, iframe: HTMLIFrameElement, onCurrentVariables: (event: WorkbookCurrentVariablesEvent) => void) => void;
|
168
|
+
declare const workbookBookmarkCreateListener: (event: MessageEvent, iframe: HTMLIFrameElement, onBookmarkCreate: (event: WorkbookBookmarkOnCreateEvent) => void) => void;
|
169
|
+
declare const workbookDataLoadedListener: (event: MessageEvent, iframe: HTMLIFrameElement, onWorkbookDataLoaded: (event: WorkbookDataLoadedEvent) => void) => void;
|
170
|
+
declare const workbookChartErrorListener: (event: MessageEvent, iframe: HTMLIFrameElement, onChartError: (event: WorkbookChartErrorEvent) => void) => void;
|
171
|
+
declare const workbookExploreKeyOnChangeListener: (event: MessageEvent, iframe: HTMLIFrameElement, onExploreKeyOnChange: (event: WorkbookExploreKeyOnChangeEvent) => void) => void;
|
172
|
+
declare const workbookBookmarkOnChangeListener: (event: MessageEvent, iframe: HTMLIFrameElement, onBookmarkChange: (event: WorkbookBookmarkOnChangeEvent) => void) => void;
|
173
|
+
declare const urlOnChangeListener: (event: MessageEvent, iframe: HTMLIFrameElement, onUrlChange: (event: UrlOnChangeEvent) => void) => void;
|
174
|
+
declare const workbookIdOnChangeListener: (event: MessageEvent, iframe: HTMLIFrameElement, onWorkbookIdChange: (event: WorkbookIdOnChangeEvent) => void) => void;
|
175
|
+
|
176
|
+
declare const workbookBookmarkCreate: (iframe: HTMLIFrameElement, bookmark: WorkbookBookmarkCreateEvent) => void;
|
177
|
+
declare const workbookBookmarkUpdate: (iframe: HTMLIFrameElement) => void;
|
178
|
+
declare const workbookFullscreenUpdate: (iframe: HTMLIFrameElement, nodeId: string | null) => void;
|
179
|
+
declare const workbookSelectedNodeIdUpdate: (iframe: HTMLIFrameElement, nodeId: string, nodeType: "element" | "page") => void;
|
83
180
|
|
84
|
-
export { workbookErrorListener, workbookFullScreenListener, workbookLoadedListener, workbookPageHeightListener, workbookPageSelectedNodeListener, workbookPublishedListener, workbookTableCellSelectListener, workbookVariableListener };
|
181
|
+
export { CellType_t, type Cell_t, type ChartValue_t, type ChartValues_t, type DataRow_t, type DataRows_t, type Data_t, type LevelTableCell_t, type LevelTableCells, type LevelTableColumnCell_t, type LevelTableValueCell_t, type PathChunk_t, type PivotPath_t, type PivotTableCell_t, type PivotTableCells_t, type UrlOnChangeEvent, UrlOnChangeEventName, type Value_t, type WorkbookBookmarkCreateEvent, WorkbookBookmarkCreateEventName, type WorkbookBookmarkOnChangeEvent, WorkbookBookmarkOnChangeEventName, type WorkbookBookmarkOnCreateEvent, WorkbookBookmarkOnCreateEventName, WorkbookBookmarkUpdateEventName, type WorkbookChartErrorEvent, WorkbookChartErrorEventName, type WorkbookChartValueSelectEvent, WorkbookChartValueSelectEventName, type WorkbookCurrentVariablesEvent, WorkbookCurrentVariablesEventName, type WorkbookDataLoadedEvent, WorkbookDataLoadedEventName, type WorkbookErrorEvent, WorkbookErrorEventName, type WorkbookExploreKeyOnChangeEvent, WorkbookExploreKeyOnChangeEventName, type WorkbookFullScreenEvent, WorkbookFullScreenEventName, WorkbookFullscreenUpdateEventName, type WorkbookIdOnChangeEvent, WorkbookIdOnChangeEventName, type WorkbookLoadedEvent, WorkbookLoadedEventName, type WorkbookPageHeightEvent, WorkbookPageHeightEventName, type WorkbookPageSelectedNodeEvent, WorkbookPageSelectedNodeEventName, type WorkbookPivotTableCellSelectEvent, WorkbookPivotTableCellSelectEventName, type WorkbookPublishedEvent, WorkbookPublishedEventName, WorkbookSelectedNodeIdUpdateEventName, type WorkbookTableCellSelectEvent, WorkbookTableCellSelectEventName, WorkbookVariableEventOnChangeName, type WorkbookVariableOnChangeEvent, urlOnChangeListener, workbookBookmarkCreate, workbookBookmarkCreateListener, workbookBookmarkOnChangeListener, workbookBookmarkUpdate, workbookChartErrorListener, workbookChartValueSelectListener, workbookCurrentVariablesListener, workbookDataLoadedListener, workbookErrorListener, workbookExploreKeyOnChangeListener, workbookFullScreenListener, workbookFullscreenUpdate, workbookIdOnChangeListener, workbookLoadedListener, workbookPageHeightListener, workbookPageSelectedNodeListener, workbookPivotTableCellSelectListener, workbookPublishedListener, workbookSelectedNodeIdUpdate, workbookTableCellSelectListener, workbookVariableListener };
|
package/dist/index.js
CHANGED
@@ -20,12 +20,26 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
20
20
|
// src/index.ts
|
21
21
|
var src_exports = {};
|
22
22
|
__export(src_exports, {
|
23
|
+
urlOnChangeListener: () => urlOnChangeListener,
|
24
|
+
workbookBookmarkCreate: () => workbookBookmarkCreate,
|
25
|
+
workbookBookmarkCreateListener: () => workbookBookmarkCreateListener,
|
26
|
+
workbookBookmarkOnChangeListener: () => workbookBookmarkOnChangeListener,
|
27
|
+
workbookBookmarkUpdate: () => workbookBookmarkUpdate,
|
28
|
+
workbookChartErrorListener: () => workbookChartErrorListener,
|
29
|
+
workbookChartValueSelectListener: () => workbookChartValueSelectListener,
|
30
|
+
workbookCurrentVariablesListener: () => workbookCurrentVariablesListener,
|
31
|
+
workbookDataLoadedListener: () => workbookDataLoadedListener,
|
23
32
|
workbookErrorListener: () => workbookErrorListener,
|
33
|
+
workbookExploreKeyOnChangeListener: () => workbookExploreKeyOnChangeListener,
|
24
34
|
workbookFullScreenListener: () => workbookFullScreenListener,
|
35
|
+
workbookFullscreenUpdate: () => workbookFullscreenUpdate,
|
36
|
+
workbookIdOnChangeListener: () => workbookIdOnChangeListener,
|
25
37
|
workbookLoadedListener: () => workbookLoadedListener,
|
26
38
|
workbookPageHeightListener: () => workbookPageHeightListener,
|
27
39
|
workbookPageSelectedNodeListener: () => workbookPageSelectedNodeListener,
|
40
|
+
workbookPivotTableCellSelectListener: () => workbookPivotTableCellSelectListener,
|
28
41
|
workbookPublishedListener: () => workbookPublishedListener,
|
42
|
+
workbookSelectedNodeIdUpdate: () => workbookSelectedNodeIdUpdate,
|
29
43
|
workbookTableCellSelectListener: () => workbookTableCellSelectListener,
|
30
44
|
workbookVariableListener: () => workbookVariableListener
|
31
45
|
});
|
@@ -34,14 +48,28 @@ module.exports = __toCommonJS(src_exports);
|
|
34
48
|
// src/types.ts
|
35
49
|
var WorkbookLoadedEventName = "workbook:loaded";
|
36
50
|
var WorkbookErrorEventName = "workbook:error";
|
37
|
-
var
|
51
|
+
var WorkbookVariableEventOnChangeName = "workbook:variables:onchange";
|
38
52
|
var WorkbookTableCellSelectEventName = "workbook:table:oncellselect";
|
39
53
|
var WorkbookPublishedEventName = "workbook:published";
|
40
54
|
var WorkbookFullScreenEventName = "workbook:fullscreen:onchange";
|
41
55
|
var WorkbookPageHeightEventName = "workbook:pageheight:onchange";
|
42
56
|
var WorkbookPageSelectedNodeEventName = "workbook:selectednodeid:onchange";
|
57
|
+
var WorkbookPivotTableCellSelectEventName = "workbook:pivottable:oncellselect";
|
58
|
+
var WorkbookChartValueSelectEventName = "workbook:chart:onvalueselect";
|
59
|
+
var WorkbookCurrentVariablesEventName = "workbook:variables:current";
|
60
|
+
var WorkbookBookmarkOnCreateEventName = "workbook:bookmark:oncreate";
|
61
|
+
var WorkbookDataLoadedEventName = "workbook:dataloaded";
|
62
|
+
var WorkbookChartErrorEventName = "workbook:chart:error";
|
63
|
+
var WorkbookExploreKeyOnChangeEventName = "workbook:explorekey:onchange";
|
64
|
+
var WorkbookBookmarkOnChangeEventName = "workbook:bookmark:onchange";
|
65
|
+
var UrlOnChangeEventName = "url:onchange";
|
66
|
+
var WorkbookIdOnChangeEventName = "workbook:id:onchange";
|
67
|
+
var WorkbookBookmarkCreateEventName = "workbook:bookmark:create";
|
68
|
+
var WorkbookBookmarkUpdateEventName = "workbook:bookmark:update";
|
69
|
+
var WorkbookFullscreenUpdateEventName = "workbook:fullscreen:update";
|
70
|
+
var WorkbookSelectedNodeIdUpdateEventName = "workbook:selectednodeid:update";
|
43
71
|
|
44
|
-
// src/
|
72
|
+
// src/wrapper.ts
|
45
73
|
var workbookLoadedListener = (event, iframe, onLoaded) => {
|
46
74
|
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
47
75
|
if (event.data.type === WorkbookLoadedEventName) {
|
@@ -58,7 +86,7 @@ var workbookErrorListener = (event, iframe, onError) => {
|
|
58
86
|
};
|
59
87
|
var workbookVariableListener = (event, iframe, onVariable) => {
|
60
88
|
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
61
|
-
if (event.data.type ===
|
89
|
+
if (event.data.type === WorkbookVariableEventOnChangeName) {
|
62
90
|
onVariable(event.data);
|
63
91
|
}
|
64
92
|
}
|
@@ -98,14 +126,133 @@ var workbookPageSelectedNodeListener = (event, iframe, onPageSelectedNode) => {
|
|
98
126
|
}
|
99
127
|
}
|
100
128
|
};
|
129
|
+
var workbookPivotTableCellSelectListener = (event, iframe, onPivotTableCellSelect) => {
|
130
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
131
|
+
if (event.data.type === WorkbookPivotTableCellSelectEventName) {
|
132
|
+
onPivotTableCellSelect(event.data);
|
133
|
+
}
|
134
|
+
}
|
135
|
+
};
|
136
|
+
var workbookChartValueSelectListener = (event, iframe, onChartValueSelect) => {
|
137
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
138
|
+
if (event.data.type === WorkbookChartValueSelectEventName) {
|
139
|
+
onChartValueSelect(event.data);
|
140
|
+
}
|
141
|
+
}
|
142
|
+
};
|
143
|
+
var workbookCurrentVariablesListener = (event, iframe, onCurrentVariables) => {
|
144
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
145
|
+
if (event.data.type === WorkbookCurrentVariablesEventName) {
|
146
|
+
onCurrentVariables(event.data);
|
147
|
+
}
|
148
|
+
}
|
149
|
+
};
|
150
|
+
var workbookBookmarkCreateListener = (event, iframe, onBookmarkCreate) => {
|
151
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
152
|
+
if (event.data.type === WorkbookBookmarkOnCreateEventName) {
|
153
|
+
onBookmarkCreate(event.data);
|
154
|
+
}
|
155
|
+
}
|
156
|
+
};
|
157
|
+
var workbookDataLoadedListener = (event, iframe, onWorkbookDataLoaded) => {
|
158
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
159
|
+
if (event.data.type === WorkbookDataLoadedEventName) {
|
160
|
+
onWorkbookDataLoaded(event.data);
|
161
|
+
}
|
162
|
+
}
|
163
|
+
};
|
164
|
+
var workbookChartErrorListener = (event, iframe, onChartError) => {
|
165
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
166
|
+
if (event.data.type === WorkbookChartErrorEventName) {
|
167
|
+
onChartError(event.data);
|
168
|
+
}
|
169
|
+
}
|
170
|
+
};
|
171
|
+
var workbookExploreKeyOnChangeListener = (event, iframe, onExploreKeyOnChange) => {
|
172
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
173
|
+
if (event.data.type === WorkbookExploreKeyOnChangeEventName) {
|
174
|
+
onExploreKeyOnChange(event.data);
|
175
|
+
}
|
176
|
+
}
|
177
|
+
};
|
178
|
+
var workbookBookmarkOnChangeListener = (event, iframe, onBookmarkChange) => {
|
179
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
180
|
+
if (event.data.type === WorkbookBookmarkOnChangeEventName) {
|
181
|
+
onBookmarkChange(event.data);
|
182
|
+
}
|
183
|
+
}
|
184
|
+
};
|
185
|
+
var urlOnChangeListener = (event, iframe, onUrlChange) => {
|
186
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
187
|
+
if (event.data.type === UrlOnChangeEventName) {
|
188
|
+
onUrlChange(event.data);
|
189
|
+
}
|
190
|
+
}
|
191
|
+
};
|
192
|
+
var workbookIdOnChangeListener = (event, iframe, onWorkbookIdChange) => {
|
193
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
194
|
+
if (event.data.type === WorkbookIdOnChangeEventName) {
|
195
|
+
onWorkbookIdChange(event.data);
|
196
|
+
}
|
197
|
+
}
|
198
|
+
};
|
199
|
+
|
200
|
+
// src/mutations.ts
|
201
|
+
var sendIframeMessage = (iframe, message) => {
|
202
|
+
if (!iframe.contentWindow) {
|
203
|
+
throw new Error("iframe contentWindow is not available");
|
204
|
+
}
|
205
|
+
iframe.contentWindow.postMessage(
|
206
|
+
message,
|
207
|
+
"https://staging.sigmacomputing.io"
|
208
|
+
);
|
209
|
+
};
|
210
|
+
var workbookBookmarkCreate = (iframe, bookmark) => {
|
211
|
+
sendIframeMessage(iframe, {
|
212
|
+
type: WorkbookBookmarkCreateEventName,
|
213
|
+
...bookmark
|
214
|
+
});
|
215
|
+
};
|
216
|
+
var workbookBookmarkUpdate = (iframe) => {
|
217
|
+
sendIframeMessage(iframe, {
|
218
|
+
type: WorkbookBookmarkUpdateEventName
|
219
|
+
});
|
220
|
+
};
|
221
|
+
var workbookFullscreenUpdate = (iframe, nodeId) => {
|
222
|
+
sendIframeMessage(iframe, {
|
223
|
+
type: WorkbookFullscreenUpdateEventName,
|
224
|
+
nodeId
|
225
|
+
});
|
226
|
+
};
|
227
|
+
var workbookSelectedNodeIdUpdate = (iframe, nodeId, nodeType) => {
|
228
|
+
sendIframeMessage(iframe, {
|
229
|
+
type: WorkbookSelectedNodeIdUpdateEventName,
|
230
|
+
nodeId,
|
231
|
+
nodeType
|
232
|
+
});
|
233
|
+
};
|
101
234
|
// Annotate the CommonJS export names for ESM import in node:
|
102
235
|
0 && (module.exports = {
|
236
|
+
urlOnChangeListener,
|
237
|
+
workbookBookmarkCreate,
|
238
|
+
workbookBookmarkCreateListener,
|
239
|
+
workbookBookmarkOnChangeListener,
|
240
|
+
workbookBookmarkUpdate,
|
241
|
+
workbookChartErrorListener,
|
242
|
+
workbookChartValueSelectListener,
|
243
|
+
workbookCurrentVariablesListener,
|
244
|
+
workbookDataLoadedListener,
|
103
245
|
workbookErrorListener,
|
246
|
+
workbookExploreKeyOnChangeListener,
|
104
247
|
workbookFullScreenListener,
|
248
|
+
workbookFullscreenUpdate,
|
249
|
+
workbookIdOnChangeListener,
|
105
250
|
workbookLoadedListener,
|
106
251
|
workbookPageHeightListener,
|
107
252
|
workbookPageSelectedNodeListener,
|
253
|
+
workbookPivotTableCellSelectListener,
|
108
254
|
workbookPublishedListener,
|
255
|
+
workbookSelectedNodeIdUpdate,
|
109
256
|
workbookTableCellSelectListener,
|
110
257
|
workbookVariableListener
|
111
258
|
});
|
package/dist/index.mjs
CHANGED
@@ -1,14 +1,28 @@
|
|
1
1
|
// src/types.ts
|
2
2
|
var WorkbookLoadedEventName = "workbook:loaded";
|
3
3
|
var WorkbookErrorEventName = "workbook:error";
|
4
|
-
var
|
4
|
+
var WorkbookVariableEventOnChangeName = "workbook:variables:onchange";
|
5
5
|
var WorkbookTableCellSelectEventName = "workbook:table:oncellselect";
|
6
6
|
var WorkbookPublishedEventName = "workbook:published";
|
7
7
|
var WorkbookFullScreenEventName = "workbook:fullscreen:onchange";
|
8
8
|
var WorkbookPageHeightEventName = "workbook:pageheight:onchange";
|
9
9
|
var WorkbookPageSelectedNodeEventName = "workbook:selectednodeid:onchange";
|
10
|
+
var WorkbookPivotTableCellSelectEventName = "workbook:pivottable:oncellselect";
|
11
|
+
var WorkbookChartValueSelectEventName = "workbook:chart:onvalueselect";
|
12
|
+
var WorkbookCurrentVariablesEventName = "workbook:variables:current";
|
13
|
+
var WorkbookBookmarkOnCreateEventName = "workbook:bookmark:oncreate";
|
14
|
+
var WorkbookDataLoadedEventName = "workbook:dataloaded";
|
15
|
+
var WorkbookChartErrorEventName = "workbook:chart:error";
|
16
|
+
var WorkbookExploreKeyOnChangeEventName = "workbook:explorekey:onchange";
|
17
|
+
var WorkbookBookmarkOnChangeEventName = "workbook:bookmark:onchange";
|
18
|
+
var UrlOnChangeEventName = "url:onchange";
|
19
|
+
var WorkbookIdOnChangeEventName = "workbook:id:onchange";
|
20
|
+
var WorkbookBookmarkCreateEventName = "workbook:bookmark:create";
|
21
|
+
var WorkbookBookmarkUpdateEventName = "workbook:bookmark:update";
|
22
|
+
var WorkbookFullscreenUpdateEventName = "workbook:fullscreen:update";
|
23
|
+
var WorkbookSelectedNodeIdUpdateEventName = "workbook:selectednodeid:update";
|
10
24
|
|
11
|
-
// src/
|
25
|
+
// src/wrapper.ts
|
12
26
|
var workbookLoadedListener = (event, iframe, onLoaded) => {
|
13
27
|
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
14
28
|
if (event.data.type === WorkbookLoadedEventName) {
|
@@ -25,7 +39,7 @@ var workbookErrorListener = (event, iframe, onError) => {
|
|
25
39
|
};
|
26
40
|
var workbookVariableListener = (event, iframe, onVariable) => {
|
27
41
|
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
28
|
-
if (event.data.type ===
|
42
|
+
if (event.data.type === WorkbookVariableEventOnChangeName) {
|
29
43
|
onVariable(event.data);
|
30
44
|
}
|
31
45
|
}
|
@@ -65,13 +79,132 @@ var workbookPageSelectedNodeListener = (event, iframe, onPageSelectedNode) => {
|
|
65
79
|
}
|
66
80
|
}
|
67
81
|
};
|
82
|
+
var workbookPivotTableCellSelectListener = (event, iframe, onPivotTableCellSelect) => {
|
83
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
84
|
+
if (event.data.type === WorkbookPivotTableCellSelectEventName) {
|
85
|
+
onPivotTableCellSelect(event.data);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
};
|
89
|
+
var workbookChartValueSelectListener = (event, iframe, onChartValueSelect) => {
|
90
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
91
|
+
if (event.data.type === WorkbookChartValueSelectEventName) {
|
92
|
+
onChartValueSelect(event.data);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
};
|
96
|
+
var workbookCurrentVariablesListener = (event, iframe, onCurrentVariables) => {
|
97
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
98
|
+
if (event.data.type === WorkbookCurrentVariablesEventName) {
|
99
|
+
onCurrentVariables(event.data);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
};
|
103
|
+
var workbookBookmarkCreateListener = (event, iframe, onBookmarkCreate) => {
|
104
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
105
|
+
if (event.data.type === WorkbookBookmarkOnCreateEventName) {
|
106
|
+
onBookmarkCreate(event.data);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
};
|
110
|
+
var workbookDataLoadedListener = (event, iframe, onWorkbookDataLoaded) => {
|
111
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
112
|
+
if (event.data.type === WorkbookDataLoadedEventName) {
|
113
|
+
onWorkbookDataLoaded(event.data);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
};
|
117
|
+
var workbookChartErrorListener = (event, iframe, onChartError) => {
|
118
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
119
|
+
if (event.data.type === WorkbookChartErrorEventName) {
|
120
|
+
onChartError(event.data);
|
121
|
+
}
|
122
|
+
}
|
123
|
+
};
|
124
|
+
var workbookExploreKeyOnChangeListener = (event, iframe, onExploreKeyOnChange) => {
|
125
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
126
|
+
if (event.data.type === WorkbookExploreKeyOnChangeEventName) {
|
127
|
+
onExploreKeyOnChange(event.data);
|
128
|
+
}
|
129
|
+
}
|
130
|
+
};
|
131
|
+
var workbookBookmarkOnChangeListener = (event, iframe, onBookmarkChange) => {
|
132
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
133
|
+
if (event.data.type === WorkbookBookmarkOnChangeEventName) {
|
134
|
+
onBookmarkChange(event.data);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
};
|
138
|
+
var urlOnChangeListener = (event, iframe, onUrlChange) => {
|
139
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
140
|
+
if (event.data.type === UrlOnChangeEventName) {
|
141
|
+
onUrlChange(event.data);
|
142
|
+
}
|
143
|
+
}
|
144
|
+
};
|
145
|
+
var workbookIdOnChangeListener = (event, iframe, onWorkbookIdChange) => {
|
146
|
+
if (event.source === iframe.contentWindow && event.origin === "https://staging.sigmacomputing.io") {
|
147
|
+
if (event.data.type === WorkbookIdOnChangeEventName) {
|
148
|
+
onWorkbookIdChange(event.data);
|
149
|
+
}
|
150
|
+
}
|
151
|
+
};
|
152
|
+
|
153
|
+
// src/mutations.ts
|
154
|
+
var sendIframeMessage = (iframe, message) => {
|
155
|
+
if (!iframe.contentWindow) {
|
156
|
+
throw new Error("iframe contentWindow is not available");
|
157
|
+
}
|
158
|
+
iframe.contentWindow.postMessage(
|
159
|
+
message,
|
160
|
+
"https://staging.sigmacomputing.io"
|
161
|
+
);
|
162
|
+
};
|
163
|
+
var workbookBookmarkCreate = (iframe, bookmark) => {
|
164
|
+
sendIframeMessage(iframe, {
|
165
|
+
type: WorkbookBookmarkCreateEventName,
|
166
|
+
...bookmark
|
167
|
+
});
|
168
|
+
};
|
169
|
+
var workbookBookmarkUpdate = (iframe) => {
|
170
|
+
sendIframeMessage(iframe, {
|
171
|
+
type: WorkbookBookmarkUpdateEventName
|
172
|
+
});
|
173
|
+
};
|
174
|
+
var workbookFullscreenUpdate = (iframe, nodeId) => {
|
175
|
+
sendIframeMessage(iframe, {
|
176
|
+
type: WorkbookFullscreenUpdateEventName,
|
177
|
+
nodeId
|
178
|
+
});
|
179
|
+
};
|
180
|
+
var workbookSelectedNodeIdUpdate = (iframe, nodeId, nodeType) => {
|
181
|
+
sendIframeMessage(iframe, {
|
182
|
+
type: WorkbookSelectedNodeIdUpdateEventName,
|
183
|
+
nodeId,
|
184
|
+
nodeType
|
185
|
+
});
|
186
|
+
};
|
68
187
|
export {
|
188
|
+
urlOnChangeListener,
|
189
|
+
workbookBookmarkCreate,
|
190
|
+
workbookBookmarkCreateListener,
|
191
|
+
workbookBookmarkOnChangeListener,
|
192
|
+
workbookBookmarkUpdate,
|
193
|
+
workbookChartErrorListener,
|
194
|
+
workbookChartValueSelectListener,
|
195
|
+
workbookCurrentVariablesListener,
|
196
|
+
workbookDataLoadedListener,
|
69
197
|
workbookErrorListener,
|
198
|
+
workbookExploreKeyOnChangeListener,
|
70
199
|
workbookFullScreenListener,
|
200
|
+
workbookFullscreenUpdate,
|
201
|
+
workbookIdOnChangeListener,
|
71
202
|
workbookLoadedListener,
|
72
203
|
workbookPageHeightListener,
|
73
204
|
workbookPageSelectedNodeListener,
|
205
|
+
workbookPivotTableCellSelectListener,
|
74
206
|
workbookPublishedListener,
|
207
|
+
workbookSelectedNodeIdUpdate,
|
75
208
|
workbookTableCellSelectListener,
|
76
209
|
workbookVariableListener
|
77
210
|
};
|
package/package.json
CHANGED
@@ -1,14 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sigmacomputing/embed-sdk",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.4",
|
4
4
|
"description": "JavaScript SDK to interact with Sigma Computing's Embed API",
|
5
|
-
"scripts": {
|
6
|
-
"prepublish": "npm run build",
|
7
|
-
"build": "tsup",
|
8
|
-
"watch": "tsup --watch",
|
9
|
-
"typecheck": "tsc --noEmit",
|
10
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
11
|
-
},
|
12
5
|
"author": "sigmacomputing",
|
13
6
|
"license": "ISC",
|
14
7
|
"exports": {
|
@@ -20,6 +13,13 @@
|
|
20
13
|
"dist"
|
21
14
|
],
|
22
15
|
"devDependencies": {
|
23
|
-
"@sigmacomputing/typescript-config": "
|
16
|
+
"@sigmacomputing/typescript-config": "0.0.0"
|
17
|
+
},
|
18
|
+
"scripts": {
|
19
|
+
"prepublish": "pnpm run build",
|
20
|
+
"build": "tsup",
|
21
|
+
"watch": "tsup --watch",
|
22
|
+
"typecheck": "tsc --noEmit",
|
23
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
24
24
|
}
|
25
|
-
}
|
25
|
+
}
|