@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.
Files changed (149) hide show
  1. package/app/connectors/index.d.ts +1 -1
  2. package/app/connectors/index.d.ts.map +1 -1
  3. package/app/connectors/pages/auth-success/index.d.ts +2 -0
  4. package/app/connectors/pages/auth-success/index.d.ts.map +1 -0
  5. package/app/connectors/pages/auth-success/styles.d.ts +4 -0
  6. package/app/connectors/pages/auth-success/styles.d.ts.map +1 -0
  7. package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
  8. package/app/connectors/pages/settings/index.d.ts.map +1 -1
  9. package/app/connectors/pages/settings/styles.d.ts +1 -0
  10. package/app/connectors/pages/settings/styles.d.ts.map +1 -1
  11. package/app/connectors/router.d.ts.map +1 -1
  12. package/components/ui/form/index.d.ts +19 -0
  13. package/components/ui/form/index.d.ts.map +1 -0
  14. package/components/ui/form/styles.d.ts +4 -0
  15. package/components/ui/form/styles.d.ts.map +1 -0
  16. package/components/ui/form-fields/index.d.ts.map +1 -1
  17. package/components/ui/select/style.d.ts +2 -0
  18. package/components/ui/select/style.d.ts.map +1 -0
  19. package/constants/api.d.ts +1 -0
  20. package/constants/api.d.ts.map +1 -1
  21. package/constants/app-constants.d.ts +2 -0
  22. package/constants/app-constants.d.ts.map +1 -1
  23. package/constants/router-paths.d.ts +1 -0
  24. package/constants/router-paths.d.ts.map +1 -1
  25. package/context/index.d.ts +7 -0
  26. package/context/index.d.ts.map +1 -1
  27. package/context/main-app-provider/index.d.ts.map +1 -1
  28. package/features/auth/api/index.d.ts +8 -0
  29. package/features/auth/api/index.d.ts.map +1 -0
  30. package/features/auth/components/api-executor/index.d.ts +8 -0
  31. package/features/auth/components/api-executor/index.d.ts.map +1 -0
  32. package/features/auth/components/api-executor/styles.d.ts +12 -0
  33. package/features/auth/components/api-executor/styles.d.ts.map +1 -0
  34. package/features/auth/components/auth-form/index.d.ts +10 -0
  35. package/features/auth/components/auth-form/index.d.ts.map +1 -0
  36. package/features/auth/components/auth-form/reducer.d.ts +11 -0
  37. package/features/auth/components/auth-form/reducer.d.ts.map +1 -0
  38. package/features/auth/components/auth-form/styles.d.ts +8 -0
  39. package/features/auth/components/auth-form/styles.d.ts.map +1 -0
  40. package/features/auth/components/auth-header-skeleton/index.d.ts +2 -0
  41. package/features/auth/components/auth-header-skeleton/index.d.ts.map +1 -0
  42. package/features/auth/constants/api.d.ts +6 -0
  43. package/features/auth/constants/api.d.ts.map +1 -0
  44. package/features/auth/constants/form-config.d.ts +71 -0
  45. package/features/auth/constants/form-config.d.ts.map +1 -0
  46. package/features/auth/constants/index.d.ts +4 -1
  47. package/features/auth/constants/index.d.ts.map +1 -1
  48. package/features/auth/store/initial-state.d.ts +19 -0
  49. package/features/auth/store/initial-state.d.ts.map +1 -0
  50. package/features/auth/store/selectors.d.ts +12 -0
  51. package/features/auth/store/selectors.d.ts.map +1 -0
  52. package/features/auth/store/slice.d.ts +75 -0
  53. package/features/auth/store/slice.d.ts.map +1 -0
  54. package/features/auth/types/connector.d.ts +2 -0
  55. package/features/auth/types/connector.d.ts.map +1 -0
  56. package/features/auth/types/form.d.ts +24 -0
  57. package/features/auth/types/form.d.ts.map +1 -0
  58. package/features/auth/types/request.d.ts +33 -0
  59. package/features/auth/types/request.d.ts.map +1 -0
  60. package/features/auth/utils/index.d.ts +13 -0
  61. package/features/auth/utils/index.d.ts.map +1 -0
  62. package/features/auth/utils/type-guards.d.ts +8 -0
  63. package/features/auth/utils/type-guards.d.ts.map +1 -0
  64. package/features/connector-library/constants/api.d.ts.map +1 -1
  65. package/features/connector-library/store/initial-state.d.ts +3 -2
  66. package/features/connector-library/store/initial-state.d.ts.map +1 -1
  67. package/features/connector-library/store/selectors.d.ts +1 -1
  68. package/features/connector-library/store/selectors.d.ts.map +1 -1
  69. package/features/connector-library/store/slice.d.ts +3 -1
  70. package/features/connector-library/store/slice.d.ts.map +1 -1
  71. package/features/connector-library/types/connector.d.ts +1 -42
  72. package/features/connector-library/types/connector.d.ts.map +1 -1
  73. package/features/connector-library/utils/type-guards.d.ts +3 -2
  74. package/features/connector-library/utils/type-guards.d.ts.map +1 -1
  75. package/features/request-new-connector/api/index.d.ts +8 -0
  76. package/features/request-new-connector/api/index.d.ts.map +1 -0
  77. package/features/request-new-connector/components/custom-connector-card/index.d.ts +1 -0
  78. package/features/request-new-connector/components/custom-connector-card/index.d.ts.map +1 -1
  79. package/features/request-new-connector/components/request-new-modal/index.d.ts +1 -0
  80. package/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -1
  81. package/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -1
  82. package/features/request-new-connector/constants/api.d.ts +2 -0
  83. package/features/request-new-connector/constants/api.d.ts.map +1 -0
  84. package/features/request-new-connector/constants/index.d.ts +4 -0
  85. package/features/request-new-connector/constants/index.d.ts.map +1 -1
  86. package/features/request-new-connector/types/index.d.ts +16 -1
  87. package/features/request-new-connector/types/index.d.ts.map +1 -1
  88. package/features/request-new-connector/utils/type-guards.d.ts +3 -0
  89. package/features/request-new-connector/utils/type-guards.d.ts.map +1 -0
  90. package/features/toast-message/CloseButton.d.ts +4 -0
  91. package/features/toast-message/CloseButton.d.ts.map +1 -0
  92. package/features/toast-message/HiverIconToast.d.ts +7 -0
  93. package/features/toast-message/HiverIconToast.d.ts.map +1 -0
  94. package/features/toast-message/__tests__/toastMessage.test.d.ts +2 -0
  95. package/features/toast-message/__tests__/toastMessage.test.d.ts.map +1 -0
  96. package/features/toast-message/constants/toast.d.ts +4 -0
  97. package/features/toast-message/constants/toast.d.ts.map +1 -0
  98. package/features/toast-message/showMessage.d.ts +13 -0
  99. package/features/toast-message/showMessage.d.ts.map +1 -0
  100. package/features/toast-message/style.d.ts +7 -0
  101. package/features/toast-message/style.d.ts.map +1 -0
  102. package/{index-CWnqz_7p.js → index-3QhF4nPL.js} +13 -14
  103. package/index-BG0JDAxl.js +711 -0
  104. package/{index-CihMwBsW.js → index-BTijOkJN.js} +1 -1
  105. package/{index-D5knnyWw.js → index-CTf_uj1d.js} +25 -25
  106. package/{index-0ckwA6Bt.js → index-DHQTzZga.js} +1063 -1028
  107. package/{index-g_hNAZie.js → index-DwS53blc.js} +10386 -9235
  108. package/index-MhhY7aRi.js +3772 -0
  109. package/index.es.js +1 -1
  110. package/index.umd.js +373 -194
  111. package/package.json +1 -1
  112. package/store/hooks.d.ts +4 -0
  113. package/store/hooks.d.ts.map +1 -1
  114. package/store/index.d.ts +8 -0
  115. package/store/index.d.ts.map +1 -1
  116. package/store/request-connector-api/initial-state.d.ts +9 -0
  117. package/store/request-connector-api/initial-state.d.ts.map +1 -0
  118. package/store/request-connector-api/selectors.d.ts +5 -0
  119. package/store/request-connector-api/selectors.d.ts.map +1 -0
  120. package/store/request-connector-api/slice.d.ts +39 -0
  121. package/store/request-connector-api/slice.d.ts.map +1 -0
  122. package/styled-ui-components-BiFtpk_x.js +2253 -0
  123. package/testing/mocks/handlers/auth.d.ts +2 -0
  124. package/testing/mocks/handlers/auth.d.ts.map +1 -0
  125. package/testing/mocks/handlers/connector-template.d.ts +8 -0
  126. package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
  127. package/testing/mocks/handlers/request-connector-api.d.ts +2 -0
  128. package/testing/mocks/handlers/request-connector-api.d.ts.map +1 -0
  129. package/testing/mocks/handlers/update-connector.d.ts.map +1 -1
  130. package/testing/mocks/handlers.d.ts.map +1 -1
  131. package/testing/setup-store.d.ts +4 -0
  132. package/testing/setup-store.d.ts.map +1 -1
  133. package/types/common.d.ts +2 -0
  134. package/types/common.d.ts.map +1 -0
  135. package/types/connector.d.ts +60 -0
  136. package/types/connector.d.ts.map +1 -0
  137. package/types/json.d.ts +7 -0
  138. package/types/json.d.ts.map +1 -0
  139. package/types/router.d.ts +2 -0
  140. package/types/router.d.ts.map +1 -1
  141. package/utils/index.d.ts +2 -0
  142. package/utils/index.d.ts.map +1 -1
  143. package/utils/type-guards.d.ts +3 -0
  144. package/utils/type-guards.d.ts.map +1 -0
  145. package/Typography-BvoDUPsi.js +0 -174
  146. package/features/auth/components/auth.d.ts +0 -2
  147. package/features/auth/components/auth.d.ts.map +0 -1
  148. package/index-CPqWySPe.js +0 -2954
  149. 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":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAyB,CAAC;AACrD,eAAO,MAAM,cAAc,EAAE,MAAyB,CAAC;AACvD,eAAO,MAAM,oBAAoB,EAAE,MAAmC,CAAC;AACvE,eAAO,MAAM,qBAAqB,EAAE,MAA6B,CAAC"}
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 { ConnectorId, IConnectorStruct, IConnectorTemplate, IConnectorTemplateDetails } from '../types/connector';
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?: IConnectorTemplateDetails | null;
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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AA;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('../types/connector').IConnectorTemplateDetails | null | undefined;
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,8EAAgD,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"}
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('../types/connector').IConnectorTemplateDetails;
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;qGAwDlG,CAAC;AAIH,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;EAkB3B,CAAC;AAEH,QAAA,M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,EACL,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EAC1B,CAAC"}
@@ -1,4 +1,4 @@
1
- export type ConnectorId = string;
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,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,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,EAA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IAAI,CAAC,CAAC;IACrB,gBAAgB,EAAE,iBAAiB,CAAC;CACrC"}
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, IConnectorTemplateDetails } from '../types/connector';
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 IConnectorTemplateDetails;
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,KAAK,kBAAk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,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,6 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  interface Iprops {
3
3
  setModal?: (val: boolean) => void;
4
+ setConnectorId?: (val: string) => void;
4
5
  isConfigSettingsPage?: boolean;
5
6
  currentConnector?: string | null | undefined;
6
7
  }
