@hiver/connector-agent 4.27.3-slackRichText-beta.0 → 4.27.3-slackRichText-beta.2

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.
@@ -1 +1 @@
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;AActF,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;;;4DAGwD;IACxD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;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;AAuDD;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAwS5C,CAAC"}
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;AActF,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;;;4DAGwD;IACxD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;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;AAuDD;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAiT5C,CAAC"}
@@ -1,4 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
+ /**
3
+ * Slack escapes exactly three characters in message text (`&`, `<`, `>`)
4
+ * before putting it on the wire, so `?a=1&b=2` arrives as `?a=1&amp;b=2`.
5
+ * Reverse it on the OUTPUT side only — doing it before tokenising would let
6
+ * an escaped `&lt;` masquerade as an entity delimiter.
7
+ */
8
+ export declare const unescapeSlack: (text: string) => string;
2
9
  /**
3
10
  * Render Slack message text: entities resolved (`<@U123>` → medium-weight
4
11
  * `@DisplayName`, `<url|label>` → a clickable `<a>` in a new tab) and mrkdwn
@@ -16,9 +23,8 @@ import { ReactNode } from 'react';
16
23
  * single most common cause of a Slack panel overflowing its column; the
17
24
  * surrounding body element must set the same (see MessageItem).
18
25
  *
19
- * Shared by `MessageItem` (the full linked-conv panel rows), the Block Kit
20
- * renderer (`blocks.tsx`) and the HIG `HigSlackSection` last-message preview,
21
- * so they never drift.
26
+ * Shared by `MessageItem` (the full linked-conv panel rows) and the Block Kit
27
+ * renderer (`blocks.tsx`), so they never drift.
22
28
  */
23
29
  export declare const renderSlackMrkdwn: (text: string, names?: Map<string, string>, isResolving?: boolean) => ReactNode[];
24
30
  /**
@@ -30,5 +36,5 @@ export declare const renderSlackMrkdwn: (text: string, names?: Map<string, strin
30
36
  * label rather than the raw `<http://…|…>` source, and the words rather than
31
37
  * their `*`/`_`/`>` markers.
32
38
  */
33
- export declare const slackMrkdwnToPlainText: (text: string) => string;
39
+ export declare const slackMrkdwnToPlainText: (text: string, names?: Map<string, string>) => string;
34
40
  //# sourceMappingURL=mrkdwn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mrkdwn.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/utils/mrkdwn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA+OvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,iBAAiB,SAAU,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,4BAAwB,SAAS,EA0F3G,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,SAAU,MAAM,KAAG,MA+BrD,CAAC"}
1
+ {"version":3,"file":"mrkdwn.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/utils/mrkdwn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA+CvC;;;;;GAKG;AACH,eAAO,MAAM,aAAa,SAAU,MAAM,KAAG,MAC4B,CAAC;AAqN1E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,iBAAiB,SAAU,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,4BAAwB,SAAS,EAwF3G,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,SAAU,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,MAuClF,CAAC"}