@yuntijs/ui 1.0.0-beta.82 → 1.0.0-beta.83

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.
@@ -83,14 +83,11 @@ export var Mentions = function Mentions(_ref) {
83
83
  // }, [value])
84
84
 
85
85
  var optionsMap = useMemo(function () {
86
- var buildMap = function buildMap(_options, parentIcon) {
86
+ var buildMap = function buildMap(_options) {
87
87
  return _options.reduce(function (acc, option) {
88
88
  acc[option.value] = option;
89
- if (!acc[option.value].icon) {
90
- acc[option.value].icon = parentIcon;
91
- }
92
89
  if (option.children && option.children.length > 0) {
93
- var childrenMap = buildMap(option.children, option.icon);
90
+ var childrenMap = buildMap(option.children);
94
91
  Object.assign(acc, childrenMap);
95
92
  }
96
93
  return acc;
@@ -2,4 +2,9 @@ import { createCommand } from 'lexical';
2
2
  export var INSERT_MENTION_COMMAND = createCommand('INSERT_MENTION_COMMAND');
3
3
  export var DELETE_MENTION_COMMAND = createCommand('DELETE_MENTION_COMMAND');
4
4
  export var CLEAR_HIDE_MENU_TIMEOUT = createCommand('CLEAR_HIDE_MENU_TIMEOUT');
5
- export var MENTION_REGEX = /{{([\w-]{1,50}(\.[_a-z]\w{0,29}){1,10})}}/gi;
5
+
6
+ // export const MENTION_REGEX = /{{([\w-]{1,50}(\.[_a-z]\w{0,29}){1,10})}}/gi;
7
+ // export const MENTION_REGEX = /{{(.+?)}}/g;
8
+ // {{plugin-m67m66l8-794.json."id"}}
9
+ // {{plugin-m67m66l8-794.json."tags"[0]."id"}}
10
+ export var MENTION_REGEX = /{{([\w-]{1,50}(\.("?)[_a-z][\w"[\]]*("?)){1,10})}}/gi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuntijs/ui",
3
- "version": "1.0.0-beta.82",
3
+ "version": "1.0.0-beta.83",
4
4
  "description": "☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps",
5
5
  "keywords": [
6
6
  "yuntijs",