dp-widgets-framework 1.0.7 → 1.0.9

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/dist/index.esm.js CHANGED
@@ -36613,7 +36613,7 @@ function CopilotKitAgent({ widget, showHeader, styles, onResetReady, widgetIds,
36613
36613
  title: ((_29 = widget.config) === null || _29 === void 0 ? void 0 : _29.copilotTitle) || widget.title,
36614
36614
  initial: ((_30 = widget.config) === null || _30 === void 0 ? void 0 : _30.copilotInitialMessage) || ((_31 = widget.config) === null || _31 === void 0 ? void 0 : _31.placeholder) || "How can I help you today?"
36615
36615
  }, onSubmitMessage: () => {
36616
- setChartState(prevState => (Object.assign(Object.assign({}, prevState), { widget_ids: widgetIds })));
36616
+ setChartState(prevState => (Object.assign(Object.assign({}, prevState), { widget_ids: widgetIds, dataset_id: datasetId })));
36617
36617
  } })) })] }));
36618
36618
  }
36619
36619
  function AgentWidget({ widget, showHeader = true, widgetBackendUrl, onResetReady, widgetIds, datasetId, }) {
package/dist/index.js CHANGED
@@ -36640,7 +36640,7 @@ function CopilotKitAgent({ widget, showHeader, styles, onResetReady, widgetIds,
36640
36640
  title: ((_29 = widget.config) === null || _29 === void 0 ? void 0 : _29.copilotTitle) || widget.title,
36641
36641
  initial: ((_30 = widget.config) === null || _30 === void 0 ? void 0 : _30.copilotInitialMessage) || ((_31 = widget.config) === null || _31 === void 0 ? void 0 : _31.placeholder) || "How can I help you today?"
36642
36642
  }, onSubmitMessage: () => {
36643
- setChartState(prevState => (Object.assign(Object.assign({}, prevState), { widget_ids: widgetIds })));
36643
+ setChartState(prevState => (Object.assign(Object.assign({}, prevState), { widget_ids: widgetIds, dataset_id: datasetId })));
36644
36644
  } })) })] }));
36645
36645
  }
36646
36646
  function AgentWidget({ widget, showHeader = true, widgetBackendUrl, onResetReady, widgetIds, datasetId, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dp-widgets-framework",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"