@gooddata/sdk-ui-ext 10.18.0-alpha.30 → 10.18.0-alpha.32

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 (99) hide show
  1. package/NOTICE +3 -3
  2. package/esm/index.d.ts +12 -2
  3. package/esm/index.d.ts.map +1 -1
  4. package/esm/index.js +10 -2
  5. package/esm/index.js.map +1 -1
  6. package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.d.ts +12 -0
  7. package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.d.ts.map +1 -1
  8. package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.js +10 -1
  9. package/esm/notificationsPanel/@staging/OrganizationContext/OrganizationContext.js.map +1 -1
  10. package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.d.ts +6 -4
  11. package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.d.ts.map +1 -1
  12. package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.js +1 -1
  13. package/esm/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.js.map +1 -1
  14. package/esm/notificationsPanel/Notification/AlertNotification.d.ts +2 -2
  15. package/esm/notificationsPanel/Notification/AlertNotification.d.ts.map +1 -1
  16. package/esm/notificationsPanel/Notification/AlertNotification.js +3 -3
  17. package/esm/notificationsPanel/Notification/AlertNotification.js.map +1 -1
  18. package/esm/notificationsPanel/Notification/DefaultNotification.d.ts +17 -4
  19. package/esm/notificationsPanel/Notification/DefaultNotification.d.ts.map +1 -1
  20. package/esm/notificationsPanel/Notification/DefaultNotification.js +6 -4
  21. package/esm/notificationsPanel/Notification/DefaultNotification.js.map +1 -1
  22. package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.d.ts +4 -1
  23. package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.d.ts.map +1 -1
  24. package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.js +1 -1
  25. package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.js.map +1 -1
  26. package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.d.ts +4 -1
  27. package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.d.ts.map +1 -1
  28. package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.js +1 -1
  29. package/esm/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.js.map +1 -1
  30. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.d.ts +66 -4
  31. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.d.ts.map +1 -1
  32. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.js +17 -35
  33. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsList.js.map +1 -1
  34. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.d.ts +9 -2
  35. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.d.ts.map +1 -1
  36. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.js +4 -2
  37. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.js.map +1 -1
  38. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.d.ts +9 -2
  39. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.d.ts.map +1 -1
  40. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.js +4 -2
  41. package/esm/notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.js.map +1 -1
  42. package/esm/notificationsPanel/NotificationsList/DefaultSkeletonItem.d.ts +19 -0
  43. package/esm/notificationsPanel/NotificationsList/DefaultSkeletonItem.d.ts.map +1 -0
  44. package/esm/notificationsPanel/NotificationsList/DefaultSkeletonItem.js +9 -0
  45. package/esm/notificationsPanel/NotificationsList/DefaultSkeletonItem.js.map +1 -0
  46. package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.d.ts +95 -5
  47. package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.d.ts.map +1 -1
  48. package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.js +7 -5
  49. package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.js.map +1 -1
  50. package/esm/notificationsPanel/NotificationsPanel/{DefaultOpenNotificationsPanelButton.d.ts → DefaultNotificationsPanelButton.d.ts} +8 -6
  51. package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelButton.d.ts.map +1 -0
  52. package/esm/notificationsPanel/NotificationsPanel/{DefaultOpenNotificationsPanelButton.js → DefaultNotificationsPanelButton.js} +4 -4
  53. package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelButton.js.map +1 -0
  54. package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.d.ts +8 -4
  55. package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.d.ts.map +1 -1
  56. package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.js +6 -4
  57. package/esm/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.js.map +1 -1
  58. package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.d.ts +73 -13
  59. package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.d.ts.map +1 -1
  60. package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.js +21 -11
  61. package/esm/notificationsPanel/NotificationsPanel/NotificationsPanel.js.map +1 -1
  62. package/esm/notificationsPanel/bem.d.ts +5 -0
  63. package/esm/notificationsPanel/bem.d.ts.map +1 -1
  64. package/esm/notificationsPanel/bem.js +6 -1
  65. package/esm/notificationsPanel/bem.js.map +1 -1
  66. package/esm/notificationsPanel/data/NotificationsContext.d.ts +16 -1
  67. package/esm/notificationsPanel/data/NotificationsContext.d.ts.map +1 -1
  68. package/esm/notificationsPanel/data/NotificationsContext.js +9 -3
  69. package/esm/notificationsPanel/data/NotificationsContext.js.map +1 -1
  70. package/esm/notificationsPanel/data/useFetchNotifications.d.ts +10 -8
  71. package/esm/notificationsPanel/data/useFetchNotifications.d.ts.map +1 -1
  72. package/esm/notificationsPanel/data/useFetchNotifications.js +10 -7
  73. package/esm/notificationsPanel/data/useFetchNotifications.js.map +1 -1
  74. package/esm/notificationsPanel/data/useNotificationFiltersDetail.d.ts.map +1 -1
  75. package/esm/notificationsPanel/data/useNotificationFiltersDetail.js +7 -8
  76. package/esm/notificationsPanel/data/useNotificationFiltersDetail.js.map +1 -1
  77. package/esm/notificationsPanel/data/useNotifications.d.ts +23 -3
  78. package/esm/notificationsPanel/data/useNotifications.d.ts.map +1 -1
  79. package/esm/notificationsPanel/data/useNotifications.js +9 -5
  80. package/esm/notificationsPanel/data/useNotifications.js.map +1 -1
  81. package/esm/notificationsPanel/types.d.ts +3 -1
  82. package/esm/notificationsPanel/types.d.ts.map +1 -1
  83. package/esm/notificationsPanel/types.js +1 -1
  84. package/esm/notificationsPanel/types.js.map +1 -1
  85. package/esm/sdk-ui-ext.d.ts +395 -54
  86. package/package.json +18 -18
  87. package/src/notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.scss +4 -6
  88. package/src/notificationsPanel/NotificationsPanel/{DefaultOpenNotificationsPanelButton.scss → DefaultNotificationsPanelButton.scss} +2 -2
  89. package/src/notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.scss +3 -1
  90. package/src/notificationsPanel/notificationPanel.scss +8 -3
  91. package/styles/css/main.css +500 -36
  92. package/styles/css/main.css.map +1 -1
  93. package/esm/notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.d.ts.map +0 -1
  94. package/esm/notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.js.map +0 -1
  95. package/esm/notificationsPanel/components/VirtualList.d.ts +0 -15
  96. package/esm/notificationsPanel/components/VirtualList.d.ts.map +0 -1
  97. package/esm/notificationsPanel/components/VirtualList.js +0 -78
  98. package/esm/notificationsPanel/components/VirtualList.js.map +0 -1
  99. package/src/notificationsPanel/components/VirtualList.scss +0 -32
