@webiny/app-workflows 6.3.0 → 6.4.0-beta.1

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 (339) hide show
  1. package/Components/AdminConfig/WorkflowsMenu.js +18 -19
  2. package/Components/AdminConfig/WorkflowsMenu.js.map +1 -1
  3. package/Components/App/ContentReviews.js +24 -25
  4. package/Components/App/ContentReviews.js.map +1 -1
  5. package/Components/App/WorkflowsAdminApp.js +5 -10
  6. package/Components/App/WorkflowsAdminApp.js.map +1 -1
  7. package/Components/App/index.js +0 -2
  8. package/Components/Common/Options/OptionItem/Approve.js +16 -20
  9. package/Components/Common/Options/OptionItem/Approve.js.map +1 -1
  10. package/Components/Common/Options/OptionItem/OpenInNewWindow.js +3 -6
  11. package/Components/Common/Options/OptionItem/OpenInNewWindow.js.map +1 -1
  12. package/Components/Common/Options/OptionItem/Reject.js +16 -20
  13. package/Components/Common/Options/OptionItem/Reject.js.map +1 -1
  14. package/Components/Common/Options/OptionItem/Start.js +15 -19
  15. package/Components/Common/Options/OptionItem/Start.js.map +1 -1
  16. package/Components/Common/Options/OptionItem/TakeOver.js +15 -19
  17. package/Components/Common/Options/OptionItem/TakeOver.js.map +1 -1
  18. package/Components/Common/Options/WorkflowStateOptions.js +57 -58
  19. package/Components/Common/Options/WorkflowStateOptions.js.map +1 -1
  20. package/Components/Common/Options/index.js +0 -2
  21. package/Components/Common/TagState.js +9 -10
  22. package/Components/Common/TagState.js.map +1 -1
  23. package/Components/Common/TagStep.js +9 -10
  24. package/Components/Common/TagStep.js.map +1 -1
  25. package/Components/Common/YouCanTrackAllContentReviewsHere.js +8 -9
  26. package/Components/Common/YouCanTrackAllContentReviewsHere.js.map +1 -1
  27. package/Components/Common/index.js +0 -2
  28. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarApproved.js +15 -23
  29. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarApproved.js.map +1 -1
  30. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarCancelReview.js +15 -23
  31. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarCancelReview.js.map +1 -1
  32. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarError.js +14 -23
  33. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarError.js.map +1 -1
  34. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarLoading.js +10 -18
  35. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarLoading.js.map +1 -1
  36. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRejected.js +22 -30
  37. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRejected.js.map +1 -1
  38. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRequestReview.js +13 -21
  39. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRequestReview.js.map +1 -1
  40. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarReview.js +30 -51
  41. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarReview.js.map +1 -1
  42. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarStartReview.js +17 -25
  43. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarStartReview.js.map +1 -1
  44. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarWorkflow.js +7 -15
  45. package/Components/WorkflowState/Bar/Bars/WorkflowStateBarWorkflow.js.map +1 -1
  46. package/Components/WorkflowState/Bar/Dialogs/ApproveDialog.js +13 -16
  47. package/Components/WorkflowState/Bar/Dialogs/ApproveDialog.js.map +1 -1
  48. package/Components/WorkflowState/Bar/Dialogs/ApproveSuccessDialog.js +11 -14
  49. package/Components/WorkflowState/Bar/Dialogs/ApproveSuccessDialog.js.map +1 -1
  50. package/Components/WorkflowState/Bar/Dialogs/CancelReviewDialog.js +10 -11
  51. package/Components/WorkflowState/Bar/Dialogs/CancelReviewDialog.js.map +1 -1
  52. package/Components/WorkflowState/Bar/Dialogs/CommentDialog.js +11 -14
  53. package/Components/WorkflowState/Bar/Dialogs/CommentDialog.js.map +1 -1
  54. package/Components/WorkflowState/Bar/Dialogs/RejectDialog.js +13 -16
  55. package/Components/WorkflowState/Bar/Dialogs/RejectDialog.js.map +1 -1
  56. package/Components/WorkflowState/Bar/Dialogs/RejectSuccessDialog.js +11 -14
  57. package/Components/WorkflowState/Bar/Dialogs/RejectSuccessDialog.js.map +1 -1
  58. package/Components/WorkflowState/Bar/Dialogs/RequestReviewDialog.js +10 -11
  59. package/Components/WorkflowState/Bar/Dialogs/RequestReviewDialog.js.map +1 -1
  60. package/Components/WorkflowState/Bar/Dialogs/StartDialog.js +13 -16
  61. package/Components/WorkflowState/Bar/Dialogs/StartDialog.js.map +1 -1
  62. package/Components/WorkflowState/Bar/Dialogs/StartSuccessDialog.js +11 -14
  63. package/Components/WorkflowState/Bar/Dialogs/StartSuccessDialog.js.map +1 -1
  64. package/Components/WorkflowState/Bar/Dialogs/TakeOverDialog.js +15 -18
  65. package/Components/WorkflowState/Bar/Dialogs/TakeOverDialog.js.map +1 -1
  66. package/Components/WorkflowState/Bar/Dialogs/TakeOverSuccessDialog.js +11 -14
  67. package/Components/WorkflowState/Bar/Dialogs/TakeOverSuccessDialog.js.map +1 -1
  68. package/Components/WorkflowState/Bar/Dialogs/index.js +0 -2
  69. package/Components/WorkflowState/Bar/WorkflowStateBar.js +13 -20
  70. package/Components/WorkflowState/Bar/WorkflowStateBar.js.map +1 -1
  71. package/Components/WorkflowState/Bar/WorkflowStateBarComponent.js +10 -18
  72. package/Components/WorkflowState/Bar/WorkflowStateBarComponent.js.map +1 -1
  73. package/Components/WorkflowState/Bar/WorkflowStateBarDialogs.js +51 -52
  74. package/Components/WorkflowState/Bar/WorkflowStateBarDialogs.js.map +1 -1
  75. package/Components/WorkflowState/Bar/index.js +0 -2
  76. package/Components/WorkflowState/Overlay/WorkflowStateOverlay.js +7 -11
  77. package/Components/WorkflowState/Overlay/WorkflowStateOverlay.js.map +1 -1
  78. package/Components/WorkflowState/Tooltip/WorkflowStateTooltip.js +32 -40
  79. package/Components/WorkflowState/Tooltip/WorkflowStateTooltip.js.map +1 -1
  80. package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContent.js +30 -36
  81. package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContent.js.map +1 -1
  82. package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContentComment.js +17 -21
  83. package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContentComment.js.map +1 -1
  84. package/Components/WorkflowState/WorkflowStateProvider.d.ts +1 -0
  85. package/Components/WorkflowState/WorkflowStateProvider.js +41 -40
  86. package/Components/WorkflowState/WorkflowStateProvider.js.map +1 -1
  87. package/Components/WorkflowState/index.js +0 -2
  88. package/Components/WorkflowState/useWorkflowState.js +5 -6
  89. package/Components/WorkflowState/useWorkflowState.js.map +1 -1
  90. package/Components/WorkflowStateDialogs/ApproveDialog.js +43 -44
  91. package/Components/WorkflowStateDialogs/ApproveDialog.js.map +1 -1
  92. package/Components/WorkflowStateDialogs/ApproveSuccessDialog.js +27 -29
  93. package/Components/WorkflowStateDialogs/ApproveSuccessDialog.js.map +1 -1
  94. package/Components/WorkflowStateDialogs/CancelReviewDialog.js +29 -32
  95. package/Components/WorkflowStateDialogs/CancelReviewDialog.js.map +1 -1
  96. package/Components/WorkflowStateDialogs/CommentDialog.js +34 -40
  97. package/Components/WorkflowStateDialogs/CommentDialog.js.map +1 -1
  98. package/Components/WorkflowStateDialogs/RejectDialog.js +73 -76
  99. package/Components/WorkflowStateDialogs/RejectDialog.js.map +1 -1
  100. package/Components/WorkflowStateDialogs/RejectSuccessDialog.js +25 -27
  101. package/Components/WorkflowStateDialogs/RejectSuccessDialog.js.map +1 -1
  102. package/Components/WorkflowStateDialogs/RequestReviewDialog.js +29 -32
  103. package/Components/WorkflowStateDialogs/RequestReviewDialog.js.map +1 -1
  104. package/Components/WorkflowStateDialogs/StartDialog.js +29 -33
  105. package/Components/WorkflowStateDialogs/StartDialog.js.map +1 -1
  106. package/Components/WorkflowStateDialogs/StartSuccessDialog.js +25 -27
  107. package/Components/WorkflowStateDialogs/StartSuccessDialog.js.map +1 -1
  108. package/Components/WorkflowStateDialogs/TakeOverDialog.js +29 -34
  109. package/Components/WorkflowStateDialogs/TakeOverDialog.js.map +1 -1
  110. package/Components/WorkflowStateDialogs/TakeOverSuccessDialog.js +25 -27
  111. package/Components/WorkflowStateDialogs/TakeOverSuccessDialog.js.map +1 -1
  112. package/Components/WorkflowStateDialogs/index.js +0 -2
  113. package/Components/WorkflowStateList/List/WorkflowStateList.js +80 -87
  114. package/Components/WorkflowStateList/List/WorkflowStateList.js.map +1 -1
  115. package/Components/WorkflowStateList/List/WorkflowStateListFilters.js +67 -61
  116. package/Components/WorkflowStateList/List/WorkflowStateListFilters.js.map +1 -1
  117. package/Components/WorkflowStateList/List/WorkflowStateListOptions.js +7 -8
  118. package/Components/WorkflowStateList/List/WorkflowStateListOptions.js.map +1 -1
  119. package/Components/WorkflowStateList/List/WorkflowStateListView.js +18 -21
  120. package/Components/WorkflowStateList/List/WorkflowStateListView.js.map +1 -1
  121. package/Components/WorkflowStateList/List/index.js +0 -2
  122. package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlay.js +24 -27
  123. package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlay.js.map +1 -1
  124. package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlayView.js +18 -25
  125. package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlayView.js.map +1 -1
  126. package/Components/WorkflowStateList/Overlay/index.js +0 -2
  127. package/Components/WorkflowStateList/Provider/WorkflowStateListProvider.js +30 -31
  128. package/Components/WorkflowStateList/Provider/WorkflowStateListProvider.js.map +1 -1
  129. package/Components/WorkflowStateList/Provider/index.js +0 -2
  130. package/Components/WorkflowStateList/hooks/index.js +0 -2
  131. package/Components/WorkflowStateList/hooks/useWorkflowStateList.js +5 -6
  132. package/Components/WorkflowStateList/hooks/useWorkflowStateList.js.map +1 -1
  133. package/Components/WorkflowStateList/index.js +0 -2
  134. package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCard.js +42 -45
  135. package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCard.js.map +1 -1
  136. package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCardTabs.js +43 -53
  137. package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCardTabs.js.map +1 -1
  138. package/Components/WorkflowStatesWidget/Dialogs/ApproveDialog.js +18 -21
  139. package/Components/WorkflowStatesWidget/Dialogs/ApproveDialog.js.map +1 -1
  140. package/Components/WorkflowStatesWidget/Dialogs/ApproveSuccessDialog.js +10 -13
  141. package/Components/WorkflowStatesWidget/Dialogs/ApproveSuccessDialog.js.map +1 -1
  142. package/Components/WorkflowStatesWidget/Dialogs/RejectDialog.js +18 -21
  143. package/Components/WorkflowStatesWidget/Dialogs/RejectDialog.js.map +1 -1
  144. package/Components/WorkflowStatesWidget/Dialogs/RejectSuccessDialog.js +10 -13
  145. package/Components/WorkflowStatesWidget/Dialogs/RejectSuccessDialog.js.map +1 -1
  146. package/Components/WorkflowStatesWidget/Dialogs/StartDialog.js +18 -21
  147. package/Components/WorkflowStatesWidget/Dialogs/StartDialog.js.map +1 -1
  148. package/Components/WorkflowStatesWidget/Dialogs/StartSuccessDialog.js +10 -13
  149. package/Components/WorkflowStatesWidget/Dialogs/StartSuccessDialog.js.map +1 -1
  150. package/Components/WorkflowStatesWidget/Dialogs/TakeOverDialog.js +21 -24
  151. package/Components/WorkflowStatesWidget/Dialogs/TakeOverDialog.js.map +1 -1
  152. package/Components/WorkflowStatesWidget/Dialogs/TakeOverSuccessDialog.js +10 -13
  153. package/Components/WorkflowStatesWidget/Dialogs/TakeOverSuccessDialog.js.map +1 -1
  154. package/Components/WorkflowStatesWidget/Dialogs/index.js +0 -2
  155. package/Components/WorkflowStatesWidget/List/WorkflowStateList.js +10 -13
  156. package/Components/WorkflowStatesWidget/List/WorkflowStateList.js.map +1 -1
  157. package/Components/WorkflowStatesWidget/List/WorkflowStateRow.js +16 -17
  158. package/Components/WorkflowStatesWidget/List/WorkflowStateRow.js.map +1 -1
  159. package/Components/WorkflowStatesWidget/List/WorkflowStateRowOptions.js +36 -27
  160. package/Components/WorkflowStatesWidget/List/WorkflowStateRowOptions.js.map +1 -1
  161. package/Components/WorkflowStatesWidget/Provider/WorkflowStatesProvider.js +24 -28
  162. package/Components/WorkflowStatesWidget/Provider/WorkflowStatesProvider.js.map +1 -1
  163. package/Components/WorkflowStatesWidget/Row/WorkflowStateRowDescription.js +12 -17
  164. package/Components/WorkflowStatesWidget/Row/WorkflowStateRowDescription.js.map +1 -1
  165. package/Components/WorkflowStatesWidget/WorkflowStatesOwnWidget.js +22 -20
  166. package/Components/WorkflowStatesWidget/WorkflowStatesOwnWidget.js.map +1 -1
  167. package/Components/WorkflowStatesWidget/WorkflowStatesRequestedWidget.js +20 -20
  168. package/Components/WorkflowStatesWidget/WorkflowStatesRequestedWidget.js.map +1 -1
  169. package/Components/WorkflowStatesWidget/hooks/useWorkflowStatesWidget.js +5 -6
  170. package/Components/WorkflowStatesWidget/hooks/useWorkflowStatesWidget.js.map +1 -1
  171. package/Components/WorkflowStatesWidget/index.js +0 -2
  172. package/Components/WorkflowsEditor/DataList/WorkflowsDataList.js +34 -40
  173. package/Components/WorkflowsEditor/DataList/WorkflowsDataList.js.map +1 -1
  174. package/Components/WorkflowsEditor/Editor/Error/FormattedError.js +28 -33
  175. package/Components/WorkflowsEditor/Editor/Error/FormattedError.js.map +1 -1
  176. package/Components/WorkflowsEditor/Editor/Error/WorkflowError.js +28 -35
  177. package/Components/WorkflowsEditor/Editor/Error/WorkflowError.js.map +1 -1
  178. package/Components/WorkflowsEditor/Editor/Step/Form/StepFormColor.js +11 -17
  179. package/Components/WorkflowsEditor/Editor/Step/Form/StepFormColor.js.map +1 -1
  180. package/Components/WorkflowsEditor/Editor/Step/Form/StepFormDescription.js +8 -9
  181. package/Components/WorkflowsEditor/Editor/Step/Form/StepFormDescription.js.map +1 -1
  182. package/Components/WorkflowsEditor/Editor/Step/Form/StepFormNotifications.js +27 -37
  183. package/Components/WorkflowsEditor/Editor/Step/Form/StepFormNotifications.js.map +1 -1
  184. package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTeams.js +21 -31
  185. package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTeams.js.map +1 -1
  186. package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTitle.js +9 -10
  187. package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTitle.js.map +1 -1
  188. package/Components/WorkflowsEditor/Editor/Step/InactiveStep.js +14 -15
  189. package/Components/WorkflowsEditor/Editor/Step/InactiveStep.js.map +1 -1
  190. package/Components/WorkflowsEditor/Editor/Step/NewStep.js +52 -51
  191. package/Components/WorkflowsEditor/Editor/Step/NewStep.js.map +1 -1
  192. package/Components/WorkflowsEditor/Editor/Step/Step/RemoveStep.js +26 -32
  193. package/Components/WorkflowsEditor/Editor/Step/Step/RemoveStep.js.map +1 -1
  194. package/Components/WorkflowsEditor/Editor/Step/Step.js +119 -134
  195. package/Components/WorkflowsEditor/Editor/Step/Step.js.map +1 -1
  196. package/Components/WorkflowsEditor/Editor/WorkflowEditor.js +37 -38
  197. package/Components/WorkflowsEditor/Editor/WorkflowEditor.js.map +1 -1
  198. package/Components/WorkflowsEditor/Editor/WorkflowEditorSteps.js +34 -39
  199. package/Components/WorkflowsEditor/Editor/WorkflowEditorSteps.js.map +1 -1
  200. package/Components/WorkflowsEditor/Editor/WorkflowEditorView.js +17 -23
  201. package/Components/WorkflowsEditor/Editor/WorkflowEditorView.js.map +1 -1
  202. package/Components/WorkflowsEditor/WorkflowsEditor.js +3 -4
  203. package/Components/WorkflowsEditor/WorkflowsEditor.js.map +1 -1
  204. package/Components/WorkflowsEditor/WorkflowsEditorBase.js +26 -33
  205. package/Components/WorkflowsEditor/WorkflowsEditorBase.js.map +1 -1
  206. package/Components/WorkflowsEditor/index.js +0 -2
  207. package/Components/WorkflowsPermissions/HasWorkflowsEditorPermission.js +6 -6
  208. package/Components/WorkflowsPermissions/HasWorkflowsEditorPermission.js.map +1 -1
  209. package/Components/WorkflowsPermissions/SecurityPermissions.js +11 -14
  210. package/Components/WorkflowsPermissions/SecurityPermissions.js.map +1 -1
  211. package/Components/WorkflowsPermissions/constants.js +2 -1
  212. package/Components/WorkflowsPermissions/constants.js.map +1 -1
  213. package/Components/WorkflowsPermissions/index.js +0 -2
  214. package/Components/WorkflowsPermissions/useWorkflowsPermission.js +13 -22
  215. package/Components/WorkflowsPermissions/useWorkflowsPermission.js.map +1 -1
  216. package/Components/helpers/index.js +0 -2
  217. package/Components/helpers/stateName.js +14 -13
  218. package/Components/helpers/stateName.js.map +1 -1
  219. package/Components/helpers/tagStateVariant.js +14 -13
  220. package/Components/helpers/tagStateVariant.js.map +1 -1
  221. package/Gateways/WorkflowNotificationTypesGateway.js +24 -23
  222. package/Gateways/WorkflowNotificationTypesGateway.js.map +1 -1
  223. package/Gateways/WorkflowStateGateway.js +163 -170
  224. package/Gateways/WorkflowStateGateway.js.map +1 -1
  225. package/Gateways/WorkflowStateListGateway.js +87 -80
  226. package/Gateways/WorkflowStateListGateway.js.map +1 -1
  227. package/Gateways/WorkflowStatesWidgetGateway.js +124 -123
  228. package/Gateways/WorkflowStatesWidgetGateway.js.map +1 -1
  229. package/Gateways/WorkflowsGateway.js +70 -67
  230. package/Gateways/WorkflowsGateway.js.map +1 -1
  231. package/Gateways/abstraction/WorkflowNotificationTypesGateway.js +0 -3
  232. package/Gateways/abstraction/WorkflowStateGateway.js +0 -3
  233. package/Gateways/abstraction/WorkflowStateListGateway.js +0 -3
  234. package/Gateways/abstraction/WorkflowStatesWidgetGateway.js +0 -3
  235. package/Gateways/abstraction/WorkflowsGateway.js +0 -3
  236. package/Gateways/graphql/workflowNotifications.js +5 -4
  237. package/Gateways/graphql/workflowNotifications.js.map +1 -1
  238. package/Gateways/graphql/workflowStates.js +15 -14
  239. package/Gateways/graphql/workflowStates.js.map +1 -1
  240. package/Gateways/graphql/workflows.js +8 -7
  241. package/Gateways/graphql/workflows.js.map +1 -1
  242. package/Gateways/index.js +0 -2
  243. package/Models/WorkflowModel.js +61 -70
  244. package/Models/WorkflowModel.js.map +1 -1
  245. package/Models/WorkflowStateModel.js +88 -107
  246. package/Models/WorkflowStateModel.js.map +1 -1
  247. package/Models/WorkflowStateStepModel.js +41 -40
  248. package/Models/WorkflowStateStepModel.js.map +1 -1
  249. package/Models/WorkflowStepModel.js +26 -25
  250. package/Models/WorkflowStepModel.js.map +1 -1
  251. package/Models/abstractions/WorkflowModel.js +0 -3
  252. package/Models/abstractions/WorkflowStateModel.js +0 -3
  253. package/Models/abstractions/WorkflowStateStepModel.js +0 -3
  254. package/Models/abstractions/WorkflowStepModel.js +0 -3
  255. package/Models/index.js +0 -2
  256. package/Presenters/WorkflowStateListPresenter.js +45 -49
  257. package/Presenters/WorkflowStateListPresenter.js.map +1 -1
  258. package/Presenters/WorkflowStatePresenter.d.ts +2 -0
  259. package/Presenters/WorkflowStatePresenter.js +192 -214
  260. package/Presenters/WorkflowStatePresenter.js.map +1 -1
  261. package/Presenters/WorkflowStatesWidgetPresenter.js +214 -259
  262. package/Presenters/WorkflowStatesWidgetPresenter.js.map +1 -1
  263. package/Presenters/WorkflowsPresenter.js +101 -103
  264. package/Presenters/WorkflowsPresenter.js.map +1 -1
  265. package/Presenters/abstractions/WorkflowStateListPresenter.js +0 -3
  266. package/Presenters/abstractions/WorkflowStatePresenter.js +0 -3
  267. package/Presenters/abstractions/WorkflowStatesWidgetPresenter.js +0 -3
  268. package/Presenters/abstractions/WorkflowsPresenter.js +0 -3
  269. package/Presenters/index.js +0 -2
  270. package/Repositories/WorkflowNotificationTypesRepository.js +26 -25
  271. package/Repositories/WorkflowNotificationTypesRepository.js.map +1 -1
  272. package/Repositories/WorkflowStateListRepository.js +65 -69
  273. package/Repositories/WorkflowStateListRepository.js.map +1 -1
  274. package/Repositories/WorkflowStateRepository.js +121 -127
  275. package/Repositories/WorkflowStateRepository.js.map +1 -1
  276. package/Repositories/WorkflowStatesWidgetRepository.js +120 -131
  277. package/Repositories/WorkflowStatesWidgetRepository.js.map +1 -1
  278. package/Repositories/WorkflowsRepository.js +71 -80
  279. package/Repositories/WorkflowsRepository.js.map +1 -1
  280. package/Repositories/abstractions/WorkflowNotificationTypesRepository.js +0 -3
  281. package/Repositories/abstractions/WorkflowStateListRepository.js +0 -3
  282. package/Repositories/abstractions/WorkflowStateRepository.js +0 -3
  283. package/Repositories/abstractions/WorkflowStatesWidgetRepository.js +0 -3
  284. package/Repositories/abstractions/WorkflowsRepository.js +0 -3
  285. package/Repositories/index.js +0 -2
  286. package/domain/permissionsSchema.js +6 -5
  287. package/domain/permissionsSchema.js.map +1 -1
  288. package/features/permissions/abstractions.js +2 -1
  289. package/features/permissions/abstractions.js.map +1 -1
  290. package/features/permissions/feature.js +2 -1
  291. package/features/permissions/feature.js.map +1 -1
  292. package/hooks/canUseWorkflows.js +7 -6
  293. package/hooks/canUseWorkflows.js.map +1 -1
  294. package/index.js +32 -33
  295. package/index.js.map +1 -1
  296. package/package.json +12 -13
  297. package/routes.js +15 -13
  298. package/routes.js.map +1 -1
  299. package/types.js +11 -15
  300. package/types.js.map +1 -1
  301. package/Components/App/index.js.map +0 -1
  302. package/Components/Common/Options/index.js.map +0 -1
  303. package/Components/Common/index.js.map +0 -1
  304. package/Components/WorkflowState/Bar/Dialogs/index.js.map +0 -1
  305. package/Components/WorkflowState/Bar/index.js.map +0 -1
  306. package/Components/WorkflowState/index.js.map +0 -1
  307. package/Components/WorkflowStateDialogs/index.js.map +0 -1
  308. package/Components/WorkflowStateList/List/index.js.map +0 -1
  309. package/Components/WorkflowStateList/Overlay/index.js.map +0 -1
  310. package/Components/WorkflowStateList/Provider/index.js.map +0 -1
  311. package/Components/WorkflowStateList/hooks/index.js.map +0 -1
  312. package/Components/WorkflowStateList/index.js.map +0 -1
  313. package/Components/WorkflowStatesWidget/Dialogs/index.js.map +0 -1
  314. package/Components/WorkflowStatesWidget/index.js.map +0 -1
  315. package/Components/WorkflowsEditor/index.js.map +0 -1
  316. package/Components/WorkflowsPermissions/index.js.map +0 -1
  317. package/Components/helpers/index.js.map +0 -1
  318. package/Gateways/abstraction/WorkflowNotificationTypesGateway.js.map +0 -1
  319. package/Gateways/abstraction/WorkflowStateGateway.js.map +0 -1
  320. package/Gateways/abstraction/WorkflowStateListGateway.js.map +0 -1
  321. package/Gateways/abstraction/WorkflowStatesWidgetGateway.js.map +0 -1
  322. package/Gateways/abstraction/WorkflowsGateway.js.map +0 -1
  323. package/Gateways/index.js.map +0 -1
  324. package/Models/abstractions/WorkflowModel.js.map +0 -1
  325. package/Models/abstractions/WorkflowStateModel.js.map +0 -1
  326. package/Models/abstractions/WorkflowStateStepModel.js.map +0 -1
  327. package/Models/abstractions/WorkflowStepModel.js.map +0 -1
  328. package/Models/index.js.map +0 -1
  329. package/Presenters/abstractions/WorkflowStateListPresenter.js.map +0 -1
  330. package/Presenters/abstractions/WorkflowStatePresenter.js.map +0 -1
  331. package/Presenters/abstractions/WorkflowStatesWidgetPresenter.js.map +0 -1
  332. package/Presenters/abstractions/WorkflowsPresenter.js.map +0 -1
  333. package/Presenters/index.js.map +0 -1
  334. package/Repositories/abstractions/WorkflowNotificationTypesRepository.js.map +0 -1
  335. package/Repositories/abstractions/WorkflowStateListRepository.js.map +0 -1
  336. package/Repositories/abstractions/WorkflowStateRepository.js.map +0 -1
  337. package/Repositories/abstractions/WorkflowStatesWidgetRepository.js.map +0 -1
  338. package/Repositories/abstractions/WorkflowsRepository.js.map +0 -1
  339. package/Repositories/index.js.map +0 -1
