@hh.ru/magritte-ui-chat-bubble 3.0.10 → 3.1.1
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/Button.d.ts +10 -0
- package/Button.js +12 -0
- package/Button.js.map +1 -0
- package/Call.js +4 -2
- package/Call.js.map +1 -1
- package/ChatBubble.d.ts +2 -0
- package/ChatBubble.js +5 -2
- package/ChatBubble.js.map +1 -1
- package/File.js +4 -2
- package/File.js.map +1 -1
- package/Label.js +1 -1
- package/Media.js +1 -1
- package/Message.js +1 -1
- package/Meta.js +1 -1
- package/Reply.js +1 -1
- package/Snippet.js +1 -1
- package/Status.js +1 -1
- package/Tail.js +1 -1
- package/chat-bubble-B7cbFSTw.js +5 -0
- package/chat-bubble-B7cbFSTw.js.map +1 -0
- package/index.css +72 -88
- package/index.d.ts +1 -0
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/index.mock.d.ts +2 -0
- package/index.mock.js +2 -0
- package/index.mock.js.map +1 -1
- package/package.json +5 -5
- package/chat-bubble-Ba0sFLOr.js +0 -5
- package/chat-bubble-Ba0sFLOr.js.map +0 -1
package/Button.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PolymorphicComponentWithRef } from '@hh.ru/magritte-types';
|
|
2
|
+
import { type ButtonProps } from '@hh.ru/magritte-ui-button';
|
|
3
|
+
export type ChatBubbleButtonProps = ButtonProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Занимает обе колонки сетки вместо одной
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
wide?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const ChatBubbleButton: PolymorphicComponentWithRef<ChatBubbleButtonProps, 'button'>;
|
package/Button.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import classnames from 'classnames';
|
|
5
|
+
import { Button } from '@hh.ru/magritte-ui-button';
|
|
6
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
7
|
+
|
|
8
|
+
const ChatBubbleButtonRenderFunc = ({ wide = false, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: classnames({ [styles.buttonWide]: wide }), children: /* @__PURE__ */ jsx(Button, { ...props, ref }) });
|
|
9
|
+
const ChatBubbleButton = forwardRef(ChatBubbleButtonRenderFunc);
|
|
10
|
+
|
|
11
|
+
export { ChatBubbleButton };
|
|
12
|
+
//# sourceMappingURL=Button.js.map
|
package/Button.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["src/Button.tsx"],"sourcesContent":["import { forwardRef, type Ref } from 'react';\nimport classnames from 'classnames';\n\nimport type { PolymorphicComponentWithRef, PolymorphicForwardRefRenderFunc } from '@hh.ru/magritte-types';\nimport { Button, type ButtonProps } from '@hh.ru/magritte-ui-button';\n\nimport styles from './chat-bubble.less';\n\nexport type ChatBubbleButtonProps = ButtonProps & {\n /**\n * Занимает обе колонки сетки вместо одной\n * @default false\n */\n wide?: boolean;\n};\n\n/**\n * Кнопка под сообщением. Размер и стиль задаёт `ChatBubble`, ширину в сетке — свойство `wide`\n */\nconst ChatBubbleButtonRenderFunc: PolymorphicForwardRefRenderFunc<ChatBubbleButtonProps, 'button'> = (\n { wide = false, ...props },\n ref\n) => (\n <div className={classnames({ [styles.buttonWide]: wide })}>\n <Button {...(props as ButtonProps)} ref={ref as Ref<HTMLButtonElement>} />\n </div>\n);\n\nexport const ChatBubbleButton = forwardRef(ChatBubbleButtonRenderFunc) as PolymorphicComponentWithRef<\n ChatBubbleButtonProps,\n 'button'\n>;\n"],"names":[],"mappings":";;;;;;AAmBA,MAAM,0BAAA,GAA+F,CACjG,EAAE,IAAO,GAAA,KAAA,EAAO,GAAG,KAAA,EACnB,EAAA,GAAA,qBAEC,GAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,UAAA,CAAW,EAAE,CAAC,MAAA,CAAO,UAAU,GAAG,IAAK,EAAC,CACpD,EAAA,QAAA,kBAAA,GAAA,CAAC,MAAQ,EAAA,EAAA,GAAI,KAAuB,EAAA,GAAA,EAAoC,CAC5E,EAAA,CAAA,CAAA;AAGS,MAAA,gBAAA,GAAmB,WAAW,0BAA0B;;;;"}
|
package/Call.js
CHANGED
|
@@ -6,7 +6,7 @@ import { useChatBubbleColors } from './internal/colors.js';
|
|
|
6
6
|
import { useChatBubbleMode } from './internal/mode.js';
|
|
7
7
|
import { markMetaHost } from './internal/utils.js';
|
|
8
8
|
import { PhoneCrossFilledSize24, PhoneArrowOutFilledSize24, PhoneArrowInFilledSize24 } from '@hh.ru/magritte-ui-icon/icon';
|
|
9
|
-
import { s as styles } from './chat-bubble-
|
|
9
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
10
10
|
|
|
11
11
|
const ChatBubbleCallComponent = forwardRef(
|
|
12
12
|
({ "data-qa": dataQa = "chat-bubble-call", title, description, meta, state = "connected", ...props }, ref) => {
|
|
@@ -38,6 +38,8 @@ const ChatBubbleCallComponent = forwardRef(
|
|
|
38
38
|
type: "subtitle",
|
|
39
39
|
style: state === "not-connected" && mode === "incoming" ? "negative" : colors.secondaryText,
|
|
40
40
|
maxLines: 1,
|
|
41
|
+
gap: 0,
|
|
42
|
+
side: meta,
|
|
41
43
|
"data-qa": "chat-bubble-call-description",
|
|
42
44
|
children: description
|
|
43
45
|
}
|
|
@@ -45,7 +47,7 @@ const ChatBubbleCallComponent = forwardRef(
|
|
|
45
47
|
]
|
|
46
48
|
}
|
|
47
49
|
),
|
|
48
|
-
meta
|
|
50
|
+
!description && meta
|
|
49
51
|
] });
|
|
50
52
|
}
|
|
51
53
|
);
|
package/Call.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Call.js","sources":["src/Call.tsx"],"sourcesContent":["import { forwardRef, type HTMLAttributes, type ReactNode } from 'react';\n\nimport { Cell, CellText } from '@hh.ru/magritte-ui-cell';\nimport { useChatBubbleColors } from '@hh.ru/magritte-ui-chat-bubble/internal/colors';\nimport { useChatBubbleMode } from '@hh.ru/magritte-ui-chat-bubble/internal/mode';\nimport { markMetaHost, type ChatBubbleMetaHostProps } from '@hh.ru/magritte-ui-chat-bubble/internal/utils';\nimport {\n PhoneArrowInFilledSize24,\n PhoneArrowOutFilledSize24,\n PhoneCrossFilledSize24,\n} from '@hh.ru/magritte-ui-icon/icon';\n\nimport styles from './chat-bubble.less';\n\nexport type ChatBubbleCallState = 'connected' | 'not-connected';\n\ntype ChatBubbleCallHelper = HTMLAttributes<HTMLDivElement> & ChatBubbleMetaHostProps;\n\nexport interface ChatBubbleCallProps extends Omit<ChatBubbleCallHelper, 'children' | 'title'> {\n /** Заголовок */\n title?: ReactNode;\n /**\n * Строка под заголовком (например, для длительности звонка)\n */\n description?: ReactNode;\n /**\n * Состояние звонка\n * @default connected\n */\n state?: ChatBubbleCallState;\n /**\n * Значение data-qa\n * @default chat-bubble-call\n */\n 'data-qa'?: string;\n}\n\n/** Входящий/исходящий звонок */\nconst ChatBubbleCallComponent = forwardRef<HTMLDivElement, ChatBubbleCallProps>(\n ({ 'data-qa': dataQa = 'chat-bubble-call', title, description, meta, state = 'connected', ...props }, ref) => {\n const mode = useChatBubbleMode();\n const colors = useChatBubbleColors();\n // у несостоявшегося звонка - крестик в любом режиме, иначе - стрелка по направлению\n const connectedIcon = mode === 'outgoing' ? PhoneArrowOutFilledSize24 : PhoneArrowInFilledSize24;\n const Icon = state === 'connected' ? connectedIcon : PhoneCrossFilledSize24;\n\n return (\n <div {...props} className={styles.file} data-qa={dataQa} ref={ref}>\n <Cell\n align=\"center\"\n horPadding={false}\n vertPadding={false}\n left={\n <Icon\n initialColor={colors.fileIcon}\n backgroundStyle={colors.fileIconBackground}\n padding={12}\n borderRadius={8}\n />\n }\n >\n <CellText type=\"title\" style={colors.text} maxLines={1} data-qa=\"chat-bubble-call-name\">\n {title}\n </CellText>\n {description && (\n <CellText\n type=\"subtitle\"\n style={state === 'not-connected' && mode === 'incoming' ? 'negative' : colors.secondaryText}\n maxLines={1}\n data-qa=\"chat-bubble-call-description\"\n >\n {description}\n </CellText>\n )}\n </Cell>\n {meta}\n </div>\n );\n }\n);\n\nChatBubbleCallComponent.displayName = 'ChatBubbleCall';\n\nexport const ChatBubbleCall = markMetaHost(ChatBubbleCallComponent);\n"],"names":[],"mappings":";;;;;;;;;AAsCA,MAAM,uBAA0B,GAAA,UAAA;AAAA,EAC5B,CAAC,EAAE,SAAW,EAAA,MAAA,GAAS,kBAAoB,EAAA,KAAA,EAAO,WAAa,EAAA,IAAA,EAAM,KAAQ,GAAA,WAAA,EAAa,GAAG,KAAA,IAAS,GAAQ,KAAA;AAC1G,IAAA,MAAM,OAAO,iBAAkB,EAAA,CAAA;AAC/B,IAAA,MAAM,SAAS,mBAAoB,EAAA,CAAA;AAEnC,IAAM,MAAA,aAAA,GAAgB,IAAS,KAAA,UAAA,GAAa,yBAA4B,GAAA,wBAAA,CAAA;AACxE,IAAM,MAAA,IAAA,GAAO,KAAU,KAAA,WAAA,GAAc,aAAgB,GAAA,sBAAA,CAAA;AAErD,IACI,uBAAA,IAAA,CAAC,SAAK,GAAG,KAAA,EAAO,WAAW,MAAO,CAAA,IAAA,EAAM,SAAS,EAAA,MAAA,EAAQ,GACrD,EAAA,QAAA,EAAA;AAAA,sBAAA,IAAA;AAAA,QAAC,IAAA;AAAA,QAAA;AAAA,UACG,KAAM,EAAA,QAAA;AAAA,UACN,UAAY,EAAA,KAAA;AAAA,UACZ,WAAa,EAAA,KAAA;AAAA,UACb,IACI,kBAAA,GAAA;AAAA,YAAC,IAAA;AAAA,YAAA;AAAA,cACG,cAAc,MAAO,CAAA,QAAA;AAAA,cACrB,iBAAiB,MAAO,CAAA,kBAAA;AAAA,cACxB,OAAS,EAAA,EAAA;AAAA,cACT,YAAc,EAAA,CAAA;AAAA,aAAA;AAAA,WAClB;AAAA,UAGJ,QAAA,EAAA;AAAA,4BAAC,GAAA,CAAA,QAAA,EAAA,EAAS,IAAK,EAAA,OAAA,EAAQ,KAAO,EAAA,MAAA,CAAO,MAAM,QAAU,EAAA,CAAA,EAAG,SAAQ,EAAA,uBAAA,EAC3D,QACL,EAAA,KAAA,EAAA,CAAA;AAAA,YACC,WACG,oBAAA,GAAA;AAAA,cAAC,QAAA;AAAA,cAAA;AAAA,gBACG,IAAK,EAAA,UAAA;AAAA,gBACL,OAAO,KAAU,KAAA,eAAA,IAAmB,IAAS,KAAA,UAAA,GAAa,aAAa,MAAO,CAAA,aAAA;AAAA,gBAC9E,QAAU,EAAA,CAAA;AAAA,gBACV,SAAQ,EAAA,8BAAA;AAAA,gBAEP,QAAA,EAAA,WAAA;AAAA,eAAA;AAAA,aACL;AAAA,WAAA;AAAA,SAAA;AAAA,OAER;AAAA,MACC,IAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"Call.js","sources":["src/Call.tsx"],"sourcesContent":["import { forwardRef, type HTMLAttributes, type ReactNode } from 'react';\n\nimport { Cell, CellText } from '@hh.ru/magritte-ui-cell';\nimport { useChatBubbleColors } from '@hh.ru/magritte-ui-chat-bubble/internal/colors';\nimport { useChatBubbleMode } from '@hh.ru/magritte-ui-chat-bubble/internal/mode';\nimport { markMetaHost, type ChatBubbleMetaHostProps } from '@hh.ru/magritte-ui-chat-bubble/internal/utils';\nimport {\n PhoneArrowInFilledSize24,\n PhoneArrowOutFilledSize24,\n PhoneCrossFilledSize24,\n} from '@hh.ru/magritte-ui-icon/icon';\n\nimport styles from './chat-bubble.less';\n\nexport type ChatBubbleCallState = 'connected' | 'not-connected';\n\ntype ChatBubbleCallHelper = HTMLAttributes<HTMLDivElement> & ChatBubbleMetaHostProps;\n\nexport interface ChatBubbleCallProps extends Omit<ChatBubbleCallHelper, 'children' | 'title'> {\n /** Заголовок */\n title?: ReactNode;\n /**\n * Строка под заголовком (например, для длительности звонка)\n */\n description?: ReactNode;\n /**\n * Состояние звонка\n * @default connected\n */\n state?: ChatBubbleCallState;\n /**\n * Значение data-qa\n * @default chat-bubble-call\n */\n 'data-qa'?: string;\n}\n\n/** Входящий/исходящий звонок */\nconst ChatBubbleCallComponent = forwardRef<HTMLDivElement, ChatBubbleCallProps>(\n ({ 'data-qa': dataQa = 'chat-bubble-call', title, description, meta, state = 'connected', ...props }, ref) => {\n const mode = useChatBubbleMode();\n const colors = useChatBubbleColors();\n // у несостоявшегося звонка - крестик в любом режиме, иначе - стрелка по направлению\n const connectedIcon = mode === 'outgoing' ? PhoneArrowOutFilledSize24 : PhoneArrowInFilledSize24;\n const Icon = state === 'connected' ? connectedIcon : PhoneCrossFilledSize24;\n\n return (\n <div {...props} className={styles.file} data-qa={dataQa} ref={ref}>\n <Cell\n align=\"center\"\n horPadding={false}\n vertPadding={false}\n left={\n <Icon\n initialColor={colors.fileIcon}\n backgroundStyle={colors.fileIconBackground}\n padding={12}\n borderRadius={8}\n />\n }\n >\n <CellText type=\"title\" style={colors.text} maxLines={1} data-qa=\"chat-bubble-call-name\">\n {title}\n </CellText>\n {description && (\n <CellText\n type=\"subtitle\"\n style={state === 'not-connected' && mode === 'incoming' ? 'negative' : colors.secondaryText}\n maxLines={1}\n gap={0}\n side={meta}\n data-qa=\"chat-bubble-call-description\"\n >\n {description}\n </CellText>\n )}\n </Cell>\n {!description && meta}\n </div>\n );\n }\n);\n\nChatBubbleCallComponent.displayName = 'ChatBubbleCall';\n\nexport const ChatBubbleCall = markMetaHost(ChatBubbleCallComponent);\n"],"names":[],"mappings":";;;;;;;;;AAsCA,MAAM,uBAA0B,GAAA,UAAA;AAAA,EAC5B,CAAC,EAAE,SAAW,EAAA,MAAA,GAAS,kBAAoB,EAAA,KAAA,EAAO,WAAa,EAAA,IAAA,EAAM,KAAQ,GAAA,WAAA,EAAa,GAAG,KAAA,IAAS,GAAQ,KAAA;AAC1G,IAAA,MAAM,OAAO,iBAAkB,EAAA,CAAA;AAC/B,IAAA,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eAAA;AAAA,aACL;AAAA,WAAA;AAAA,SAAA;AAAA,OAER;AAAA,MACC,CAAC,WAAe,IAAA,IAAA;AAAA,KACrB,EAAA,CAAA,CAAA;AAAA,GAER;AACJ,CAAA,CAAA;AAEA,uBAAA,CAAwB,WAAc,GAAA,gBAAA,CAAA;AAEzB,MAAA,cAAA,GAAiB,aAAa,uBAAuB;;;;"}
|
package/ChatBubble.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ChatBubbleButton } from './Button';
|
|
1
2
|
import { ChatBubbleCall } from './Call';
|
|
2
3
|
import { ChatBubbleErrorAction } from './ErrorAction';
|
|
3
4
|
import { ChatBubbleFile } from './File';
|
|
@@ -9,6 +10,7 @@ import { ChatBubbleSnippet } from './Snippet';
|
|
|
9
10
|
import { ChatBubbleStatus } from './Status';
|
|
10
11
|
import type { ChatBubbleProps } from './types';
|
|
11
12
|
interface ChatBubbleComponents {
|
|
13
|
+
Button: typeof ChatBubbleButton;
|
|
12
14
|
Call: typeof ChatBubbleCall;
|
|
13
15
|
ErrorAction: typeof ChatBubbleErrorAction;
|
|
14
16
|
File: typeof ChatBubbleFile;
|
package/ChatBubble.js
CHANGED
|
@@ -4,6 +4,7 @@ import { forwardRef, useRef, useState, useCallback, useMemo, cloneElement } from
|
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { useCloseByClickOutside } from '@hh.ru/magritte-common-mouse';
|
|
6
6
|
import { ButtonDefaultPropsContext } from '@hh.ru/magritte-ui-button';
|
|
7
|
+
import { ChatBubbleButton } from './Button.js';
|
|
7
8
|
import { ChatBubbleCall } from './Call.js';
|
|
8
9
|
import { ChatBubbleErrorAction } from './ErrorAction.js';
|
|
9
10
|
import { ChatBubbleFile } from './File.js';
|
|
@@ -22,7 +23,7 @@ import { flattenFragments, isMetaHost } from './internal/utils.js';
|
|
|
22
23
|
import { ExclamationCircleFilledSize24 } from '@hh.ru/magritte-ui-icon/icon';
|
|
23
24
|
import { Menu } from '@hh.ru/magritte-ui-menu';
|
|
24
25
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
25
|
-
import { s as styles } from './chat-bubble-
|
|
26
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
26
27
|
import '@hh.ru/magritte-ui-cell';
|
|
27
28
|
import '@hh.ru/magritte-ui-link';
|
|
28
29
|
import '@hh.ru/magritte-ui-loader';
|
|
@@ -71,7 +72,8 @@ const ChatBubble = forwardRef(
|
|
|
71
72
|
"div",
|
|
72
73
|
{
|
|
73
74
|
className: classnames(className, styles.chatBubble, styles[mode], {
|
|
74
|
-
[styles.withTail]: showTail
|
|
75
|
+
[styles.withTail]: showTail,
|
|
76
|
+
[styles.withButtons]: Boolean(buttons)
|
|
75
77
|
}),
|
|
76
78
|
"data-qa": dataQa,
|
|
77
79
|
ref,
|
|
@@ -133,6 +135,7 @@ const ChatBubble = forwardRef(
|
|
|
133
135
|
}
|
|
134
136
|
);
|
|
135
137
|
ChatBubble.displayName = "ChatBubble";
|
|
138
|
+
ChatBubble.Button = ChatBubbleButton;
|
|
136
139
|
ChatBubble.Call = ChatBubbleCall;
|
|
137
140
|
ChatBubble.ErrorAction = ChatBubbleErrorAction;
|
|
138
141
|
ChatBubble.File = ChatBubbleFile;
|
package/ChatBubble.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatBubble.js","sources":["src/ChatBubble.tsx"],"sourcesContent":["import { cloneElement, forwardRef, useCallback, useState, useMemo, useRef } from 'react';\nimport classnames from 'classnames';\n\nimport { useCloseByClickOutside } from '@hh.ru/magritte-common-mouse';\nimport { ButtonDefaultPropsContext, type ButtonProps } from '@hh.ru/magritte-ui-button';\nimport { ChatBubbleCall } from '@hh.ru/magritte-ui-chat-bubble/Call';\nimport { ChatBubbleErrorAction } from '@hh.ru/magritte-ui-chat-bubble/ErrorAction';\nimport { ChatBubbleFile } from '@hh.ru/magritte-ui-chat-bubble/File';\nimport { ChatBubbleLabel } from '@hh.ru/magritte-ui-chat-bubble/Label';\nimport { ChatBubbleMedia } from '@hh.ru/magritte-ui-chat-bubble/Media';\nimport { ChatBubbleMessage } from '@hh.ru/magritte-ui-chat-bubble/Message';\nimport { Meta } from '@hh.ru/magritte-ui-chat-bubble/Meta';\nimport { ChatBubbleReply } from '@hh.ru/magritte-ui-chat-bubble/Reply';\nimport { ChatBubbleSnippet } from '@hh.ru/magritte-ui-chat-bubble/Snippet';\nimport { ChatBubbleStatus } from '@hh.ru/magritte-ui-chat-bubble/Status';\nimport { Tail } from '@hh.ru/magritte-ui-chat-bubble/Tail';\nimport { getColors } from '@hh.ru/magritte-ui-chat-bubble/internal/colors';\nimport { ChatBubbleErrorMenuProvider } from '@hh.ru/magritte-ui-chat-bubble/internal/errorMenu';\nimport { ChatBubbleModeProvider } from '@hh.ru/magritte-ui-chat-bubble/internal/mode';\nimport { isMetaHost, flattenFragments } from '@hh.ru/magritte-ui-chat-bubble/internal/utils';\nimport type { ChatBubbleProps } from '@hh.ru/magritte-ui-chat-bubble/types';\nimport { ExclamationCircleFilledSize24 } from '@hh.ru/magritte-ui-icon/icon';\nimport { Menu } from '@hh.ru/magritte-ui-menu';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './chat-bubble.less';\n\ninterface ChatBubbleComponents {\n Call: typeof ChatBubbleCall;\n ErrorAction: typeof ChatBubbleErrorAction;\n File: typeof ChatBubbleFile;\n Label: typeof ChatBubbleLabel;\n Media: typeof ChatBubbleMedia;\n Message: typeof ChatBubbleMessage;\n Reply: typeof ChatBubbleReply;\n Snippet: typeof ChatBubbleSnippet;\n Status: typeof ChatBubbleStatus;\n}\n\nexport const ChatBubble = forwardRef<HTMLDivElement, ChatBubbleProps>(\n (\n {\n aside,\n buttons,\n children,\n header,\n edited,\n errorActions,\n mode = 'incoming',\n showTail = false,\n status,\n time,\n error = false,\n errorText,\n 'data-qa': dataQa = 'chat-bubble',\n className,\n },\n ref\n ) => {\n const rowRef = useRef<HTMLDivElement>(null);\n const activatorMenuRef = useRef<SVGElement>(null);\n\n const [menuVisible, setMenuVisible] = useState(false);\n const closeErrorMenu = useCallback(() => setMenuVisible(false), []);\n\n const [asideShow, setAsideShow] = useState(false);\n const showAside = useCallback(() => setAsideShow(true), []);\n const hideAside = useCallback(() => setAsideShow(false), []);\n\n // скрываем aside при кликах вне\n useCloseByClickOutside(rowRef, hideAside, asideShow);\n\n const colors = getColors(mode);\n const buttonsProps: Partial<ButtonProps> = useMemo(\n () => ({ size: 'small', stretched: true, ...colors.button }),\n [colors]\n );\n /**\n * Время отдаём последнему элементу контента\n * Позиция времени меняется, в зависимости от компонента\n * Если последний ребенок не может отрисовать, вставим meta в самый конец\n */\n const meta = <Meta mode={mode} status={status} time={time} edited={edited} />;\n const items = flattenFragments(children);\n const lastIndex = items.length - 1;\n const metaHosted = isMetaHost(items[lastIndex]);\n const content = items.map((child, index) =>\n index === lastIndex && isMetaHost(child) ? cloneElement(child, { meta }) : child\n );\n return (\n <ChatBubbleModeProvider value={mode}>\n <div\n className={classnames(className, styles.chatBubble, styles[mode], {\n [styles.withTail]: showTail,\n })}\n data-qa={dataQa}\n ref={ref}\n >\n <div\n className={styles.row}\n onMouseEnter={aside ? showAside : undefined}\n onMouseLeave={aside ? hideAside : undefined}\n onClick={aside ? showAside : undefined}\n ref={rowRef}\n >\n <div className={styles.bubble}>\n {header}\n {content}\n {!metaHosted && meta}\n {showTail && <Tail />}\n </div>\n {mode === 'outgoing' && error && (\n <div>\n <ExclamationCircleFilledSize24\n ref={activatorMenuRef}\n initialColor=\"negative\"\n onClick={errorActions ? () => setMenuVisible((visible) => !visible) : undefined}\n data-qa=\"chat-bubble-error-button\"\n aria-haspopup={errorActions ? 'menu' : undefined}\n aria-expanded={errorActions ? menuVisible : undefined}\n />\n {errorActions && (\n <Menu\n activatorRef={activatorMenuRef}\n onClose={closeErrorMenu}\n placement=\"bottom-right\"\n visible={menuVisible}\n >\n <ChatBubbleErrorMenuProvider value={closeErrorMenu}>\n {errorActions}\n </ChatBubbleErrorMenuProvider>\n </Menu>\n )}\n </div>\n )}\n {aside && (\n <div\n className={classnames(styles.aside, { [styles.asideRevealed]: asideShow })}\n data-qa=\"chat-bubble-aside\"\n >\n {aside}\n </div>\n )}\n </div>\n {mode === 'outgoing' && error && errorText && (\n <div className={styles.errorText} data-qa=\"chat-bubble-error-text\">\n <Text typography=\"label-4-regular\" style=\"negative\" maxLines={2}>\n {errorText}\n </Text>\n </div>\n )}\n {buttons && (\n <ButtonDefaultPropsContext props={buttonsProps}>\n <div className={styles.buttons} data-qa=\"chat-bubble-buttons\">\n {buttons}\n </div>\n </ButtonDefaultPropsContext>\n )}\n </div>\n </ChatBubbleModeProvider>\n );\n }\n) as React.ForwardRefExoticComponent<ChatBubbleProps & React.RefAttributes<HTMLDivElement>> & ChatBubbleComponents;\n\nChatBubble.displayName = 'ChatBubble';\n\nChatBubble.Call = ChatBubbleCall;\nChatBubble.ErrorAction = ChatBubbleErrorAction;\nChatBubble.File = ChatBubbleFile;\nChatBubble.Label = ChatBubbleLabel;\nChatBubble.Media = ChatBubbleMedia;\nChatBubble.Message = ChatBubbleMessage;\nChatBubble.Reply = ChatBubbleReply;\nChatBubble.Snippet = ChatBubbleSnippet;\nChatBubble.Status = ChatBubbleStatus;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCO,MAAM,UAAa,GAAA,UAAA;AAAA,EACtB,CACI;AAAA,IACI,KAAA;AAAA,IACA,OAAA;AAAA,IACA,QAAA;AAAA,IACA,MAAA;AAAA,IACA,MAAA;AAAA,IACA,YAAA;AAAA,IACA,IAAO,GAAA,UAAA;AAAA,IACP,QAAW,GAAA,KAAA;AAAA,IACX,MAAA;AAAA,IACA,IAAA;AAAA,IACA,KAAQ,GAAA,KAAA;AAAA,IACR,SAAA;AAAA,IACA,WAAW,MAAS,GAAA,aAAA;AAAA,IACpB,SAAA;AAAA,KAEJ,GACC,KAAA;AACD,IAAM,MAAA,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,EAAA,QAAA,kBAAA,GAAA,CAAC,KAAI,EAAA,EAAA,SAAA,EAAW,MAAO,CAAA,OAAA,EAAS,SAAQ,EAAA,qBAAA,EACnC,mBACL,CACJ,EAAA,CAAA;AAAA,SAAA;AAAA,OAAA;AAAA,KAGZ,EAAA,CAAA,CAAA;AAAA,GAER;AACJ,EAAA;AAEA,UAAA,CAAW,WAAc,GAAA,YAAA,CAAA;AAEzB,UAAA,CAAW,IAAO,GAAA,cAAA,CAAA;AAClB,UAAA,CAAW,WAAc,GAAA,qBAAA,CAAA;AACzB,UAAA,CAAW,IAAO,GAAA,cAAA,CAAA;AAClB,UAAA,CAAW,KAAQ,GAAA,eAAA,CAAA;AACnB,UAAA,CAAW,KAAQ,GAAA,eAAA,CAAA;AACnB,UAAA,CAAW,OAAU,GAAA,iBAAA,CAAA;AACrB,UAAA,CAAW,KAAQ,GAAA,eAAA,CAAA;AACnB,UAAA,CAAW,OAAU,GAAA,iBAAA,CAAA;AACrB,UAAA,CAAW,MAAS,GAAA,gBAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"ChatBubble.js","sources":["src/ChatBubble.tsx"],"sourcesContent":["import { cloneElement, forwardRef, useCallback, useState, useMemo, useRef } from 'react';\nimport classnames from 'classnames';\n\nimport { useCloseByClickOutside } from '@hh.ru/magritte-common-mouse';\nimport { ButtonDefaultPropsContext, type ButtonProps } from '@hh.ru/magritte-ui-button';\nimport { ChatBubbleButton } from '@hh.ru/magritte-ui-chat-bubble/Button';\nimport { ChatBubbleCall } from '@hh.ru/magritte-ui-chat-bubble/Call';\nimport { ChatBubbleErrorAction } from '@hh.ru/magritte-ui-chat-bubble/ErrorAction';\nimport { ChatBubbleFile } from '@hh.ru/magritte-ui-chat-bubble/File';\nimport { ChatBubbleLabel } from '@hh.ru/magritte-ui-chat-bubble/Label';\nimport { ChatBubbleMedia } from '@hh.ru/magritte-ui-chat-bubble/Media';\nimport { ChatBubbleMessage } from '@hh.ru/magritte-ui-chat-bubble/Message';\nimport { Meta } from '@hh.ru/magritte-ui-chat-bubble/Meta';\nimport { ChatBubbleReply } from '@hh.ru/magritte-ui-chat-bubble/Reply';\nimport { ChatBubbleSnippet } from '@hh.ru/magritte-ui-chat-bubble/Snippet';\nimport { ChatBubbleStatus } from '@hh.ru/magritte-ui-chat-bubble/Status';\nimport { Tail } from '@hh.ru/magritte-ui-chat-bubble/Tail';\nimport { getColors } from '@hh.ru/magritte-ui-chat-bubble/internal/colors';\nimport { ChatBubbleErrorMenuProvider } from '@hh.ru/magritte-ui-chat-bubble/internal/errorMenu';\nimport { ChatBubbleModeProvider } from '@hh.ru/magritte-ui-chat-bubble/internal/mode';\nimport { isMetaHost, flattenFragments } from '@hh.ru/magritte-ui-chat-bubble/internal/utils';\nimport type { ChatBubbleProps } from '@hh.ru/magritte-ui-chat-bubble/types';\nimport { ExclamationCircleFilledSize24 } from '@hh.ru/magritte-ui-icon/icon';\nimport { Menu } from '@hh.ru/magritte-ui-menu';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './chat-bubble.less';\n\ninterface ChatBubbleComponents {\n Button: typeof ChatBubbleButton;\n Call: typeof ChatBubbleCall;\n ErrorAction: typeof ChatBubbleErrorAction;\n File: typeof ChatBubbleFile;\n Label: typeof ChatBubbleLabel;\n Media: typeof ChatBubbleMedia;\n Message: typeof ChatBubbleMessage;\n Reply: typeof ChatBubbleReply;\n Snippet: typeof ChatBubbleSnippet;\n Status: typeof ChatBubbleStatus;\n}\n\nexport const ChatBubble = forwardRef<HTMLDivElement, ChatBubbleProps>(\n (\n {\n aside,\n buttons,\n children,\n header,\n edited,\n errorActions,\n mode = 'incoming',\n showTail = false,\n status,\n time,\n error = false,\n errorText,\n 'data-qa': dataQa = 'chat-bubble',\n className,\n },\n ref\n ) => {\n const rowRef = useRef<HTMLDivElement>(null);\n const activatorMenuRef = useRef<SVGElement>(null);\n\n const [menuVisible, setMenuVisible] = useState(false);\n const closeErrorMenu = useCallback(() => setMenuVisible(false), []);\n\n const [asideShow, setAsideShow] = useState(false);\n const showAside = useCallback(() => setAsideShow(true), []);\n const hideAside = useCallback(() => setAsideShow(false), []);\n\n // скрываем aside при кликах вне\n useCloseByClickOutside(rowRef, hideAside, asideShow);\n\n const colors = getColors(mode);\n const buttonsProps: Partial<ButtonProps> = useMemo(\n () => ({ size: 'small', stretched: true, ...colors.button }),\n [colors]\n );\n /**\n * Время отдаём последнему элементу контента\n * Позиция времени меняется, в зависимости от компонента\n * Если последний ребенок не может отрисовать, вставим meta в самый конец\n */\n const meta = <Meta mode={mode} status={status} time={time} edited={edited} />;\n const items = flattenFragments(children);\n const lastIndex = items.length - 1;\n const metaHosted = isMetaHost(items[lastIndex]);\n const content = items.map((child, index) =>\n index === lastIndex && isMetaHost(child) ? cloneElement(child, { meta }) : child\n );\n return (\n <ChatBubbleModeProvider value={mode}>\n <div\n className={classnames(className, styles.chatBubble, styles[mode], {\n [styles.withTail]: showTail,\n [styles.withButtons]: Boolean(buttons),\n })}\n data-qa={dataQa}\n ref={ref}\n >\n <div\n className={styles.row}\n onMouseEnter={aside ? showAside : undefined}\n onMouseLeave={aside ? hideAside : undefined}\n onClick={aside ? showAside : undefined}\n ref={rowRef}\n >\n <div className={styles.bubble}>\n {header}\n {content}\n {!metaHosted && meta}\n {showTail && <Tail />}\n </div>\n {mode === 'outgoing' && error && (\n <div>\n <ExclamationCircleFilledSize24\n ref={activatorMenuRef}\n initialColor=\"negative\"\n onClick={errorActions ? () => setMenuVisible((visible) => !visible) : undefined}\n data-qa=\"chat-bubble-error-button\"\n aria-haspopup={errorActions ? 'menu' : undefined}\n aria-expanded={errorActions ? menuVisible : undefined}\n />\n {errorActions && (\n <Menu\n activatorRef={activatorMenuRef}\n onClose={closeErrorMenu}\n placement=\"bottom-right\"\n visible={menuVisible}\n >\n <ChatBubbleErrorMenuProvider value={closeErrorMenu}>\n {errorActions}\n </ChatBubbleErrorMenuProvider>\n </Menu>\n )}\n </div>\n )}\n {aside && (\n <div\n className={classnames(styles.aside, { [styles.asideRevealed]: asideShow })}\n data-qa=\"chat-bubble-aside\"\n >\n {aside}\n </div>\n )}\n </div>\n {mode === 'outgoing' && error && errorText && (\n <div className={styles.errorText} data-qa=\"chat-bubble-error-text\">\n <Text typography=\"label-4-regular\" style=\"negative\" maxLines={2}>\n {errorText}\n </Text>\n </div>\n )}\n {buttons && (\n <ButtonDefaultPropsContext props={buttonsProps}>\n <div className={styles.buttons} data-qa=\"chat-bubble-buttons\">\n {buttons}\n </div>\n </ButtonDefaultPropsContext>\n )}\n </div>\n </ChatBubbleModeProvider>\n );\n }\n) as React.ForwardRefExoticComponent<ChatBubbleProps & React.RefAttributes<HTMLDivElement>> & ChatBubbleComponents;\n\nChatBubble.displayName = 'ChatBubble';\n\nChatBubble.Button = ChatBubbleButton;\nChatBubble.Call = ChatBubbleCall;\nChatBubble.ErrorAction = ChatBubbleErrorAction;\nChatBubble.File = ChatBubbleFile;\nChatBubble.Label = ChatBubbleLabel;\nChatBubble.Media = ChatBubbleMedia;\nChatBubble.Message = ChatBubbleMessage;\nChatBubble.Reply = ChatBubbleReply;\nChatBubble.Snippet = ChatBubbleSnippet;\nChatBubble.Status = ChatBubbleStatus;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCO,MAAM,UAAa,GAAA,UAAA;AAAA,EACtB,CACI;AAAA,IACI,KAAA;AAAA,IACA,OAAA;AAAA,IACA,QAAA;AAAA,IACA,MAAA;AAAA,IACA,MAAA;AAAA,IACA,YAAA;AAAA,IACA,IAAO,GAAA,UAAA;AAAA,IACP,QAAW,GAAA,KAAA;AAAA,IACX,MAAA;AAAA,IACA,IAAA;AAAA,IACA,KAAQ,GAAA,KAAA;AAAA,IACR,SAAA;AAAA,IACA,WAAW,MAAS,GAAA,aAAA;AAAA,IACpB,SAAA;AAAA,KAEJ,GACC,KAAA;AACD,IAAM,MAAA,MAAA,GAAS,OAAuB,IAAI,CAAA,CAAA;AAC1C,IAAM,MAAA,gB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9B,EAAA,QAAA,kBAAA,GAAA,CAAC,KAAI,EAAA,EAAA,SAAA,EAAW,MAAO,CAAA,OAAA,EAAS,SAAQ,EAAA,qBAAA,EACnC,mBACL,CACJ,EAAA,CAAA;AAAA,SAAA;AAAA,OAAA;AAAA,KAGZ,EAAA,CAAA,CAAA;AAAA,GAER;AACJ,EAAA;AAEA,UAAA,CAAW,WAAc,GAAA,YAAA,CAAA;AAEzB,UAAA,CAAW,MAAS,GAAA,gBAAA,CAAA;AACpB,UAAA,CAAW,IAAO,GAAA,cAAA,CAAA;AAClB,UAAA,CAAW,WAAc,GAAA,qBAAA,CAAA;AACzB,UAAA,CAAW,IAAO,GAAA,cAAA,CAAA;AAClB,UAAA,CAAW,KAAQ,GAAA,eAAA,CAAA;AACnB,UAAA,CAAW,KAAQ,GAAA,eAAA,CAAA;AACnB,UAAA,CAAW,OAAU,GAAA,iBAAA,CAAA;AACrB,UAAA,CAAW,KAAQ,GAAA,eAAA,CAAA;AACnB,UAAA,CAAW,OAAU,GAAA,iBAAA,CAAA;AACrB,UAAA,CAAW,MAAS,GAAA,gBAAA;;;;"}
|
package/File.js
CHANGED
|
@@ -7,7 +7,7 @@ import { markMetaHost } from './internal/utils.js';
|
|
|
7
7
|
import { ArrowDownLineOutlinedSize24, DocumentOutlinedSize24, ExclamationTriangleOutlinedSize16 } from '@hh.ru/magritte-ui-icon/icon';
|
|
8
8
|
import { LinkDefaultPropsContext } from '@hh.ru/magritte-ui-link';
|
|
9
9
|
import { Loader } from '@hh.ru/magritte-ui-loader';
|
|
10
|
-
import { s as styles } from './chat-bubble-
|
|
10
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
11
11
|
import './internal/mode.js';
|
|
12
12
|
|
|
13
13
|
const ChatBubbleFileComponent = forwardRef(
|
|
@@ -59,6 +59,8 @@ const ChatBubbleFileComponent = forwardRef(
|
|
|
59
59
|
style: colors.secondaryText,
|
|
60
60
|
maxLines: 1,
|
|
61
61
|
left: leftSlot,
|
|
62
|
+
gap: 0,
|
|
63
|
+
side: meta,
|
|
62
64
|
"data-qa": "chat-bubble-file-description",
|
|
63
65
|
children: /* @__PURE__ */ jsx(LinkDefaultPropsContext, { props: defaultLinkProps, children: description })
|
|
64
66
|
}
|
|
@@ -66,7 +68,7 @@ const ChatBubbleFileComponent = forwardRef(
|
|
|
66
68
|
]
|
|
67
69
|
}
|
|
68
70
|
),
|
|
69
|
-
meta
|
|
71
|
+
!description && meta
|
|
70
72
|
] });
|
|
71
73
|
}
|
|
72
74
|
);
|
package/File.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"File.js","sources":["src/File.tsx"],"sourcesContent":["import { forwardRef, type HTMLAttributes, type ReactNode, useMemo } from 'react';\n\nimport { Cell, CellText } from '@hh.ru/magritte-ui-cell';\nimport { useChatBubbleColors } from '@hh.ru/magritte-ui-chat-bubble/internal/colors';\nimport { markMetaHost, type ChatBubbleMetaHostProps } from '@hh.ru/magritte-ui-chat-bubble/internal/utils';\nimport {\n ArrowDownLineOutlinedSize24,\n DocumentOutlinedSize24,\n ExclamationTriangleOutlinedSize16,\n} from '@hh.ru/magritte-ui-icon/icon';\nimport { LinkDefaultPropsContext } from '@hh.ru/magritte-ui-link';\nimport { Loader } from '@hh.ru/magritte-ui-loader';\n\nimport styles from './chat-bubble.less';\n\nexport type ChatBubbleFileState = 'unloaded' | 'loading' | 'preview' | 'loaded' | 'invalid';\n\ntype ChatBubbleFileHelper = HTMLAttributes<HTMLDivElement> & ChatBubbleMetaHostProps;\n\nexport interface ChatBubbleFileProps extends Omit<ChatBubbleFileHelper, 'children'> {\n /** Имя файла */\n name?: ReactNode;\n /**\n * Строка под именем (например, для размера файла и действия с ним)\n */\n description?: ReactNode;\n /**\n * Состояние файла\n * @default loaded\n */\n state?: ChatBubbleFileState;\n /** Url превью файла, показывается в состоянии `preview` */\n preview?: string;\n /** Alt превью файла */\n previewAlt?: string;\n /**\n * Значение data-qa\n * @default chat-bubble-file\n */\n 'data-qa'?: string;\n}\n\n/** Прикреплённый файл */\nconst ChatBubbleFileComponent = forwardRef<HTMLDivElement, ChatBubbleFileProps>(\n (\n {\n 'data-qa': dataQa = 'chat-bubble-file',\n description,\n meta,\n name,\n preview,\n state = 'loaded',\n previewAlt,\n ...props\n },\n ref\n ) => {\n const colors = useChatBubbleColors();\n const isLoading = state === 'loading';\n // пока файл не скачан, на иконке стрелка\n const Icon = state === 'unloaded' || isLoading ? ArrowDownLineOutlinedSize24 : DocumentOutlinedSize24;\n\n const defaultLinkProps = useMemo(\n () => ({ ...colors.link, typography: 'label-3-regular' as const, inline: true }),\n [colors]\n );\n\n let leftSlot: ReactNode;\n if (isLoading) {\n leftSlot = <Loader size={16} color={colors.secondaryIcon} />;\n } else if (state === 'invalid') {\n leftSlot = <ExclamationTriangleOutlinedSize16 initialColor=\"negative\" />;\n }\n\n return (\n <div {...props} className={styles.file} data-qa={dataQa} ref={ref}>\n <Cell\n align=\"center\"\n horPadding={false}\n vertPadding={false}\n left={\n state === 'preview' && preview ? (\n <img className={styles.filePreview} src={preview} alt={previewAlt ?? ''} />\n ) : (\n <Icon\n initialColor={colors.fileIcon}\n backgroundStyle={colors.fileIconBackground}\n padding={12}\n borderRadius={8}\n />\n )\n }\n >\n <CellText type=\"title\" style={colors.text} maxLines={1} data-qa=\"chat-bubble-file-name\">\n {name}\n </CellText>\n {description && (\n <CellText\n type=\"subtitle\"\n style={colors.secondaryText}\n maxLines={1}\n left={leftSlot}\n data-qa=\"chat-bubble-file-description\"\n >\n <LinkDefaultPropsContext props={defaultLinkProps}>{description}</LinkDefaultPropsContext>\n </CellText>\n )}\n </Cell>\n {meta}\n </div>\n );\n }\n);\n\nChatBubbleFileComponent.displayName = 'ChatBubbleFile';\n\nexport const ChatBubbleFile = markMetaHost(ChatBubbleFileComponent);\n"],"names":[],"mappings":";;;;;;;;;;;AA2CA,MAAM,uBAA0B,GAAA,UAAA;AAAA,EAC5B,CACI;AAAA,IACI,WAAW,M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,MAAO,CAAA,WAAA,EAAa,GAAK,EAAA,OAAA,EAAS,GAAK,EAAA,UAAA,IAAc,IAAI,CAEzE,mBAAA,GAAA;AAAA,YAAC,IAAA;AAAA,YAAA;AAAA,cACG,cAAc,MAAO,CAAA,QAAA;AAAA,cACrB,iBAAiB,MAAO,CAAA,kBAAA;AAAA,cACxB,OAAS,EAAA,EAAA;AAAA,cACT,YAAc,EAAA,CAAA;AAAA,aAAA;AAAA,WAClB;AAAA,UAIR,QAAA,EAAA;AAAA,4BAAC,GAAA,CAAA,QAAA,EAAA,EAAS,IAAK,EAAA,OAAA,EAAQ,KAAO,EAAA,MAAA,CAAO,MAAM,QAAU,EAAA,CAAA,EAAG,SAAQ,EAAA,uBAAA,EAC3D,QACL,EAAA,IAAA,EAAA,CAAA;AAAA,YACC,WACG,oBAAA,GAAA;AAAA,cAAC,QAAA;AAAA,cAAA;AAAA,gBACG,IAAK,EAAA,UAAA;AAAA,gBACL,OAAO,MAAO,CAAA,aAAA;AAAA,gBACd,QAAU,EAAA,CAAA;AAAA,gBACV,IAAM,EAAA,QAAA;AAAA,gBACN,SAAQ,EAAA,8BAAA;AAAA,gBAER,QAAC,kBAAA,GAAA,CAAA,uBAAA,EAAA,EAAwB,KAAO,EAAA,gBAAA,EAAmB,QAAY,EAAA,WAAA,EAAA,CAAA;AAAA,eAAA;AAAA,aACnE;AAAA,WAAA;AAAA,SAAA;AAAA,OAER;AAAA,MACC,IAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"File.js","sources":["src/File.tsx"],"sourcesContent":["import { forwardRef, type HTMLAttributes, type ReactNode, useMemo } from 'react';\n\nimport { Cell, CellText } from '@hh.ru/magritte-ui-cell';\nimport { useChatBubbleColors } from '@hh.ru/magritte-ui-chat-bubble/internal/colors';\nimport { markMetaHost, type ChatBubbleMetaHostProps } from '@hh.ru/magritte-ui-chat-bubble/internal/utils';\nimport {\n ArrowDownLineOutlinedSize24,\n DocumentOutlinedSize24,\n ExclamationTriangleOutlinedSize16,\n} from '@hh.ru/magritte-ui-icon/icon';\nimport { LinkDefaultPropsContext } from '@hh.ru/magritte-ui-link';\nimport { Loader } from '@hh.ru/magritte-ui-loader';\n\nimport styles from './chat-bubble.less';\n\nexport type ChatBubbleFileState = 'unloaded' | 'loading' | 'preview' | 'loaded' | 'invalid';\n\ntype ChatBubbleFileHelper = HTMLAttributes<HTMLDivElement> & ChatBubbleMetaHostProps;\n\nexport interface ChatBubbleFileProps extends Omit<ChatBubbleFileHelper, 'children'> {\n /** Имя файла */\n name?: ReactNode;\n /**\n * Строка под именем (например, для размера файла и действия с ним)\n */\n description?: ReactNode;\n /**\n * Состояние файла\n * @default loaded\n */\n state?: ChatBubbleFileState;\n /** Url превью файла, показывается в состоянии `preview` */\n preview?: string;\n /** Alt превью файла */\n previewAlt?: string;\n /**\n * Значение data-qa\n * @default chat-bubble-file\n */\n 'data-qa'?: string;\n}\n\n/** Прикреплённый файл */\nconst ChatBubbleFileComponent = forwardRef<HTMLDivElement, ChatBubbleFileProps>(\n (\n {\n 'data-qa': dataQa = 'chat-bubble-file',\n description,\n meta,\n name,\n preview,\n state = 'loaded',\n previewAlt,\n ...props\n },\n ref\n ) => {\n const colors = useChatBubbleColors();\n const isLoading = state === 'loading';\n // пока файл не скачан, на иконке стрелка\n const Icon = state === 'unloaded' || isLoading ? ArrowDownLineOutlinedSize24 : DocumentOutlinedSize24;\n\n const defaultLinkProps = useMemo(\n () => ({ ...colors.link, typography: 'label-3-regular' as const, inline: true }),\n [colors]\n );\n\n let leftSlot: ReactNode;\n if (isLoading) {\n leftSlot = <Loader size={16} color={colors.secondaryIcon} />;\n } else if (state === 'invalid') {\n leftSlot = <ExclamationTriangleOutlinedSize16 initialColor=\"negative\" />;\n }\n\n return (\n <div {...props} className={styles.file} data-qa={dataQa} ref={ref}>\n <Cell\n align=\"center\"\n horPadding={false}\n vertPadding={false}\n left={\n state === 'preview' && preview ? (\n <img className={styles.filePreview} src={preview} alt={previewAlt ?? ''} />\n ) : (\n <Icon\n initialColor={colors.fileIcon}\n backgroundStyle={colors.fileIconBackground}\n padding={12}\n borderRadius={8}\n />\n )\n }\n >\n <CellText type=\"title\" style={colors.text} maxLines={1} data-qa=\"chat-bubble-file-name\">\n {name}\n </CellText>\n {description && (\n <CellText\n type=\"subtitle\"\n style={colors.secondaryText}\n maxLines={1}\n left={leftSlot}\n gap={0}\n side={meta}\n data-qa=\"chat-bubble-file-description\"\n >\n <LinkDefaultPropsContext props={defaultLinkProps}>{description}</LinkDefaultPropsContext>\n </CellText>\n )}\n </Cell>\n {!description && meta}\n </div>\n );\n }\n);\n\nChatBubbleFileComponent.displayName = 'ChatBubbleFile';\n\nexport const ChatBubbleFile = markMetaHost(ChatBubbleFileComponent);\n"],"names":[],"mappings":";;;;;;;;;;;AA2CA,MAAM,uBAA0B,GAAA,UAAA;AAAA,EAC5B,CACI;AAAA,IACI,WAAW,MAAS,GAAA,kBAAA;AAAA,IACpB,WAAA;AAAA,IACA,IAAA;AAAA,IACA,IAAA;AAAA,IACA,OAAA;AAAA,IACA,KAAQ,GAAA,QAAA;AAAA,IACR,UAAA;AAAA,IACA,GAAG,KAAA;AAAA,KAEP,GACC,KAAA;AACD,IAAA,MAAM,SAAS,mBAAoB,EAAA,CAAA;AACnC,IAAA,MAAM,YAAY,KAAU,KAAA,SAAA,CAAA;AAE5B,IAAA,MAAM,IAAO,GAAA,KAAA,KAAU,UAAc,IAAA,SAAA,GAAY,2BAA8B,GAAA,sBAAA,CAAA;AAE/E,IAAA,MAAM,gBAAmB,GAAA,OAAA;AAAA,MACrB,OAAO,EAAE,GAAG,MAAA,CAAO,MAAM,UAAY,EAAA,iBAAA,EAA4B,QAAQ,IAAK,EAAA,CAAA;AAAA,MAC9E,CAAC,MAAM,CAAA;AAAA,KACX,CAAA;AAEA,IAAI,IAAA,QAAA,CAAA;AACJ,IAAA,IAAI,SAAW,EAAA;AACX,MAAA,QAAA,uBAAY,MAAO,EAAA,EAAA,IAAA,EAAM,EAAI,EA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AAAA,gBACN,GAAK,EAAA,CAAA;AAAA,gBACL,IAAM,EAAA,IAAA;AAAA,gBACN,SAAQ,EAAA,8BAAA;AAAA,gBAER,QAAC,kBAAA,GAAA,CAAA,uBAAA,EAAA,EAAwB,KAAO,EAAA,gBAAA,EAAmB,QAAY,EAAA,WAAA,EAAA,CAAA;AAAA,eAAA;AAAA,aACnE;AAAA,WAAA;AAAA,SAAA;AAAA,OAER;AAAA,MACC,CAAC,WAAe,IAAA,IAAA;AAAA,KACrB,EAAA,CAAA,CAAA;AAAA,GAER;AACJ,CAAA,CAAA;AAEA,uBAAA,CAAwB,WAAc,GAAA,gBAAA,CAAA;AAEzB,MAAA,cAAA,GAAiB,aAAa,uBAAuB;;;;"}
|
package/Label.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { useChatBubbleColors } from './internal/colors.js';
|
|
5
5
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
7
7
|
import './internal/mode.js';
|
|
8
8
|
|
|
9
9
|
const ChatBubbleLabel = forwardRef(({ children, ...props }, ref) => {
|
package/Media.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { markMetaHost } from './internal/utils.js';
|
|
5
5
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
7
7
|
|
|
8
8
|
const ChatBubbleMediaComponent = forwardRef(
|
|
9
9
|
({ alt, children, "data-qa": dataQa = "chat-bubble-media", meta, src, format, width, height, ...props }, ref) => {
|
package/Message.js
CHANGED
|
@@ -4,7 +4,7 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import { useChatBubbleColors } from './internal/colors.js';
|
|
5
5
|
import { markMetaHost } from './internal/utils.js';
|
|
6
6
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
7
|
-
import { s as styles } from './chat-bubble-
|
|
7
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
8
8
|
import './internal/mode.js';
|
|
9
9
|
|
|
10
10
|
const ChatBubbleMessageComponent = forwardRef(
|
package/Meta.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useTranslation } from '@hh.ru/magritte-common-use-translation';
|
|
4
4
|
import { getColors } from './internal/colors.js';
|
|
5
5
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
7
7
|
import './internal/mode.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
|
package/Reply.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { useChatBubbleColors } from './internal/colors.js';
|
|
5
5
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
7
7
|
import './internal/mode.js';
|
|
8
8
|
|
|
9
9
|
const ChatBubbleReply = forwardRef(
|
package/Snippet.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { useChatBubbleColors } from './internal/colors.js';
|
|
5
5
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
6
|
-
import { s as styles } from './chat-bubble-
|
|
6
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
7
7
|
import './internal/mode.js';
|
|
8
8
|
|
|
9
9
|
const ChatBubbleSnippetComponent = forwardRef(
|
package/Status.js
CHANGED
|
@@ -7,7 +7,7 @@ import { getColors } from './internal/colors.js';
|
|
|
7
7
|
import { useChatBubbleMode } from './internal/mode.js';
|
|
8
8
|
import { EyeOutlinedSize16, ClockOutlinedSize16, CheckOutlinedSize16, CheckDoubleOutlinedSize16, TrashOutlinedSize16 } from '@hh.ru/magritte-ui-icon/icon';
|
|
9
9
|
import { TooltipHover } from '@hh.ru/magritte-ui-tooltip';
|
|
10
|
-
import { s as styles } from './chat-bubble-
|
|
10
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
11
11
|
|
|
12
12
|
const ICON = {
|
|
13
13
|
sending: ClockOutlinedSize16,
|
package/Tail.js
CHANGED
|
@@ -2,7 +2,7 @@ import './index.css';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { useChatBubbleMode } from './internal/mode.js';
|
|
5
|
-
import { s as styles } from './chat-bubble-
|
|
5
|
+
import { s as styles } from './chat-bubble-B7cbFSTw.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
|
|
8
8
|
const OUTLINE = "M6.5 0C6.5 7.5 5.2 11.8 1.6 13.4C0.9 13.9 0.6 14.5 1.1 14.5H7";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"chat-bubble":"magritte-chat-bubble___ds9CP_3-1-1","chatBubble":"magritte-chat-bubble___ds9CP_3-1-1","outgoing":"magritte-outgoing___3n00o_3-1-1","bot":"magritte-bot___Z6vZA_3-1-1","row":"magritte-row___mQNnt_3-1-1","with-buttons":"magritte-with-buttons___L-ZmQ_3-1-1","withButtons":"magritte-with-buttons___L-ZmQ_3-1-1","bubble":"magritte-bubble___NVuDI_3-1-1","with-tail":"magritte-with-tail___IdixJ_3-1-1","withTail":"magritte-with-tail___IdixJ_3-1-1","tail":"magritte-tail___E2hdk_3-1-1","tail-outgoing":"magritte-tail-outgoing___Pn3MI_3-1-1","tailOutgoing":"magritte-tail-outgoing___Pn3MI_3-1-1","buttons":"magritte-buttons___yQqBi_3-1-1","button-wide":"magritte-button-wide___QBqmM_3-1-1","buttonWide":"magritte-button-wide___QBqmM_3-1-1","aside":"magritte-aside___bTex-_3-1-1","aside-revealed":"magritte-aside-revealed___CRBl7_3-1-1","asideRevealed":"magritte-aside-revealed___CRBl7_3-1-1","error-text":"magritte-error-text___1ZxWY_3-1-1","errorText":"magritte-error-text___1ZxWY_3-1-1","file":"magritte-file___k2IKy_3-1-1","file-preview":"magritte-file-preview___eJKu8_3-1-1","filePreview":"magritte-file-preview___eJKu8_3-1-1","media":"magritte-media___9jH2k_3-1-1","media-blur":"magritte-media-blur___TbiMa_3-1-1","mediaBlur":"magritte-media-blur___TbiMa_3-1-1","media-image":"magritte-media-image___G-FkF_3-1-1","mediaImage":"magritte-media-image___G-FkF_3-1-1","media-content":"magritte-media-content___n3XbD_3-1-1","mediaContent":"magritte-media-content___n3XbD_3-1-1","media-format":"magritte-media-format___AdfCK_3-1-1","mediaFormat":"magritte-media-format___AdfCK_3-1-1","media-meta":"magritte-media-meta___oSxxr_3-1-1","mediaMeta":"magritte-media-meta___oSxxr_3-1-1","reply":"magritte-reply___-QCK7_3-1-1","reply-preview":"magritte-reply-preview___qvlNT_3-1-1","replyPreview":"magritte-reply-preview___qvlNT_3-1-1","reply-body":"magritte-reply-body___f2xx7_3-1-1","replyBody":"magritte-reply-body___f2xx7_3-1-1","snippet":"magritte-snippet___8k9xb_3-1-1","meta":"magritte-meta___1qhjm_3-1-1","edited":"magritte-edited___m-zmB_3-1-1","status":"magritte-status___dHzCt_3-1-1","message-title":"magritte-message-title___dgBFk_3-1-1","messageTitle":"magritte-message-title___dgBFk_3-1-1","label":"magritte-label___i0Wyt_3-1-1","message":"magritte-message___7TEpw_3-1-1"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=chat-bubble-B7cbFSTw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-bubble-B7cbFSTw.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/index.css
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
--magritte-color-component-chat-bubble-snippet-background-outgoing-v26-0-2:#90ACC1;
|
|
39
39
|
--magritte-color-component-chat-bubble-snippet-line-incoming-v26-0-2:#557B96;
|
|
40
40
|
}
|
|
41
|
-
.magritte-chat-bubble___ds9CP_3-
|
|
41
|
+
.magritte-chat-bubble___ds9CP_3-1-1{
|
|
42
42
|
--magritte-chat-bubble-background:var(--magritte-color-component-chat-bubble-background-incoming-v26-0-2);
|
|
43
43
|
--magritte-chat-bubble-border:var(--magritte-color-component-chat-bubble-border-incoming-v26-0-2);
|
|
44
44
|
--magritte-chat-bubble-snippet-background:var(--magritte-color-component-chat-bubble-snippet-background-incoming-v26-0-2);
|
|
@@ -46,19 +46,9 @@
|
|
|
46
46
|
display:flex;
|
|
47
47
|
flex-direction:column;
|
|
48
48
|
align-items:flex-start;
|
|
49
|
-
max-width:calc(100% - 40px);
|
|
49
|
+
max-width:min(460px, calc(100% - 40px));
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
body.magritte-old-layout .magritte-chat-bubble___ds9CP_3-0-10{
|
|
53
|
-
max-width:min(460px, 100%);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
@media (min-width: 1024px){
|
|
57
|
-
body:not(.magritte-old-layout) .magritte-chat-bubble___ds9CP_3-0-10{
|
|
58
|
-
max-width:min(460px, 100%);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
.magritte-outgoing___3n00o_3-0-10{
|
|
51
|
+
.magritte-outgoing___3n00o_3-1-1{
|
|
62
52
|
--magritte-chat-bubble-background:var(--magritte-color-component-chat-bubble-background-outgoing-v26-0-2);
|
|
63
53
|
--magritte-chat-bubble-border:var(--magritte-color-component-chat-bubble-border-outgoing-v26-0-2);
|
|
64
54
|
--magritte-chat-bubble-snippet-background:var(--magritte-color-component-chat-bubble-snippet-background-outgoing-v26-0-2);
|
|
@@ -66,20 +56,26 @@
|
|
|
66
56
|
align-items:flex-end;
|
|
67
57
|
margin-left:auto;
|
|
68
58
|
}
|
|
69
|
-
.magritte-bot___Z6vZA_3-
|
|
59
|
+
.magritte-bot___Z6vZA_3-1-1{
|
|
70
60
|
--magritte-chat-bubble-background:var(--magritte-color-component-chat-bubble-background-bot-v26-0-2);
|
|
71
61
|
--magritte-chat-bubble-border:var(--magritte-color-component-chat-bubble-border-bot-v26-0-2);
|
|
72
62
|
--magritte-chat-bubble-snippet-background:var(--magritte-color-component-chat-bubble-snippet-background-bot-v26-0-2);
|
|
73
63
|
--magritte-chat-bubble-snippet-line:var(--magritte-color-component-chat-bubble-snippet-line-bot-v26-0-2);
|
|
74
64
|
}
|
|
75
|
-
.magritte-row___mQNnt_3-
|
|
65
|
+
.magritte-row___mQNnt_3-1-1{
|
|
76
66
|
display:flex;
|
|
77
67
|
position:relative;
|
|
78
68
|
align-items:flex-end;
|
|
79
69
|
gap:8px;
|
|
80
70
|
max-width:100%;
|
|
81
71
|
}
|
|
82
|
-
.magritte-
|
|
72
|
+
.magritte-with-buttons___L-ZmQ_3-1-1 .magritte-row___mQNnt_3-1-1{
|
|
73
|
+
align-self:stretch;
|
|
74
|
+
}
|
|
75
|
+
.magritte-with-buttons___L-ZmQ_3-1-1 .magritte-bubble___NVuDI_3-1-1{
|
|
76
|
+
flex-grow:1;
|
|
77
|
+
}
|
|
78
|
+
.magritte-bubble___NVuDI_3-1-1{
|
|
83
79
|
position:relative;
|
|
84
80
|
box-sizing:border-box;
|
|
85
81
|
min-width:0;
|
|
@@ -90,31 +86,34 @@
|
|
|
90
86
|
border-radius:20px;
|
|
91
87
|
overflow-wrap:break-word;
|
|
92
88
|
}
|
|
93
|
-
.magritte-with-tail___IdixJ_3-
|
|
89
|
+
.magritte-with-tail___IdixJ_3-1-1 .magritte-bubble___NVuDI_3-1-1{
|
|
94
90
|
border-bottom-left-radius:0;
|
|
95
91
|
}
|
|
96
|
-
.magritte-with-tail___IdixJ_3-
|
|
92
|
+
.magritte-with-tail___IdixJ_3-1-1.magritte-outgoing___3n00o_3-1-1 .magritte-bubble___NVuDI_3-1-1{
|
|
97
93
|
border-bottom-left-radius:20px;
|
|
98
94
|
border-bottom-right-radius:0;
|
|
99
95
|
}
|
|
100
|
-
.magritte-tail___E2hdk_3-
|
|
96
|
+
.magritte-tail___E2hdk_3-1-1{
|
|
101
97
|
position:absolute;
|
|
102
98
|
bottom:-1px;
|
|
103
99
|
left:-7px;
|
|
104
100
|
}
|
|
105
|
-
.magritte-tail-outgoing___Pn3MI_3-
|
|
101
|
+
.magritte-tail-outgoing___Pn3MI_3-1-1{
|
|
106
102
|
left:auto;
|
|
107
103
|
right:-7px;
|
|
108
104
|
transform:scaleX(-1);
|
|
109
105
|
}
|
|
110
|
-
.magritte-buttons___yQqBi_3-
|
|
106
|
+
.magritte-buttons___yQqBi_3-1-1{
|
|
111
107
|
display:grid;
|
|
112
|
-
grid-template-columns:repeat(2, 1fr);
|
|
108
|
+
grid-template-columns:repeat(2, minmax(0, 1fr));
|
|
113
109
|
gap:8px;
|
|
114
110
|
width:100%;
|
|
115
111
|
margin-top:4px;
|
|
116
112
|
}
|
|
117
|
-
.magritte-
|
|
113
|
+
.magritte-button-wide___QBqmM_3-1-1{
|
|
114
|
+
grid-column:span 2;
|
|
115
|
+
}
|
|
116
|
+
.magritte-aside___bTex-_3-1-1{
|
|
118
117
|
display:flex;
|
|
119
118
|
position:absolute;
|
|
120
119
|
top:0;
|
|
@@ -125,57 +124,42 @@
|
|
|
125
124
|
opacity:0;
|
|
126
125
|
transition:opacity var(--magritte-semantic-animation-time-s-duration-v26-0-2) ease-in-out;
|
|
127
126
|
}
|
|
128
|
-
.magritte-aside-revealed___CRBl7_3-
|
|
127
|
+
.magritte-aside-revealed___CRBl7_3-1-1{
|
|
129
128
|
opacity:1;
|
|
130
129
|
}
|
|
131
|
-
.magritte-outgoing___3n00o_3-
|
|
130
|
+
.magritte-outgoing___3n00o_3-1-1 .magritte-aside___bTex-_3-1-1{
|
|
132
131
|
left:auto;
|
|
133
132
|
right:100%;
|
|
134
133
|
padding-right:8px;
|
|
135
134
|
padding-left:0;
|
|
136
135
|
}
|
|
137
|
-
.magritte-
|
|
138
|
-
grid-column:span 2;
|
|
139
|
-
}
|
|
140
|
-
.magritte-error-text___1ZxWY_3-0-10{
|
|
136
|
+
.magritte-error-text___1ZxWY_3-1-1{
|
|
141
137
|
margin-top:2px;
|
|
142
138
|
}
|
|
143
|
-
.magritte-file___k2IKy_3-
|
|
139
|
+
.magritte-file___k2IKy_3-1-1{
|
|
144
140
|
display:flex;
|
|
145
141
|
align-items:flex-end;
|
|
146
142
|
}
|
|
147
|
-
.magritte-file-preview___eJKu8_3-
|
|
143
|
+
.magritte-file-preview___eJKu8_3-1-1{
|
|
148
144
|
display:block;
|
|
149
145
|
width:48px;
|
|
150
146
|
height:48px;
|
|
151
147
|
border-radius:8px;
|
|
152
148
|
object-fit:cover;
|
|
153
149
|
}
|
|
154
|
-
.magritte-media___9jH2k_3-
|
|
150
|
+
.magritte-media___9jH2k_3-1-1{
|
|
155
151
|
display:flex;
|
|
156
152
|
position:relative;
|
|
157
153
|
box-sizing:border-box;
|
|
158
154
|
min-width:120px;
|
|
159
155
|
min-height:120px;
|
|
160
|
-
max-
|
|
156
|
+
max-width:452px;
|
|
161
157
|
margin:0 -8px;
|
|
162
158
|
border-radius:16px;
|
|
163
159
|
overflow:hidden;
|
|
164
160
|
box-shadow:inset 0 0 0 1px var(--magritte-color-component-chat-bubble-border-image-v26-0-2);
|
|
165
161
|
}
|
|
166
|
-
|
|
167
|
-
body.magritte-old-layout .magritte-media___9jH2k_3-0-10{
|
|
168
|
-
max-width:452px;
|
|
169
|
-
max-height:452px;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
@media (min-width: 1024px){
|
|
173
|
-
body:not(.magritte-old-layout) .magritte-media___9jH2k_3-0-10{
|
|
174
|
-
max-width:452px;
|
|
175
|
-
max-height:452px;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
.magritte-media-blur___TbiMa_3-0-10{
|
|
162
|
+
.magritte-media-blur___TbiMa_3-1-1{
|
|
179
163
|
position:absolute;
|
|
180
164
|
top:-96px;
|
|
181
165
|
left:-96px;
|
|
@@ -185,7 +169,7 @@
|
|
|
185
169
|
filter:blur(48px);
|
|
186
170
|
object-fit:cover;
|
|
187
171
|
}
|
|
188
|
-
.magritte-media-image___G-FkF_3-
|
|
172
|
+
.magritte-media-image___G-FkF_3-1-1{
|
|
189
173
|
display:block;
|
|
190
174
|
position:relative;
|
|
191
175
|
height:auto;
|
|
@@ -195,23 +179,23 @@
|
|
|
195
179
|
object-fit:contain;
|
|
196
180
|
}
|
|
197
181
|
@media (min-width: 1020px){
|
|
198
|
-
body.magritte-old-layout .magritte-media-image___G-FkF_3-
|
|
182
|
+
body.magritte-old-layout .magritte-media-image___G-FkF_3-1-1{
|
|
199
183
|
max-height:452px;
|
|
200
184
|
}
|
|
201
185
|
}
|
|
202
186
|
@media (min-width: 1024px){
|
|
203
|
-
body:not(.magritte-old-layout) .magritte-media-image___G-FkF_3-
|
|
187
|
+
body:not(.magritte-old-layout) .magritte-media-image___G-FkF_3-1-1{
|
|
204
188
|
max-height:452px;
|
|
205
189
|
}
|
|
206
190
|
}
|
|
207
|
-
.magritte-media-content___n3XbD_3-
|
|
191
|
+
.magritte-media-content___n3XbD_3-1-1{
|
|
208
192
|
display:flex;
|
|
209
193
|
position:absolute;
|
|
210
194
|
inset:0;
|
|
211
195
|
align-items:center;
|
|
212
196
|
justify-content:center;
|
|
213
197
|
}
|
|
214
|
-
.magritte-media-format___AdfCK_3-
|
|
198
|
+
.magritte-media-format___AdfCK_3-1-1{
|
|
215
199
|
display:flex;
|
|
216
200
|
position:absolute;
|
|
217
201
|
padding:2px 8px;
|
|
@@ -221,7 +205,7 @@
|
|
|
221
205
|
top:4px;
|
|
222
206
|
left:4px;
|
|
223
207
|
}
|
|
224
|
-
.magritte-media-meta___oSxxr_3-
|
|
208
|
+
.magritte-media-meta___oSxxr_3-1-1{
|
|
225
209
|
--magritte-ui-text-color-override:var(--magritte-color-text-constant-v26-0-2);
|
|
226
210
|
display:flex;
|
|
227
211
|
position:absolute;
|
|
@@ -233,14 +217,14 @@
|
|
|
233
217
|
bottom:4px;
|
|
234
218
|
align-items:center;
|
|
235
219
|
}
|
|
236
|
-
.magritte-media-meta___oSxxr_3-
|
|
237
|
-
.magritte-media-meta___oSxxr_3-
|
|
220
|
+
.magritte-media-meta___oSxxr_3-1-1:empty,
|
|
221
|
+
.magritte-media-meta___oSxxr_3-1-1:has(> :empty){
|
|
238
222
|
display:none;
|
|
239
223
|
}
|
|
240
|
-
.magritte-media-meta___oSxxr_3-
|
|
224
|
+
.magritte-media-meta___oSxxr_3-1-1 > span{
|
|
241
225
|
margin-left:0;
|
|
242
226
|
}
|
|
243
|
-
.magritte-reply___-QCK7_3-
|
|
227
|
+
.magritte-reply___-QCK7_3-1-1{
|
|
244
228
|
display:flex;
|
|
245
229
|
position:relative;
|
|
246
230
|
padding:8px;
|
|
@@ -251,7 +235,7 @@
|
|
|
251
235
|
align-items:center;
|
|
252
236
|
gap:8px;
|
|
253
237
|
}
|
|
254
|
-
.magritte-reply___-QCK7_3-
|
|
238
|
+
.magritte-reply___-QCK7_3-1-1::before{
|
|
255
239
|
content:'';
|
|
256
240
|
position:absolute;
|
|
257
241
|
top:0;
|
|
@@ -260,7 +244,7 @@
|
|
|
260
244
|
width:4px;
|
|
261
245
|
background-color:var(--magritte-chat-bubble-snippet-line);
|
|
262
246
|
}
|
|
263
|
-
.magritte-reply-preview___qvlNT_3-
|
|
247
|
+
.magritte-reply-preview___qvlNT_3-1-1{
|
|
264
248
|
display:block;
|
|
265
249
|
flex-shrink:0;
|
|
266
250
|
width:40px;
|
|
@@ -270,12 +254,12 @@
|
|
|
270
254
|
outline-offset:-1px;
|
|
271
255
|
object-fit:cover;
|
|
272
256
|
}
|
|
273
|
-
.magritte-reply-body___f2xx7_3-
|
|
257
|
+
.magritte-reply-body___f2xx7_3-1-1{
|
|
274
258
|
display:flex;
|
|
275
259
|
flex-direction:column;
|
|
276
260
|
min-width:0;
|
|
277
261
|
}
|
|
278
|
-
.magritte-snippet___8k9xb_3-
|
|
262
|
+
.magritte-snippet___8k9xb_3-1-1{
|
|
279
263
|
display:flex;
|
|
280
264
|
position:relative;
|
|
281
265
|
padding:8px;
|
|
@@ -286,7 +270,7 @@
|
|
|
286
270
|
flex-direction:column;
|
|
287
271
|
gap:2px;
|
|
288
272
|
}
|
|
289
|
-
.magritte-snippet___8k9xb_3-
|
|
273
|
+
.magritte-snippet___8k9xb_3-1-1::before{
|
|
290
274
|
content:'';
|
|
291
275
|
position:absolute;
|
|
292
276
|
top:0;
|
|
@@ -295,7 +279,7 @@
|
|
|
295
279
|
width:4px;
|
|
296
280
|
background-color:var(--magritte-chat-bubble-snippet-line);
|
|
297
281
|
}
|
|
298
|
-
.magritte-snippet___8k9xb_3-
|
|
282
|
+
.magritte-snippet___8k9xb_3-1-1 img{
|
|
299
283
|
display:block;
|
|
300
284
|
max-width:100%;
|
|
301
285
|
border-radius:4px;
|
|
@@ -303,7 +287,7 @@
|
|
|
303
287
|
outline-offset:-1px;
|
|
304
288
|
margin-top:6px;
|
|
305
289
|
}
|
|
306
|
-
.magritte-meta___1qhjm_3-
|
|
290
|
+
.magritte-meta___1qhjm_3-1-1{
|
|
307
291
|
float:right;
|
|
308
292
|
margin-left:12px;
|
|
309
293
|
white-space:nowrap;
|
|
@@ -316,53 +300,53 @@
|
|
|
316
300
|
text-transform:none;
|
|
317
301
|
text-decoration:none;
|
|
318
302
|
}
|
|
319
|
-
.magritte-edited___m-zmB_3-
|
|
303
|
+
.magritte-edited___m-zmB_3-1-1{
|
|
320
304
|
margin-right:4px;
|
|
321
305
|
}
|
|
322
|
-
.magritte-status___dHzCt_3-
|
|
306
|
+
.magritte-status___dHzCt_3-1-1{
|
|
323
307
|
display:inline-flex;
|
|
324
308
|
vertical-align:middle;
|
|
325
309
|
}
|
|
326
|
-
.magritte-status___dHzCt_3-
|
|
310
|
+
.magritte-status___dHzCt_3-1-1:not(:first-child){
|
|
327
311
|
margin-left:4px;
|
|
328
312
|
}
|
|
329
|
-
.magritte-message-title___dgBFk_3-
|
|
313
|
+
.magritte-message-title___dgBFk_3-1-1{
|
|
330
314
|
margin-bottom:4px;
|
|
331
315
|
}
|
|
332
|
-
.magritte-label___i0Wyt_3-
|
|
333
|
-
.magritte-label___i0Wyt_3-
|
|
334
|
-
.magritte-label___i0Wyt_3-
|
|
335
|
-
.magritte-message___7TEpw_3-
|
|
336
|
-
.magritte-bubble___NVuDI_3-
|
|
316
|
+
.magritte-label___i0Wyt_3-1-1 + .magritte-media___9jH2k_3-1-1,
|
|
317
|
+
.magritte-label___i0Wyt_3-1-1 + .magritte-message___7TEpw_3-1-1,
|
|
318
|
+
.magritte-label___i0Wyt_3-1-1 + .magritte-snippet___8k9xb_3-1-1,
|
|
319
|
+
.magritte-message___7TEpw_3-1-1 + .magritte-message___7TEpw_3-1-1,
|
|
320
|
+
.magritte-bubble___NVuDI_3-1-1 > .magritte-meta___1qhjm_3-1-1{
|
|
337
321
|
margin-top:4px;
|
|
338
322
|
}
|
|
339
|
-
.magritte-label___i0Wyt_3-
|
|
340
|
-
.magritte-reply___-QCK7_3-
|
|
341
|
-
.magritte-reply___-QCK7_3-
|
|
342
|
-
.magritte-reply___-QCK7_3-
|
|
343
|
-
.magritte-media___9jH2k_3-
|
|
323
|
+
.magritte-label___i0Wyt_3-1-1 + .magritte-reply___-QCK7_3-1-1,
|
|
324
|
+
.magritte-reply___-QCK7_3-1-1 + .magritte-media___9jH2k_3-1-1,
|
|
325
|
+
.magritte-reply___-QCK7_3-1-1 + .magritte-message___7TEpw_3-1-1,
|
|
326
|
+
.magritte-reply___-QCK7_3-1-1 + .magritte-snippet___8k9xb_3-1-1,
|
|
327
|
+
.magritte-media___9jH2k_3-1-1 + .magritte-snippet___8k9xb_3-1-1{
|
|
344
328
|
margin-top:8px;
|
|
345
329
|
}
|
|
346
|
-
.magritte-label___i0Wyt_3-
|
|
347
|
-
.magritte-reply___-QCK7_3-
|
|
348
|
-
.magritte-media___9jH2k_3-
|
|
349
|
-
.magritte-media___9jH2k_3-
|
|
350
|
-
.magritte-file___k2IKy_3-
|
|
351
|
-
.magritte-file___k2IKy_3-
|
|
330
|
+
.magritte-label___i0Wyt_3-1-1 + .magritte-file___k2IKy_3-1-1,
|
|
331
|
+
.magritte-reply___-QCK7_3-1-1 + .magritte-file___k2IKy_3-1-1,
|
|
332
|
+
.magritte-media___9jH2k_3-1-1 + .magritte-file___k2IKy_3-1-1,
|
|
333
|
+
.magritte-media___9jH2k_3-1-1 + .magritte-message___7TEpw_3-1-1,
|
|
334
|
+
.magritte-file___k2IKy_3-1-1 + .magritte-message___7TEpw_3-1-1,
|
|
335
|
+
.magritte-file___k2IKy_3-1-1 + .magritte-snippet___8k9xb_3-1-1{
|
|
352
336
|
margin-top:12px;
|
|
353
337
|
}
|
|
354
|
-
.magritte-message___7TEpw_3-
|
|
338
|
+
.magritte-message___7TEpw_3-1-1 + .magritte-snippet___8k9xb_3-1-1{
|
|
355
339
|
margin-top:16px;
|
|
356
340
|
}
|
|
357
|
-
.magritte-file___k2IKy_3-
|
|
341
|
+
.magritte-file___k2IKy_3-1-1 + .magritte-file___k2IKy_3-1-1{
|
|
358
342
|
margin-top:24px;
|
|
359
343
|
}
|
|
360
|
-
.magritte-label___i0Wyt_3-
|
|
344
|
+
.magritte-label___i0Wyt_3-1-1{
|
|
361
345
|
margin-top:-4px;
|
|
362
346
|
}
|
|
363
|
-
.magritte-bubble___NVuDI_3-
|
|
347
|
+
.magritte-bubble___NVuDI_3-1-1 > .magritte-media___9jH2k_3-1-1:first-child{
|
|
364
348
|
margin-top:-8px;
|
|
365
349
|
}
|
|
366
|
-
.magritte-bubble___NVuDI_3-
|
|
350
|
+
.magritte-bubble___NVuDI_3-1-1 > .magritte-media___9jH2k_3-1-1:not(:has( ~ :not(.magritte-tail___E2hdk_3-1-1))){
|
|
367
351
|
margin-bottom:-8px;
|
|
368
352
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ChatBubble } from './ChatBubble';
|
|
2
2
|
export type { ChatBubbleMode, ChatBubbleProps } from './types';
|
|
3
|
+
export type { ChatBubbleButtonProps } from './Button';
|
|
3
4
|
export type { ChatBubbleCallProps, ChatBubbleCallState } from './Call';
|
|
4
5
|
export type { ChatBubbleErrorActionProps } from './ErrorAction';
|
|
5
6
|
export type { ChatBubbleFileProps, ChatBubbleFileState } from './File';
|
package/index.js
CHANGED
|
@@ -5,13 +5,14 @@ import 'react';
|
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@hh.ru/magritte-common-mouse';
|
|
7
7
|
import '@hh.ru/magritte-ui-button';
|
|
8
|
+
import './Button.js';
|
|
9
|
+
import './chat-bubble-B7cbFSTw.js';
|
|
8
10
|
import './Call.js';
|
|
9
11
|
import '@hh.ru/magritte-ui-cell';
|
|
10
12
|
import './internal/colors.js';
|
|
11
13
|
import './internal/mode.js';
|
|
12
14
|
import './internal/utils.js';
|
|
13
15
|
import '@hh.ru/magritte-ui-icon/icon';
|
|
14
|
-
import './chat-bubble-Ba0sFLOr.js';
|
|
15
16
|
import './ErrorAction.js';
|
|
16
17
|
import './internal/errorMenu.js';
|
|
17
18
|
import '@hh.ru/magritte-ui-menu';
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/index.mock.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { ChatBubbleMode, ChatBubbleProps } from './types';
|
|
2
|
+
export type { ChatBubbleButtonProps } from './Button';
|
|
2
3
|
export type { ChatBubbleCallProps, ChatBubbleCallState } from './Call';
|
|
3
4
|
export type { ChatBubbleErrorActionProps } from './ErrorAction';
|
|
4
5
|
export type { ChatBubbleFileProps, ChatBubbleFileState } from './File';
|
|
@@ -9,6 +10,7 @@ export type { ChatBubbleReplyProps } from './Reply';
|
|
|
9
10
|
export type { ChatBubbleSnippetProps } from './Snippet';
|
|
10
11
|
export type { ChatBubbleStatusProps, ChatBubbleStatusValue } from './Status';
|
|
11
12
|
export declare const ChatBubble: import("react").ForwardRefExoticComponent<Record<string, unknown>> & {
|
|
13
|
+
Button: import("react").ForwardRefExoticComponent<Record<string, unknown>>;
|
|
12
14
|
Call: import("react").ForwardRefExoticComponent<Record<string, unknown>>;
|
|
13
15
|
ErrorAction: import("react").ForwardRefExoticComponent<Record<string, unknown>>;
|
|
14
16
|
File: import("react").ForwardRefExoticComponent<Record<string, unknown>>;
|
package/index.mock.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
import { mockComponent } from '@hh.ru/magritte-ui-mock-component';
|
|
3
3
|
|
|
4
|
+
const Button = mockComponent("ChatBubble.Button", void 0, { withChildren: true });
|
|
4
5
|
const Call = mockComponent("ChatBubble.Call");
|
|
5
6
|
const ErrorAction = mockComponent("ChatBubble.ErrorAction", void 0, { withChildren: true });
|
|
6
7
|
const File = mockComponent("ChatBubble.File");
|
|
@@ -11,6 +12,7 @@ const Reply = mockComponent("ChatBubble.Reply", void 0, { withChildren: true });
|
|
|
11
12
|
const Snippet = mockComponent("ChatBubble.Snippet", void 0, { withChildren: true });
|
|
12
13
|
const Status = mockComponent("ChatBubble.Status", void 0, { withChildren: true });
|
|
13
14
|
const ChatBubble = Object.assign(mockComponent("ChatBubble", void 0, { withChildren: true }), {
|
|
15
|
+
Button,
|
|
14
16
|
Call,
|
|
15
17
|
ErrorAction,
|
|
16
18
|
File,
|
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 type { ChatBubbleMode, ChatBubbleProps } from '@hh.ru/magritte-ui-chat-bubble/types';\nexport type { ChatBubbleCallProps, ChatBubbleCallState } from '@hh.ru/magritte-ui-chat-bubble/Call';\nexport type { ChatBubbleErrorActionProps } from '@hh.ru/magritte-ui-chat-bubble/ErrorAction';\nexport type { ChatBubbleFileProps, ChatBubbleFileState } from '@hh.ru/magritte-ui-chat-bubble/File';\nexport type { ChatBubbleLabelProps } from '@hh.ru/magritte-ui-chat-bubble/Label';\nexport type { ChatBubbleMediaProps } from '@hh.ru/magritte-ui-chat-bubble/Media';\nexport type { ChatBubbleMessageProps } from '@hh.ru/magritte-ui-chat-bubble/Message';\nexport type { ChatBubbleReplyProps } from '@hh.ru/magritte-ui-chat-bubble/Reply';\nexport type { ChatBubbleSnippetProps } from '@hh.ru/magritte-ui-chat-bubble/Snippet';\nexport type { ChatBubbleStatusProps, ChatBubbleStatusValue } from '@hh.ru/magritte-ui-chat-bubble/Status';\n\nconst Call = mockComponent('ChatBubble.Call');\nconst ErrorAction = mockComponent('ChatBubble.ErrorAction', undefined, { withChildren: true });\nconst File = mockComponent('ChatBubble.File');\nconst Label = mockComponent('ChatBubble.Label', undefined, { withChildren: true });\nconst Media = mockComponent('ChatBubble.Media', undefined, { withChildren: true });\nconst Message = mockComponent('ChatBubble.Message', undefined, { withChildren: true });\nconst Reply = mockComponent('ChatBubble.Reply', undefined, { withChildren: true });\nconst Snippet = mockComponent('ChatBubble.Snippet', undefined, { withChildren: true });\nconst Status = mockComponent('ChatBubble.Status', undefined, { withChildren: true });\n\nexport const ChatBubble = Object.assign(mockComponent('ChatBubble', undefined, { withChildren: true }), {\n Call,\n ErrorAction,\n File,\n Label,\n Media,\n Message,\n Reply,\n Snippet,\n Status,\n});\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport type { ChatBubbleMode, ChatBubbleProps } from '@hh.ru/magritte-ui-chat-bubble/types';\nexport type { ChatBubbleButtonProps } from '@hh.ru/magritte-ui-chat-bubble/Button';\nexport type { ChatBubbleCallProps, ChatBubbleCallState } from '@hh.ru/magritte-ui-chat-bubble/Call';\nexport type { ChatBubbleErrorActionProps } from '@hh.ru/magritte-ui-chat-bubble/ErrorAction';\nexport type { ChatBubbleFileProps, ChatBubbleFileState } from '@hh.ru/magritte-ui-chat-bubble/File';\nexport type { ChatBubbleLabelProps } from '@hh.ru/magritte-ui-chat-bubble/Label';\nexport type { ChatBubbleMediaProps } from '@hh.ru/magritte-ui-chat-bubble/Media';\nexport type { ChatBubbleMessageProps } from '@hh.ru/magritte-ui-chat-bubble/Message';\nexport type { ChatBubbleReplyProps } from '@hh.ru/magritte-ui-chat-bubble/Reply';\nexport type { ChatBubbleSnippetProps } from '@hh.ru/magritte-ui-chat-bubble/Snippet';\nexport type { ChatBubbleStatusProps, ChatBubbleStatusValue } from '@hh.ru/magritte-ui-chat-bubble/Status';\n\nconst Button = mockComponent('ChatBubble.Button', undefined, { withChildren: true });\nconst Call = mockComponent('ChatBubble.Call');\nconst ErrorAction = mockComponent('ChatBubble.ErrorAction', undefined, { withChildren: true });\nconst File = mockComponent('ChatBubble.File');\nconst Label = mockComponent('ChatBubble.Label', undefined, { withChildren: true });\nconst Media = mockComponent('ChatBubble.Media', undefined, { withChildren: true });\nconst Message = mockComponent('ChatBubble.Message', undefined, { withChildren: true });\nconst Reply = mockComponent('ChatBubble.Reply', undefined, { withChildren: true });\nconst Snippet = mockComponent('ChatBubble.Snippet', undefined, { withChildren: true });\nconst Status = mockComponent('ChatBubble.Status', undefined, { withChildren: true });\n\nexport const ChatBubble = Object.assign(mockComponent('ChatBubble', undefined, { withChildren: true }), {\n Button,\n Call,\n ErrorAction,\n File,\n Label,\n Media,\n Message,\n Reply,\n Snippet,\n Status,\n});\n"],"names":[],"mappings":";;AAcA,MAAM,SAAS,aAAc,CAAA,mBAAA,EAAqB,QAAW,EAAE,YAAA,EAAc,MAAM,CAAA,CAAA;AACnF,MAAM,IAAA,GAAO,cAAc,iBAAiB,CAAA,CAAA;AAC5C,MAAM,cAAc,aAAc,CAAA,wBAAA,EAA0B,QAAW,EAAE,YAAA,EAAc,MAAM,CAAA,CAAA;AAC7F,MAAM,IAAA,GAAO,cAAc,iBAAiB,CAAA,CAAA;AAC5C,MAAM,QAAQ,aAAc,CAAA,kBAAA,EAAoB,QAAW,EAAE,YAAA,EAAc,MAAM,CAAA,CAAA;AACjF,MAAM,QAAQ,aAAc,CAAA,kBAAA,EAAoB,QAAW,EAAE,YAAA,EAAc,MAAM,CAAA,CAAA;AACjF,MAAM,UAAU,aAAc,CAAA,oBAAA,EAAsB,QAAW,EAAE,YAAA,EAAc,MAAM,CAAA,CAAA;AACrF,MAAM,QAAQ,aAAc,CAAA,kBAAA,EAAoB,QAAW,EAAE,YAAA,EAAc,MAAM,CAAA,CAAA;AACjF,MAAM,UAAU,aAAc,CAAA,oBAAA,EAAsB,QAAW,EAAE,YAAA,EAAc,MAAM,CAAA,CAAA;AACrF,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,MAAA;AAAA,EACA,IAAA;AAAA,EACA,WAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA;AAAA,EACA,OAAA;AAAA,EACA,MAAA;AACJ,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-chat-bubble",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"@hh.ru/magritte-common-use-translation": "3.6.2",
|
|
26
26
|
"@hh.ru/magritte-design-tokens": "26.0.2",
|
|
27
27
|
"@hh.ru/magritte-ui-breakpoint": "6.1.3",
|
|
28
|
-
"@hh.ru/magritte-ui-button": "7.3.
|
|
28
|
+
"@hh.ru/magritte-ui-button": "7.3.9",
|
|
29
29
|
"@hh.ru/magritte-ui-cell": "7.3.4",
|
|
30
30
|
"@hh.ru/magritte-ui-icon": "15.1.6",
|
|
31
31
|
"@hh.ru/magritte-ui-link": "7.2.7",
|
|
32
32
|
"@hh.ru/magritte-ui-loader": "4.1.7",
|
|
33
|
-
"@hh.ru/magritte-ui-menu": "1.0.
|
|
33
|
+
"@hh.ru/magritte-ui-menu": "1.0.53",
|
|
34
34
|
"@hh.ru/magritte-ui-mock-component": "1.1.9",
|
|
35
|
-
"@hh.ru/magritte-ui-tooltip": "11.0.
|
|
35
|
+
"@hh.ru/magritte-ui-tooltip": "11.0.54",
|
|
36
36
|
"@hh.ru/magritte-ui-typography": "5.3.17"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "266ffcb5cad806abf751311c4df05561285ffbb0"
|
|
46
46
|
}
|
package/chat-bubble-Ba0sFLOr.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"chat-bubble":"magritte-chat-bubble___ds9CP_3-0-10","chatBubble":"magritte-chat-bubble___ds9CP_3-0-10","outgoing":"magritte-outgoing___3n00o_3-0-10","bot":"magritte-bot___Z6vZA_3-0-10","row":"magritte-row___mQNnt_3-0-10","bubble":"magritte-bubble___NVuDI_3-0-10","with-tail":"magritte-with-tail___IdixJ_3-0-10","withTail":"magritte-with-tail___IdixJ_3-0-10","tail":"magritte-tail___E2hdk_3-0-10","tail-outgoing":"magritte-tail-outgoing___Pn3MI_3-0-10","tailOutgoing":"magritte-tail-outgoing___Pn3MI_3-0-10","buttons":"magritte-buttons___yQqBi_3-0-10","aside":"magritte-aside___bTex-_3-0-10","aside-revealed":"magritte-aside-revealed___CRBl7_3-0-10","asideRevealed":"magritte-aside-revealed___CRBl7_3-0-10","error-text":"magritte-error-text___1ZxWY_3-0-10","errorText":"magritte-error-text___1ZxWY_3-0-10","file":"magritte-file___k2IKy_3-0-10","file-preview":"magritte-file-preview___eJKu8_3-0-10","filePreview":"magritte-file-preview___eJKu8_3-0-10","media":"magritte-media___9jH2k_3-0-10","media-blur":"magritte-media-blur___TbiMa_3-0-10","mediaBlur":"magritte-media-blur___TbiMa_3-0-10","media-image":"magritte-media-image___G-FkF_3-0-10","mediaImage":"magritte-media-image___G-FkF_3-0-10","media-content":"magritte-media-content___n3XbD_3-0-10","mediaContent":"magritte-media-content___n3XbD_3-0-10","media-format":"magritte-media-format___AdfCK_3-0-10","mediaFormat":"magritte-media-format___AdfCK_3-0-10","media-meta":"magritte-media-meta___oSxxr_3-0-10","mediaMeta":"magritte-media-meta___oSxxr_3-0-10","reply":"magritte-reply___-QCK7_3-0-10","reply-preview":"magritte-reply-preview___qvlNT_3-0-10","replyPreview":"magritte-reply-preview___qvlNT_3-0-10","reply-body":"magritte-reply-body___f2xx7_3-0-10","replyBody":"magritte-reply-body___f2xx7_3-0-10","snippet":"magritte-snippet___8k9xb_3-0-10","meta":"magritte-meta___1qhjm_3-0-10","edited":"magritte-edited___m-zmB_3-0-10","status":"magritte-status___dHzCt_3-0-10","message-title":"magritte-message-title___dgBFk_3-0-10","messageTitle":"magritte-message-title___dgBFk_3-0-10","label":"magritte-label___i0Wyt_3-0-10","message":"magritte-message___7TEpw_3-0-10"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=chat-bubble-Ba0sFLOr.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat-bubble-Ba0sFLOr.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|