@webiny/app-scheduler 6.5.0-beta.3 → 6.5.0-beta.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-scheduler",
3
- "version": "6.5.0-beta.3",
3
+ "version": "6.5.0-beta.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -16,28 +16,28 @@
16
16
  "@emotion/react": "11.14.0",
17
17
  "@emotion/styled": "11.14.1",
18
18
  "@material-design-icons/svg": "0.14.15",
19
- "@webiny/admin-ui": "6.5.0-beta.3",
20
- "@webiny/app": "6.5.0-beta.3",
21
- "@webiny/app-aco": "6.5.0-beta.3",
22
- "@webiny/app-admin": "6.5.0-beta.3",
23
- "@webiny/app-headless-cms-common": "6.5.0-beta.3",
24
- "@webiny/feature": "6.5.0-beta.3",
25
- "@webiny/form": "6.5.0-beta.3",
26
- "@webiny/icons": "6.5.0-beta.3",
27
- "@webiny/react-composition": "6.5.0-beta.3",
28
- "@webiny/react-properties": "6.5.0-beta.3",
29
- "@webiny/utils": "6.5.0-beta.3",
30
- "@webiny/validation": "6.5.0-beta.3",
19
+ "@webiny/admin-ui": "6.5.0-beta.5",
20
+ "@webiny/app": "6.5.0-beta.5",
21
+ "@webiny/app-aco": "6.5.0-beta.5",
22
+ "@webiny/app-admin": "6.5.0-beta.5",
23
+ "@webiny/app-headless-cms-common": "6.5.0-beta.5",
24
+ "@webiny/feature": "6.5.0-beta.5",
25
+ "@webiny/form": "6.5.0-beta.5",
26
+ "@webiny/icons": "6.5.0-beta.5",
27
+ "@webiny/react-composition": "6.5.0-beta.5",
28
+ "@webiny/react-properties": "6.5.0-beta.5",
29
+ "@webiny/utils": "6.5.0-beta.5",
30
+ "@webiny/validation": "6.5.0-beta.5",
31
31
  "lodash": "4.18.1",
32
- "mobx": "6.16.1",
33
- "mobx-react-lite": "4.1.1",
32
+ "mobx": "7.0.5",
33
+ "mobx-react-lite": "5.1.0",
34
34
  "react": "18.3.1",
35
35
  "react-dom": "18.3.1",
36
- "zod": "4.4.3"
36
+ "zod": "4.6.5"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/react": "18.3.31",
40
- "@webiny/build-tools": "6.5.0-beta.3",
40
+ "@webiny/build-tools": "6.5.0-beta.5",
41
41
  "rimraf": "6.1.3",
42
42
  "typescript": "7.0.2"
43
43
  },