@@ -1,26 +1,22 @@
1
- import React from "react";
2
- import { ReactComponent as CommentIcon } from "@webiny/icons/comment.svg";
1
+ import react from "react";
2
+ import { ReactComponent } from "@webiny/icons/comment.svg";
3
3
  import { Icon, Tag } from "@webiny/admin-ui";
4
4
  import { observer } from "mobx-react-lite";
5
- export const WorkflowStateTooltipContentComment = observer(props => {
6
- const {
7
- step,
8
- showComment
9
- } = props;
10
- if (!step.comment) {
11
- return null;
12
- }
13
- return /*#__PURE__*/React.createElement(Tag, {
14
- onClick: showComment,
15
- icon: /*#__PURE__*/React.createElement(Icon, {
16
- size: "xs",
17
- icon: /*#__PURE__*/React.createElement(CommentIcon, null),
18
- label: "Comments",
19
- color: "neutral-strong"
20
- }),
21
- content: /*#__PURE__*/React.createElement(React.Fragment, null, "Comments"),
22
- variant: "neutral-light"
23
- });
5
+ const WorkflowStateTooltipContentComment = observer((props)=>{
6
+ const { step, showComment } = props;
7
+ if (!step.comment) return null;
8
+ return /*#__PURE__*/ react.createElement(Tag, {
9
+ onClick: showComment,
10
+ icon: /*#__PURE__*/ react.createElement(Icon, {
11
+ size: "xs",
12
+ icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
13
+ label: "Comments",
14
+ color: "neutral-strong"
15
+ }),
16
+ content: /*#__PURE__*/ react.createElement(react.Fragment, null, "Comments"),
17
+ variant: "neutral-light"
18
+ });
24
19
  });
20
+ export { WorkflowStateTooltipContentComment };
25
21
 
26
22
  //# sourceMappingURL=WorkflowStateTooltipContentComment.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","ReactComponent","CommentIcon","Icon","Tag","observer","WorkflowStateTooltipContentComment","props","step","showComment","comment","createElement","onClick","icon","size","label","color","content","Fragment","variant"],"sources":["WorkflowStateTooltipContentComment.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as CommentIcon } from \"@webiny/icons/comment.svg\";\nimport { Icon, Tag } from \"@webiny/admin-ui\";\nimport type { IWorkflowStateStep } from \"~/types.js\";\nimport { observer } from \"mobx-react-lite\";\n\ninterface IWorkflowStateTooltipContentCommentProps {\n showComment: () => void;\n step: IWorkflowStateStep;\n}\n\nexport const WorkflowStateTooltipContentComment = observer(\n (props: IWorkflowStateTooltipContentCommentProps) => {\n const { step, showComment } = props;\n if (!step.comment) {\n return null;\n }\n return (\n <Tag\n onClick={showComment}\n icon={\n <Icon\n size={\"xs\"}\n icon={<CommentIcon />}\n label={\"Comments\"}\n color={\"neutral-strong\"}\n />\n }\n content={<>Comments</>}\n variant={\"neutral-light\"}\n />\n );\n }\n);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,WAAW,QAAQ,2BAA2B;AACzE,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,SAASC,QAAQ,QAAQ,iBAAiB;AAO1C,OAAO,MAAMC,kCAAkC,GAAGD,QAAQ,CACrDE,KAA+C,IAAK;EACjD,MAAM;IAAEC,IAAI;IAAEC;EAAY,CAAC,GAAGF,KAAK;EACnC,IAAI,CAACC,IAAI,CAACE,OAAO,EAAE;IACf,OAAO,IAAI;EACf;EACA,oBACIV,KAAA,CAAAW,aAAA,CAACP,GAAG;IACAQ,OAAO,EAAEH,WAAY;IACrBI,IAAI,eACAb,KAAA,CAAAW,aAAA,CAACR,IAAI;MACDW,IAAI,EAAE,IAAK;MACXD,IAAI,eAAEb,KAAA,CAAAW,aAAA,CAACT,WAAW,MAAE,CAAE;MACtBa,KAAK,EAAE,UAAW;MAClBC,KAAK,EAAE;IAAiB,CAC3B,CACJ;IACDC,OAAO,eAAEjB,KAAA,CAAAW,aAAA,CAAAX,KAAA,CAAAkB,QAAA,QAAE,UAAU,CAAE;IACvBC,OAAO,EAAE;EAAgB,CAC5B,CAAC;AAEV,CACJ,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Components/WorkflowState/Tooltip/WorkflowStateTooltipContentComment.js","sources":["../../../../src/Components/WorkflowState/Tooltip/WorkflowStateTooltipContentComment.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as CommentIcon } from \"@webiny/icons/comment.svg\";\nimport { Icon, Tag } from \"@webiny/admin-ui\";\nimport type { IWorkflowStateStep } from \"~/types.js\";\nimport { observer } from \"mobx-react-lite\";\n\ninterface IWorkflowStateTooltipContentCommentProps {\n showComment: () => void;\n step: IWorkflowStateStep;\n}\n\nexport const WorkflowStateTooltipContentComment = observer(\n (props: IWorkflowStateTooltipContentCommentProps) => {\n const { step, showComment } = props;\n if (!step.comment) {\n return null;\n }\n return (\n <Tag\n onClick={showComment}\n icon={\n <Icon\n size={\"xs\"}\n icon={<CommentIcon />}\n label={\"Comments\"}\n color={\"neutral-strong\"}\n />\n }\n content={<>Comments</>}\n variant={\"neutral-light\"}\n />\n );\n }\n);\n"],"names":["WorkflowStateTooltipContentComment","observer","props","step","showComment","Tag","Icon","CommentIcon"],"mappings":";;;;AAWO,MAAMA,qCAAqCC,SAC9C,CAACC;IACG,MAAM,EAAEC,IAAI,EAAEC,WAAW,EAAE,GAAGF;IAC9B,IAAI,CAACC,KAAK,OAAO,EACb,OAAO;IAEX,OAAO,WAAP,GACI,oBAACE,KAAGA;QACA,SAASD;QACT,oBACI,oBAACE,MAAIA;YACD,MAAM;YACN,oBAAM,oBAACC,gBAAWA;YAClB,OAAO;YACP,OAAO;;QAGf,uBAAS,0CAAE;QACX,SAAS;;AAGrB"}
@@ -9,6 +9,7 @@ export interface IWorkflowStateProps {
9
9
  client: ApolloClient<object>;
10
10
  children: React.ReactElement | React.ReactElement[];
11
11
  title: string;
12
+ disabled?: boolean;
12
13
  }
13
14
  export interface IWorkflowStateContext {
14
15
  presenter: IWorkflowStatePresenter;
@@ -1,44 +1,45 @@
1
- import React, { useMemo } from "react";
2
- import { WorkflowsGateway, WorkflowStateGateway } from "../../Gateways/index.js";
3
- import { WorkflowsRepository, WorkflowStateRepository } from "../../Repositories/index.js";
1
+ import react, { useMemo } from "react";
2
+ import { WorkflowStateGateway, WorkflowsGateway } from "../../Gateways/index.js";
3
+ import { WorkflowStateRepository, WorkflowsRepository } from "../../Repositories/index.js";
4
4
  import { WorkflowStatePresenter } from "../../Presenters/index.js";
5
- export const WorkflowStateContext = /*#__PURE__*/React.createContext(null);
6
- export const WorkflowStateProvider = props => {
7
- const {
8
- id,
9
- app,
10
- identity,
11
- client,
12
- children,
13
- title
14
- } = props;
15
- const presenter = useMemo(() => {
16
- const gateway = new WorkflowStateGateway({
17
- client
18
- });
19
- const repository = new WorkflowStateRepository({
20
- gateway
21
- });
22
- const workflowsGateway = new WorkflowsGateway({
23
- client
24
- });
25
- const workflowsRepository = new WorkflowsRepository({
26
- gateway: workflowsGateway
27
- });
28
- return new WorkflowStatePresenter({
29
- app,
30
- targetRevisionId: id,
31
- identity,
32
- repository,
33
- workflowsRepository,
34
- title
35
- });
36
- }, [app, id, identity.id, title]);
37
- return /*#__PURE__*/React.createElement(WorkflowStateContext.Provider, {
38
- value: {
39
- presenter
40
- }
41
- }, children);
5
+ const WorkflowStateContext = /*#__PURE__*/ react.createContext(null);
6
+ const WorkflowStateProvider = (props)=>{
7
+ const { client, children } = props;
8
+ const presenter = useMemo(()=>{
9
+ const gateway = new WorkflowStateGateway({
10
+ client
11
+ });
12
+ const repository = new WorkflowStateRepository({
13
+ gateway
14
+ });
15
+ const workflowsGateway = new WorkflowsGateway({
16
+ client
17
+ });
18
+ const workflowsRepository = new WorkflowsRepository({
19
+ gateway: workflowsGateway
20
+ });
21
+ return new WorkflowStatePresenter({
22
+ app: props.app,
23
+ targetRevisionId: props.id,
24
+ identity: props.identity,
25
+ repository,
26
+ workflowsRepository,
27
+ title: props.title,
28
+ disabled: props.disabled || false
29
+ });
30
+ }, [
31
+ props.id,
32
+ props.identity,
33
+ props.title,
34
+ props.disabled,
35
+ props.app
36
+ ]);
37
+ return /*#__PURE__*/ react.createElement(WorkflowStateContext.Provider, {
38
+ value: {
39
+ presenter
40
+ }
41
+ }, children);
42
42
  };
43
+ export { WorkflowStateContext, WorkflowStateProvider };
43
44
 
44
45
  //# sourceMappingURL=WorkflowStateProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","WorkflowsGateway","WorkflowStateGateway","WorkflowsRepository","WorkflowStateRepository","WorkflowStatePresenter","WorkflowStateContext","createContext","WorkflowStateProvider","props","id","app","identity","client","children","title","presenter","gateway","repository","workflowsGateway","workflowsRepository","targetRevisionId","createElement","Provider","value"],"sources":["WorkflowStateProvider.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { WorkflowsGateway, WorkflowStateGateway } from \"~/Gateways/index.js\";\nimport { WorkflowsRepository, WorkflowStateRepository } from \"~/Repositories/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\nimport { WorkflowStatePresenter } from \"~/Presenters/index.js\";\nimport type { IIdentity } from \"~/types.js\";\nimport type ApolloClient from \"apollo-client\";\n\nexport interface IWorkflowStateProps {\n id: string;\n app: string;\n identity: IIdentity;\n client: ApolloClient<object>;\n children: React.ReactElement | React.ReactElement[];\n title: string;\n}\n\nexport interface IWorkflowStateContext {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const WorkflowStateContext = React.createContext<IWorkflowStateContext | null>(null);\n\nexport const WorkflowStateProvider = (props: IWorkflowStateProps) => {\n const { id, app, identity, client, children, title } = props;\n const presenter = useMemo(() => {\n const gateway = new WorkflowStateGateway({\n client\n });\n const repository = new WorkflowStateRepository({\n gateway\n });\n const workflowsGateway = new WorkflowsGateway({\n client\n });\n const workflowsRepository = new WorkflowsRepository({\n gateway: workflowsGateway\n });\n return new WorkflowStatePresenter({\n app,\n targetRevisionId: id,\n identity,\n repository,\n workflowsRepository,\n title\n });\n }, [app, id, identity.id, title]);\n\n return (\n <WorkflowStateContext.Provider value={{ presenter }}>\n {children}\n </WorkflowStateContext.Provider>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,gBAAgB,EAAEC,oBAAoB;AAC/C,SAASC,mBAAmB,EAAEC,uBAAuB;AAErD,SAASC,sBAAsB;AAiB/B,OAAO,MAAMC,oBAAoB,gBAAGP,KAAK,CAACQ,aAAa,CAA+B,IAAI,CAAC;AAE3F,OAAO,MAAMC,qBAAqB,GAAIC,KAA0B,IAAK;EACjE,MAAM;IAAEC,EAAE;IAAEC,GAAG;IAAEC,QAAQ;IAAEC,MAAM;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAGN,KAAK;EAC5D,MAAMO,SAAS,GAAGhB,OAAO,CAAC,MAAM;IAC5B,MAAMiB,OAAO,GAAG,IAAIf,oBAAoB,CAAC;MACrCW;IACJ,CAAC,CAAC;IACF,MAAMK,UAAU,GAAG,IAAId,uBAAuB,CAAC;MAC3Ca;IACJ,CAAC,CAAC;IACF,MAAME,gBAAgB,GAAG,IAAIlB,gBAAgB,CAAC;MAC1CY;IACJ,CAAC,CAAC;IACF,MAAMO,mBAAmB,GAAG,IAAIjB,mBAAmB,CAAC;MAChDc,OAAO,EAAEE;IACb,CAAC,CAAC;IACF,OAAO,IAAId,sBAAsB,CAAC;MAC9BM,GAAG;MACHU,gBAAgB,EAAEX,EAAE;MACpBE,QAAQ;MACRM,UAAU;MACVE,mBAAmB;MACnBL;IACJ,CAAC,CAAC;EACN,CAAC,EAAE,CAACJ,GAAG,EAAED,EAAE,EAAEE,QAAQ,CAACF,EAAE,EAAEK,KAAK,CAAC,CAAC;EAEjC,oBACIhB,KAAA,CAAAuB,aAAA,CAAChB,oBAAoB,CAACiB,QAAQ;IAACC,KAAK,EAAE;MAAER;IAAU;EAAE,GAC/CF,QAC0B,CAAC;AAExC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Components/WorkflowState/WorkflowStateProvider.js","sources":["../../../src/Components/WorkflowState/WorkflowStateProvider.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { WorkflowsGateway, WorkflowStateGateway } from \"~/Gateways/index.js\";\nimport { WorkflowsRepository, WorkflowStateRepository } from \"~/Repositories/index.js\";\nimport type { IWorkflowStatePresenter } from \"~/Presenters/index.js\";\nimport { WorkflowStatePresenter } from \"~/Presenters/index.js\";\nimport type { IIdentity } from \"~/types.js\";\nimport type ApolloClient from \"apollo-client\";\n\nexport interface IWorkflowStateProps {\n id: string;\n app: string;\n identity: IIdentity;\n client: ApolloClient<object>;\n children: React.ReactElement | React.ReactElement[];\n title: string;\n disabled?: boolean;\n}\n\nexport interface IWorkflowStateContext {\n presenter: IWorkflowStatePresenter;\n}\n\nexport const WorkflowStateContext = React.createContext<IWorkflowStateContext | null>(null);\n\nexport const WorkflowStateProvider = (props: IWorkflowStateProps) => {\n const { client, children } = props;\n const presenter = useMemo(() => {\n const gateway = new WorkflowStateGateway({\n client\n });\n const repository = new WorkflowStateRepository({\n gateway\n });\n const workflowsGateway = new WorkflowsGateway({\n client\n });\n const workflowsRepository = new WorkflowsRepository({\n gateway: workflowsGateway\n });\n return new WorkflowStatePresenter({\n app: props.app,\n targetRevisionId: props.id,\n identity: props.identity,\n repository,\n workflowsRepository,\n title: props.title,\n disabled: props.disabled || false\n });\n }, [props.id, props.identity, props.title, props.disabled, props.app]);\n\n return (\n <WorkflowStateContext.Provider value={{ presenter }}>\n {children}\n </WorkflowStateContext.Provider>\n );\n};\n"],"names":["WorkflowStateContext","React","WorkflowStateProvider","props","client","children","presenter","useMemo","gateway","WorkflowStateGateway","repository","WorkflowStateRepository","workflowsGateway","WorkflowsGateway","workflowsRepository","WorkflowsRepository","WorkflowStatePresenter"],"mappings":";;;;AAsBO,MAAMA,uBAAuB,WAAHA,GAAGC,MAAAA,aAAmB,CAA+B;AAE/E,MAAMC,wBAAwB,CAACC;IAClC,MAAM,EAAEC,MAAM,EAAEC,QAAQ,EAAE,GAAGF;IAC7B,MAAMG,YAAYC,QAAQ;QACtB,MAAMC,UAAU,IAAIC,qBAAqB;YACrCL;QACJ;QACA,MAAMM,aAAa,IAAIC,wBAAwB;YAC3CH;QACJ;QACA,MAAMI,mBAAmB,IAAIC,iBAAiB;YAC1CT;QACJ;QACA,MAAMU,sBAAsB,IAAIC,oBAAoB;YAChD,SAASH;QACb;QACA,OAAO,IAAII,uBAAuB;YAC9B,KAAKb,MAAM,GAAG;YACd,kBAAkBA,MAAM,EAAE;YAC1B,UAAUA,MAAM,QAAQ;YACxBO;YACAI;YACA,OAAOX,MAAM,KAAK;YAClB,UAAUA,MAAM,QAAQ,IAAI;QAChC;IACJ,GAAG;QAACA,MAAM,EAAE;QAAEA,MAAM,QAAQ;QAAEA,MAAM,KAAK;QAAEA,MAAM,QAAQ;QAAEA,MAAM,GAAG;KAAC;IAErE,OAAO,WAAP,GACI,oBAACH,qBAAqB,QAAQ;QAAC,OAAO;YAAEM;QAAU;OAC7CD;AAGb"}
@@ -3,5 +3,3 @@ export * from "./WorkflowStateProvider.js";
3
3
  export * from "./Bar/WorkflowStateBar.js";
4
4
  export * from "./Overlay/WorkflowStateOverlay.js";
5
5
  export * from "./Tooltip/WorkflowStateTooltip.js";
6
-
7
- //# sourceMappingURL=index.js.map
@@ -1,11 +1,10 @@
1
1
  import { useContext } from "react";
2
2
  import { WorkflowStateContext } from "./WorkflowStateProvider.js";
3
- export const useWorkflowState = () => {
4
- const context = useContext(WorkflowStateContext);
5
- if (!context) {
6
- throw new Error("useWorkflowState must be used within a WorkflowStateContext");
7
- }
8
- return context;
3
+ const useWorkflowState = ()=>{
4
+ const context = useContext(WorkflowStateContext);
5
+ if (!context) throw new Error("useWorkflowState must be used within a WorkflowStateContext");
6
+ return context;
9
7
  };
8
+ export { useWorkflowState };
10
9
 
11
10
  //# sourceMappingURL=useWorkflowState.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useContext","WorkflowStateContext","useWorkflowState","context","Error"],"sources":["useWorkflowState.ts"],"sourcesContent":["import { useContext } from \"react\";\nimport { WorkflowStateContext } from \"./WorkflowStateProvider.js\";\n\nexport const useWorkflowState = () => {\n const context = useContext(WorkflowStateContext);\n if (!context) {\n throw new Error(\"useWorkflowState must be used within a WorkflowStateContext\");\n }\n return context;\n};\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,oBAAoB;AAE7B,OAAO,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;EAClC,MAAMC,OAAO,GAAGH,UAAU,CAACC,oBAAoB,CAAC;EAChD,IAAI,CAACE,OAAO,EAAE;IACV,MAAM,IAAIC,KAAK,CAAC,6DAA6D,CAAC;EAClF;EACA,OAAOD,OAAO;AAClB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Components/WorkflowState/useWorkflowState.js","sources":["../../../src/Components/WorkflowState/useWorkflowState.ts"],"sourcesContent":["import { useContext } from \"react\";\nimport { WorkflowStateContext } from \"./WorkflowStateProvider.js\";\n\nexport const useWorkflowState = () => {\n const context = useContext(WorkflowStateContext);\n if (!context) {\n throw new Error(\"useWorkflowState must be used within a WorkflowStateContext\");\n }\n return context;\n};\n"],"names":["useWorkflowState","context","useContext","WorkflowStateContext","Error"],"mappings":";;AAGO,MAAMA,mBAAmB;IAC5B,MAAMC,UAAUC,WAAWC;IAC3B,IAAI,CAACF,SACD,MAAM,IAAIG,MAAM;IAEpB,OAAOH;AACX"}
@@ -1,48 +1,47 @@
1
- import React, { useCallback } from "react";
1
+ import react, { useCallback } from "react";
2
2
  import { Dialog, Grid, Icon, OverlayLoader, Textarea } from "@webiny/admin-ui";
3
- import { ReactComponent as ApproveIcon } from "@webiny/icons/check.svg";
4
- export const ApproveDialog = props => {
5
- const {
6
- onApprove,
7
- hide,
8
- loading,
9
- title
10
- } = props;
11
- const [comment, setComment] = React.useState("");
12
- const onConfirm = useCallback(() => {
13
- onApprove(comment);
14
- }, [onApprove, comment]);
15
- return /*#__PURE__*/React.createElement(Dialog, {
16
- open: true,
17
- onOpenChange: hide,
18
- title: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
19
- label: "Approve Content?",
20
- size: "md",
21
- className: "fill-success",
22
- icon: /*#__PURE__*/React.createElement(ApproveIcon, null)
23
- }), "Approve Content?"),
24
- actions: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Dialog.CancelAction, {
25
- onClick: hide
26
- }), /*#__PURE__*/React.createElement(Dialog.ConfirmAction, {
27
- text: "Approve content",
28
- onClick: onConfirm
29
- })),
30
- showCloseButton: true,
31
- dismissible: true
32
- }, loading ? /*#__PURE__*/React.createElement(OverlayLoader, {
33
- size: "sm",
34
- variant: "accent",
35
- indeterminate: true
36
- }) : null, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Grid.Column, {
37
- span: 12
38
- }, "You are about to approve the ", /*#__PURE__*/React.createElement("strong", null, title), ". Authors and responsible reviewers will be notified."), /*#__PURE__*/React.createElement(Grid.Column, {
39
- span: 12
40
- }, /*#__PURE__*/React.createElement(Textarea, {
41
- description: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("strong", null, "Add a comment"), " (optional)"),
42
- required: true,
43
- value: comment,
44
- onChange: setComment
45
- }))));
3
+ import { ReactComponent } from "@webiny/icons/check.svg";
4
+ const ApproveDialog = (props)=>{
5
+ const { onApprove, hide, loading, title } = props;
6
+ const [comment, setComment] = react.useState("");
7
+ const onConfirm = useCallback(()=>{
8
+ onApprove(comment);
9
+ }, [
10
+ onApprove,
11
+ comment
12
+ ]);
13
+ return /*#__PURE__*/ react.createElement(Dialog, {
14
+ open: true,
15
+ onOpenChange: hide,
16
+ title: /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Icon, {
17
+ label: "Approve Content?",
18
+ size: "md",
19
+ className: "fill-success",
20
+ icon: /*#__PURE__*/ react.createElement(ReactComponent, null)
21
+ }), "Approve Content?"),
22
+ actions: /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Dialog.CancelAction, {
23
+ onClick: hide
24
+ }), /*#__PURE__*/ react.createElement(Dialog.ConfirmAction, {
25
+ text: "Approve content",
26
+ onClick: onConfirm
27
+ })),
28
+ showCloseButton: true,
29
+ dismissible: true
30
+ }, loading ? /*#__PURE__*/ react.createElement(OverlayLoader, {
31
+ size: "sm",
32
+ variant: "accent",
33
+ indeterminate: true
34
+ }) : null, /*#__PURE__*/ react.createElement(Grid, null, /*#__PURE__*/ react.createElement(Grid.Column, {
35
+ span: 12
36
+ }, "You are about to approve the ", /*#__PURE__*/ react.createElement("strong", null, title), ". Authors and responsible reviewers will be notified."), /*#__PURE__*/ react.createElement(Grid.Column, {
37
+ span: 12
38
+ }, /*#__PURE__*/ react.createElement(Textarea, {
39
+ description: /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement("strong", null, "Add a comment"), " (optional)"),
40
+ required: true,
41
+ value: comment,
42
+ onChange: setComment
43
+ }))));
46
44
  };
