@gooddata/sdk-ui-dashboard 10.15.0-alpha.6 → 10.15.0-alpha.8

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.
Files changed (51) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.js +1 -1
  3. package/esm/model/index.d.ts +2 -2
  4. package/esm/model/index.d.ts.map +1 -1
  5. package/esm/model/index.js +1 -1
  6. package/esm/model/index.js.map +1 -1
  7. package/esm/model/queryServices/queryWidgetFilters.d.ts.map +1 -1
  8. package/esm/model/queryServices/queryWidgetFilters.js +2 -2
  9. package/esm/model/queryServices/queryWidgetFilters.js.map +1 -1
  10. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts +1 -1
  11. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.d.ts +1 -1
  12. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js +2 -2
  13. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js.map +1 -1
  14. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.d.ts +2 -2
  15. package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.d.ts.map +1 -1
  16. package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.d.ts +2 -2
  17. package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.d.ts.map +1 -1
  18. package/esm/model/react/useWidgetFilters.d.ts +2 -2
  19. package/esm/model/react/useWidgetFilters.d.ts.map +1 -1
  20. package/esm/model/react/useWidgetFilters.js.map +1 -1
  21. package/esm/model/store/layout/layoutSelectors.d.ts +1 -1
  22. package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
  23. package/esm/model/store/layout/layoutSelectors.js +6 -3
  24. package/esm/model/store/layout/layoutSelectors.js.map +1 -1
  25. package/esm/model/store/layout/layoutUtils.d.ts +1 -1
  26. package/esm/model/store/layout/layoutUtils.d.ts.map +1 -1
  27. package/esm/model/types/layoutTypes.d.ts +22 -2
  28. package/esm/model/types/layoutTypes.d.ts.map +1 -1
  29. package/esm/model/types/layoutTypes.js +9 -2
  30. package/esm/model/types/layoutTypes.js.map +1 -1
  31. package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
  32. package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +1 -0
  33. package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js.map +1 -1
  34. package/esm/presentation/dashboardContexts/types.d.ts +1 -1
  35. package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.d.ts +2 -2
  36. package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.d.ts.map +1 -1
  37. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +2 -2
  38. package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js.map +1 -1
  39. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
  40. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +13 -1
  41. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
  42. package/esm/presentation/layout/DashboardLayoutWidget.d.ts.map +1 -1
  43. package/esm/presentation/layout/DashboardLayoutWidget.js +13 -1
  44. package/esm/presentation/layout/DashboardLayoutWidget.js.map +1 -1
  45. package/esm/presentation/localization/bundles/en-AU.json +27 -27
  46. package/esm/presentation/localization/bundles/en-GB.json +15 -15
  47. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
  48. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +3 -3
  49. package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
  50. package/esm/sdk-ui-dashboard.d.ts +30 -8
  51. package/package.json +15 -15
@@ -128,7 +128,6 @@ import { DrillState as DrillState_2 } from './drillState.js';
128
128
  import { EntityId } from '@reduxjs/toolkit';
129
129
  import { EntityState } from '@reduxjs/toolkit';
130
130
  import { ExplicitDrill } from '@gooddata/sdk-ui';
131
- import { ExtendedDashboardWidget as ExtendedDashboardWidget_2 } from '../../index.js';
132
131
  import { FilterContextItem } from '@gooddata/sdk-model';
133
132
  import { FilterViewDialogMode as FilterViewDialogMode_2 } from './uiState.js';
134
133
  import { GoodDataSdkError } from '@gooddata/sdk-ui';
@@ -7050,13 +7049,23 @@ export declare type ExtendedDashboardItemTypes<T extends ReadonlyArray<ExtendedD
7050
7049
  */
7051
7050
  export declare type ExtendedDashboardLayoutSection = IDashboardLayoutSection<ExtendedDashboardWidget>;
7052
7051
 
