@hiver/connector-agent 4.22.3 → 4.22.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.
@@ -14,6 +14,10 @@ export interface SlackLinkActionsResult {
14
14
  * link-existing flow never sets this — it shows its own inline error on
15
15
  * an already-linked target instead of reporting completion. */
16
16
  alreadyLinked?: boolean;
17
+ /** What was linked/unlinked — hosts word their success toast per kind
18
+ * ("Slack thread linked" vs "Slack channel linked"). Undefined only on
19
+ * a legacy start path that doesn't report the kind. */
20
+ targetKind?: 'channel' | 'thread';
17
21
  }
18
22
  export type SlackLinkActionsIslandProps = SlackContextData & {
19
23
  /** Host-controlled color scheme + token overrides. */
@@ -23,7 +27,9 @@ export type SlackLinkActionsIslandProps = SlackContextData & {
23
27
  flow: SlackLinkActionsFlow | null;
24
28
  /** Link row to unlink — required when flow === 'unlink'. */
25
29
  unlinkLinkId?: string;
26
- /** Target kind of the unlink row — tracking metadata only. */
30
+ /** Target kind of the unlink row — drives the confirm dialog's title
31
+ * ("Unlink thread?" vs "Unlink channel?") as well as the tracking
32
+ * metadata. Absent → the dialog falls back to the channel wording. */
27
33
  unlinkTargetKind?: 'channel' | 'thread';
28
34
  /** Links currently on the conversation — analytics metadata for the
29
35
  * link flow (PRD: linked count at the moment of linking). */
@@ -1 +1 @@
1
- {"version":3,"file":"SlackLinkActionsIsland.d.ts","sourceRoot":"","sources":["../../../src/app/omni-slack/SlackLinkActionsIsland.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAWlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAIpE,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE/D,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,oBAAoB,CAAC;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,SAAS,GAAG,QAAQ,CAAC;CACnC;AAED,MAAM,MAAM,2BAA2B,GAAG,gBAAgB,GAAG;IAC3D,sDAAsD;IACtD,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B;oEACgE;IAChE,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAClC,4DAA4D;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;2EAEuE;IACvE,gBAAgB,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IACxC;kEAC8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;yCACqC;IACrC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB;yDACqD;IACrD,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACxD,CAAC;AA4GF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAoBlE,CAAC"}
@@ -10,7 +10,7 @@ interface ChannelPickerProps {
10
10
  * list is a FLOATING dropdown that opens only while the input is
11
11
  * focused (it overlays, never pushes, the content below). Picking a
12
12
  * channel closes it and renders the selected-channel box (name +
13
- * "N Members") under the input; focusing the input again reopens the
13
+ * "N members") under the input; focusing the input again reopens the
14
14
  * dropdown; the input's × clears both the query and the selection.
15
15
  *
16
16
  * `memberCount` is optional on the /channels wire — the members line is
@@ -3,16 +3,18 @@ interface LinkExistingModalProps {
3
3
  open: boolean;
4
4
  onClose: () => void;
5
5
  /** Fired on success with the NEW link's id (externalConversationId)
6
- * so the parent can select/open it. */
7
- onLinked?: (linkId: string) => void;
6
+ * so the parent can select/open it, plus the kind that was linked —
7
+ * hosts word their success toast per kind ("Slack thread linked" vs
8
+ * "Slack channel linked"), so they can't infer it from the id alone. */
9
+ onLinked?: (linkId: string, targetKind: 'thread' | 'channel') => void;
8
10
  /** Links currently on the conversation — analytics metadata only
9
11
  * (PRD: linked count 0–3 at the moment of linking). */
10
12
  linkedCount?: number;
11
13
  }
12
14
  /**
13
- * M2 "Link Slack Conversation" modal (Figma M2 1705:92605 / 1719:109242).
15
+ * M2 "Link a Slack thread or channel" modal (Figma M2 1705:92605 / 1719:109242).
14
16
  * Two tabs:
15
- * Thread — paste a Slack thread permalink → Fetch → preview card
17
+ * Thread — paste a Slack thread permalink → Preview → preview card
16
18
  * (first message, channel, member count, type) → link.
17
19
  * Channel — search the workspace channel directory → pick → link.
18
20
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkExistingModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAwClD,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;4CACwC;IACxC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC;4DACwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA2BD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAwUxD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkExistingModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAwClD,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;6EAGyE;IACzE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,CAAC;IACtE;4DACwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA2BD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAwUxD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=deepLinkScroll.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepLinkScroll.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/slack/components/LinkedConversationPanel/__tests__/deepLinkScroll.test.tsx"],"names":[],"mappings":""}
@@ -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;AAqCvF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;6EAEyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;mDAC+C;IAC/C,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AA8nBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAIpE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA0E,MAAM,OAAO,CAAC;AAqCnG;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;6EAEyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;mDAC+C;IAC/C,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AA+oBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAIpE,CAAC"}
@@ -5,8 +5,11 @@ interface StartModalProps {
5
5
  /** Called after a successful start, with the linked channel id so
6
6
  * the parent can transition to the linked-conv view. M2 adds the new
7
7
  * link row's id (`externalConversationId`) as a second arg so the
8
- * multi-link tab can select the exact item without waiting a poll. */
9
- onStarted?: (channelId: string, linkId?: string) => void;
8
+ * multi-link tab can select the exact item without waiting a poll, and
9
+ * the kind that was created as a third — hosts word their success toast
10
+ * per kind, and the Slack-thread tab creates a THREAD in an existing
11
+ * channel while the Slack-channel tab creates a channel. */
12
+ onStarted?: (channelId: string, linkId?: string, targetKind?: 'thread' | 'channel') => void;
10
13
  /** Multi-link (M2): 409 slack_target_already_linked → the parent
11
14
  * switches to the existing item (Figma M2 "switch to that tab").
12
15
  * Absent (flag off) → the M1 silent-adopt behavior is preserved. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/StartModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAuC9E,UAAU,eAAe;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;2EAGuE;IACvE,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD;;yEAEqE;IACrE,eAAe,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD;;;;qBAIiB;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAID;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA0R1C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/StartModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAuC9E,UAAU,eAAe;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;;;iEAM6D;IAC7D,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,CAAC;IAC5F;;yEAEqE;IACrE,eAAe,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD;;;;qBAIiB;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAID;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA0R1C,CAAC"}