45
+ export { ApproveDialog };
47
46
 
48
47
  //# sourceMappingURL=ApproveDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","Dialog","Grid","Icon","OverlayLoader","Textarea","ReactComponent","ApproveIcon","ApproveDialog","props","onApprove","hide","loading","title","comment","setComment","useState","onConfirm","createElement","open","onOpenChange","Fragment","label","size","className","icon","actions","CancelAction","onClick","ConfirmAction","text","showCloseButton","dismissible","variant","indeterminate","Column","span","description","required","value","onChange"],"sources":["ApproveDialog.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { Dialog, Grid, Icon, OverlayLoader, Textarea } from \"@webiny/admin-ui\";\nimport { ReactComponent as ApproveIcon } from \"@webiny/icons/check.svg\";\n\ninterface IApproveDialogProps {\n onApprove(comment?: string): void;\n hide(): void;\n loading: boolean;\n title: string;\n}\n\nexport const ApproveDialog = (props: IApproveDialogProps) => {\n const { onApprove, hide, loading, title } = props;\n\n const [comment, setComment] = React.useState<string>(\"\");\n\n const onConfirm = useCallback(() => {\n onApprove(comment);\n }, [onApprove, comment]);\n return (\n <Dialog\n open={true}\n onOpenChange={hide}\n title={\n <>\n <Icon\n label={\"Approve Content?\"}\n size={\"md\"}\n className={\"fill-success\"}\n icon={<ApproveIcon />}\n />\n Approve Content?\n </>\n }\n actions={\n <>\n <Dialog.CancelAction onClick={hide} />\n <Dialog.ConfirmAction text={\"Approve content\"} onClick={onConfirm} />\n </>\n }\n showCloseButton={true}\n dismissible={true}\n >\n {loading ? <OverlayLoader size=\"sm\" variant=\"accent\" indeterminate={true} /> : null}\n <Grid>\n <Grid.Column span={12}>\n You are about to approve the <strong>{title}</strong>. Authors and responsible\n reviewers will be notified.\n </Grid.Column>\n <Grid.Column span={12}>\n <Textarea\n description={\n <>\n <strong>Add a comment</strong> (optional)\n </>\n }\n required={true}\n value={comment}\n onChange={setComment}\n />\n </Grid.Column>\n </Grid>\n </Dialog>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,MAAM,EAAEC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,kBAAkB;AAC9E,SAASC,cAAc,IAAIC,WAAW,QAAQ,yBAAyB;AASvE,OAAO,MAAMC,aAAa,GAAIC,KAA0B,IAAK;EACzD,MAAM;IAAEC,SAAS;IAAEC,IAAI;IAAEC,OAAO;IAAEC;EAAM,CAAC,GAAGJ,KAAK;EAEjD,MAAM,CAACK,OAAO,EAAEC,UAAU,CAAC,GAAGhB,KAAK,CAACiB,QAAQ,CAAS,EAAE,CAAC;EAExD,MAAMC,SAAS,GAAGjB,WAAW,CAAC,MAAM;IAChCU,SAAS,CAACI,OAAO,CAAC;EACtB,CAAC,EAAE,CAACJ,SAAS,EAAEI,OAAO,CAAC,CAAC;EACxB,oBACIf,KAAA,CAAAmB,aAAA,CAACjB,MAAM;IACHkB,IAAI,EAAE,IAAK;IACXC,YAAY,EAAET,IAAK;IACnBE,KAAK,eACDd,KAAA,CAAAmB,aAAA,CAAAnB,KAAA,CAAAsB,QAAA,qBACItB,KAAA,CAAAmB,aAAA,CAACf,IAAI;MACDmB,KAAK,EAAE,kBAAmB;MAC1BC,IAAI,EAAE,IAAK;MACXC,SAAS,EAAE,cAAe;MAC1BC,IAAI,eAAE1B,KAAA,CAAAmB,aAAA,CAACX,WAAW,MAAE;IAAE,CACzB,CAAC,oBAEJ,CACL;IACDmB,OAAO,eACH3B,KAAA,CAAAmB,aAAA,CAAAnB,KAAA,CAAAsB,QAAA,qBACItB,KAAA,CAAAmB,aAAA,CAACjB,MAAM,CAAC0B,YAAY;MAACC,OAAO,EAAEjB;IAAK,CAAE,CAAC,eACtCZ,KAAA,CAAAmB,aAAA,CAACjB,MAAM,CAAC4B,aAAa;MAACC,IAAI,EAAE,iBAAkB;MAACF,OAAO,EAAEX;IAAU,CAAE,CACtE,CACL;IACDc,eAAe,EAAE,IAAK;IACtBC,WAAW,EAAE;EAAK,GAEjBpB,OAAO,gBAAGb,KAAA,CAAAmB,aAAA,CAACd,aAAa;IAACmB,IAAI,EAAC,IAAI;IAACU,OAAO,EAAC,QAAQ;IAACC,aAAa,EAAE;EAAK,CAAE,CAAC,GAAG,IAAI,eACnFnC,KAAA,CAAAmB,aAAA,CAAChB,IAAI,qBACDH,KAAA,CAAAmB,aAAA,CAAChB,IAAI,CAACiC,MAAM;IAACC,IAAI,EAAE;EAAG,GAAC,+BACU,eAAArC,KAAA,CAAAmB,aAAA,iBAASL,KAAc,CAAC,yDAE5C,CAAC,eACdd,KAAA,CAAAmB,aAAA,CAAChB,IAAI,CAACiC,MAAM;IAACC,IAAI,EAAE;EAAG,gBAClBrC,KAAA,CAAAmB,aAAA,CAACb,QAAQ;IACLgC,WAAW,eACPtC,KAAA,CAAAmB,aAAA,CAAAnB,KAAA,CAAAsB,QAAA,qBACItB,KAAA,CAAAmB,aAAA,iBAAQ,eAAqB,CAAC,eAChC,CACL;IACDoB,QAAQ,EAAE,IAAK;IACfC,KAAK,EAAEzB,OAAQ;IACf0B,QAAQ,EAAEzB;EAAW,CACxB,CACQ,CACX,CACF,CAAC;AAEjB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Components/WorkflowStateDialogs/ApproveDialog.js","sources":["../../../src/Components/WorkflowStateDialogs/ApproveDialog.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { Dialog, Grid, Icon, OverlayLoader, Textarea } from \"@webiny/admin-ui\";\nimport { ReactComponent as ApproveIcon } from \"@webiny/icons/check.svg\";\n\ninterface IApproveDialogProps {\n onApprove(comment?: string): void;\n hide(): void;\n loading: boolean;\n title: string;\n}\n\nexport const ApproveDialog = (props: IApproveDialogProps) => {\n const { onApprove, hide, loading, title } = props;\n\n const [comment, setComment] = React.useState<string>(\"\");\n\n const onConfirm = useCallback(() => {\n onApprove(comment);\n }, [onApprove, comment]);\n return (\n <Dialog\n open={true}\n onOpenChange={hide}\n title={\n <>\n <Icon\n label={\"Approve Content?\"}\n size={\"md\"}\n className={\"fill-success\"}\n icon={<ApproveIcon />}\n />\n Approve Content?\n </>\n }\n actions={\n <>\n <Dialog.CancelAction onClick={hide} />\n <Dialog.ConfirmAction text={\"Approve content\"} onClick={onConfirm} />\n </>\n }\n showCloseButton={true}\n dismissible={true}\n >\n {loading ? <OverlayLoader size=\"sm\" variant=\"accent\" indeterminate={true} /> : null}\n <Grid>\n <Grid.Column span={12}>\n You are about to approve the <strong>{title}</strong>. Authors and responsible\n reviewers will be notified.\n </Grid.Column>\n <Grid.Column span={12}>\n <Textarea\n description={\n <>\n <strong>Add a comment</strong> (optional)\n </>\n }\n required={true}\n value={comment}\n onChange={setComment}\n />\n </Grid.Column>\n </Grid>\n </Dialog>\n );\n};\n"],"names":["ApproveDialog","props","onApprove","hide","loading","title","comment","setComment","React","onConfirm","useCallback","Dialog","Icon","ApproveIcon","OverlayLoader","Grid","Textarea"],"mappings":";;;AAWO,MAAMA,gBAAgB,CAACC;IAC1B,MAAM,EAAEC,SAAS,EAAEC,IAAI,EAAEC,OAAO,EAAEC,KAAK,EAAE,GAAGJ;IAE5C,MAAM,CAACK,SAASC,WAAW,GAAGC,MAAAA,QAAc,CAAS;IAErD,MAAMC,YAAYC,YAAY;QAC1BR,UAAUI;IACd,GAAG;QAACJ;QAAWI;KAAQ;IACvB,OAAO,WAAP,GACI,oBAACK,QAAMA;QACH,MAAM;QACN,cAAcR;QACd,qBACI,wDACI,oBAACS,MAAIA;YACD,OAAO;YACP,MAAM;YACN,WAAW;YACX,oBAAM,oBAACC,gBAAWA;YACpB;QAIV,uBACI,wDACI,oBAACF,OAAO,YAAY;YAAC,SAASR;0BAC9B,oBAACQ,OAAO,aAAa;YAAC,MAAM;YAAmB,SAASF;;QAGhE,iBAAiB;QACjB,aAAa;OAEZL,UAAU,WAAVA,GAAU,oBAACU,eAAaA;QAAC,MAAK;QAAK,SAAQ;QAAS,eAAe;SAAW,oBAC/E,oBAACC,MAAIA,MAAAA,WAAAA,GACD,oBAACA,KAAK,MAAM;QAAC,MAAM;OAAI,+CACU,oBAAC,gBAAQV,QAAe,wEAGzD,oBAACU,KAAK,MAAM;QAAC,MAAM;qBACf,oBAACC,UAAQA;QACL,2BACI,wDACI,oBAAC,gBAAO,kBAAsB;QAGtC,UAAU;QACV,OAAOV;QACP,UAAUC;;AAMlC"}
