@lark-apaas/client-toolkit 1.2.10-alpha.12 → 1.2.10-alpha.14

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.
@@ -67,8 +67,7 @@ const UserSelect = ({ mode = 'single', defaultValue, value, onChange, placeholde
67
67
  if (!normalizedIds.length) return void setUiValue(void 0);
68
68
  const fetchProfiles = async ()=>{
69
69
  try {
70
- const ids = normalizedIds.map((id)=>Number(id)).filter((id)=>Number.isFinite(id));
71
- if (!ids.length) {
70
+ if (!normalizedIds.length) {
72
71
  const profiles = normalizedIds.map((id)=>inputProfilesMap.get(id) ?? {
73
72
  user_id: id,
74
73
  name: '',
@@ -80,7 +79,7 @@ const UserSelect = ({ mode = 'single', defaultValue, value, onChange, placeholde
80
79
  return;
81
80
  }
82
81
  const dataloom = await getDataloom();
83
- const response = await dataloom.service.user.getByIds(ids);
82
+ const response = await dataloom.service.user.getByIds(normalizedIds);
84
83
  const fetchedList = Array.isArray(response?.data) ? response?.data : Array.isArray(response?.data?.user_list) ? response?.data?.user_list : [];
85
84
  const fetchedMap = new Map();
86
85
  fetchedList.forEach((profile)=>{
@@ -1,4 +1,3 @@
1
1
  @layer theme, base, antd, components, utilities;
2
- @import 'tailwindcss' source(none);
3
- @source "../**/*.{js,jsx,ts,tsx}";
2
+ @import "tailwindcss";
4
3
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/client-toolkit",
3
- "version": "1.2.10-alpha.12",
3
+ "version": "1.2.10-alpha.14",
4
4
  "types": "./lib/index.d.ts",
5
5
  "main": "./lib/index.js",
6
6
  "files": [
@@ -87,12 +87,13 @@
87
87
  "storybook": "storybook dev",
88
88
  "test": "vitest",
89
89
  "lint": "eslint src --ext .js,.jsx,.ts,.tsx",
90
- "lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix"
90
+ "lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
91
+ "prepublishOnly": "npm run build && node scripts/replace-workspace-alias.js"
91
92
  },
92
93
  "dependencies": {
93
94
  "@ant-design/colors": "^7.2.1",
94
95
  "@ant-design/cssinjs": "^1.24.0",
95
- "@data-loom/js": "0.4.4-alpha.10",
96
+ "@data-loom/js": "0.4.4-slardar-alpha.3",
96
97
  "@lark-apaas/auth-sdk": "^0.1.0",
97
98
  "@lark-apaas/client-capability": "^0.1.3",
98
99
  "@lark-apaas/miaoda-inspector": "^1.0.13",