@v-c/mentions 1.1.1 → 1.1.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/dist/util.d.ts CHANGED
@@ -30,8 +30,6 @@ export declare function replaceWithMeasure(text: string, measureConfig: MeasureC
30
30
  selectionLocation: number;
31
31
  };
32
32
  export declare function setInputSelection(input: HTMLTextAreaElement, location: number): void;
33
- export declare function validateSearch(): typeof validateSearch;
34
33
  export declare function validateSearch(text: string, split: MentionsProps['split']): boolean;
35
- export declare function filterOption(): typeof filterOption;
36
34
  export declare function filterOption(input: string, option: OptionProps): boolean;
37
35
  export {};
package/dist/util.js CHANGED
@@ -65,11 +65,9 @@ function setInputSelection(input, location) {
65
65
  input.focus();
66
66
  }
67
67
  function validateSearch(text, split) {
68
- if (text === void 0 && split === void 0) return validateSearch;
69
68
  return !split || !(text ?? "").includes(split);
70
69
  }
71
70
  function filterOption(input, option) {
72
- if (input === void 0 && option === void 0) return filterOption;
73
71
  const lowerCase = (typeof input === "string" ? input : String(input ?? "")).toLowerCase();
74
72
  return (option?.value ?? "").toLowerCase().includes(lowerCase);
75
73
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@v-c/mentions",
3
3
  "type": "module",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/antdv-next/vue-components/tree/next/packages/mentions",
@@ -31,10 +31,10 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@v-c/input": "^1.1.1",
34
- "@v-c/textarea": "^1.1.0",
35
34
  "@v-c/menu": "^1.2.2",
36
- "@v-c/util": "^1.0.19",
37
- "@v-c/trigger": "^1.0.17"
35
+ "@v-c/util": "^1.0.21",
36
+ "@v-c/trigger": "^1.0.18",
37
+ "@v-c/textarea": "^1.1.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "vite build",