@@ -1,34 +1,32 @@
1
- import React from "react";
1
+ import react from "react";
2
2
  import { Dialog, Grid, Icon } from "@webiny/admin-ui";
3
- import { ReactComponent as ApproveIcon } from "@webiny/icons/check.svg";
3
+ import { ReactComponent } from "@webiny/icons/check.svg";
4
4
  import { YouCanTrackAllContentReviewsHere } from "../Common/index.js";
5
- export const ApproveSuccessDialog = props => {
6
- const {
7
- hide,
8
- title
9
- } = props;
10
- return /*#__PURE__*/React.createElement(Dialog, {
11
- open: true,
12
- onOpenChange: hide,
13
- title: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
14
- label: "Approved",
15
- size: "md",
16
- className: "fill-success",
17
- icon: /*#__PURE__*/React.createElement(ApproveIcon, {
18
- className: "fill-success"
19
- })
20
- }), title, " Approved"),
21
- actions: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Dialog.ConfirmAction, {
22
- text: "Close",
23
- onClick: hide
24
- })),
25
- showCloseButton: true,
26
- dismissible: true
27
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Grid.Column, {
28
- span: 12
29
- }, /*#__PURE__*/React.createElement("strong", null, title), " is successfully approved. All relevant parties have been notified."), /*#__PURE__*/React.createElement(Grid.Column, {
30
- span: 12
31
- }, /*#__PURE__*/React.createElement(YouCanTrackAllContentReviewsHere, null))));
5
+ const ApproveSuccessDialog = (props)=>{
6
+ const { hide, title } = props;
7
+ return /*#__PURE__*/ react.createElement(Dialog, {
8
+ open: true,
9
+ onOpenChange: hide,
10
+ title: /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Icon, {
11
+ label: "Approved",
12
+ size: "md",
13
+ className: "fill-success",
14
+ icon: /*#__PURE__*/ react.createElement(ReactComponent, {
15
+ className: "fill-success"
16
+ })
17
+ }), title, " Approved"),
18
+ actions: /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Dialog.ConfirmAction, {
19
+ text: "Close",
20
+ onClick: hide
21
+ })),
22
+ showCloseButton: true,
23
+ dismissible: true
24
+ }, /*#__PURE__*/ react.createElement(Grid, null, /*#__PURE__*/ react.createElement(Grid.Column, {
25
+ span: 12
26
+ }, /*#__PURE__*/ react.createElement("strong", null, title), " is successfully approved. All relevant parties have been notified."), /*#__PURE__*/ react.createElement(Grid.Column, {
27
+ span: 12
28
+ }, /*#__PURE__*/ react.createElement(YouCanTrackAllContentReviewsHere, null))));
32
29
  };