@@ -1 +1 @@
1
- {"version":3,"file":"presentation/hooks/useCancelSchedulerItem.js","sources":["../../../src/presentation/hooks/useCancelSchedulerItem.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useConfirmationDialog } from \"@webiny/app-admin\";\nimport type { SchedulerEntry } from \"~/types.js\";\nimport { useSchedulerListPresenter } from \"~/presentation/schedulerList/useSchedulerListPresenter.js\";\nimport { useToast } from \"@webiny/admin-ui\";\n\ninterface UseCancelScheduleItemParams {\n item: Pick<SchedulerEntry, \"id\" | \"title\" | \"actionType\">;\n}\n\nexport const useCancelSchedulerItem = ({ item }: UseCancelScheduleItemParams) => {\n const presenter = useSchedulerListPresenter();\n const toast = useToast();\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 presenter.cancelItem(item.id);\n toast.showSuccessToast({\n title: `Action on item \"${item.title}\" was canceled successfully!`\n });\n } catch (ex) {\n toast.showWarningToast({\n title: ex.message || `Error while canceling action for \"${item.title}\".`\n });\n }\n }),\n [item]\n );\n\n return { openDialogCancelSchedulerItem };\n};\n"],"names":["useCancelSchedulerItem","item","presenter","useSchedulerListPresenter","toast","useToast","showConfirmation","useConfirmationDialog","openDialogCancelSchedulerItem","useCallback","ex"],"mappings":";;;;AAUO,MAAMA,yBAAyB,CAAC,EAAEC,IAAI,EAA+B;IACxE,MAAMC,YAAYC;IAClB,MAAMC,QAAQC;IAEd,MAAM,EAAEC,gBAAgB,EAAE,GAAGC,sBAAsB;QAC/C,OAAO;QACP,SAAS,WAAT,GACI,oBAAC,WAAE,yEAEC,oBAAC,aAAK,4DACoC,oBAAC,gBAAQN,KAAK,UAAU,GAAU,QAAK,mBACjF,oBAAC,gBAAQA,KAAK,KAAK,GAAU;IAGzC;IAEA,MAAMO,gCAAgCC,YAClC,IACIH,iBAAiB;YACb,IAAI;gBACA,MAAMJ,UAAU,UAAU,CAACD,KAAK,EAAE;gBAClCG,MAAM,gBAAgB,CAAC;oBACnB,OAAO,CAAC,gBAAgB,EAAEH,KAAK,KAAK,CAAC,4BAA4B,CAAC;gBACtE;YACJ,EAAE,OAAOS,IAAI;gBACTN,MAAM,gBAAgB,CAAC;oBACnB,OAAOM,GAAG,OAAO,IAAI,CAAC,kCAAkC,EAAET,KAAK,KAAK,CAAC,EAAE,CAAC;gBAC5E;YACJ;QACJ,IACJ;QAACA;KAAK;IAGV,OAAO;QAAEO;IAA8B;AAC3C"}
1
+ {"version":3,"file":"presentation/hooks/useCancelSchedulerItem.js","sources":["../../../src/presentation/hooks/useCancelSchedulerItem.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useConfirmationDialog } from \"@webiny/app-admin\";\nimport type { SchedulerEntry } from \"~/types.js\";\nimport { useSchedulerListPresenter } from \"~/presentation/schedulerList/useSchedulerListPresenter.js\";\nimport { useToast } from \"@webiny/admin-ui\";\n\ninterface UseCancelScheduleItemParams {\n item: Pick<SchedulerEntry, \"id\" | \"title\" | \"actionType\">;\n}\n\nexport const useCancelSchedulerItem = ({ item }: UseCancelScheduleItemParams) => {\n const presenter = useSchedulerListPresenter();\n const toast = useToast();\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>\n {item.actionType}\n </strong> for{\" \"}\n <strong>{item.title}</strong>?\n </p>\n )\n });\n\n const openDialogCancelSchedulerItem = useCallback(\n () =>\n showConfirmation(async () => {\n try {\n await presenter.cancelItem(item.id);\n toast.showSuccessToast({\n title: `Action on item \"${item.title}\" was canceled successfully!`\n });\n } catch (ex) {\n toast.showWarningToast({\n title: ex.message || `Error while canceling action for \"${item.title}\".`\n });\n }\n }),\n [item]\n );\n\n return { openDialogCancelSchedulerItem };\n};\n"],"names":["useCancelSchedulerItem","item","presenter","useSchedulerListPresenter","toast","useToast","showConfirmation","useConfirmationDialog","openDialogCancelSchedulerItem","useCallback","ex"],"mappings":";;;;AAUO,MAAMA,yBAAyB,CAAC,EAAEC,IAAI,EAA+B;IACxE,MAAMC,YAAYC;IAClB,MAAMC,QAAQC;IAEd,MAAM,EAAEC,gBAAgB,EAAE,GAAGC,sBAAsB;QAC/C,OAAO;QACP,SAAS,WAAT,GACI,oBAAC,WAAE,yEAEC,oBAAC,aAAK,4DACoC,oBAAC,gBACtCN,KAAK,UAAU,GACX,QAAK,mBACd,oBAAC,gBAAQA,KAAK,KAAK,GAAU;IAGzC;IAEA,MAAMO,gCAAgCC,YAClC,IACIH,iBAAiB;YACb,IAAI;gBACA,MAAMJ,UAAU,UAAU,CAACD,KAAK,EAAE;gBAClCG,MAAM,gBAAgB,CAAC;oBACnB,OAAO,CAAC,gBAAgB,EAAEH,KAAK,KAAK,CAAC,4BAA4B,CAAC;gBACtE;YACJ,EAAE,OAAOS,IAAI;gBACTN,MAAM,gBAAgB,CAAC;oBACnB,OAAOM,GAAG,OAAO,IAAI,CAAC,kCAAkC,EAAET,KAAK,KAAK,CAAC,EAAE,CAAC;gBAC5E;YACJ;QACJ,IACJ;QAACA;KAAK;IAGV,OAAO;QAAEO;IAA8B;AAC3C"}
@@ -4,7 +4,7 @@ interface ICancelButtonComponentProps {
4
4
  presenter: IScheduleDialogPresenter;
5
5
  onCancel: () => Promise<void>;
6
6
  }
