@gooddata/sdk-ui-dashboard 11.55.0-alpha.1 → 11.55.0-alpha.3

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 (221) hide show
  1. package/NOTICE +26793 -68204
  2. package/esm/__version.d.ts +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/index.d.ts +42 -4
  5. package/esm/index.d.ts.map +1 -1
  6. package/esm/index.js +38 -0
  7. package/esm/internal.d.ts +1 -1
  8. package/esm/internal.d.ts.map +1 -1
  9. package/esm/internal.js +1 -1
  10. package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +1 -1
  11. package/esm/model/store/config/configSelectors.js +1 -1
  12. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +10 -22
  13. package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
  14. package/esm/model/store/tabs/parameters/parametersHelpers.js +13 -42
  15. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +8 -10
  16. package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
  17. package/esm/model/store/tabs/parameters/parametersSelectors.js +22 -32
  18. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts +16 -9
  19. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
  20. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +43 -153
  21. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogAttribute.d.ts +13 -0
  22. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogAttribute.d.ts.map +1 -0
  23. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertAttributeSelect.js → DefaultAlertingDialogAttribute.js} +12 -3
  24. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonOperator.d.ts +13 -0
  25. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonOperator.d.ts.map +1 -0
  26. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertComparisonOperatorSelect.js → DefaultAlertingDialogComparisonOperator.js} +13 -4
  27. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonPeriod.d.ts +14 -0
  28. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonPeriod.d.ts.map +1 -0
  29. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertComparisonPeriodSelect.js → DefaultAlertingDialogComparisonPeriod.js} +16 -6
  30. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogDestination.d.ts.map +1 -1
  31. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogDestination.js +2 -2
  32. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogGranularity.d.ts +12 -0
  33. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogGranularity.d.ts.map +1 -0
  34. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertGranularitySelect.js → DefaultAlertingDialogGranularity.js} +10 -2
  35. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogMeasure.d.ts +12 -0
  36. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogMeasure.d.ts.map +1 -0
  37. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertMeasureSelect.js → DefaultAlertingDialogMeasure.js} +11 -3
  38. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.d.ts.map +1 -1
  39. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogRecipients.js +2 -2
  40. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogSensitivity.d.ts +12 -0
  41. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogSensitivity.d.ts.map +1 -0
  42. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertSensitivitySelect.js → DefaultAlertingDialogSensitivity.js} +10 -2
  43. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogThreshold.d.ts +12 -0
  44. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogThreshold.d.ts.map +1 -0
  45. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertThresholdInput.js → DefaultAlertingDialogThreshold.js} +9 -1
  46. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerInterval.d.ts +13 -0
  47. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerInterval.d.ts.map +1 -0
  48. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertTriggerIntervalSelect.js → DefaultAlertingDialogTriggerInterval.js} +11 -2
  49. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerMode.d.ts +12 -0
  50. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogTriggerMode.d.ts.map +1 -0
  51. package/esm/presentation/automations/alerting/DefaultAlertingDialog/{components/AlertTriggerModeSelect.js → DefaultAlertingDialogTriggerMode.js} +10 -2
  52. package/esm/presentation/automations/alerting/blocks/AlertingDialogAttribute.d.ts +16 -0
  53. package/esm/presentation/automations/alerting/blocks/AlertingDialogAttribute.d.ts.map +1 -0
  54. package/esm/presentation/automations/alerting/blocks/AlertingDialogAttribute.js +28 -0
  55. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonOperator.d.ts +22 -0
  56. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonOperator.d.ts.map +1 -0
  57. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonOperator.js +31 -0
  58. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonPeriod.d.ts +18 -0
  59. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonPeriod.d.ts.map +1 -0
  60. package/esm/presentation/automations/alerting/blocks/AlertingDialogComparisonPeriod.js +31 -0
  61. package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.d.ts +11 -0
  62. package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.d.ts.map +1 -0
  63. package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.js +15 -0
  64. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.d.ts +10 -0
  65. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.d.ts.map +1 -0
  66. package/esm/presentation/automations/alerting/blocks/AlertingDialogFormFieldGroup.js +12 -0
  67. package/esm/presentation/automations/alerting/blocks/AlertingDialogGranularity.d.ts +15 -0
  68. package/esm/presentation/automations/alerting/blocks/AlertingDialogGranularity.d.ts.map +1 -0
  69. package/esm/presentation/automations/alerting/blocks/AlertingDialogGranularity.js +33 -0
  70. package/esm/presentation/automations/alerting/blocks/AlertingDialogMeasure.d.ts +30 -0
  71. package/esm/presentation/automations/alerting/blocks/AlertingDialogMeasure.d.ts.map +1 -0
  72. package/esm/presentation/automations/alerting/blocks/AlertingDialogMeasure.js +39 -0
  73. package/esm/presentation/automations/alerting/blocks/AlertingDialogSensitivity.d.ts +15 -0
  74. package/esm/presentation/automations/alerting/blocks/AlertingDialogSensitivity.d.ts.map +1 -0
  75. package/esm/presentation/automations/alerting/blocks/AlertingDialogSensitivity.js +30 -0
  76. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.d.ts +49 -0
  77. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.d.ts.map +1 -0
  78. package/esm/presentation/automations/alerting/blocks/AlertingDialogShell.js +128 -0
  79. package/esm/presentation/automations/alerting/blocks/AlertingDialogThreshold.d.ts +21 -0
  80. package/esm/presentation/automations/alerting/blocks/AlertingDialogThreshold.d.ts.map +1 -0
  81. package/esm/presentation/automations/alerting/blocks/AlertingDialogThreshold.js +36 -0
  82. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerInterval.d.ts +15 -0
  83. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerInterval.d.ts.map +1 -0
  84. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerInterval.js +32 -0
  85. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerMode.d.ts +15 -0
  86. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerMode.d.ts.map +1 -0
  87. package/esm/presentation/automations/alerting/blocks/AlertingDialogTriggerMode.js +24 -0
  88. package/esm/presentation/automations/alerting/blocks/DefaultLoadingAlertingDialog.d.ts.map +1 -0
  89. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAlertThreshold.d.ts +1 -1
  90. package/esm/presentation/automations/alerting/hooks/useAlertThreshold.d.ts.map +1 -0
  91. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useAlertThreshold.js +1 -1
  92. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useThresholdValue.d.ts +1 -1
  93. package/esm/presentation/automations/alerting/hooks/useThresholdValue.d.ts.map +1 -0
  94. package/esm/presentation/automations/alerting/{DefaultAlertingDialog/hooks → hooks}/useThresholdValue.js +2 -2
  95. package/esm/presentation/automations/alerting/state/types.d.ts +2 -2
  96. package/esm/presentation/automations/alerting/state/types.d.ts.map +1 -1
  97. package/esm/presentation/automations/alerting/state/useAlertingDialogFieldProps.d.ts +87 -0
  98. package/esm/presentation/automations/alerting/state/useAlertingDialogFieldProps.d.ts.map +1 -0
  99. package/esm/presentation/automations/alerting/state/useAlertingDialogFieldProps.js +234 -0
  100. package/esm/presentation/automations/alerting/types.d.ts +401 -3
  101. package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
  102. package/esm/presentation/automations/alerting/utils/getters.d.ts +1 -8
  103. package/esm/presentation/automations/alerting/utils/getters.d.ts.map +1 -1
  104. package/esm/presentation/automations/connectors/hooks/useBuildAlertingManagementDialogContext.d.ts.map +1 -1
  105. package/esm/presentation/automations/connectors/hooks/useBuildAlertingManagementDialogContext.js +7 -0
  106. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts +12 -0
  107. package/esm/presentation/automations/contexts/AlertingManagementDialogContext.d.ts.map +1 -1
  108. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +15 -10
  109. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
  110. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +45 -198
  111. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts +2 -18
  112. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts.map +1 -1
  113. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts +2 -23
  114. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts.map +1 -1
  115. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.d.ts +11 -0
  116. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.d.ts.map +1 -0
  117. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.js +12 -0
  118. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.d.ts +11 -0
  119. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.d.ts.map +1 -0
  120. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.js +12 -0
  121. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.d.ts +11 -0
  122. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.d.ts.map +1 -0
  123. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.js +12 -0
  124. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.d.ts +11 -0
  125. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.d.ts.map +1 -0
  126. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.js +12 -0
  127. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.d.ts +11 -0
  128. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.d.ts.map +1 -0
  129. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.js +12 -0
  130. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.d.ts +11 -0
  131. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.d.ts.map +1 -0
  132. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.js +12 -0
  133. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.d.ts +2 -17
  134. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.d.ts.map +1 -1
  135. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/EvaluationModeCheckbox/EvaluationModeCheckbox.js +0 -3
  136. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.d.ts +2 -6
  137. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/MessageForm/MessageForm.d.ts.map +1 -1
  138. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +1 -1
  139. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.d.ts +2 -10
  140. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.d.ts.map +1 -1
  141. package/esm/presentation/automations/scheduledEmail/blocks/DefaultLoadingScheduledEmailDialog.d.ts.map +1 -0
  142. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.d.ts +16 -0
  143. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.d.ts.map +1 -0
  144. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.js +28 -0
  145. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.d.ts +16 -0
  146. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.d.ts.map +1 -0
  147. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.js +28 -0
  148. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.d.ts +15 -0
  149. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.d.ts.map +1 -0
  150. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.js +27 -0
  151. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.d.ts +16 -0
  152. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.d.ts.map +1 -0
  153. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.js +24 -0
  154. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.d.ts +59 -0
  155. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.d.ts.map +1 -0
  156. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.js +195 -0
  157. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.d.ts +16 -0
  158. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.d.ts.map +1 -0
  159. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.js +29 -0
  160. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.d.ts +16 -0
  161. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.d.ts.map +1 -0
  162. package/esm/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.js +28 -0
  163. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.d.ts +6 -0
  164. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.d.ts.map +1 -0
  165. package/esm/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.js +13 -0
  166. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.d.ts +73 -0
  167. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.d.ts.map +1 -0
  168. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailDialogFieldProps.js +168 -0
  169. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.d.ts +30 -0
  170. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.d.ts.map +1 -0
  171. package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailSubmitOnEnter.js +26 -0
  172. package/esm/presentation/automations/scheduledEmail/types.d.ts +299 -1
  173. package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
  174. package/esm/presentation/automations/shared/automationFilters/components/AutomationAttributeFilter.js +1 -1
  175. package/esm/presentation/automations/shared/automationFilters/components/AutomationDateFilter.js +1 -1
  176. package/esm/presentation/automations/shared/automationFilters/components/AutomationMeasureValueFilter.js +1 -1
  177. package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.d.ts +51 -0
  178. package/esm/presentation/automations/shared/hooks/useWorkspaceUsersSearch.d.ts.map +1 -0
  179. package/esm/presentation/automations/{scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect → shared/hooks}/useWorkspaceUsersSearch.js +13 -0
  180. package/esm/presentation/automations/shared/slots/AutomationDialogFormField.d.ts +13 -0
  181. package/esm/presentation/automations/shared/slots/AutomationDialogFormField.d.ts.map +1 -0
  182. package/esm/presentation/automations/{alerting/DefaultAlertingDialog/FormField.js → shared/slots/AutomationDialogFormField.js} +10 -1
  183. package/esm/presentation/automations/shared/slots/types.d.ts +23 -0
  184. package/esm/presentation/automations/shared/slots/types.d.ts.map +1 -1
  185. package/esm/presentation/dashboard/components/DashboardScreenSizeContext.js +1 -1
  186. package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +91 -91
  187. package/esm/presentation/widget/insightMenu/types.js +1 -1
  188. package/esm/presentation/widget/richTextMenu/types.d.ts.map +1 -1
  189. package/esm/presentation/widget/richTextMenu/types.js +2 -1
  190. package/esm/sdk-ui-dashboard.d.ts +1604 -94
  191. package/package.json +22 -24
  192. package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultLoadingAlertingDialog.d.ts.map +0 -1
  193. package/esm/presentation/automations/alerting/DefaultAlertingDialog/FormField.d.ts +0 -8
  194. package/esm/presentation/automations/alerting/DefaultAlertingDialog/FormField.d.ts.map +0 -1
  195. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts +0 -19
  196. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertAttributeSelect.d.ts.map +0 -1
  197. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.d.ts +0 -19
  198. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonOperatorSelect.d.ts.map +0 -1
  199. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts +0 -15
  200. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts.map +0 -1
  201. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertGranularitySelect.d.ts +0 -12
  202. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertGranularitySelect.d.ts.map +0 -1
  203. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.d.ts +0 -13
  204. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertMeasureSelect.d.ts.map +0 -1
  205. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertSensitivitySelect.d.ts +0 -11
  206. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertSensitivitySelect.d.ts.map +0 -1
  207. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertThresholdInput.d.ts +0 -12
  208. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertThresholdInput.d.ts.map +0 -1
  209. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.d.ts +0 -11
  210. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerIntervalSelect.d.ts.map +0 -1
  211. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerModeSelect.d.ts +0 -12
  212. package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertTriggerModeSelect.d.ts.map +0 -1
  213. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertThreshold.d.ts.map +0 -1
  214. package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useThresholdValue.d.ts.map +0 -1
  215. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultLoadingScheduledEmailDialog.d.ts.map +0 -1
  216. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts +0 -13
  217. package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts.map +0 -1
  218. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog → blocks}/DefaultLoadingAlertingDialog.d.ts +0 -0
  219. /package/esm/presentation/automations/alerting/{DefaultAlertingDialog → blocks}/DefaultLoadingAlertingDialog.js +0 -0
  220. /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog → blocks}/DefaultLoadingScheduledEmailDialog.d.ts +0 -0
  221. /package/esm/presentation/automations/scheduledEmail/{DefaultScheduledEmailDialog → blocks}/DefaultLoadingScheduledEmailDialog.js +0 -0