30
+ export { ApproveSuccessDialog };
33
31
 
34
32
  //# sourceMappingURL=ApproveSuccessDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Dialog","Grid","Icon","ReactComponent","ApproveIcon","YouCanTrackAllContentReviewsHere","ApproveSuccessDialog","props","hide","title","createElement","open","onOpenChange","Fragment","label","size","className","icon","actions","ConfirmAction","text","onClick","showCloseButton","dismissible","Column","span"],"sources":["ApproveSuccessDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { Dialog, Grid, Icon } from \"@webiny/admin-ui\";\nimport { ReactComponent as ApproveIcon } from \"@webiny/icons/check.svg\";\nimport { YouCanTrackAllContentReviewsHere } from \"~/Components/Common/index.js\";\n\ninterface IApproveSuccessDialogProps {\n hide(): void;\n title: string;\n}\n\nexport const ApproveSuccessDialog = (props: IApproveSuccessDialogProps) => {\n const { hide, title } = props;\n\n return (\n <Dialog\n open={true}\n onOpenChange={hide}\n title={\n <>\n <Icon\n label={\"Approved\"}\n size={\"md\"}\n className={\"fill-success\"}\n icon={<ApproveIcon className={\"fill-success\"} />}\n />\n {title} Approved\n </>\n }\n actions={\n <>\n <Dialog.ConfirmAction text={\"Close\"} onClick={hide} />\n </>\n }\n showCloseButton={true}\n dismissible={true}\n >\n <Grid>\n <Grid.Column span={12}>\n <strong>{title}</strong> is successfully approved. All relevant parties have\n been notified.\n </Grid.Column>\n <Grid.Column span={12}>\n <YouCanTrackAllContentReviewsHere />\n </Grid.Column>\n </Grid>\n </Dialog>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,IAAI,EAAEC,IAAI,QAAQ,kBAAkB;AACrD,SAASC,cAAc,IAAIC,WAAW,QAAQ,yBAAyB;AACvE,SAASC,gCAAgC;AAOzC,OAAO,MAAMC,oBAAoB,GAAIC,KAAiC,IAAK;EACvE,MAAM;IAAEC,IAAI;IAAEC;EAAM,CAAC,GAAGF,KAAK;EAE7B,oBACIR,KAAA,CAAAW,aAAA,CAACV,MAAM;IACHW,IAAI,EAAE,IAAK;IACXC,YAAY,EAAEJ,IAAK;IACnBC,KAAK,eACDV,KAAA,CAAAW,aAAA,CAAAX,KAAA,CAAAc,QAAA,qBACId,KAAA,CAAAW,aAAA,CAACR,IAAI;MACDY,KAAK,EAAE,UAAW;MAClBC,IAAI,EAAE,IAAK;MACXC,SAAS,EAAE,cAAe;MAC1BC,IAAI,eAAElB,KAAA,CAAAW,aAAA,CAACN,WAAW;QAACY,SAAS,EAAE;MAAe,CAAE;IAAE,CACpD,CAAC,EACDP,KAAK,EAAC,WACT,CACL;IACDS,OAAO,eACHnB,KAAA,CAAAW,aAAA,CAAAX,KAAA,CAAAc,QAAA,qBACId,KAAA,CAAAW,aAAA,CAACV,MAAM,CAACmB,aAAa;MAACC,IAAI,EAAE,OAAQ;MAACC,OAAO,EAAEb;IAAK,CAAE,CACvD,CACL;IACDc,eAAe,EAAE,IAAK;IACtBC,WAAW,EAAE;EAAK,gBAElBxB,KAAA,CAAAW,aAAA,CAACT,IAAI,qBACDF,KAAA,CAAAW,aAAA,CAACT,IAAI,CAACuB,MAAM;IAACC,IAAI,EAAE;EAAG,gBAClB1B,KAAA,CAAAW,aAAA,iBAASD,KAAc,CAAC,uEAEf,CAAC,eACdV,KAAA,CAAAW,aAAA,CAACT,IAAI,CAACuB,MAAM;IAACC,IAAI,EAAE;EAAG,gBAClB1B,KAAA,CAAAW,aAAA,CAACL,gCAAgC,MAAE,CAC1B,CACX,CACF,CAAC;AAEjB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Components/WorkflowStateDialogs/ApproveSuccessDialog.js","sources":["../../../src/Components/WorkflowStateDialogs/ApproveSuccessDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { Dialog, Grid, Icon } from \"@webiny/admin-ui\";\nimport { ReactComponent as ApproveIcon } from \"@webiny/icons/check.svg\";\nimport { YouCanTrackAllContentReviewsHere } from \"~/Components/Common/index.js\";\n\ninterface IApproveSuccessDialogProps {\n hide(): void;\n title: string;\n}\n\nexport const ApproveSuccessDialog = (props: IApproveSuccessDialogProps) => {\n const { hide, title } = props;\n\n return (\n <Dialog\n open={true}\n onOpenChange={hide}\n title={\n <>\n <Icon\n label={\"Approved\"}\n size={\"md\"}\n className={\"fill-success\"}\n icon={<ApproveIcon className={\"fill-success\"} />}\n />\n {title} Approved\n </>\n }\n actions={\n <>\n <Dialog.ConfirmAction text={\"Close\"} onClick={hide} />\n </>\n }\n showCloseButton={true}\n dismissible={true}\n >\n <Grid>\n <Grid.Column span={12}>\n <strong>{title}</strong> is successfully approved. All relevant parties have\n been notified.\n </Grid.Column>\n <Grid.Column span={12}>\n <YouCanTrackAllContentReviewsHere />\n </Grid.Column>\n </Grid>\n </Dialog>\n );\n};\n"],"names":["ApproveSuccessDialog","props","hide","title","Dialog","Icon","ApproveIcon","Grid","YouCanTrackAllContentReviewsHere"],"mappings":";;;;AAUO,MAAMA,uBAAuB,CAACC;IACjC,MAAM,EAAEC,IAAI,EAAEC,KAAK,EAAE,GAAGF;IAExB,OAAO,WAAP,GACI,oBAACG,QAAMA;QACH,MAAM;QACN,cAAcF;QACd,qBACI,wDACI,oBAACG,MAAIA;YACD,OAAO;YACP,MAAM;YACN,WAAW;YACX,oBAAM,oBAACC,gBAAWA;gBAAC,WAAW;;YAEjCH,OAAM;QAGf,uBACI,wDACI,oBAACC,OAAO,aAAa;YAAC,MAAM;YAAS,SAASF;;QAGtD,iBAAiB;QACjB,aAAa;qBAEb,oBAACK,MAAIA,MAAAA,WAAAA,GACD,oBAACA,KAAK,MAAM;QAAC,MAAM;qBACf,oBAAC,gBAAQJ,QAAe,sFAG5B,oBAACI,KAAK,MAAM;QAAC,MAAM;qBACf,oBAACC,kCAAgCA;AAKrD"}
