@hh.ru/magritte-ui-chat-marker 1.0.6 → 1.0.7

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/ChatMarker.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { ChatMarkerProps } from '@hh.ru/magritte-ui-chat-marker/types';
1
+ import { ChatMarkerProps } from './types';
2
2
  export declare const ChatMarker: import("react").ForwardRefExoticComponent<ChatMarkerProps & import("react").RefAttributes<HTMLDivElement>>;
package/ChatMarker.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import './index.css';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef, useRef, useState } from 'react';
4
4
  import classnames from 'classnames';
5
5
  import { useResizeObserver } from '@hh.ru/magritte-common-resize';
@@ -8,27 +8,56 @@ import { IconDefaultPropsContext } from '@hh.ru/magritte-ui-icon';
8
8
  import { LoaderDefaultPropsContext } from '@hh.ru/magritte-ui-loader';
9
9
  import { Text } from '@hh.ru/magritte-ui-typography';
10
10
 
11
- var styles = {"chat-marker":"magritte-chat-marker___ya9dO_1-0-6","chatMarker":"magritte-chat-marker___ya9dO_1-0-6","line":"magritte-line___0zxh4_1-0-6","icon":"magritte-icon___RUogw_1-0-6","label":"magritte-label___RKh8J_1-0-6","label-outgoing":"magritte-label-outgoing___gqTn0_1-0-6","labelOutgoing":"magritte-label-outgoing___gqTn0_1-0-6","fade-out":"magritte-fade-out___Mog0k_1-0-6","fadeOut":"magritte-fade-out___Mog0k_1-0-6","label-outgoing-centered":"magritte-label-outgoing-centered___GikqE_1-0-6","labelOutgoingCentered":"magritte-label-outgoing-centered___GikqE_1-0-6","label-incoming":"magritte-label-incoming___cq-7a_1-0-6","labelIncoming":"magritte-label-incoming___cq-7a_1-0-6","fade-in":"magritte-fade-in___gDnCc_1-0-6","fadeIn":"magritte-fade-in___gDnCc_1-0-6"};
11
+ var styles = {"chat-marker":"magritte-chat-marker___ya9dO_1-0-7","chatMarker":"magritte-chat-marker___ya9dO_1-0-7","line":"magritte-line___0zxh4_1-0-7","icon":"magritte-icon___RUogw_1-0-7","label":"magritte-label___RKh8J_1-0-7","label-outgoing":"magritte-label-outgoing___gqTn0_1-0-7","labelOutgoing":"magritte-label-outgoing___gqTn0_1-0-7","fade-out":"magritte-fade-out___Mog0k_1-0-7","fadeOut":"magritte-fade-out___Mog0k_1-0-7","label-outgoing-centered":"magritte-label-outgoing-centered___GikqE_1-0-7","labelOutgoingCentered":"magritte-label-outgoing-centered___GikqE_1-0-7","label-incoming":"magritte-label-incoming___cq-7a_1-0-7","labelIncoming":"magritte-label-incoming___cq-7a_1-0-7","fade-in":"magritte-fade-in___gDnCc_1-0-7","fadeIn":"magritte-fade-in___gDnCc_1-0-7"};
12
12
 