@@ -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,CAkI1C,CAAC"}
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"}
@@ -3,6 +3,7 @@ export interface IRequestNewModalProps {
3
3
  shown: boolean;
4
4
  setShown: (value: boolean) => void;
5
5
  isApi?: boolean;
6
+ connectorId?: string;
6
7
  }
7
8
  export declare const RequestNewModal: React.FC<IRequestNewModalProps>;
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAQnD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAqD3D,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;AAG1B,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,CAmEpD,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,2 @@
1
+ export declare const REQUEST_URL: string;
2
+ //# sourceMappingURL=api.d.ts.map
@@ -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: number;
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,3 @@
1
+ import { IRequests } from '../types';
2
+ export declare function assertIsRequestsLike(valueToTest: unknown): asserts valueToTest is IRequests;
3
+ //# sourceMappingURL=type-guards.d.ts.map
@@ -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,4 @@
1
+ import { FC } from 'react';
2
+ declare const CloseButton: FC;
3
+ export default CloseButton;
4
+ //# sourceMappingURL=CloseButton.d.ts.map
@@ -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,7 @@
1
+ import { FC } from 'react';
2
+ interface IHiverIconToast {
3
+ message: string;
4
+ }
5
+ declare const HiverIconToast: FC<IHiverIconToast>;
6
+ export default HiverIconToast;
7
+ //# sourceMappingURL=HiverIconToast.d.ts.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=toastMessage.test.d.ts.map
@@ -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,4 @@
1
+ export declare const SUCCESS_TOAST: "success";
2
+ export declare const ERROR_TOAST: "error";
3
+ export declare const INFO_DARK: "info-dark";
4
+ //# sourceMappingURL=toast.d.ts.map
@@ -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 o, B as e, M as c, j as t, C as d, N as h, S as l, a as g, O as f } from "./index-g_hNAZie.js";
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
- import { T as b } from "./Typography-BvoDUPsi.js";
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(e)`
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 = o(b)`
15
+ `, C = e(d)`
17
16
  font-size: 14px;
18
17
  line-height: 24px;
19
- `, O = o(e)`
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(c), a = () => /* @__PURE__ */ t.jsx(O, { children: n.map(({ id: i, value: r, route: p }) => {
42
- const x = s === r;
43
- return /* @__PURE__ */ t.jsx(h, { to: p, "data-testid": i, className: x ? "active" : "", children: r }, i);
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: d }),
45
+ /* @__PURE__ */ t.jsx(C, { variant: "h3", "data-testid": "custom-connector-heading", children: h }),
47
46
  a()
48
47
  ] }) });
49
- }, v = () => /* @__PURE__ */ t.jsxs(l, { direction: "row", alignItems: "stretch", sx: { minHeight: "100vh" }, children: [
50
- /* @__PURE__ */ t.jsx(S, { sidebarOptions: g }),
51
- /* @__PURE__ */ t.jsx(f, {})
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
- v as ConnectorView
53
+ k as ConnectorView
55
54
  };