7
- export declare const CancelButtonComponent: (({ presenter, onCancel }: ICancelButtonComponentProps) => React.JSX.Element | null) & {
8
- displayName: string;
7
+ export declare const CancelButtonComponent: (({ presenter, onCancel }: ICancelButtonComponentProps) => React.JSX.Element | null) & React.NamedExoticComponent<ICancelButtonComponentProps> & {
8
+ readonly type: ({ presenter, onCancel }: ICancelButtonComponentProps) => React.JSX.Element | null;
9
9
  };
10
10
  export {};
@@ -3,7 +3,7 @@ import type { IScheduleDialogPresenter } from "../abstractions.js";
3
3
  interface FormComponentProps {
4
4
  presenter: IScheduleDialogPresenter;
5
5
  }
6
- export declare const FormComponent: (({ presenter }: FormComponentProps) => React.JSX.Element) & {
7
- displayName: string;
6
+ export declare const FormComponent: (({ presenter }: FormComponentProps) => React.JSX.Element) & React.NamedExoticComponent<FormComponentProps> & {
7
+ readonly type: ({ presenter }: FormComponentProps) => React.JSX.Element;
8
8
  };
9
9
  export {};
@@ -3,7 +3,7 @@ import type { ISchedulerListPresenter } from "../abstractions.js";
3
3
  interface BottomInfoBarProps {
4
4
  presenter: ISchedulerListPresenter;
5
5
  }
6
- export declare const BottomInfoBar: (({ presenter }: BottomInfoBarProps) => React.JSX.Element) & {
7
- displayName: string;
6
+ export declare const BottomInfoBar: (({ presenter }: BottomInfoBarProps) => React.JSX.Element) & React.NamedExoticComponent<BottomInfoBarProps> & {
7
+ readonly type: ({ presenter }: BottomInfoBarProps) => React.JSX.Element;
8
8
  };
9
9
  export {};
@@ -3,7 +3,7 @@ import type { ISchedulerListPresenter } from "../abstractions.js";
3
3
  interface EmptyProps {
4
4
  presenter: ISchedulerListPresenter;
5
5
  }
6
- export declare const Empty: (({ presenter }: EmptyProps) => React.JSX.Element) & {
7
- displayName: string;
6
+ export declare const Empty: (({ presenter }: EmptyProps) => React.JSX.Element) & React.NamedExoticComponent<EmptyProps> & {
7
+ readonly type: ({ presenter }: EmptyProps) => React.JSX.Element;
8
8
  };
9
9
  export {};
@@ -5,7 +5,7 @@ interface SchedulerOverlayProps {
5
5
  title: string;
6
6
  onExited: () => void;
7
7
  }
8
- export declare const SchedulerOverlay: (({ presenter, title, onExited }: SchedulerOverlayProps) => React.JSX.Element) & {
9
- displayName: string;
8
+ export declare const SchedulerOverlay: (({ presenter, title, onExited }: SchedulerOverlayProps) => React.JSX.Element) & React.NamedExoticComponent<SchedulerOverlayProps> & {
9
+ readonly type: ({ presenter, title, onExited }: SchedulerOverlayProps) => React.JSX.Element;
10
10
  };
11
11
  export {};
@@ -3,7 +3,7 @@ import type { ISchedulerListPresenter } from "../abstractions.js";
3
3
  interface SchedulerTableProps {
4
4
  presenter: ISchedulerListPresenter;
5
5
  }
6
- export declare const SchedulerTable: (({ presenter }: SchedulerTableProps) => React.JSX.Element) & {
7
- displayName: string;
6
+ export declare const SchedulerTable: (({ presenter }: SchedulerTableProps) => React.JSX.Element) & React.NamedExoticComponent<SchedulerTableProps> & {
7
+ readonly type: ({ presenter }: SchedulerTableProps) => React.JSX.Element;
8
8
  };
9
9
  export {};
@@ -3,7 +3,7 @@ import type { ISchedulerListPresenter } from "../abstractions.js";
3
3
  interface SearchInputProps {
4
4
  presenter: ISchedulerListPresenter;
5
5
  }
6
- export declare const SearchInput: (({ presenter }: SearchInputProps) => React.JSX.Element) & {
7
- displayName: string;
6
+ export declare const SearchInput: (({ presenter }: SearchInputProps) => React.JSX.Element) & React.NamedExoticComponent<SearchInputProps> & {
7
+ readonly type: ({ presenter }: SearchInputProps) => React.JSX.Element;
8
8
  };
9
9
  export {};