13
- const LABEL_ID = 'label';
14
- const ChatMarker = forwardRef(({ className, 'data-qa': dataQa = 'chat-marker', divider = false, icon, label, mode = 'secondary', ...props }, ref) => {
13
+ const LABEL_ID = "label";
14
+ const ChatMarker = forwardRef(
15
+ ({ className, "data-qa": dataQa = "chat-marker", divider = false, icon, label, mode = "secondary", ...props }, ref) => {
15
16
  const labelWidth = useRef(0);
16
17
  const [transition, setTransition] = useState({ label, outgoing: null });
17
18
  const observeLabel = useResizeObserver((elements) => {
18
- labelWidth.current = elements.get(LABEL_ID)?.getBoundingClientRect().width ?? 0;
19
+ labelWidth.current = elements.get(LABEL_ID)?.getBoundingClientRect().width ?? 0;
19
20
  });
20
21
  if (transition.label !== label) {
21
- const width = Math.ceil(labelWidth.current);
22
- setTransition({ label, outgoing: width > 0 ? { text: transition.label, width } : null });
22
+ const width = Math.ceil(labelWidth.current);
23
+ setTransition({ label, outgoing: width > 0 ? { text: transition.label, width } : null });
23
24
  }
24
25
  const { outgoing } = transition;
25
- const renderText = (value) => (jsx(Text, { typography: "label-3-regular", style: mode, children: value }));
26
- const line = divider && (jsx("div", { className: styles.line, "data-qa": "chat-marker-divider", "aria-hidden": true, children: jsx(Divider, {}) }));
27
- return (jsxs("div", { ...props, className: classnames(className, styles.chatMarker), "data-qa": dataQa, ref: ref, children: [line, icon && (jsx(IconDefaultPropsContext, { props: { initialColor: mode }, children: jsx(LoaderDefaultPropsContext, { props: { size: 16, color: mode }, children: jsx("span", { className: styles.icon, "data-qa": "chat-marker-icon", "aria-hidden": true, children: icon }) }) })), jsxs("div", { ref: observeLabel(LABEL_ID), className: styles.label, "data-qa": "chat-marker-label", children: [jsx("span", { className: classnames({ [styles.labelIncoming]: outgoing !== null }), "data-qa": "chat-marker-label-text", children: renderText(label) }, label), outgoing !== null && (jsx("span", { className: classnames(styles.labelOutgoing, {
28
- [styles.labelOutgoingCentered]: divider,
29
- }), style: { width: outgoing.width }, "data-qa": "chat-marker-label-outgoing", onAnimationEnd: () => setTransition({ label, outgoing: null }), "aria-hidden": true, children: renderText(outgoing.text) }, outgoing.text))] }), line] }));
30
- });
31
- ChatMarker.displayName = 'ChatMarker';
26
+ const renderText = (value) => /* @__PURE__ */ jsx(Text, { typography: "label-3-regular", style: mode, children: value });
27
+ const line = divider && /* @__PURE__ */ jsx("div", { className: styles.line, "data-qa": "chat-marker-divider", "aria-hidden": true, children: /* @__PURE__ */ jsx(Divider, {}) });
28
+ return /* @__PURE__ */ jsxs("div", { ...props, className: classnames(className, styles.chatMarker), "data-qa": dataQa, ref, children: [
29
+ line,
30
+ icon && /* @__PURE__ */ jsx(IconDefaultPropsContext, { props: { initialColor: mode }, children: /* @__PURE__ */ jsx(LoaderDefaultPropsContext, { props: { size: 16, color: mode }, children: /* @__PURE__ */ jsx("span", { className: styles.icon, "data-qa": "chat-marker-icon", "aria-hidden": true, children: icon }) }) }),
31
+ /* @__PURE__ */ jsxs("div", { ref: observeLabel(LABEL_ID), className: styles.label, "data-qa": "chat-marker-label", children: [
32
+ /* @__PURE__ */ jsx(
33
+ "span",
34
+ {
35
+ className: classnames({ [styles.labelIncoming]: outgoing !== null }),
36
+ "data-qa": "chat-marker-label-text",
37
+ children: renderText(label)
38
+ },
39
+ label
40
+ ),
41
+ outgoing !== null && /* @__PURE__ */ jsx(
42
+ "span",
43
+ {
44
+ className: classnames(styles.labelOutgoing, {
45
+ [styles.labelOutgoingCentered]: divider
46
+ }),
47
+ style: { width: outgoing.width },
48
+ "data-qa": "chat-marker-label-outgoing",
49
+ onAnimationEnd: () => setTransition({ label, outgoing: null }),
50
+ "aria-hidden": true,
51
+ children: renderText(outgoing.text)
52
+ },
53
+ outgoing.text
54
+ )
55
+ ] }),
56
+ line
57
+ ] });
58
+ }
59
+ );
60
+ ChatMarker.displayName = "ChatMarker";
32
61
 
33
62
  export { ChatMarker };
34
63
  //# sourceMappingURL=ChatMarker.js.map
