@antscorp/antsomi-ui 1.3.5-beta.70 → 1.3.5-beta.72

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.
@@ -1,3 +1,2 @@
1
- // export { Menu as AntdMenu } from 'antd';
2
1
  import AntdMenu from 'antd/es/menu';
3
2
  export default AntdMenu;
@@ -1,3 +1 @@
1
- // import { Menu as AntdMenu } from './Menu';
2
- // export const Menu = AntdMenu;
3
1
  export { default as Menu } from './Menu';
@@ -25,6 +25,11 @@ export const MenuWrapper = styled.div `
25
25
  height: 100%;
26
26
  }
27
27
  }
28
+
29
+ .antsomi-menu-submenu-title,
30
+ .ant-menu-submenu-title {
31
+ height: 30px !important;
32
+ }
28
33
  }
29
34
 
30
35
  .category-loading {
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  // Libraries
11
11
  import { useInfiniteQuery, useMutation, useQuery, useQueryClient, } from '@tanstack/react-query';
12
- import { omit } from 'lodash';
12
+ import { get, omit } from 'lodash';
13
13
  // Services
14
14
  import { templateListingServices, } from '@antscorp/antsomi-ui/es/services/TemplateListing';
15
15
  // Constants
@@ -36,7 +36,7 @@ export const useGetObjectTemplateList = (params) => {
36
36
  };
37
37
  export const useGetObjectTemplateDetail = (params) => {
38
38
  const { args, options } = params;
39
- return useQuery(Object.assign({ queryKey: [QUERY_KEYS.GET_OBJECT_TEMPLATE_DETAIL, args.params.template_id], queryFn: () => objectTemplate.getDetail(args), enabled: !!args.params.template_id }, options));
39
+ return useQuery(Object.assign({ queryKey: [QUERY_KEYS.GET_OBJECT_TEMPLATE_DETAIL, +args.params.template_id], queryFn: () => objectTemplate.getDetail(args), enabled: !!args.params.template_id }, options));
40
40
  };
41
41
  export const useValidateTemplateName = (params) => {
42
42
  const { options } = params;
@@ -91,10 +91,9 @@ export const usePersistTemplate = (params) => {
91
91
  return objectTemplate.create(Object.assign(Object.assign({}, params), { data: omit(params.data, ['template_id']) }));
92
92
  }
93
93
  }, onSettled(data, error, variables) {
94
- queryClient.invalidateQueries([
95
- QUERY_KEYS.GET_OBJECT_TEMPLATE_DETAIL,
96
- variables.params.data.template_id,
97
- ]);
94
+ queryClient.invalidateQueries([QUERY_KEYS.GET_OBJECT_TEMPLATE_DETAIL, +get(variables, 'params.data.template_id', -1)], {
95
+ exact: false,
96
+ });
98
97
  queryClient.invalidateQueries([QUERY_KEYS.GET_OBJECT_TEMPLATE_LIST], {
99
98
  exact: false,
100
99
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.70",
3
+ "version": "1.3.5-beta.72",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",