@appquality/unguess-design-system 3.1.66 → 3.1.67

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/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ # v3.1.67 (Wed Jan 24 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Minor changes [#305](https://github.com/AppQuality/unguess-design-system/pull/305) ([@cannarocks](https://github.com/cannarocks) [@iDome89](https://github.com/iDome89) [@marcbon](https://github.com/marcbon))
6
+ - fixed behaviour when editor is empty [#304](https://github.com/AppQuality/unguess-design-system/pull/304) ([@iDome89](https://github.com/iDome89))
7
+ - 🔧 fix(chat): fix typo in mentionList.tsx [#303](https://github.com/AppQuality/unguess-design-system/pull/303) ([@marcbon](https://github.com/marcbon))
8
+ - Comments design refinement [#302](https://github.com/AppQuality/unguess-design-system/pull/302) ([@iDome89](https://github.com/iDome89) [@marcbon](https://github.com/marcbon))
9
+ - chore(storybook): add extension [#301](https://github.com/AppQuality/unguess-design-system/pull/301) ([@cannarocks](https://github.com/cannarocks))
10
+
11
+ #### Authors: 3
12
+
13
+ - [@iDome89](https://github.com/iDome89)
14
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
15
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
16
+
17
+ ---
18
+
1
19
  # v3.1.66 (Fri Jan 19 2024)
2
20
 
3
21
  #### 🐛 Bug Fix
package/build/index.js CHANGED
@@ -2283,8 +2283,9 @@ const SentimentChart = ({ data, width, height, margin, tooltip, i18n, }) => {
2283
2283
  const ShortcutContainer = styled__default["default"].div `
2284
2284
  display: flex;
2285
2285
  flex-direction: row;
2286
- padding: ${({ theme }) => `${theme.space.sm} ${theme.space.base * 4}px`};
2286
+ padding: ${({ theme }) => `0 ${theme.space.base * 4}px`};
2287
2287
  background-color: ${({ theme }) => theme.palette.grey[100]};
2288
+ font-size: ${({ theme }) => theme.fontSizes.sm};
2288
2289
  `;
2289
2290
  const Text$1 = styled__default["default"](reactTypography.SM) `
2290
2291
  line-height: 1.7;
@@ -2296,7 +2297,7 @@ const SendShortcut = ({ saveText }) => {
2296
2297
  const Footer$4 = styled__default["default"].div `
2297
2298
  display: flex;
2298
2299
  flex-direction: row;
2299
- padding: ${({ theme }) => `${theme.space.sm} 0px`};
2300
+ padding: ${({ theme }) => `${theme.space.xs} 0px ${theme.space.sm}`};
2300
2301
  align-items: center;
2301
2302
  margin: ${({ theme }) => `0 -${theme.space.base * 4}px`};
2302
2303
  justify-content: ${({ showShortcut }) => showShortcut ? "space-between" : "flex-end"};
@@ -2318,7 +2319,8 @@ const ChatContextProvider = ({ onSave, setMentionableUsers, children, }) => {
2318
2319
  if (!result.some((r) => r.id === node.attrs.id))
2319
2320
  result.push({
2320
2321
  id: node.attrs.id,
2321
- name: node.attrs.name
2322
+ name: node.attrs.name,
2323
+ email: node.attrs.email
2322
2324
  });
2323
2325
  }
2324
2326
  });
@@ -2328,7 +2330,7 @@ const ChatContextProvider = ({ onSave, setMentionableUsers, children, }) => {
2328
2330
  editor,
2329
2331
  setEditor,
2330
2332
  triggerSave: () => {
2331
- if (editor && onSave) {
2333
+ if (editor && onSave && !editor.isEmpty) {
2332
2334
  onSave(editor, getMentions(editor));
2333
2335
  editor.commands.clearContent();
2334
2336
  }
@@ -2861,9 +2863,25 @@ const SvgAtFill = props => /*#__PURE__*/React__namespace.createElement("svg", _e
2861
2863
  d: "M11 5v3h0a3 3 0 01-3 3h0a3 3 0 01-3-3h0a3 3 0 013-3h0a3 3 0 013 3h0v1a2 2 0 002 2h0a2 2 0 002-2V8h0a7 7 0 00-7-7h0a7 7 0 00-7 7h0a7 7 0 007 7h2.8"
2862
2864
  })));
2863
2865
 
2864
- const EditorButton = ({ editor, type, }) => {
2865
- const isActive = editor.isActive(type);
2866
- const getIcon = () => {
2866
+ const MenuContainer = styled__default["default"].div `
2867
+ padding: ${({ theme }) => theme.space.xs} 0;
2868
+ display: flex;
2869
+ flex-direction: row;
2870
+ justify-content: flex-start;
2871
+ align-items: center;
2872
+ gap: ${({ theme }) => theme.space.xxs};
2873
+ `;
2874
+ const VerticalDivider = styled__default["default"].div `
2875
+ width: 2px;
2876
+ height: 24px;
2877
+ background-color: ${({ theme }) => theme.palette.grey[300]};
2878
+ margin: 0 ${({ theme }) => theme.space.xs};
2879
+ `;
2880
+ const CommentBar = ({ editor, i18n, }) => {
2881
+ var _a, _b, _c, _d, _e, _f;
2882
+ if (!editor)
2883
+ return null;
2884
+ const getIcon = (type) => {
2867
2885
  switch (type) {
2868
2886
  case "bold":
2869
2887
  return jsxRuntime.jsx(SvgBoldFill, {});
@@ -2871,9 +2889,11 @@ const EditorButton = ({ editor, type, }) => {
2871
2889
  return jsxRuntime.jsx(SvgItalicFill, {});
2872
2890
  case "mention":
2873
2891
  return jsxRuntime.jsx(SvgAtFill, {});
2892
+ default:
2893
+ return null;
2874
2894
  }
2875
2895
  };
2876
- const handleClick = () => {
2896
+ const handleClick = (type) => {
2877
2897
  switch (type) {
2878
2898
  case "bold":
2879
2899
  return editor.chain().focus().toggleBold().run();
@@ -2883,29 +2903,11 @@ const EditorButton = ({ editor, type, }) => {
2883
2903
  const { from } = editor.state.selection;
2884
2904
  const char = from > 1 ? " @" : "@";
2885
2905
  return editor.commands.insertContent(char);
2906
+ default:
2907
+ return;
2886
2908
  }
2887
2909
  };
2888
- return (jsxRuntime.jsx(IconButton, Object.assign({ size: "small", isBasic: !isActive, isPrimary: isActive, onClick: handleClick }, { children: getIcon() })));
2889
- };
2890
-
2891
- const MenuContainer = styled__default["default"].div `
2892
- padding: ${({ theme }) => theme.space.xxs} 0;
2893
- display: flex;
2894
- flex-direction: row;
2895
- justify-content: flex-start;
2896
- align-items: center;
2897
- `;
2898
- const VerticalDivider = styled__default["default"].div `
2899
- width: 2px;
2900
- height: 24px;
2901
- background-color: ${({ theme }) => theme.palette.grey[300]};
2902
- margin: 0 ${({ theme }) => theme.space.xs};
2903
- `;
2904
- const CommentBar = ({ editor, i18n, }) => {
2905
- var _a, _b, _c, _d, _e, _f;
2906
- if (!editor)
2907
- return null;
2908
- return (jsxRuntime.jsxs(MenuContainer, { children: [jsxRuntime.jsx(Tooltip, Object.assign({ content: (_b = (_a = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _a === void 0 ? void 0 : _a.bold) !== null && _b !== void 0 ? _b : "Bold text", placement: "top", type: "light", size: "small" }, { children: jsxRuntime.jsx(EditorButton, { editor: editor, type: "bold" }) })), jsxRuntime.jsx(Tooltip, Object.assign({ content: (_d = (_c = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _c === void 0 ? void 0 : _c.italic) !== null && _d !== void 0 ? _d : "Italic text", placement: "top", type: "light", size: "small" }, { children: jsxRuntime.jsx(EditorButton, { editor: editor, type: "italic" }) })), jsxRuntime.jsx(VerticalDivider, {}), jsxRuntime.jsx(Tooltip, Object.assign({ content: (_f = (_e = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _e === void 0 ? void 0 : _e.mention) !== null && _f !== void 0 ? _f : "Add a mention", placement: "top", type: "light", size: "small" }, { children: jsxRuntime.jsx(EditorButton, { editor: editor, type: "mention" }) }))] }));
2910
+ return (jsxRuntime.jsxs(MenuContainer, Object.assign({ id: "menu-container" }, { children: [jsxRuntime.jsx(Tooltip, Object.assign({ content: `${(_b = (_a = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _a === void 0 ? void 0 : _a.bold) !== null && _b !== void 0 ? _b : "Bold text"} ${isMac() ? "Cmd" : "Ctrl"} + B`, placement: "top", type: "light", size: "small", hasArrow: false }, { children: jsxRuntime.jsx(IconButton, Object.assign({ size: "small", isBasic: !editor.isActive("bold"), isPrimary: editor.isActive("bold"), isPill: false, onClick: () => handleClick("bold") }, { children: getIcon("bold") })) })), jsxRuntime.jsx(Tooltip, Object.assign({ content: `${(_d = (_c = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _c === void 0 ? void 0 : _c.italic) !== null && _d !== void 0 ? _d : "Italic text"} ${isMac() ? "Cmd" : "Ctrl"} + I`, placement: "top", type: "light", size: "small", hasArrow: false }, { children: jsxRuntime.jsx(IconButton, Object.assign({ size: "small", isBasic: !editor.isActive("italic"), isPrimary: editor.isActive("italic"), isPill: false, onClick: () => handleClick("italic") }, { children: getIcon("italic") })) })), jsxRuntime.jsx(VerticalDivider, {}), jsxRuntime.jsx(Tooltip, Object.assign({ content: (_f = (_e = i18n === null || i18n === void 0 ? void 0 : i18n.menu) === null || _e === void 0 ? void 0 : _e.mention) !== null && _f !== void 0 ? _f : "Add a mention", placement: "top", type: "light", size: "small", hasArrow: false }, { children: jsxRuntime.jsx(IconButton, Object.assign({ size: "small", isBasic: !editor.isActive("mention"), isPrimary: editor.isActive("mention"), isPill: false, onClick: () => handleClick("mention") }, { children: getIcon("mention") })) }))] })));
2909
2911
  };
2910
2912
 
2911
2913
  const CustomMention = Mention__default["default"].extend({
@@ -2985,9 +2987,27 @@ const Item$2 = styled.styled(Button) `
2985
2987
  align-items: flex-start;
2986
2988
  justify-content: center;
2987
2989
  flex-direction: column;
2990
+
2991
+ ${({ isActive }) => isActive &&
2992
+ `
2993
+ background-color: ${getColor(theme.colors.primaryHue, 600, undefined, 0.08)};
2994
+ `}
2995
+ `;
2996
+ const EmptyList = styled.styled.div `
2997
+ max-height: 100px;
2998
+ max-width:280px;
2999
+ padding: ${({ theme }) => `${theme.space.xxs} ${theme.space.md}`};
2988
3000
  `;
3001
+ const EmptyMention = ({ content }) => {
3002
+ return (jsxRuntime.jsx(EmptyList, { children: jsxRuntime.jsx(MD, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: content })) }));
3003
+ };
2989
3004
  const MentionList = React.forwardRef((props, ref) => {
3005
+ var _a, _b;
3006
+ const { editor } = props;
3007
+ const { options } = editor;
3008
+ const { i18n } = options;
2990
3009
  const [selectedIndex, setSelectedIndex] = React.useState(0);
3010
+ const selectedRef = React.useRef(null);
2991
3011
  const selectItem = (index) => {
2992
3012
  const item = props.items[index];
2993
3013
  if (item) {
@@ -3004,6 +3024,11 @@ const MentionList = React.forwardRef((props, ref) => {
3004
3024
  selectItem(selectedIndex);
3005
3025
  };
3006
3026
  React.useEffect(() => setSelectedIndex(0), [props.items]);
3027
+ React.useEffect(() => {
3028
+ if (selectedRef.current) {
3029
+ selectedRef.current.scrollIntoView({ behavior: "smooth" });
3030
+ }
3031
+ }, [selectedIndex]);
3007
3032
  React.useImperativeHandle(ref, () => ({
3008
3033
  onKeyDown: ({ event }) => {
3009
3034
  if (event.key === "ArrowUp") {
@@ -3021,7 +3046,7 @@ const MentionList = React.forwardRef((props, ref) => {
3021
3046
  return false;
3022
3047
  },
3023
3048
  }));
3024
- return (jsxRuntime.jsx("div", Object.assign({ className: "items" }, { children: jsxRuntime.jsx(StyledCard$1, { children: jsxRuntime.jsx(List, { children: props.items.length ? (props.items.map((item, index) => (jsxRuntime.jsx("div", Object.assign({ className: index === selectedIndex ? 'selected' : '' }, { children: jsxRuntime.jsx(Item$2, Object.assign({ isBasic: true, isStretched: true, isAccent: true, isPill: false, onClick: () => selectItem(index) }, { children: jsxRuntime.jsx(MD, Object.assign({ isBold: true, style: { color: theme.palette.black } }, { children: item.name })) }), index) }))))) : (jsxRuntime.jsx("div", Object.assign({ className: "item" }, { children: "No result" }))) }) }) })));
3049
+ return (jsxRuntime.jsx("div", Object.assign({ className: "items" }, { children: jsxRuntime.jsx(StyledCard$1, { children: jsxRuntime.jsx(List, { children: props.items.length ? (props.items.map((item, index) => (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(Item$2, Object.assign({ ref: index === selectedIndex ? selectedRef : undefined, isBasic: true, isStretched: true, isAccent: true, isPill: false, isActive: index === selectedIndex, onClick: () => selectItem(index) }, { children: jsxRuntime.jsx(MD, Object.assign({ isBold: true, style: { color: theme.palette.black } }, { children: item.name })) }), index) })))) : (jsxRuntime.jsx(EmptyMention, { content: (_b = (_a = i18n === null || i18n === void 0 ? void 0 : i18n.mention) === null || _a === void 0 ? void 0 : _a.noResults) !== null && _b !== void 0 ? _b : "No results" })) }) }) })));
3025
3050
  });
3026
3051
 
3027
3052
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonArgs } from "./_types";
3
2
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
4
3
  export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
@@ -8,18 +8,18 @@ export declare const variants: readonly [{}, {
8
8
  readonly disabled: true;
9
9
  }];
10
10
  export declare const Row: import("styled-components").IStyledComponent<"web", {
11
- alignItems?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
12
- alignItemsXs?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
13
- alignItemsSm?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
14
- alignItemsMd?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
15
- alignItemsLg?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
16
- alignItemsXl?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
17
- justifyContent?: "center" | "start" | "end" | "between" | "around" | undefined;
18
- justifyContentXs?: "center" | "start" | "end" | "between" | "around" | undefined;
19
- justifyContentSm?: "center" | "start" | "end" | "between" | "around" | undefined;
20
- justifyContentMd?: "center" | "start" | "end" | "between" | "around" | undefined;
21
- justifyContentLg?: "center" | "start" | "end" | "between" | "around" | undefined;
22
- justifyContentXl?: "center" | "start" | "end" | "between" | "around" | undefined;
11
+ alignItems?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
12
+ alignItemsXs?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
13
+ alignItemsSm?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
14
+ alignItemsMd?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
15
+ alignItemsLg?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
16
+ alignItemsXl?: "start" | "center" | "end" | "baseline" | "stretch" | undefined;
17
+ justifyContent?: "start" | "center" | "end" | "between" | "around" | undefined;
18
+ justifyContentXs?: "start" | "center" | "end" | "between" | "around" | undefined;
19
+ justifyContentSm?: "start" | "center" | "end" | "between" | "around" | undefined;
20
+ justifyContentMd?: "start" | "center" | "end" | "between" | "around" | undefined;
21
+ justifyContentLg?: "start" | "center" | "end" | "between" | "around" | undefined;
22
+ justifyContentXl?: "start" | "center" | "end" | "between" | "around" | undefined;
23
23
  wrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
24
24
  wrapXs?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
25
25
  wrapSm?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
@@ -73,7 +73,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
73
73
  results?: number | undefined;
74
74
  security?: string | undefined;
75
75
  unselectable?: "on" | "off" | undefined;
76
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
76
+ inputMode?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | undefined;
77
77
  is?: string | undefined;
78
78
  "aria-activedescendant"?: string | undefined;
79
79
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
@@ -299,18 +299,18 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
299
299
  md?: string | number | boolean | undefined;
300
300
  lg?: string | number | boolean | undefined;
301
301
  xl?: string | number | boolean | undefined;
302
- alignSelf?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
303
- alignSelfXs?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
304
- alignSelfSm?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
305
- alignSelfMd?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
306
- alignSelfLg?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
307
- alignSelfXl?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
308
- textAlign?: "center" | "start" | "end" | "justify" | undefined;
309
- textAlignXs?: "center" | "start" | "end" | "justify" | undefined;
310
- textAlignSm?: "center" | "start" | "end" | "justify" | undefined;
311
- textAlignMd?: "center" | "start" | "end" | "justify" | undefined;
312
- textAlignLg?: "center" | "start" | "end" | "justify" | undefined;
313
- textAlignXl?: "center" | "start" | "end" | "justify" | undefined;
302
+ alignSelf?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
303
+ alignSelfXs?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
304
+ alignSelfSm?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
305
+ alignSelfMd?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
306
+ alignSelfLg?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
307
+ alignSelfXl?: "start" | "center" | "end" | "baseline" | "stretch" | "auto" | undefined;
308
+ textAlign?: "start" | "center" | "end" | "justify" | undefined;
309
+ textAlignXs?: "start" | "center" | "end" | "justify" | undefined;
310
+ textAlignSm?: "start" | "center" | "end" | "justify" | undefined;
311
+ textAlignMd?: "start" | "center" | "end" | "justify" | undefined;
312
+ textAlignLg?: "start" | "center" | "end" | "justify" | undefined;
313
+ textAlignXl?: "start" | "center" | "end" | "justify" | undefined;
314
314
  offset?: string | number | undefined;
315
315
  offsetXs?: string | number | undefined;
316
316
  offsetSm?: string | number | undefined;
@@ -370,7 +370,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
370
370
  results?: number | undefined;
371
371
  security?: string | undefined;
372
372
  unselectable?: "on" | "off" | undefined;
373
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
373
+ inputMode?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | undefined;
374
374
  is?: string | undefined;
375
375
  "aria-activedescendant"?: string | undefined;
376
376
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
@@ -640,7 +640,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
640
640
  results?: number | undefined;
641
641
  security?: string | undefined;
642
642
  unselectable?: "on" | "off" | undefined;
643
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
643
+ inputMode?: "decimal" | "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | undefined;
644
644
  is?: string | undefined;
645
645
  "aria-activedescendant"?: string | undefined;
646
646
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
@@ -4,6 +4,7 @@ type validationStatus = "success" | "warning" | "error";
4
4
  export type SuggestedUser = {
5
5
  id: number;
6
6
  name: string;
7
+ email: string;
7
8
  };
8
9
  export interface ChatEditorArgs extends Partial<EditorOptions> {
9
10
  placeholderOptions?: Partial<PlaceholderOptions>;
@@ -17,6 +18,9 @@ export interface ChatEditorArgs extends Partial<EditorOptions> {
17
18
  italic?: string;
18
19
  mention?: string;
19
20
  };
21
+ mention?: {
22
+ noResults?: string;
23
+ };
20
24
  };
21
25
  }
22
26
  export interface Author {
@@ -7,7 +7,7 @@ export type ChatContextType = {
7
7
  setEditor: React.Dispatch<React.SetStateAction<Editor | undefined>>;
8
8
  mentionableUsers: (props: {
9
9
  query: string;
10
- }) => Promise<SuggestedUser[]>;
10
+ }) => SuggestedUser[];
11
11
  };
12
12
  export declare const ChatContext: React.Context<ChatContextType | null>;
13
13
  export declare const ChatContextProvider: ({ onSave, setMentionableUsers, children, }: {
@@ -15,6 +15,6 @@ export declare const ChatContextProvider: ({ onSave, setMentionableUsers, childr
15
15
  children: React.ReactNode;
16
16
  setMentionableUsers: (props: {
17
17
  query: string;
18
- }) => Promise<SuggestedUser[]>;
18
+ }) => SuggestedUser[];
19
19
  }) => import("react/jsx-runtime").JSX.Element;
20
20
  export declare const useChatContext: () => ChatContextType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PlaceholderOptions } from "@tiptap/extension-placeholder";
3
2
  import { Editor as TipTapEditor } from "@tiptap/react";
4
3
  import { ChatEditorArgs, SuggestedUser } from "./_types";
@@ -3,6 +3,6 @@ import { SuggestedUser } from "../_types";
3
3
  export declare const editorExtensions: ({ placeholderOptions, mentionableUsers, }: {
4
4
  mentionableUsers: (props: {
5
5
  query: string;
6
- }) => Promise<SuggestedUser[]>;
6
+ }) => SuggestedUser[];
7
7
  placeholderOptions?: Partial<PlaceholderOptions> | undefined;
8
8
  }) => (import("@tiptap/react").Extension<import("@tiptap/extension-typography").TypographyOptions, any> | import("@tiptap/react").Mark<import("@tiptap/extension-link").LinkOptions, any> | import("@tiptap/react").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/react").Extension<PlaceholderOptions, any> | import("@tiptap/react").Extension<import("@tiptap/extension-character-count").CharacterCountOptions, import("@tiptap/extension-character-count").CharacterCountStorage> | import("@tiptap/react").Node<import("@tiptap/extension-mention").MentionOptions, any>)[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DropdownArgs, SelectArgs } from "./_types";
3
2
  import { MenuArgs } from "../menu/_types";
4
3
  interface IItem {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditorArgs } from "./_types";
3
2
  interface EditorStoryArgs extends EditorArgs {
4
3
  children?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "3.1.66",
3
+ "version": "3.1.67",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -73,6 +73,7 @@
73
73
  "@babel/preset-react": "^7.18.6",
74
74
  "@babel/preset-typescript": "^7.21.5",
75
75
  "@rollup/plugin-image": "^3.0.2",
76
+ "@storybook/addon-a11y": "^7.6.10",
76
77
  "@storybook/addon-essentials": "^7.0.9",
77
78
  "@storybook/addon-interactions": "^7.0.9",
78
79
  "@storybook/addon-links": "^7.0.9",
@@ -1,5 +0,0 @@
1
- import { Editor } from "@tiptap/react";
2
- export declare const EditorButton: ({ editor, type, }: {
3
- editor: Editor;
4
- type: "bold" | "italic" | "mention";
5
- }) => import("react/jsx-runtime").JSX.Element;