@gooddata/sdk-ui-gen-ai 11.58.0-alpha.3 → 11.58.0-alpha.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.
@@ -1 +1 @@
1
- {"version":3,"file":"useDashboardAmbientContext.d.ts","sourceRoot":"","sources":["../../../src/context/hooks/useDashboardAmbientContext.ts"],"names":[],"mappings":"AAaA,OAAO,EAEH,KAAK,0BAA0B,EAYlC,MAAM,4BAA4B,CAAC;AAMpC,wBAAgB,0BAA0B,CAAC,iBAAiB,CAAC,EAAE,0BAA0B,QAQxF"}
1
+ {"version":3,"file":"useDashboardAmbientContext.d.ts","sourceRoot":"","sources":["../../../src/context/hooks/useDashboardAmbientContext.ts"],"names":[],"mappings":"AAOA,OAAO,EAEH,KAAK,0BAA0B,EAYlC,MAAM,4BAA4B,CAAC;AAOpC,wBAAgB,0BAA0B,CAAC,iBAAiB,CAAC,EAAE,0BAA0B,QAQxF"}
@@ -1,8 +1,9 @@
1
1
  // (C) 2026 GoodData Corporation
2
2
  import { useEffect, useRef } from "react";
3
3
  import { useDispatch } from "react-redux";
4
- import { idRef, serializeObjRef, } from "@gooddata/sdk-model";
4
+ import { idRef, serializeObjRef } from "@gooddata/sdk-model";
5
5
  import { newDisplayFormMap, selectActiveTab, selectAllFiltersForWidgetByRefAcrossTabs, selectAllTabsWidgetContexts, selectAttributeFilterDisplayFormsMap, selectDashboardId, selectDashboardTitle, selectDashboardWorkingDefinition, selectFilterContextFilters, selectIsNewDashboard, selectVisualizationSwitcherActiveVisualizations, } from "@gooddata/sdk-ui-dashboard";
6
+ import { dashboardFilterToFilterContextItem } from "@gooddata/sdk-ui-dashboard/internal";
6
7
  import { setAmbientUserContextAction } from "../../store/chatWindow/chatWindowSlice.js";
7
8
  import { mergeContexts } from "../build.js";
8
9
  import { buildDashboardContext, buildFiltersContext, buildWidgetsContext } from "../dashboard.js";
@@ -36,7 +37,9 @@ function buildFromDashboard(dashboardSelector) {
36
37
  for (const context of widgetContexts) {
37
38
  widgetsMap.set(context.widget.ref, context.widget);
38
39
  const [commonDateFilters, otherFilters] = dashboardSelector(selectAllFiltersForWidgetByRefAcrossTabs(context.widget.ref));
39
- widgetFiltersMap.set(serializeObjRef(context.widget.ref), buildFiltersContext([...commonDateFilters, ...otherFilters], displayForms));
40
+ widgetFiltersMap.set(serializeObjRef(context.widget.ref), buildFiltersContext([...commonDateFilters, ...otherFilters]
41
+ .map((f) => dashboardFilterToFilterContextItem(f, true))
42
+ .filter((f) => !!f), displayForms));
40
43
  }
41
44
  const activeTab = selectWithOptional(dashboardSelector, selectActiveTab);
42
45
  const workingDefinition = selectWithOptional(dashboardSelector, selectDashboardWorkingDefinition);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-gen-ai",
3
- "version": "11.58.0-alpha.3",
3
+ "version": "11.58.0-alpha.5",
4
4
  "description": "GoodData GenAI SDK",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -57,19 +57,19 @@
57
57
  "reselect": "5.1.1",
58
58
  "tslib": "2.8.1",
59
59
  "uuid": "11.1.1",
60
- "@gooddata/api-client-tiger": "11.58.0-alpha.3",
61
- "@gooddata/sdk-backend-spi": "11.58.0-alpha.3",
62
- "@gooddata/sdk-model": "11.58.0-alpha.3",
63
- "@gooddata/sdk-ui": "11.58.0-alpha.3",
64
- "@gooddata/sdk-ui-charts": "11.58.0-alpha.3",
65
- "@gooddata/sdk-ui-dashboard": "11.58.0-alpha.3",
66
- "@gooddata/sdk-ui-filters": "11.58.0-alpha.3",
67
- "@gooddata/sdk-ui-geo": "11.58.0-alpha.3",
68
- "@gooddata/sdk-ui-pivot": "11.58.0-alpha.3",
69
- "@gooddata/sdk-ui-kit": "11.58.0-alpha.3",
70
- "@gooddata/sdk-ui-semantic-search": "11.58.0-alpha.3",
71
- "@gooddata/sdk-ui-theme-provider": "11.58.0-alpha.3",
72
- "@gooddata/util": "11.58.0-alpha.3"
60
+ "@gooddata/api-client-tiger": "11.58.0-alpha.5",
61
+ "@gooddata/sdk-backend-spi": "11.58.0-alpha.5",
62
+ "@gooddata/sdk-ui": "11.58.0-alpha.5",
63
+ "@gooddata/sdk-ui-charts": "11.58.0-alpha.5",
64
+ "@gooddata/sdk-model": "11.58.0-alpha.5",
65
+ "@gooddata/sdk-ui-dashboard": "11.58.0-alpha.5",
66
+ "@gooddata/sdk-ui-filters": "11.58.0-alpha.5",
67
+ "@gooddata/sdk-ui-geo": "11.58.0-alpha.5",
68
+ "@gooddata/sdk-ui-kit": "11.58.0-alpha.5",
69
+ "@gooddata/sdk-ui-pivot": "11.58.0-alpha.5",
70
+ "@gooddata/sdk-ui-semantic-search": "11.58.0-alpha.5",
71
+ "@gooddata/util": "11.58.0-alpha.5",
72
+ "@gooddata/sdk-ui-theme-provider": "11.58.0-alpha.5"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@microsoft/api-documenter": "7.30.10",
@@ -108,12 +108,12 @@
108
108
  "typescript": "7.0.2",
109
109
  "vitest": "4.1.11",
110
110
  "vitest-dom": "0.1.1",
111
- "@gooddata/eslint-config": "11.58.0-alpha.3",
112
- "@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.3",
113
- "@gooddata/stylelint-config": "11.58.0-alpha.3",
114
- "@gooddata/oxlint-config": "11.58.0-alpha.3",
115
- "@gooddata/reference-workspace": "11.58.0-alpha.3",
116
- "@gooddata/i18n-toolkit": "11.58.0-alpha.3"
111
+ "@gooddata/eslint-config": "11.58.0-alpha.5",
112
+ "@gooddata/i18n-toolkit": "11.58.0-alpha.5",
113
+ "@gooddata/oxlint-config": "11.58.0-alpha.5",
114
+ "@gooddata/reference-workspace": "11.58.0-alpha.5",
115
+ "@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.5",
116
+ "@gooddata/stylelint-config": "11.58.0-alpha.5"
117
117
  },
118
118
  "peerDependencies": {
119
119
  "react": "^18.0.0 || ^19.0.0",