@hiver/connector-agent 4.18.0-slackm2-beta.3 → 4.18.0-slackm2-beta.4
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/app/hig-slack/HigSlackSection.d.ts.map +1 -1
- package/app/hig-slack/style.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/ChannelThreadGroup.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/Composer.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/MessageItem.d.ts +12 -0
- package/features/slack/components/LinkedConversationPanel/MessageItem.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/ThreadDetailView.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/ThreadSkeleton.d.ts +3 -1
- package/features/slack/components/LinkedConversationPanel/ThreadSkeleton.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/index.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/style.d.ts +29 -4
- package/features/slack/components/LinkedConversationPanel/style.d.ts.map +1 -1
- package/features/slack/messageType.d.ts +5 -0
- package/features/slack/messageType.d.ts.map +1 -1
- package/features/slack/utils/render-mentions.d.ts +5 -9
- package/features/slack/utils/render-mentions.d.ts.map +1 -1
- package/index.es.js +6105 -5990
- package/index.umd.js +417 -376
- package/main-dev.d.ts.map +1 -1
- package/package.json +1 -1
- package/testing/mocks/handlers/slack.d.ts +3 -0
- package/testing/mocks/handlers/slack.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HigSlackSection.d.ts","sourceRoot":"","sources":["../../../src/app/hig-slack/HigSlackSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAkC,MAAM,OAAO,CAAC;AAQ3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAiCjE,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG;IACpD;yEACqE;IACrE,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;
|
|
1
|
+
{"version":3,"file":"HigSlackSection.d.ts","sourceRoot":"","sources":["../../../src/app/hig-slack/HigSlackSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAkC,MAAM,OAAO,CAAC;AAQ3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAiCjE,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG;IACpD;yEACqE;IACrE,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAmOF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAIpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/app/hig-slack/style.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAIvD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,QAAQ,CAKnD,CAAC;AAEF;iDACiD;AACjD,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,QAAQ,CAarD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,QAAQ,CAKhD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CAMxD,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,QAAQ,CAehD,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,UAAU,CAGrD,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CASxD,CAAC;AAEF;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CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,eAAe,CAMzD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,eAAe,CASzD,CAAC;AAEF;4EAC4E;AAC5E,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CASjD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,QAAQ,CAoBnD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,UAAU,CAGnD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,eAAe,CAAC,QAAQ,CAKtD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,eAAe,CAS1D,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CAMxD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CASxD,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CAWxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelThreadGroup.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/ChannelThreadGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelThreadGroup.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/ChannelThreadGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAI3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAKpE,UAAU,uBAAuB;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzB;sDACkD;IAClD,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC;;8BAE0B;IAC1B,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;gEAE4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;+EAC2E;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAkC1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/Composer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,EAA+E,MAAM,OAAO,CAAC;AAgFvH,UAAU,aAAa;IACrB;oEACgE;IAChE,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD;wEACoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;oDACgD;IAChD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,iEAAiE;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;4CAEwC;IACxC,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChC;;;wEAGoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/Composer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,EAA+E,MAAM,OAAO,CAAC;AAgFvH,UAAU,aAAa;IACrB;oEACgE;IAChE,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD;wEACoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;oDACgD;IAChD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,iEAAiE;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;4CAEwC;IACxC,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChC;;;wEAGoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAijBtC,CAAC"}
|
|
@@ -16,6 +16,18 @@ interface MessageItemProps {
|
|
|
16
16
|
* (deep-link arrival). Inline background overrides the :hover rule so the
|
|
17
17
|
* highlight holds steady while hovered. */
|
|
18
18
|
isHighlighted?: boolean;
|
|
19
|
+
/** When true, clamp the message body to a few lines (3 boxed / 5 normal)
|
|
20
|
+
* behind a "Show more"/"Show less" toggle. Used for the pinned thread root
|
|
21
|
+
* so a long opening message doesn't push the replies off-screen. */
|
|
22
|
+
collapsible?: boolean;
|
|
23
|
+
/** Channel-list thread root only: the reply count for the "Replies (n)"
|
|
24
|
+
* drill-in link. In boxed (HIG) mode the link renders inside the message
|
|
25
|
+
* box, left-aligned under the body; the non-boxed panel renders it
|
|
26
|
+
* externally (see ChannelThreadGroup), so this is ignored there. */
|
|
27
|
+
replyCount?: number;
|
|
28
|
+
/** Drill into this thread's detail view. Fired by the boxed-mode
|
|
29
|
+
* "Replies (n)" link (paired with `replyCount`). */
|
|
30
|
+
onOpenReplies?: () => void;
|
|
19
31
|
}
|
|
20
32
|
/**
|
|
21
33
|
* Single Chat-UI row per Figma 683:666933 / 666934.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageItem.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/MessageItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"MessageItem.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/MessageItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,EAA8C,MAAM,OAAO,CAAC;AAYtF,OAAO,KAAK,EAAE,YAAY,EAAiB,MAAM,6BAA6B,CAAC;AAiB/E,UAAU,gBAAgB;IACxB,OAAO,EAAE,YAAY,CAAC;IACtB;wEACoE;IACpE,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC;;kCAE8B;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;2EACuE;IACvE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;gDAE4C;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;yEAEqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;yEAGqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;yDACqD;IACrD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AAkDD;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuQ5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreadDetailView.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/ThreadDetailView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAyC,MAAM,OAAO,CAAC;AA0F7E,UAAU,qBAAqB;IAC7B,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB;;qEAEiE;IACjE,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ThreadDetailView.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/ThreadDetailView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAyC,MAAM,OAAO,CAAC;AA0F7E,UAAU,qBAAqB;IAC7B,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB;;qEAEiE;IACjE,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA6JtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreadSkeleton.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/ThreadSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ThreadSkeleton.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/ThreadSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAgD3B,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAQlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA8D,MAAM,OAAO,CAAC;AA+BvF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA8D,MAAM,OAAO,CAAC;AA+BvF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAugBrC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
1
2
|
import { BoxProps, ButtonProps, StackProps } from '@hiver/hiver-ui-kit';
|
|
2
3
|
import { StyledComponent } from '@emotion/styled';
|
|
3
4
|
type LinkedRootBaseProps = BoxProps & {
|
|
@@ -48,8 +49,14 @@ export declare const LoadOlderBar: StyledComponent<BoxProps>;
|
|
|
48
49
|
/**
|
|
49
50
|
* Thread-detail "‹ back" row (Figma 683:669379) — sits above the
|
|
50
51
|
* drilled-in thread, left-aligned with the message column.
|
|
52
|
+
*
|
|
53
|
+
* `boxed` (HIG layer): the message cards sit at the RepliesScroll gutter
|
|
54
|
+
* (8px/lg) rather than the panel pad (20px), so the back affordance takes the
|
|
55
|
+
* same 8px left inset to line up with the cards' left edge.
|
|
51
56
|
*/
|
|
52
|
-
export declare const BackRow: StyledComponent<BoxProps
|
|
57
|
+
export declare const BackRow: StyledComponent<BoxProps & {
|
|
58
|
+
boxed?: boolean;
|
|
59
|
+
}>;
|
|
53
60
|
/**
|
|
54
61
|
* Channel-mode scroll region (B4) — the full list of thread groups in
|
|
55
62
|
* the linked channel. Same scroll mechanics as RepliesScroll.
|
|
@@ -63,6 +70,19 @@ export declare const ChannelThreadsScroll: StyledComponent<BoxProps & {
|
|
|
63
70
|
* between messages.
|
|
64
71
|
*/
|
|
65
72
|
export declare const ThreadGroupRoot: StyledComponent<BoxProps>;
|
|
73
|
+
/**
|
|
74
|
+
* "Replies (n)" drill-in link on a channel-list thread root. Placement
|
|
75
|
+
* differs by layer:
|
|
76
|
+
* - non-boxed panel: rendered below the message row (sibling in
|
|
77
|
+
* ThreadGroupRoot), indented by `panel + avatar(30) + gap` so it lands
|
|
78
|
+
* under the root author's body column.
|
|
79
|
+
* - boxed (HIG) layer: rendered inside the message box as the last child
|
|
80
|
+
* of MessageBodyCol, so it sits inside the gray card and left-aligns with
|
|
81
|
+
* the message content (no indent — the column already starts at content).
|
|
82
|
+
*/
|
|
83
|
+
export declare const RepliesButton: StyledComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
84
|
+
boxed?: boolean;
|
|
85
|
+
}>;
|
|
66
86
|
/**
|
|
67
87
|
* Thread-detail reply stack (Figma 683:669746). Replies are indented
|
|
68
88
|
* 32px so their avatars sit under the root message's text column, and a
|
|
@@ -116,15 +136,20 @@ export declare const MessageRow: StyledComponent<StackProps & {
|
|
|
116
136
|
* z-index keeps it above adjacent rows' hover background. `overflow: hidden`
|
|
117
137
|
* clamps the button's hover tint to the pill's rounded corners.
|
|
118
138
|
*/
|
|
119
|
-
export declare const HoverToolbar: StyledComponent<BoxProps
|
|
139
|
+
export declare const HoverToolbar: StyledComponent<BoxProps & {
|
|
140
|
+
boxed?: boolean;
|
|
141
|
+
}>;
|
|
120
142
|
export declare const ReplyButton: StyledComponent<ButtonProps>;
|
|
121
143
|
export declare const DeleteButton: StyledComponent<ButtonProps>;
|
|
122
144
|
/**
|
|
123
145
|
* Avatar — 30px fully rounded per Figma 683:666937 (`size-[30px]
|
|
124
146
|
* rounded-[100px]`). Background per-author in production; the
|
|
125
|
-
* fallback uses Hiver's purple-light tint.
|
|
147
|
+
* fallback uses Hiver's purple-light tint. In boxed (HIG) mode the
|
|
148
|
+
* tighter card layout uses a 24px avatar.
|
|
126
149
|
*/
|
|
127
|
-
export declare const AvatarCircle: StyledComponent<BoxProps
|
|
150
|
+
export declare const AvatarCircle: StyledComponent<BoxProps & {
|
|
151
|
+
boxed?: boolean;
|
|
152
|
+
}>;
|
|
128
153
|
export declare const MessageBodyCol: StyledComponent<BoxProps>;
|
|
129
154
|
/**
|
|
130
155
|
* Header row — author + timestamp baseline-aligned with 12px gap
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/style.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAIvD,KAAK,mBAAmB,GAAG,QAAQ,GAAG;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,mBAAmB,CAa/D,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAgBr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,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAkBxE,CAAC;AAKF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,WAAW,CAkBpD,CAAC;AAKF,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,WAAW,CAmBrD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAsBxE,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,QAAQ,CAMpD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,eAAe,CAAC,UAAU,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAQ9E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,QAAQ,CAKlD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,QAAQ,CAQlD,CAAC"}
|
|
@@ -13,4 +13,9 @@ export declare const NON_REPLYABLE_SUBTYPES: ReadonlySet<string>;
|
|
|
13
13
|
/** Ordinary messages (no subtype) are replyable; system subtypes above
|
|
14
14
|
* are not. Unknown subtypes default to replyable. */
|
|
15
15
|
export declare const isReplyable: (message: Pick<SlackMessage, "subtype">) => boolean;
|
|
16
|
+
/** These lifecycle subtypes describe an event (e.g. "@X has joined the
|
|
17
|
+
* channel") rather than carrying a user-authored message. They render as a
|
|
18
|
+
* plain, full-width descriptive line — no avatar, author, timestamp, box, or
|
|
19
|
+
* reply affordance. (Tombstone is handled separately via DeletedTombstone.) */
|
|
20
|
+
export declare const isSystemNotice: (message: Pick<SlackMessage, "subtype">) => boolean;
|
|
16
21
|
//# sourceMappingURL=messageType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageType.d.ts","sourceRoot":"","sources":["../../../src/features/slack/messageType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAerD,CAAC;AAEH;sDACsD;AACtD,eAAO,MAAM,WAAW,YAAa,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,KAAG,OACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"messageType.d.ts","sourceRoot":"","sources":["../../../src/features/slack/messageType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAerD,CAAC;AAEH;sDACsD;AACtD,eAAO,MAAM,WAAW,YAAa,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,KAAG,OACH,CAAC;AAEnE;;;gFAGgF;AAChF,eAAO,MAAM,cAAc,YAAa,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,KAAG,OACN,CAAC"}
|
|
@@ -2,18 +2,14 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Display-only: render Slack's raw `<@USER_ID>` mention tokens. A token
|
|
4
4
|
* whose id resolves to a known channel member becomes a `@DisplayName`
|
|
5
|
-
* rendered in medium weight (500)
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* raw token so a re-send preserves the real Slack mention.
|
|
10
|
-
*
|
|
11
|
-
* `highlight` is gated on the `boxedMessages` flag at the call sites so the
|
|
12
|
-
* coloured mention is HIG-only and other surfaces keep the inherited colour.
|
|
5
|
+
* rendered in medium weight (500), keeping the SAME colour as the surrounding
|
|
6
|
+
* body text (no colour override). An UNRESOLVED id renders as plain `@<id>`.
|
|
7
|
+
* The stored/edited text keeps the raw token so a re-send preserves the real
|
|
8
|
+
* Slack mention.
|
|
13
9
|
*
|
|
14
10
|
* Shared by `MessageItem` (the full linked-conv panel rows) and the HIG
|
|
15
11
|
* `HigSlackSection` last-message preview so the two never drift — the
|
|
16
12
|
* section reuses this renderer rather than re-implementing it (§0 Addendum).
|
|
17
13
|
*/
|
|
18
|
-
export declare const renderTextWithMentions: (text: string, names?: Map<string, string
|
|
14
|
+
export declare const renderTextWithMentions: (text: string, names?: Map<string, string>) => ReactNode[];
|
|
19
15
|
//# sourceMappingURL=render-mentions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-mentions.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/utils/render-mentions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"render-mentions.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/utils/render-mentions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,SAAU,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,SAAS,EAwB3F,CAAC"}
|