@@ -1,36 +1,33 @@
1
- import React from "react";
1
+ import react from "react";
2
2
  import { Dialog, Grid, Icon, OverlayLoader } from "@webiny/admin-ui";
3
- import { ReactComponent as CancelReviewIcon } from "@webiny/icons/check.svg";
4
- export const CancelReviewDialog = props => {
5
- const {
6
- onCancelReview,
7
- hide,
8
- loading
9
- } = props;
10
- return /*#__PURE__*/React.createElement(Dialog, {
11
- open: true,
12
- onOpenChange: hide,
13
- title: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
14
- label: "Cancel Content Review?",
15
- size: "md",
16
- className: "fill-success",
17
- icon: /*#__PURE__*/React.createElement(CancelReviewIcon, null)
18
- }), "Cancel Content Review?"),
19
- actions: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Dialog.CancelAction, {
20
- onClick: hide
21
- }), /*#__PURE__*/React.createElement(Dialog.ConfirmAction, {
22
- text: "Cancel Content Review",
23
- onClick: onCancelReview
24
- })),
25
- showCloseButton: true,
26
- dismissible: true
27
- }, loading ? /*#__PURE__*/React.createElement(OverlayLoader, {
28
- size: "sm",
29
- variant: "accent",
30
- indeterminate: true
31
- }) : null, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Grid.Column, {
32
- span: 12
33
- }, "You are about to cancel the request to for content review.")));
3
+ import { ReactComponent } from "@webiny/icons/check.svg";
4
+ const CancelReviewDialog = (props)=>{
5
+ const { onCancelReview, hide, loading } = props;
6
+ return /*#__PURE__*/ react.createElement(Dialog, {
7
+ open: true,
8
+ onOpenChange: hide,
9
+ title: /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Icon, {
10
+ label: "Cancel Content Review?",
11
+ size: "md",
12
+ className: "fill-success",
13
+ icon: /*#__PURE__*/ react.createElement(ReactComponent, null)
14
+ }), "Cancel Content Review?"),
15
+ actions: /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Dialog.CancelAction, {
16
+ onClick: hide
17
+ }), /*#__PURE__*/ react.createElement(Dialog.ConfirmAction, {
18
+ text: "Cancel Content Review",
19
+ onClick: onCancelReview
20
+ })),
21
+ showCloseButton: true,
22
+ dismissible: true
23
+ }, loading ? /*#__PURE__*/ react.createElement(OverlayLoader, {
24
+ size: "sm",
25
+ variant: "accent",
26
+ indeterminate: true
27
+ }) : null, /*#__PURE__*/ react.createElement(Grid, null, /*#__PURE__*/ react.createElement(Grid.Column, {
28
+ span: 12
29
+ }, "You are about to cancel the request to for content review.")));
34
30
  };
