ag-common 0.0.711 → 0.0.713

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.
@@ -28,6 +28,7 @@ const sendEmail = (_a) => __awaiter(void 0, [_a], void 0, function* ({ to, messa
28
28
  (0, exports.setSes)(sourceArnRegion);
29
29
  }
30
30
  const ishtml = message.startsWith('<!DOCTYPE HTML') || message.startsWith('<html');
31
+ (0, log_1.warn)('sending email. html=' + ishtml);
31
32
  yield exports.ses.send(new client_ses_1.SendEmailCommand({
32
33
  Destination: {
33
34
  CcAddresses: [],
@@ -15,6 +15,7 @@ keyF,
15
15
  */
16
16
  valueF) => {
17
17
  const ret = {};
18
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
18
19
  if (!arr || !keyF) {
19
20
  return ret;
20
21
  }
@@ -38,8 +38,13 @@ const ConfirmDialog = (_a) => __awaiter(void 0, [_a], void 0, function* ({ botto
38
38
  res(v);
39
39
  }
40
40
  finally {
41
- root.unmount();
42
- wrapper.remove();
41
+ try {
42
+ root.unmount();
43
+ wrapper.remove();
44
+ }
45
+ catch (e) {
46
+ //
47
+ }
43
48
  }
44
49
  };
45
50
  root.render(react_1.default.createElement(Modal_1.ConfirmModal, { bottomText: bottomText, topText: topText, onSubmit: onSubmit, style: style }));
@@ -71,8 +71,13 @@ const PromptModal = ({ root, wrapper, res, bottomText, topText, okText = 'OK', c
71
71
  res(v);
72
72
  }
73
73
  finally {
74
- root === null || root === void 0 ? void 0 : root.unmount();
75
- wrapper === null || wrapper === void 0 ? void 0 : wrapper.remove();
74
+ try {
75
+ root === null || root === void 0 ? void 0 : root.unmount();
76
+ wrapper === null || wrapper === void 0 ? void 0 : wrapper.remove();
77
+ }
78
+ catch (e) {
79
+ //
80
+ }
76
81
  }
77
82
  };
78
83
  return (react_1.default.createElement(Modal_1.Modal, { position: "center", topPosition: "center", open: true, setOpen: () => ret(undefined), showCloseButton: false, closeOnClickOutside: false },
@@ -45,8 +45,13 @@ const SearchDialog = (p) => __awaiter(void 0, void 0, void 0, function* () {
45
45
  res(f);
46
46
  }
47
47
  finally {
48
- root.unmount();
49
- wrapper.remove();
48
+ try {
49
+ root.unmount();
50
+ wrapper.remove();
51
+ }
52
+ catch (e) {
53
+ //
54
+ }
50
55
  }
51
56
  } })));
52
57
  });
@@ -117,6 +117,11 @@ const Toast = ({ toast, close, style, }) => {
117
117
  icon = react_1.default.createElement(Warning_1.Warning, null);
118
118
  break;
119
119
  }
120
+ case 'success':
121
+ default: {
122
+ icon = react_1.default.createElement(Tick_1.Tick, null);
123
+ break;
124
+ }
120
125
  }
121
126
  (0, react_1.useEffect)(() => {
122
127
  if (!closeMs) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.711",
2
+ "version": "0.0.713",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
@@ -39,32 +39,32 @@
39
39
  "typescript": "^5"
40
40
  },
41
41
  "devDependencies": {
42
- "@babel/core": "7.24.5",
43
- "@babel/preset-typescript": "7.24.1",
44
- "@babel/types": "7.24.5",
42
+ "@babel/core": "7.24.7",
43
+ "@babel/preset-typescript": "7.24.7",
44
+ "@babel/types": "7.24.7",
45
45
  "@emotion/react": "11.11.4",
46
46
  "@emotion/styled": "11.11.5",
47
47
  "@smithy/types": "2.12.0",
48
- "@storybook/addon-actions": "8.0.10",
49
- "@storybook/addon-docs": "8.0.10",
50
- "@storybook/addon-essentials": "8.0.10",
51
- "@storybook/addon-interactions": "8.0.10",
52
- "@storybook/addon-links": "8.0.10",
53
- "@storybook/addon-webpack5-compiler-swc": "1.0.2",
48
+ "@storybook/addon-actions": "8.1.6",
49
+ "@storybook/addon-docs": "8.1.6",
50
+ "@storybook/addon-essentials": "8.1.6",
51
+ "@storybook/addon-interactions": "8.1.6",
52
+ "@storybook/addon-links": "8.1.6",
53
+ "@storybook/addon-webpack5-compiler-swc": "1.0.3",
54
54
  "@storybook/addons": "7.6.17",
55
- "@storybook/react": "8.0.10",
56
- "@storybook/react-webpack5": "8.0.10",
57
- "@storybook/theming": "8.0.10",
55
+ "@storybook/react": "8.1.6",
56
+ "@storybook/react-webpack5": "8.1.6",
57
+ "@storybook/theming": "8.1.6",
58
58
  "@types/jsonwebtoken": "9.0.6",
59
- "@types/node": "20.12.11",
60
- "@types/react": "18.3.2",
59
+ "@types/node": "20.14.2",
60
+ "@types/react": "18.3.3",
61
61
  "@types/react-dom": "18.3.0",
62
62
  "cross-env": "7.0.3",
63
63
  "eslint-config-e7npm": "0.0.102",
64
64
  "globstar": "1.0.0",
65
- "rimraf": "5.0.6",
66
- "storybook": "8.0.10",
67
- "tsx": "4.9.4"
65
+ "rimraf": "5.0.7",
66
+ "storybook": "8.1.6",
67
+ "tsx": "4.12.0"
68
68
  },
69
69
  "files": [
70
70
  "dist/**/*",