@webiny/app-scheduler 6.2.0 → 6.3.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.
|
@@ -26,7 +26,7 @@ export declare const SchedulerDialogFormComponentDateTimeInput: ((props: ISchedu
|
|
|
26
26
|
originalName: string;
|
|
27
27
|
displayName: string;
|
|
28
28
|
} & {
|
|
29
|
-
createDecorator: (decorator: import("@webiny/
|
|
29
|
+
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<((props: ISchedulerDialogFormComponentDateTimeInputProps) => React.JSX.Element) & {
|
|
30
30
|
original: (props: ISchedulerDialogFormComponentDateTimeInputProps) => React.JSX.Element;
|
|
31
31
|
originalName: string;
|
|
32
32
|
displayName: string;
|
|
@@ -14,7 +14,7 @@ export const useCancelSchedulerItem = ({
|
|
|
14
14
|
showConfirmation
|
|
15
15
|
} = useConfirmationDialog({
|
|
16
16
|
title: "Cancel scheduled action?",
|
|
17
|
-
message: /*#__PURE__*/React.createElement("p", null, "You are about to cancel scheduled action for this item!", /*#__PURE__*/React.createElement("br", null), "Are you sure you want to cancel scheduled ", /*#__PURE__*/React.createElement("strong", null, item.actionType), " for ", /*#__PURE__*/React.createElement("strong", null, item.title), "?")
|
|
17
|
+
message: /*#__PURE__*/React.createElement("p", null, "You are about to cancel scheduled action for this item!", /*#__PURE__*/React.createElement("br", null), "Are you sure you want to cancel scheduled ", /*#__PURE__*/React.createElement("strong", null, item.actionType), " for", " ", /*#__PURE__*/React.createElement("strong", null, item.title), "?")
|
|
18
18
|
});
|
|
19
19
|
const openDialogCancelSchedulerItem = useCallback(() => showConfirmation(async () => {
|
|
20
20
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useConfirmationDialog","useSnackbar","useScheduler","useCancelSchedulerItem","item","cancelItem","showSnackbar","showConfirmation","title","message","createElement","actionType","openDialogCancelSchedulerItem","id","ex"],"sources":["useCancelSchedulerItem.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useConfirmationDialog, useSnackbar } from \"@webiny/app-admin\";\nimport { useScheduler } from \"./useScheduler.js\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\ninterface UseCancelScheduleItemParams {\n item: Pick<SchedulerEntry, \"id\" | \"title\" | \"actionType\">;\n}\n\nexport const useCancelSchedulerItem = ({ item }: UseCancelScheduleItemParams) => {\n const { cancelItem } = useScheduler();\n const { showSnackbar } = useSnackbar();\n\n const { showConfirmation } = useConfirmationDialog({\n title: \"Cancel scheduled action?\",\n message: (\n <p>\n You are about to cancel scheduled action for this item!\n <br />\n Are you sure you want to cancel scheduled <strong
|
|
1
|
+
{"version":3,"names":["React","useCallback","useConfirmationDialog","useSnackbar","useScheduler","useCancelSchedulerItem","item","cancelItem","showSnackbar","showConfirmation","title","message","createElement","actionType","openDialogCancelSchedulerItem","id","ex"],"sources":["useCancelSchedulerItem.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useConfirmationDialog, useSnackbar } from \"@webiny/app-admin\";\nimport { useScheduler } from \"./useScheduler.js\";\nimport type { SchedulerEntry } from \"~/types.js\";\n\ninterface UseCancelScheduleItemParams {\n item: Pick<SchedulerEntry, \"id\" | \"title\" | \"actionType\">;\n}\n\nexport const useCancelSchedulerItem = ({ item }: UseCancelScheduleItemParams) => {\n const { cancelItem } = useScheduler();\n const { showSnackbar } = useSnackbar();\n\n const { showConfirmation } = useConfirmationDialog({\n title: \"Cancel scheduled action?\",\n message: (\n <p>\n You are about to cancel scheduled action for this item!\n <br />\n Are you sure you want to cancel scheduled <strong>{item.actionType}</strong> for{\" \"}\n <strong>{item.title}</strong>?\n </p>\n )\n });\n\n const openDialogCancelSchedulerItem = useCallback(\n () =>\n showConfirmation(async () => {\n try {\n await cancelItem(item.id);\n showSnackbar(`Action on item \"${item.title}\" was canceled successfully!`);\n } catch (ex) {\n showSnackbar(ex.message || `Error while canceling action for \"${item.title}\".`);\n }\n }),\n [item]\n );\n\n return { openDialogCancelSchedulerItem };\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,qBAAqB,EAAEC,WAAW,QAAQ,mBAAmB;AACtE,SAASC,YAAY;AAOrB,OAAO,MAAMC,sBAAsB,GAAGA,CAAC;EAAEC;AAAkC,CAAC,KAAK;EAC7E,MAAM;IAAEC;EAAW,CAAC,GAAGH,YAAY,CAAC,CAAC;EACrC,MAAM;IAAEI;EAAa,CAAC,GAAGL,WAAW,CAAC,CAAC;EAEtC,MAAM;IAAEM;EAAiB,CAAC,GAAGP,qBAAqB,CAAC;IAC/CQ,KAAK,EAAE,0BAA0B;IACjCC,OAAO,eACHX,KAAA,CAAAY,aAAA,YAAG,yDAEC,eAAAZ,KAAA,CAAAY,aAAA,WAAK,CAAC,8CACoC,eAAAZ,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACO,UAAmB,CAAC,QAAI,EAAC,GAAG,eACpFb,KAAA,CAAAY,aAAA,iBAASN,IAAI,CAACI,KAAc,CAAC,KAC9B;EAEX,CAAC,CAAC;EAEF,MAAMI,6BAA6B,GAAGb,WAAW,CAC7C,MACIQ,gBAAgB,CAAC,YAAY;IACzB,IAAI;MACA,MAAMF,UAAU,CAACD,IAAI,CAACS,EAAE,CAAC;MACzBP,YAAY,CAAC,mBAAmBF,IAAI,CAACI,KAAK,8BAA8B,CAAC;IAC7E,CAAC,CAAC,OAAOM,EAAE,EAAE;MACTR,YAAY,CAACQ,EAAE,CAACL,OAAO,IAAI,qCAAqCL,IAAI,CAACI,KAAK,IAAI,CAAC;IACnF;EACJ,CAAC,CAAC,EACN,CAACJ,IAAI,CACT,CAAC;EAED,OAAO;IAAEQ;EAA8B,CAAC;AAC5C,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-scheduler",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
"@emotion/react": "11.14.0",
|
|
14
14
|
"@emotion/styled": "11.14.1",
|
|
15
15
|
"@material-design-icons/svg": "0.14.15",
|
|
16
|
-
"@webiny/admin-ui": "6.
|
|
17
|
-
"@webiny/app-aco": "6.
|
|
18
|
-
"@webiny/app-admin": "6.
|
|
19
|
-
"@webiny/app-headless-cms-common": "6.
|
|
20
|
-
"@webiny/app-utils": "6.
|
|
21
|
-
"@webiny/form": "6.
|
|
22
|
-
"@webiny/icons": "6.
|
|
23
|
-
"@webiny/react-composition": "6.
|
|
24
|
-
"@webiny/react-properties": "6.
|
|
25
|
-
"@webiny/ui": "6.
|
|
26
|
-
"@webiny/utils": "6.
|
|
27
|
-
"@webiny/validation": "6.
|
|
16
|
+
"@webiny/admin-ui": "6.3.0-beta.0",
|
|
17
|
+
"@webiny/app-aco": "6.3.0-beta.0",
|
|
18
|
+
"@webiny/app-admin": "6.3.0-beta.0",
|
|
19
|
+
"@webiny/app-headless-cms-common": "6.3.0-beta.0",
|
|
20
|
+
"@webiny/app-utils": "6.3.0-beta.0",
|
|
21
|
+
"@webiny/form": "6.3.0-beta.0",
|
|
22
|
+
"@webiny/icons": "6.3.0-beta.0",
|
|
23
|
+
"@webiny/react-composition": "6.3.0-beta.0",
|
|
24
|
+
"@webiny/react-properties": "6.3.0-beta.0",
|
|
25
|
+
"@webiny/ui": "6.3.0-beta.0",
|
|
26
|
+
"@webiny/utils": "6.3.0-beta.0",
|
|
27
|
+
"@webiny/validation": "6.3.0-beta.0",
|
|
28
28
|
"apollo-client": "2.6.10",
|
|
29
29
|
"graphql-tag": "2.12.6",
|
|
30
30
|
"lodash": "4.18.1",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@emotion/babel-plugin": "11.13.5",
|
|
39
39
|
"@types/react": "18.3.28",
|
|
40
|
-
"@webiny/build-tools": "6.
|
|
40
|
+
"@webiny/build-tools": "6.3.0-beta.0",
|
|
41
41
|
"rimraf": "6.1.3",
|
|
42
|
-
"typescript": "
|
|
42
|
+
"typescript": "6.0.3"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"removeViewBox": false
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "94c21e58aebc9855bf1ae972423281faa0f5c135"
|
|
54
54
|
}
|