package/NOTICE CHANGED
@@ -7,9 +7,9 @@
7
7
 
8
8
  The following 3rd-party software packages may be used by or distributed with gooddata-ui-sdk. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
9
9
 
10
- Date generated: 2024-12-20
10
+ Date generated: 2025-1-8
11
11
 
12
- Revision ID: 6544cd7bcc5304e094ab7788ea88129cbe5fbb6f
12
+ Revision ID: 07b123833b2e8892054b65c27c0027d008601676
13
13
 
14
14
  ================================================================================
15
15
  ================================================================================
@@ -72660,4 +72660,4 @@ POSSIBILITY OF SUCH DAMAGE.
72660
72660
  --------------------------------------------------------------------------------
72661
72661
  --------------------------------------------------------------------------------
72662
72662
 
72663
- Report Generated by FOSSA on 2024-12-20
72663
+ Report Generated by FOSSA on 2025-1-8
package/esm/index.d.ts CHANGED
@@ -34,15 +34,25 @@ export declare function getInsightVisualizationMeta(insight: IInsightDefinition,
34
34
  export * from "./internal/components/dialogs/userManagementDialogs/index.js";
35
35
  export * from "./internal/components/attributeHierarchies/index.js";
36
36
  export * from "./internal/components/pluggableVisualizations/alerts.js";
37
- export { DefaultOpenNotificationsPanelButton } from "./notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.js";
37
+ export { useNotifications } from "./notificationsPanel/data/useNotifications.js";
38
+ export type { IUseNotificationsProps } from "./notificationsPanel/data/useNotifications.js";
38
39
  export { NotificationsPanel } from "./notificationsPanel/NotificationsPanel/NotificationsPanel.js";
39
40
  export type { INotificationsPanelProps, INotificationsPanelCustomComponentsProps, } from "./notificationsPanel/NotificationsPanel/NotificationsPanel.js";
41
+ export { DefaultNotificationsPanel } from "./notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.js";
40
42
  export type { INotificationsPanelComponentProps } from "./notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.js";
41
- export type { IOpenNotificationsPanelButtonComponentProps } from "./notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.js";
43
+ export { DefaultNotificationsPanelButton } from "./notificationsPanel/NotificationsPanel/DefaultNotificationsPanelButton.js";
44
+ export type { INotificationsPanelButtonComponentProps } from "./notificationsPanel/NotificationsPanel/DefaultNotificationsPanelButton.js";
45
+ export { DefaultNotificationsPanelHeader } from "./notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.js";
42
46
  export type { INotificationsPanelHeaderComponentProps } from "./notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.js";
47
+ export { DefaultNotificationsList } from "./notificationsPanel/NotificationsList/DefaultNotificationsList.js";
43
48
  export type { INotificationsListComponentProps } from "./notificationsPanel/NotificationsList/DefaultNotificationsList.js";
49
+ export { DefaultNotificationsListEmptyState } from "./notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.js";
44
50
  export type { INotificationsListEmptyStateComponentProps } from "./notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.js";
51
+ export { DefaultNotificationsListErrorState } from "./notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.js";
45
52
  export type { INotificationsListErrorStateComponentProps } from "./notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.js";
53
+ export { DefaultNotification } from "./notificationsPanel/Notification/DefaultNotification.js";
46
54
  export type { INotificationComponentProps } from "./notificationsPanel/Notification/DefaultNotification.js";
55
+ export { DefaultNotificationSkeletonItem } from "./notificationsPanel/NotificationsList/DefaultSkeletonItem.js";
56
+ export type { INotificationSkeletonItemComponentProps } from "./notificationsPanel/NotificationsList/DefaultSkeletonItem.js";
47
57
  export type { INotificationsPanelView } from "./notificationsPanel/types.js";
48
58
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,WAA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AkB,EAAE,MAAM,+DAA+D,CAAC;AACnG,YAAY,EACR,wBAAwB,EACxB,wCAAwC,GAC3C,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sEAAsE,CAAC;AACjH,YAAY,EAAE,iCAAiC,EAAE,MAAM,sEAAsE,CAAC;AAC9H,OAAO,EAAE,+BAA+B,EAAE,MAAM,4EAA4E,CAAC;AAC7H,YAAY,EAAE,uCAAuC,EAAE,MAAM,4EAA4E,CAAC;AAC1I,OAAO,EAAE,+BAA+B,EAAE,MAAM,4EAA4E,CAAC;AAC7H,YAAY,EAAE,uCAAuC,EAAE,MAAM,4EAA4E,CAAC;AAC1I,OAAO,EAAE,wBAAwB,EAAE,MAAM,oEAAoE,CAAC;AAC9G,YAAY,EAAE,gCAAgC,EAAE,MAAM,oEAAoE,CAAC;AAC3H,OAAO,EAAE,kCAAkC,EAAE,MAAM,8EAA8E,CAAC;AAClI,YAAY,EAAE,0CAA0C,EAAE,MAAM,8EAA8E,CAAC;AAC/I,OAAO,EAAE,kCAAkC,EAAE,MAAM,8EAA8E,CAAC;AAClI,YAAY,EAAE,0CAA0C,EAAE,MAAM,8EAA8E,CAAC;AAC/I,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAC/F,YAAY,EAAE,2BAA2B,EAAE,MAAM,0DAA0D,CAAC;AAC5G,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC;AAChH,YAAY,EAAE,uCAAuC,EAAE,MAAM,+DAA+D,CAAC;AAC7H,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC"}
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // (C) 2007-2024 GoodData Corporation
1
+ // (C) 2007-2025 GoodData Corporation
2
2
  /**
3
3
  * This package contains various extensions on top of the stable components included in GoodData.UI.
4
4
  *
@@ -40,6 +40,14 @@ export function getInsightVisualizationMeta(insight, settings) {
40
40
  export * from "./internal/components/dialogs/userManagementDialogs/index.js";
41
41
  export * from "./internal/components/attributeHierarchies/index.js";
42
42
  export * from "./internal/components/pluggableVisualizations/alerts.js";
43
- export { DefaultOpenNotificationsPanelButton } from "./notificationsPanel/NotificationsPanel/DefaultOpenNotificationsPanelButton.js";
43
+ export { useNotifications } from "./notificationsPanel/data/useNotifications.js";
44
44
  export { NotificationsPanel } from "./notificationsPanel/NotificationsPanel/NotificationsPanel.js";
45
+ export { DefaultNotificationsPanel } from "./notificationsPanel/NotificationsPanel/DefaultNotificationsPanel.js";
46
+ export { DefaultNotificationsPanelButton } from "./notificationsPanel/NotificationsPanel/DefaultNotificationsPanelButton.js";
47
+ export { DefaultNotificationsPanelHeader } from "./notificationsPanel/NotificationsPanel/DefaultNotificationsPanelHeader.js";
48
+ export { DefaultNotificationsList } from "./notificationsPanel/NotificationsList/DefaultNotificationsList.js";
49
+ export { DefaultNotificationsListEmptyState } from "./notificationsPanel/NotificationsList/DefaultNotificationsListEmptyState.js";
50
+ export { DefaultNotificationsListErrorState } from "./notificationsPanel/NotificationsList/DefaultNotificationsListErrorState.js";
51
+ export { DefaultNotification } from "./notificationsPanel/Notification/DefaultNotification.js";
52
+ export { DefaultNotificationSkeletonItem } from "./notificationsPanel/NotificationsList/DefaultSkeletonItem.js";
45
53
  //# sourceMappingURL=index.js.map
package/esm/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC;;;;;;;;;;GAUG;AAKH,OAAO,EACH,qBAAqB,EACrB,wBAAwB,GAI3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,cAAc,wBAAwB,CAAC;AAgBvC,OAAO,EACH,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,UAAU,EACV,gBAAgB,EAChB,gCAAgC,EAChC,+BAA+B,EAC/B,sCAAsC,EACtC,g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pE,cAAc,yDAAyD,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAEjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC;AAKnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,sEAAsE,CAAC;AAEjH,OAAO,EAAE,+BAA+B,EAAE,MAAM,4EAA4E,CAAC;AAE7H,OAAO,EAAE,+BAA+B,EAAE,MAAM,4EAA4E,CAAC;AAE7H,OAAO,EAAE,wBAAwB,EAAE,MAAM,oEAAoE,CAAC;AAE9G,OAAO,EAAE,kCAAkC,EAAE,MAAM,8EAA8E,CAAC;AAElI,OAAO,EAAE,kCAAkC,EAAE,MAAM,8EAA8E,CAAC;AAElI,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAE/F,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC"}
@@ -1,12 +1,24 @@
1
1
  import React from "react";
2
2
  import { IAnalyticalBackend, IOrganization } from "@gooddata/sdk-backend-spi";
3
3
  import { GoodDataSdkError, UseCancelablePromiseState } from "@gooddata/sdk-ui";
4
+ /**
5
+ * @beta
6
+ */
4
7
  export type IOrganizationContext = UseCancelablePromiseState<IOrganization, GoodDataSdkError>;
8
+ /**
9
+ * @beta
10
+ */
5
11
  export declare const useOrganization: () => IOrganizationContext;
12
+ /**
13
+ * @beta
14
+ */
6
15
  export interface IOrganizationProviderProps {
7
16
  backend?: IAnalyticalBackend;
8
17
  organizationId?: string;
9
18
  children?: React.ReactNode;
10
19
  }
20
+ /**
21
+ * @beta
22
+ */
11
23
  export declare const OrganizationProvider: React.FC<IOrganizationProviderProps>;
12
24
  //# sourceMappingURL=OrganizationContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OrganizationContext.d.ts","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/OrganizationContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAsB,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAEnG,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;AAK9F,eAAO,MAAM,eAAe,4BAM3B,CAAC;AAEF,MAAM,WAAW,0BAA0B;IACvC,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAQrE,CAAC"}
1
+ {"version":3,"file":"OrganizationContext.d.ts","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/OrganizationContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAsB,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAEnG;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;AAQ9F;;GAEG;AACH,eAAO,MAAM,eAAe,4BAM3B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAQrE,CAAC"}
@@ -1,9 +1,15 @@
1
- // (C) 2019-2024 GoodData Corporation
1
+ // (C) 2019-2025 GoodData Corporation
2
2
  import React from "react";
3
3
  import { useFetchOrganization } from "./useFetchOrganization.js";
4
4
  import { UnexpectedSdkError } from "@gooddata/sdk-ui";
5
+ /**
6
+ * @beta
7
+ */
5
8
  const OrganizationContext = React.createContext(null);
6
9
  OrganizationContext.displayName = "OrganizationContext";
10
+ /**
11
+ * @beta
12
+ */
7
13
  export const useOrganization = () => {
8
14
  const organization = React.useContext(OrganizationContext);
9
15
  if (!organization) {
@@ -11,6 +17,9 @@ export const useOrganization = () => {
11
17
  }
12
18
  return organization;
13
19
  };
20
+ /**
21
+ * @beta
22
+ */
14
23
  export const OrganizationProvider = ({ children, backend, organizationId, }) => {
15
24
  const organization = useFetchOrganization({ backend, organizationId });
16
25
  return React.createElement(OrganizationContext.Provider, { value: organization }, children);
@@ -1 +1 @@
1
- {"version":3,"file":"OrganizationContext.js","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/OrganizationContext.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAoB,kBAAkB,EAA6B,MAAM,kBAAkB,CAAC;AAInG,MAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAA8B,IAAI,CAAC,CAAC;AACnF,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAExD,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAChC,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAC3D,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,MAAM,IAAI,kBAAkB,CAAC,4DAA4D,CAAC,CAAC;IAC/F,CAAC;IACD,OAAO,YAAY,CAAC;AACxB,CAAC,CAAC;AAQF,MAAM,CAAC,MAAM,oBAAoB,GAAyC,CAAC,EACvE,QAAQ,EACR,OAAO,EACP,cAAc,GACjB,EAAE,EAAE;IACD,MAAM,YAAY,GAAG,oBAAoB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC;IAEvE,OAAO,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,IAAG,QAAQ,CAAgC,CAAC;AACxG,CAAC,CAAC"}
1
+ {"version":3,"file":"OrganizationContext.js","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/OrganizationContext.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAoB,kBAAkB,EAA6B,MAAM,kBAAkB,CAAC;AAOnG;;GAEG;AACH,MAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAA8B,IAAI,CAAC,CAAC;AACnF,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAChC,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAC3D,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,MAAM,IAAI,kBAAkB,CAAC,4DAA4D,CAAC,CAAC;IAC/F,CAAC;IACD,OAAO,YAAY,CAAC;AACxB,CAAC,CAAC;AAWF;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAyC,CAAC,EACvE,QAAQ,EACR,OAAO,EACP,cAAc,GACjB,EAAE,EAAE;IACD,MAAM,YAAY,GAAG,oBAAoB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC;IAEvE,OAAO,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,IAAG,QAAQ,CAAgC,CAAC;AACxG,CAAC,CAAC"}
@@ -1,22 +1,24 @@
1
1
  import { IAnalyticalBackend, IOrganization } from "@gooddata/sdk-backend-spi";
2
2
  import { GoodDataSdkError } from "@gooddata/sdk-ui";
3
3
  /**
4
- * @alpha
4
+ * @beta
5
5
  */
6
6
  export interface IUseFetchOrganizationProps {
7
7
  /**
8
8
  * Analytical backend instance to use.
9
- * If not provided, it will be taken from the BackendProvider context.
9
+ *
10
+ * - If not provided, it will be taken from the BackendProvider context.
10
11
  */
11
12
  backend?: IAnalyticalBackend;
12
13
  /**
13
14
  * Organization ID to use.
14
- * If not provided, the current organization will be used.
15
+ *
16
+ * - If not provided, organization of the currently logged in user will be used.
15
17
  */
16
18
  organizationId?: string;
17
19
  }
18
20
  /**
19
- * @alpha
21
+ * @beta
20
22
  */
21
23
  export declare function useFetchOrganization({ backend, organizationId }: IUseFetchOrganizationProps): import("@gooddata/sdk-ui").UseCancelablePromiseState<IOrganization, GoodDataSdkError>;
22
24
  //# sourceMappingURL=useFetchOrganization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFetchOrganization.d.ts","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAA0C,MAAM,kBAAkB,CAAC;AAE5F;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,0BAA0B,yFAa3F"}
1
+ {"version":3,"file":"useFetchOrganization.d.ts","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAA0C,MAAM,kBAAkB,CAAC;AAE5F;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,0BAA0B,yFAa3F"}
@@ -1,6 +1,6 @@
1
1
  import { useBackendStrict, useCancelablePromise } from "@gooddata/sdk-ui";
2
2
  /**
3
- * @alpha
3
+ * @beta
4
4
  */
5
5
  export function useFetchOrganization({ backend, organizationId }) {
6
6
  const effectiveBackend = useBackendStrict(backend, "useOrganization");
@@ -1 +1 @@
1
- {"version":3,"file":"useFetchOrganization.js","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAmB5F;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,EAAE,OAAO,EAAE,cAAc,EAA8B;IACxF,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAEtE,OAAO,oBAAoB,CACvB;QACI,OAAO,EAAE,GAAG,EAAE;YACV,OAAO,cAAc;gBACjB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;gBAChE,CAAC,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,sBAAsB,EAAE,CAAC;QACpE,CAAC;KACJ,EACD,CAAC,gBAAgB,EAAE,cAAc,CAAC,CACrC,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"useFetchOrganization.js","sourceRoot":"","sources":["../../../../src/notificationsPanel/@staging/OrganizationContext/useFetchOrganization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAqB5F;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,EAAE,OAAO,EAAE,cAAc,EAA8B;IACxF,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAEtE,OAAO,oBAAoB,CACvB;QACI,OAAO,EAAE,GAAG,EAAE;YACV,OAAO,cAAc;gBACjB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;gBAChE,CAAC,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,sBAAsB,EAAE,CAAC;QACpE,CAAC;KACJ,EACD,CAAC,gBAAgB,EAAE,cAAc,CAAC,CACrC,CAAC;AACN,CAAC"}
@@ -5,11 +5,11 @@ import { IAlertNotification } from "@gooddata/sdk-model";
5
5
  */
6
6
  export interface IAlertNotificationsProps {
7
7
  notification: IAlertNotification;
8
- markAsRead: (id: string) => void;
8
+ markNotificationAsRead: (id: string) => void;
9
9
  onNotificationClick: (notification: IAlertNotification) => void;
10
10
  }
11
11
  /**
12
12
  * @internal
13
13
  */
14
- export declare function AlertNotification({ notification, markAsRead, onNotificationClick, }: IAlertNotificationsProps): React.JSX.Element;
14
+ export declare function AlertNotification({ notification, markNotificationAsRead, onNotificationClick, }: IAlertNotificationsProps): React.JSX.Element;
15
15
  //# sourceMappingURL=AlertNotification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlertNotification.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/AlertNotification.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAqB,kBAAkB,EAAiB,MAAM,qBAAqB,CAAC;AAQ3F;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,YAAY,EAAE,kBAAkB,CAAC;IACjC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,mBAAmB,EAAE,CAAC,YAAY,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACnE;AAID;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,YAAY,EACZ,UAAU,EACV,mBAAmB,GACtB,EAAE,wBAAwB,qBA6D1B"}
1
+ {"version":3,"file":"AlertNotification.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/AlertNotification.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAqB,kBAAkB,EAAiB,MAAM,qBAAqB,CAAC;AAQ3F;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,YAAY,EAAE,kBAAkB,CAAC;IACjC,sBAAsB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,mBAAmB,EAAE,CAAC,YAAY,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACnE;AAID;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,GACtB,EAAE,wBAAwB,qBA6D1B"}
@@ -1,4 +1,4 @@
1
- // (C) 2024 GoodData Corporation
1
+ // (C) 2024-2025 GoodData Corporation
2
2
  import React, { useCallback } from "react";
3
3
  import { getDateTimeConfig, UiIcon } from "@gooddata/sdk-ui-kit";
4
4
  import { bem } from "../bem.js";
@@ -10,11 +10,11 @@ const { b, e } = bem("gd-ui-ext-notification");
10
10
  /**
11
11
  * @internal
12
12
  */
13
- export function AlertNotification({ notification, markAsRead, onNotificationClick, }) {
13
+ export function AlertNotification({ notification, markNotificationAsRead, onNotificationClick, }) {
14
14
  const intl = useIntl();
15
15
  const onMarkAsReadClick = (e) => {
16
16
  e.stopPropagation();
17
- markAsRead(notification.id);
17
+ markNotificationAsRead(notification.id);
18
18
  };
19
19
  const clickNotification = useCallback((event) => {
20
20
  const target = event.target;
@@ -1 +1 @@
1
- {"version":3,"file":"AlertNotification.js","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/AlertNotification.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,iBAAiB,EAAe,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,yGAAyG;AACzG,OAAO,EAAE,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AACxG,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAWrG,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAE/C;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAC9B,YAAY,EACZ,UAAU,EACV,mBAAmB,GACI;IACvB,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,iBAAiB,GAAG,CAAC,CAAoC,EAAE,EAAE;QAC/D,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAChC,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,WAAW,CACjC,CAAC,KAAuC,EAAE,EAAE;QACxC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,MAAM,eAAe,GAAG,MAAM,YAAY,OAAO,CAAC;QAClD,MAAM,0BAA0B,GAC5B,eAAe,IAAI,MAAM,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAC;QACzE,IAAI,0BAA0B,EAAE,CAAC;YAC7B,OAAO;QACX,CAAC;QACD,mBAAmB,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC,EAC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IAAI,EAAE,MAAM,EAAC,eAAe,GAAG,CAAC;AACxE,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,UAAU,EAAE;QACR,EAAE,EAAE,gCAAgC;KACvC;CACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"AlertNotification.js","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/AlertNotification.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,iBAAiB,EAAe,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,yGAAyG;AACzG,OAAO,EAAE,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AACxG,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAWrG,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAE/C;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAC9B,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,GACI;IACvB,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,iBAAiB,GAAG,CAAC,CAAoC,EAAE,EAAE;QAC/D,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,sBAAsB,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,WAAW,CACjC,CAAC,KAAuC,EAAE,EAAE;QACxC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,MAAM,eAAe,GAAG,MAAM,YAAY,OAAO,CAAC;QAClD,MAAM,0BAA0B,GAC5B,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EAAE,CAAC;QAC5B,OAAO,CACH;YACI,oBAAC,gBAAgB,IAAC,EAAE,EAAC,mBAAmB,GAAG,CACxC,CACV,CAAC;IACN,CAAC;IAED,OAAO,oBAAC,aAAa,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAC,eAAe,GAAG,CAAC;AACxE,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,UAAU,EAAE;QACR,EAAE,EAAE,gCAAgC;KACvC;CACJ,CAAC,CAAC"}
@@ -1,15 +1,28 @@
1
1
  import React from "react";
2
2
  import { INotification } from "@gooddata/sdk-model";
3
3
  /**
4
- * @alpha
4
+ * Props for the Notification component.
5
+ *
6
+ * @public
5
7
  */
6
8
  export interface INotificationComponentProps {
9
+ /**
10
+ * Notification to display.
11
+ */
7
12
  notification: INotification;
8
- markAsRead: (id: string) => void;
13
+ /**
14
+ * Function to mark notification as read.
15
+ */
16
+ markNotificationAsRead: (id: string) => void;
17
+ /**
18
+ * Function to handle notification click.
19
+ */
9
20
  onNotificationClick: (notification: INotification) => void;
10
21
  }
11
22
  /**
12
- * @internal
23
+ * Default implementation of the Notification component.
24
+ *
25
+ * @public
13
26
  */
14
- export declare function DefaultNotification({ notification, markAsRead, onNotificationClick, }: INotificationComponentProps): React.JSX.Element;
27
+ export declare function DefaultNotification({ notification, markNotificationAsRead, onNotificationClick, }: INotificationComponentProps): React.JSX.Element;
15
28
  //# sourceMappingURL=DefaultNotification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultNotification.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/DefaultNotification.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,YAAY,EAAE,aAAa,CAAC;IAC5B,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,mBAAmB,EAAE,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,CAAC;CAC9D;AAID;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,YAAY,EACZ,UAAU,EACV,mBAAmB,GACtB,EAAE,2BAA2B,qBAY7B"}
1
+ {"version":3,"file":"DefaultNotification.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/DefaultNotification.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKpD;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,YAAY,EAAE,aAAa,CAAC;IAE5B;;OAEG;IACH,sBAAsB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAE7C;;OAEG;IACH,mBAAmB,EAAE,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,CAAC;CAC9D;AAID;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAChC,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,GACtB,EAAE,2BAA2B,qBAY7B"}
@@ -1,17 +1,19 @@
1
- // (C) 2024 GoodData Corporation
1
+ // (C) 2024-2025 GoodData Corporation
2
2
  import React from "react";
3
3
  import { bem } from "../bem.js";
4
4
  import { defineMessages, FormattedMessage } from "react-intl";
5
5
  import { AlertNotification } from "./AlertNotification.js";
6
6
  const { b, e } = bem("gd-ui-ext-notification");
7
7
  /**
8
- * @internal
8
+ * Default implementation of the Notification component.
9
+ *
10
+ * @public
9
11
  */
10
- export function DefaultNotification({ notification, markAsRead, onNotificationClick, }) {
12
+ export function DefaultNotification({ notification, markNotificationAsRead, onNotificationClick, }) {
11
13
  if (notification.notificationType !== "alertNotification") {
12
14
  return React.createElement(UnsupportedNotificationType, null);
13
15
  }
14
- return (React.createElement(AlertNotification, { notification: notification, markAsRead: markAsRead, onNotificationClick: onNotificationClick }));
16
+ return (React.createElement(AlertNotification, { notification: notification, markNotificationAsRead: markNotificationAsRead, onNotificationClick: onNotificationClick }));
15
17
  }
16
18
  function UnsupportedNotificationType() {
17
19
  return (React.createElement("div", { className: b({ isUnsupported: true }) },
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultNotification.js","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/DefaultNotification.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAW3D,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAE/C;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAChC,YAAY,EACZ,UAAU,EACV,mBAAmB,GACO;IAC1B,IAAI,YAAY,CAAC,gBAAgB,KAAK,mBAAmB,EAAE,CAAC;QACxD,OAAO,oBAAC,2BAA2B,OAAG,CAAC;IAC3C,CAAC;IAED,OAAO,CACH,oBAAC,iBAAiB,IACd,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,CAAC;AACN,CAAC;AAED,SAAS,2BAA2B;IAChC,OAAO,CACH,6BAAK,SAAS,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;QACtC,6BAAK,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC;YAC5B,oBAAC,gBAAgB,IAAC,EAAE,EAAE,QAAQ,CAAC,2BAA2B,CAAC,EAAE,GAAI,CAC/D,CACJ,CACT,CAAC;AACN,CAAC;AAED,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,2BAA2B,EAAE;QACzB,EAAE,EAAE,mDAAmD;KAC1D;CACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"DefaultNotification.js","sourceRoot":"","sources":["../../../src/notificationsPanel/Notification/DefaultNotification.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAwB3D,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAE/C;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAChC,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,GACO;IAC1B,IAAI,YAAY,CAAC,gBAAgB,KAAK,mBAAmB,EAAE,CAAC;QACxD,OAAO,oBAAC,2BAA2B,OAAG,CAAC;IAC3C,CAAC;IAED,OAAO,CACH,oBAAC,iBAAiB,IACd,YAAY,EAAE,YAAY,EAC1B,sBAAsB,EAAE,sBAAsB,EAC9C,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,CAAC;AACN,CAAC;AAED,SAAS,2BAA2B;IAChC,OAAO,CACH,6BAAK,SAAS,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;QACtC,6BAAK,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC;YAC5B,oBAAC,gBAAgB,IAAC,EAAE,EAAE,QAAQ,CAAC,2BAA2B,CAAC,EAAE,GAAI,CAC/D,CACJ,CACT,CAAC;AACN,CAAC;AAED,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,2BAA2B,EAAE;QACzB,EAAE,EAAE,mDAAmD;KAC1D;CACJ,CAAC,CAAC"}
@@ -1,10 +1,13 @@
1
1
  import { IAlertNotification } from "@gooddata/sdk-model";
2
2
  import React from "react";
3
+ /**
4
+ * @internal
5
+ */
3
6
  export interface INotificationTriggerDetailProps {
4
7
  notification: IAlertNotification;
5
8
  }
6
9
  /**
7
- * @alpha
10
+ * @internal
8
11
  */
9
12
  export declare function NotificationTriggerDetail({ notification }: INotificationTriggerDetailProps): React.JSX.Element;
10
13
  //# sourceMappingURL=NotificationTriggersDetail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationTriggersDetail.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,KAA2B,MAAM,OAAO,CAAC;AAuBhD,MAAM,WAAW,+BAA+B;IAC5C,YAAY,EAAE,kBAAkB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,YAAY,EAAE,EAAE,+BAA+B,qBAwC1F"}
1
+ {"version":3,"file":"NotificationTriggersDetail.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,KAA2B,MAAM,OAAO,CAAC;AAuBhD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C,YAAY,EAAE,kBAAkB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,YAAY,EAAE,EAAE,+BAA+B,qBAwC1F"}
@@ -20,7 +20,7 @@ const messages = defineMessages({
20
20
  },
21
21
  });
22
22
  /**
23
- * @alpha
23
+ * @internal
24
24
  */
25
25
  export function NotificationTriggerDetail({ notification }) {
26
26
  const [isTriggersDialogOpen, setIsTriggersDialogOpen] = useState(false);
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationTriggersDetail.js","sourceRoot":"","sources":["../../../src/notification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,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;IAC3D,MAAM,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,EAAE,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAE9F,OAAO,CACH;QACI,oBAAC,QAAQ,IACL,SAAS,EAAE,GAAG,EACd,OAAO,EAAE,GAAG,EAAE;gBACV,oBAAoB,EAAE,CAAC;YAC3B,CAAC,EACD,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,aAAa,EACpB,MAAM,EAAC,qBAAqB,GAC9B;QACD,oBAAoB,CAAC,CAAC,CAAC,CACpB,oBAAC,OAAO,IACJ,OAAO,EAAE,KAAK,EACd,OAAO,EAAE,GAAG,CAAC,OAAO,EACpB,WAAW,EAAE,YAAY,EACzB,aAAa,QACb,mBAAmB,QACnB,mBAAmB,EAAE,KAAK,EAC1B,gBAAgB,EAAE,KAAK,EACvB,OAAO,EAAE,mBAAmB;YAE5B,oBAAC,gCAAgC,IAC7B,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,mBAAmB,GAC9B,CACI,CACb,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAe,EAAE,gBAAmC;IAC1E,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,EAAE;QAC9C,cAAc,EAAE,gBAAgB,CAAC,cAAc;QAC/C,UAAU,EAAE,gBAAgB,CAAC,eAAe;KAC/C,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"NotificationTriggersDetail.js","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetail.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,QAAQ,EAAE,M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AAC,gBAAgB,CAAC,IAAI,EAAE,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAE9F,OAAO,CACH;QACI,oBAAC,QAAQ,IACL,SAAS,EAAE,GAAG,EACd,OAAO,EAAE,GAAG,EAAE;gBACV,oBAAoB,EAAE,CAAC;YAC3B,CAAC,EACD,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,aAAa,EACpB,MAAM,EAAC,qBAAqB,GAC9B;QACD,oBAAoB,CAAC,CAAC,CAAC,CACpB,oBAAC,OAAO,IACJ,OAAO,EAAE,KAAK,EACd,OAAO,EAAE,GAAG,CAAC,OAAO,EACpB,WAAW,EAAE,YAAY,EACzB,aAAa,QACb,mBAAmB,QACnB,mBAAmB,EAAE,KAAK,EAC1B,gBAAgB,EAAE,KAAK,EACvB,OAAO,EAAE,mBAAmB;YAE5B,oBAAC,gCAAgC,IAC7B,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,mBAAmB,GAC9B,CACI,CACb,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAe,EAAE,gBAAmC;IAC1E,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,EAAE;QAC9C,cAAc,EAAE,gBAAgB,CAAC,cAAc;QAC/C,UAAU,EAAE,gBAAgB,CAAC,eAAe;KAC/C,CAAC,CAAC;AACP,CAAC"}
@@ -1,11 +1,14 @@
1
1
  import { IAlertNotification } from "@gooddata/sdk-model";
2
2
  import React from "react";
3
+ /**
4
+ * @internal
5
+ */
3
6
  interface INotificationTriggersDetailDialogProps {
4
7
  notification: IAlertNotification;
5
8
  onClose: () => void;
6
9
  }
7
10
  /**
8
- * @alpha
11
+ * @internal
9
12
  */
10
13
  export declare function NotificationTriggersDetailDialog({ notification, onClose, }: INotificationTriggersDetailDialogProps): React.JSX.Element;
11
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationTriggersDetailDialog.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,sCAAsC;IAC5C,YAAY,EAAE,kBAAkB,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAWD;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,EAC7C,YAAY,EACZ,OAAO,GACV,EAAE,sCAAsC,qBAgCxC"}
1
+ {"version":3,"file":"NotificationTriggersDetailDialog.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B;;GAEG;AACH,UAAU,sCAAsC;IAC5C,YAAY,EAAE,kBAAkB,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAWD;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,EAC7C,YAAY,EACZ,OAAO,GACV,EAAE,sCAAsC,qBAgCxC"}
@@ -12,7 +12,7 @@ const messages = defineMessages({
12
12
  },
13
13
  });
14
14
  /**
15
- * @alpha
15
+ * @internal
16
16
  */
17
17
  export function NotificationTriggersDetailDialog({ notification, onClose, }) {
18
18
  const intl = useIntl();
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationTriggersDetailDialog.js","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,E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K,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,IACtB,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC7D,6BAAK,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,IACpC,IAAI,CAAC,aAAc,CAAC,cAAc,CACjC,CACT,CAAC,CACA,CACJ,CACJ,EAEV,OAAO,EAAE,OAAO,GAClB,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"NotificationTriggersDetailDialog.js","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationTriggersDetail/NotificationTriggersDetailDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,+CAA+C,CAAC,CAAC;AAUtE,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,aAAa,EAAE;QACX,EAAE,EAAE,2CAA2C;KAClD;IACD,QAAQ,EAAE;QACN,EAAE,EAAE,8CAA8C;KACrD;CACJ,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAAC,EAC7C,YAAY,EACZ,OAAO,GAC8B;IACrC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,OAAO,CACH,oBAAC,aAAa,IACV,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,EACjD,OAAO,EACH,6BAAK,SAAS,EAAE,CAAC,EAAE;YACf,6BAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC;gBACvB,6BAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,IAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAM,CAAC,MAAM,CAAO;gBAClF,6BAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,IAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAO,CAC9E;YACN,6BAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC;gBACtB,6BAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,IAC7B,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC7D,6BAAK,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,IACpC,IAAI,CAAC,UAAU,CACd,CACT,CAAC,CACA;gBACN,6BAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,IACtB,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC7D,6BAAK,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,IACpC,IAAI,CAAC,aAAc,CAAC,cAAc,CACjC,CACT,CAAC,CACA,CACJ,CACJ,EAEV,OAAO,EAAE,OAAO,GAClB,CACL,CAAC;AACN,CAAC"}
@@ -5,24 +5,86 @@ import { INotification } from "@gooddata/sdk-model";
5
5
  import { INotificationsPanelView } from "../types.js";
6
6
  import { INotificationsListEmptyStateComponentProps } from "./DefaultNotificationsListEmptyState.js";
7
7
  import { INotificationsListErrorStateComponentProps } from "./DefaultNotificationsListErrorState.js";
8
+ import { INotificationSkeletonItemComponentProps } from "./DefaultSkeletonItem.js";
8
9
  /**
9
- * @alpha
10
+ * Props for the NotificationsList component.
11
+ *
12
+ * @public
10
13
  */
11
14
  export interface INotificationsListComponentProps {
15
+ /**
16
+ * Component to render when the notifications list is empty.
17
+ */
12
18
  NotificationsListEmptyState: React.ComponentType<INotificationsListEmptyStateComponentProps>;
19
+ /**
20
+ * Component to render when the notifications list is in error state.
21
+ */
13
22
  NotificationsListErrorState: React.ComponentType<INotificationsListErrorStateComponentProps>;
23
+ /**
24
+ * Component to render each notification.
25
+ */
14
26
  Notification: React.ComponentType<INotificationComponentProps>;
27
+ /**
28
+ * Component to render each skeleton item.
29
+ */
30
+ NotificationSkeletonItem: React.ComponentType<INotificationSkeletonItemComponentProps>;
31
+ /**
32
+ * Active view of the notifications list.
33
+ */
15
34
  activeView: INotificationsPanelView;
35
+ /**
36
+ * Status of the notifications list.
37
+ */
16
38
  status: UseCancelablePromiseStatus;
39
+ /**
40
+ * Error to display.
41
+ */
17
42
  error?: GoodDataSdkError;
18
- notifications?: INotification[];
43
+ /**
44
+ * Loaded notifications relevant to the active view.
45
+ */
46
+ activeNotifications?: INotification[];
47
+ /**
48
+ * Callback function to mark notification as read.
49
+ */
19
50
  markNotificationAsRead: (notificationId: string) => Promise<void>;
51
+ /**
52
+ * Callback function to handle notification click.
53
+ */
20
54
  onNotificationClick: (notification: INotification) => void;
55
+ /**
56
+ * Whether there is a next page of notifications.
57
+ */
21
58
  hasNextPage: boolean;
59
+ /**
60
+ * Load next page of notifications.
61
+ */
22
62
  loadNextPage: () => void;
63
+ /**
64
+ * Height of the notification item in pixels.
65
+ */
66
+ itemHeight: number;
67
+ /**
68
+ * Gap between notification items in pixels.
69
+ */
70
+ itemsGap: number;
71
+ /**
72
+ * Padding of the notification item (from left/right) in pixels.
73
+ */
74
+ itemPadding: number;
75
+ /**
76
+ * Number of skeleton items to render when loading notifications.
77
+ */
78
+ skeletonItemsCount: number;
79
+ /**
80
+ * Maximum height of the notifications list in pixels.
81
+ */
82
+ maxListHeight?: number;
23
83
  }
24
84
  /**
25
- * @internal
85
+ * Default implementation of the NotificationsList component.
86
+ *
87
+ * @public
26
88
  */
27
- export declare function DefaultNotificationsList({ Notification, activeView, status, error, notifications, markNotificationAsRead, onNotificationClick, hasNextPage, loadNextPage, }: INotificationsListComponentProps): React.JSX.Element;
89
+ export declare function DefaultNotificationsList({ Notification, NotificationsListEmptyState, NotificationsListErrorState, NotificationSkeletonItem, activeView, status, error, activeNotifications, markNotificationAsRead, onNotificationClick, hasNextPage, loadNextPage, itemHeight, itemsGap, itemPadding, skeletonItemsCount, maxListHeight, }: INotificationsListComponentProps): React.JSX.Element;
28
90
  //# sourceMappingURL=DefaultNotificationsList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultNotificationsList.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationsList/DefaultNotificationsList.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4C,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAErF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAEH,0CAA0C,EAC7C,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEH,0CAA0C,EAC7C,MAAM,yCAAyC,CAAC;AAIjD;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C,2BAA2B,EAAE,KAAK,CAAC,aAAa,CAAC,0CAA0C,CAAC,CAAC;IAC7F,2BAA2B,EAAE,KAAK,CAAC,aAAa,CAAC,0CAA0C,CAAC,CAAC;IAC7F,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;IAC/D,UAAU,EAAE,uBAAuB,CAAC;IACpC,MAAM,EAAE,0BAA0B,CAAC;IACnC,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,EAAE,CAAC;IAChC,sBAAsB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,mBAAmB,EAAE,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3D,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B;AAID;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,YAAY,EACZ,UAAU,EACV,MAAM,EACN,KAAK,EACL,aAAa,EACb,sBAAsB,EACtB,mBAAmB,EACnB,WAAW,EACX,YAAY,GACf,EAAE,gCAAgC,qBA0DlC"}
1
+ {"version":3,"file":"DefaultNotificationsList.d.ts","sourceRoot":"","sources":["../../../src/notificationsPanel/NotificationsList/DefaultNotificationsList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAErF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,0CAA0C,EAAE,MAAM,yCAAyC,CAAC;AACrG,OAAO,EAAE,0CAA0C,EAAE,MAAM,yCAAyC,CAAC;AACrG,OAAO,EAAE,uCAAuC,EAAE,MAAM,0BAA0B,CAAC;AAInF;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;OAEG;IACH,2BAA2B,EAAE,KAAK,CAAC,aAAa,CAAC,0CAA0C,CAAC,CAAC;IAE7F;;OAEG;IACH,2BAA2B,EAAE,KAAK,CAAC,aAAa,CAAC,0CAA0C,CAAC,CAAC;IAE7F;;OAEG;IACH,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;IAE/D;;OAEG;IACH,wBAAwB,EAAE,KAAK,CAAC,aAAa,CAAC,uCAAuC,CAAC,CAAC;IAEvF;;OAEG;IACH,UAAU,EAAE,uBAAuB,CAAC;IAEpC;;OAEG;IACH,MAAM,EAAE,0BAA0B,CAAC;IAEnC;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAEzB;;OAEG;IACH,mBAAmB,CAAC,EAAE,aAAa,EAAE,CAAC;IAEtC;;OAEG;IACH,sBAAsB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAElE;;OAEG;IACH,mBAAmB,EAAE,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,CAAC;IAE3D;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,YAAY,EAAE,MAAM,IAAI,CAAC;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,YAAY,EACZ,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,UAAU,EACV,MAAM,EACN,KAAK,EACL,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,aAAiB,GACpB,EAAE,gCAAgC,qBAyClC"}
@@ -1,42 +1,24 @@
1
- // (C) 2024 GoodData Corporation
2
- import React, { useLayoutEffect, useRef, useState } from "react";
1
+ // (C) 2024-2025 GoodData Corporation
2
+ import React from "react";
3
+ import { useElementSize, UiPagedVirtualList } from "@gooddata/sdk-ui-kit";
3
4
  import { bem } from "../bem.js";
4
- import { PagedVirtualList } from "../components/VirtualList.js";
5
- import { DefaultNotificationsListEmptyState, } from "./DefaultNotificationsListEmptyState.js";
6
- import { DefaultNotificationsListErrorState, } from "./DefaultNotificationsListErrorState.js";
7
- const NOTIFICATION_ITEM_HEIGHT = 52;
8
- const { b, e } = bem("gd-ui-ext-notifications-list");
5
+ const { b } = bem("gd-ui-ext-notifications-list");
9
6
  /**
10
- * @internal
7
+ * Default implementation of the NotificationsList component.
8
+ *
9
+ * @public
11
10
  */
12
- export function DefaultNotificationsList({ Notification, activeView, status, error, notifications, markNotificationAsRead, onNotificationClick, hasNextPage, loadNextPage, }) {
11
+ export function DefaultNotificationsList({ Notification, NotificationsListEmptyState, NotificationsListErrorState, NotificationSkeletonItem, activeView, status, error, activeNotifications, markNotificationAsRead, onNotificationClick, hasNextPage, loadNextPage, itemHeight, itemsGap, itemPadding, skeletonItemsCount, maxListHeight = 0, }) {
13
12
  const isError = status === "error";
14
- const isEmpty = status === "success" && notifications?.length === 0;
13
+ const isEmpty = status === "success" && activeNotifications?.length === 0;
15
14
  const isLoading = status === "loading" || status === "pending";
16
- const isSuccess = status === "success" && (notifications?.length ?? 0) > 0;
17
- const containerRef = useRef(null);
18
- const [availableHeight, setAvailableHeight] = useState(0);
19
- useLayoutEffect(() => {
20
- const resizeObserver = new ResizeObserver((entries) => {
21
- const [entry] = entries;
22
- if (entry) {
23
- setAvailableHeight(entry.contentRect.height);
24
- }
25
- });
26
- if (containerRef.current) {
27
- resizeObserver.observe(containerRef.current);
28
- }
29
- return () => {
30
- if (resizeObserver) {
31
- resizeObserver.disconnect();
32
- setAvailableHeight(0);
33
- }
34
- };
35
- }, []);
36
- return (React.createElement("div", { className: b(), ref: containerRef },
37
- isError ? React.createElement(DefaultNotificationsListErrorState, { error: error }) : null,
38
- isEmpty ? React.createElement(DefaultNotificationsListEmptyState, { activeView: activeView }) : null,
39
- isLoading || isSuccess ? (React.createElement(PagedVirtualList, { items: notifications, itemHeight: NOTIFICATION_ITEM_HEIGHT, itemsGap: 10, itemPadding: 15, skeletonItemsCount: 5, hasNextPage: hasNextPage, loadNextPage: loadNextPage, isLoading: isLoading, maxHeight: Math.max(527, availableHeight) }, (notification) => (React.createElement("div", { className: e("notification") },
40
- React.createElement(Notification, { notification: notification, markAsRead: markNotificationAsRead, onNotificationClick: onNotificationClick }))))) : null));
15
+ const isSuccess = status === "success" && (activeNotifications?.length ?? 0) > 0;
16
+ const { height, ref } = useElementSize();
17
+ return (React.createElement("div", { className: b(), ref: (node) => {
18
+ ref.current = node;
19
+ } },
20
+ isError ? React.createElement(NotificationsListErrorState, { error: error }) : null,
21
+ isEmpty ? React.createElement(NotificationsListEmptyState, { activeView: activeView }) : null,
22
+ isLoading || isSuccess ? (React.createElement(UiPagedVirtualList, { items: activeNotifications, itemHeight: itemHeight, itemsGap: itemsGap, itemPadding: itemPadding, skeletonItemsCount: skeletonItemsCount, hasNextPage: hasNextPage, loadNextPage: loadNextPage, isLoading: isLoading, maxHeight: Math.max(maxListHeight, height, (itemHeight + itemsGap) * skeletonItemsCount), SkeletonItem: NotificationSkeletonItem }, (notification) => (React.createElement(Notification, { notification: notification, markNotificationAsRead: markNotificationAsRead, onNotificationClick: onNotificationClick })))) : null));
41
23
  }
42
24
  //# sourceMappingURL=DefaultNotificationsList.js.map