31
+ export { CancelReviewDialog };
35
32
 
36
33
  //# sourceMappingURL=CancelReviewDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Dialog","Grid","Icon","OverlayLoader","ReactComponent","CancelReviewIcon","CancelReviewDialog","props","onCancelReview","hide","loading","createElement","open","onOpenChange","title","Fragment","label","size","className","icon","actions","CancelAction","onClick","ConfirmAction","text","showCloseButton","dismissible","variant","indeterminate","Column","span"],"sources":["CancelReviewDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { Dialog, Grid, Icon, OverlayLoader } from \"@webiny/admin-ui\";\nimport { ReactComponent as CancelReviewIcon } from \"@webiny/icons/check.svg\";\n\ninterface ICancelReviewDialogProps {\n onCancelReview(): void;\n hide(): void;\n loading: boolean;\n}\n\nexport const CancelReviewDialog = (props: ICancelReviewDialogProps) => {\n const { onCancelReview, hide, loading } = props;\n\n return (\n <Dialog\n open={true}\n onOpenChange={hide}\n title={\n <>\n <Icon\n label={\"Cancel Content Review?\"}\n size={\"md\"}\n className={\"fill-success\"}\n icon={<CancelReviewIcon />}\n />\n Cancel Content Review?\n </>\n }\n actions={\n <>\n <Dialog.CancelAction onClick={hide} />\n <Dialog.ConfirmAction text={\"Cancel Content Review\"} onClick={onCancelReview} />\n </>\n }\n showCloseButton={true}\n dismissible={true}\n >\n {loading ? <OverlayLoader size=\"sm\" variant=\"accent\" indeterminate={true} /> : null}\n <Grid>\n <Grid.Column span={12}>\n You are about to cancel the request to for content review.\n </Grid.Column>\n </Grid>\n </Dialog>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,IAAI,EAAEC,IAAI,EAAEC,aAAa,QAAQ,kBAAkB;AACpE,SAASC,cAAc,IAAIC,gBAAgB,QAAQ,yBAAyB;AAQ5E,OAAO,MAAMC,kBAAkB,GAAIC,KAA+B,IAAK;EACnE,MAAM;IAAEC,cAAc;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAGH,KAAK;EAE/C,oBACIR,KAAA,CAAAY,aAAA,CAACX,MAAM;IACHY,IAAI,EAAE,IAAK;IACXC,YAAY,EAAEJ,IAAK;IACnBK,KAAK,eACDf,KAAA,CAAAY,aAAA,CAAAZ,KAAA,CAAAgB,QAAA,qBACIhB,KAAA,CAAAY,aAAA,CAACT,IAAI;MACDc,KAAK,EAAE,wBAAyB;MAChCC,IAAI,EAAE,IAAK;MACXC,SAAS,EAAE,cAAe;MAC1BC,IAAI,eAAEpB,KAAA,CAAAY,aAAA,CAACN,gBAAgB,MAAE;IAAE,CAC9B,CAAC,0BAEJ,CACL;IACDe,OAAO,eACHrB,KAAA,CAAAY,aAAA,CAAAZ,KAAA,CAAAgB,QAAA,qBACIhB,KAAA,CAAAY,aAAA,CAACX,MAAM,CAACqB,YAAY;MAACC,OAAO,EAAEb;IAAK,CAAE,CAAC,eACtCV,KAAA,CAAAY,aAAA,CAACX,MAAM,CAACuB,aAAa;MAACC,IAAI,EAAE,uBAAwB;MAACF,OAAO,EAAEd;IAAe,CAAE,CACjF,CACL;IACDiB,eAAe,EAAE,IAAK;IACtBC,WAAW,EAAE;EAAK,GAEjBhB,OAAO,gBAAGX,KAAA,CAAAY,aAAA,CAACR,aAAa;IAACc,IAAI,EAAC,IAAI;IAACU,OAAO,EAAC,QAAQ;IAACC,aAAa,EAAE;EAAK,CAAE,CAAC,GAAG,IAAI,eACnF7B,KAAA,CAAAY,aAAA,CAACV,IAAI,qBACDF,KAAA,CAAAY,aAAA,CAACV,IAAI,CAAC4B,MAAM;IAACC,IAAI,EAAE;EAAG,GAAC,4DAEV,CACX,CACF,CAAC;AAEjB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Components/WorkflowStateDialogs/CancelReviewDialog.js","sources":["../../../src/Components/WorkflowStateDialogs/CancelReviewDialog.tsx"],"sourcesContent":["import React from \"react\";\nimport { Dialog, Grid, Icon, OverlayLoader } from \"@webiny/admin-ui\";\nimport { ReactComponent as CancelReviewIcon } from \"@webiny/icons/check.svg\";\n\ninterface ICancelReviewDialogProps {\n onCancelReview(): void;\n hide(): void;\n loading: boolean;\n}\n\nexport const CancelReviewDialog = (props: ICancelReviewDialogProps) => {\n const { onCancelReview, hide, loading } = props;\n\n return (\n <Dialog\n open={true}\n onOpenChange={hide}\n title={\n <>\n <Icon\n label={\"Cancel Content Review?\"}\n size={\"md\"}\n className={\"fill-success\"}\n icon={<CancelReviewIcon />}\n />\n Cancel Content Review?\n </>\n }\n actions={\n <>\n <Dialog.CancelAction onClick={hide} />\n <Dialog.ConfirmAction text={\"Cancel Content Review\"} onClick={onCancelReview} />\n </>\n }\n showCloseButton={true}\n dismissible={true}\n >\n {loading ? <OverlayLoader size=\"sm\" variant=\"accent\" indeterminate={true} /> : null}\n <Grid>\n <Grid.Column span={12}>\n You are about to cancel the request to for content review.\n </Grid.Column>\n </Grid>\n </Dialog>\n );\n};\n"],"names":["CancelReviewDialog","props","onCancelReview","hide","loading","Dialog","Icon","CancelReviewIcon","OverlayLoader","Grid"],"mappings":";;;AAUO,MAAMA,qBAAqB,CAACC;IAC/B,MAAM,EAAEC,cAAc,EAAEC,IAAI,EAAEC,OAAO,EAAE,GAAGH;IAE1C,OAAO,WAAP,GACI,oBAACI,QAAMA;QACH,MAAM;QACN,cAAcF;QACd,qBACI,wDACI,oBAACG,MAAIA;YACD,OAAO;YACP,MAAM;YACN,WAAW;YACX,oBAAM,oBAACC,gBAAgBA;YACzB;QAIV,uBACI,wDACI,oBAACF,OAAO,YAAY;YAAC,SAASF;0BAC9B,oBAACE,OAAO,aAAa;YAAC,MAAM;YAAyB,SAASH;;QAGtE,iBAAiB;QACjB,aAAa;OAEZE,UAAU,WAAVA,GAAU,oBAACI,eAAaA;QAAC,MAAK;QAAK,SAAQ;QAAS,eAAe;SAAW,oBAC/E,oBAACC,MAAIA,MAAAA,WAAAA,GACD,oBAACA,KAAK,MAAM;QAAC,MAAM;OAAI;AAMvC"}
