@hh.ru/magritte-ui-ai-response 1.1.7 → 1.1.8

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/AIResponse.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { AIResponseFormattedText } from '@hh.ru/magritte-ui-ai-response/FormattedText';
2
- import { AIResponseQuote } from '@hh.ru/magritte-ui-ai-response/Quote';
3
- import { AIResponseWidget } from '@hh.ru/magritte-ui-ai-response/Widget';
4
- import { AIResponseProps } from '@hh.ru/magritte-ui-ai-response/types';
1
+ import { AIResponseFormattedText } from './FormattedText';
2
+ import { AIResponseQuote } from './Quote';
3
+ import { AIResponseWidget } from './Widget';
4
+ import { AIResponseProps } from './types';
5
5
  interface AIResponseComponents {
6
6
  FormattedText: typeof AIResponseFormattedText;
7
7
  Quote: typeof AIResponseQuote;
package/AIResponse.js CHANGED
@@ -6,19 +6,25 @@ import { AIResponseFormattedText } from './FormattedText.js';
6
6
  import { AIResponseQuote } from './Quote.js';
7
7
  import { AIResponseWidget } from './Widget.js';
8
8
  import { IconDefaultPropsContext } from '@hh.ru/magritte-ui-icon';
9
- import { s as styles } from './ai-response-BUkQ0nIE.js';
9
+ import { s as styles } from './ai-response-BaYsw79Z.js';
10
10
  import '@hh.ru/magritte-ui-text-list';
11
11
  import '@hh.ru/magritte-ui-title';
12
12
  import '@hh.ru/magritte-ui-typography';
13
13
 
14
14
  const DEFAULT_ICON_PROPS = {
15
- padding: 8,
16
- initialColor: 'secondary',
15
+ padding: 8,
16
+ initialColor: "secondary"
17
17
  };
18
- const AIResponse = forwardRef(({ actions, children, className, icon, ...props }, ref) => {
19
- return (jsxs("div", { ...props, className: classnames(className, styles.aiResponse), "data-qa": "ai-response", ref: ref, children: [icon, children, actions && (jsx(IconDefaultPropsContext, { props: DEFAULT_ICON_PROPS, children: jsx("div", { className: styles.aiResponseActions, "data-qa": "ai-response-actions", children: actions }) }))] }));
20
- });
21
- AIResponse.displayName = 'AIResponse';
18
+ const AIResponse = forwardRef(
19
+ ({ actions, children, className, icon, ...props }, ref) => {
20
+ return /* @__PURE__ */ jsxs("div", { ...props, className: classnames(className, styles.aiResponse), "data-qa": "ai-response", ref, children: [
21
+ icon,
22
+ children,
23
+ actions && /* @__PURE__ */ jsx(IconDefaultPropsContext, { props: DEFAULT_ICON_PROPS, children: /* @__PURE__ */ jsx("div", { className: styles.aiResponseActions, "data-qa": "ai-response-actions", children: actions }) })
24
+ ] });
25
+ }
26
+ );
27
+ AIResponse.displayName = "AIResponse";
22
28
  AIResponse.FormattedText = AIResponseFormattedText;
23
29
  AIResponse.Quote = AIResponseQuote;
24
30
  AIResponse.Widget = AIResponseWidget;
package/AIResponse.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"AIResponse.js","sources":["src/AIResponse.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { AIResponseFormattedText } from '@hh.ru/magritte-ui-ai-response/FormattedText';\nimport { AIResponseQuote } from '@hh.ru/magritte-ui-ai-response/Quote';\nimport { AIResponseWidget } from '@hh.ru/magritte-ui-ai-response/Widget';\nimport { AIResponseProps } from '@hh.ru/magritte-ui-ai-response/types';\nimport { IconDefaultPropsContext, IconProps } from '@hh.ru/magritte-ui-icon';\n\nimport styles from './ai-response.less';\n\nconst DEFAULT_ICON_PROPS: Partial<IconProps> = {\n padding: 8,\n initialColor: 'secondary',\n};\n\ninterface AIResponseComponents {\n FormattedText: typeof AIResponseFormattedText;\n Quote: typeof AIResponseQuote;\n Widget: typeof AIResponseWidget;\n}\n\nexport const AIResponse = forwardRef<HTMLDivElement, AIResponseProps>(\n ({ actions, children, className, icon, ...props }, ref) => {\n return (\n <div {...props} className={classnames(className, styles.aiResponse)} data-qa=\"ai-response\" ref={ref}>\n {icon}\n {children}\n {actions && (\n <IconDefaultPropsContext props={DEFAULT_ICON_PROPS}>\n <div className={styles.aiResponseActions} data-qa=\"ai-response-actions\">\n {actions}\n </div>\n </IconDefaultPropsContext>\n )}\n </div>\n );\n }\n) as React.ForwardRefExoticComponent<AIResponseProps & React.RefAttributes<HTMLDivElement>> & AIResponseComponents;\n\nAIResponse.displayName = 'AIResponse';\n\nAIResponse.FormattedText = AIResponseFormattedText;\nAIResponse.Quote = AIResponseQuote;\nAIResponse.Widget = AIResponseWidget;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;AAWA,MAAM,kBAAkB,GAAuB;AAC3C,IAAA,OAAO,EAAE,CAAC;AACV,IAAA,YAAY,EAAE,WAAW;CAC5B,CAAC;MAQW,UAAU,GAAG,UAAU,CAChC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;IACtD,QACIA,iBAAS,KAAK,EAAE,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,EAAU,SAAA,EAAA,aAAa,EAAC,GAAG,EAAE,GAAG,EAAA,QAAA,EAAA,CAC9F,IAAI,EACJ,QAAQ,EACR,OAAO,KACJC,IAAC,uBAAuB,EAAA,EAAC,KAAK,EAAE,kBAAkB,EAC9C,QAAA,EAAAA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,EAAU,SAAA,EAAA,qBAAqB,EAClE,QAAA,EAAA,OAAO,GACN,EACgB,CAAA,CAC7B,CACC,EAAA,CAAA,EACR;AACN,CAAC,EAC8G;AAEnH,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AAEtC,UAAU,CAAC,aAAa,GAAG,uBAAuB,CAAC;AACnD,UAAU,CAAC,KAAK,GAAG,eAAe,CAAC;AACnC,UAAU,CAAC,MAAM,GAAG,gBAAgB;;;;"}
1
+ {"version":3,"file":"AIResponse.js","sources":["src/AIResponse.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { AIResponseFormattedText } from '@hh.ru/magritte-ui-ai-response/FormattedText';\nimport { AIResponseQuote } from '@hh.ru/magritte-ui-ai-response/Quote';\nimport { AIResponseWidget } from '@hh.ru/magritte-ui-ai-response/Widget';\nimport { AIResponseProps } from '@hh.ru/magritte-ui-ai-response/types';\nimport { IconDefaultPropsContext, IconProps } from '@hh.ru/magritte-ui-icon';\n\nimport styles from './ai-response.less';\n\nconst DEFAULT_ICON_PROPS: Partial<IconProps> = {\n padding: 8,\n initialColor: 'secondary',\n};\n\ninterface AIResponseComponents {\n FormattedText: typeof AIResponseFormattedText;\n Quote: typeof AIResponseQuote;\n Widget: typeof AIResponseWidget;\n}\n\nexport const AIResponse = forwardRef<HTMLDivElement, AIResponseProps>(\n ({ actions, children, className, icon, ...props }, ref) => {\n return (\n <div {...props} className={classnames(className, styles.aiResponse)} data-qa=\"ai-response\" ref={ref}>\n {icon}\n {children}\n {actions && (\n <IconDefaultPropsContext props={DEFAULT_ICON_PROPS}>\n <div className={styles.aiResponseActions} data-qa=\"ai-response-actions\">\n {actions}\n </div>\n </IconDefaultPropsContext>\n )}\n </div>\n );\n }\n) as React.ForwardRefExoticComponent<AIResponseProps & React.RefAttributes<HTMLDivElement>> & AIResponseComponents;\n\nAIResponse.displayName = 'AIResponse';\n\nAIResponse.FormattedText = AIResponseFormattedText;\nAIResponse.Quote = AIResponseQuote;\nAIResponse.Widget = AIResponseWidget;\n"],"names":[],"mappings":";;;;;;;;;;;;AAWA,MAAM,kBAAyC,GAAA;AAAA,EAC3C,OAAS,EAAA,CAAA;AAAA,EACT,YAAc,EAAA,WAAA;AAClB,CAAA,CAAA;AAQO,MAAM,UAAa,GAAA,UAAA;AAAA,EACtB,CAAC,EAAE,OAAS,EAAA,QAAA,EAAU,WAAW,IAAM,EAAA,GAAG,KAAM,EAAA,EAAG,GAAQ,KAAA;AACvD,IAAA,uBACK,IAAA,CAAA,KAAA,EAAA,EAAK,GAAG,KAAA,EAAO,SAAW,EAAA,UAAA,CAAW,SAAW,EAAA,MAAA,CAAO,UAAU,CAAA,EAAG,SAAQ,EAAA,aAAA,EAAc,GACtF,EAAA,QAAA,EAAA;AAAA,MAAA,IAAA;AAAA,MACA,QAAA;AAAA,MACA,OACG,oBAAA,GAAA,CAAC,uBAAwB,EAAA,EAAA,KAAA,EAAO,kBAC5B,EAAA,QAAA,kBAAA,GAAA,CAAC,KAAI,EAAA,EAAA,SAAA,EAAW,MAAO,CAAA,iBAAA,EAAmB,SAAQ,EAAA,qBAAA,EAC7C,mBACL,CACJ,EAAA,CAAA;AAAA,KAER,EAAA,CAAA,CAAA;AAAA,GAER;AACJ,EAAA;AAEA,UAAA,CAAW,WAAc,GAAA,YAAA,CAAA;AAEzB,UAAA,CAAW,aAAgB,GAAA,uBAAA,CAAA;AAC3B,UAAA,CAAW,KAAQ,GAAA,eAAA,CAAA;AACnB,UAAA,CAAW,MAAS,GAAA,gBAAA;;;;"}
@@ -1,2 +1,2 @@
1
- import { AIResponseFormattedTextProps } from '@hh.ru/magritte-ui-ai-response/types';
1
+ import { AIResponseFormattedTextProps } from './types';
2
2
  export declare const AIResponseFormattedText: import("react").ForwardRefExoticComponent<AIResponseFormattedTextProps & import("react").RefAttributes<HTMLDivElement>>;
package/FormattedText.js CHANGED
@@ -5,21 +5,32 @@ import classnames from 'classnames';
5
5
  import { TextListDefaultPropsContext } from '@hh.ru/magritte-ui-text-list';
6
6
  import { TitleDefaultPropsContext } from '@hh.ru/magritte-ui-title';
7
7
  import { TextDefaultPropsContext } from '@hh.ru/magritte-ui-typography';
8
- import { s as styles } from './ai-response-BUkQ0nIE.js';
8
+ import { s as styles } from './ai-response-BaYsw79Z.js';
9
9
 
10
10
  const DEFAULT_TITLE_PROPS = {
11
- size: 'small',
11
+ size: "small"
12
12
  };
13
13
  const DEFAULT_TEXT_PROPS = {
14
- typography: 'paragraph-3-regular',
14
+ typography: "paragraph-3-regular"
15
15
  };
16
16
  const DEFAULT_TEXT_LIST_PROPS = {
17
- typography: 'paragraph-3-regular',
17
+ typography: "paragraph-3-regular"
18
18
  };
19
- const AIResponseFormattedText = forwardRef(({ children, className, ...props }, ref) => {
20
- return (jsx("div", { ...props, className: classnames(className, styles.aiResponseFormattedText), "data-qa": "ai-response-formatted-text", ref: ref, children: jsx(TextDefaultPropsContext, { props: DEFAULT_TEXT_PROPS, children: jsx(TitleDefaultPropsContext, { props: DEFAULT_TITLE_PROPS, children: jsx(TextListDefaultPropsContext, { props: DEFAULT_TEXT_LIST_PROPS, children: children }) }) }) }));
21
- });
22
- AIResponseFormattedText.displayName = 'AIResponseFormattedText';
19
+ const AIResponseFormattedText = forwardRef(
20
+ ({ children, className, ...props }, ref) => {
21
+ return /* @__PURE__ */ jsx(
22
+ "div",
23
+ {
24
+ ...props,
25
+ className: classnames(className, styles.aiResponseFormattedText),
26
+ "data-qa": "ai-response-formatted-text",
27
+ ref,
28
+ children: /* @__PURE__ */ jsx(TextDefaultPropsContext, { props: DEFAULT_TEXT_PROPS, children: /* @__PURE__ */ jsx(TitleDefaultPropsContext, { props: DEFAULT_TITLE_PROPS, children: /* @__PURE__ */ jsx(TextListDefaultPropsContext, { props: DEFAULT_TEXT_LIST_PROPS, children }) }) })
29
+ }
30
+ );
31
+ }
32
+ );
33
+ AIResponseFormattedText.displayName = "AIResponseFormattedText";
23
34
 
24
35
  export { AIResponseFormattedText };
25
36
  //# sourceMappingURL=FormattedText.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormattedText.js","sources":["src/FormattedText.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { AIResponseFormattedTextProps } from '@hh.ru/magritte-ui-ai-response/types';\nimport { TextListDefaultPropsContext, type TextListProps } from '@hh.ru/magritte-ui-text-list';\nimport { TitleDefaultPropsContext, type TitleProps } from '@hh.ru/magritte-ui-title';\nimport { TextDefaultPropsContext, type TextProps } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './ai-response.less';\n\nconst DEFAULT_TITLE_PROPS: Partial<TitleProps> = {\n size: 'small',\n};\nconst DEFAULT_TEXT_PROPS: Partial<TextProps> = {\n typography: 'paragraph-3-regular',\n};\n\nconst DEFAULT_TEXT_LIST_PROPS: Partial<TextListProps> = {\n typography: 'paragraph-3-regular',\n};\n\nexport const AIResponseFormattedText = forwardRef<HTMLDivElement, AIResponseFormattedTextProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n {...props}\n className={classnames(className, styles.aiResponseFormattedText)}\n data-qa=\"ai-response-formatted-text\"\n ref={ref}\n >\n <TextDefaultPropsContext props={DEFAULT_TEXT_PROPS}>\n <TitleDefaultPropsContext props={DEFAULT_TITLE_PROPS}>\n <TextListDefaultPropsContext props={DEFAULT_TEXT_LIST_PROPS}>\n {children}\n </TextListDefaultPropsContext>\n </TitleDefaultPropsContext>\n </TextDefaultPropsContext>\n </div>\n );\n }\n);\n\nAIResponseFormattedText.displayName = 'AIResponseFormattedText';\n"],"names":["_jsx"],"mappings":";;;;;;;;AAUA,MAAM,mBAAmB,GAAwB;AAC7C,IAAA,IAAI,EAAE,OAAO;CAChB,CAAC;AACF,MAAM,kBAAkB,GAAuB;AAC3C,IAAA,UAAU,EAAE,qBAAqB;CACpC,CAAC;AAEF,MAAM,uBAAuB,GAA2B;AACpD,IAAA,UAAU,EAAE,qBAAqB;CACpC,CAAC;AAEW,MAAA,uBAAuB,GAAG,UAAU,CAC7C,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;IACvC,QACIA,gBACQ,KAAK,EACT,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,uBAAuB,CAAC,aACxD,4BAA4B,EACpC,GAAG,EAAE,GAAG,EAER,QAAA,EAAAA,GAAA,CAAC,uBAAuB,EAAA,EAAC,KAAK,EAAE,kBAAkB,YAC9CA,GAAC,CAAA,wBAAwB,IAAC,KAAK,EAAE,mBAAmB,EAAA,QAAA,EAChDA,GAAC,CAAA,2BAA2B,IAAC,KAAK,EAAE,uBAAuB,EACtD,QAAA,EAAA,QAAQ,GACiB,EACP,CAAA,EAAA,CACL,EACxB,CAAA,EACR;AACN,CAAC,EACH;AAEF,uBAAuB,CAAC,WAAW,GAAG,yBAAyB;;;;"}
1
+ {"version":3,"file":"FormattedText.js","sources":["src/FormattedText.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { AIResponseFormattedTextProps } from '@hh.ru/magritte-ui-ai-response/types';\nimport { TextListDefaultPropsContext, type TextListProps } from '@hh.ru/magritte-ui-text-list';\nimport { TitleDefaultPropsContext, type TitleProps } from '@hh.ru/magritte-ui-title';\nimport { TextDefaultPropsContext, type TextProps } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './ai-response.less';\n\nconst DEFAULT_TITLE_PROPS: Partial<TitleProps> = {\n size: 'small',\n};\nconst DEFAULT_TEXT_PROPS: Partial<TextProps> = {\n typography: 'paragraph-3-regular',\n};\n\nconst DEFAULT_TEXT_LIST_PROPS: Partial<TextListProps> = {\n typography: 'paragraph-3-regular',\n};\n\nexport const AIResponseFormattedText = forwardRef<HTMLDivElement, AIResponseFormattedTextProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n {...props}\n className={classnames(className, styles.aiResponseFormattedText)}\n data-qa=\"ai-response-formatted-text\"\n ref={ref}\n >\n <TextDefaultPropsContext props={DEFAULT_TEXT_PROPS}>\n <TitleDefaultPropsContext props={DEFAULT_TITLE_PROPS}>\n <TextListDefaultPropsContext props={DEFAULT_TEXT_LIST_PROPS}>\n {children}\n </TextListDefaultPropsContext>\n </TitleDefaultPropsContext>\n </TextDefaultPropsContext>\n </div>\n );\n }\n);\n\nAIResponseFormattedText.displayName = 'AIResponseFormattedText';\n"],"names":[],"mappings":";;;;;;;;AAUA,MAAM,mBAA2C,GAAA;AAAA,EAC7C,IAAM,EAAA,OAAA;AACV,CAAA,CAAA;AACA,MAAM,kBAAyC,GAAA;AAAA,EAC3C,UAAY,EAAA,qBAAA;AAChB,CAAA,CAAA;AAEA,MAAM,uBAAkD,GAAA;AAAA,EACpD,UAAY,EAAA,qBAAA;AAChB,CAAA,CAAA;AAEO,MAAM,uBAA0B,GAAA,UAAA;AAAA,EACnC,CAAC,EAAE,QAAA,EAAU,WAAW,GAAG,KAAA,IAAS,GAAQ,KAAA;AACxC,IACI,uBAAA,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACI,GAAG,KAAA;AAAA,QACJ,SAAW,EAAA,UAAA,CAAW,SAAW,EAAA,MAAA,CAAO,uBAAuB,CAAA;AAAA,QAC/D,SAAQ,EAAA,4BAAA;AAAA,QACR,GAAA;AAAA,QAEA,QAAC,kBAAA,GAAA,CAAA,uBAAA,EAAA,EAAwB,KAAO,EAAA,kBAAA,EAC5B,8BAAC,wBAAyB,EAAA,EAAA,KAAA,EAAO,mBAC7B,EAAA,QAAA,kBAAA,GAAA,CAAC,2BAA4B,EAAA,EAAA,KAAA,EAAO,uBAC/B,EAAA,QAAA,EACL,GACJ,CACJ,EAAA,CAAA;AAAA,OAAA;AAAA,KACJ,CAAA;AAAA,GAER;AACJ,EAAA;AAEA,uBAAA,CAAwB,WAAc,GAAA,yBAAA;;;;"}
package/Quote.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { AIResponseQuoteProps } from '@hh.ru/magritte-ui-ai-response/types';
1
+ import { AIResponseQuoteProps } from './types';
2
2
  export declare const AIResponseQuote: import("react").ForwardRefExoticComponent<AIResponseQuoteProps & import("react").RefAttributes<HTMLDivElement>>;
package/Quote.js CHANGED
@@ -3,18 +3,32 @@ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef } from 'react';
4
4
  import classnames from 'classnames';
