@antscorp/antsomi-ui 1.3.5-beta.550 → 1.3.5-beta.552
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.
|
@@ -221,7 +221,10 @@ export const Layout = memo(props => {
|
|
|
221
221
|
}), [activeMenu === null || activeMenu === void 0 ? void 0 : activeMenu.menu_item_name, portalId, userId]);
|
|
222
222
|
// Handle callback processing notification
|
|
223
223
|
const handleCallbackNotify = useCallback((type, data) => {
|
|
224
|
-
|
|
224
|
+
// If has callback from props then call it and return
|
|
225
|
+
if (antsProcessingNotificationConfig.callback) {
|
|
226
|
+
return antsProcessingNotificationConfig.callback(type, data);
|
|
227
|
+
}
|
|
225
228
|
switch (type) {
|
|
226
229
|
case 'forecast_name': {
|
|
227
230
|
const cdpDomain = CDP_ROUTE[env || 'development'];
|
|
@@ -243,7 +246,6 @@ export const Layout = memo(props => {
|
|
|
243
246
|
break;
|
|
244
247
|
}
|
|
245
248
|
}
|
|
246
|
-
(_a = antsProcessingNotificationConfig.callback) === null || _a === void 0 ? void 0 : _a.call(antsProcessingNotificationConfig, type, data);
|
|
247
249
|
}, [antsProcessingNotificationConfig, env]);
|
|
248
250
|
return (React.createElement(LayoutWrapper, { showLeftMenu: !!showLeftMenu },
|
|
249
251
|
React.createElement(Helmet, null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antscorp/antsomi-ui",
|
|
3
|
-
"version": "1.3.5-beta.
|
|
3
|
+
"version": "1.3.5-beta.552",
|
|
4
4
|
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"dist/*",
|
|
@@ -39,9 +39,10 @@
|
|
|
39
39
|
"test:coverage": "yarn test:clean && yarn jest --coverage",
|
|
40
40
|
"ts-compile": "tsc -p tsconfig.esm.json",
|
|
41
41
|
"copy-files": "copyfiles -u 1 src/**/*.json src/**/*.svg src/**/*.scss src/**/*.png es",
|
|
42
|
-
"add
|
|
43
|
-
"export
|
|
44
|
-
"format
|
|
42
|
+
"icons:add": "tsx scripts/add-icons.ts",
|
|
43
|
+
"icons:export": "tsx scripts/generate-export-icons.ts",
|
|
44
|
+
"icons:format": "prettier --write \"src/components/icons/*.tsx\"",
|
|
45
|
+
"icons:update": "sh -e scripts/update-icons.sh"
|
|
45
46
|
},
|
|
46
47
|
"husky": {
|
|
47
48
|
"hooks": {
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
"@fortawesome/free-regular-svg-icons": "6.1.1",
|
|
75
76
|
"@fortawesome/free-solid-svg-icons": "6.1.1",
|
|
76
77
|
"@fortawesome/react-fontawesome": "0.2.0",
|
|
77
|
-
"@storybook/test": "^8.
|
|
78
|
+
"@storybook/test": "^8.2.4",
|
|
78
79
|
"@swiper/core": "^0.0.21",
|
|
79
80
|
"@tanstack/react-query": "4.20.4",
|
|
80
81
|
"@tanstack/react-query-devtools": "4.20.4",
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
"react-virtualized-auto-sizer": "^1.0.24",
|
|
123
124
|
"react-window": "^1.8.10",
|
|
124
125
|
"rehype-highlight": "^6.0.0",
|
|
125
|
-
"remark-gfm": "^
|
|
126
|
+
"remark-gfm": "^4.0.0",
|
|
126
127
|
"socket.io-client": "^4.7.5",
|
|
127
128
|
"swiper": "^11.0.7",
|
|
128
129
|
"ts-dedent": "^2.2.0",
|
|
@@ -152,18 +153,19 @@
|
|
|
152
153
|
"@babel/preset-typescript": "^7.23.3",
|
|
153
154
|
"@commitlint/cli": "17.5.0",
|
|
154
155
|
"@commitlint/config-conventional": "17.4.4",
|
|
155
|
-
"@storybook/addon-actions": "8.
|
|
156
|
-
"@storybook/addon-controls": "8.
|
|
157
|
-
"@storybook/addon-
|
|
158
|
-
"@storybook/addon-
|
|
159
|
-
"@storybook/addon-
|
|
156
|
+
"@storybook/addon-actions": "^8.2.4",
|
|
157
|
+
"@storybook/addon-controls": "^8.2.4",
|
|
158
|
+
"@storybook/addon-docs": "^8.2.4",
|
|
159
|
+
"@storybook/addon-essentials": "^8.2.4",
|
|
160
|
+
"@storybook/addon-interactions": "^8.2.4",
|
|
161
|
+
"@storybook/addon-links": "^8.2.4",
|
|
160
162
|
"@storybook/addon-styling-webpack": "^1.0.0",
|
|
161
163
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
162
|
-
"@storybook/blocks": "8.
|
|
163
|
-
"@storybook/manager-api": "8.
|
|
164
|
-
"@storybook/react": "8.
|
|
165
|
-
"@storybook/react-webpack5": "8.
|
|
166
|
-
"@storybook/theming": "8.
|
|
164
|
+
"@storybook/blocks": "^8.2.4",
|
|
165
|
+
"@storybook/manager-api": "^8.2.4",
|
|
166
|
+
"@storybook/react": "^8.2.4",
|
|
167
|
+
"@storybook/react-webpack5": "^8.2.4",
|
|
168
|
+
"@storybook/theming": "^8.2.4",
|
|
167
169
|
"@testing-library/jest-dom": "^5.16.5",
|
|
168
170
|
"@testing-library/react": "^14.0.0",
|
|
169
171
|
"@types/jest": "^29.5.0",
|
|
@@ -218,7 +220,7 @@
|
|
|
218
220
|
"react-router-dom": "5.1.0 || 6.14.2",
|
|
219
221
|
"sass": "^1.60.0",
|
|
220
222
|
"sass-loader": "^13.2.2",
|
|
221
|
-
"storybook": "^8.
|
|
223
|
+
"storybook": "^8.2.4",
|
|
222
224
|
"style-loader": "^3.3.2",
|
|
223
225
|
"styled-components": "^5.3.9",
|
|
224
226
|
"terser-webpack-plugin": "^5.3.7",
|