@tachybase/module-acl 1.3.10 → 1.3.11

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,19 +1,19 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.3.10",
4
- "@tachybase/schema": "1.3.10",
3
+ "@tachybase/client": "1.3.11",
4
+ "@tachybase/schema": "1.3.11",
5
5
  "antd": "5.22.5",
6
6
  "@ant-design/icons": "5.5.2",
7
7
  "react-i18next": "15.2.0",
8
- "@tachybase/utils": "1.3.10",
9
- "@tachybase/actions": "1.3.10",
10
- "@tachybase/cache": "1.3.10",
11
- "@tachybase/database": "1.3.10",
12
- "@tachybase/server": "1.3.10",
8
+ "@tachybase/utils": "1.3.11",
9
+ "@tachybase/actions": "1.3.11",
10
+ "@tachybase/cache": "1.3.11",
11
+ "@tachybase/database": "1.3.11",
12
+ "@tachybase/server": "1.3.11",
13
13
  "async-mutex": "0.3.2",
14
14
  "lodash": "4.17.21",
15
- "@tachybase/test": "1.3.10",
15
+ "@tachybase/test": "1.3.11",
16
16
  "ahooks": "3.8.4",
17
- "@tachybase/components": "1.3.10",
18
- "@tachybase/acl": "1.3.10"
17
+ "@tachybase/components": "1.3.11",
18
+ "@tachybase/acl": "1.3.11"
19
19
  };
@@ -121,7 +121,7 @@ function createWithACLMetaMiddleware() {
121
121
  if (collection.options.tree) {
122
122
  if (listData.length === 0) return [];
123
123
  const getAllNodeIds = (data) => [data[primaryKeyField], ...(data.children || []).flatMap(getAllNodeIds)];
124
- return listData.map((tree) => getAllNodeIds(tree.toJSON())).flat();
124
+ return listData.map((tree) => getAllNodeIds(tree.toJSON ? tree.toJSON() : tree)).flat();
125
125
  }
126
126
  return listData.filter(Boolean).map((item) => item[primaryKeyField]);
127
127
  })();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/module-acl",
3
3
  "displayName": "Access control",
4
- "version": "1.3.10",
4
+ "version": "1.3.11",
5
5
  "description": "Based on roles, resources, and actions, access control can precisely manage interface configuration permissions, data operation permissions, menu access permissions, and plugin permissions.",
6
6
  "keywords": [
7
7
  "Users & permissions"
@@ -20,18 +20,18 @@
20
20
  "react": "^18.3.1",
21
21
  "react-dom": "^18.3.1",
22
22
  "react-i18next": "^15.2.0",
23
- "@tachybase/components": "1.3.10",
24
- "@tachybase/schema": "1.3.10"
23
+ "@tachybase/components": "1.3.11",
24
+ "@tachybase/schema": "1.3.11"
25
25
  },
26
26
  "peerDependencies": {
27
- "@tachybase/acl": "1.3.10",
28
- "@tachybase/actions": "1.3.10",
29
- "@tachybase/database": "1.3.10",
30
- "@tachybase/cache": "1.3.10",
31
- "@tachybase/client": "1.3.10",
32
- "@tachybase/server": "1.3.10",
33
- "@tachybase/test": "1.3.10",
34
- "@tachybase/utils": "1.3.10"
27
+ "@tachybase/acl": "1.3.11",
28
+ "@tachybase/actions": "1.3.11",
29
+ "@tachybase/cache": "1.3.11",
30
+ "@tachybase/client": "1.3.11",
31
+ "@tachybase/database": "1.3.11",
32
+ "@tachybase/test": "1.3.11",
33
+ "@tachybase/server": "1.3.11",
34
+ "@tachybase/utils": "1.3.11"
35
35
  },
36
36
  "description.zh-CN": "基于角色、资源和操作的权限控制,可以精确控制界面配置权限、数据操作权限、菜单访问权限、插件权限。",
37
37
  "displayName.zh-CN": "权限控制",