5
5
  import { TextDefaultPropsContext, Text } from '@hh.ru/magritte-ui-typography';
6
- import { s as styles } from './ai-response-BUkQ0nIE.js';
6
+ import { s as styles } from './ai-response-BaYsw79Z.js';
7
7
 
8
8
  const DEFAULT_TITLE_PROPS = {
9
- typography: 'subtitle-2-semibold',
9
+ typography: "subtitle-2-semibold"
10
10
  };
11
11
  const DEFAULT_TEXT_PROPS = {
12
- typography: 'paragraph-3-regular',
12
+ typography: "paragraph-3-regular"
13
13
  };
14
- const AIResponseQuote = forwardRef(({ children, className, title, ...props }, ref) => {
15
- return (jsxs("div", { ...props, className: classnames(className, styles.aiResponseQuote), "data-qa": "ai-response-quote", ref: ref, children: [title && (jsx("div", { "data-qa": "ai-response-quote-title", children: jsx(TextDefaultPropsContext, { props: DEFAULT_TITLE_PROPS, children: jsx(Text, { children: title }) }) })), jsx("div", { className: styles.aiResponseQuoteBody, "data-qa": "ai-response-quote-body", children: jsx(TextDefaultPropsContext, { props: DEFAULT_TEXT_PROPS, children: jsx(Text, { children: children }) }) })] }));
16
- });
17
- AIResponseQuote.displayName = 'AIResponseQuote';
14
+ const AIResponseQuote = forwardRef(
15
+ ({ children, className, title, ...props }, ref) => {
16
+ return /* @__PURE__ */ jsxs(
17
+ "div",
18
+ {
19
+ ...props,
20
+ className: classnames(className, styles.aiResponseQuote),
21
+ "data-qa": "ai-response-quote",
22
+ ref,
23
+ children: [
24
+ title && /* @__PURE__ */ jsx("div", { "data-qa": "ai-response-quote-title", children: /* @__PURE__ */ jsx(TextDefaultPropsContext, { props: DEFAULT_TITLE_PROPS, children: /* @__PURE__ */ jsx(Text, { children: title }) }) }),
25
+ /* @__PURE__ */ jsx("div", { className: styles.aiResponseQuoteBody, "data-qa": "ai-response-quote-body", children: /* @__PURE__ */ jsx(TextDefaultPropsContext, { props: DEFAULT_TEXT_PROPS, children: /* @__PURE__ */ jsx(Text, { children }) }) })
26
+ ]
27
+ }
28
+ );
29
+ }
30
+ );
31
+ AIResponseQuote.displayName = "AIResponseQuote";
18
32
 
