@hiver/connector-agent 4.15.1-checkboxFix-beta.3 → 4.15.1
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/connector-cards.d.ts.map +1 -1
- package/app/provider.d.ts.map +1 -1
- package/constants/card.d.ts +0 -2
- package/constants/card.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/ListCards.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/card-content-value.d.ts.map +1 -1
- package/features/connector-cards/constants/api.d.ts +0 -2
- package/features/connector-cards/constants/api.d.ts.map +1 -1
- package/features/connector-cards/store/slice.d.ts.map +1 -1
- package/features/connector-cards/utils.d.ts +0 -9
- package/features/connector-cards/utils.d.ts.map +1 -1
- package/features/email-logger/api/validateEntity.d.ts +3 -0
- package/features/email-logger/api/validateEntity.d.ts.map +1 -1
- package/features/email-logger/components/select-entity/components/entity-option/index.d.ts.map +1 -1
- package/features/email-logger/omni/components/EntityRow.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/utils/response.d.ts.map +1 -1
- package/index.es.js +7668 -8674
- package/index.umd.js +313 -378
- package/package.json +1 -1
- package/store/hooks.d.ts +0 -2
- package/store/hooks.d.ts.map +1 -1
- package/store/index.d.ts +0 -6
- package/store/index.d.ts.map +1 -1
- package/store/slice.d.ts +2 -3
- package/store/slice.d.ts.map +1 -1
- package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
- 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 +0 -1
- package/types/cards.d.ts.map +1 -1
- package/types/form.d.ts +3 -5
- package/types/form.d.ts.map +1 -1
- package/utils/form.d.ts.map +1 -1
- package/features/connector-cards/__tests__/resolveCardLevelErrorMessage.test.d.ts +0 -2
- package/features/connector-cards/__tests__/resolveCardLevelErrorMessage.test.d.ts.map +0 -1
- package/features/connector-cards/api/userAuth.d.ts +0 -25
- package/features/connector-cards/api/userAuth.d.ts.map +0 -1
- package/features/connector-cards/components/card-list/CardWithUserAuth.d.ts +0 -33
- package/features/connector-cards/components/card-list/CardWithUserAuth.d.ts.map +0 -1
- package/features/connector-cards/components/card-list/NoCardsUserAuthGate.d.ts +0 -24
- package/features/connector-cards/components/card-list/NoCardsUserAuthGate.d.ts.map +0 -1
- package/features/connector-cards/components/card-list/__tests__/NoCardsUserAuthGate.test.d.ts +0 -2
- package/features/connector-cards/components/card-list/__tests__/NoCardsUserAuthGate.test.d.ts.map +0 -1
- package/features/connector-cards/components/connection-in-progress-modal/index.d.ts +0 -23
- package/features/connector-cards/components/connection-in-progress-modal/index.d.ts.map +0 -1
- package/features/connector-cards/components/user-auth-card/__tests__/UserAuthCard.test.d.ts +0 -2
- package/features/connector-cards/components/user-auth-card/__tests__/UserAuthCard.test.d.ts.map +0 -1
- package/features/connector-cards/components/user-auth-card/index.d.ts +0 -33
- package/features/connector-cards/components/user-auth-card/index.d.ts.map +0 -1
- package/features/connector-cards/components/user-auth-card/style.d.ts +0 -32
- package/features/connector-cards/components/user-auth-card/style.d.ts.map +0 -1
- package/features/connector-cards/hooks/useUserAuthFlow.d.ts +0 -61
- package/features/connector-cards/hooks/useUserAuthFlow.d.ts.map +0 -1
- package/features/connector-cards/store/userAuth.d.ts +0 -88
- package/features/connector-cards/store/userAuth.d.ts.map +0 -1
- package/features/connector-cards/store/userAuth.test.d.ts +0 -2
- package/features/connector-cards/store/userAuth.test.d.ts.map +0 -1
- package/features/connector-cards/utils/registerUserAuthCallback.d.ts +0 -13
- package/features/connector-cards/utils/registerUserAuthCallback.d.ts.map +0 -1
- package/testing/mocks/handlers/user-auth.d.ts +0 -31
- package/testing/mocks/handlers/user-auth.d.ts.map +0 -1
- package/utils/userAuth.d.ts +0 -18
- package/utils/userAuth.d.ts.map +0 -1
package/package.json
CHANGED
package/store/hooks.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
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;
|
|
4
3
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
5
4
|
common: import('./initial-state').CommonSliceState;
|
|
6
5
|
}, undefined, import('redux').UnknownAction> & import('redux').Dispatch<import('redux').UnknownAction>>;
|
|
7
6
|
export declare const useAppSelector: import('react-redux').UseSelector<{
|
|
8
7
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
9
|
-
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
10
8
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
11
9
|
common: import('./initial-state').CommonSliceState;
|
|
12
10
|
}>;
|
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,37 +1,31 @@
|
|
|
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;
|
|
5
4
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
6
5
|
common: import('./initial-state').CommonSliceState;
|
|
7
6
|
}, import('redux').UnknownAction, Partial<{
|
|
8
7
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState | undefined;
|
|
9
|
-
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice | undefined;
|
|
10
8
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState | undefined;
|
|
11
9
|
common: import('./initial-state').CommonSliceState | undefined;
|
|
12
10
|
}>>;
|
|
13
11
|
export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
|
|
14
12
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
15
|
-
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
16
13
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
17
14
|
common: import('./initial-state').CommonSliceState;
|
|
18
15
|
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
19
16
|
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
20
17
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
21
|
-
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
22
18
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
23
19
|
common: import('./initial-state').CommonSliceState;
|
|
24
20
|
}, undefined, import('redux').UnknownAction>;
|
|
25
21
|
}>, import('redux').StoreEnhancer]>>;
|
|
26
22
|
export declare const customStore: (preloadedState?: Partial<RootState>) => import('@reduxjs/toolkit').EnhancedStore<{
|
|
27
23
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
28
|
-
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
29
24
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
30
25
|
common: import('./initial-state').CommonSliceState;
|
|
31
26
|
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
32
27
|
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
33
28
|
cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
|
|
34
|
-
userAuth: import('../features/connector-cards/store/userAuth').UserAuthSlice;
|
|
35
29
|
write: import('../features/write-form/store/initial-state').WriteCapabilityState;
|
|
36
30
|
common: import('./initial-state').CommonSliceState;
|
|
37
31
|
}, 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":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;;;GAItB,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
|
@@ -7,7 +7,6 @@ export declare const commonSlice: import('@reduxjs/toolkit').Slice<import('./ini
|
|
|
7
7
|
payload: any;
|
|
8
8
|
type: string;
|
|
9
9
|
}) => void;
|
|
10
|
-
resetDropdownOptionsCache: (state: import('immer').WritableDraft<import('./initial-state').CommonSliceState>) => void;
|
|
11
10
|
}, "commonSlice", "commonSlice", import('@reduxjs/toolkit').SliceSelectors<import('./initial-state').CommonSliceState>>;
|
|
12
11
|
export declare const createDropdownOption: import('@reduxjs/toolkit').AsyncThunk<{
|
|
13
12
|
hasMore?: boolean | undefined;
|
|
@@ -97,8 +96,8 @@ export declare const previewCard: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
97
96
|
fulfilledMeta?: unknown;
|
|
98
97
|
rejectedMeta?: unknown;
|
|
99
98
|
}>;
|
|
100
|
-
declare const resetState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"commonSlice/resetState">, resetPreviewCardData: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"commonSlice/resetPreviewCardData">, setSelectedSuggestionType: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "commonSlice/setSelectedSuggestionType"
|
|
99
|
+
declare const resetState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"commonSlice/resetState">, resetPreviewCardData: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"commonSlice/resetPreviewCardData">, setSelectedSuggestionType: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "commonSlice/setSelectedSuggestionType">;
|
|
101
100
|
declare const _default: import('redux').Reducer<import('./initial-state').CommonSliceState>;
|
|
102
101
|
export default _default;
|
|
103
|
-
export { resetState, resetPreviewCardData, setSelectedSuggestionType
|
|
102
|
+
export { resetState, resetPreviewCardData, setSelectedSuggestionType };
|
|
104
103
|
//# sourceMappingURL=slice.d.ts.map
|
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
|
|
1
|
+
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../src/store/slice.ts"],"names":[],"mappings":"AAoBA,OAAO,KAA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yB,EAAE,CAAC"}
|
|
@@ -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;AAmBF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM,cAAiB,OAAO;;;;cA8DjC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB9D,CAAC;AAaF,eAAO,MAAM,QAAQ,6BAAkD,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;AA8wB9B,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":"AASA,eAAO,MAAM,QAAQ,6BASpB,CAAC"}
|
package/types/cards.d.ts
CHANGED
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,OA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AAS,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,WAAW,EAAE,GAAG,kBAAkB,EAAE,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CAAE,GAAG,IAAI,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAAG,IAAI,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
|
package/types/form.d.ts
CHANGED
|
@@ -55,9 +55,9 @@ export interface InterfaceDetails {
|
|
|
55
55
|
export interface FieldListResponse {
|
|
56
56
|
name: string;
|
|
57
57
|
placeholder?: string;
|
|
58
|
-
type: FIELD_TYPES | 'multiline';
|
|
58
|
+
type: FIELD_TYPES | 'multi-select' | 'multiline' | 'reference';
|
|
59
59
|
label: string;
|
|
60
|
-
value?: string | number
|
|
60
|
+
value?: string | number;
|
|
61
61
|
disabled?: boolean;
|
|
62
62
|
disablePast?: boolean;
|
|
63
63
|
disableFuture?: boolean;
|
|
@@ -77,14 +77,13 @@ export interface FieldListResponse {
|
|
|
77
77
|
cols?: number;
|
|
78
78
|
rowId?: string;
|
|
79
79
|
priority: number;
|
|
80
|
-
defaultValue?: string | number
|
|
80
|
+
defaultValue?: string | number;
|
|
81
81
|
columns?: FormFields[];
|
|
82
82
|
meta?: {
|
|
83
83
|
[key: string]: string | number | boolean;
|
|
84
84
|
};
|
|
85
85
|
isClearable?: boolean;
|
|
86
86
|
isFieldCustom?: boolean;
|
|
87
|
-
fieldAccessMode?: string;
|
|
88
87
|
}
|
|
89
88
|
export interface FormFields extends FieldListResponse {
|
|
90
89
|
type: FIELD_TYPES;
|
|
@@ -108,7 +107,6 @@ export interface ObjectItem extends OptionType {
|
|
|
108
107
|
searchObject?: string;
|
|
109
108
|
expandedView?: boolean;
|
|
110
109
|
cardAccessMode?: 'read_write' | null;
|
|
111
|
-
userAuthEnabled?: boolean;
|
|
112
110
|
}
|
|
113
111
|
export type FormArgValue = string | boolean | number | (string | number)[] | TableValue;
|
|
114
112
|
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,EAAE,CAAC;AAErE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,EAAE,GAAG,UAAU,CAAC;AAEnG,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;AAExE,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,eAAe,CAAC;CACzB;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,OAAO;IACf,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AA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UAAU,EAAE,UAAU,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC,WA8BvG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveCardLevelErrorMessage.test.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/__tests__/resolveCardLevelErrorMessage.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { UserAuthState } from '../store/userAuth';
|
|
2
|
-
export interface UserAuthStatusResponse {
|
|
3
|
-
state: UserAuthState;
|
|
4
|
-
reason?: string;
|
|
5
|
-
external_user_id?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface UserAuthStartResponse {
|
|
8
|
-
auth_url: string;
|
|
9
|
-
tier: 'user';
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Reads the signed-in agent's user-tier connection state for a
|
|
13
|
-
* connector. Called on card mount when `connector.userAuthEnabled`
|
|
14
|
-
* is true; not called for legacy connectors so legacy mount paths
|
|
15
|
-
* stay byte-for-byte unchanged.
|
|
16
|
-
*/
|
|
17
|
-
export declare const getUserAuthStatus: (connectorId: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
18
|
-
/**
|
|
19
|
-
* Builds the OAuth authorization URL the agent visits in a popup to
|
|
20
|
-
* connect their personal account. The BE encodes `state.tier=user`
|
|
21
|
-
* + `state.user_id` so the callback knows to land in
|
|
22
|
-
* /process_user_callback rather than the workspace flow.
|
|
23
|
-
*/
|
|
24
|
-
export declare const startUserAuth: (connectorId: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
25
|
-
//# sourceMappingURL=userAuth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userAuth.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/api/userAuth.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAE/E,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,gBAAiB,MAAM,iEAKpD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,gBAAiB,MAAM,iEAKhD,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ICard, ISpecificCard } from '../../../../types/cards';
|
|
3
|
-
import { ApiStatus } from '../../../../types/api';
|
|
4
|
-
interface IProps {
|
|
5
|
-
card: ICard;
|
|
6
|
-
email: string;
|
|
7
|
-
specificCardData: Record<string, ISpecificCard> | null;
|
|
8
|
-
specificConnectorApiStatus: Record<string, ApiStatus> | null;
|
|
9
|
-
defaultOpenState: boolean;
|
|
10
|
-
onCardUnlinking: () => void;
|
|
11
|
-
isPrimaryUserAuthCard?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Wraps the regular Card render with the user-tier auth gate.
|
|
15
|
-
*
|
|
16
|
-
* - When the install has not opted into user-tier auth
|
|
17
|
-
* (`card.userAuthEnabled !== true`) → renders the regular Card.
|
|
18
|
-
* Zero behavior change for legacy connectors.
|
|
19
|
-
*
|
|
20
|
-
* - When opted in:
|
|
21
|
-
* * On mount, fetches /user-auth/status once via tanstack-query
|
|
22
|
-
* (30s staleTime → batches across cards sharing the connector).
|
|
23
|
-
* * If the resolved state is `connected` (or `unknown` while the
|
|
24
|
-
* fetch is in-flight) → renders the regular Card.
|
|
25
|
-
* * Otherwise renders <UserAuthCard /> with the right variant.
|
|
26
|
-
*
|
|
27
|
-
* The `onConnected` callback invalidates the card data query so
|
|
28
|
-
* the regular Card mounts immediately after the popup completes,
|
|
29
|
-
* without forcing the user to refresh or remount.
|
|
30
|
-
*/
|
|
31
|
-
export declare const CardWithUserAuth: FC<IProps>;
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=CardWithUserAuth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardWithUserAuth.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/CardWithUserAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAW3B,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,UAAU,MAAM;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IACvD,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;IAC7D,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,MAAM,IAAI,CAAC;IAK5B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAkGvC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface IUserAuthConnector {
|
|
3
|
-
connectorId: string;
|
|
4
|
-
connectorName: string;
|
|
5
|
-
connectorLogo: string;
|
|
6
|
-
}
|
|
7
|
-
interface IProps {
|
|
8
|
-
connectors: IUserAuthConnector[];
|
|
9
|
-
onConnected: () => void;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders the "Sign in to use X" card on the agent panel when there are no
|
|
14
|
-
* linked cards yet but the connector is opted into user-tier auth and the
|
|
15
|
-
* agent hasn't connected. Without this, the sign-in CTA only ever appeared
|
|
16
|
-
* inside ListCards (per linked card), so a brand-new install showed the
|
|
17
|
-
* create/link banner with no way to authenticate.
|
|
18
|
-
*
|
|
19
|
-
* When no connector is blocking (all connected, or status still unknown)
|
|
20
|
-
* the children (create banner) render as before.
|
|
21
|
-
*/
|
|
22
|
-
export declare const NoCardsUserAuthGate: FC<IProps>;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=NoCardsUserAuthGate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoCardsUserAuthGate.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/NoCardsUserAuthGate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUtC,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,MAAM;IAGd,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,WAAW,EAAE,MAAM,IAAI,CAAC;IAGxB,QAAQ,EAAE,SAAS,CAAC;CACrB;AA8CD;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,MAAM,CAa1C,CAAC"}
|
package/features/connector-cards/components/card-list/__tests__/NoCardsUserAuthGate.test.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoCardsUserAuthGate.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/connector-cards/components/card-list/__tests__/NoCardsUserAuthGate.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Renders Figma frame 2 — the centered "Connection in progress"
|
|
4
|
-
* overlay shown while a user-tier OAuth popup is open.
|
|
5
|
-
*
|
|
6
|
-
* Mounted once at the app/connector-cards.tsx level rather than
|
|
7
|
-
* per-card. The slice's selectAnyInProgressConnectorId selector
|
|
8
|
-
* naturally dedupes across concurrent connect attempts (which
|
|
9
|
-
* shouldn't happen — the bifrost interceptor only kicks in for
|
|
10
|
-
* one connector at a time — but the design is defensive).
|
|
11
|
-
*
|
|
12
|
-
* The modal exposes a "Cancel" affordance. Closing the OAuth popup is
|
|
13
|
-
* auto-detected (useUserAuthFlow's popup-close watcher), but some providers'
|
|
14
|
-
* own Cancel button navigates the popup to their app *without* redirecting
|
|
15
|
-
* back to us — so the popup stays open, never fires `closed`, and we get no
|
|
16
|
-
* callback. There's no cross-origin way to detect that, so the user needs an
|
|
17
|
-
* explicit escape: Cancel drops the in-progress state (recoverable →
|
|
18
|
-
* Sign-in card) and the per-connector hook closes any orphaned popup. The
|
|
19
|
-
* 5-min in-progress timeout in useUserAuthFlow remains as a final backstop.
|
|
20
|
-
*/
|
|
21
|
-
declare const ConnectionInProgressModal: FC;
|
|
22
|
-
export default ConnectionInProgressModal;
|
|
23
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/connection-in-progress-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAkBpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,yBAAyB,EAAE,EAmGhC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
package/features/connector-cards/components/user-auth-card/__tests__/UserAuthCard.test.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserAuthCard.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/connector-cards/components/user-auth-card/__tests__/UserAuthCard.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { UserAuthState } from '../../store/userAuth';
|
|
3
|
-
interface UserAuthCardProps {
|
|
4
|
-
connectorId: string;
|
|
5
|
-
connectorName: string;
|
|
6
|
-
connectorLogo: string;
|
|
7
|
-
variant: UserAuthState;
|
|
8
|
-
/** Optional reason from the backend (e.g. `workspace_mismatch`,
|
|
9
|
-
* `site_access_denied`, `refresh_failed`). Used to pick
|
|
10
|
-
* variant-specific copy below. */
|
|
11
|
-
reason?: string;
|
|
12
|
-
/** Called once the connect popup flow lands at `connected`.
|
|
13
|
-
* Typically retries the original API call that surfaced the
|
|
14
|
-
* 412. Pass-through to useUserAuthFlow. */
|
|
15
|
-
onConnected?: () => void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Renders Figma frames 1 and 4 (and their variants). Same component
|
|
19
|
-
* for both — the only difference is the badge + copy.
|
|
20
|
-
*
|
|
21
|
-
* - `disconnected` / `unknown` → frame 1: "Sign in to use X"
|
|
22
|
-
* - `reauth_required` → frame 4: "Authentication failed"
|
|
23
|
-
* - `workspace_mismatch` → frame 4 with workspace-specific copy
|
|
24
|
-
* - `in_progress` → button disabled + spinner; the
|
|
25
|
-
* centered modal owns the user's attention but the card body
|
|
26
|
-
* stays mounted so layout doesn't shift when the modal closes.
|
|
27
|
-
* - `connected` → this component shouldn't render
|
|
28
|
-
* when state === connected; the parent routes to the normal card.
|
|
29
|
-
* Defensive fall-through renders nothing.
|
|
30
|
-
*/
|
|
31
|
-
declare const UserAuthCard: FC<UserAuthCardProps>;
|
|
32
|
-
export default UserAuthCard;
|
|
33
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/user-auth-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAe,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAiB/E,UAAU,iBAAiB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,aAAa,CAAC;IACvB;;uCAEmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;gDAE4C;IAC5C,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAgIvC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, ImgHTMLAttributes } from 'react';
|
|
2
|
-
import { StackProps, BoxProps, ButtonProps } from '@hiver/hiver-ui-kit';
|
|
3
|
-
import { StyledComponent } from '@emotion/styled';
|
|
4
|
-
/**
|
|
5
|
-
* Outer card — cool near-white wash (Gray 6a) with a hairline Gray 6
|
|
6
|
-
* border, matching Figma node 10:2945. Two visually-distinct sections
|
|
7
|
-
* inside: the logo block on top, the title/body/CTA below. Tight
|
|
8
|
-
* 4px inset on top/sides, 24px breathing room at the bottom.
|
|
9
|
-
*/
|
|
10
|
-
export declare const CardWrapper: StyledComponent<BoxProps>;
|
|
11
|
-
/**
|
|
12
|
-
* The two-logo block sits in its own white panel at the top of the
|
|
13
|
-
* card (Figma 9:2924) — bordered, 10px radius, generous 48px vertical
|
|
14
|
-
* padding so the logo row floats centered.
|
|
15
|
-
*/
|
|
16
|
-
export declare const LogoPanel: StyledComponent<BoxProps>;
|
|
17
|
-
export declare const LogoRow: StyledComponent<StackProps>;
|
|
18
|
-
export declare const LogoImage: StyledComponent<ImgHTMLAttributes<HTMLImageElement>>;
|
|
19
|
-
/**
|
|
20
|
-
* Red exclamation badge overlaid on the app logo for the
|
|
21
|
-
* reauth_required / workspace_mismatch variants. Matches Figma
|
|
22
|
-
* node 11:4260 — a red disc with a white "!" sitting in a white
|
|
23
|
-
* ring, overflowing the top-right corner of the connector logo.
|
|
24
|
-
*/
|
|
25
|
-
export declare const ErrorBadge: StyledComponent<HTMLAttributes<HTMLSpanElement>>;
|
|
26
|
-
/**
|
|
27
|
-
* Bold indigo CTA matching Figma. theme.palette.purple.primary is
|
|
28
|
-
* the same token the no-connectors card uses for its accent border
|
|
29
|
-
* and text, so the button locks into the existing design system.
|
|
30
|
-
*/
|
|
31
|
-
export declare const AuthenticateButton: StyledComponent<ButtonProps>;
|
|
32
|
-
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/user-auth-card/style.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CAajD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,QAAQ,CAQ/C,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,UAAU,CAM/C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAK1E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,cAAc,CAAC,eAAe,CAAC,CAgBvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,WAAW,CAsB3D,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { UserAuthEntry, UserAuthState } from '../store/userAuth';
|
|
2
|
-
interface UseUserAuthFlowOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Called when the polling loop transitions to `connected`.
|
|
5
|
-
* Typically used to retry the original failed API call.
|
|
6
|
-
*/
|
|
7
|
-
onConnected?: () => void;
|
|
8
|
-
}
|
|
9
|
-
interface UseUserAuthFlowReturn {
|
|
10
|
-
entry: UserAuthEntry;
|
|
11
|
-
state: UserAuthState;
|
|
12
|
-
connect: () => Promise<void>;
|
|
13
|
-
isStarting: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Orchestrates a user-tier connect flow:
|
|
17
|
-
* 1. `connect()` calls POST /user-auth/start and opens the
|
|
18
|
-
* authorization URL in a popup.
|
|
19
|
-
* 2. Marks the connector in_progress in redux.
|
|
20
|
-
* 3. Polls GET /user-auth/status every 2s via tanstack-query;
|
|
21
|
-
* stops polling on a terminal state.
|
|
22
|
-
* 4. On `connected`, calls onConnected so the caller can retry
|
|
23
|
-
* the original failed API call without forcing a remount.
|
|
24
|
-
*
|
|
25
|
-
* Polling cadence + tanstack-query usage mirrors the admin app's
|
|
26
|
-
* authSuccessQuery — same pattern, scoped per-connector here.
|
|
27
|
-
*/
|
|
28
|
-
export declare function useUserAuthFlow(connectorId: string, options?: UseUserAuthFlowOptions): UseUserAuthFlowReturn;
|
|
29
|
-
/**
|
|
30
|
-
* One-shot fetcher used at card-mount time. Doesn't poll — drops
|
|
31
|
-
* the result into the slice and exits. The polling-on-in_progress
|
|
32
|
-
* behavior is handled separately by useUserAuthFlow above.
|
|
33
|
-
*/
|
|
34
|
-
export declare function useFetchUserAuthStatus(connectorId: string, enabled: boolean): {
|
|
35
|
-
isLoading: boolean;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Panel-level pre-resolver. Given the user-tier connectorIds backing the
|
|
39
|
-
* current panel, fires the initial /user-auth/status fetch for all of them up
|
|
40
|
-
* front (via useQueries — same keys as the per-card hook, so it's deduped) and
|
|
41
|
-
* reports whether ANY is still in flight.
|
|
42
|
-
*
|
|
43
|
-
* The panel uses this to keep the unified loading skeleton up until status has
|
|
44
|
-
* resolved, so it paints its final state (auth card OR real cards) directly
|
|
45
|
-
* instead of flashing the full card view — header, email selector, card
|
|
46
|
-
* skeletons — and then yanking it for the sign-in card (the "blip"). isResolving
|
|
47
|
-
* is false for an empty list and once every query settles (success OR error),
|
|
48
|
-
* so a connector without user-auth, or a failed status fetch, never strands the
|
|
49
|
-
* skeleton.
|
|
50
|
-
*/
|
|
51
|
-
export declare function useUserAuthInitialStatus(connectorIds: string[]): {
|
|
52
|
-
isResolving: boolean;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Exposed for tests + the rare "user clicked Disconnect from the
|
|
56
|
-
* customer-identity-mapping menu" path — wipes the slice entry so
|
|
57
|
-
* the next card mount triggers a fresh status fetch.
|
|
58
|
-
*/
|
|
59
|
-
export declare function useResetUserAuth(): (connectorId: string) => void;
|
|
60
|
-
export {};
|
|
61
|
-
//# sourceMappingURL=useUserAuthFlow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUserAuthFlow.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/hooks/useUserAuthFlow.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAkB9F,UAAU,sBAAsB;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,UAAU,qBAAqB;IAC7B,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,GAAE,sBAA2B,GAAG,qBAAqB,CA8OhH;AA8BD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,CASpG;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAMzF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,kBAGd,MAAM,UAKvB"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { RootState } from '../../../store';
|
|
3
|
-
/**
|
|
4
|
-
* Per-connector user-tier authentication state.
|
|
5
|
-
*
|
|
6
|
-
* The resolver on the backend reads three gates: an LD flag,
|
|
7
|
-
* `connector.user_auth_enabled`, and the API's `auth_tier`. When all
|
|
8
|
-
* three open the flow lands at `user_connectors` lookup. This slice
|
|
9
|
-
* mirrors that lookup's result on the client so the right-panel can
|
|
10
|
-
* render the appropriate state without re-hitting the BE on every
|
|
11
|
-
* card mount.
|
|
12
|
-
*/
|
|
13
|
-
export type UserAuthState = 'unknown' | 'disconnected' | 'in_progress' | 'connected' | 'reauth_required' | 'workspace_mismatch';
|
|
14
|
-
export interface UserAuthEntry {
|
|
15
|
-
state: UserAuthState;
|
|
16
|
-
reason?: string;
|
|
17
|
-
externalUserId?: string;
|
|
18
|
-
connectUrl?: string;
|
|
19
|
-
lastChecked?: number;
|
|
20
|
-
}
|
|
21
|
-
export interface UserAuthSlice {
|
|
22
|
-
byConnectorId: {
|
|
23
|
-
[connectorId: string]: UserAuthEntry;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
interface StatusReceivedPayload {
|
|
27
|
-
connectorId: string;
|
|
28
|
-
state: UserAuthState;
|
|
29
|
-
reason?: string;
|
|
30
|
-
externalUserId?: string;
|
|
31
|
-
authoritative?: boolean;
|
|
32
|
-
}
|
|
33
|
-
interface AuthRequiredPayload {
|
|
34
|
-
connectorId: string;
|
|
35
|
-
connectUrl: string;
|
|
36
|
-
reason?: string;
|
|
37
|
-
}
|
|
38
|
-
interface InProgressPayload {
|
|
39
|
-
connectorId: string;
|
|
40
|
-
}
|
|
41
|
-
interface CompletedPayload {
|
|
42
|
-
connectorId: string;
|
|
43
|
-
externalUserId?: string;
|
|
44
|
-
}
|
|
45
|
-
interface FailedPayload {
|
|
46
|
-
connectorId: string;
|
|
47
|
-
reason: string;
|
|
48
|
-
}
|
|
49
|
-
interface ResetPayload {
|
|
50
|
-
connectorId: string;
|
|
51
|
-
}
|
|
52
|
-
export declare const userAuthSlice: import('@reduxjs/toolkit').Slice<UserAuthSlice, {
|
|
53
|
-
/**
|
|
54
|
-
* Result of GET /user-auth/status — full picture from the server.
|
|
55
|
-
* Replaces any local in-progress state too: if a poll comes back
|
|
56
|
-
* with `connected` while we thought we were `in_progress`, we
|
|
57
|
-
* adopt the server's view.
|
|
58
|
-
*/
|
|
59
|
-
userAuthStatusReceived(state: import('immer').WritableDraft<UserAuthSlice>, action: PayloadAction<StatusReceivedPayload>): void;
|
|
60
|
-
/**
|
|
61
|
-
* Fired from the bifrost 412 interceptor. Carries the connect URL
|
|
62
|
-
* so the UI can launch the popup without a separate
|
|
63
|
-
* /user-auth/start round-trip when the user opts to connect.
|
|
64
|
-
* Multiple concurrent 412s for the same connector are naturally
|
|
65
|
-
* deduped because we key on connectorId.
|
|
66
|
-
*/
|
|
67
|
-
userAuthRequired(state: import('immer').WritableDraft<UserAuthSlice>, action: PayloadAction<AuthRequiredPayload>): void;
|
|
68
|
-
userAuthInProgress(state: import('immer').WritableDraft<UserAuthSlice>, action: PayloadAction<InProgressPayload>): void;
|
|
69
|
-
userAuthCompleted(state: import('immer').WritableDraft<UserAuthSlice>, action: PayloadAction<CompletedPayload>): void;
|
|
70
|
-
userAuthFailed(state: import('immer').WritableDraft<UserAuthSlice>, action: PayloadAction<FailedPayload>): void;
|
|
71
|
-
userAuthReset(state: import('immer').WritableDraft<UserAuthSlice>, action: PayloadAction<ResetPayload>): void;
|
|
72
|
-
}, "userAuth", "userAuth", import('@reduxjs/toolkit').SliceSelectors<UserAuthSlice>>;
|
|
73
|
-
export declare const userAuthStatusReceived: import('@reduxjs/toolkit').ActionCreatorWithPayload<StatusReceivedPayload, "userAuth/userAuthStatusReceived">, userAuthRequired: import('@reduxjs/toolkit').ActionCreatorWithPayload<AuthRequiredPayload, "userAuth/userAuthRequired">, userAuthInProgress: import('@reduxjs/toolkit').ActionCreatorWithPayload<InProgressPayload, "userAuth/userAuthInProgress">, userAuthCompleted: import('@reduxjs/toolkit').ActionCreatorWithPayload<CompletedPayload, "userAuth/userAuthCompleted">, userAuthFailed: import('@reduxjs/toolkit').ActionCreatorWithPayload<FailedPayload, "userAuth/userAuthFailed">, userAuthReset: import('@reduxjs/toolkit').ActionCreatorWithPayload<ResetPayload, "userAuth/userAuthReset">;
|
|
74
|
-
declare const _default: import('redux').Reducer<UserAuthSlice>;
|
|
75
|
-
export default _default;
|
|
76
|
-
export declare const selectUserAuthEntry: (state: RootState, connectorId: string) => UserAuthEntry;
|
|
77
|
-
export declare const selectUserAuthState: (state: RootState, connectorId: string) => UserAuthState;
|
|
78
|
-
export declare const selectIsUserConnected: (state: RootState, connectorId: string) => boolean;
|
|
79
|
-
export declare const USER_AUTH_BLOCKING_STATES: ReadonlySet<UserAuthState>;
|
|
80
|
-
export declare const selectIsConnectorAuthBlocked: (state: RootState, connectorId: string) => boolean;
|
|
81
|
-
export declare const selectConnectUrl: (state: RootState, connectorId: string) => string | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* Any connector currently in the in_progress state. The modal mounts
|
|
84
|
-
* once at the app level rather than per-card; this selector tells it
|
|
85
|
-
* whether to render.
|
|
86
|
-
*/
|
|
87
|
-
export declare const selectAnyInProgressConnectorId: (state: RootState) => string | undefined;
|
|
88
|
-
//# sourceMappingURL=userAuth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userAuth.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/userAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;;;;;GASG;AAEH,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,cAAc,GACd,aAAa,GACb,WAAW,GACX,iBAAiB,GACjB,oBAAoB,CAAC;AAEzB,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,CAAA;KAAE,CAAC;CACzD;AAMD,UAAU,qBAAqB;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IAKxB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,iBAAiB;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,gBAAgB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAuBD,UAAU,YAAY;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,aAAa;IAItB;;;;;OAKG;wFACmC,aAAa,CAAC,qBAAqB,CAAC;IAwB1E;;;;;;OAMG;kFAC6B,aAAa,CAAC,mBAAmB,CAAC;oFAiBhC,aAAa,CAAC,iBAAiB,CAAC;mFAUjC,aAAa,CAAC,gBAAgB,CAAC;gFASlC,aAAa,CAAC,aAAa,CAAC;+EAW7B,aAAa,CAAC,YAAY,CAAC;oFAI1D,CAAC;AAEH,eAAO,MACL,sBAAsB,iHACtB,gBAAgB,yGAChB,kBAAkB,yGAClB,iBAAiB,uGACjB,cAAc,iGACd,aAAa,6FACU,CAAC;;AAE1B,wBAAqC;AAMrC,eAAO,MAAM,mBAAmB,UAAW,SAAS,eAAe,MAAM,KAAG,aACxB,CAAC;AAErD,eAAO,MAAM,mBAAmB,UAAW,SAAS,eAAe,MAAM,KAAG,aAC7B,CAAC;AAEhD,eAAO,MAAM,qBAAqB,UAAW,SAAS,eAAe,MAAM,KAAG,OACf,CAAC;AAMhE,eAAO,MAAM,yBAAyB,EAAE,WAAW,CAAC,aAAa,CAK/D,CAAC;AAEH,eAAO,MAAM,4BAA4B,UAAW,SAAS,eAAe,MAAM,KAAG,OACP,CAAC;AAE/E,eAAO,MAAM,gBAAgB,UAAW,SAAS,eAAe,MAAM,KAAG,MAAM,GAAG,SAC9B,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,UAAW,SAAS,KAAG,MAAM,GAAG,SAK1E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userAuth.test.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-cards/store/userAuth.test.ts"],"names":[],"mappings":""}
|