@blueking/bk-user-selector 0.1.1-beta.1 → 0.1.1-beta.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/bk-user-selector",
3
- "version": "0.1.1-beta.1",
3
+ "version": "0.1.1-beta.2",
4
4
  "description": "蓝鲸用户选择器",
5
5
  "license": "MIT",
6
6
  "author": "Tencent BlueKing",
@@ -12673,8 +12673,7 @@ const languageMap = {
12673
12673
  "zh-CN": zhCN
12674
12674
  };
12675
12675
  const getPath = (obj, path, variables) => {
12676
- const safePath = typeof path === "string" ? path : String(path ?? "");
12677
- const pathStack = /^\w/.test(safePath) ? safePath.split(".") : [safePath];
12676
+ const pathStack = /^\w/.test(path) ? path.split(".") : [path];
12678
12677
  const { length } = pathStack;
12679
12678
  let target = obj;
12680
12679
  let i2 = 0;
@@ -12947,7 +12946,7 @@ const useUserSearch = (apiBaseUrl, tenantId, enableMultiTenantMode = true) => {
12947
12946
  const debouncedSearch = debounce(performSearch, SEARCH_DEBOUNCE_DELAY);
12948
12947
  const handleSearchInput = (value) => {
12949
12948
  loading2.value = true;
12950
- searchQuery.value = typeof value === "string" ? value.trim() : String(value ?? "").trim();
12949
+ searchQuery.value = value.trim();
12951
12950
  debouncedSearch(searchQuery.value);
12952
12951
  };
12953
12952
  const clearSearch = () => {
@@ -19365,8 +19365,7 @@ ${$(r2)}`), n2;
19365
19365
  "zh-CN": zhCN
19366
19366
  };
19367
19367
  const getPath = (obj, path, variables) => {
19368
- const safePath = typeof path === "string" ? path : String(path ?? "");
19369
- const pathStack = /^\w/.test(safePath) ? safePath.split(".") : [safePath];
19368
+ const pathStack = /^\w/.test(path) ? path.split(".") : [path];
19370
19369
  const { length } = pathStack;
19371
19370
  let target = obj;
19372
19371
  let i2 = 0;
@@ -19639,7 +19638,7 @@ ${$(r2)}`), n2;
19639
19638
  const debouncedSearch = debounce(performSearch, SEARCH_DEBOUNCE_DELAY);
19640
19639
  const handleSearchInput = (value) => {
19641
19640
  loading2.value = true;
19642
- searchQuery.value = typeof value === "string" ? value.trim() : String(value ?? "").trim();
19641
+ searchQuery.value = value.trim();
19643
19642
  debouncedSearch(searchQuery.value);
19644
19643
  };
19645
19644
  const clearSearch = () => {
@@ -12695,8 +12695,7 @@ ${$(r2)}`), n2;
12695
12695
  "zh-CN": zhCN
12696
12696
  };
12697
12697
  const getPath = (obj, path, variables) => {
12698
- const safePath = typeof path === "string" ? path : String(path ?? "");
12699
- const pathStack = /^\w/.test(safePath) ? safePath.split(".") : [safePath];
12698
+ const pathStack = /^\w/.test(path) ? path.split(".") : [path];
12700
12699
  const { length } = pathStack;
12701
12700
  let target = obj;
12702
12701
  let i2 = 0;
@@ -12969,7 +12968,7 @@ ${$(r2)}`), n2;
12969
12968
  const debouncedSearch = debounce(performSearch, SEARCH_DEBOUNCE_DELAY);
12970
12969
  const handleSearchInput = (value) => {
12971
12970
  loading2.value = true;
12972
- searchQuery.value = typeof value === "string" ? value.trim() : String(value ?? "").trim();
12971
+ searchQuery.value = value.trim();
12973
12972
  debouncedSearch(searchQuery.value);
12974
12973
  };
12975
12974
  const clearSearch = () => {
@@ -3126,8 +3126,7 @@ const languageMap = {
3126
3126
  "zh-CN": zhCN
3127
3127
  };
3128
3128
  const getPath = (obj, path, variables) => {
3129
- const safePath = typeof path === "string" ? path : String(path ?? "");
3130
- const pathStack = /^\w/.test(safePath) ? safePath.split(".") : [safePath];
3129
+ const pathStack = /^\w/.test(path) ? path.split(".") : [path];
3131
3130
  const { length } = pathStack;
3132
3131
  let target = obj;
3133
3132
  let i = 0;
@@ -3400,7 +3399,7 @@ const useUserSearch = (apiBaseUrl, tenantId, enableMultiTenantMode = true) => {
3400
3399
  const debouncedSearch = debounce(performSearch, SEARCH_DEBOUNCE_DELAY);
3401
3400
  const handleSearchInput = (value) => {
3402
3401
  loading.value = true;
3403
- searchQuery.value = typeof value === "string" ? value.trim() : String(value ?? "").trim();
3402
+ searchQuery.value = value.trim();
3404
3403
  debouncedSearch(searchQuery.value);
3405
3404
  };
3406
3405
  const clearSearch = () => {
@@ -12702,8 +12702,7 @@ ${$(r2)}`), n2;
12702
12702
  "zh-CN": zhCN
12703
12703
  };
12704
12704
  const getPath = (obj, path, variables) => {
12705
- const safePath = typeof path === "string" ? path : String(path ?? "");
12706
- const pathStack = /^\w/.test(safePath) ? safePath.split(".") : [safePath];
12705
+ const pathStack = /^\w/.test(path) ? path.split(".") : [path];
12707
12706
  const { length } = pathStack;
12708
12707
  let target = obj;
12709
12708
  let i2 = 0;
@@ -12976,7 +12975,7 @@ ${$(r2)}`), n2;
12976
12975
  const debouncedSearch = debounce(performSearch, SEARCH_DEBOUNCE_DELAY);
12977
12976
  const handleSearchInput = (value) => {
12978
12977
  loading2.value = true;
12979
- searchQuery.value = typeof value === "string" ? value.trim() : String(value ?? "").trim();
12978
+ searchQuery.value = value.trim();
12980
12979
  debouncedSearch(searchQuery.value);
12981
12980
  };
12982
12981
  const clearSearch = () => {
@@ -3131,8 +3131,7 @@
3131
3131
  "zh-CN": zhCN
3132
3132
  };
3133
3133
  const getPath = (obj, path, variables) => {
3134
- const safePath = typeof path === "string" ? path : String(path ?? "");
3135
- const pathStack = /^\w/.test(safePath) ? safePath.split(".") : [safePath];
3134
+ const pathStack = /^\w/.test(path) ? path.split(".") : [path];
3136
3135
  const { length } = pathStack;
3137
3136
  let target = obj;
3138
3137
  let i = 0;
@@ -3405,7 +3404,7 @@
3405
3404
  const debouncedSearch = debounce(performSearch, SEARCH_DEBOUNCE_DELAY);
3406
3405
  const handleSearchInput = (value) => {
3407
3406
  loading.value = true;
3408
- searchQuery.value = typeof value === "string" ? value.trim() : String(value ?? "").trim();
3407
+ searchQuery.value = value.trim();
3409
3408
  debouncedSearch(searchQuery.value);
3410
3409
  };
3411
3410
  const clearSearch = () => {