@hiver/connector-agent 4.22.0-slackM2-beta.13 → 4.22.0-slackM2-beta.15
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/omni-slack/SlackLinkActionsIsland.d.ts +11 -6
- package/app/omni-slack/SlackLinkActionsIsland.d.ts.map +1 -1
- package/features/slack/components/ErrorOutlineIcon.d.ts +9 -0
- package/features/slack/components/ErrorOutlineIcon.d.ts.map +1 -0
- package/features/slack/components/LinkExistingModal/__tests__/errorHandling.test.d.ts +2 -0
- package/features/slack/components/LinkExistingModal/__tests__/errorHandling.test.d.ts.map +1 -0
- package/features/slack/components/LinkExistingModal/index.d.ts +0 -3
- package/features/slack/components/LinkExistingModal/index.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/LinkedChannelHeader.d.ts +9 -7
- package/features/slack/components/LinkedConversationPanel/LinkedChannelHeader.d.ts.map +1 -1
- package/features/slack/components/MoreVertIcon.d.ts +9 -0
- package/features/slack/components/MoreVertIcon.d.ts.map +1 -0
- package/features/slack/components/SlackConversationTab.d.ts.map +1 -1
- package/features/slack/components/SlackLinkList.d.ts.map +1 -1
- package/features/slack/components/UnlinkIcon.d.ts +9 -0
- package/features/slack/components/UnlinkIcon.d.ts.map +1 -0
- package/features/slack/components/figma-tokens.d.ts +3 -0
- package/features/slack/components/figma-tokens.d.ts.map +1 -1
- package/index.es.js +3663 -3585
- package/index.umd.js +260 -260
- package/package.json +1 -1
- 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,EAA6C,MAAM,OAAO,CAAC;AAetE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAWjE,OAA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EAAE,CAAC,wBAAwB,CAe5D,CAAC"}
|
|
@@ -5,12 +5,14 @@ export type SlackLinkActionsFlow = 'start' | 'link' | 'unlink';
|
|
|
5
5
|
export interface SlackLinkActionsResult {
|
|
6
6
|
flow: SlackLinkActionsFlow;
|
|
7
7
|
/** The affected link row id: the NEW link for start/link (the EXISTING
|
|
8
|
-
* one when
|
|
8
|
+
* one when start hit an already-linked target — see alreadyLinked), the
|
|
9
9
|
* removed one for unlink. Undefined only on the legacy start path that
|
|
10
10
|
* responds without an externalConversationId. */
|
|
11
11
|
linkId?: string;
|
|
12
|
-
/** start
|
|
13
|
-
*
|
|
12
|
+
/** start resolved to a 409 slack_target_already_linked — nothing new was
|
|
13
|
+
* created; the host should switch to the existing item's tab. The
|
|
14
|
+
* link-existing flow never sets this — it shows its own inline error on
|
|
15
|
+
* an already-linked target instead of reporting completion. */
|
|
14
16
|
alreadyLinked?: boolean;
|
|
15
17
|
}
|
|
16
18
|
export type SlackLinkActionsIslandProps = SlackContextData & {
|
|
@@ -40,9 +42,12 @@ export type SlackLinkActionsIslandProps = SlackContextData & {
|
|
|
40
42
|
* list-first OmniSlackTab surface (Omni host contract HC3, M2-E2).
|
|
41
43
|
*
|
|
42
44
|
* All modals portal to document.body; this island's own DOM node stays
|
|
43
|
-
* empty. Error handling (cap 409,
|
|
44
|
-
*
|
|
45
|
-
*
|
|
45
|
+
* empty. Error handling (cap 409, 404/422/auth, an inline message for every
|
|
46
|
+
* other 4xx/5xx) lives inside the reused modals; only Start's already-linked
|
|
47
|
+
* 409 escapes as onCompleted({alreadyLinked: true}) so the host can switch
|
|
48
|
+
* tabs — the link-existing modal shows its own inline message on the same
|
|
49
|
+
* 409 instead. No success toast is shown — the host fires its own snackbar
|
|
50
|
+
* on onCompleted (HC6).
|
|
46
51
|
*/
|
|
47
52
|
export declare const SlackLinkActionsIsland: FC<SlackLinkActionsIslandProps>;
|
|
48
53
|
//# sourceMappingURL=SlackLinkActionsIsland.d.ts.map
|
|
@@ -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;IAC3B;;;sDAGkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;
|
|
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;IAC3B;;;sDAGkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;oEAGgE;IAChE,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;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,8DAA8D;IAC9D,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;AAuGF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAoBlE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Error/warning glyph (Figma M2 1961:32366, "Material Design Icons/Outlined/
|
|
4
|
+
* error_outline") — sits to the left of the cap-reached banner text in the
|
|
5
|
+
* multi-link tab list (`SlackLinkList`). `fill="currentColor"` so it tracks
|
|
6
|
+
* the banner's text color.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ErrorOutlineIcon: FC;
|
|
9
|
+
//# sourceMappingURL=ErrorOutlineIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorOutlineIcon.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/components/ErrorOutlineIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAO9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorHandling.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/slack/components/LinkExistingModal/__tests__/errorHandling.test.tsx"],"names":[],"mappings":""}
|
|
@@ -5,9 +5,6 @@ interface LinkExistingModalProps {
|
|
|
5
5
|
/** Fired on success with the NEW link's id (externalConversationId)
|
|
6
6
|
* so the parent can select/open it. */
|
|
7
7
|
onLinked?: (linkId: string) => void;
|
|
8
|
-
/** 409 slack_target_already_linked: the parent switches to the
|
|
9
|
-
* existing item instead of surfacing an error. */
|
|
10
|
-
onAlreadyLinked?: (existingLinkId: string) => void;
|
|
11
8
|
/** Links currently on the conversation — analytics metadata only
|
|
12
9
|
* (PRD: linked count 0–3 at the moment of linking). */
|
|
13
10
|
linkedCount?: number;
|
|
@@ -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;
|
|
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;AAyClD,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,CAkUxD,CAAC"}
|
|
@@ -10,9 +10,9 @@ interface LinkedChannelHeaderProps {
|
|
|
10
10
|
/** Multi-link (M2): render a "← Back" row above the meta rows, returning to
|
|
11
11
|
* the links list. Absent (flag off / single link) → no back affordance. */
|
|
12
12
|
onBack?: () => void;
|
|
13
|
-
/** Multi-link (M2): render
|
|
14
|
-
*
|
|
15
|
-
* Absent → no
|
|
13
|
+
/** Multi-link (M2): render a kebab (⋮) options button on the Channel row
|
|
14
|
+
* with an "Unlink" menu item; picking it opens the unlink confirmation
|
|
15
|
+
* modal (owned by the caller). Absent → no kebab (flag off). */
|
|
16
16
|
onUnlink?: () => void;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
@@ -20,10 +20,12 @@ interface LinkedChannelHeaderProps {
|
|
|
20
20
|
* Phase 1 renders a `Channel:` (gray label) + `#<name>` (dark value) row; Phase 2
|
|
21
21
|
* adds an additive `URL:` row (blue, truncated link opening Slack in a new tab)
|
|
22
22
|
* whenever a `channelUrl` is supplied. M2 (multi-link) adds an optional "← Back"
|
|
23
|
-
* row (returns to the links list, Figma M2 1699:30955) and
|
|
24
|
-
* on the Channel row (Figma M2
|
|
25
|
-
*
|
|
26
|
-
*
|
|
23
|
+
* row (returns to the links list, Figma M2 1699:30955) and a kebab (⋮) options
|
|
24
|
+
* button on the Channel row (Figma M2 1699:26250 / 1961:33265) whose dropdown
|
|
25
|
+
* holds a single "Unlink" item that opens the unlink confirmation modal
|
|
26
|
+
* directly — replaces the earlier bare unlink icon button. The bottom
|
|
27
|
+
* hairline lives on `ChannelHeaderBand`. Gated by `showChannelHeader` at the
|
|
28
|
+
* call site.
|
|
27
29
|
*/
|
|
28
30
|
export declare const LinkedChannelHeader: FC<LinkedChannelHeaderProps>;
|
|
29
31
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkedChannelHeader.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/LinkedChannelHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"LinkedChannelHeader.d.ts","sourceRoot":"","sources":["../../../../../src/features/slack/components/LinkedConversationPanel/LinkedChannelHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAwB,MAAM,OAAO,CAAC;AASjD,UAAU,wBAAwB;IAChC;sFACkF;IAClF,WAAW,EAAE,MAAM,CAAC;IACpB;;8DAE0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;gFAC4E;IAC5E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;qEAEiE;IACjE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAYD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA8I5D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Kebab (⋮) trigger glyph (Figma M2 1961:33279, "Material Design Icons/
|
|
4
|
+
* Outlined/more_vert") — opens the channel-row options menu (Unlink) in
|
|
5
|
+
* `LinkedChannelHeader`. `fill="currentColor"` so it tracks the button's
|
|
6
|
+
* icon color.
|
|
7
|
+
*/
|
|
8
|
+
export declare const MoreVertIcon: FC;
|
|
9
|
+
//# sourceMappingURL=MoreVertIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoreVertIcon.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/components/MoreVertIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,EAO1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlackConversationTab.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/components/SlackConversationTab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA4C,MAAM,OAAO,CAAC;AAmCrE,UAAU,yBAAyB;IACjC;;oDAEgD;IAChD,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC;AA+CD,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"SlackConversationTab.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/components/SlackConversationTab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA4C,MAAM,OAAO,CAAC;AAmCrE,UAAU,yBAAyB;IACjC;;oDAEgD;IAChD,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC;AA+CD,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAmd9D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlackLinkList.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/components/SlackLinkList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SlackLinkList.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/components/SlackLinkList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAQ3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE7D,UAAU,kBAAkB;IAC1B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,sEAAsE;IACtE,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAiCD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAmJhD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* "Unlink" glyph for the channel-row options menu item (Figma M2
|
|
4
|
+
* 1961:33269) — a broken-link-with-sparkles icon, distinct from the
|
|
5
|
+
* connect-flow `LinkIcon`. `stroke="currentColor"` so it tracks the menu
|
|
6
|
+
* item's text color.
|
|
7
|
+
*/
|
|
8
|
+
export declare const UnlinkIcon: FC;
|
|
9
|
+
//# sourceMappingURL=UnlinkIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnlinkIcon.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/components/UnlinkIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,EAUxB,CAAC"}
|
|
@@ -51,6 +51,9 @@ export declare const slackTokens: {
|
|
|
51
51
|
readonly convRowBackground: "#f6f8fc";
|
|
52
52
|
readonly convRowHoverBackground: "#eceff6";
|
|
53
53
|
readonly previewMetaText: "#6f7c90";
|
|
54
|
+
readonly errorSurfaceSubtle: "#fdf5f6";
|
|
55
|
+
readonly errorTextDefault: "#cd3746";
|
|
56
|
+
readonly menuItemText: "#4d596c";
|
|
54
57
|
};
|
|
55
58
|
readonly space: {
|
|
56
59
|
readonly xs: 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"figma-tokens.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/components/figma-tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"figma-tokens.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/components/figma-tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyGd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC"}
|