19
33
  export { AIResponseQuote };
20
34
  //# sourceMappingURL=Quote.js.map
package/Quote.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Quote.js","sources":["src/Quote.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { AIResponseQuoteProps } from '@hh.ru/magritte-ui-ai-response/types';\nimport { Text, TextDefaultPropsContext, type TextProps } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './ai-response.less';\n\nconst DEFAULT_TITLE_PROPS: Partial<TextProps> = {\n typography: 'subtitle-2-semibold',\n};\n\nconst DEFAULT_TEXT_PROPS: Partial<TextProps> = {\n typography: 'paragraph-3-regular',\n};\n\nexport const AIResponseQuote = forwardRef<HTMLDivElement, AIResponseQuoteProps>(\n ({ children, className, title, ...props }, ref) => {\n return (\n <div\n {...props}\n className={classnames(className, styles.aiResponseQuote)}\n data-qa=\"ai-response-quote\"\n ref={ref}\n >\n {title && (\n <div data-qa=\"ai-response-quote-title\">\n <TextDefaultPropsContext props={DEFAULT_TITLE_PROPS}>\n <Text>{title}</Text>\n </TextDefaultPropsContext>\n </div>\n )}\n <div className={styles.aiResponseQuoteBody} data-qa=\"ai-response-quote-body\">\n <TextDefaultPropsContext props={DEFAULT_TEXT_PROPS}>\n <Text>{children}</Text>\n </TextDefaultPropsContext>\n </div>\n </div>\n );\n }\n);\n\nAIResponseQuote.displayName = 'AIResponseQuote';\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;AAQA,MAAM,mBAAmB,GAAuB;AAC5C,IAAA,UAAU,EAAE,qBAAqB;CACpC,CAAC;AAEF,MAAM,kBAAkB,GAAuB;AAC3C,IAAA,UAAU,EAAE,qBAAqB;CACpC,CAAC;MAEW,eAAe,GAAG,UAAU,CACrC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;AAC9C,IAAA,QACIA,IAAA,CAAA,KAAA,EAAA,EAAA,GACQ,KAAK,EACT,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC,EAChD,SAAA,EAAA,mBAAmB,EAC3B,GAAG,EAAE,GAAG,EAEP,QAAA,EAAA,CAAA,KAAK,KACFC,GAAA,CAAA,KAAA,EAAA,EAAA,SAAA,EAAa,yBAAyB,EAAA,QAAA,EAClCA,GAAC,CAAA,uBAAuB,EAAC,EAAA,KAAK,EAAE,mBAAmB,EAAA,QAAA,EAC/CA,GAAC,CAAA,IAAI,EAAE,EAAA,QAAA,EAAA,KAAK,EAAQ,CAAA,EAAA,CACE,GACxB,CACT,EACDA,GAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,mBAAmB,aAAU,wBAAwB,EAAA,QAAA,EACxEA,GAAC,CAAA,uBAAuB,EAAC,EAAA,KAAK,EAAE,kBAAkB,YAC9CA,GAAC,CAAA,IAAI,EAAE,EAAA,QAAA,EAAA,QAAQ,EAAQ,CAAA,EAAA,CACD,EACxB,CAAA,CAAA,EAAA,CACJ,EACR;AACN,CAAC,EACH;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB;;;;"}
1
+ {"version":3,"file":"Quote.js","sources":["src/Quote.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { AIResponseQuoteProps } from '@hh.ru/magritte-ui-ai-response/types';\nimport { Text, TextDefaultPropsContext, type TextProps } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './ai-response.less';\n\nconst DEFAULT_TITLE_PROPS: Partial<TextProps> = {\n typography: 'subtitle-2-semibold',\n};\n\nconst DEFAULT_TEXT_PROPS: Partial<TextProps> = {\n typography: 'paragraph-3-regular',\n};\n\nexport const AIResponseQuote = forwardRef<HTMLDivElement, AIResponseQuoteProps>(\n ({ children, className, title, ...props }, ref) => {\n return (\n <div\n {...props}\n className={classnames(className, styles.aiResponseQuote)}\n data-qa=\"ai-response-quote\"\n ref={ref}\n >\n {title && (\n <div data-qa=\"ai-response-quote-title\">\n <TextDefaultPropsContext props={DEFAULT_TITLE_PROPS}>\n <Text>{title}</Text>\n </TextDefaultPropsContext>\n </div>\n )}\n <div className={styles.aiResponseQuoteBody} data-qa=\"ai-response-quote-body\">\n <TextDefaultPropsContext props={DEFAULT_TEXT_PROPS}>\n <Text>{children}</Text>\n </TextDefaultPropsContext>\n </div>\n </div>\n );\n }\n);\n\nAIResponseQuote.displayName = 'AIResponseQuote';\n"],"names":[],"mappings":";;;;;;AAQA,MAAM,mBAA0C,GAAA;AAAA,EAC5C,UAAY,EAAA,qBAAA;AAChB,CAAA,CAAA;AAEA,MAAM,kBAAyC,GAAA;AAAA,EAC3C,UAAY,EAAA,qBAAA;AAChB,CAAA,CAAA;AAEO,MAAM,eAAkB,GAAA,UAAA;AAAA,EAC3B,CAAC,EAAE,QAAU,EAAA,SAAA,EAAW,OAAO,GAAG,KAAA,IAAS,GAAQ,KAAA;AAC/C,IACI,uBAAA,IAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACI,GAAG,KAAA;AAAA,QACJ,SAAW,EAAA,UAAA,CAAW,SAAW,EAAA,MAAA,CAAO,eAAe,CAAA;AAAA,QACvD,SAAQ,EAAA,mBAAA;AAAA,QACR,GAAA;AAAA,QAEC,QAAA,EAAA;AAAA,UAAA,KAAA,oBACI,GAAA,CAAA,KAAA,EAAA,EAAI,SAAQ,EAAA,yBAAA,EACT,QAAC,kBAAA,GAAA,CAAA,uBAAA,EAAA,EAAwB,KAAO,EAAA,mBAAA,EAC5B,QAAC,kBAAA,GAAA,CAAA,IAAA,EAAA,EAAM,QAAM,EAAA,KAAA,EAAA,CAAA,EACjB,CACJ,EAAA,CAAA;AAAA,0BAEH,GAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,MAAA,CAAO,qBAAqB,SAAQ,EAAA,wBAAA,EAChD,QAAC,kBAAA,GAAA,CAAA,uBAAA,EAAA,EAAwB,OAAO,kBAC5B,EAAA,QAAA,kBAAA,GAAA,CAAC,IAAM,EAAA,EAAA,QAAA,EAAS,GACpB,CACJ,EAAA,CAAA;AAAA,SAAA;AAAA,OAAA;AAAA,KACJ,CAAA;AAAA,GAER;AACJ,EAAA;AAEA,eAAA,CAAgB,WAAc,GAAA,iBAAA;;;;"}
package/Widget.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { AIResponseWidgetProps } from '@hh.ru/magritte-ui-ai-response/types';
1
+ import { AIResponseWidgetProps } from './types';
2
2
  export declare const AIResponseWidget: import("react").ForwardRefExoticComponent<AIResponseWidgetProps & import("react").RefAttributes<HTMLDivElement>>;
package/Widget.js CHANGED
@@ -3,12 +3,36 @@ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef } from 'react';
4
4
  import classnames from 'classnames';
5
5
  import { Text } from '@hh.ru/magritte-ui-typography';
6
- import { s as styles } from './ai-response-BUkQ0nIE.js';
6
+ import { s as styles } from './ai-response-BaYsw79Z.js';
7
7
 
8
- const AIResponseWidget = forwardRef(({ children, className, title, description, ...props }, ref) => {
9
- return (jsxs("div", { ...props, className: classnames(className, styles.aiResponseWidget), "data-qa": "ai-response-widget", ref: ref, children: [title && (jsxs("div", { className: styles.aiResponseWidgetHeader, "data-qa": "ai-response-widget-header", children: [jsx("div", { className: styles.aiResponseWidgetTitle, "data-qa": "ai-response-widget-title", children: jsx(Text, { typography: "label-3-regular", style: "secondary", ellipsis: true, children: title }) }), description && (jsx("div", { className: styles.aiResponseWidgetDescription, "data-qa": "ai-response-widget-description", children: jsx(Text, { typography: "label-3-regular", style: "secondary", ellipsis: true, children: description }) }))] })), children] }));
10
- });
11
- AIResponseWidget.displayName = 'AIResponseWidget';
8
+ const AIResponseWidget = forwardRef(
9
+ ({ children, className, title, description, ...props }, ref) => {
10
+ return /* @__PURE__ */ jsxs(
11
+ "div",
12
+ {
13
+ ...props,
14
+ className: classnames(className, styles.aiResponseWidget),
15
+ "data-qa": "ai-response-widget",
16
+ ref,
17
+ children: [
18
+ title && /* @__PURE__ */ jsxs("div", { className: styles.aiResponseWidgetHeader, "data-qa": "ai-response-widget-header", children: [
19
+ /* @__PURE__ */ jsx("div", { className: styles.aiResponseWidgetTitle, "data-qa": "ai-response-widget-title", children: /* @__PURE__ */ jsx(Text, { typography: "label-3-regular", style: "secondary", ellipsis: true, children: title }) }),
20
+ description && /* @__PURE__ */ jsx(
21
+ "div",
22
+ {
23
+ className: styles.aiResponseWidgetDescription,
24
+ "data-qa": "ai-response-widget-description",
25
+ children: /* @__PURE__ */ jsx(Text, { typography: "label-3-regular", style: "secondary", ellipsis: true, children: description })
26
+ }
27
+ )
28
+ ] }),
29
+ children
30
+ ]
31
+ }
32
+ );
33
+ }
34
+ );
35
+ AIResponseWidget.displayName = "AIResponseWidget";
12
36
 
13
37
  export { AIResponseWidget };
14
38
  //# sourceMappingURL=Widget.js.map
package/Widget.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Widget.js","sources":["src/Widget.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { AIResponseWidgetProps } from '@hh.ru/magritte-ui-ai-response/types';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './ai-response.less';\n\nexport const AIResponseWidget = forwardRef<HTMLDivElement, AIResponseWidgetProps>(\n ({ children, className, title, description, ...props }, ref) => {\n return (\n <div\n {...props}\n className={classnames(className, styles.aiResponseWidget)}\n data-qa=\"ai-response-widget\"\n ref={ref}\n >\n {title && (\n <div className={styles.aiResponseWidgetHeader} data-qa=\"ai-response-widget-header\">\n <div className={styles.aiResponseWidgetTitle} data-qa=\"ai-response-widget-title\">\n <Text typography=\"label-3-regular\" style=\"secondary\" ellipsis>\n {title}\n </Text>\n </div>\n {description && (\n <div\n className={styles.aiResponseWidgetDescription}\n data-qa=\"ai-response-widget-description\"\n >\n <Text typography=\"label-3-regular\" style=\"secondary\" ellipsis>\n {description}\n </Text>\n </div>\n )}\n </div>\n )}\n {children}\n </div>\n );\n }\n);\n\nAIResponseWidget.displayName = 'AIResponseWidget';\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;MAQa,gBAAgB,GAAG,UAAU,CACtC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;IAC3D,QACIA,iBACQ,KAAK,EACT,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC,EACjD,SAAA,EAAA,oBAAoB,EAC5B,GAAG,EAAE,GAAG,EAEP,QAAA,EAAA,CAAA,KAAK,KACFA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,EAAA,SAAA,EAAU,2BAA2B,EAC9E,QAAA,EAAA,CAAAC,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,qBAAqB,EAAA,SAAA,EAAU,0BAA0B,EAC5E,QAAA,EAAAA,GAAA,CAAC,IAAI,EAAA,EAAC,UAAU,EAAC,iBAAiB,EAAC,KAAK,EAAC,WAAW,EAAC,QAAQ,EACxD,IAAA,EAAA,QAAA,EAAA,KAAK,GACH,EACL,CAAA,EACL,WAAW,KACRA,aACI,SAAS,EAAE,MAAM,CAAC,2BAA2B,aACrC,gCAAgC,EAAA,QAAA,EAExCA,IAAC,IAAI,EAAA,EAAC,UAAU,EAAC,iBAAiB,EAAC,KAAK,EAAC,WAAW,EAAC,QAAQ,kBACxD,WAAW,EAAA,CACT,GACL,CACT,CAAA,EAAA,CACC,CACT,EACA,QAAQ,CACP,EAAA,CAAA,EACR;AACN,CAAC,EACH;AAEF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB;;;;"}
1
+ {"version":3,"file":"Widget.js","sources":["src/Widget.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { AIResponseWidgetProps } from '@hh.ru/magritte-ui-ai-response/types';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './ai-response.less';\n\nexport const AIResponseWidget = forwardRef<HTMLDivElement, AIResponseWidgetProps>(\n ({ children, className, title, description, ...props }, ref) => {\n return (\n <div\n {...props}\n className={classnames(className, styles.aiResponseWidget)}\n data-qa=\"ai-response-widget\"\n ref={ref}\n >\n {title && (\n <div className={styles.aiResponseWidgetHeader} data-qa=\"ai-response-widget-header\">\n <div className={styles.aiResponseWidgetTitle} data-qa=\"ai-response-widget-title\">\n <Text typography=\"label-3-regular\" style=\"secondary\" ellipsis>\n {title}\n </Text>\n </div>\n {description && (\n <div\n className={styles.aiResponseWidgetDescription}\n data-qa=\"ai-response-widget-description\"\n >\n <Text typography=\"label-3-regular\" style=\"secondary\" ellipsis>\n {description}\n </Text>\n </div>\n )}\n </div>\n )}\n {children}\n </div>\n );\n }\n);\n\nAIResponseWidget.displayName = 'AIResponseWidget';\n"],"names":[],"mappings":";;;;;;AAQO,MAAM,gBAAmB,GAAA,UAAA;AAAA,EAC5B,CAAC,EAAE,QAAU,EAAA,SAAA,EAAW,OAAO,WAAa,EAAA,GAAG,KAAM,EAAA,EAAG,GAAQ,KAAA;AAC5D,IACI,uBAAA,IAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACI,GAAG,KAAA;AAAA,QACJ,SAAW,EAAA,UAAA,CAAW,SAAW,EAAA,MAAA,CAAO,gBAAgB,CAAA;AAAA,QACxD,SAAQ,EAAA,oBAAA;AAAA,QACR,GAAA;AAAA,QAEC,QAAA,EAAA;AAAA,UAAA,KAAA,yBACI,KAAI,EAAA,EAAA,SAAA,EAAW,MAAO,CAAA,sBAAA,EAAwB,WAAQ,2BACnD,EAAA,QAAA,EAAA;AAAA,4BAAA,GAAA,CAAC,KAAI,EAAA,EAAA,SAAA,EAAW,MAAO,CAAA,qBAAA,EAAuB,WAAQ,0BAClD,EAAA,QAAA,kBAAA,GAAA,CAAC,IAAK,EAAA,EAAA,UAAA,EAAW,mBAAkB,KAAM,EAAA,WAAA,EAAY,QAAQ,EAAA,IAAA,EACxD,iBACL,CACJ,EAAA,CAAA;AAAA,YACC,WACG,oBAAA,GAAA;AAAA,cAAC,KAAA;AAAA,cAAA;AAAA,gBACG,WAAW,MAAO,CAAA,2BAAA;AAAA,gBAClB,SAAQ,EAAA,gCAAA;AAAA,gBAER,QAAA,kBAAA,GAAA,CAAC,QAAK,UAAW,EAAA,iBAAA,EAAkB,OAAM,WAAY,EAAA,QAAA,EAAQ,MACxD,QACL,EAAA,WAAA,EAAA,CAAA;AAAA,eAAA;AAAA,aACJ;AAAA,WAER,EAAA,CAAA;AAAA,UAEH,QAAA;AAAA,SAAA;AAAA,OAAA;AAAA,KACL,CAAA;AAAA,GAER;AACJ,EAAA;AAEA,gBAAA,CAAiB,WAAc,GAAA,kBAAA;;;;"}
@@ -0,0 +1,5 @@
1
+ import './index.css';
2
+ var styles = {"ai-response":"magritte-ai-response___fHP9l_1-1-8","aiResponse":"magritte-ai-response___fHP9l_1-1-8","ai-response-formatted-text":"magritte-ai-response-formatted-text___qlnHr_1-1-8","aiResponseFormattedText":"magritte-ai-response-formatted-text___qlnHr_1-1-8","ai-response-quote":"magritte-ai-response-quote___EPf0K_1-1-8","aiResponseQuote":"magritte-ai-response-quote___EPf0K_1-1-8","ai-response-quote-body":"magritte-ai-response-quote-body___XcSxJ_1-1-8","aiResponseQuoteBody":"magritte-ai-response-quote-body___XcSxJ_1-1-8","ai-response-widget":"magritte-ai-response-widget___793mH_1-1-8","aiResponseWidget":"magritte-ai-response-widget___793mH_1-1-8","ai-response-widget-header":"magritte-ai-response-widget-header___-0dPU_1-1-8","aiResponseWidgetHeader":"magritte-ai-response-widget-header___-0dPU_1-1-8","ai-response-widget-title":"magritte-ai-response-widget-title___cXgvh_1-1-8","aiResponseWidgetTitle":"magritte-ai-response-widget-title___cXgvh_1-1-8","ai-response-widget-description":"magritte-ai-response-widget-description___cpMDO_1-1-8","aiResponseWidgetDescription":"magritte-ai-response-widget-description___cpMDO_1-1-8","ai-response-actions":"magritte-ai-response-actions___mWyV8_1-1-8","aiResponseActions":"magritte-ai-response-actions___mWyV8_1-1-8"};
3
+
4
+ export { styles as s };
5
+ //# sourceMappingURL=ai-response-BaYsw79Z.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-response-BaYsw79Z.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
package/index.css CHANGED
@@ -1,50 +1,50 @@
1
1
  :root{
2
- --magritte-color-background-tertiary-v26-0-0:#DCE3EB;
2
+ --magritte-color-background-tertiary-v26-0-1:#DCE3EB;
3
3
  }
4
4
 
5
5
  .magritte-night-theme{
6
- --magritte-color-background-tertiary-v26-0-0:#474747;
6
+ --magritte-color-background-tertiary-v26-0-1:#474747;
7
7
  }
8
- .magritte-ai-response___fHP9l_1-1-7{
8
+ .magritte-ai-response___fHP9l_1-1-8{
9
9
  display:flex;
10
10
  flex-direction:column;
11
11
  gap:16px;
12
12
  padding:0 16px;
13
13
  }
14
- .magritte-ai-response-formatted-text___qlnHr_1-1-7{
14
+ .magritte-ai-response-formatted-text___qlnHr_1-1-8{
15
15
  display:flex;
16
16
  flex-direction:column;
17
17
  gap:12px;
18
18
  }
19
- .magritte-ai-response-quote___EPf0K_1-1-7{
19
+ .magritte-ai-response-quote___EPf0K_1-1-8{
20
20
  display:flex;
21
21
  flex-direction:column;
22
22
  gap:8px;
23
23
  }
24
- .magritte-ai-response-quote-body___XcSxJ_1-1-7{
25
- border-left:2px solid var(--magritte-color-background-tertiary-v26-0-0);
24
+ .magritte-ai-response-quote-body___XcSxJ_1-1-8{
25
+ border-left:2px solid var(--magritte-color-background-tertiary-v26-0-1);
26
26
  padding-left:12px;
27
27
  }
28
- .magritte-ai-response-widget___793mH_1-1-7{
28
+ .magritte-ai-response-widget___793mH_1-1-8{
29
29
  display:flex;
30
30
  flex-direction:column;
31
31
  gap:12px;
32
32
  }
33
- .magritte-ai-response-widget-header___-0dPU_1-1-7{
33
+ .magritte-ai-response-widget-header___-0dPU_1-1-8{
34
34
  display:flex;
35
35
  gap:12px;
36
36
  overflow:hidden;
37
37
  }
38
- .magritte-ai-response-widget-title___cXgvh_1-1-7{
38
+ .magritte-ai-response-widget-title___cXgvh_1-1-8{
39
39
  flex:1 1 auto;
40
40
  min-width:0;
41
41
  }
42
- .magritte-ai-response-widget-description___cpMDO_1-1-7{
42
+ .magritte-ai-response-widget-description___cpMDO_1-1-8{
43
43
  flex:0 9999 auto;
44
44
  min-width:24px;
45
45
  text-align:right;
46
46
  }
47
- .magritte-ai-response-actions___mWyV8_1-1-7{
47
+ .magritte-ai-response-actions___mWyV8_1-1-8{
48
48
  display:flex;
49
49
  flex-wrap:wrap;
50
50
  gap:2px;
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from '@hh.ru/magritte-ui-ai-response/AIResponse';
2
- export * from '@hh.ru/magritte-ui-ai-response/types';
1
+ export * from './AIResponse';
2
+ export * from './types';
package/index.js CHANGED
@@ -7,7 +7,7 @@ import './FormattedText.js';
7
7
  import '@hh.ru/magritte-ui-text-list';
8
8
  import '@hh.ru/magritte-ui-title';
9
9
  import '@hh.ru/magritte-ui-typography';
10
- import './ai-response-BUkQ0nIE.js';
10
+ import './ai-response-BaYsw79Z.js';
11
11
  import './Quote.js';
12
12
  import './Widget.js';
13
13
  import '@hh.ru/magritte-ui-icon';
package/index.mock.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from '@hh.ru/magritte-ui-ai-response/types';
1
+ export * from './types';
2
2
  export declare const AIResponse: import("react").ForwardRefExoticComponent<Record<string, unknown>> & {
3
3
  FormattedText: import("react").ForwardRefExoticComponent<Record<string, unknown>>;
4
4
  Quote: import("react").ForwardRefExoticComponent<Record<string, unknown>>;
package/index.mock.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import './index.css';
2
2
  import { mockComponent } from '@hh.ru/magritte-ui-mock-component';
3
3
 
4
- const FormattedText = mockComponent('AIResponse.FormattedText', undefined, { withChildren: true });
5
- const Quote = mockComponent('AIResponse.Quote', undefined, { withChildren: true });
6
- const Widget = mockComponent('AIResponse.Widget', undefined, { withChildren: true });
7
- const AIResponse = Object.assign(mockComponent('AIResponse', undefined, { withChildren: true }), {
8
- FormattedText,
9
- Quote,
10
- Widget,
4
+ const FormattedText = mockComponent("AIResponse.FormattedText", void 0, { withChildren: true });
5
+ const Quote = mockComponent("AIResponse.Quote", void 0, { withChildren: true });
6
+ const Widget = mockComponent("AIResponse.Widget", void 0, { withChildren: true });
7
+ const AIResponse = Object.assign(mockComponent("AIResponse", void 0, { withChildren: true }), {
8
+ FormattedText,
9
+ Quote,
10
+ Widget
11
11
  });
12
12
 
13
13
  export { AIResponse };
package/index.mock.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport * from '@hh.ru/magritte-ui-ai-response/types';\n\nconst FormattedText = mockComponent('AIResponse.FormattedText', undefined, { withChildren: true });\n\nconst Quote = mockComponent('AIResponse.Quote', undefined, { withChildren: true });\n\nconst Widget = mockComponent('AIResponse.Widget', undefined, { withChildren: true });\n\nexport const AIResponse = Object.assign(mockComponent('AIResponse', undefined, { withChildren: true }), {\n FormattedText,\n Quote,\n Widget,\n});\n"],"names":[],"mappings":";;AAIA,MAAM,aAAa,GAAG,aAAa,CAAC,0BAA0B,EAAE,SAAS,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;AAEnG,MAAM,KAAK,GAAG,aAAa,CAAC,kBAAkB,EAAE,SAAS,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;AAEnF,MAAM,MAAM,GAAG,aAAa,CAAC,mBAAmB,EAAE,SAAS,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;MAExE,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,YAAY,EAAE,SAAS,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,EAAE;IACpG,aAAa;IACb,KAAK;IACL,MAAM;AACT,CAAA;;;;"}
1
+ {"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport * from '@hh.ru/magritte-ui-ai-response/types';\n\nconst FormattedText = mockComponent('AIResponse.FormattedText', undefined, { withChildren: true });\n\nconst Quote = mockComponent('AIResponse.Quote', undefined, { withChildren: true });\n\nconst Widget = mockComponent('AIResponse.Widget', undefined, { withChildren: true });\n\nexport const AIResponse = Object.assign(mockComponent('AIResponse', undefined, { withChildren: true }), {\n FormattedText,\n Quote,\n Widget,\n});\n"],"names":[],"mappings":";;AAIA,MAAM,gBAAgB,aAAc,CAAA,0BAAA,EAA4B,QAAW,EAAE,YAAA,EAAc,MAAM,CAAA,CAAA;AAEjG,MAAM,QAAQ,aAAc,CAAA,kBAAA,EAAoB,QAAW,EAAE,YAAA,EAAc,MAAM,CAAA,CAAA;AAEjF,MAAM,SAAS,aAAc,CAAA,mBAAA,EAAqB,QAAW,EAAE,YAAA,EAAc,MAAM,CAAA,CAAA;AAEtE,MAAA,UAAA,GAAa,MAAO,CAAA,MAAA,CAAO,aAAc,CAAA,YAAA,EAAc,QAAW,EAAE,YAAA,EAAc,IAAK,EAAC,CAAG,EAAA;AAAA,EACpG,aAAA;AAAA,EACA,KAAA;AAAA,EACA,MAAA;AACJ,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-ai-response",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -19,12 +19,12 @@
19
19
  "watch": "yarn root:watch $(pwd)"
20
20
  },
21
21
  "dependencies": {
22
- "@hh.ru/magritte-design-tokens": "26.0.0",
23
- "@hh.ru/magritte-ui-icon": "15.1.4",
22
+ "@hh.ru/magritte-design-tokens": "26.0.1",
23
+ "@hh.ru/magritte-ui-icon": "15.1.5",
24
24
  "@hh.ru/magritte-ui-mock-component": "1.1.8",
25
- "@hh.ru/magritte-ui-text-list": "1.1.48",
26
- "@hh.ru/magritte-ui-title": "8.3.13",
27
- "@hh.ru/magritte-ui-typography": "5.3.15"
25
+ "@hh.ru/magritte-ui-text-list": "1.1.49",
26
+ "@hh.ru/magritte-ui-title": "8.3.14",
27
+ "@hh.ru/magritte-ui-typography": "5.3.16"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "classnames": ">=2.3.2",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "b0ff5da48fb29d516c8289082560ee1882d16986"
36
+ "gitHead": "f6539d7a0e7cd42dd851458db1de04a748bbee03"
37
37
  }
@@ -1,5 +0,0 @@
1
- import './index.css';
2
- var styles = {"ai-response":"magritte-ai-response___fHP9l_1-1-7","aiResponse":"magritte-ai-response___fHP9l_1-1-7","ai-response-formatted-text":"magritte-ai-response-formatted-text___qlnHr_1-1-7","aiResponseFormattedText":"magritte-ai-response-formatted-text___qlnHr_1-1-7","ai-response-quote":"magritte-ai-response-quote___EPf0K_1-1-7","aiResponseQuote":"magritte-ai-response-quote___EPf0K_1-1-7","ai-response-quote-body":"magritte-ai-response-quote-body___XcSxJ_1-1-7","aiResponseQuoteBody":"magritte-ai-response-quote-body___XcSxJ_1-1-7","ai-response-widget":"magritte-ai-response-widget___793mH_1-1-7","aiResponseWidget":"magritte-ai-response-widget___793mH_1-1-7","ai-response-widget-header":"magritte-ai-response-widget-header___-0dPU_1-1-7","aiResponseWidgetHeader":"magritte-ai-response-widget-header___-0dPU_1-1-7","ai-response-widget-title":"magritte-ai-response-widget-title___cXgvh_1-1-7","aiResponseWidgetTitle":"magritte-ai-response-widget-title___cXgvh_1-1-7","ai-response-widget-description":"magritte-ai-response-widget-description___cpMDO_1-1-7","aiResponseWidgetDescription":"magritte-ai-response-widget-description___cpMDO_1-1-7","ai-response-actions":"magritte-ai-response-actions___mWyV8_1-1-7","aiResponseActions":"magritte-ai-response-actions___mWyV8_1-1-7"};
3
-
4
- export { styles as s };
5
- //# sourceMappingURL=ai-response-BUkQ0nIE.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-response-BUkQ0nIE.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}