@webiny/app-workflows 6.3.0 → 6.4.0-beta.0
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.
- package/Components/AdminConfig/WorkflowsMenu.js +18 -19
- package/Components/AdminConfig/WorkflowsMenu.js.map +1 -1
- package/Components/App/ContentReviews.js +24 -25
- package/Components/App/ContentReviews.js.map +1 -1
- package/Components/App/WorkflowsAdminApp.js +5 -10
- package/Components/App/WorkflowsAdminApp.js.map +1 -1
- package/Components/App/index.js +0 -2
- package/Components/Common/Options/OptionItem/Approve.js +16 -20
- package/Components/Common/Options/OptionItem/Approve.js.map +1 -1
- package/Components/Common/Options/OptionItem/OpenInNewWindow.js +3 -6
- package/Components/Common/Options/OptionItem/OpenInNewWindow.js.map +1 -1
- package/Components/Common/Options/OptionItem/Reject.js +16 -20
- package/Components/Common/Options/OptionItem/Reject.js.map +1 -1
- package/Components/Common/Options/OptionItem/Start.js +15 -19
- package/Components/Common/Options/OptionItem/Start.js.map +1 -1
- package/Components/Common/Options/OptionItem/TakeOver.js +15 -19
- package/Components/Common/Options/OptionItem/TakeOver.js.map +1 -1
- package/Components/Common/Options/WorkflowStateOptions.js +57 -58
- package/Components/Common/Options/WorkflowStateOptions.js.map +1 -1
- package/Components/Common/Options/index.js +0 -2
- package/Components/Common/TagState.js +9 -10
- package/Components/Common/TagState.js.map +1 -1
- package/Components/Common/TagStep.js +9 -10
- package/Components/Common/TagStep.js.map +1 -1
- package/Components/Common/YouCanTrackAllContentReviewsHere.js +8 -9
- package/Components/Common/YouCanTrackAllContentReviewsHere.js.map +1 -1
- package/Components/Common/index.js +0 -2
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarApproved.js +15 -23
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarApproved.js.map +1 -1
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarCancelReview.js +15 -23
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarCancelReview.js.map +1 -1
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarError.js +14 -23
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarError.js.map +1 -1
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarLoading.js +10 -18
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarLoading.js.map +1 -1
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRejected.js +22 -30
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRejected.js.map +1 -1
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRequestReview.js +13 -21
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarRequestReview.js.map +1 -1
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarReview.js +30 -51
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarReview.js.map +1 -1
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarStartReview.js +17 -25
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarStartReview.js.map +1 -1
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarWorkflow.js +7 -15
- package/Components/WorkflowState/Bar/Bars/WorkflowStateBarWorkflow.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/ApproveDialog.js +13 -16
- package/Components/WorkflowState/Bar/Dialogs/ApproveDialog.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/ApproveSuccessDialog.js +11 -14
- package/Components/WorkflowState/Bar/Dialogs/ApproveSuccessDialog.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/CancelReviewDialog.js +10 -11
- package/Components/WorkflowState/Bar/Dialogs/CancelReviewDialog.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/CommentDialog.js +11 -14
- package/Components/WorkflowState/Bar/Dialogs/CommentDialog.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/RejectDialog.js +13 -16
- package/Components/WorkflowState/Bar/Dialogs/RejectDialog.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/RejectSuccessDialog.js +11 -14
- package/Components/WorkflowState/Bar/Dialogs/RejectSuccessDialog.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/RequestReviewDialog.js +10 -11
- package/Components/WorkflowState/Bar/Dialogs/RequestReviewDialog.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/StartDialog.js +13 -16
- package/Components/WorkflowState/Bar/Dialogs/StartDialog.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/StartSuccessDialog.js +11 -14
- package/Components/WorkflowState/Bar/Dialogs/StartSuccessDialog.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/TakeOverDialog.js +15 -18
- package/Components/WorkflowState/Bar/Dialogs/TakeOverDialog.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/TakeOverSuccessDialog.js +11 -14
- package/Components/WorkflowState/Bar/Dialogs/TakeOverSuccessDialog.js.map +1 -1
- package/Components/WorkflowState/Bar/Dialogs/index.js +0 -2
- package/Components/WorkflowState/Bar/WorkflowStateBar.js +13 -20
- package/Components/WorkflowState/Bar/WorkflowStateBar.js.map +1 -1
- package/Components/WorkflowState/Bar/WorkflowStateBarComponent.js +10 -18
- package/Components/WorkflowState/Bar/WorkflowStateBarComponent.js.map +1 -1
- package/Components/WorkflowState/Bar/WorkflowStateBarDialogs.js +51 -52
- package/Components/WorkflowState/Bar/WorkflowStateBarDialogs.js.map +1 -1
- package/Components/WorkflowState/Bar/index.js +0 -2
- package/Components/WorkflowState/Overlay/WorkflowStateOverlay.js +7 -11
- package/Components/WorkflowState/Overlay/WorkflowStateOverlay.js.map +1 -1
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltip.js +32 -40
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltip.js.map +1 -1
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContent.js +30 -36
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContent.js.map +1 -1
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContentComment.js +17 -21
- package/Components/WorkflowState/Tooltip/WorkflowStateTooltipContentComment.js.map +1 -1
- package/Components/WorkflowState/WorkflowStateProvider.d.ts +1 -0
- package/Components/WorkflowState/WorkflowStateProvider.js +41 -40
- package/Components/WorkflowState/WorkflowStateProvider.js.map +1 -1
- package/Components/WorkflowState/index.js +0 -2
- package/Components/WorkflowState/useWorkflowState.js +5 -6
- package/Components/WorkflowState/useWorkflowState.js.map +1 -1
- package/Components/WorkflowStateDialogs/ApproveDialog.js +43 -44
- package/Components/WorkflowStateDialogs/ApproveDialog.js.map +1 -1
- package/Components/WorkflowStateDialogs/ApproveSuccessDialog.js +27 -29
- package/Components/WorkflowStateDialogs/ApproveSuccessDialog.js.map +1 -1
- package/Components/WorkflowStateDialogs/CancelReviewDialog.js +29 -32
- package/Components/WorkflowStateDialogs/CancelReviewDialog.js.map +1 -1
- package/Components/WorkflowStateDialogs/CommentDialog.js +34 -40
- package/Components/WorkflowStateDialogs/CommentDialog.js.map +1 -1
- package/Components/WorkflowStateDialogs/RejectDialog.js +73 -76
- package/Components/WorkflowStateDialogs/RejectDialog.js.map +1 -1
- package/Components/WorkflowStateDialogs/RejectSuccessDialog.js +25 -27
- package/Components/WorkflowStateDialogs/RejectSuccessDialog.js.map +1 -1
- package/Components/WorkflowStateDialogs/RequestReviewDialog.js +29 -32
- package/Components/WorkflowStateDialogs/RequestReviewDialog.js.map +1 -1
- package/Components/WorkflowStateDialogs/StartDialog.js +29 -33
- package/Components/WorkflowStateDialogs/StartDialog.js.map +1 -1
- package/Components/WorkflowStateDialogs/StartSuccessDialog.js +25 -27
- package/Components/WorkflowStateDialogs/StartSuccessDialog.js.map +1 -1
- package/Components/WorkflowStateDialogs/TakeOverDialog.js +29 -34
- package/Components/WorkflowStateDialogs/TakeOverDialog.js.map +1 -1
- package/Components/WorkflowStateDialogs/TakeOverSuccessDialog.js +25 -27
- package/Components/WorkflowStateDialogs/TakeOverSuccessDialog.js.map +1 -1
- package/Components/WorkflowStateDialogs/index.js +0 -2
- package/Components/WorkflowStateList/List/WorkflowStateList.js +80 -87
- package/Components/WorkflowStateList/List/WorkflowStateList.js.map +1 -1
- package/Components/WorkflowStateList/List/WorkflowStateListFilters.js +67 -61
- package/Components/WorkflowStateList/List/WorkflowStateListFilters.js.map +1 -1
- package/Components/WorkflowStateList/List/WorkflowStateListOptions.js +7 -8
- package/Components/WorkflowStateList/List/WorkflowStateListOptions.js.map +1 -1
- package/Components/WorkflowStateList/List/WorkflowStateListView.js +18 -21
- package/Components/WorkflowStateList/List/WorkflowStateListView.js.map +1 -1
- package/Components/WorkflowStateList/List/index.js +0 -2
- package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlay.js +24 -27
- package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlay.js.map +1 -1
- package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlayView.js +18 -25
- package/Components/WorkflowStateList/Overlay/WorkflowStateListAppOverlayView.js.map +1 -1
- package/Components/WorkflowStateList/Overlay/index.js +0 -2
- package/Components/WorkflowStateList/Provider/WorkflowStateListProvider.js +30 -31
- package/Components/WorkflowStateList/Provider/WorkflowStateListProvider.js.map +1 -1
- package/Components/WorkflowStateList/Provider/index.js +0 -2
- package/Components/WorkflowStateList/hooks/index.js +0 -2
- package/Components/WorkflowStateList/hooks/useWorkflowStateList.js +5 -6
- package/Components/WorkflowStateList/hooks/useWorkflowStateList.js.map +1 -1
- package/Components/WorkflowStateList/index.js +0 -2
- package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCard.js +42 -45
- package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCard.js.map +1 -1
- package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCardTabs.js +43 -53
- package/Components/WorkflowStatesWidget/Card/WorkflowStatesWidgetCardTabs.js.map +1 -1
- package/Components/WorkflowStatesWidget/Dialogs/ApproveDialog.js +18 -21
- package/Components/WorkflowStatesWidget/Dialogs/ApproveDialog.js.map +1 -1
- package/Components/WorkflowStatesWidget/Dialogs/ApproveSuccessDialog.js +10 -13
- package/Components/WorkflowStatesWidget/Dialogs/ApproveSuccessDialog.js.map +1 -1
- package/Components/WorkflowStatesWidget/Dialogs/RejectDialog.js +18 -21
- package/Components/WorkflowStatesWidget/Dialogs/RejectDialog.js.map +1 -1
- package/Components/WorkflowStatesWidget/Dialogs/RejectSuccessDialog.js +10 -13
- package/Components/WorkflowStatesWidget/Dialogs/RejectSuccessDialog.js.map +1 -1
- package/Components/WorkflowStatesWidget/Dialogs/StartDialog.js +18 -21
- package/Components/WorkflowStatesWidget/Dialogs/StartDialog.js.map +1 -1
- package/Components/WorkflowStatesWidget/Dialogs/StartSuccessDialog.js +10 -13
- package/Components/WorkflowStatesWidget/Dialogs/StartSuccessDialog.js.map +1 -1
- package/Components/WorkflowStatesWidget/Dialogs/TakeOverDialog.js +21 -24
- package/Components/WorkflowStatesWidget/Dialogs/TakeOverDialog.js.map +1 -1
- package/Components/WorkflowStatesWidget/Dialogs/TakeOverSuccessDialog.js +10 -13
- package/Components/WorkflowStatesWidget/Dialogs/TakeOverSuccessDialog.js.map +1 -1
- package/Components/WorkflowStatesWidget/Dialogs/index.js +0 -2
- package/Components/WorkflowStatesWidget/List/WorkflowStateList.js +10 -13
- package/Components/WorkflowStatesWidget/List/WorkflowStateList.js.map +1 -1
- package/Components/WorkflowStatesWidget/List/WorkflowStateRow.js +16 -17
- package/Components/WorkflowStatesWidget/List/WorkflowStateRow.js.map +1 -1
- package/Components/WorkflowStatesWidget/List/WorkflowStateRowOptions.js +36 -27
- package/Components/WorkflowStatesWidget/List/WorkflowStateRowOptions.js.map +1 -1
- package/Components/WorkflowStatesWidget/Provider/WorkflowStatesProvider.js +24 -28
- package/Components/WorkflowStatesWidget/Provider/WorkflowStatesProvider.js.map +1 -1
- package/Components/WorkflowStatesWidget/Row/WorkflowStateRowDescription.js +12 -17
- package/Components/WorkflowStatesWidget/Row/WorkflowStateRowDescription.js.map +1 -1
- package/Components/WorkflowStatesWidget/WorkflowStatesOwnWidget.js +22 -20
- package/Components/WorkflowStatesWidget/WorkflowStatesOwnWidget.js.map +1 -1
- package/Components/WorkflowStatesWidget/WorkflowStatesRequestedWidget.js +20 -20
- package/Components/WorkflowStatesWidget/WorkflowStatesRequestedWidget.js.map +1 -1
- package/Components/WorkflowStatesWidget/hooks/useWorkflowStatesWidget.js +5 -6
- package/Components/WorkflowStatesWidget/hooks/useWorkflowStatesWidget.js.map +1 -1
- package/Components/WorkflowStatesWidget/index.js +0 -2
- package/Components/WorkflowsEditor/DataList/WorkflowsDataList.js +34 -40
- package/Components/WorkflowsEditor/DataList/WorkflowsDataList.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/Error/FormattedError.js +28 -33
- package/Components/WorkflowsEditor/Editor/Error/FormattedError.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/Error/WorkflowError.js +28 -35
- package/Components/WorkflowsEditor/Editor/Error/WorkflowError.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormColor.js +11 -17
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormColor.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormDescription.js +8 -9
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormDescription.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormNotifications.js +27 -37
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormNotifications.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTeams.js +21 -31
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTeams.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTitle.js +9 -10
- package/Components/WorkflowsEditor/Editor/Step/Form/StepFormTitle.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/Step/InactiveStep.js +14 -15
- package/Components/WorkflowsEditor/Editor/Step/InactiveStep.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/Step/NewStep.js +52 -51
- package/Components/WorkflowsEditor/Editor/Step/NewStep.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/Step/Step/RemoveStep.js +26 -32
- package/Components/WorkflowsEditor/Editor/Step/Step/RemoveStep.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/Step/Step.js +119 -134
- package/Components/WorkflowsEditor/Editor/Step/Step.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/WorkflowEditor.js +37 -38
- package/Components/WorkflowsEditor/Editor/WorkflowEditor.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/WorkflowEditorSteps.js +34 -39
- package/Components/WorkflowsEditor/Editor/WorkflowEditorSteps.js.map +1 -1
- package/Components/WorkflowsEditor/Editor/WorkflowEditorView.js +17 -23
- package/Components/WorkflowsEditor/Editor/WorkflowEditorView.js.map +1 -1
- package/Components/WorkflowsEditor/WorkflowsEditor.js +3 -4
- package/Components/WorkflowsEditor/WorkflowsEditor.js.map +1 -1
- package/Components/WorkflowsEditor/WorkflowsEditorBase.js +26 -33
- package/Components/WorkflowsEditor/WorkflowsEditorBase.js.map +1 -1
- package/Components/WorkflowsEditor/index.js +0 -2
- package/Components/WorkflowsPermissions/HasWorkflowsEditorPermission.js +6 -6
- package/Components/WorkflowsPermissions/HasWorkflowsEditorPermission.js.map +1 -1
- package/Components/WorkflowsPermissions/SecurityPermissions.js +11 -14
- package/Components/WorkflowsPermissions/SecurityPermissions.js.map +1 -1
- package/Components/WorkflowsPermissions/constants.js +2 -1
- package/Components/WorkflowsPermissions/constants.js.map +1 -1
- package/Components/WorkflowsPermissions/index.js +0 -2
- package/Components/WorkflowsPermissions/useWorkflowsPermission.js +13 -22
- package/Components/WorkflowsPermissions/useWorkflowsPermission.js.map +1 -1
- package/Components/helpers/index.js +0 -2
- package/Components/helpers/stateName.js +14 -13
- package/Components/helpers/stateName.js.map +1 -1
- package/Components/helpers/tagStateVariant.js +14 -13
- package/Components/helpers/tagStateVariant.js.map +1 -1
- package/Gateways/WorkflowNotificationTypesGateway.js +24 -23
- package/Gateways/WorkflowNotificationTypesGateway.js.map +1 -1
- package/Gateways/WorkflowStateGateway.js +163 -170
- package/Gateways/WorkflowStateGateway.js.map +1 -1
- package/Gateways/WorkflowStateListGateway.js +87 -80
- package/Gateways/WorkflowStateListGateway.js.map +1 -1
- package/Gateways/WorkflowStatesWidgetGateway.js +124 -123
- package/Gateways/WorkflowStatesWidgetGateway.js.map +1 -1
- package/Gateways/WorkflowsGateway.js +70 -67
- package/Gateways/WorkflowsGateway.js.map +1 -1
- package/Gateways/abstraction/WorkflowNotificationTypesGateway.js +0 -3
- package/Gateways/abstraction/WorkflowStateGateway.js +0 -3
- package/Gateways/abstraction/WorkflowStateListGateway.js +0 -3
- package/Gateways/abstraction/WorkflowStatesWidgetGateway.js +0 -3
- package/Gateways/abstraction/WorkflowsGateway.js +0 -3
- package/Gateways/graphql/workflowNotifications.js +5 -4
- package/Gateways/graphql/workflowNotifications.js.map +1 -1
- package/Gateways/graphql/workflowStates.js +15 -14
- package/Gateways/graphql/workflowStates.js.map +1 -1
- package/Gateways/graphql/workflows.js +8 -7
- package/Gateways/graphql/workflows.js.map +1 -1
- package/Gateways/index.js +0 -2
- package/Models/WorkflowModel.js +61 -70
- package/Models/WorkflowModel.js.map +1 -1
- package/Models/WorkflowStateModel.js +88 -107
- package/Models/WorkflowStateModel.js.map +1 -1
- package/Models/WorkflowStateStepModel.js +41 -40
- package/Models/WorkflowStateStepModel.js.map +1 -1
- package/Models/WorkflowStepModel.js +26 -25
- package/Models/WorkflowStepModel.js.map +1 -1
- package/Models/abstractions/WorkflowModel.js +0 -3
- package/Models/abstractions/WorkflowStateModel.js +0 -3
- package/Models/abstractions/WorkflowStateStepModel.js +0 -3
- package/Models/abstractions/WorkflowStepModel.js +0 -3
- package/Models/index.js +0 -2
- package/Presenters/WorkflowStateListPresenter.js +45 -49
- package/Presenters/WorkflowStateListPresenter.js.map +1 -1
- package/Presenters/WorkflowStatePresenter.d.ts +2 -0
- package/Presenters/WorkflowStatePresenter.js +192 -214
- package/Presenters/WorkflowStatePresenter.js.map +1 -1
- package/Presenters/WorkflowStatesWidgetPresenter.js +214 -259
- package/Presenters/WorkflowStatesWidgetPresenter.js.map +1 -1
- package/Presenters/WorkflowsPresenter.js +101 -103
- package/Presenters/WorkflowsPresenter.js.map +1 -1
- package/Presenters/abstractions/WorkflowStateListPresenter.js +0 -3
- package/Presenters/abstractions/WorkflowStatePresenter.js +0 -3
- package/Presenters/abstractions/WorkflowStatesWidgetPresenter.js +0 -3
- package/Presenters/abstractions/WorkflowsPresenter.js +0 -3
- package/Presenters/index.js +0 -2
- package/Repositories/WorkflowNotificationTypesRepository.js +26 -25
- package/Repositories/WorkflowNotificationTypesRepository.js.map +1 -1
- package/Repositories/WorkflowStateListRepository.js +65 -69
- package/Repositories/WorkflowStateListRepository.js.map +1 -1
- package/Repositories/WorkflowStateRepository.js +121 -127
- package/Repositories/WorkflowStateRepository.js.map +1 -1
- package/Repositories/WorkflowStatesWidgetRepository.js +120 -131
- package/Repositories/WorkflowStatesWidgetRepository.js.map +1 -1
- package/Repositories/WorkflowsRepository.js +71 -80
- package/Repositories/WorkflowsRepository.js.map +1 -1
- package/Repositories/abstractions/WorkflowNotificationTypesRepository.js +0 -3
- package/Repositories/abstractions/WorkflowStateListRepository.js +0 -3
- package/Repositories/abstractions/WorkflowStateRepository.js +0 -3
- package/Repositories/abstractions/WorkflowStatesWidgetRepository.js +0 -3
- package/Repositories/abstractions/WorkflowsRepository.js +0 -3
- package/Repositories/index.js +0 -2
- package/domain/permissionsSchema.js +6 -5
- package/domain/permissionsSchema.js.map +1 -1
- package/features/permissions/abstractions.js +2 -1
- package/features/permissions/abstractions.js.map +1 -1
- package/features/permissions/feature.js +2 -1
- package/features/permissions/feature.js.map +1 -1
- package/hooks/canUseWorkflows.js +7 -6
- package/hooks/canUseWorkflows.js.map +1 -1
- package/index.js +32 -33
- package/index.js.map +1 -1
- package/package.json +12 -13
- package/routes.js +15 -13
- package/routes.js.map +1 -1
- package/types.js +11 -15
- package/types.js.map +1 -1
- package/Components/App/index.js.map +0 -1
- package/Components/Common/Options/index.js.map +0 -1
- package/Components/Common/index.js.map +0 -1
- package/Components/WorkflowState/Bar/Dialogs/index.js.map +0 -1
- package/Components/WorkflowState/Bar/index.js.map +0 -1
- package/Components/WorkflowState/index.js.map +0 -1
- package/Components/WorkflowStateDialogs/index.js.map +0 -1
- package/Components/WorkflowStateList/List/index.js.map +0 -1
- package/Components/WorkflowStateList/Overlay/index.js.map +0 -1
- package/Components/WorkflowStateList/Provider/index.js.map +0 -1
- package/Components/WorkflowStateList/hooks/index.js.map +0 -1
- package/Components/WorkflowStateList/index.js.map +0 -1
- package/Components/WorkflowStatesWidget/Dialogs/index.js.map +0 -1
- package/Components/WorkflowStatesWidget/index.js.map +0 -1
- package/Components/WorkflowsEditor/index.js.map +0 -1
- package/Components/WorkflowsPermissions/index.js.map +0 -1
- package/Components/helpers/index.js.map +0 -1
- package/Gateways/abstraction/WorkflowNotificationTypesGateway.js.map +0 -1
- package/Gateways/abstraction/WorkflowStateGateway.js.map +0 -1
- package/Gateways/abstraction/WorkflowStateListGateway.js.map +0 -1
- package/Gateways/abstraction/WorkflowStatesWidgetGateway.js.map +0 -1
- package/Gateways/abstraction/WorkflowsGateway.js.map +0 -1
- package/Gateways/index.js.map +0 -1
- package/Models/abstractions/WorkflowModel.js.map +0 -1
- package/Models/abstractions/WorkflowStateModel.js.map +0 -1
- package/Models/abstractions/WorkflowStateStepModel.js.map +0 -1
- package/Models/abstractions/WorkflowStepModel.js.map +0 -1
- package/Models/index.js.map +0 -1
- package/Presenters/abstractions/WorkflowStateListPresenter.js.map +0 -1
- package/Presenters/abstractions/WorkflowStatePresenter.js.map +0 -1
- package/Presenters/abstractions/WorkflowStatesWidgetPresenter.js.map +0 -1
- package/Presenters/abstractions/WorkflowsPresenter.js.map +0 -1
- package/Presenters/index.js.map +0 -1
- package/Repositories/abstractions/WorkflowNotificationTypesRepository.js.map +0 -1
- package/Repositories/abstractions/WorkflowStateListRepository.js.map +0 -1
- package/Repositories/abstractions/WorkflowStateRepository.js.map +0 -1
- package/Repositories/abstractions/WorkflowStatesWidgetRepository.js.map +0 -1
- package/Repositories/abstractions/WorkflowsRepository.js.map +0 -1
- package/Repositories/index.js.map +0 -1
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactComponent
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
step
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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,"
|
|
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"}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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,"
|
|
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"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { WorkflowStateContext } from "./WorkflowStateProvider.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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,"
|
|
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
|
|
1
|
+
import react, { useCallback } from "react";
|
|
2
2
|
import { Dialog, Grid, Icon, OverlayLoader, Textarea } from "@webiny/admin-ui";
|
|
3
|
-
import { ReactComponent
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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,"
|
|
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
|
|
1
|
+
import react from "react";
|
|
2
2
|
import { Dialog, Grid, Icon } from "@webiny/admin-ui";
|
|
3
|
-
import { ReactComponent
|
|
3
|
+
import { ReactComponent } from "@webiny/icons/check.svg";
|
|
4
4
|
import { YouCanTrackAllContentReviewsHere } from "../Common/index.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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,"
|
|
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
|
|
1
|
+
import react from "react";
|
|
2
2
|
import { Dialog, Grid, Icon, OverlayLoader } from "@webiny/admin-ui";
|
|
3
|
-
import { ReactComponent
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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,"
|
|
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
|
|
2
|
+
import react from "react";
|
|
3
3
|
import { WorkflowStateValue } from "../../types.js";
|
|
4
|
-
import { ReactComponent
|
|
5
|
-
import { ReactComponent as
|
|
6
|
-
const Title = props
|
|
7
|
-
|
|
8
|
-
step
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
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
|