@@ -3,11 +3,11 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
3
3
  import { useMemo } from "react";
4
4
  import { sortBy } from "lodash-es";
5
5
  import { DETAILED_ANNOUNCEMENT_THRESHOLD, UiSearchResultsAnnouncement } from "@gooddata/sdk-ui-kit";
6
+ import { useWorkspaceUsersSearch } from "../../../../shared/hooks/useWorkspaceUsersSearch.js";
6
7
  import { convertUserToAutomationRecipient } from "../../../../shared/utils/automationUtils.js";
7
8
  import { createUser, matchRecipient } from "../../../utils/users.js";
8
9
  import { isEmail } from "../../../utils/validate.js";
9
10
  import { RecipientsSelectRenderer } from "./RecipientsSelectRenderer.js";
10
- import { useWorkspaceUsersSearch } from "./useWorkspaceUsersSearch.js";
11
11
  export function RecipientsSelect({ id, value, onChange, loggedUser, allowEmptySelection, allowExternalRecipients, allowOnlyLoggedUserRecipients, maxRecipients, className, notificationChannels, notificationChannelId, showLabel = true, onKeyDownSubmit, externalRecipientOverride, }) {
12
12
  const isServerSearch = !externalRecipientOverride && !allowOnlyLoggedUserRecipients;
13
13
  const { search, users, usersError, isLoading, onSearch, onActivate } = useWorkspaceUsersSearch({
@@ -1,11 +1,3 @@
1
- import { type IAutomationMetadataObjectDefinition } from "@gooddata/sdk-model";
2
- interface ISubjectFormProps {
3
- dashboardTitle: string;
4
- editedAutomation: IAutomationMetadataObjectDefinition;
5
- isSubmitDisabled?: boolean;
6
- onChange: (value: string, isValid: boolean) => void;
7
- onKeyDownSubmit: () => void;
8
- }
9
- export declare function SubjectForm({ dashboardTitle, editedAutomation, isSubmitDisabled, onChange, onKeyDownSubmit }: ISubjectFormProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
1
+ import { type IScheduledEmailDialogSubjectProps } from "../../../types.js";
2
+ export declare function SubjectForm({ dashboardTitle, editedAutomation, isSubmitDisabled, onChange, onKeyDownSubmit }: IScheduledEmailDialogSubjectProps): import("react/jsx-runtime").JSX.Element;
11
3
  //# sourceMappingURL=SubjectForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SubjectForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAc/E,UAAU,iBAAiB;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,mCAAmC,CAAC;IACtD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,eAAe,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,wBAAgB,WAAW,CAAC,EACxB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EAClB,EAAE,iBAAiB,2CA8FnB"}
1
+ {"version":3,"file":"SubjectForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/SubjectForm/SubjectForm.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AAK3E,wBAAgB,WAAW,CAAC,EACxB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EAClB,EAAE,iCAAiC,2CA8FnC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultLoadingScheduledEmailDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/blocks/DefaultLoadingScheduledEmailDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAarE,UAAU,wCAAwC;IAC9C,qBAAqB,CAAC,EAAE,yBAAyB,CAAC;IAClD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,kCAAkC,CAAC,EAC/C,qBAAqB,EACrB,QAAQ,EACX,EAAE,wCAAwC,2CAkD1C"}
@@ -0,0 +1,16 @@
1
+ import { type ReactElement } from "react";
2
+ import { type IScheduledEmailDialogDashboardAttachmentsProps } from "../types.js";
3
+ /**
4
+ * The scheduled-export dialog's dashboard-attachments field, connected to the dialog's state.
5
+ *
6
+ * Renders {@link DefaultScheduledEmailDialogDashboardAttachments} with the props of
7
+ * {@link useScheduledEmailDialogDashboardAttachmentsProps}; every prop passed here replaces the
8
+ * hook's value for that prop wholesale. Renders nothing while
9
+ * `useScheduledEmailDialogContext().isLoading` is true and when the dialog context has a `widget`
10
+ * (a widget schedule renders {@link ScheduledEmailDialogWidgetAttachments} instead), the same
11
+ * visibility the default dialog gives the field.
12
+ *
13
+ * @alpha
14
+ */
15
+ export declare function ScheduledEmailDialogDashboardAttachments(props: Partial<IScheduledEmailDialogDashboardAttachmentsProps>): ReactElement;
16
+ //# sourceMappingURL=ScheduledEmailDialogDashboardAttachments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduledEmailDialogDashboardAttachments.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogDashboardAttachments.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,KAAK,8CAA8C,EAAE,MAAM,aAAa,CAAC;AAIlF;;;;;;;;;;;GAWG;AACH,wBAAgB,wCAAwC,CACpD,KAAK,EAAE,OAAO,CAAC,8CAA8C,CAAC,GAC/D,YAAY,CAMd"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
3
+ import { DefaultScheduledEmailDialogDashboardAttachments } from "../DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogDashboardAttachments.js";
4
+ import { useScheduledEmailDialogDashboardAttachmentsProps } from "../state/useScheduledEmailDialogFieldProps.js";
5
+ import { WhenScheduledEmailDialogLoaded } from "./WhenScheduledEmailDialogLoaded.js";
6
+ /**
7
+ * The scheduled-export dialog's dashboard-attachments field, connected to the dialog's state.
8
+ *
9
+ * Renders {@link DefaultScheduledEmailDialogDashboardAttachments} with the props of
10
+ * {@link useScheduledEmailDialogDashboardAttachmentsProps}; every prop passed here replaces the
11
+ * hook's value for that prop wholesale. Renders nothing while
12
+ * `useScheduledEmailDialogContext().isLoading` is true and when the dialog context has a `widget`
13
+ * (a widget schedule renders {@link ScheduledEmailDialogWidgetAttachments} instead), the same
14
+ * visibility the default dialog gives the field.
15
+ *
16
+ * @alpha
17
+ */
18
+ export function ScheduledEmailDialogDashboardAttachments(props) {
19
+ return (_jsx(WhenScheduledEmailDialogLoaded, { children: _jsx(ConnectedScheduledEmailDialogDashboardAttachments, { ...props }) }));
20
+ }
21
+ function ConnectedScheduledEmailDialogDashboardAttachments(overrides) {
22
+ const defaultProps = useScheduledEmailDialogDashboardAttachmentsProps();
23
+ const { widget } = useScheduledEmailDialogContext();
24
+ if (widget) {
25
+ return null;
26
+ }
27
+ return _jsx(DefaultScheduledEmailDialogDashboardAttachments, { ...defaultProps, ...overrides });
28
+ }
@@ -0,0 +1,16 @@
1
+ import { type ReactElement } from "react";
2
+ import { type IScheduledEmailDialogEvaluationModeProps } from "../types.js";
3
+ /**
4
+ * The scheduled-export dialog's evaluation-mode checkbox, connected to the dialog's state.
5
+ *
6
+ * Renders {@link DefaultScheduledEmailDialogEvaluationMode} with the props of
7
+ * {@link useScheduledEmailDialogEvaluationModeProps}; every prop passed here replaces the hook's
8
+ * value for that prop wholesale. Renders nothing while
9
+ * `useScheduledEmailDialogContext().isLoading` is true and while
10
+ * `useAutomationsContext().features.enableAutomationEvaluationMode` is off, the same visibility the
11
+ * default dialog gives the field.
12
+ *
13
+ * @alpha
14
+ */
15
+ export declare function ScheduledEmailDialogEvaluationMode(props: Partial<IScheduledEmailDialogEvaluationModeProps>): ReactElement;
16
+ //# sourceMappingURL=ScheduledEmailDialogEvaluationMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduledEmailDialogEvaluationMode.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogEvaluationMode.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,KAAK,wCAAwC,EAAE,MAAM,aAAa,CAAC;AAI5E;;;;;;;;;;;GAWG;AACH,wBAAgB,kCAAkC,CAC9C,KAAK,EAAE,OAAO,CAAC,wCAAwC,CAAC,GACzD,YAAY,CAMd"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
3
+ import { DefaultScheduledEmailDialogEvaluationMode } from "../DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogEvaluationMode.js";
4
+ import { useScheduledEmailDialogEvaluationModeProps } from "../state/useScheduledEmailDialogFieldProps.js";
5
+ import { WhenScheduledEmailDialogLoaded } from "./WhenScheduledEmailDialogLoaded.js";
6
+ /**
7
+ * The scheduled-export dialog's evaluation-mode checkbox, connected to the dialog's state.
8
+ *
9
+ * Renders {@link DefaultScheduledEmailDialogEvaluationMode} with the props of
10
+ * {@link useScheduledEmailDialogEvaluationModeProps}; every prop passed here replaces the hook's
11
+ * value for that prop wholesale. Renders nothing while
12
+ * `useScheduledEmailDialogContext().isLoading` is true and while
13
+ * `useAutomationsContext().features.enableAutomationEvaluationMode` is off, the same visibility the
14
+ * default dialog gives the field.
15
+ *
16
+ * @alpha
17
+ */
18
+ export function ScheduledEmailDialogEvaluationMode(props) {
19
+ return (_jsx(WhenScheduledEmailDialogLoaded, { children: _jsx(ConnectedScheduledEmailDialogEvaluationMode, { ...props }) }));
20
+ }
21
+ function ConnectedScheduledEmailDialogEvaluationMode(overrides) {
22
+ const defaultProps = useScheduledEmailDialogEvaluationModeProps();
23
+ const { features: { enableAutomationEvaluationMode }, } = useAutomationsContext();
24
+ if (!enableAutomationEvaluationMode) {
25
+ return null;
26
+ }
27
+ return _jsx(DefaultScheduledEmailDialogEvaluationMode, { ...defaultProps, ...overrides });
28
+ }
@@ -0,0 +1,15 @@
1
+ import { type ReactElement } from "react";
2
+ import { type IScheduledEmailDialogMessageProps } from "../types.js";
3
+ /**
4
+ * The scheduled-export dialog's message field, connected to the dialog's state.
5
+ *
6
+ * Renders {@link DefaultScheduledEmailDialogMessage} with the props of
7
+ * {@link useScheduledEmailDialogMessageProps}; every prop passed here replaces the hook's value for
8
+ * that prop wholesale. Renders nothing while `useScheduledEmailDialogContext().isLoading` is true
9
+ * and for an in-platform notification channel (which has no e-mail message), the same visibility
10
+ * the default dialog gives the field.
11
+ *
12
+ * @alpha
13
+ */
14
+ export declare function ScheduledEmailDialogMessage(props: Partial<IScheduledEmailDialogMessageProps>): ReactElement;
15
+ //# sourceMappingURL=ScheduledEmailDialogMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduledEmailDialogMessage.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogMessage.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAIrE;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,CAAC,iCAAiC,CAAC,GAAG,YAAY,CAM3G"}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { DefaultScheduledEmailDialogMessage } from "../DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogMessage.js";
3
+ import { useIsInPlatformChannel } from "../state/useIsInPlatformChannel.js";
4
+ import { useScheduledEmailDialogMessageProps } from "../state/useScheduledEmailDialogFieldProps.js";
5
+ import { WhenScheduledEmailDialogLoaded } from "./WhenScheduledEmailDialogLoaded.js";
6
+ /**
7
+ * The scheduled-export dialog's message field, connected to the dialog's state.
8
+ *
9
+ * Renders {@link DefaultScheduledEmailDialogMessage} with the props of
10
+ * {@link useScheduledEmailDialogMessageProps}; every prop passed here replaces the hook's value for
11
+ * that prop wholesale. Renders nothing while `useScheduledEmailDialogContext().isLoading` is true
12
+ * and for an in-platform notification channel (which has no e-mail message), the same visibility
13
+ * the default dialog gives the field.
14
+ *
15
+ * @alpha
16
+ */
17
+ export function ScheduledEmailDialogMessage(props) {
18
+ return (_jsx(WhenScheduledEmailDialogLoaded, { children: _jsx(ConnectedScheduledEmailDialogMessage, { ...props }) }));
19
+ }
20
+ function ConnectedScheduledEmailDialogMessage(overrides) {
21
+ const defaultProps = useScheduledEmailDialogMessageProps();
22
+ const isInPlatformChannel = useIsInPlatformChannel();
23
+ if (isInPlatformChannel) {
24
+ return null;
25
+ }
26
+ return _jsx(DefaultScheduledEmailDialogMessage, { ...defaultProps, ...overrides });
27
+ }
@@ -0,0 +1,16 @@
1
+ import { type ReactElement } from "react";
2
+ import { type IScheduledEmailDialogRecurrenceProps } from "../types.js";
3
+ /**
4
+ * The scheduled-export dialog's recurrence field, connected to the dialog's state.
5
+ *
6
+ * Renders {@link DefaultScheduledEmailDialogRecurrence} with the props of
7
+ * {@link useScheduledEmailDialogRecurrenceProps}; every prop passed here replaces the hook's value
8
+ * for that prop wholesale. Pass `onKeyDownSubmit` to submit on Enter from the recurrence inputs —
9
+ * the default dialog passes its save action; without it Enter does nothing here. Renders nothing
10
+ * while `useScheduledEmailDialogContext().isLoading` is true; otherwise ungated, unlike the other
11
+ * General-tab fields.
12
+ *
13
+ * @alpha
14
+ */
15
+ export declare function ScheduledEmailDialogRecurrence(props: Partial<IScheduledEmailDialogRecurrenceProps>): ReactElement;
16
+ //# sourceMappingURL=ScheduledEmailDialogRecurrence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduledEmailDialogRecurrence.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogRecurrence.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,EAAE,KAAK,oCAAoC,EAAE,MAAM,aAAa,CAAC;AAMxE;;;;;;;;;;;GAWG;AACH,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,OAAO,CAAC,oCAAoC,CAAC,GACrD,YAAY,CAMd"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { DefaultScheduledEmailDialogRecurrence } from "../DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogRecurrence.js";
3
+ import { useScheduledEmailDialogRecurrenceProps } from "../state/useScheduledEmailDialogFieldProps.js";
4
+ import { WhenScheduledEmailDialogLoaded } from "./WhenScheduledEmailDialogLoaded.js";
5
+ const noop = () => { };
6
+ /**
7
+ * The scheduled-export dialog's recurrence field, connected to the dialog's state.
8
+ *
9
+ * Renders {@link DefaultScheduledEmailDialogRecurrence} with the props of
10
+ * {@link useScheduledEmailDialogRecurrenceProps}; every prop passed here replaces the hook's value
11
+ * for that prop wholesale. Pass `onKeyDownSubmit` to submit on Enter from the recurrence inputs —
12
+ * the default dialog passes its save action; without it Enter does nothing here. Renders nothing
13
+ * while `useScheduledEmailDialogContext().isLoading` is true; otherwise ungated, unlike the other
14
+ * General-tab fields.
15
+ *
16
+ * @alpha
17
+ */
18
+ export function ScheduledEmailDialogRecurrence(props) {
19
+ return (_jsx(WhenScheduledEmailDialogLoaded, { children: _jsx(ConnectedScheduledEmailDialogRecurrence, { ...props }) }));
20
+ }
21
+ function ConnectedScheduledEmailDialogRecurrence({ onKeyDownSubmit, ...overrides }) {
22
+ const defaultProps = useScheduledEmailDialogRecurrenceProps({ onKeyDownSubmit: onKeyDownSubmit ?? noop });
23
+ return _jsx(DefaultScheduledEmailDialogRecurrence, { ...defaultProps, ...overrides });
24
+ }
@@ -0,0 +1,59 @@
1
+ import { type ReactElement } from "react";
2
+ import { type IScheduledEmailDialogShellProps } from "../types.js";
3
+ /**
4
+ * The scheduled-export dialog's chrome, connected to the dialog's state: the modal overlay, the dialog
5
+ * frame with the header row (the back button and the title input) and the action bar, the General and
6
+ * Filters tabs, the scrollable content area around the selected tab's content, the body's error and
7
+ * validation messages, the stale-filters confirmation step shown before the dialog when the saved filters
8
+ * or schedule timezone no longer match the dashboard, and the delete confirmation reached from the
9
+ * action bar in edit mode. While `useScheduledEmailDialogContext().isLoading` is true — on scheduled
10
+ * email the ordinary path while a widget export's filters load — it renders the loading skeleton and
11
+ * none of its children.
12
+ *
13
+ * The default dialog is `<ScheduledEmailDialogShell>` around the region blocks and form; a custom
14
+ * `ScheduledEmailDialogComponent` that keeps this chrome and arranges the blocks differently renders the
15
+ * shell itself. The shell does not own the save: call {@link useSaveScheduledEmailToBackend} and pass its
16
+ * `handleSaveScheduledEmail`, `isSavingScheduledEmail` and `savingErrorMessage`; build Enter handlers for
17
+ * the blocks you place with {@link useScheduledEmailSubmitOnEnter} over the same `handleSaveScheduledEmail`.
18
+ * Call that hook only once `useScheduledEmailDialogContext().isLoading` is false — the state hooks throw
19
+ * while the dialog loads — and render the shell alone (any `onSubmit`, `isSaving: false`) until then, as
20
+ * the example does.
21
+ *
22
+ * Needs an ambient `IntlProvider`; inside a `Dashboard` the dashboard's provider covers it.
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * function MyScheduledEmailDialog(props: IScheduledEmailDialogProps) {
27
+ * const { isLoading } = useScheduledEmailDialogContext();
28
+ * // the state hooks throw while the dialog loads; the shell renders the loading skeleton
29
+ * if (isLoading) {
30
+ * return <ScheduledEmailDialogShell {...props} onSubmit={() => {}} isSaving={false} />;
31
+ * }
32
+ * return <MyScheduledEmailDialogBody {...props} />;
33
+ * }
34
+ *
35
+ * function MyScheduledEmailDialogBody(props: IScheduledEmailDialogProps) {
36
+ * const { handleSaveScheduledEmail, isSavingScheduledEmail, savingErrorMessage } =
37
+ * useSaveScheduledEmailToBackend(props);
38
+ * const submitOnEnter = useScheduledEmailSubmitOnEnter({
39
+ * onSubmit: handleSaveScheduledEmail,
40
+ * isSaving: isSavingScheduledEmail,
41
+ * });
42
+ * return (
43
+ * <ScheduledEmailDialogShell
44
+ * {...props}
45
+ * onSubmit={handleSaveScheduledEmail}
46
+ * isSaving={isSavingScheduledEmail}
47
+ * savingErrorMessage={savingErrorMessage}
48
+ * >
49
+ * <ScheduledEmailDialogDestination />
50
+ * <ScheduledEmailDialogRecipients onKeyDownSubmit={submitOnEnter} />
51
+ * </ScheduledEmailDialogShell>
52
+ * );
53
+ * }
54
+ * ```
55
+ *
56
+ * @alpha
57
+ */
58
+ export declare function ScheduledEmailDialogShell(props: IScheduledEmailDialogShellProps): ReactElement;
59
+ //# sourceMappingURL=ScheduledEmailDialogShell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduledEmailDialogShell.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogShell.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAA0C,MAAM,OAAO,CAAC;AA4ClF,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAMnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,+BAA+B,GAAG,YAAY,CAW9F"}
@@ -0,0 +1,195 @@
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // (C) 2026 GoodData Corporation
3
+ import { useCallback, useMemo, useRef, useState } from "react";
4
+ import cx from "classnames";
5
+ import { useIntl } from "react-intl";
6
+ import { ValidationContextStore, createInvalidNode, useValidationContextValue } from "@gooddata/sdk-ui";
7
+ import { ConfirmDialogBase, Message, Overlay, OverlayController, OverlayControllerProvider, ScrollablePanel, UiTabs, useIdPrefixed, } from "@gooddata/sdk-ui-kit";
8
+ import { DASHBOARD_DIALOG_OVERS_Z_INDEX } from "../../../constants/zIndex.js";
9
+ import { useAutomationsContext } from "../../contexts/AutomationsContext.js";
10
+ import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
11
+ import { ApplyCurrentFiltersConfirmDialog } from "../../shared/automationFilters/components/ApplyLatestFiltersConfirmDialog.js";
12
+ import { DefaultAutomationDialogActionBar } from "../../shared/slots/DefaultAutomationDialogActionBar.js";
13
+ import { DefaultScheduledEmailDialogFilters } from "../DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogFilters.js";
14
+ import { DefaultScheduledEmailDialogHeader } from "../DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogHeader.js";
15
+ import { SCHEDULED_EMAIL_DIALOG_ID } from "../DefaultScheduledEmailDialog/constants.js";
16
+ import { useElementHeightSnapshot } from "../DefaultScheduledEmailDialog/hooks/useElementHeightSnapshot.js";
17
+ import { DeleteScheduleConfirmDialog } from "../DefaultScheduledEmailManagementDialog/components/DeleteScheduleConfirmDialog.js";
18
+ import { useScheduleEmailDialogAccessibility } from "../hooks/useScheduleEmailDialogAccessibility.js";
19
+ import { useScheduledExportActions } from "../state/ScheduledExportActionsContext.js";
20
+ import { useScheduledExportDraft } from "../state/ScheduledExportDraftContext.js";
21
+ import { useScheduledExportFilters } from "../state/ScheduledExportFiltersContext.js";
22
+ import { useScheduledEmailDialogActionBarProps, useScheduledEmailDialogFiltersProps, useScheduledEmailDialogHeaderProps, } from "../state/useScheduledEmailDialogRegionProps.js";
23
+ import { useScheduledEmailSubmitOnEnter } from "../state/useScheduledEmailSubmitOnEnter.js";
24
+ import { useScheduledExportAttachments } from "../state/useScheduledExportAttachments.js";
25
+ import { useScheduledExportDialogValidity } from "../state/useScheduledExportDialogValidity.js";
26
+ import { DefaultLoadingScheduledEmailDialog } from "./DefaultLoadingScheduledEmailDialog.js";
27
+ const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z_INDEX);
28
+ /**
29
+ * The scheduled-export dialog's chrome, connected to the dialog's state: the modal overlay, the dialog
30
+ * frame with the header row (the back button and the title input) and the action bar, the General and
31
+ * Filters tabs, the scrollable content area around the selected tab's content, the body's error and
32
+ * validation messages, the stale-filters confirmation step shown before the dialog when the saved filters
33
+ * or schedule timezone no longer match the dashboard, and the delete confirmation reached from the
34
+ * action bar in edit mode. While `useScheduledEmailDialogContext().isLoading` is true — on scheduled
35
+ * email the ordinary path while a widget export's filters load — it renders the loading skeleton and
36
+ * none of its children.
37
+ *
38
+ * The default dialog is `<ScheduledEmailDialogShell>` around the region blocks and form; a custom
39
+ * `ScheduledEmailDialogComponent` that keeps this chrome and arranges the blocks differently renders the
40
+ * shell itself. The shell does not own the save: call {@link useSaveScheduledEmailToBackend} and pass its
41
+ * `handleSaveScheduledEmail`, `isSavingScheduledEmail` and `savingErrorMessage`; build Enter handlers for
42
+ * the blocks you place with {@link useScheduledEmailSubmitOnEnter} over the same `handleSaveScheduledEmail`.
43
+ * Call that hook only once `useScheduledEmailDialogContext().isLoading` is false — the state hooks throw
44
+ * while the dialog loads — and render the shell alone (any `onSubmit`, `isSaving: false`) until then, as
45
+ * the example does.
46
+ *
47
+ * Needs an ambient `IntlProvider`; inside a `Dashboard` the dashboard's provider covers it.
48
+ *
49
+ * @example
50
+ * ```tsx
51
+ * function MyScheduledEmailDialog(props: IScheduledEmailDialogProps) {
52
+ * const { isLoading } = useScheduledEmailDialogContext();
53
+ * // the state hooks throw while the dialog loads; the shell renders the loading skeleton
54
+ * if (isLoading) {
55
+ * return <ScheduledEmailDialogShell {...props} onSubmit={() => {}} isSaving={false} />;
56
+ * }
57
+ * return <MyScheduledEmailDialogBody {...props} />;
58
+ * }
59
+ *
60
+ * function MyScheduledEmailDialogBody(props: IScheduledEmailDialogProps) {
61
+ * const { handleSaveScheduledEmail, isSavingScheduledEmail, savingErrorMessage } =
62
+ * useSaveScheduledEmailToBackend(props);
63
+ * const submitOnEnter = useScheduledEmailSubmitOnEnter({
64
+ * onSubmit: handleSaveScheduledEmail,
65
+ * isSaving: isSavingScheduledEmail,
66
+ * });
67
+ * return (
68
+ * <ScheduledEmailDialogShell
69
+ * {...props}
70
+ * onSubmit={handleSaveScheduledEmail}
71
+ * isSaving={isSavingScheduledEmail}
72
+ * savingErrorMessage={savingErrorMessage}
73
+ * >
74
+ * <ScheduledEmailDialogDestination />
75
+ * <ScheduledEmailDialogRecipients onKeyDownSubmit={submitOnEnter} />
76
+ * </ScheduledEmailDialogShell>
77
+ * );
78
+ * }
79
+ * ```
80
+ *
81
+ * @alpha
82
+ */
83
+ export function ScheduledEmailDialogShell(props) {
84
+ const { isLoading, scheduledExportToEdit } = useScheduledEmailDialogContext();
85
+ if (isLoading) {
86
+ return (_jsx(DefaultLoadingScheduledEmailDialog, { onCancel: props.onCancel, scheduledExportToEdit: scheduledExportToEdit }));
87
+ }
88
+ return _jsx(LoadedScheduledEmailDialogShell, { ...props });
89
+ }
90
+ function LoadedScheduledEmailDialogShell({ onBack, onCancel, onDeleteSuccess, onDeleteError, onSubmit, isSaving, savingErrorMessage, slots, topContent, bottomContent, children, filtersTabContent, }) {
91
+ const HeaderSlot = slots?.Header;
92
+ const FiltersSlot = slots?.Filters;
93
+ const ActionBarSlot = slots?.ActionBar;
94
+ const intl = useIntl();
95
+ const dialogTitleRef = useRef(null);
96
+ const generalTabContentRef = useRef(null);
97
+ const [scheduledEmailToDelete, setScheduledEmailToDelete] = useState(null);
98
+ const [selectedTabId, setSelectedTabId] = useState("general");
99
+ const { tabIds } = useAutomationsContext();
100
+ const { widget } = useScheduledEmailDialogContext();
101
+ const handleScheduleDeleteSuccess = () => {
102
+ onDeleteSuccess?.();
103
+ setScheduledEmailToDelete(null);
104
+ };
105
+ const { editedAutomation, scheduleTimezoneIsStale } = useScheduledExportDraft();
106
+ const { applyCurrentScheduleTimezone } = useScheduledExportActions();
107
+ const { onApplyCurrentFilters, automationIsValid, applyLatest: applyLatestParameters, } = useScheduledExportFilters();
108
+ const { selectedAttachments } = useScheduledExportAttachments();
109
+ const { validationErrorMessage } = useScheduledExportDialogValidity();
110
+ // a stale schedule timezone repairs through the same consent dialog as stale filters
111
+ const [isApplyCurrentFiltersDialogOpen, setIsApplyCurrentFiltersDialogOpen] = useState(!automationIsValid || scheduleTimezoneIsStale);
112
+ const { returnFocusTo } = useScheduleEmailDialogAccessibility();
113
+ const missingAttachmentsErrorMessage = selectedAttachments.length === 0 &&
114
+ intl.formatMessage({ id: "scheduledEmail.attachments.error.noAttachmentsSelected" });
115
+ const validationContextValue = useValidationContextValue(createInvalidNode({ id: "ScheduledEmailDialog" }));
116
+ const { getInvalidDatapoints } = validationContextValue;
117
+ const errorMessage = savingErrorMessage ?? validationErrorMessage ?? missingAttachmentsErrorMessage;
118
+ const titleElementId = useIdPrefixed("title");
119
+ const submitOnEnter = useScheduledEmailSubmitOnEnter({ onSubmit, isSaving });
120
+ const actionBarDefaultProps = useScheduledEmailDialogActionBarProps({
121
+ onCancel,
122
+ onSubmit,
123
+ isSaving,
124
+ onDelete: () => setScheduledEmailToDelete(editedAutomation),
125
+ });
126
+ const headerDefaultProps = useScheduledEmailDialogHeaderProps({
127
+ onBack,
128
+ onTitleKeyDown: submitOnEnter,
129
+ ref: dialogTitleRef,
130
+ });
131
+ const filtersDefaultProps = useScheduledEmailDialogFiltersProps();
132
+ const tabs = useMemo(() => [
133
+ {
134
+ id: "general",
135
+ label: intl.formatMessage({ id: "dialogs.schedule.email.tabs.general" }),
136
+ },
137
+ {
138
+ id: "filters",
139
+ label: intl.formatMessage({ id: "dialogs.schedule.email.tabs.filters" }),
140
+ },
141
+ ], [intl]);
142
+ const handleTabSelect = useCallback((tab) => {
143
+ setSelectedTabId(tab.id);
144
+ }, []);
145
+ // Measure General tab content height to maintain consistent dialog size. Re-measures on
146
+ // content-size changes within the General tab itself (e.g. validation messages
147
+ // appearing/disappearing), not just on tab switch - otherwise the Filters tab could
148
+ // inherit a stale minHeight from before the change. The last measured value is kept
149
+ // internally so it survives the General tab unmounting when the user switches to Filters.
150
+ const tabContentHeight = useElementHeightSnapshot(generalTabContentRef, selectedTabId);
151
+ if (isApplyCurrentFiltersDialogOpen) {
152
+ return (_jsx(ApplyCurrentFiltersConfirmDialog, { automationType: "schedule", filtersChanged: !automationIsValid, timezoneChanged: scheduleTimezoneIsStale, onCancel: () => onCancel?.(), onEdit: () => {
153
+ // each repair only fixes its own staleness: a timezone-only repair must not
154
+ // replace intentionally snapshotted, still-valid filters (and vice versa)
155
+ if (!automationIsValid) {
156
+ onApplyCurrentFilters();
157
+ applyLatestParameters();
158
+ }
159
+ applyCurrentScheduleTimezone();
160
+ setIsApplyCurrentFiltersDialogOpen(false);
161
+ } }));
162
+ }
163
+ const filtersTab = filtersTabContent === undefined ? (FiltersSlot ? (_jsx(FiltersSlot, { Default: DefaultScheduledEmailDialogFilters, defaultProps: filtersDefaultProps })) : (_jsx(DefaultScheduledEmailDialogFilters, { ...filtersDefaultProps }))) : (filtersTabContent);
164
+ return (_jsxs(_Fragment, { children: [
165
+ _jsx(Overlay, { className: "gd-notifications-channels-dialog-overlay", isModal: true, positionType: "fixed", ensureVisibility: true, children: _jsx(OverlayControllerProvider, { overlayController: overlayController, children: _jsx(ValidationContextStore, { value: validationContextValue, children: _jsxs(ConfirmDialogBase, { className: "gd-notifications-channels-dialog s-gd-notifications-channels-dialog gd-dialog--wide gd-notifications-channels-dialog--wide", accessibilityConfig: {
166
+ closeButton: {
167
+ ariaLabel: intl.formatMessage({
168
+ id: "dialogs.schedule.email.closeLabel",
169
+ }),
170
+ },
171
+ titleElementId,
172
+ dialogId: SCHEDULED_EMAIL_DIALOG_ID,
173
+ }, returnFocusTo: returnFocusTo, returnFocusAfterClose: false, footerRenderer: () => ActionBarSlot ? (_jsx(ActionBarSlot, { Default: DefaultAutomationDialogActionBar, defaultProps: actionBarDefaultProps })) : (_jsx(DefaultAutomationDialogActionBar, { ...actionBarDefaultProps })), isSubmitDisabled: actionBarDefaultProps.isSubmitDisabled, initialFocus: dialogTitleRef, submitOnEnterKey: false, onCancel: onCancel, onSubmit: actionBarDefaultProps.onSubmit, headline: undefined, headerLeftButtonRenderer: () => HeaderSlot ? (_jsx(HeaderSlot, { Default: DefaultScheduledEmailDialogHeader, defaultProps: headerDefaultProps })) : (_jsx(DefaultScheduledEmailDialogHeader, { ...headerDefaultProps })), children: [
174
+ _jsx("h2", { className: "sr-only", id: titleElementId, children: intl.formatMessage({ id: "dialogs.schedule.email.accessibilityTitle" }) }), tabs.length > 1 ? (_jsx(UiTabs, { tabs: tabs, selectedTabId: selectedTabId, onTabSelect: handleTabSelect, size: "medium", accessibilityConfig: {
175
+ role: "tablist",
176
+ tabRole: "tab",
177
+ ariaLabel: intl.formatMessage({
178
+ id: "dialogs.schedule.email.accessibilityTitle",
179
+ }),
180
+ }, disableBottomBorder: true })) : null, _jsxs(ScrollablePanel, { className: cx("gd-notifications-channel-dialog-content-wrapper", {
181
+ "gd-notification-channel-dialog-with-automation-filters": true,
182
+ "gd-notification-channel-dialog-with-tabs": tabs.length > 1,
183
+ }), children: [topContent, _jsx("div", { className: "gd-divider-with-margin" }), selectedTabId === "filters" ? (_jsx("div", { className: "gd-schedule-dialog-tab-content", style: tabContentHeight
184
+ ? { minHeight: `${tabContentHeight}px` }
185
+ : undefined, children: filtersTab })) : (_jsxs("div", { ref: generalTabContentRef, className: "gd-schedule-dialog-tab-content", children: [!widget && tabIds.length > 1 ? (_jsx(Message, { type: "progress", className: "gd-schedule-dialog-tab-content-info", children: intl.formatMessage({
186
+ id: "dialogs.schedule.email.tabs.info",
187
+ }) })) : null, children, errorMessage ? (_jsx(Message, { type: "error", className: cx("gd-notifications-channels-dialog-error", {
188
+ "gd-notifications-channels-dialog-error-scrollable": true,
189
+ }), children: errorMessage })) : null, getInvalidDatapoints()
190
+ .filter((invalidDatapoint) => invalidDatapoint.severity === "error")
191
+ .map((invalidDatapoint) => (_jsx(Message, { id: invalidDatapoint.id, type: "error", className: cx("gd-notifications-channels-dialog-error", {
192
+ "gd-notifications-channels-dialog-error-scrollable": true,
193
+ }), children: invalidDatapoint.message }, invalidDatapoint.id)))] })), bottomContent] })
194
+ ] }) }) }) }), scheduledEmailToDelete ? (_jsx(DeleteScheduleConfirmDialog, { scheduledEmail: scheduledEmailToDelete, onCancel: () => setScheduledEmailToDelete(null), onSuccess: handleScheduleDeleteSuccess, onError: onDeleteError })) : null] }));
195
+ }
@@ -0,0 +1,16 @@
1
+ import { type ReactElement } from "react";
2
+ import { type IScheduledEmailDialogSubjectProps } from "../types.js";
3
+ /**
4
+ * The scheduled-export dialog's subject field, connected to the dialog's state.
5
+ *
6
+ * Renders {@link DefaultScheduledEmailDialogSubject} with the props of
7
+ * {@link useScheduledEmailDialogSubjectProps}; every prop passed here replaces the hook's value for
8
+ * that prop wholesale. Pass `onKeyDownSubmit` to submit on Enter from the subject input — the
9
+ * default dialog passes its save action; without it Enter does nothing here. Renders nothing while
10
+ * `useScheduledEmailDialogContext().isLoading` is true and for an in-platform notification channel
11
+ * (which has no e-mail subject), the same visibility the default dialog gives the field.
12
+ *
13
+ * @alpha
14
+ */
15
+ export declare function ScheduledEmailDialogSubject(props: Partial<IScheduledEmailDialogSubjectProps>): ReactElement;
16
+ //# sourceMappingURL=ScheduledEmailDialogSubject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduledEmailDialogSubject.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogSubject.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAMrE;;;;;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,CAAC,iCAAiC,CAAC,GAAG,YAAY,CAM3G"}
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { DefaultScheduledEmailDialogSubject } from "../DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogSubject.js";
3
+ import { useIsInPlatformChannel } from "../state/useIsInPlatformChannel.js";
4
+ import { useScheduledEmailDialogSubjectProps } from "../state/useScheduledEmailDialogFieldProps.js";
5
+ import { WhenScheduledEmailDialogLoaded } from "./WhenScheduledEmailDialogLoaded.js";
6
+ const noop = () => { };
7
+ /**
8
+ * The scheduled-export dialog's subject field, connected to the dialog's state.
9
+ *
10
+ * Renders {@link DefaultScheduledEmailDialogSubject} with the props of
11
+ * {@link useScheduledEmailDialogSubjectProps}; every prop passed here replaces the hook's value for
12
+ * that prop wholesale. Pass `onKeyDownSubmit` to submit on Enter from the subject input — the
13
+ * default dialog passes its save action; without it Enter does nothing here. Renders nothing while
14
+ * `useScheduledEmailDialogContext().isLoading` is true and for an in-platform notification channel
15
+ * (which has no e-mail subject), the same visibility the default dialog gives the field.
16
+ *
17
+ * @alpha
18
+ */
19
+ export function ScheduledEmailDialogSubject(props) {
20
+ return (_jsx(WhenScheduledEmailDialogLoaded, { children: _jsx(ConnectedScheduledEmailDialogSubject, { ...props }) }));
21
+ }
22
+ function ConnectedScheduledEmailDialogSubject({ onKeyDownSubmit, ...overrides }) {
23
+ const defaultProps = useScheduledEmailDialogSubjectProps({ onKeyDownSubmit: onKeyDownSubmit ?? noop });
24
+ const isInPlatformChannel = useIsInPlatformChannel();
25
+ if (isInPlatformChannel) {
26
+ return null;
27
+ }
28
+ return _jsx(DefaultScheduledEmailDialogSubject, { ...defaultProps, ...overrides });
29
+ }
@@ -0,0 +1,16 @@
1
+ import { type ReactElement } from "react";
2
+ import { type IScheduledEmailDialogWidgetAttachmentsProps } from "../types.js";
3
+ /**
4
+ * The scheduled-export dialog's widget-attachments field, connected to the dialog's state.
5
+ *
6
+ * Renders {@link DefaultScheduledEmailDialogWidgetAttachments} with the props of
7
+ * {@link useScheduledEmailDialogWidgetAttachmentsProps}; every prop passed here replaces the hook's
8
+ * value for that prop wholesale. Renders nothing while `useScheduledEmailDialogContext().isLoading`
9
+ * is true and when the dialog context has no `widget` (a dashboard schedule renders
10
+ * {@link ScheduledEmailDialogDashboardAttachments} instead), the same visibility the default dialog
11
+ * gives the field.
12
+ *
13
+ * @alpha
14
+ */
15
+ export declare function ScheduledEmailDialogWidgetAttachments(props: Partial<IScheduledEmailDialogWidgetAttachmentsProps>): ReactElement;
16
+ //# sourceMappingURL=ScheduledEmailDialogWidgetAttachments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduledEmailDialogWidgetAttachments.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/blocks/ScheduledEmailDialogWidgetAttachments.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,KAAK,2CAA2C,EAAE,MAAM,aAAa,CAAC;AAI/E;;;;;;;;;;;GAWG;AACH,wBAAgB,qCAAqC,CACjD,KAAK,EAAE,OAAO,CAAC,2CAA2C,CAAC,GAC5D,YAAY,CAMd"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useScheduledEmailDialogContext } from "../../contexts/ScheduledEmailDialogContext.js";
3
+ import { DefaultScheduledEmailDialogWidgetAttachments } from "../DefaultScheduledEmailDialog/components/DefaultScheduledEmailDialogWidgetAttachments.js";
4
+ import { useScheduledEmailDialogWidgetAttachmentsProps } from "../state/useScheduledEmailDialogFieldProps.js";
5
+ import { WhenScheduledEmailDialogLoaded } from "./WhenScheduledEmailDialogLoaded.js";
6
+ /**
7
+ * The scheduled-export dialog's widget-attachments field, connected to the dialog's state.
8
+ *
9
+ * Renders {@link DefaultScheduledEmailDialogWidgetAttachments} with the props of
10
+ * {@link useScheduledEmailDialogWidgetAttachmentsProps}; every prop passed here replaces the hook's
11
+ * value for that prop wholesale. Renders nothing while `useScheduledEmailDialogContext().isLoading`
12
+ * is true and when the dialog context has no `widget` (a dashboard schedule renders
13
+ * {@link ScheduledEmailDialogDashboardAttachments} instead), the same visibility the default dialog
14
+ * gives the field.
15
+ *
16
+ * @alpha
17
+ */
18
+ export function ScheduledEmailDialogWidgetAttachments(props) {
19
+ return (_jsx(WhenScheduledEmailDialogLoaded, { children: _jsx(ConnectedScheduledEmailDialogWidgetAttachments, { ...props }) }));
20
+ }
21
+ function ConnectedScheduledEmailDialogWidgetAttachments(overrides) {
22
+ const defaultProps = useScheduledEmailDialogWidgetAttachmentsProps();
23
+ const { widget } = useScheduledEmailDialogContext();
24
+ if (!widget) {
25
+ return null;
26
+ }
27
+ return _jsx(DefaultScheduledEmailDialogWidgetAttachments, { ...defaultProps, ...overrides });
28
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Whether the draft's selected notification channel delivers in-platform only.
3
+ * The subject and message fields hide for such a channel.
4
+ */
5
+ export declare function useIsInPlatformChannel(): boolean;
6
+ //# sourceMappingURL=useIsInPlatformChannel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsInPlatformChannel.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/scheduledEmail/state/useIsInPlatformChannel.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAOhD"}