7052
+ /**
7053
+ * Extension of the default {@link @gooddata/sdk-backend-spi#IDashboardLayoutWidget} type to also include view-only
7054
+ * custom widget types.
7055
+ *
7056
+ * @public
7057
+ */
7058
+ export declare interface ExtendedDashboardLayoutWidget extends IDashboardLayout<ExtendedDashboardWidget>, IBaseWidget, IDashboardObjectIdentity {
7059
+ type: "IDashboardLayout";
7060
+ }
7061
+
7053
7062
  /**
7054
7063
  * Extension of the default {@link @gooddata/sdk-backend-spi#IWidget} type to also include view-only
7055
7064
  * custom widget types.
7056
7065
  *
7057
7066
  * @public
7058
7067
  */
7059
- export declare type ExtendedDashboardWidget = IWidget | ICustomWidget;
7068
+ export declare type ExtendedDashboardWidget = IWidget | ICustomWidget | ExtendedDashboardLayoutWidget;
7060
7069
 
7061
7070
  /**
7062
7071
  * Dumps debug information about a widget into a string.
@@ -7066,6 +7075,13 @@ export declare type ExtendedDashboardWidget = IWidget | ICustomWidget;
7066
7075
  */
7067
7076
  export declare function extendedWidgetDebugStr(widget: ExtendedDashboardWidget): string;
7068
7077
 
7078
+ /**
7079
+ * Subset of widget types which support filtering.
7080
+ *
7081
+ * @public
7082
+ */
7083
+ export declare type FilterableDashboardWidget = IWidget | ICustomWidget;
7084
+
7069
7085
  /**
7070
7086
  * @internal
7071
7087
  */
@@ -12026,6 +12042,12 @@ export declare function isDrillDownDefinition(obj: unknown): obj is IDrillDownDe
12026
12042
  */
12027
12043
  export declare const isDrillTargetsAdded: (obj: unknown) => obj is DrillTargetsAdded;
12028
12044
 
12045
+ /**
12046
+ * Type-guard testing whether the provided object is an instance of {@link ExtendedDashboardLayoutWidget}.
12047
+ * @public
12048
+ */
12049
+ export declare function isExtendedDashboardLayoutWidget(obj: unknown): obj is ExtendedDashboardLayoutWidget;
12050
+
12029
12051
  /**
12030
12052
  * @beta
12031
12053
  */
