@hiver/connector-agent 4.14.0-multiRef-beta.1 → 4.14.0-slack2-beta.3
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/connector-cards.d.ts.map +1 -1
- 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/app/provider.d.ts.map +1 -1
- package/constants/tracking-events.d.ts +8 -0
- package/constants/tracking-events.d.ts.map +1 -1
- package/features/connector-cards/api/userAuth.d.ts +25 -0
- package/features/connector-cards/api/userAuth.d.ts.map +1 -0
- package/features/connector-cards/components/card-list/CardWithUserAuth.d.ts +33 -0
- package/features/connector-cards/components/card-list/CardWithUserAuth.d.ts.map +1 -0
- package/features/connector-cards/components/card-list/ListCards.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/NoCardsUserAuthGate.d.ts +24 -0
- package/features/connector-cards/components/card-list/NoCardsUserAuthGate.d.ts.map +1 -0
- package/features/connector-cards/components/card-list/card-content-value.d.ts +2 -2
- package/features/connector-cards/components/card-list/card-content-value.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/list-item-modal.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/style.d.ts +0 -2
- package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
- package/features/connector-cards/components/connection-in-progress-modal/index.d.ts +19 -0
- package/features/connector-cards/components/connection-in-progress-modal/index.d.ts.map +1 -0
- package/features/connector-cards/components/user-auth-card/__tests__/UserAuthCard.test.d.ts +2 -0
- package/features/connector-cards/components/user-auth-card/__tests__/UserAuthCard.test.d.ts.map +1 -0
- package/features/connector-cards/components/user-auth-card/index.d.ts +33 -0
- package/features/connector-cards/components/user-auth-card/index.d.ts.map +1 -0
- package/features/connector-cards/components/user-auth-card/style.d.ts +29 -0
- package/features/connector-cards/components/user-auth-card/style.d.ts.map +1 -0
- package/features/connector-cards/constants/api.d.ts +2 -0
- package/features/connector-cards/constants/api.d.ts.map +1 -1
- package/features/connector-cards/hooks/useUserAuthFlow.d.ts +42 -0
- package/features/connector-cards/hooks/useUserAuthFlow.d.ts.map +1 -0
- package/features/connector-cards/store/userAuth.d.ts +85 -0
- package/features/connector-cards/store/userAuth.d.ts.map +1 -0
- package/features/connector-cards/store/userAuth.test.d.ts +2 -0
- package/features/connector-cards/store/userAuth.test.d.ts.map +1 -0
- package/features/connector-cards/utils/registerUserAuthCallback.d.ts +13 -0
- package/features/connector-cards/utils/registerUserAuthCallback.d.ts.map +1 -0
- package/features/connector-cards/utils.d.ts +0 -1
- package/features/connector-cards/utils.d.ts.map +1 -1
- 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/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/HeroIllustration.d.ts +16 -0
- package/features/slack/components/HeroIllustration.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/ChannelThreadGroup.d.ts +25 -0
- package/features/slack/components/LinkedConversationPanel/ChannelThreadGroup.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/Composer.d.ts +45 -0
- package/features/slack/components/LinkedConversationPanel/Composer.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/LeftChannelBanner.d.ts +26 -0
- package/features/slack/components/LinkedConversationPanel/LeftChannelBanner.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 +23 -0
- package/features/slack/components/LinkedConversationPanel/MentionPicker.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/MessageItem.d.ts +27 -0
- package/features/slack/components/LinkedConversationPanel/MessageItem.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 +19 -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/index.d.ts +27 -0
- package/features/slack/components/LinkedConversationPanel/index.d.ts.map +1 -0
- package/features/slack/components/LinkedConversationPanel/style.d.ts +96 -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 +31 -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/SelectField.d.ts +19 -0
- package/features/slack/components/StartModal/SelectField.d.ts.map +1 -0
- package/features/slack/components/StartModal/SlackChannelTab.d.ts +21 -0
- package/features/slack/components/StartModal/SlackChannelTab.d.ts.map +1 -0
- package/features/slack/components/StartModal/SlackThreadTab.d.ts +25 -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/index.d.ts +27 -0
- package/features/slack/components/StartModal/index.d.ts.map +1 -0
- package/features/slack/components/StartModal/style.d.ts +38 -0
- package/features/slack/components/StartModal/style.d.ts.map +1 -0
- package/features/slack/components/figma-tokens.d.ts +89 -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 +12 -0
- package/features/slack/constants/api.d.ts.map +1 -0
- package/features/slack/context.d.ts +40 -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 +154 -0
- package/features/slack/types/wire.d.ts.map +1 -0
- package/features/toast-message/ToastRoot.d.ts.map +1 -1
- package/features/write-form/components/map-form-defaults/index.d.ts.map +1 -1
- package/features/write-form/components/write-form/index.d.ts.map +1 -1
- package/features/write-form/store/slice.d.ts.map +1 -1
- package/features/write-form/types/form.d.ts +0 -1
- package/features/write-form/types/form.d.ts.map +1 -1
- package/features/write-form/utils/response.d.ts.map +1 -1
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -1
- package/index.es.js +12491 -9617
- package/index.umd.js +1014 -423
- package/main-dev.d.ts.map +1 -1
- package/package.json +1 -1
- package/store/hooks.d.ts +2 -0
- package/store/hooks.d.ts.map +1 -1
- package/store/index.d.ts +6 -0
- package/store/index.d.ts.map +1 -1
- package/store/slice.d.ts +4 -4
- package/store/slice.d.ts.map +1 -1
- package/testing/mocks/handlers/fetch-cards.d.ts +4 -4
- package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
- package/testing/mocks/handlers/slack.d.ts +35 -0
- package/testing/mocks/handlers/slack.d.ts.map +1 -0
- package/testing/mocks/handlers/user-auth.d.ts +31 -0
- package/testing/mocks/handlers/user-auth.d.ts.map +1 -0
- package/testing/mocks/handlers/write-capability.d.ts.map +1 -1
- package/testing/mocks/handlers.d.ts.map +1 -1
- package/types/cards.d.ts +6 -6
- package/types/cards.d.ts.map +1 -1
- package/types/form.d.ts +3 -2
- package/types/form.d.ts.map +1 -1
- package/utils/form.d.ts +3 -3
- package/utils/form.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":"AAwKA,eAAO,MAAM,OAAO,+CA4EnB,CAAC"}
|
package/package.json
CHANGED
package/store/hooks.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export declare const useAppDispatch: import('react-redux').UseDispatch<import('redux-thunk').ThunkDispatch<{
|
|
2
2
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
3
|
+
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
3
4
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
4
5
|
common: import('./initial-state').CommonSliceState;
|
|
5
6
|
}, undefined, import('redux').UnknownAction> & import('redux').Dispatch<import('redux').UnknownAction>>;
|
|
6
7
|
export declare const useAppSelector: import('react-redux').UseSelector<{
|
|
7
8
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
9
|
+
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
8
10
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
9
11
|
common: import('./initial-state').CommonSliceState;
|
|
10
12
|
}>;
|
package/store/hooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/store/hooks.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/store/hooks.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;;;uGAAuC,CAAC;AACnE,eAAO,MAAM,cAAc;;;;;EAAqC,CAAC"}
|
package/store/index.d.ts
CHANGED
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
import { Action, ThunkAction } from '@reduxjs/toolkit';
|
|
2
2
|
export declare const rootReducer: import('redux').Reducer<{
|
|
3
3
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
4
|
+
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
4
5
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
5
6
|
common: import('./initial-state').CommonSliceState;
|
|
6
7
|
}, import('redux').UnknownAction, Partial<{
|
|
7
8
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState | undefined;
|
|
9
|
+
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice | undefined;
|
|
8
10
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState | undefined;
|
|
9
11
|
common: import('./initial-state').CommonSliceState | undefined;
|
|
10
12
|
}>>;
|
|
11
13
|
export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
|
|
12
14
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
15
|
+
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
13
16
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
14
17
|
common: import('./initial-state').CommonSliceState;
|
|
15
18
|
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
16
19
|
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
17
20
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
21
|
+
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
18
22
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
19
23
|
common: import('./initial-state').CommonSliceState;
|
|
20
24
|
}, undefined, import('redux').UnknownAction>;
|
|
21
25
|
}>, import('redux').StoreEnhancer]>>;
|
|
22
26
|
export declare const customStore: (preloadedState?: Partial<RootState>) => import('@reduxjs/toolkit').EnhancedStore<{
|
|
23
27
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
28
|
+
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
24
29
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
25
30
|
common: import('./initial-state').CommonSliceState;
|
|
26
31
|
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
27
32
|
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
28
33
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
34
|
+
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
29
35
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
30
36
|
common: import('./initial-state').CommonSliceState;
|
|
31
37
|
}, undefined, import('redux').UnknownAction>;
|
package/store/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;;;;;GAKtB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;oCAGhB,CAAC;AAEH,eAAO,MAAM,WAAW,oBAAqB,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;oCAM9D,CAAC;AAGF,MAAM,MAAM,QAAQ,GAAG,OAAO,KAAK,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAE/C,MAAM,MAAM,QAAQ,CAAC,eAAe,GAAG,IAAI,IAAI,WAAW,CAAC,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC"}
|
package/store/slice.d.ts
CHANGED
|
@@ -22,10 +22,10 @@ export declare const createDropdownOption: import('@reduxjs/toolkit').AsyncThunk
|
|
|
22
22
|
conversationId?: number;
|
|
23
23
|
callback?: (option: OptionType[]) => void;
|
|
24
24
|
args?: {
|
|
25
|
-
[key: string]: string | number | boolean | null
|
|
25
|
+
[key: string]: string | number | boolean | null;
|
|
26
26
|
};
|
|
27
27
|
createArgs?: {
|
|
28
|
-
[key: string]: string | number | boolean | null
|
|
28
|
+
[key: string]: string | number | boolean | null;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
state?: unknown;
|
|
@@ -57,13 +57,13 @@ export declare const fetchDropDownOptions: import('@reduxjs/toolkit').AsyncThunk
|
|
|
57
57
|
}, {
|
|
58
58
|
fieldName: string;
|
|
59
59
|
formId: string;
|
|
60
|
-
fieldConfig: FormFields;
|
|
61
60
|
searchTerm: string;
|
|
61
|
+
fieldConfig: FormFields;
|
|
62
62
|
interfaceId?: string;
|
|
63
63
|
pagination: InterfaceDetails["pagination"];
|
|
64
64
|
callback?: (options: OptionType[]) => void;
|
|
65
65
|
args?: {
|
|
66
|
-
[key: string]: string | number | boolean | null
|
|
66
|
+
[key: string]: string | number | boolean | null;
|
|
67
67
|
};
|
|
68
68
|
isScrollToBottomEvent?: boolean;
|
|
69
69
|
controller?: AbortController;
|
package/store/slice.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../src/store/slice.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI9E,eAAO,MAAM,WAAW;;;;;;;uHAmEtB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;eAIhB,MAAM;YACT,MAAM;WACP,MAAM;iBACA,MAAM;qBACF,MAAM;eACZ,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,IAAI;WAClC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../src/store/slice.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI9E,eAAO,MAAM,WAAW;;;;;;;uHAmEtB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;eAIhB,MAAM;YACT,MAAM;WACP,MAAM;iBACA,MAAM;qBACF,MAAM;eACZ,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,IAAI;WAClC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;KAAE;iBAC7C;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;KAAE;;;;;;;;;;EA2DrE,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;eAIhB,MAAM;YACT,MAAM;gBACF,MAAM;iBACL,UAAU;kBACT,MAAM;gBACR,gBAAgB,CAAC,YAAY,CAAC;eAC/B,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI;WACnC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;KAAE;4BAClC,OAAO;iBAClB,eAAe;;;;;;;;;;EA0IjC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;QASd,MAAM;UACJ,WAAW;kBACH,MAAM;gBACR,OAAO;;;;;;;;;;EAuBxB,CAAC;AAEF,QAAA,MAAQ,UAAU,oFAAE,oBAAoB,8FAAE,yBAAyB,mGAAwB,CAAC;;AAC5F,wBAAmC;AAEnC,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -10,9 +10,9 @@ export declare const getSpecificConnector: (id: string, count?: number, isPrevie
|
|
|
10
10
|
data: {
|
|
11
11
|
flatDisplay: {
|
|
12
12
|
readonly label: string;
|
|
13
|
-
readonly value: string |
|
|
13
|
+
readonly value: 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;
|
|
@@ -20,9 +20,9 @@ export declare const getSpecificConnector: (id: string, count?: number, isPrevie
|
|
|
20
20
|
externalResourceId: string | undefined;
|
|
21
21
|
data: {
|
|
22
22
|
readonly label: string;
|
|
23
|
-
readonly value: string |
|
|
23
|
+
readonly value: 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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAcpE,eAAO,MAAM,aAAa,UAAuD,CAAC;AAIlF,eAAO,MAAM,kBAAkB,UAA0E,CAAC;AAE1G,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE5D,CAAC;
|
|
1
|
+
{"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAcpE,eAAO,MAAM,aAAa,UAAuD,CAAC;AAIlF,eAAO,MAAM,kBAAkB,UAA0E,CAAC;AAE1G,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE5D,CAAC;AA8BF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM,cAAiB,OAAO;;;;cAqDjC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB9D,CAAC;AAaF,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { 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
|
+
}
|
|
20
|
+
interface MockConvSeed {
|
|
21
|
+
linked?: boolean;
|
|
22
|
+
channelName?: string;
|
|
23
|
+
channelId?: string;
|
|
24
|
+
/** 'channel' seeds the B4 all-threads view; defaults to 'thread'. */
|
|
25
|
+
targetKind?: SlackTargetKind;
|
|
26
|
+
messages?: MockMessageOverrides[];
|
|
27
|
+
}
|
|
28
|
+
export declare const handlers: import('msw').HttpHandler[];
|
|
29
|
+
/**
|
|
30
|
+
* Test helpers — reset state between test cases.
|
|
31
|
+
*/
|
|
32
|
+
export declare const __resetSlackMockState: () => void;
|
|
33
|
+
export declare const __seedSlackLinkedConv: (hiverConvId: string, seed: MockConvSeed) => void;
|
|
34
|
+
export {};
|
|
35
|
+
//# 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":"AAaA,OAAO,KAAK,EAIV,eAAe,EAEhB,MAAM,6BAA6B,CAAC;AAMrC;;;;;;;;;;;;;GAaG;AAEH,UAAU,oBAAoB;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;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;AAgSD,eAAO,MAAM,QAAQ,6BAUpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,YAEjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBAAiB,MAAM,QAAQ,YAAY,SAG5E,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MSW handlers for the user-tier auth lifecycle endpoints (see
|
|
3
|
+
* custom-integrations qa-user-auth-framework).
|
|
4
|
+
*
|
|
5
|
+
* The mock cycles per-connector through a deterministic state for
|
|
6
|
+
* dev exploration:
|
|
7
|
+
* - First read for any unknown connectorId returns `disconnected`.
|
|
8
|
+
* - After POST /user-auth/start completes, subsequent reads return
|
|
9
|
+
* `in_progress` for the first 4 seconds (so the in-progress
|
|
10
|
+
* modal is visible without needing a real OAuth round-trip),
|
|
11
|
+
* then flip to `connected`.
|
|
12
|
+
*
|
|
13
|
+
* Override the default for specific connectorIds via the
|
|
14
|
+
* VITE_USER_AUTH_MOCK_STATE env var (JSON map). Useful for
|
|
15
|
+
* Storybook / Chromatic snapshots of the four states.
|
|
16
|
+
*/
|
|
17
|
+
interface MockEntry {
|
|
18
|
+
state: 'disconnected' | 'in_progress' | 'connected' | 'reauth_required' | 'workspace_mismatch';
|
|
19
|
+
reason?: string;
|
|
20
|
+
externalUserId?: string;
|
|
21
|
+
inProgressUntil?: number;
|
|
22
|
+
}
|
|
23
|
+
export declare const handlers: import('msw').HttpHandler[];
|
|
24
|
+
/**
|
|
25
|
+
* Test helpers — reset state between test cases so each test starts
|
|
26
|
+
* from a clean slate.
|
|
27
|
+
*/
|
|
28
|
+
export declare const __resetUserAuthMockState: () => void;
|
|
29
|
+
export declare const __setUserAuthMockEntry: (connectorId: string, entry: MockEntry) => void;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=user-auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-auth.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/user-auth.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;GAeG;AAEH,UAAU,SAAS;IACjB,KAAK,EAAE,cAAc,GAAG,aAAa,GAAG,WAAW,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AA0FD,eAAO,MAAM,QAAQ,6BAAqE,CAAC;AAE3F;;;GAGG;AACH,eAAO,MAAM,wBAAwB,YAEpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,gBAAiB,MAAM,SAAS,SAAS,SAE3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"AAcA,OAAO,EAAuC,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExF,OAAO,EAAE,kBAAkB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"AAcA,OAAO,EAAuC,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExF,OAAO,EAAE,kBAAkB,EAAE,CAAC;AA6wB9B,eAAO,MAAM,eAAe,2BAQ1B,CAAC;AAEH,eAAO,MAAM,QAAQ,6BAapB,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"}
|
package/types/cards.d.ts
CHANGED
|
@@ -15,11 +15,11 @@ export type ICard = {
|
|
|
15
15
|
connectorId?: string;
|
|
16
16
|
forms: IForms[];
|
|
17
17
|
logoUrl?: string;
|
|
18
|
+
userAuthEnabled?: boolean;
|
|
18
19
|
};
|
|
19
|
-
export type CardFieldValue = string | number | boolean | (string | number | boolean)[] | null;
|
|
20
20
|
export type IFlatDisArr = {
|
|
21
21
|
label: string;
|
|
22
|
-
value:
|
|
22
|
+
value: string | null;
|
|
23
23
|
errorMessage: string | null;
|
|
24
24
|
statusCode: string | number;
|
|
25
25
|
priority: number;
|
|
@@ -29,7 +29,7 @@ export type IFlatDisArr = {
|
|
|
29
29
|
};
|
|
30
30
|
export type IListItemFieldData = {
|
|
31
31
|
label: string;
|
|
32
|
-
value:
|
|
32
|
+
value: string | null;
|
|
33
33
|
priority: number;
|
|
34
34
|
deepLink?: string | null;
|
|
35
35
|
key: string;
|
|
@@ -102,9 +102,9 @@ export type CreateObjectMetaData = undefined | {
|
|
|
102
102
|
};
|
|
103
103
|
export type IFormData = {
|
|
104
104
|
[key: string]: {
|
|
105
|
-
label: string
|
|
106
|
-
value?: string
|
|
107
|
-
type: 'date' |
|
|
105
|
+
label: string;
|
|
106
|
+
value?: string;
|
|
107
|
+
type: 'date' | null;
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
110
|
export type IResourceDetails = {
|
package/types/cards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/types/cards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,gBAAgB,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnD,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,SAAS,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/types/cards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,gBAAgB,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnD,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,SAAS,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,E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ACzB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
|
package/types/form.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export interface InterfaceDetails {
|
|
|
55
55
|
export interface FieldListResponse {
|
|
56
56
|
name: string;
|
|
57
57
|
placeholder?: string;
|
|
58
|
-
type: FIELD_TYPES | 'multi-select' | 'multiline'
|
|
58
|
+
type: FIELD_TYPES | 'multi-select' | 'multiline';
|
|
59
59
|
label: string;
|
|
60
60
|
value?: string | number;
|
|
61
61
|
disabled?: boolean;
|
|
@@ -84,11 +84,11 @@ export interface FieldListResponse {
|
|
|
84
84
|
};
|
|
85
85
|
isClearable?: boolean;
|
|
86
86
|
isFieldCustom?: boolean;
|
|
87
|
+
fieldAccessMode?: string;
|
|
87
88
|
}
|
|
88
89
|
export interface FormFields extends FieldListResponse {
|
|
89
90
|
type: FIELD_TYPES;
|
|
90
91
|
isMultiSelect?: boolean;
|
|
91
|
-
isMulti?: boolean;
|
|
92
92
|
loadOptionsOnFocus?: boolean;
|
|
93
93
|
}
|
|
94
94
|
export interface ObjectItem extends OptionType {
|
|
@@ -107,6 +107,7 @@ export interface ObjectItem extends OptionType {
|
|
|
107
107
|
searchObject?: string;
|
|
108
108
|
expandedView?: boolean;
|
|
109
109
|
cardAccessMode?: 'read_write' | null;
|
|
110
|
+
userAuthEnabled?: boolean;
|
|
110
111
|
}
|
|
111
112
|
export type FormArgValue = string | boolean | number | (string | number)[] | TableValue;
|
|
112
113
|
export interface PreviewArgs {
|
package/types/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/types/form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,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AAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
|
package/utils/form.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormValidation } from '@connector/ui';
|
|
2
2
|
import { FormState, FormFields, FormArgValue, FieldListResponse, FieldValue } from '../types/form';
|
|
3
3
|
export declare const generateDropdownOptionKey: (args: {
|
|
4
|
-
[key: string]: string | number | boolean | null
|
|
4
|
+
[key: string]: string | number | boolean | null;
|
|
5
5
|
}, id: string, name: string) => string;
|
|
6
6
|
export declare const getAllCompletedArgs: (state: FormState, args?: {
|
|
7
7
|
[key: string]: string;
|
|
@@ -9,14 +9,14 @@ export declare const getAllCompletedArgs: (state: FormState, args?: {
|
|
|
9
9
|
export declare const getArgsValueMap: (state: FormState, args?: {
|
|
10
10
|
[key: string]: string;
|
|
11
11
|
}) => {
|
|
12
|
-
[key: string]: string | number | boolean |
|
|
12
|
+
[key: string]: string | number | boolean | null;
|
|
13
13
|
};
|
|
14
14
|
export declare const getFormFieldsValidations: ({ formFields }: {
|
|
15
15
|
formFields: FormFields[];
|
|
16
16
|
}) => FormValidation;
|
|
17
17
|
export declare const parseFormStateToArgs: (state: FormState, args: {
|
|
18
18
|
[key: string]: string;
|
|
19
|
-
}
|
|
19
|
+
}) => Record<string, FormArgValue>;
|
|
20
20
|
export declare const createRows: <T extends FieldListResponse>(formsList: T[], colsLength: number) => {
|
|
21
21
|
id: string;
|
|
22
22
|
formFields: T[];
|
package/utils/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/utils/form.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,eAAe,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAc,iBAAiB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnH,eAAO,MAAM,yBAAyB,SAC9B;IAAE,CAAC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