package/ChatMarker.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMarker.js","sources":["src/ChatMarker.tsx"],"sourcesContent":["import { forwardRef, useRef, useState } from 'react';\nimport classnames from 'classnames';\n\nimport { useResizeObserver } from '@hh.ru/magritte-common-resize';\nimport { ChatMarkerProps } from '@hh.ru/magritte-ui-chat-marker/types';\nimport { Divider } from '@hh.ru/magritte-ui-divider';\nimport { IconDefaultPropsContext } from '@hh.ru/magritte-ui-icon';\nimport { LoaderDefaultPropsContext } from '@hh.ru/magritte-ui-loader';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './chat-marker.less';\n\nconst LABEL_ID = 'label';\n\nexport const ChatMarker = forwardRef<HTMLDivElement, ChatMarkerProps>(\n (\n { className, 'data-qa': dataQa = 'chat-marker', divider = false, icon, label, mode = 'secondary', ...props },\n ref\n ) => {\n const labelWidth = useRef(0);\n const [transition, setTransition] = useState<{\n label: string;\n outgoing: { text: string; width: number } | null;\n }>({ label, outgoing: null });\n\n const observeLabel = useResizeObserver((elements) => {\n labelWidth.current = elements.get(LABEL_ID)?.getBoundingClientRect().width ?? 0;\n });\n\n if (transition.label !== label) {\n const width = Math.ceil(labelWidth.current);\n setTransition({ label, outgoing: width > 0 ? { text: transition.label, width } : null });\n }\n\n const { outgoing } = transition;\n\n const renderText = (value: string) => (\n <Text typography=\"label-3-regular\" style={mode}>\n {value}\n </Text>\n );\n\n const line = divider && (\n <div className={styles.line} data-qa=\"chat-marker-divider\" aria-hidden>\n <Divider />\n </div>\n );\n\n return (\n <div {...props} className={classnames(className, styles.chatMarker)} data-qa={dataQa} ref={ref}>\n {line}\n {icon && (\n <IconDefaultPropsContext props={{ initialColor: mode }}>\n <LoaderDefaultPropsContext props={{ size: 16, color: mode }}>\n <span className={styles.icon} data-qa=\"chat-marker-icon\" aria-hidden>\n {icon}\n </span>\n </LoaderDefaultPropsContext>\n </IconDefaultPropsContext>\n )}\n <div ref={observeLabel(LABEL_ID)} className={styles.label} data-qa=\"chat-marker-label\">\n <span\n key={label}\n className={classnames({ [styles.labelIncoming]: outgoing !== null })}\n data-qa=\"chat-marker-label-text\"\n >\n {renderText(label)}\n </span>\n {outgoing !== null && (\n <span\n key={outgoing.text}\n className={classnames(styles.labelOutgoing, {\n [styles.labelOutgoingCentered]: divider,\n })}\n style={{ width: outgoing.width }}\n data-qa=\"chat-marker-label-outgoing\"\n onAnimationEnd={() => setTransition({ label, outgoing: null })}\n aria-hidden\n >\n {renderText(outgoing.text)}\n </span>\n )}\n </div>\n {line}\n </div>\n );\n }\n);\n\nChatMarker.displayName = 'ChatMarker';\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;AAYA,MAAM,QAAQ,GAAG,OAAO,CAAC;AAElB,MAAM,UAAU,GAAG,UAAU,CAChC,CACI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa,EAAE,OAAO,GAAG,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,GAAG,WAAW,EAAE,GAAG,KAAK,EAAE,EAC5G,GAAG,KACH;AACA,IAAA,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAC7B,IAAA,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,Q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Uf,CACV,IACC,EACL,IAAI,CACH,EAAA,CAAA,EACR;AACN,CAAC,EACH;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
1
+ {"version":3,"file":"ChatMarker.js","sources":["src/ChatMarker.tsx"],"sourcesContent":["import { forwardRef, useRef, useState } from 'react';\nimport classnames from 'classnames';\n\nimport { useResizeObserver } from '@hh.ru/magritte-common-resize';\nimport { ChatMarkerProps } from '@hh.ru/magritte-ui-chat-marker/types';\nimport { Divider } from '@hh.ru/magritte-ui-divider';\nimport { IconDefaultPropsContext } from '@hh.ru/magritte-ui-icon';\nimport { LoaderDefaultPropsContext } from '@hh.ru/magritte-ui-loader';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './chat-marker.less';\n\nconst LABEL_ID = 'label';\n\nexport const ChatMarker = forwardRef<HTMLDivElement, ChatMarkerProps>(\n (\n { className, 'data-qa': dataQa = 'chat-marker', divider = false, icon, label, mode = 'secondary', ...props },\n ref\n ) => {\n const labelWidth = useRef(0);\n const [transition, setTransition] = useState<{\n label: string;\n outgoing: { text: string; width: number } | null;\n }>({ label, outgoing: null });\n\n const observeLabel = useResizeObserver((elements) => {\n labelWidth.current = elements.get(LABEL_ID)?.getBoundingClientRect().width ?? 0;\n });\n\n if (transition.label !== label) {\n const width = Math.ceil(labelWidth.current);\n setTransition({ label, outgoing: width > 0 ? { text: transition.label, width } : null });\n }\n\n const { outgoing } = transition;\n\n const renderText = (value: string) => (\n <Text typography=\"label-3-regular\" style={mode}>\n {value}\n </Text>\n );\n\n const line = divider && (\n <div className={styles.line} data-qa=\"chat-marker-divider\" aria-hidden>\n <Divider />\n </div>\n );\n\n return (\n <div {...props} className={classnames(className, styles.chatMarker)} data-qa={dataQa} ref={ref}>\n {line}\n {icon && (\n <IconDefaultPropsContext props={{ initialColor: mode }}>\n <LoaderDefaultPropsContext props={{ size: 16, color: mode }}>\n <span className={styles.icon} data-qa=\"chat-marker-icon\" aria-hidden>\n {icon}\n </span>\n </LoaderDefaultPropsContext>\n </IconDefaultPropsContext>\n )}\n <div ref={observeLabel(LABEL_ID)} className={styles.label} data-qa=\"chat-marker-label\">\n <span\n key={label}\n className={classnames({ [styles.labelIncoming]: outgoing !== null })}\n data-qa=\"chat-marker-label-text\"\n >\n {renderText(label)}\n </span>\n {outgoing !== null && (\n <span\n key={outgoing.text}\n className={classnames(styles.labelOutgoing, {\n [styles.labelOutgoingCentered]: divider,\n })}\n style={{ width: outgoing.width }}\n data-qa=\"chat-marker-label-outgoing\"\n onAnimationEnd={() => setTransition({ label, outgoing: null })}\n aria-hidden\n >\n {renderText(outgoing.text)}\n </span>\n )}\n </div>\n {line}\n </div>\n );\n }\n);\n\nChatMarker.displayName = 'ChatMarker';\n"],"names":[],"mappings":";;;;;;;;;;;AAYA,MAAM,QAAW,GAAA,OAAA,CAAA;AAEV,MAAM,UAAa,GAAA,UAAA;AAAA,EACtB,CACI,EAAE,SAAW,EAAA,SAAA,EAAW,SAAS,aAAe,EAAA,OAAA,GAAU,KAAO,EAAA,IAAA,EAAM,OAAO,IAAO,GAAA,WAAA,EAAa,GAAG,KAAA,IACrG,GACC,KAAA;AACD,IAAM,MAAA,UAAA,GAAa,OAAO,CAAC,CAAA,CAAA;AAC3B,IAAM,MAAA,CAAC,YAAY,aAAa,CAAA,GAAI,SAGjC,EAAE,KAAA,EAAO,QAAU,EAAA,IAAA,EAAM,CAAA,CAAA;AAE5B,IAAM,MAAA,YAAA,GAAe,iBAAkB,CAAA,CAAC,QAAa,KAAA;AACjD,MAAA,UAAA,CAAW,UAAU,QAAS,CAAA,GAAA,CAAI,QAAQ,CAAG,EAAA,qBAAA,GAAwB,KAAS,IAAA,CAAA,CAAA;AAAA,KACjF,CAAA,CAAA;AAED,IAAI,IAAA,UAAA,CAAW,UAAU,KAAO,EAAA;AAC5B,MAAA,MAAM,KAAQ,GAAA,IAAA,CAAK,IAAK,CAAA,UAAA,CAAW,OAAO,CAAA,CAAA;AAC1C,MAAA,aAAA,CAAc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AK,YAAa,CAAA,QAAQ,GAAG,SAAW,EAAA,MAAA,CAAO,KAAO,EAAA,SAAA,EAAQ,mBAC/D,EAAA,QAAA,EAAA;AAAA,wBAAA,GAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YAEG,SAAA,EAAW,WAAW,EAAE,CAAC,OAAO,aAAa,GAAG,QAAa,KAAA,IAAA,EAAM,CAAA;AAAA,YACnE,SAAQ,EAAA,wBAAA;AAAA,YAEP,qBAAW,KAAK,CAAA;AAAA,WAAA;AAAA,UAJZ,KAAA;AAAA,SAKT;AAAA,QACC,aAAa,IACV,oBAAA,GAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YAEG,SAAA,EAAW,UAAW,CAAA,MAAA,CAAO,aAAe,EAAA;AAAA,cACxC,CAAC,MAAO,CAAA,qBAAqB,GAAG,OAAA;AAAA,aACnC,CAAA;AAAA,YACD,KAAO,EAAA,EAAE,KAAO,EAAA,QAAA,CAAS,KAAM,EAAA;AAAA,YAC/B,SAAQ,EAAA,4BAAA;AAAA,YACR,gBAAgB,MAAM,aAAA,CAAc,EAAE,KAAO,EAAA,QAAA,EAAU,MAAM,CAAA;AAAA,YAC7D,aAAW,EAAA,IAAA;AAAA,YAEV,QAAA,EAAA,UAAA,CAAW,SAAS,IAAI,CAAA;AAAA,WAAA;AAAA,UATpB,QAAS,CAAA,IAAA;AAAA,SAUlB;AAAA,OAER,EAAA,CAAA;AAAA,MACC,IAAA;AAAA,KACL,EAAA,CAAA,CAAA;AAAA,GAER;AACJ,EAAA;AAEA,UAAA,CAAW,WAAc,GAAA,YAAA;;;;"}
package/index.css CHANGED
@@ -1,55 +1,55 @@
1
1
  :root{
2
- --magritte-semantic-animation-time-s-duration-v26-0-0:200ms;
3
- --magritte-semantic-animation-ease-base-timing-function-v26-0-0:cubic-bezier(0.4, 0.24, 0, 1);
2
+ --magritte-semantic-animation-time-s-duration-v26-0-1:200ms;
3
+ --magritte-semantic-animation-ease-base-timing-function-v26-0-1:cubic-bezier(0.4, 0.24, 0, 1);
4
4
  }
5
- .magritte-chat-marker___ya9dO_1-0-6{
5
+ .magritte-chat-marker___ya9dO_1-0-7{
6
6
  --label-animation-duration:0ms;
7
7
  display:flex;
8
8
  align-items:flex-start;
9
9
  gap:12px;
10
10
  }
11
11
  @media (prefers-reduced-motion: no-preference){
12
- .magritte-chat-marker___ya9dO_1-0-6{
13
- --label-animation-duration:var(--magritte-semantic-animation-time-s-duration-v26-0-0);
12
+ .magritte-chat-marker___ya9dO_1-0-7{
13
+ --label-animation-duration:var(--magritte-semantic-animation-time-s-duration-v26-0-1);
14
14
  }
15
15
  }
16
- .magritte-line___0zxh4_1-0-6,
17
- .magritte-icon___RUogw_1-0-6{
16
+ .magritte-line___0zxh4_1-0-7,
17
+ .magritte-icon___RUogw_1-0-7{
18
18
  display:flex;
19
19
  align-items:center;
20
20
  height:20px;
21
21
  }
22
- .magritte-line___0zxh4_1-0-6{
22
+ .magritte-line___0zxh4_1-0-7{
23
23
  flex:1 1 0;
24
24
  }
25
- .magritte-icon___RUogw_1-0-6{
25
+ .magritte-icon___RUogw_1-0-7{
26
26
  flex-shrink:0;
27
27
  }
28
- .magritte-label___RKh8J_1-0-6{
28
+ .magritte-label___RKh8J_1-0-7{
29
29
  position:relative;
30
30
  flex:0 1 auto;
31
31
  min-width:0;
32
32
  }
33
- .magritte-label-outgoing___gqTn0_1-0-6{
33
+ .magritte-label-outgoing___gqTn0_1-0-7{
34
34
  position:absolute;
35
35
  top:0;
36
36
  left:0;
37
- animation-name:magritte-fade-out___Mog0k_1-0-6;
37
+ animation-name:magritte-fade-out___Mog0k_1-0-7;
38
38
  }
39
- .magritte-label-outgoing-centered___GikqE_1-0-6{
39
+ .magritte-label-outgoing-centered___GikqE_1-0-7{
40
40
  left:50%;
41
41
  transform:translateX(-50%);
42
42
  }
43
- .magritte-label-incoming___cq-7a_1-0-6,
44
- .magritte-label-outgoing___gqTn0_1-0-6{
43
+ .magritte-label-incoming___cq-7a_1-0-7,
44
+ .magritte-label-outgoing___gqTn0_1-0-7{
45
45
  animation-duration:var(--label-animation-duration);
46
- animation-timing-function:var(--magritte-semantic-animation-ease-base-timing-function-v26-0-0);
46
+ animation-timing-function:var(--magritte-semantic-animation-ease-base-timing-function-v26-0-1);
47
47
  animation-fill-mode:forwards;
48
48
  }
49
- .magritte-label-incoming___cq-7a_1-0-6{
50
- animation-name:magritte-fade-in___gDnCc_1-0-6;
49
+ .magritte-label-incoming___cq-7a_1-0-7{
50
+ animation-name:magritte-fade-in___gDnCc_1-0-7;
51
51
  }
52
- @keyframes magritte-fade-in___gDnCc_1-0-6{
52
+ @keyframes magritte-fade-in___gDnCc_1-0-7{
53
53
  from{
54
54
  opacity:0;
55
55
  }
@@ -57,7 +57,7 @@
57
57
  opacity:1;
58
58
  }
59
59
  }
60
- @keyframes magritte-fade-out___Mog0k_1-0-6{
60
+ @keyframes magritte-fade-out___Mog0k_1-0-7{
61
61
  from{
62
62
  opacity:1;
63
63
  }
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from '@hh.ru/magritte-ui-chat-marker/ChatMarker';
2
- export { type ChatMarkerMode, type ChatMarkerProps } from '@hh.ru/magritte-ui-chat-marker/types';
1
+ export * from './ChatMarker';
2
+ export { type ChatMarkerMode, type ChatMarkerProps } from './types';
package/index.mock.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { ForwardRefExoticComponent } from 'react';
2
- export { type ChatMarkerMode, type ChatMarkerProps } from '@hh.ru/magritte-ui-chat-marker/types';
2
+ export { type ChatMarkerMode, type ChatMarkerProps } from './types';
3
3
  export declare const ChatMarker: ForwardRefExoticComponent<Record<string, unknown>>;
package/index.mock.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './index.css';
2
2
  import { mockComponent } from '@hh.ru/magritte-ui-mock-component';
3
3
 
4
- const ChatMarker = mockComponent('ChatMarker');
4
+ const ChatMarker = mockComponent("ChatMarker");
5
5
 
6
6
  export { ChatMarker };
7
7
  //# sourceMappingURL=index.mock.js.map
package/index.mock.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { ForwardRefExoticComponent } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport { type ChatMarkerMode, type ChatMarkerProps } from '@hh.ru/magritte-ui-chat-marker/types';\n\nexport const ChatMarker: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('ChatMarker');\n"],"names":[],"mappings":";;MAMa,UAAU,GAAuD,aAAa,CAAC,YAAY;;;;"}
1
+ {"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { ForwardRefExoticComponent } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport { type ChatMarkerMode, type ChatMarkerProps } from '@hh.ru/magritte-ui-chat-marker/types';\n\nexport const ChatMarker: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('ChatMarker');\n"],"names":[],"mappings":";;AAMa,MAAA,UAAA,GAAiE,cAAc,YAAY;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-chat-marker",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -23,16 +23,16 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@hh.ru/magritte-common-resize": "0.2.3",
26
- "@hh.ru/magritte-design-tokens": "26.0.0",
27
- "@hh.ru/magritte-ui-divider": "3.2.11",
28
- "@hh.ru/magritte-ui-icon": "15.1.4",
29
- "@hh.ru/magritte-ui-loader": "4.1.5",
26
+ "@hh.ru/magritte-design-tokens": "26.0.1",
27
+ "@hh.ru/magritte-ui-divider": "3.2.12",
28
+ "@hh.ru/magritte-ui-icon": "15.1.5",
29
+ "@hh.ru/magritte-ui-loader": "4.1.6",
30
30
  "@hh.ru/magritte-ui-mock-component": "1.1.8",
31
- "@hh.ru/magritte-ui-typography": "5.3.15"
31
+ "@hh.ru/magritte-ui-typography": "5.3.16"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "classnames": ">=2.3.2",
35
35
  "react": ">=18.2.0"
36
36
  },
37
- "gitHead": "b0ff5da48fb29d516c8289082560ee1882d16986"
37
+ "gitHead": "f6539d7a0e7cd42dd851458db1de04a748bbee03"
38
38
  }