@hiver/connector-agent 4.17.1-slack-beta.0 → 4.17.1-tabsapi-beta.0
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/features/slack/api/channels.d.ts +7 -11
- package/features/slack/api/channels.d.ts.map +1 -1
- package/features/slack/api/effective-config.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/Composer.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/MessageItem.d.ts.map +1 -1
- package/features/slack/components/LinkedConversationPanel/index.d.ts.map +1 -1
- package/features/slack/components/SlackConversationTab.d.ts.map +1 -1
- package/features/slack/components/StartModal/MemberSelect.d.ts.map +1 -1
- package/features/slack/components/StartModal/MentionTextarea.d.ts +12 -4
- package/features/slack/components/StartModal/MentionTextarea.d.ts.map +1 -1
- package/features/slack/components/StartModal/SlackChannelTab.d.ts +0 -2
- package/features/slack/components/StartModal/SlackChannelTab.d.ts.map +1 -1
- package/features/slack/components/StartModal/SlackThreadTab.d.ts.map +1 -1
- package/features/slack/components/StartModal/index.d.ts.map +1 -1
- package/features/slack/types/wire.d.ts +0 -12
- package/features/slack/types/wire.d.ts.map +1 -1
- package/index.es.js +10194 -10282
- package/index.umd.js +482 -482
- package/package.json +1 -1
- package/store/appStore.d.ts.map +1 -1
- package/features/slack/components/ReauthIllustration.d.ts +0 -15
- package/features/slack/components/ReauthIllustration.d.ts.map +0 -1
- package/features/slack/components/SlackReauthScreen.d.ts +0 -25
- package/features/slack/components/SlackReauthScreen.d.ts.map +0 -1
- package/features/slack/components/StartModal/__tests__/MentionTextarea.test.d.ts +0 -2
- package/features/slack/components/StartModal/__tests__/MentionTextarea.test.d.ts.map +0 -1
- package/features/slack/components/StartModal/__tests__/SlackThreadTab.test.d.ts +0 -2
- package/features/slack/components/StartModal/__tests__/SlackThreadTab.test.d.ts.map +0 -1
- package/features/slack/hooks/useReauthStatusRefetch.d.ts +0 -25
- package/features/slack/hooks/useReauthStatusRefetch.d.ts.map +0 -1
package/package.json
CHANGED
package/store/appStore.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appStore.d.ts","sourceRoot":"","sources":["../../src/store/appStore.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAiB,KAAK,EAAe,MAAM,kBAAkB,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"appStore.d.ts","sourceRoot":"","sources":["../../src/store/appStore.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAiB,KAAK,EAAe,MAAM,kBAAkB,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAuChD,eAAO,MAAM,cAAc,QAAO,KAAK,CAAC,UAAU,CAoGjD,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Illustration for the Slack tab's re-auth-required state — the
|
|
4
|
-
* designer-exported "broken connection" composition (the Hiver ⇄ Slack
|
|
5
|
-
* app cards with a snapped cord + broken-link glyph between them). Figma
|
|
6
|
-
* frame 1304:49822 ("Frame 1618872655", auth-failed variant) in the
|
|
7
|
-
* Internal-Collaboration Slack file.
|
|
8
|
-
*
|
|
9
|
-
* Mirrors HeroIllustration: rendered at its natural width (capped) and
|
|
10
|
-
* centered above the body copy + Re-authenticate CTA.
|
|
11
|
-
*/
|
|
12
|
-
export declare const ReauthIllustration: FC<{
|
|
13
|
-
width?: number;
|
|
14
|
-
}>;
|
|
15
|
-
//# sourceMappingURL=ReauthIllustration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReauthIllustration.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/components/ReauthIllustration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAM3B;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAQrD,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ITrackingData } from '../../../context';
|
|
3
|
-
interface SlackReauthScreenProps {
|
|
4
|
-
connectorId: string;
|
|
5
|
-
/** Gainsight sink, threaded from SlackContext by the tab. */
|
|
6
|
-
sendTrackingEvent?: (event: string, data?: ITrackingData) => void;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Re-authentication-required screen — Figma frame 1304:49821
|
|
10
|
-
* (Conversation_Open, auth-failed variant).
|
|
11
|
-
*
|
|
12
|
-
* Shown inline in the Slack tab body when the agent's Slack user-token has
|
|
13
|
-
* expired or been revoked (user-auth state `reauth_required`). Unlike
|
|
14
|
-
* first-time connect — which uses the <SlackConnectModal> overlay — this is
|
|
15
|
-
* a full-tab state: the broken Hiver⇄Slack illustration, a single line of
|
|
16
|
-
* copy, and a blue Re-authenticate CTA.
|
|
17
|
-
*
|
|
18
|
-
* The CTA runs the EXACT same OAuth popup + status-poll as first connect
|
|
19
|
-
* (useUserAuthFlow.connect). While the popup is open (in_progress) the card
|
|
20
|
-
* swaps to a "Reconnecting…" state so it doesn't flash the failed copy; on
|
|
21
|
-
* success the tab re-renders to the linked/ready panel.
|
|
22
|
-
*/
|
|
23
|
-
export declare const SlackReauthScreen: FC<SlackReauthScreenProps>;
|
|
24
|
-
export default SlackReauthScreen;
|
|
25
|
-
//# sourceMappingURL=SlackReauthScreen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SlackReauthScreen.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/components/SlackReauthScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAe,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAO/C,UAAU,sBAAsB;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CACnE;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAmCxD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MentionTextarea.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/slack/components/StartModal/__tests__/MentionTextarea.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SlackThreadTab.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/slack/components/StartModal/__tests__/SlackThreadTab.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* True when an error is Slack rejecting the agent's own user-token:
|
|
3
|
-
* - 401 { reason: 'slack_invalid_auth' } — a live invalid_auth /
|
|
4
|
-
* token_revoked / token_expired on an agent action.
|
|
5
|
-
* - 412 { reason: 'user_slack_auth_missing' } — the connector was
|
|
6
|
-
* already flagged reauth_required, so the resolver short-circuits
|
|
7
|
-
* before hitting Slack.
|
|
8
|
-
*
|
|
9
|
-
* Mirrors useLeftChannelGuard's isNotInChannelError detector shape.
|
|
10
|
-
*/
|
|
11
|
-
export declare const isSlackAuthError: (err: unknown) => boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Returns a callback that refetches the agent's user-auth status by
|
|
14
|
-
* invalidating its query. Used for mid-session token death: the backend
|
|
15
|
-
* flips the connector to `reauth_required` in the SAME request that 401s
|
|
16
|
-
* (the mark lands before the response is sent), so the refetch returns
|
|
17
|
-
* `reauth_required` and SlackConversationTab swaps in the inline re-auth
|
|
18
|
-
* screen — no remount needed.
|
|
19
|
-
*
|
|
20
|
-
* Call it from an action's error handler (guarded by isSlackAuthError) or
|
|
21
|
-
* directly when the conversation payload reports the viewer is no longer
|
|
22
|
-
* connected (viewerPostBlockReason === 'slack_not_connected').
|
|
23
|
-
*/
|
|
24
|
-
export declare function useReauthStatusRefetch(): () => void;
|
|
25
|
-
//# sourceMappingURL=useReauthStatusRefetch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useReauthStatusRefetch.d.ts","sourceRoot":"","sources":["../../../../src/features/slack/hooks/useReauthStatusRefetch.ts"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,QAAS,OAAO,KAAG,OAO/C,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,IAAI,CAMnD"}
|