@@ -12383,7 +12405,7 @@ export declare interface IUseCustomWidgetInsightDataViewConfig {
12383
12405
  */
12384
12406
  export declare interface IUseDashboardScheduledEmailsFiltersProps {
12385
12407
  scheduledExportToEdit?: IAutomationMetadataObject;
12386
- widget?: ExtendedDashboardWidget;
12408
+ widget?: FilterableDashboardWidget;
12387
12409
  insight?: IInsight;
12388
12410
  }
12389
12411
 
@@ -12408,7 +12430,7 @@ export declare interface IUseFiltersForWidgetScheduledExportProps {
12408
12430
  /**
12409
12431
  * Widget to get filters for.
12410
12432
  */
12411
- widget?: ExtendedDashboardWidget;
12433
+ widget?: FilterableDashboardWidget;
12412
12434
  /**
12413
12435
  * Insight to get filters for.
12414
12436
  */
@@ -13464,7 +13486,7 @@ export declare type OptionalProvider<T> = T extends (...args: infer TArgs) => in
13464
13486
  export declare type OptionalRichTextComponentProvider = OptionalProvider<RichTextComponentProvider>;
13465
13487
 
13466
13488
  /**
13467
- * @public
13489
+ * @alpha
13468
13490
  */
13469
13491
  export declare type OptionalVisualizationSwitcherComponentProvider = OptionalProvider<VisualizationSwitcherComponentProvider>;
13470
13492
 
@@ -15349,7 +15371,7 @@ export declare const selectAllowUnfinishedFeatures: DashboardSelector<boolean>;
15349
15371
 
15350
15372
  /**
15351
15373
  * Selects analytical widget by its ref. This selector will return undefined if the provided
15352
- * widget ref is for a custom widget.
15374
+ * widget ref is not analytical widget, eg. custom widget or nested layout.
15353
15375
  *
15354
15376
  * @remarks
15355
15377
  * To include custom widgets as well, use {@link selectWidgetByRef}.
@@ -19151,7 +19173,7 @@ export declare const useDashboardScheduledEmails: () => {
19151
19173
  automations: IAutomationMetadataObject[];
19152
19174
  automationsCount: number;
19153
19175
  numberOfAvailableDestinations: number;
19154
- widget: ExtendedDashboardWidget_2 | undefined;
19176
+ widget: IWidget | undefined;
19155
19177
  insight: IInsight | undefined;
19156
19178
  automationsLoading: boolean;
19157
19179
  automationsError: GoodDataSdkError | undefined;
@@ -19580,7 +19602,7 @@ export declare function useWidgetExecutionsHandler(widgetRef: ObjRef): {
19580
19602
  *
19581
19603
  * @public
19582
19604
  */
19583
- export declare function useWidgetFilters(widget: ExtendedDashboardWidget | undefined | null, insight?: IInsightDefinition): QueryProcessingState<IFilter[]>;
19605
+ export declare function useWidgetFilters(widget: FilterableDashboardWidget | undefined | null, insight?: IInsightDefinition): QueryProcessingState<IFilter[]>;
19584
19606
 
19585
19607
  /**
19586
19608
  * @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-dashboard",
3
- "version": "10.15.0-alpha.6",
3
+ "version": "10.15.0-alpha.8",
4
4
  "description": "GoodData SDK - Dashboard Component",
5
5
  "repository": {
6
6
  "type": "git",
@@ -57,17 +57,17 @@
57
57
  "ts-invariant": "^0.7.5",
58
58
  "tslib": "^2.5.0",
59
59
  "uuid": "^8.3.2",
60
- "@gooddata/sdk-backend-base": "10.15.0-alpha.6",
61
- "@gooddata/sdk-model": "10.15.0-alpha.6",
62
- "@gooddata/sdk-backend-spi": "10.15.0-alpha.6",
63
- "@gooddata/sdk-ui-filters": "10.15.0-alpha.6",
64
- "@gooddata/sdk-ui": "10.15.0-alpha.6",
65
- "@gooddata/sdk-ui-ext": "10.15.0-alpha.6",
66
- "@gooddata/sdk-ui-kit": "10.15.0-alpha.6",
67
- "@gooddata/sdk-ui-geo": "10.15.0-alpha.6",
68
- "@gooddata/sdk-ui-vis-commons": "10.15.0-alpha.6",
69
- "@gooddata/sdk-ui-theme-provider": "10.15.0-alpha.6",
70
- "@gooddata/util": "10.15.0-alpha.6"
60
+ "@gooddata/sdk-backend-base": "10.15.0-alpha.8",
61
+ "@gooddata/sdk-backend-spi": "10.15.0-alpha.8",
62
+ "@gooddata/sdk-ui": "10.15.0-alpha.8",
63
+ "@gooddata/sdk-model": "10.15.0-alpha.8",
64
+ "@gooddata/sdk-ui-ext": "10.15.0-alpha.8",
65
+ "@gooddata/sdk-ui-filters": "10.15.0-alpha.8",
66
+ "@gooddata/sdk-ui-geo": "10.15.0-alpha.8",
67
+ "@gooddata/sdk-ui-kit": "10.15.0-alpha.8",
68
+ "@gooddata/sdk-ui-theme-provider": "10.15.0-alpha.8",
69
+ "@gooddata/util": "10.15.0-alpha.8",
70
+ "@gooddata/sdk-ui-vis-commons": "10.15.0-alpha.8"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "react": "^16.10.0 || ^17.0.0 || ^18.0.0",
@@ -120,9 +120,9 @@
120
120
  "typescript": "5.3.3",
121
121
  "vitest": "1.0.4",
122
122
  "vitest-dom": "0.1.1",
123
- "@gooddata/i18n-toolkit": "10.15.0-alpha.6",
124
- "@gooddata/reference-workspace": "10.15.0-alpha.6",
125
- "@gooddata/sdk-backend-mockingbird": "10.15.0-alpha.6"
123
+ "@gooddata/i18n-toolkit": "10.15.0-alpha.8",
124
+ "@gooddata/reference-workspace": "10.15.0-alpha.8",
125
+ "@gooddata/sdk-backend-mockingbird": "10.15.0-alpha.8"
126
126
  },
127
127
  "scripts": {
128
128
  "clean": "rm -rf ci dist esm coverage *.log styles/css tsconfig.tsbuildinfo",