@hiver/connector-agent 4.16.1 → 4.18.0-slackm2-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/README.md +9 -9
- package/app/hig-slack/HigSlackConnectModalIsland.d.ts +19 -0
- package/app/hig-slack/HigSlackConnectModalIsland.d.ts.map +1 -0
- package/app/hig-slack/HigSlackSection.d.ts +15 -0
- package/app/hig-slack/HigSlackSection.d.ts.map +1 -0
- package/app/hig-slack/index.d.ts +15 -0
- package/app/hig-slack/index.d.ts.map +1 -0
- package/app/hig-slack/provider.d.ts +21 -0
- package/app/hig-slack/provider.d.ts.map +1 -0
- package/app/hig-slack/style.d.ts +38 -0
- package/app/hig-slack/style.d.ts.map +1 -0
- package/app/omni-slack/SlackConnectModalIsland.d.ts +26 -0
- package/app/omni-slack/SlackConnectModalIsland.d.ts.map +1 -0
- package/app/omni-slack/index.d.ts +14 -0
- package/app/omni-slack/index.d.ts.map +1 -0
- package/app/omni-slack/provider.d.ts +15 -0
- package/app/omni-slack/provider.d.ts.map +1 -0
- package/constants/tracking-events.d.ts +8 -0
- package/constants/tracking-events.d.ts.map +1 -1
- package/features/email-logger/omni/components/LogEmailPill.d.ts.map +1 -1
- package/features/email-logger/omni/components/LogEmailPill.test.d.ts +2 -0
- package/features/email-logger/omni/components/LogEmailPill.test.d.ts.map +1 -0
- package/features/slack/api/channels.d.ts +11 -0
- package/features/slack/api/channels.d.ts.map +1 -0
- package/features/slack/api/conversations.d.ts +41 -0
- package/features/slack/api/conversations.d.ts.map +1 -0
- package/features/slack/api/effective-config.d.ts +21 -0
- package/features/slack/api/effective-config.d.ts.map +1 -0
- package/features/slack/api/index.d.ts +4 -0
- package/features/slack/api/index.d.ts.map +1 -0
- package/features/slack/api/linked-conv.d.ts +33 -0
- package/features/slack/api/linked-conv.d.ts.map +1 -0
- package/features/slack/api/members.d.ts +10 -0
- package/features/slack/api/members.d.ts.map +1 -0
- package/features/slack/api/messages.d.ts +10 -0
- package/features/slack/api/messages.d.ts.map +1 -0
- package/features/slack/api/normalise.d.ts +3 -0
- package/features/slack/api/normalise.d.ts.map +1 -0
- package/features/slack/api/users.d.ts +11 -0
- package/features/slack/api/users.d.ts.map +1 -0
- package/features/slack/avatar/SlackAvatar.d.ts +20 -0
- package/features/slack/avatar/SlackAvatar.d.ts.map +1 -0
- package/features/slack/avatar/cache.d.ts +10 -0
- package/features/slack/avatar/cache.d.ts.map +1 -0
- package/features/slack/avatar/index.d.ts +2 -0
- package/features/slack/avatar/index.d.ts.map +1 -0
- package/features/slack/components/AnimatedDots.d.ts +2 -0
- package/features/slack/components/AnimatedDots.d.ts.map +1 -0
- package/features/slack/components/HeroIllustration.d.ts +14 -0
- package/features/slack/components/HeroIllustration.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/ChannelStateView.d.ts +21 -0
- package/features/slack/components/LinkedConversationPanel/ChannelStateView.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/ChannelThreadGroup.d.ts +28 -0
- package/features/slack/components/LinkedConversationPanel/ChannelThreadGroup.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/Composer.d.ts +50 -0
- package/features/slack/components/LinkedConversationPanel/Composer.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/ConfirmDeleteModal.d.ts +24 -0
- package/features/slack/components/LinkedConversationPanel/ConfirmDeleteModal.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/DeletedTombstone.d.ts +16 -0
- package/features/slack/components/LinkedConversationPanel/DeletedTombstone.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/LinkedChannelHeader.d.ts +21 -0
- package/features/slack/components/LinkedConversationPanel/LinkedChannelHeader.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/LoadOlderMessages.d.ts +16 -0
- package/features/slack/components/LinkedConversationPanel/LoadOlderMessages.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/MentionPicker.d.ts +27 -0
- package/features/slack/components/LinkedConversationPanel/MentionPicker.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/MessageItem.d.ts +31 -0
- package/features/slack/components/LinkedConversationPanel/MessageItem.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/NotMemberTooltip.d.ts +5 -0
- package/features/slack/components/LinkedConversationPanel/NotMemberTooltip.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/ReconnectSlackBanner.d.ts +15 -0
- package/features/slack/components/LinkedConversationPanel/ReconnectSlackBanner.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/ThreadDetailView.d.ts +22 -0
- package/features/slack/components/LinkedConversationPanel/ThreadDetailView.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/ThreadSkeleton.d.ts +3 -0
- package/features/slack/components/LinkedConversationPanel/ThreadSkeleton.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/__tests__/MessageItem.test.d.ts +2 -0
- package/features/slack/components/LinkedConversationPanel/__tests__/MessageItem.test.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/index.d.ts +27 -0
- package/features/slack/components/LinkedConversationPanel/index.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/style.d.ts +147 -0
- package/features/slack/components/LinkedConversationPanel/style.d.ts.map +1 -0
- package/features/slack/components/SlackConnectModal.d.ts +29 -0
- package/features/slack/components/SlackConnectModal.d.ts.map +1 -0
- package/features/slack/components/SlackConversationTab.d.ts +10 -0
- package/features/slack/components/SlackConversationTab.d.ts.map +1 -0
- package/features/slack/components/SlackLogo.d.ts +11 -0
- package/features/slack/components/SlackLogo.d.ts.map +1 -0
- package/features/slack/components/StartModal/MemberSelect.d.ts +9 -0
- package/features/slack/components/StartModal/MemberSelect.d.ts.map +1 -0
- package/features/slack/components/StartModal/MentionTextarea.d.ts +28 -0
- package/features/slack/components/StartModal/MentionTextarea.d.ts.map +1 -0
- package/features/slack/components/StartModal/SelectField.d.ts +19 -0
- package/features/slack/components/StartModal/SelectField.d.ts.map +1 -0
- package/features/slack/components/StartModal/SlackChannelTab.d.ts +23 -0
- package/features/slack/components/StartModal/SlackChannelTab.d.ts.map +1 -0
- package/features/slack/components/StartModal/SlackThreadTab.d.ts +26 -0
- package/features/slack/components/StartModal/SlackThreadTab.d.ts.map +1 -0
- package/features/slack/components/StartModal/TabIcon.d.ts +16 -0
- package/features/slack/components/StartModal/TabIcon.d.ts.map +1 -0
- package/features/slack/components/StartModal/__tests__/MemberSelect.test.d.ts +2 -0
- package/features/slack/components/StartModal/__tests__/MemberSelect.test.d.ts.map +1 -0
- package/features/slack/components/StartModal/dropdownOmni.d.ts +121 -0
- package/features/slack/components/StartModal/dropdownOmni.d.ts.map +1 -0
- package/features/slack/components/StartModal/index.d.ts +27 -0
- package/features/slack/components/StartModal/index.d.ts.map +1 -0
- package/features/slack/components/StartModal/style.d.ts +39 -0
- package/features/slack/components/StartModal/style.d.ts.map +1 -0
- package/features/slack/components/figma-tokens.d.ts +94 -0
- package/features/slack/components/figma-tokens.d.ts.map +1 -0
- package/features/slack/components/style.d.ts +54 -0
- package/features/slack/components/style.d.ts.map +1 -0
- package/features/slack/constants/api.d.ts +13 -0
- package/features/slack/constants/api.d.ts.map +1 -0
- package/features/slack/context.d.ts +99 -0
- package/features/slack/context.d.ts.map +1 -0
- package/features/slack/hooks/__tests__/useOlderMessages.test.d.ts +2 -0
- package/features/slack/hooks/__tests__/useOlderMessages.test.d.ts.map +1 -0
- package/features/slack/hooks/useLeftChannelGuard.d.ts +5 -0
- package/features/slack/hooks/useLeftChannelGuard.d.ts.map +1 -0
- package/features/slack/hooks/useOlderMessages.d.ts +51 -0
- package/features/slack/hooks/useOlderMessages.d.ts.map +1 -0
- package/features/slack/hooks/useSlackTabLabel.d.ts +23 -0
- package/features/slack/hooks/useSlackTabLabel.d.ts.map +1 -0
- package/features/slack/messageType.d.ts +16 -0
- package/features/slack/messageType.d.ts.map +1 -0
- package/features/slack/types/wire.d.ts +205 -0
- package/features/slack/types/wire.d.ts.map +1 -0
- package/features/slack/utils/emoji.d.ts +7 -0
- package/features/slack/utils/emoji.d.ts.map +1 -0
- package/features/slack/utils/format-timestamp.d.ts +3 -0
- package/features/slack/utils/format-timestamp.d.ts.map +1 -0
- package/features/slack/utils/mentions.d.ts +18 -0
- package/features/slack/utils/mentions.d.ts.map +1 -0
- package/features/slack/utils/render-mentions.d.ts +15 -0
- package/features/slack/utils/render-mentions.d.ts.map +1 -0
- package/features/slack/utils/slack-links.d.ts +23 -0
- package/features/slack/utils/slack-links.d.ts.map +1 -0
- package/features/slack/utils/text.d.ts +7 -0
- package/features/slack/utils/text.d.ts.map +1 -0
- package/features/toast-message/ToastRoot.d.ts.map +1 -1
- package/index.d.ts +11 -0
- package/index.d.ts.map +1 -1
- package/index.es.js +20208 -13642
- package/index.umd.js +1226 -427
- package/main-dev.d.ts.map +1 -1
- package/package.json +1 -1
- package/testing/mocks/handlers/fetch-cards.d.ts +2 -2
- package/testing/mocks/handlers/slack.d.ts +36 -0
- package/testing/mocks/handlers/slack.d.ts.map +1 -0
- package/testing/mocks/handlers.d.ts.map +1 -1
package/main-dev.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main-dev.d.ts","sourceRoot":"","sources":["../src/main-dev.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main-dev.d.ts","sourceRoot":"","sources":["../src/main-dev.tsx"],"names":[],"mappings":"AAsOA,eAAO,MAAM,OAAO,+CA8EnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ export declare const getSpecificConnector: (id: string, count?: number, isPrevie
|
|
|
12
12
|
readonly label: string;
|
|
13
13
|
readonly value: string | string[] | null;
|
|
14
14
|
readonly errorMessage: "" | null;
|
|
15
|
-
readonly statusCode:
|
|
15
|
+
readonly statusCode: 500 | 404 | 400 | 200;
|
|
16
16
|
readonly priority: number;
|
|
17
17
|
readonly deepLink: string | null;
|
|
18
18
|
readonly key: string;
|
|
@@ -22,7 +22,7 @@ export declare const getSpecificConnector: (id: string, count?: number, isPrevie
|
|
|
22
22
|
readonly label: string;
|
|
23
23
|
readonly value: string | string[] | null;
|
|
24
24
|
readonly errorMessage: "" | null;
|
|
25
|
-
readonly statusCode:
|
|
25
|
+
readonly statusCode: 500 | 404 | 400 | 200;
|
|
26
26
|
readonly priority: number;
|
|
27
27
|
readonly deepLink: string | null;
|
|
28
28
|
readonly key: string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SlackReaction, SlackTargetKind } from '../../../features/slack/types/wire';
|
|
2
|
+
/**
|
|
3
|
+
* MSW handlers for the Slack agent + effective-config endpoints.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors handlers/user-auth.ts:
|
|
6
|
+
* - In-memory state per hiverConvId, mutated by POST/PATCH/DELETE.
|
|
7
|
+
* - VITE_SLACK_MOCK_STATE env var can pre-seed scenarios:
|
|
8
|
+
* { "<hiverConvId>": { "linked": true, "channelName": "ops" } }
|
|
9
|
+
* - VITE_SLACK_EFFECTIVE env var forces the effective-config
|
|
10
|
+
* response, e.g. {"enabled":false,"reason":"config_not_found"}.
|
|
11
|
+
*
|
|
12
|
+
* Default first-load: effective-config enabled + no linked thread →
|
|
13
|
+
* panel renders the Ready state and the Start buttons. Click flow
|
|
14
|
+
* mutates state in-memory; reload returns the new linked state.
|
|
15
|
+
*/
|
|
16
|
+
interface MockMessageOverrides {
|
|
17
|
+
text?: string;
|
|
18
|
+
isSelf?: boolean;
|
|
19
|
+
reactions?: SlackReaction[];
|
|
20
|
+
}
|
|
21
|
+
interface MockConvSeed {
|
|
22
|
+
linked?: boolean;
|
|
23
|
+
channelName?: string;
|
|
24
|
+
channelId?: string;
|
|
25
|
+
/** 'channel' seeds the B4 all-threads view; defaults to 'thread'. */
|
|
26
|
+
targetKind?: SlackTargetKind;
|
|
27
|
+
messages?: MockMessageOverrides[];
|
|
28
|
+
}
|
|
29
|
+
export declare const handlers: import('msw').HttpHandler[];
|
|
30
|
+
/**
|
|
31
|
+
* Test helpers — reset state between test cases.
|
|
32
|
+
*/
|
|
33
|
+
export declare const __resetSlackMockState: () => void;
|
|
34
|
+
export declare const __seedSlackLinkedConv: (hiverConvId: string, seed: MockConvSeed) => void;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=slack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/slack.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAIV,aAAa,EACb,eAAe,EAEhB,MAAM,6BAA6B,CAAC;AAMrC;;;;;;;;;;;;;GAaG;AAEH,UAAU,oBAAoB;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACnC;AA+TD,eAAO,MAAM,QAAQ,6BAWpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,YAEjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBAAiB,MAAM,QAAQ,YAAY,SAG5E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/handlers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/handlers.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,QAAQ,6BAWpB,CAAC"}
|