@@ -1,47 +1,41 @@
1
1
  import { Dialog, Grid, Icon } from "@webiny/admin-ui";
2
- import React from "react";
2
+ import react from "react";
3
3
  import { WorkflowStateValue } from "../../types.js";
4
- import { ReactComponent as RejectIcon } from "@webiny/icons/do_not_disturb.svg";
5
- import { ReactComponent as ApproveIcon } from "@webiny/icons/check.svg";
6
- const Title = props => {
7
- const {
8
- step
9
- } = props;
10
- if (step.state === WorkflowStateValue.rejected) {
11
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
12
- label: `${step.title} Rejected!`,
13
- size: "md",
14
- className: "fill-destructive",
15
- icon: /*#__PURE__*/React.createElement(RejectIcon, null)
4
+ import { ReactComponent } from "@webiny/icons/do_not_disturb.svg";
5
+ import { ReactComponent as check_svg_ReactComponent } from "@webiny/icons/check.svg";
6
+ const Title = (props)=>{
7
+ const { step } = props;
8
+ if (step.state === WorkflowStateValue.rejected) return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Icon, {
9
+ label: `${step.title} Rejected!`,
10
+ size: "md",
11
+ className: "fill-destructive",
12
+ icon: /*#__PURE__*/ react.createElement(ReactComponent, null)
16
13
  }), step.title, " Rejected!");
17
- }
18
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
19
- label: `${step.title} Approved!`,
20
- size: "md",
21
- className: "fill-success",
22
- icon: /*#__PURE__*/React.createElement(ApproveIcon, null)
23
- }), step.title, " Approved!");
14
+ return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Icon, {
15
+ label: `${step.title} Approved!`,
16
+ size: "md",
17
+ className: "fill-success",
18
+ icon: /*#__PURE__*/ react.createElement(check_svg_ReactComponent, null)
19
+ }), step.title, " Approved!");
24
20
  };
25
- export const CommentDialog = props => {
26
- const {
27
- hide,
28
- step
29
- } = props;
30
- return /*#__PURE__*/React.createElement(Dialog, {
31
- open: true,
32
- onOpenChange: hide,
33
- title: /*#__PURE__*/React.createElement(Title, {
34
- step: step
35
- }),
36
- actions: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Dialog.ConfirmAction, {
37
- text: "Close",
38
- onClick: hide
39
- })),
40
- showCloseButton: true,
41
- dismissible: true
42
- }, /*#__PURE__*/React.createElement(Grid, null, /*#__PURE__*/React.createElement(Grid.Column, {
43
- span: 12
44
- }, step.comment || "No comment provided.")));
21
+ const CommentDialog = (props)=>{
22
+ const { hide, step } = props;
23
+ return /*#__PURE__*/ react.createElement(Dialog, {
24
+ open: true,
25
+ onOpenChange: hide,
26
+ title: /*#__PURE__*/ react.createElement(Title, {
27
+ step: step
28
+ }),
29
+ actions: /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Dialog.ConfirmAction, {
30
+ text: "Close",
31
+ onClick: hide
32
+ })),
33
+ showCloseButton: true,
34
+ dismissible: true
35
+ }, /*#__PURE__*/ react.createElement(Grid, null, /*#__PURE__*/ react.createElement(Grid.Column, {
36
+ span: 12
37
+ }, step.comment || "No comment provided.")));
45
38
  };
39
+ export { CommentDialog };
46
40
 
47
41
  //# sourceMappingURL=CommentDialog.js.map