@v-c/mentions 1.1.0 → 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.
@@ -45,15 +45,14 @@ var KeywordTrigger = /* @__PURE__ */ defineComponent((props, { slots }) => {
45
45
  return () => {
46
46
  const { prefixCls, options, visible, transitionName, getPopupContainer, popupClassName, popupStyle } = props;
47
47
  const dropdownPrefix = `${prefixCls}-dropdown`;
48
- const dropdownElement = createVNode(DropdownMenu, {
49
- "prefixCls": dropdownPrefix,
50
- "options": options,
51
- "opened": opened.value
52
- }, null);
53
48
  return createVNode(Trigger, {
54
49
  "prefixCls": dropdownPrefix,
55
50
  "popupVisible": visible,
56
- "popup": dropdownElement,
51
+ "popup": createVNode(DropdownMenu, {
52
+ "prefixCls": dropdownPrefix,
53
+ "options": options,
54
+ "opened": opened.value
55
+ }, null),
57
56
  "popupPlacement": dropdownPlacement.value,
58
57
  "popupMotion": { name: transitionName },
59
58
  "builtinPlacements": BUILT_IN_PLACEMENTS,
package/dist/Mentions.js CHANGED
@@ -341,7 +341,7 @@ var InternalMentions = /* @__PURE__ */ defineComponent((props, { slots, expose,
341
341
  return mentionNode;
342
342
  };
343
343
  }, {
344
- props: /* @__PURE__ */ mergeDefaults({
344
+ props: /*@__PURE__*/ mergeDefaults({
345
345
  hasWrapper: {
346
346
  type: Boolean,
347
347
  required: true
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,8 +1,14 @@
1
1
  {
2
2
  "name": "@v-c/mentions",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.2",
5
5
  "description": "",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/antdv-next/vue-components/tree/next/packages/mentions",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/antdv-next/vue-components.git"
11
+ },
6
12
  "publishConfig": {
7
13
  "access": "public"
8
14
  },
@@ -24,11 +30,11 @@
24
30
  "vue": "^3.0.0"
25
31
  },
26
32
  "dependencies": {
27
- "@v-c/input": "^1.1.0",
28
- "@v-c/menu": "^1.1.0",
29
- "@v-c/textarea": "^1.1.0",
30
- "@v-c/trigger": "^1.0.14",
31
- "@v-c/util": "^1.0.19"
33
+ "@v-c/input": "^1.1.1",
34
+ "@v-c/menu": "^1.2.2",
35
+ "@v-c/util": "^1.0.21",
36
+ "@v-c/trigger": "^1.0.18",
37
+ "@v-c/textarea": "^1.1.0"
32
38
  },
33
39
  "scripts": {
34
40
  "build": "vite build",