@hiver/connector-admin 0.0.9 → 0.0.10-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/app/connectors/index.d.ts +1 -1
- package/app/connectors/index.d.ts.map +1 -1
- package/app/connectors/pages/auth-success/index.d.ts +2 -0
- package/app/connectors/pages/auth-success/index.d.ts.map +1 -0
- package/app/connectors/pages/auth-success/styles.d.ts +4 -0
- package/app/connectors/pages/auth-success/styles.d.ts.map +1 -0
- package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
- package/app/connectors/pages/settings/index.d.ts.map +1 -1
- package/app/connectors/pages/settings/styles.d.ts +1 -0
- package/app/connectors/pages/settings/styles.d.ts.map +1 -1
- package/app/connectors/router.d.ts.map +1 -1
- package/components/ui/form/index.d.ts +19 -0
- package/components/ui/form/index.d.ts.map +1 -0
- package/components/ui/form/styles.d.ts +4 -0
- package/components/ui/form/styles.d.ts.map +1 -0
- package/components/ui/form-fields/index.d.ts.map +1 -1
- package/components/ui/select/style.d.ts +2 -0
- package/components/ui/select/style.d.ts.map +1 -0
- package/constants/api.d.ts +1 -0
- package/constants/api.d.ts.map +1 -1
- package/constants/app-constants.d.ts +2 -0
- package/constants/app-constants.d.ts.map +1 -1
- package/constants/router-paths.d.ts +1 -0
- package/constants/router-paths.d.ts.map +1 -1
- package/context/index.d.ts +7 -0
- package/context/index.d.ts.map +1 -1
- package/context/main-app-provider/index.d.ts.map +1 -1
- package/features/auth/api/index.d.ts +8 -0
- package/features/auth/api/index.d.ts.map +1 -0
- package/features/auth/components/api-executor/index.d.ts +8 -0
- package/features/auth/components/api-executor/index.d.ts.map +1 -0
- package/features/auth/components/api-executor/styles.d.ts +12 -0
- package/features/auth/components/api-executor/styles.d.ts.map +1 -0
- package/features/auth/components/auth-form/index.d.ts +10 -0
- package/features/auth/components/auth-form/index.d.ts.map +1 -0
- package/features/auth/components/auth-form/reducer.d.ts +11 -0
- package/features/auth/components/auth-form/reducer.d.ts.map +1 -0
- package/features/auth/components/auth-form/styles.d.ts +8 -0
- package/features/auth/components/auth-form/styles.d.ts.map +1 -0
- package/features/auth/components/auth-header-skeleton/index.d.ts +2 -0
- package/features/auth/components/auth-header-skeleton/index.d.ts.map +1 -0
- package/features/auth/constants/api.d.ts +6 -0
- package/features/auth/constants/api.d.ts.map +1 -0
- package/features/auth/constants/form-config.d.ts +71 -0
- package/features/auth/constants/form-config.d.ts.map +1 -0
- package/features/auth/constants/index.d.ts +4 -1
- package/features/auth/constants/index.d.ts.map +1 -1
- package/features/auth/store/initial-state.d.ts +19 -0
- package/features/auth/store/initial-state.d.ts.map +1 -0
- package/features/auth/store/selectors.d.ts +12 -0
- package/features/auth/store/selectors.d.ts.map +1 -0
- package/features/auth/store/slice.d.ts +75 -0
- package/features/auth/store/slice.d.ts.map +1 -0
- package/features/auth/types/connector.d.ts +2 -0
- package/features/auth/types/connector.d.ts.map +1 -0
- package/features/auth/types/form.d.ts +24 -0
- package/features/auth/types/form.d.ts.map +1 -0
- package/features/auth/types/request.d.ts +33 -0
- package/features/auth/types/request.d.ts.map +1 -0
- package/features/auth/utils/index.d.ts +13 -0
- package/features/auth/utils/index.d.ts.map +1 -0
- package/features/auth/utils/type-guards.d.ts +8 -0
- package/features/auth/utils/type-guards.d.ts.map +1 -0
- package/features/connector-library/constants/api.d.ts.map +1 -1
- package/features/connector-library/store/initial-state.d.ts +3 -2
- package/features/connector-library/store/initial-state.d.ts.map +1 -1
- package/features/connector-library/store/selectors.d.ts +1 -1
- package/features/connector-library/store/selectors.d.ts.map +1 -1
- package/features/connector-library/store/slice.d.ts +3 -1
- package/features/connector-library/store/slice.d.ts.map +1 -1
- package/features/connector-library/types/connector.d.ts +1 -42
- package/features/connector-library/types/connector.d.ts.map +1 -1
- package/features/connector-library/utils/type-guards.d.ts +3 -2
- package/features/connector-library/utils/type-guards.d.ts.map +1 -1
- package/features/request-new-connector/api/index.d.ts +8 -0
- package/features/request-new-connector/api/index.d.ts.map +1 -0
- package/features/request-new-connector/components/custom-connector-card/index.d.ts +1 -0
- package/features/request-new-connector/components/custom-connector-card/index.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-modal/index.d.ts +1 -0
- package/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -1
- package/features/request-new-connector/constants/api.d.ts +2 -0
- package/features/request-new-connector/constants/api.d.ts.map +1 -0
- package/features/request-new-connector/constants/index.d.ts +4 -0
- package/features/request-new-connector/constants/index.d.ts.map +1 -1
- package/features/request-new-connector/types/index.d.ts +16 -1
- package/features/request-new-connector/types/index.d.ts.map +1 -1
- package/features/request-new-connector/utils/type-guards.d.ts +3 -0
- package/features/request-new-connector/utils/type-guards.d.ts.map +1 -0
- package/features/toast-message/CloseButton.d.ts +4 -0
- package/features/toast-message/CloseButton.d.ts.map +1 -0
- package/features/toast-message/HiverIconToast.d.ts +7 -0
- package/features/toast-message/HiverIconToast.d.ts.map +1 -0
- package/features/toast-message/__tests__/toastMessage.test.d.ts +2 -0
- package/features/toast-message/__tests__/toastMessage.test.d.ts.map +1 -0
- package/features/toast-message/constants/toast.d.ts +4 -0
- package/features/toast-message/constants/toast.d.ts.map +1 -0
- package/features/toast-message/showMessage.d.ts +13 -0
- package/features/toast-message/showMessage.d.ts.map +1 -0
- package/features/toast-message/style.d.ts +7 -0
- package/features/toast-message/style.d.ts.map +1 -0
- package/{index-CWnqz_7p.js → index-3QhF4nPL.js} +13 -14
- package/index-BG0JDAxl.js +711 -0
- package/{index-CihMwBsW.js → index-BTijOkJN.js} +1 -1
- package/{index-D5knnyWw.js → index-CTf_uj1d.js} +25 -25
- package/{index-0ckwA6Bt.js → index-DHQTzZga.js} +1063 -1028
- package/{index-g_hNAZie.js → index-DwS53blc.js} +10386 -9235
- package/index-MhhY7aRi.js +3772 -0
- package/index.es.js +1 -1
- package/index.umd.js +373 -194
- package/package.json +1 -1
- package/store/hooks.d.ts +4 -0
- package/store/hooks.d.ts.map +1 -1
- package/store/index.d.ts +8 -0
- package/store/index.d.ts.map +1 -1
- package/store/request-connector-api/initial-state.d.ts +9 -0
- package/store/request-connector-api/initial-state.d.ts.map +1 -0
- package/store/request-connector-api/selectors.d.ts +5 -0
- package/store/request-connector-api/selectors.d.ts.map +1 -0
- package/store/request-connector-api/slice.d.ts +39 -0
- package/store/request-connector-api/slice.d.ts.map +1 -0
- package/styled-ui-components-BiFtpk_x.js +2253 -0
- package/testing/mocks/handlers/auth.d.ts +2 -0
- package/testing/mocks/handlers/auth.d.ts.map +1 -0
- package/testing/mocks/handlers/connector-template.d.ts +8 -0
- package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
- package/testing/mocks/handlers/request-connector-api.d.ts +2 -0
- package/testing/mocks/handlers/request-connector-api.d.ts.map +1 -0
- package/testing/mocks/handlers/update-connector.d.ts.map +1 -1
- package/testing/mocks/handlers.d.ts.map +1 -1
- package/testing/setup-store.d.ts +4 -0
- package/testing/setup-store.d.ts.map +1 -1
- package/types/common.d.ts +2 -0
- package/types/common.d.ts.map +1 -0
- package/types/connector.d.ts +60 -0
- package/types/connector.d.ts.map +1 -0
- package/types/json.d.ts +7 -0
- package/types/json.d.ts.map +1 -0
- package/types/router.d.ts +2 -0
- package/types/router.d.ts.map +1 -1
- package/utils/index.d.ts +2 -0
- package/utils/index.d.ts.map +1 -1
- package/utils/type-guards.d.ts +3 -0
- package/utils/type-guards.d.ts.map +1 -0
- package/Typography-BvoDUPsi.js +0 -174
- package/features/auth/components/auth.d.ts +0 -2
- package/features/auth/components/auth.d.ts.map +0 -1
- package/index-CPqWySPe.js +0 -2954
- package/index-xau7jZsj.js +0 -40
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IConnectorDetails, IAuthDetails, IOAuthDetails, IAuthAPIKeyDetails } from '../../../types/connector';
|
|
2
|
+
import { ITestUrlData } from '../types/request';
|
|
3
|
+
export declare function isOauthDetails(valueToTest: unknown): valueToTest is IOAuthDetails;
|
|
4
|
+
export declare function isApiKeyAuthDetails(valueToTest: unknown): valueToTest is IAuthAPIKeyDetails;
|
|
5
|
+
export declare function isAuthDetails(valueToTest: unknown): valueToTest is IAuthDetails;
|
|
6
|
+
export declare function assertIsConnectorDetailsLike(valueToTest: unknown): asserts valueToTest is IConnectorDetails;
|
|
7
|
+
export declare function assertIsTestUrlDataLike(valueToTest: unknown): asserts valueToTest is ITestUrlData;
|
|
8
|
+
//# sourceMappingURL=type-guards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/utils/type-guards.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,WAAW,IAAI,aAAa,CAgBjF;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,OAAO,GAAG,WAAW,IAAI,kBAAkB,CAgB3F;AACD,wBAAgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,WAAW,IAAI,YAAY,CAK/E;AAED,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,iBAAiB,CA0B3G;AAED,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,YAAY,CAajG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/constants/api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/constants/api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,EAAE,MAAsC,CAAC;AAClE,eAAO,MAAM,cAAc,EAAE,MAAsC,CAAC;AACpE,eAAO,MAAM,oBAAoB,EAAE,MAAgD,CAAC;AACpF,eAAO,MAAM,qBAAqB,EAAE,MAA0C,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiStatus } from '../../../types/api';
|
|
2
|
-
import {
|
|
2
|
+
import { IConnectorStruct, IConnectorTemplate } from '../types/connector';
|
|
3
|
+
import { IConnectorDetails, ConnectorId } from '../../../types/connector';
|
|
3
4
|
export interface ConnectorState {
|
|
4
5
|
connectorTemplates: {
|
|
5
6
|
[key: ConnectorId]: IConnectorTemplate;
|
|
@@ -13,7 +14,7 @@ export interface ConnectorState {
|
|
|
13
14
|
connectorsApiStatus: ApiStatus;
|
|
14
15
|
templateDetailsApiStatus: ApiStatus;
|
|
15
16
|
selectedConnector?: string | null;
|
|
16
|
-
selectedConnectorData?:
|
|
17
|
+
selectedConnectorData?: IConnectorDetails | null;
|
|
17
18
|
currentUpdatingConnectors: {
|
|
18
19
|
[key: string]: string;
|
|
19
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/initial-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/initial-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,WAAW,GAAG,kBAAkB,CAAA;KAAE,GAAG,IAAI,CAAC;IACtE,qBAAqB,EAAE,WAAW,EAAE,CAAC;IACrC,UAAU,EAAE;QAAE,CAAC,EAAE,EAAE,WAAW,GAAG,gBAAgB,CAAA;KAAE,GAAG,IAAI,CAAC;IAC3D,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,qBAAqB,EAAE,SAAS,CAAC;IACjC,mBAAmB,EAAE,SAAS,CAAC;IAC/B,wBAAwB,EAAE,SAAS,CAAC;IACpC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjD,yBAAyB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtD;AAGD,eAAO,MAAM,YAAY,EAAE,cAW1B,CAAC"}
|
|
@@ -3,7 +3,7 @@ export declare const selectConnectorTemplateList: (state: RootState) => string[]
|
|
|
3
3
|
export declare const selectConnectorTemplates: (state: RootState) => {
|
|
4
4
|
[key: string]: import('../types/connector').IConnectorTemplate;
|
|
5
5
|
} | null;
|
|
6
|
-
export declare const selectCurrentTemplateData: (state: RootState) => import('
|
|
6
|
+
export declare const selectCurrentTemplateData: (state: RootState) => import('../../../types/connector').IConnectorDetails | null | undefined;
|
|
7
7
|
export declare const selectTemplateListApiStatus: (state: RootState) => import('../../../types/api').ApiStatus;
|
|
8
8
|
export declare const selectConnectorList: (state: RootState) => string[];
|
|
9
9
|
export declare const selectConnectors: (state: RootState) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,2BAA2B,UAAW,SAAS,aAAgD,CAAC;AAC7G,eAAO,MAAM,wBAAwB,UAAW,SAAS;;QAA6C,CAAC;AACvG,eAAO,MAAM,yBAAyB,UAAW,SAAS,
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,2BAA2B,UAAW,SAAS,aAAgD,CAAC;AAC7G,eAAO,MAAM,wBAAwB,UAAW,SAAS;;QAA6C,CAAC;AACvG,eAAO,MAAM,yBAAyB,UAAW,SAAS,4EAAgD,CAAC;AAC3G,eAAO,MAAM,2BAA2B,UAAW,SAAS,2CAAgD,CAAC;AAC7G,eAAO,MAAM,mBAAmB,UAAW,SAAS,aAAwC,CAAC;AAC7F,eAAO,MAAM,gBAAgB,UAAW,SAAS;;QAAqC,CAAC;AACvF,eAAO,MAAM,4BAA4B,UAAW,SAAS,2CAA8C,CAAC;AAC5G,eAAO,MAAM,sBAAsB,UAAW,SAAS,8BAA4C,CAAC;AACpG,eAAO,MAAM,8BAA8B,UAAW,SAAS,2CAAmD,CAAC;AACnH,eAAO,MAAM,2BAA2B,UAAW,SAAS;;CAAoD,CAAC"}
|
|
@@ -6,6 +6,7 @@ interface ICurrentDashboard {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const connectorLibrarySlice: import('@reduxjs/toolkit').Slice<ConnectorState, {
|
|
8
8
|
updateCurrentSelectedConnector: (state: ConnectorState, action: PayloadAction<ICurrentDashboard>) => void;
|
|
9
|
+
clearSelectedConnector: (state: import('immer').WritableDraft<ConnectorState>) => void;
|
|
9
10
|
}, "connectorLibrary", "connectorLibrary", import('@reduxjs/toolkit').SliceSelectors<ConnectorState>>;
|
|
10
11
|
declare const fetchConnectorTemplates: import('@reduxjs/toolkit').AsyncThunk<{
|
|
11
12
|
connectors: {
|
|
@@ -58,7 +59,7 @@ declare const fetchConnectors: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
58
59
|
declare const fetchTemplateDetails: import('@reduxjs/toolkit').AsyncThunk<{
|
|
59
60
|
selectedConnectorData: null;
|
|
60
61
|
} | {
|
|
61
|
-
selectedConnectorData: import('
|
|
62
|
+
selectedConnectorData: import('../../../types/connector').IConnectorDetails;
|
|
62
63
|
}, string, {
|
|
63
64
|
state?: unknown;
|
|
64
65
|
dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
|
|
@@ -73,6 +74,7 @@ declare const _default: import('redux').Reducer<ConnectorState>;
|
|
|
73
74
|
export default _default;
|
|
74
75
|
export declare const actions: import('@reduxjs/toolkit').CaseReducerActions<{
|
|
75
76
|
updateCurrentSelectedConnector: (state: ConnectorState, action: PayloadAction<ICurrentDashboard>) => void;
|
|
77
|
+
clearSelectedConnector: (state: import('immer').WritableDraft<ConnectorState>) => void;
|
|
76
78
|
}, "connectorLibrary">;
|
|
77
79
|
export { fetchConnectorTemplates, fetchConnectors, fetchTemplateDetails, selectConnectorTemplateList, selectConnectorTemplates, selectCurrentTemplateData, updateConnectorDetailsApi };
|
|
78
80
|
//# sourceMappingURL=slice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/slice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,EAAE,cAAc,EAAgB,MAAM,iBAAiB,CAAC;AAO/D,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE/G,UAAU,iBAAiB;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,qBAAqB;4CAIU,cAAc,UAAU,aAAa,CAAC,iBAAiB,CAAC
|
|
1
|
+
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/slice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,EAAE,cAAc,EAAgB,MAAM,iBAAiB,CAAC;AAO/D,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE/G,UAAU,iBAAiB;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,qBAAqB;4CAIU,cAAc,UAAU,aAAa,CAAC,iBAAiB,CAAC;;qGA2DlG,CAAC;AAIH,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;EAkB3B,CAAC;AAEH,QAAA,MAAM,yBAAyB;;YAER,MAAM;iBAAW,OAAO;;;QAAxB,MAAM;aAAW,OAAO;;;;;;;;;;EAI9C,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;EAkBnB,CAAC;AAEH,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;EAaxB,CAAC;;AAEH,wBAA6C;AAC7C,eAAO,MAAM,OAAO;4CA/HwB,cAAc,UAAU,aAAa,CAAC,iBAAiB,CAAC;;sBA+HhD,CAAC;AACrD,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EAC1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { ConnectorId } from '../../../types/connector';
|
|
2
2
|
export interface IConnectorTemplate {
|
|
3
3
|
id: ConnectorId;
|
|
4
4
|
description: string;
|
|
@@ -10,45 +10,4 @@ export interface IConnectorStruct extends Omit<IConnectorTemplate, 'authType'> {
|
|
|
10
10
|
isEnabled: boolean;
|
|
11
11
|
isAuthenticated: boolean;
|
|
12
12
|
}
|
|
13
|
-
export interface IAPI {
|
|
14
|
-
name: string;
|
|
15
|
-
keyName: string;
|
|
16
|
-
description: string;
|
|
17
|
-
}
|
|
18
|
-
export interface IAuthDetails {
|
|
19
|
-
authType: string;
|
|
20
|
-
authEndpointUrl: string;
|
|
21
|
-
tokenEndpointUrl: string;
|
|
22
|
-
scopes: Array<string>;
|
|
23
|
-
grantType: string;
|
|
24
|
-
keyName: string;
|
|
25
|
-
prefix: string;
|
|
26
|
-
}
|
|
27
|
-
export interface IAPIKey {
|
|
28
|
-
label: string;
|
|
29
|
-
placeholderValue: string;
|
|
30
|
-
priority: number;
|
|
31
|
-
}
|
|
32
|
-
export interface ICard {
|
|
33
|
-
title: string;
|
|
34
|
-
priority: number;
|
|
35
|
-
type: 'flat' | 'flat_with_list' | 'create_resource';
|
|
36
|
-
output_map: {
|
|
37
|
-
[key: string]: IAPIKey;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export interface IIntegrationPanel {
|
|
41
|
-
position: string;
|
|
42
|
-
cards: Array<ICard>;
|
|
43
|
-
}
|
|
44
|
-
export interface IConnectorTemplateDetails {
|
|
45
|
-
id: string;
|
|
46
|
-
type: string;
|
|
47
|
-
authDetails: IAuthDetails;
|
|
48
|
-
name: string;
|
|
49
|
-
description: string;
|
|
50
|
-
feature_key: string;
|
|
51
|
-
apiList: Array<IAPI>;
|
|
52
|
-
integrationPanel: IIntegrationPanel;
|
|
53
|
-
}
|
|
54
13
|
//# sourceMappingURL=connector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/types/connector.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/types/connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,WAAW,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC;IAC5E,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IConnectorTemplate, IConnectorStruct
|
|
1
|
+
import { IConnectorTemplate, IConnectorStruct } from '../types/connector';
|
|
2
|
+
import { IConnectorDetails } from '../../../types/connector';
|
|
2
3
|
export declare function assertIsConnectorTemplateLike(valueToTest: unknown): asserts valueToTest is IConnectorTemplate;
|
|
3
4
|
export declare function assertIsConnectorTemplateArrayLike(valueToTest: unknown[]): asserts valueToTest is IConnectorTemplate[];
|
|
4
5
|
export declare function assertIsConnectorLike(valueToTest: unknown): asserts valueToTest is IConnectorStruct;
|
|
5
6
|
export declare function assertIsConnectorArrayLike(valueToTest: unknown[]): asserts valueToTest is IConnectorStruct[];
|
|
6
|
-
export declare function assertIsTemplateDetailsLike(valueToTest: unknown): asserts valueToTest is
|
|
7
|
+
export declare function assertIsTemplateDetailsLike(valueToTest: unknown): asserts valueToTest is IConnectorDetails;
|
|
7
8
|
//# sourceMappingURL=type-guards.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/utils/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/utils/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,kBAAkB,CAiB7G;AAED,wBAAgB,kCAAkC,CAChD,WAAW,EAAE,OAAO,EAAE,GACrB,OAAO,CAAC,WAAW,IAAI,kBAAkB,EAAE,CAO7C;AAED,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,gBAAgB,CAoBnG;AAED,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,IAAI,gBAAgB,EAAE,CAO5G;AAED,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,iBAAiB,CA2B1G"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface ISubmitConnectorRequest {
|
|
2
|
+
type: string;
|
|
3
|
+
values: Array<string>;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const getConnectorRequests: () => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
7
|
+
export declare const submitConnectorRequestApi: ({ type, values, description }: ISubmitConnectorRequest) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/api/index.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,oBAAoB,oEAKhC,CAAC;AAEF,eAAO,MAAM,yBAAyB,kCAAmC,uBAAuB,iEAM/F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/custom-connector-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA8C,MAAM,OAAO,CAAC;AAsCvE,UAAU,MAAM;IACd,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC9C;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/custom-connector-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA8C,MAAM,OAAO,CAAC;AAsCvE,UAAU,MAAM;IACd,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC9C;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,MAAM,CAsI1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/request-new-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/request-new-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAiBnD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiF3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-panel.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/request-new-modal/request-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"request-panel.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/request-new-modal/request-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAY9C,UAAU,iBAAiB;IACzB,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IAC1D,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmFpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/constants/api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,EAAE,MAA4C,CAAC"}
|
|
@@ -18,4 +18,8 @@ export declare const ADD_CONNECTOR: string;
|
|
|
18
18
|
export declare const EDIT_CONNECTOR: string;
|
|
19
19
|
export declare const ENABLE: string;
|
|
20
20
|
export declare const DISABLE: string;
|
|
21
|
+
export declare const REQUEST_TYPE: {
|
|
22
|
+
CONNECTOR: string;
|
|
23
|
+
API: string;
|
|
24
|
+
};
|
|
21
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAyC,CAAC;AACrE,eAAO,MAAM,wBAAwB,EAAE,MAAqI,CAAC;AAC7K,eAAO,MAAM,WAAW,EAAE,MAAgC,CAAC;AAC3D,eAAO,MAAM,eAAe,EAAE,MAAwC,CAAC;AACvE,eAAO,MAAM,eAAe,EAAE,MAA0B,CAAC;AACzD,eAAO,MAAM,uBAAuB,EAAE,MAAkC,CAAC;AACzE,eAAO,MAAM,aAAa,EAAE,MACyD,CAAC;AACtF,eAAO,MAAM,6BAA6B,EAAE,MAAwH,CAAC;AACrK,eAAO,MAAM,uBAAuB,EAAE,MAAwB,CAAC;AAC/D,eAAO,MAAM,sCAAsC,EAAE,MAA6B,CAAC;AACnF,eAAO,MAAM,uCAAuC,EAAE,MAAuD,CAAC;AAC9G,eAAO,MAAM,6BAA6B,EAAE,MAAyB,CAAC;AACtE,eAAO,MAAM,iCAAiC,EAAE,MAA4B,CAAC;AAC7E,eAAO,MAAM,uCAAuC,EAAE,MAC2C,CAAC;AAClG,eAAO,MAAM,uCAAuC,EAAE,MAAe,CAAC;AACtE,eAAO,MAAM,gBAAgB,EAAE,MAA2B,CAAC;AAC3D,eAAO,MAAM,aAAa,EAAE,MAAwB,CAAC;AACrD,eAAO,MAAM,cAAc,EAAE,MAAyB,CAAC;AACvD,eAAO,MAAM,MAAM,EAAE,MAAiB,CAAC;AACvC,eAAO,MAAM,OAAO,EAAE,MAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAyC,CAAC;AACrE,eAAO,MAAM,wBAAwB,EAAE,MAAqI,CAAC;AAC7K,eAAO,MAAM,WAAW,EAAE,MAAgC,CAAC;AAC3D,eAAO,MAAM,eAAe,EAAE,MAAwC,CAAC;AACvE,eAAO,MAAM,eAAe,EAAE,MAA0B,CAAC;AACzD,eAAO,MAAM,uBAAuB,EAAE,MAAkC,CAAC;AACzE,eAAO,MAAM,aAAa,EAAE,MACyD,CAAC;AACtF,eAAO,MAAM,6BAA6B,EAAE,MAAwH,CAAC;AACrK,eAAO,MAAM,uBAAuB,EAAE,MAAwB,CAAC;AAC/D,eAAO,MAAM,sCAAsC,EAAE,MAA6B,CAAC;AACnF,eAAO,MAAM,uCAAuC,EAAE,MAAuD,CAAC;AAC9G,eAAO,MAAM,6BAA6B,EAAE,MAAyB,CAAC;AACtE,eAAO,MAAM,iCAAiC,EAAE,MAA4B,CAAC;AAC7E,eAAO,MAAM,uCAAuC,EAAE,MAC2C,CAAC;AAClG,eAAO,MAAM,uCAAuC,EAAE,MAAe,CAAC;AACtE,eAAO,MAAM,gBAAgB,EAAE,MAA2B,CAAC;AAC3D,eAAO,MAAM,aAAa,EAAE,MAAwB,CAAC;AACrD,eAAO,MAAM,cAAc,EAAE,MAAyB,CAAC;AACvD,eAAO,MAAM,MAAM,EAAE,MAAiB,CAAC;AACvC,eAAO,MAAM,OAAO,EAAE,MAAkB,CAAC;AACzC,eAAO,MAAM,YAAY;;;CAGxB,CAAC"}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
export interface IDropdownOption {
|
|
2
2
|
label: string;
|
|
3
|
-
id:
|
|
3
|
+
id: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IRequestableConnector {
|
|
6
|
+
key: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IRequestableAPI {
|
|
10
|
+
connector: string;
|
|
11
|
+
apis: Array<{
|
|
12
|
+
key: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
export interface IRequests {
|
|
17
|
+
requestableConnectors: Array<IRequestableConnector>;
|
|
18
|
+
requestableAPIs: Array<IRequestableAPI>;
|
|
4
19
|
}
|
|
5
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5C;AAED,MAAM,WAAW,SAAS;IACxB,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACpD,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/utils/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,SAAS,CAc3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloseButton.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/CloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAM3B,QAAA,MAAM,WAAW,EAAE,EAIlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HiverIconToast.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/HiverIconToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAI3B,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,eAAe,CAKvC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toastMessage.test.d.ts","sourceRoot":"","sources":["../../../../src/features/toast-message/__tests__/toastMessage.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../src/features/toast-message/constants/toast.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,WAAqB,CAAC;AAChD,eAAO,MAAM,WAAW,SAAmB,CAAC;AAC5C,eAAO,MAAM,SAAS,aAAuB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dispatches action to show message
|
|
3
|
+
* @param {Object} message Message object of format { type, message }
|
|
4
|
+
*/
|
|
5
|
+
export interface IShowMessage {
|
|
6
|
+
message: string;
|
|
7
|
+
type?: 'success' | 'error' | 'info-dark' | undefined;
|
|
8
|
+
autoClose?: number | false | undefined;
|
|
9
|
+
}
|
|
10
|
+
declare function showMessage(messageObject: IShowMessage): import('react-toastify').Id;
|
|
11
|
+
declare function removeToast(toastId: string | number): void;
|
|
12
|
+
export { showMessage, removeToast };
|
|
13
|
+
//# sourceMappingURL=showMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showMessage.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/showMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAC/C,OAAO,gBAAgB,CAAC;AAQxB;;;GAGG;AAEH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;CACxC;AAED,iBAAS,WAAW,CAAC,aAAa,EAAE,YAAY,+BAoC/C;AAED,iBAAS,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,QAE5C;AAED,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyledComponent } from '@emotion/styled';
|
|
2
|
+
import { BoxProps, StackProps, SvgIconOwnProps } from '@hiver/hiver-ui-kit';
|
|
3
|
+
export declare const Wrapper: StyledComponent<BoxProps>;
|
|
4
|
+
export declare const Message: StyledComponent<BoxProps>;
|
|
5
|
+
export declare const Logo: StyledComponent<SvgIconOwnProps>;
|
|
6
|
+
export declare const ImgWrapper: StyledComponent<StackProps>;
|
|
7
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEjF,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,QAAQ,CAI7C,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,QAAQ,CAG7C,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,eAAe,CAAC,eAAe,CAK/C,CAAC;AAEJ,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,UAAU,CAUlD,CAAC"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { s as
|
|
1
|
+
import { s as e, B as o, T as d, M as p, j as t, C as h, N as l, S as g, a as f, O as b } from "./index-DwS53blc.js";
|
|
2
2
|
import { useContext as m } from "react";
|
|
3
|
-
|
|
4
|
-
const u = o(e)`
|
|
3
|
+
const u = e(o)`
|
|
5
4
|
box-sizing: border-box;
|
|
6
5
|
background-color: #ffffff;
|
|
7
6
|
position: fixed;
|
|
8
7
|
height: 100%;
|
|
9
8
|
z-index: 2;
|
|
10
|
-
`, j = o
|
|
9
|
+
`, j = e(o)`
|
|
11
10
|
padding-top: 17px;
|
|
12
11
|
box-sizing: border-box;
|
|
13
12
|
width: 178px;
|
|
14
13
|
border-right: 1px solid rgba(214, 221, 232, 1);
|
|
15
14
|
height: 100%;
|
|
16
|
-
`, C =
|
|
15
|
+
`, C = e(d)`
|
|
17
16
|
font-size: 14px;
|
|
18
17
|
line-height: 24px;
|
|
19
|
-
`, O = o
|
|
18
|
+
`, O = e(o)`
|
|
20
19
|
display: flex;
|
|
21
20
|
flex-direction: column;
|
|
22
21
|
gap: 8px;
|
|
@@ -38,18 +37,18 @@ const u = o(e)`
|
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
`, S = ({ sidebarOptions: n = [] }) => {
|
|
41
|
-
const { currentSideBar: s } = m(
|
|
42
|
-
const
|
|
43
|
-
return /* @__PURE__ */ t.jsx(
|
|
40
|
+
const { currentSideBar: s } = m(p), a = () => /* @__PURE__ */ t.jsx(O, { children: n.map(({ id: i, value: r, route: x }) => {
|
|
41
|
+
const c = s === r;
|
|
42
|
+
return /* @__PURE__ */ t.jsx(l, { to: x, "data-testid": i, className: c ? "active" : "", children: r }, i);
|
|
44
43
|
}) });
|
|
45
44
|
return /* @__PURE__ */ t.jsx(u, { "data-testid": "sideBarParent", children: /* @__PURE__ */ t.jsxs(j, { children: [
|
|
46
|
-
/* @__PURE__ */ t.jsx(C, { variant: "h3", "data-testid": "custom-connector-heading", children:
|
|
45
|
+
/* @__PURE__ */ t.jsx(C, { variant: "h3", "data-testid": "custom-connector-heading", children: h }),
|
|
47
46
|
a()
|
|
48
47
|
] }) });
|
|
49
|
-
},
|
|
50
|
-
/* @__PURE__ */ t.jsx(S, { sidebarOptions:
|
|
51
|
-
/* @__PURE__ */ t.jsx(
|
|
48
|
+
}, k = () => /* @__PURE__ */ t.jsxs(g, { direction: "row", alignItems: "stretch", sx: { minHeight: "100vh" }, children: [
|
|
49
|
+
/* @__PURE__ */ t.jsx(S, { sidebarOptions: f }),
|
|
50
|
+
/* @__PURE__ */ t.jsx(b, {})
|
|
52
51
|
] });
|
|
53
52
|
export {
|
|
54
|
-
|
|
53
|
+
k as ConnectorView
|
|
55
54
|
};
|