@hiver/connector-agent 2.0.8-releaseGlobalSearch-beta.3 → 3.0.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.
Files changed (139) hide show
  1. package/app/connector-cards.d.ts.map +1 -1
  2. package/components/ui/switch/index.d.ts +2 -2
  3. package/components/ui/switch/index.d.ts.map +1 -1
  4. package/constants/global-constants.d.ts +0 -2
  5. package/constants/global-constants.d.ts.map +1 -1
  6. package/constants/remote-assets.d.ts +2 -0
  7. package/constants/remote-assets.d.ts.map +1 -0
  8. package/features/connector-cards/api/index.d.ts +1 -0
  9. package/features/connector-cards/api/index.d.ts.map +1 -1
  10. package/features/connector-cards/components/card-list/email-selection.d.ts +1 -2
  11. package/features/connector-cards/components/card-list/email-selection.d.ts.map +1 -1
  12. package/features/connector-cards/constants/api.d.ts +1 -0
  13. package/features/connector-cards/constants/api.d.ts.map +1 -1
  14. package/features/connector-cards/store/slice.d.ts +16 -1
  15. package/features/connector-cards/store/slice.d.ts.map +1 -1
  16. package/features/global-search/components/search-results/components/{no-search-results.d.ts → index.d.ts} +1 -1
  17. package/features/global-search/components/search-results/components/index.d.ts.map +1 -0
  18. package/features/global-search/components/search-results/index.d.ts +3 -5
  19. package/features/global-search/components/search-results/index.d.ts.map +1 -1
  20. package/features/global-search/components/search-results/styles.d.ts +1 -3
  21. package/features/global-search/components/search-results/styles.d.ts.map +1 -1
  22. package/features/global-search/components/search-select/components/select-option/index.d.ts +9 -0
  23. package/features/global-search/components/search-select/components/select-option/index.d.ts.map +1 -0
  24. package/features/global-search/components/search-select/components/select-option/styles.d.ts +5 -0
  25. package/features/global-search/components/search-select/components/select-option/styles.d.ts.map +1 -0
  26. package/features/global-search/components/search-select/index.d.ts +1 -4
  27. package/features/global-search/components/search-select/index.d.ts.map +1 -1
  28. package/features/global-search/components/search-select/styles.d.ts.map +1 -1
  29. package/features/global-search/components/search-suggestions/index.d.ts.map +1 -1
  30. package/features/global-search/constants/index.d.ts +0 -1
  31. package/features/global-search/constants/index.d.ts.map +1 -1
  32. package/features/global-search/types/index.d.ts +1 -11
  33. package/features/global-search/types/index.d.ts.map +1 -1
  34. package/features/toast-message/constants/toast.d.ts +0 -2
  35. package/features/toast-message/constants/toast.d.ts.map +1 -1
  36. package/features/write-form/api/index.d.ts +5 -0
  37. package/features/write-form/api/index.d.ts.map +1 -1
  38. package/features/write-form/components/card-linking/card-linking.d.ts.map +1 -1
  39. package/features/write-form/components/card-linking/card-preview.d.ts +2 -2
  40. package/features/write-form/components/card-linking/card-preview.d.ts.map +1 -1
  41. package/features/write-form/components/write-form/index.d.ts.map +1 -1
  42. package/features/write-form/components/write-form/reducer.d.ts +12 -0
  43. package/features/write-form/components/write-form/reducer.d.ts.map +1 -0
  44. package/features/write-form/constants/api.d.ts +1 -0
  45. package/features/write-form/constants/api.d.ts.map +1 -1
  46. package/features/write-form/constants/index.d.ts +12 -0
  47. package/features/write-form/constants/index.d.ts.map +1 -1
  48. package/{constants/regex-patterns.d.ts → features/write-form/constants/regex-pattern.d.ts} +1 -1
  49. package/features/write-form/constants/regex-pattern.d.ts.map +1 -0
  50. package/features/write-form/store/initial-state.d.ts +5 -5
  51. package/features/write-form/store/initial-state.d.ts.map +1 -1
  52. package/features/write-form/store/selectors.d.ts +3 -1
  53. package/features/write-form/store/selectors.d.ts.map +1 -1
  54. package/features/write-form/store/slice.d.ts +52 -6
  55. package/features/write-form/store/slice.d.ts.map +1 -1
  56. package/features/write-form/types/form.d.ts +80 -1
  57. package/features/write-form/types/form.d.ts.map +1 -1
  58. package/features/write-form/utils/index.d.ts +28 -1
  59. package/features/write-form/utils/index.d.ts.map +1 -1
  60. package/index.es.js +11208 -40136
  61. package/index.umd.js +176 -2226
  62. package/package.json +2 -1
  63. package/store/hooks.d.ts +0 -2
  64. package/store/hooks.d.ts.map +1 -1
  65. package/store/index.d.ts +0 -6
  66. package/store/index.d.ts.map +1 -1
  67. package/testing/mocks/handlers/fetch-cards.d.ts +2 -2
  68. package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
  69. package/testing/mocks/handlers/write-capability.d.ts.map +1 -1
  70. package/testing/mocks/handlers.d.ts.map +1 -1
  71. package/testing/test-utils.d.ts +1 -1
  72. package/testing/test-utils.d.ts.map +1 -1
  73. package/{utils/index.d.ts → utils.d.ts} +3 -3
  74. package/utils.d.ts.map +1 -0
  75. package/api/conversationMeta.d.ts +0 -14
  76. package/api/conversationMeta.d.ts.map +0 -1
  77. package/api/form.d.ts +0 -5
  78. package/api/form.d.ts.map +0 -1
  79. package/api/linkCard.d.ts +0 -10
  80. package/api/linkCard.d.ts.map +0 -1
  81. package/api/previewCard.d.ts +0 -3
  82. package/api/previewCard.d.ts.map +0 -1
  83. package/components/ui/loader/skeleton.d.ts +0 -6
  84. package/components/ui/loader/skeleton.d.ts.map +0 -1
  85. package/constants/endpoints.d.ts +0 -6
  86. package/constants/endpoints.d.ts.map +0 -1
  87. package/constants/form.d.ts +0 -14
  88. package/constants/form.d.ts.map +0 -1
  89. package/constants/regex-patterns.d.ts.map +0 -1
  90. package/features/global-search/api/getSearchResults.d.ts +0 -10
  91. package/features/global-search/api/getSearchResults.d.ts.map +0 -1
  92. package/features/global-search/api/getSmartSuggestions.d.ts +0 -13
  93. package/features/global-search/api/getSmartSuggestions.d.ts.map +0 -1
  94. package/features/global-search/components/index.d.ts +0 -12
  95. package/features/global-search/components/index.d.ts.map +0 -1
  96. package/features/global-search/components/preview-and-link/index.d.ts +0 -9
  97. package/features/global-search/components/preview-and-link/index.d.ts.map +0 -1
  98. package/features/global-search/components/preview-and-link/styles.d.ts +0 -4
  99. package/features/global-search/components/preview-and-link/styles.d.ts.map +0 -1
  100. package/features/global-search/components/search-form/index.d.ts +0 -10
  101. package/features/global-search/components/search-form/index.d.ts.map +0 -1
  102. package/features/global-search/components/search-results/components/no-search-results.d.ts.map +0 -1
  103. package/features/global-search/components/search-results/components/search-results-loading.d.ts +0 -2
  104. package/features/global-search/components/search-results/components/search-results-loading.d.ts.map +0 -1
  105. package/features/global-search/components/styles.d.ts +0 -5
  106. package/features/global-search/components/styles.d.ts.map +0 -1
  107. package/features/global-search/constants/api.d.ts +0 -3
  108. package/features/global-search/constants/api.d.ts.map +0 -1
  109. package/features/global-search/constants/storage.d.ts +0 -2
  110. package/features/global-search/constants/storage.d.ts.map +0 -1
  111. package/features/global-search/hooks/useObjectSort.d.ts +0 -10
  112. package/features/global-search/hooks/useObjectSort.d.ts.map +0 -1
  113. package/features/global-search/store/selectors.d.ts +0 -15
  114. package/features/global-search/store/selectors.d.ts.map +0 -1
  115. package/hooks/useDropdownConfig.d.ts +0 -16
  116. package/hooks/useDropdownConfig.d.ts.map +0 -1
  117. package/hooks/useFormHandlers.d.ts +0 -18
  118. package/hooks/useFormHandlers.d.ts.map +0 -1
  119. package/hooks/useFormReducer.d.ts +0 -13
  120. package/hooks/useFormReducer.d.ts.map +0 -1
  121. package/store/initial-state.d.ts +0 -19
  122. package/store/initial-state.d.ts.map +0 -1
  123. package/store/selectors.d.ts +0 -4
  124. package/store/selectors.d.ts.map +0 -1
  125. package/store/slice.d.ts +0 -61
  126. package/store/slice.d.ts.map +0 -1
  127. package/testing/mocks/handlers/common.d.ts +0 -2
  128. package/testing/mocks/handlers/common.d.ts.map +0 -1
  129. package/testing/mocks/handlers/global-search.d.ts +0 -2
  130. package/testing/mocks/handlers/global-search.d.ts.map +0 -1
  131. package/types/form.d.ts +0 -107
  132. package/types/form.d.ts.map +0 -1
  133. package/utils/form.d.ts +0 -20
  134. package/utils/form.d.ts.map +0 -1
  135. package/utils/index.d.ts.map +0 -1
  136. package/utils/poll.d.ts +0 -13
  137. package/utils/poll.d.ts.map +0 -1
  138. package/utils/validations.d.ts +0 -10
  139. package/utils/validations.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-agent",
3
- "version": "2.0.8-releaseGlobalSearch-beta.3",
3
+ "version": "3.0.1",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -14,6 +14,7 @@
14
14
  "react-dom": "^18.3.1"
15
15
  },
16
16
  "peerDependencies": {
17
+ "@hiver/hiver-ui-kit": "3.0.1",
17
18
  "react": "^18.0.0",
18
19
  "react-dom": "^18.0.0"
19
20
  },
package/store/hooks.d.ts CHANGED
@@ -1,11 +1,9 @@
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
3
  write: import('../features/write-form/store/initial-state').WriteCapabilityState;
4
- common: import('./initial-state').CommonSliceState;
5
4
  }, undefined, import('redux').UnknownAction> & import('redux').Dispatch<import('redux').UnknownAction>>;
6
5
  export declare const useAppSelector: import('react-redux').UseSelector<{
7
6
  cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
8
7
  write: import('../features/write-form/store/initial-state').WriteCapabilityState;
9
- common: import('./initial-state').CommonSliceState;
10
8
  }>;
11
9
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
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"}
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
@@ -2,32 +2,26 @@ 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
4
  write: import('../features/write-form/store/initial-state').WriteCapabilityState;
5
- common: import('./initial-state').CommonSliceState;
6
5
  }, import('redux').UnknownAction, Partial<{
7
6
  cardList: import('../features/connector-cards/store/initial-state').IConnectorState | undefined;
8
7
  write: import('../features/write-form/store/initial-state').WriteCapabilityState | undefined;
9
- common: import('./initial-state').CommonSliceState | undefined;
10
8
  }>>;
11
9
  export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
12
10
  cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
13
11
  write: import('../features/write-form/store/initial-state').WriteCapabilityState;
14
- common: import('./initial-state').CommonSliceState;
15
12
  }, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
16
13
  dispatch: import('redux-thunk').ThunkDispatch<{
17
14
  cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
18
15
  write: import('../features/write-form/store/initial-state').WriteCapabilityState;
19
- common: import('./initial-state').CommonSliceState;
20
16
  }, undefined, import('redux').UnknownAction>;
21
17
  }>, import('redux').StoreEnhancer]>>;
22
18
  export declare const customStore: (preloadedState?: Partial<RootState>) => import('@reduxjs/toolkit').EnhancedStore<{
23
19
  cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
24
20
  write: import('../features/write-form/store/initial-state').WriteCapabilityState;
25
- common: import('./initial-state').CommonSliceState;
26
21
  }, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
27
22
  dispatch: import('redux-thunk').ThunkDispatch<{
28
23
  cardList: import('../features/connector-cards/store/initial-state').IConnectorState;
29
24
  write: import('../features/write-form/store/initial-state').WriteCapabilityState;
30
- common: import('./initial-state').CommonSliceState;
31
25
  }, undefined, import('redux').UnknownAction>;
32
26
  }>, import('redux').StoreEnhancer]>>;
33
27
  export type AppStore = typeof store;
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;GAGtB,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"}
@@ -8,7 +8,7 @@ export declare const getSpecificConnector: (id: string, count?: number, isPrevie
8
8
  readonly label: string;
9
9
  readonly value: string | null;
10
10
  readonly errorMessage: "" | null;
11
- readonly statusCode: 404 | 500 | 200 | 400;
11
+ readonly statusCode: 404 | 200 | 400 | 500;
12
12
  readonly priority: number;
13
13
  readonly deepLink: string | null;
14
14
  readonly key: string;
@@ -18,7 +18,7 @@ export declare const getSpecificConnector: (id: string, count?: number, isPrevie
18
18
  readonly label: string;
19
19
  readonly value: string | null;
20
20
  readonly errorMessage: "" | null;
21
- readonly statusCode: 404 | 500 | 200 | 400;
21
+ readonly statusCode: 404 | 200 | 400 | 500;
22
22
  readonly priority: number;
23
23
  readonly deepLink: string | null;
24
24
  readonly key: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AA8BpE,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM,cAAiB,OAAO;;;cAqDjC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa9D,CAAC;AAaF,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
1
+ {"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AA8CpE,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM,cAAiB,OAAO;;;cAqDjC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa9D,CAAC;AAmBF,eAAO,MAAM,QAAQ,6BAA2E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"AA4cA,eAAO,MAAM,QAAQ,6BASpB,CAAC"}
1
+ {"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"AAyUA,eAAO,MAAM,QAAQ,6BASpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/handlers.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ,6BAMpB,CAAC"}
1
+ {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/handlers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,6BAAiE,CAAC"}
@@ -9,7 +9,7 @@ export declare const waitForLoadingToFinish: () => Promise<void>;
9
9
  export declare const renderApp: (ui: React.ReactElement, { preloadedState, store, ...renderOptions }?: ExtendedRenderOptions) => Promise<{
10
10
  container: HTMLElement;
11
11
  baseElement: HTMLElement;
12
- debug: (baseElement?: import('react-dom/client').Container | (Document | Element) | Array<import('react-dom/client').Container | (Document | Element)> | undefined, maxLength?: number | undefined, options?: import('pretty-format').OptionsReceived | undefined) => void;
12
+ debug: (baseElement?: import('react-dom/client').Container | (Element | Document) | Array<import('react-dom/client').Container | (Element | Document)> | undefined, maxLength?: number | undefined, options?: import('pretty-format').OptionsReceived | undefined) => void;
13
13
  rerender: (ui: React.ReactNode) => void;
14
14
  unmount: () => void;
15
15
  asFragment: () => DocumentFragment;
@@ -1 +1 @@
1
- {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/testing/test-utils.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,MAAM,IAAI,SAAS,EAAqC,MAAM,wBAAwB,CAAC;AAChG,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI5D,UAAU,qBAAsB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACpE,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,qBAG/B,CAAC;AAEL,eAAO,MAAM,SAAS,OAChB,KAAK,CAAC,YAAY,gDACyD,qBAAqB;;;uBAF9F,CAAC,yJAE8F,CAAC,6BAElF,CAAC;yBAIb,SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBX,CAAC;AAGF,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/testing/test-utils.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,MAAM,IAAI,SAAS,EAAqC,MAAM,wBAAwB,CAAC;AAChG,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG5D,UAAU,qBAAsB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACpE,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,qBAG/B,CAAC;AAEL,eAAO,MAAM,SAAS,OAChB,KAAK,CAAC,YAAY,gDACyD,qBAAqB;;;uBAA3E,CAAC,yJAIT,CAAC,6BAEV,CAAR;yBAEY,SAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYnB,CAAC;AAGF,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
- import { IAvailableFtr } from '../context';
2
- import { IEventData, ICardData, ISpecificCard, ISpecificCardSlice } from '../types/cards';
1
+ import { IAvailableFtr } from './context';
2
+ import { IEventData, ICardData, ISpecificCard, ISpecificCardSlice } from './types/cards';
3
3
  export declare const generateUniqueKey: (text: number | string) => string;
4
4
  export declare const getVersionData: (version: string) => string | number | (() => StringIterator<string>) | ((url: string) => string) | (() => string) | ((pos: number) => string) | ((index: number) => number) | ((...strings: string[]) => string) | ((searchString: string, position?: number) => number) | ((searchString: string, position?: number) => number) | {
5
5
  (that: string): number;
@@ -56,4 +56,4 @@ export declare const replacePlaceholders: (template: string, values: {
56
56
  }) => string;
57
57
  export declare const getCardLoadedGainSightEventsData: (data: ICardData, title: string, isExpanded: boolean, isSuccess?: boolean) => IEventData;
58
58
  export declare const parseCardData: (data: ISpecificCardSlice) => ISpecificCard;
59
- //# sourceMappingURL=index.d.ts.map
59
+ //# sourceMappingURL=utils.d.ts.map
package/utils.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAM1C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE9F,eAAO,MAAM,iBAAiB,SAAU,MAAM,GAAG,MAAM,WAGtD,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,MAAM;;+DAsH4+0M,eAAe;kCA1Ezh1M,eAAe,iBAAiB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAvB/D,eAEW;;;oBAIE,eAAe;;;;;;;4XAvB3B,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAAa,MAAM,YAIxD,CAAC;AAOF,eAAO,MAAM,yBAAyB,YAAa,MAAM,WAAU,MAAM,YAIxE,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAAa,MAAM,gBAAe,OAAO,aAAoB,OAAO,SA2BnG,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,sBAAuB,aAAa,2BAAoB,MAAM,YAM5F,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,MAAM,UAAU;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,KAAG,MAElG,CAAC;AAEF,eAAO,MAAM,gCAAgC,SACrC,SAAS,SACR,MAAM,cACD,OAAO,cACR,OAAO,eAcnB,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,kBAAkB,KAAG,aA4BxD,CAAC"}
@@ -1,14 +0,0 @@
1
- export interface ConversationMetaData {
2
- emailHeaders: Record<string, string>;
3
- }
4
- export interface ConversationMetaProps {
5
- /** conversation id */
6
- conversationId: string;
7
- senderEmail: string;
8
- }
9
- export interface ConversionMetaQueryProps extends ConversationMetaProps {
10
- enabled: boolean;
11
- }
12
- export declare const fetchConversationMeta: ({ conversationId, senderEmail }: ConversationMetaProps) => Promise<ConversationMetaData>;
13
- export declare const useConversationMetaQuery: ({ conversationId, senderEmail, enabled }: ConversionMetaQueryProps) => import('@tanstack/react-query').UseQueryResult<ConversationMetaData, Error>;
14
- //# sourceMappingURL=conversationMeta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversationMeta.d.ts","sourceRoot":"","sources":["../../src/api/conversationMeta.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,qBAAqB;IACpC,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAyB,SAAQ,qBAAqB;IACrE,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,oCAG/B,qBAAqB,KAAG,OAAO,CAAC,oBAAoB,CAatD,CAAC;AAEF,eAAO,MAAM,wBAAwB,6CAA8C,wBAAwB,gFAO1G,CAAC"}
package/api/form.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { JSONObject } from '../types/json';
2
- export declare const fetchFieldData: (placeholders: {
3
- [key: string]: string | number;
4
- }, data: JSONObject, channelType?: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
5
- //# sourceMappingURL=form.d.ts.map
package/api/form.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/api/form.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,eAAO,MAAM,cAAc,iBACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,QAC1C,UAAU,gBACH,MAAM,iEAUpB,CAAC"}
package/api/linkCard.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export interface LinkCardProps {
2
- id: string;
3
- externalResourceId: string;
4
- conversationId: number;
5
- channelType?: string;
6
- }
7
- export declare const useLinkCardMutation: ({ onSuccess }: {
8
- onSuccess?: () => void;
9
- }) => import('@tanstack/react-query').UseMutationResult<void, Error, LinkCardProps, unknown>;
10
- //# sourceMappingURL=linkCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linkCard.d.ts","sourceRoot":"","sources":["../../src/api/linkCard.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAgBD,eAAO,MAAM,mBAAmB,kBAAmB;IAAE,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,2FAUzE,CAAC"}
@@ -1,3 +0,0 @@
1
- import { PreviewArgs } from '../types/form';
2
- export declare const previewCardApi: (id: string, args: PreviewArgs, channelType?: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
3
- //# sourceMappingURL=previewCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"previewCard.d.ts","sourceRoot":"","sources":["../../src/api/previewCard.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,eAAO,MAAM,cAAc,OAAQ,MAAM,QAAQ,WAAW,gBAAe,MAAM,iEAWhF,CAAC"}
@@ -1,6 +0,0 @@
1
- import { StyledComponent } from '@emotion/styled';
2
- import { SkeletonProps } from '@hiver/hiver-ui-kit';
3
- export declare const SkeletonLoader: StyledComponent<SkeletonProps & {
4
- margin?: string;
5
- }>;
6
- //# sourceMappingURL=skeleton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/loader/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAY,aAAa,EAAU,MAAM,qBAAqB,CAAC;AAEtE,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,aAAa,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAG/E,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const BASE_URL = "/v1/api";
2
- export declare const CONVERSATION_META_API = "/v1/api/connectors/conversation/:conversationId/metadata";
3
- export declare const FETCH_FIELD_DATA: string;
4
- export declare const LINK_CARD_API: string;
5
- export declare const PREVIEW_CARD_API: string;
6
- //# sourceMappingURL=endpoints.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/constants/endpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAClC,eAAO,MAAM,qBAAqB,6DAAiE,CAAC;AACpG,eAAO,MAAM,gBAAgB,EAAE,MAAqE,CAAC;AACrG,eAAO,MAAM,aAAa,EAAE,MAAgD,CAAC;AAC7E,eAAO,MAAM,gBAAgB,EAAE,MAAmD,CAAC"}
@@ -1,14 +0,0 @@
1
- export declare const DEFAULT_AVATAR_URL = "https://avatars.githubusercontent.com/u/62397590";
2
- export declare const INVALID_URL_MSG = "Please enter a valid URL";
3
- export declare const INVALID_ID = "Please enter valid ID";
4
- export declare const INVALID_INPUT = "Please enter valid input";
5
- export declare const URL_MUST_START_WITH_HTTPS = "URL must start with https://";
6
- export declare const URL_SHOULD_NOT_END_WITH_SLASH = "URL should not end with a slash";
7
- export declare const INVALID_EMAIL = "Invalid email address";
8
- export declare const STRING_EMAIL = "Email must be a string";
9
- export declare const INVALID_DATE_MSG = "Invalid date";
10
- export declare const PAST_DISABLED_MSG = "Date cannot be in the past";
11
- export declare const FUTURE_DISABLED_MSG = "Date cannot be in the future";
12
- export declare const INVALID_NUMBER = "Invalid number";
13
- export declare const INVALID_TEXT = "Invalid text";
14
- //# sourceMappingURL=form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/constants/form.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,qDAAqD,CAAC;AAGrF,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,UAAU,0BAA0B,CAAC;AAClD,eAAO,MAAM,aAAa,6BAA6B,CAAC;AACxD,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,6BAA6B,oCAAoC,CAAC;AAC/E,eAAO,MAAM,aAAa,0BAA0B,CAAC;AACrD,eAAO,MAAM,YAAY,2BAA2B,CAAC;AACrD,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,iBAAiB,+BAA+B,CAAC;AAC9D,eAAO,MAAM,mBAAmB,iCAAiC,CAAC;AAClE,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,YAAY,iBAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"regex-patterns.d.ts","sourceRoot":"","sources":["../../src/constants/regex-patterns.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAAuE,CAAC;AAChG,eAAO,MAAM,aAAa,QAA+B,CAAC"}
@@ -1,10 +0,0 @@
1
- import { SearchResultsType } from '../types';
2
- import { FormArgValue } from '../../../types/form';
3
- export type SearchResultsProps = {
4
- id: string | number;
5
- searchString: string;
6
- interfaceId: string;
7
- args: Record<string, FormArgValue>;
8
- };
9
- export declare const useSearchResultsMutation: () => import('@tanstack/react-query').UseMutationResult<SearchResultsType | undefined, Error, SearchResultsProps, unknown>;
10
- //# sourceMappingURL=getSearchResults.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSearchResults.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/api/getSearchResults.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CACpC,CAAC;AA0BF,eAAO,MAAM,wBAAwB,4HAIpC,CAAC"}
@@ -1,13 +0,0 @@
1
- import { ConversionMetaQueryProps } from '../../../api/conversationMeta';
2
- import { SmartSuggestion, SearchOptionType } from '../types';
3
- export interface SmartSuggestionsData {
4
- status: 'completed' | 'pending' | 'failure';
5
- smart_suggestions: SmartSuggestion[];
6
- suggestedOptions?: SearchOptionType[];
7
- }
8
- export interface SmartSuggestionProps {
9
- conversationId: string;
10
- }
11
- export type SmartSuggestionQueryProps = SmartSuggestionProps & ConversionMetaQueryProps;
12
- export declare const useSmartSuggestionsQuery: ({ conversationId, senderEmail, enabled }: SmartSuggestionQueryProps) => import('@tanstack/react-query').UseQueryResult<SmartSuggestionsData, Error>;
13
- //# sourceMappingURL=getSmartSuggestions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSmartSuggestions.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/api/getSmartSuggestions.ts"],"names":[],"mappings":"AAKA,OAAO,EAA4B,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAI5F,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;IAC5C,iBAAiB,EAAE,eAAe,EAAE,CAAC;IACrC,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;AA4CxF,eAAO,MAAM,wBAAwB,6CAA8C,yBAAyB,gFAQ3G,CAAC"}
@@ -1,12 +0,0 @@
1
- import { Dispatch, FC, SetStateAction } from 'react';
2
- import { SearchResultsProps } from '../api/getSearchResults';
3
- import { SearchOptionType } from '../types';
4
- interface GlobalSearchProps {
5
- selectedObject: SearchOptionType | null;
6
- setSelectedObject: Dispatch<SetStateAction<SearchOptionType | null>>;
7
- fetchSearchResults: (data: SearchResultsProps) => void;
8
- onReset: () => void;
9
- }
10
- export declare const GlobalSearch: FC<GlobalSearchProps>;
11
- export {};
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/components/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,UAAU,iBAAiB;IACzB,cAAc,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACxC,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC,CAAC;IACrE,kBAAkB,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACvD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA4E9C,CAAC"}
@@ -1,9 +0,0 @@
1
- import { PreviewMeta } from '../../../../types/form.ts';
2
- interface IProps {
3
- meta: PreviewMeta;
4
- onBack: () => void;
5
- onLink: () => void;
6
- }
7
- export declare const PreviewAndLink: ({ meta: { externalResourceId, formId }, onBack, onLink }: IProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/global-search/components/preview-and-link/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEhE,UAAU,MAAM;IACd,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,6DAA8D,MAAM,4CAiD9F,CAAC"}
@@ -1,4 +0,0 @@
1
- import { StackProps } from '@hiver/hiver-ui-kit';
2
- import { StyledComponent } from '@emotion/styled';
3
- export declare const BackToSearch: StyledComponent<StackProps>;
4
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/global-search/components/preview-and-link/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAU,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAIlD,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,UAAU,CAYpD,CAAC"}
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- import { SearchResultsProps } from '../../api/getSearchResults';
3
- interface SearchFormProps {
4
- objectId: string | number;
5
- searchString: string;
6
- fetchSearchResults: (props: SearchResultsProps) => void;
7
- }
8
- export declare const SearchForm: FC<SearchFormProps>;
9
- export {};
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/global-search/components/search-form/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,UAAU,eAAe;IACvB,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACzD;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAuI1C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-search-results.d.ts","sourceRoot":"","sources":["../../../../../../src/features/global-search/components/search-results/components/no-search-results.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,+CAS3B,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const SearchResultsLoading: () => import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=search-results-loading.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search-results-loading.d.ts","sourceRoot":"","sources":["../../../../../../src/features/global-search/components/search-results/components/search-results-loading.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,+CAYhC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { StyledComponent } from '@emotion/styled';
2
- import { StackProps } from '@hiver/hiver-ui-kit';
3
- export declare const GlobalSearchStyles: StyledComponent<StackProps>;
4
- export declare const FormWrapper: StyledComponent<StackProps>;
5
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/components/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,UAAU,CAE1D,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,UAAU,CAEnD,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const FETCH_SEARCH_RESULTS_API: string;
2
- export declare const SMART_SUGGESTIONS_API: string;
3
- //# sourceMappingURL=api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/constants/api.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,wBAAwB,EAAE,MAAsD,CAAC;AAC9F,eAAO,MAAM,qBAAqB,EAAE,MAAgF,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const PRIORITY_KEY = "@connector-agent-global-search-priority";
2
- //# sourceMappingURL=storage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/constants/storage.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,4CAA4C,CAAC"}
@@ -1,10 +0,0 @@
1
- import { OptionType } from '@connector/ui';
2
- interface ObjectSortProps {
3
- objectList: OptionType[];
4
- }
5
- export declare const useObjectSort: ({ objectList }: ObjectSortProps) => {
6
- sortedObjectList: OptionType[];
7
- updatePriority: (objectKey: string) => void;
8
- };
9
- export {};
10
- //# sourceMappingURL=useObjectSort.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useObjectSort.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/hooks/useObjectSort.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,UAAU,eAAe;IACvB,UAAU,EAAE,UAAU,EAAE,CAAC;CAC1B;AAID,eAAO,MAAM,aAAa,mBAAoB,eAAe;;gCASxB,MAAM;CAa1C,CAAC"}
@@ -1,15 +0,0 @@
1
- import { RootState } from '../../../store';
2
- export declare const selectSearchObjectList: (state: RootState) => import('@connector/ui').OptionType[];
3
- export declare const selectObjectDict: (state: RootState) => {
4
- [key: string]: import('../../../types/form').ObjectItem;
5
- } | null;
6
- export declare const selectFormFields: (state: RootState) => {
7
- [key: string]: import('../../write-form/types/form').WriteFormFields[];
8
- } | null;
9
- export declare const selectDependentFieldsMap: (state: RootState) => {
10
- [key: string]: {
11
- [key: string]: string[];
12
- };
13
- };
14
- export declare const selectObjectListApiLoading: (state: RootState) => boolean;
15
- //# sourceMappingURL=selectors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/features/global-search/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,sBAAsB,UAAW,SAAS,yCAAiC,CAAC;AACzF,eAAO,MAAM,gBAAgB,UAAW,SAAS;;QAA2B,CAAC;AAC7E,eAAO,MAAM,gBAAgB,UAAW,SAAS;;QAA2B,CAAC;AAC7E,eAAO,MAAM,wBAAwB,UAAW,SAAS;;;;CAAmC,CAAC;AAC7F,eAAO,MAAM,0BAA0B,UAAW,SAAS,YAAkD,CAAC"}
@@ -1,16 +0,0 @@
1
- import { AsyncLoadOptions, OptionType } from '@connector/ui';
2
- import { FormFields, FormState } from '../types/form';
3
- interface DropdownConfigProps {
4
- formFields: FormFields[];
5
- formState: FormState;
6
- formId: string | number;
7
- }
8
- export declare const useDropdownConfig: ({ formFields, formState, formId }: DropdownConfigProps) => {
9
- fetchConfig: {
10
- [key: string]: {
11
- loadOptions: AsyncLoadOptions<OptionType>;
12
- };
13
- } | null;
14
- };
15
- export {};
16
- //# sourceMappingURL=useDropdownConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDropdownConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useDropdownConfig.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,UAAU,mBAAmB;IAC3B,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,iBAAiB,sCAAuC,mBAAmB;;;yBAyC1C,gBAAgB,CAAC,UAAU,CAAC;;;CASzE,CAAC"}
@@ -1,18 +0,0 @@
1
- import { FormValidation } from '@connector/ui';
2
- import { FormState, FormActionValue, FieldValue } from '../types/form';
3
- import { Dispatch } from 'react';
4
- interface FormHandlersProps {
5
- dispatch: Dispatch<FormActionValue>;
6
- state: FormState;
7
- validations: FormValidation;
8
- }
9
- export declare const useFormHandlers: ({ state, dispatch, validations }: FormHandlersProps) => {
10
- setValue: (name: string, value?: FieldValue) => void;
11
- isErrorInValidations: () => boolean;
12
- inputChangeHandler: (event: React.ChangeEvent<HTMLInputElement>) => void;
13
- dateChangeHandler: (name: string, date: Date | null) => void;
14
- handleValidationError: (name: string, error: string | boolean) => void;
15
- clearDependentFields: (fieldName: string, dependentFieldsMap: Record<string, string[]>) => void;
16
- };
17
- export {};
18
- //# sourceMappingURL=useFormHandlers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFormHandlers.d.ts","sourceRoot":"","sources":["../../src/hooks/useFormHandlers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,UAAU,iBAAiB;IACzB,QAAQ,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IACpC,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,EAAE,cAAc,CAAC;CAC7B;AAED,eAAO,MAAM,eAAe,qCAAsC,iBAAiB;qBAGzD,MAAM,UAAU,UAAU;;gCASf,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC;8BAMrC,MAAM,QAAQ,IAAI,GAAG,IAAI;kCAIrB,MAAM,SAAS,MAAM,GAAG,OAAO;sCAM3B,MAAM,sBAAsB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;CAuB9F,CAAC"}
@@ -1,13 +0,0 @@
1
- import { FormState, FormActionValue } from '../types/form';
2
- export declare const intialState: FormState;
3
- export declare const ACTIONS: {
4
- SET_FIELD_VALUE: string;
5
- CLEAR_ERROR: string;
6
- SET_FIELD_ERROR: string;
7
- SET_FIELDS: string;
8
- CLEAR_FIELDS: string;
9
- RESET_STATE: string;
10
- };
11
- export declare const reducer: (state: FormState, action: FormActionValue) => FormState;
12
- export declare const useFormReducer: () => [FormState, import('react').Dispatch<FormActionValue>];
13
- //# sourceMappingURL=useFormReducer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFormReducer.d.ts","sourceRoot":"","sources":["../../src/hooks/useFormReducer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/D,eAAO,MAAM,WAAW,EAAE,SAGzB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,SAAS,UAAU,eAAe,KAAG,SAyDnE,CAAC;AAEF,eAAO,MAAM,cAAc,8DAE1B,CAAC"}
@@ -1,19 +0,0 @@
1
- import { ApiStatus } from '../types/api';
2
- import { ISpecificCard } from '../types/cards';
3
- import { OptionType } from '@connector/ui';
4
- interface OptionsData {
5
- options: OptionType[];
6
- hasMore: boolean;
7
- currentPage: number;
8
- }
9
- export interface CommonSliceState {
10
- optionsMap: {
11
- [key: string]: OptionsData;
12
- } | null;
13
- dropdownOptionsApis: ApiStatus;
14
- previewCardData: ISpecificCard | null;
15
- previewCardApiStatus: ApiStatus;
16
- }
17
- export declare const initialState: CommonSliceState;
18
- export {};
19
- //# sourceMappingURL=initial-state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../src/store/initial-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,UAAU,WAAW;IACnB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,GAAG,IAAI,CAAC;IAClD,mBAAmB,EAAE,SAAS,CAAC;IAC/B,eAAe,EAAE,aAAa,GAAG,IAAI,CAAC;IACtC,oBAAoB,EAAE,SAAS,CAAC;CACjC;AAGD,eAAO,MAAM,YAAY,EAAE,gBAK1B,CAAC"}
@@ -1,4 +0,0 @@
1
- import { RootState } from '.';
2
- export declare const selectPreviewCardData: (state: RootState) => import('../types/cards').ISpecificCard | null;
3
- export declare const selectPreviewCardApiStatus: (state: RootState) => import('../types/api').ApiStatus;
4
- //# sourceMappingURL=selectors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,qBAAqB,UAAW,SAAS,kDAAiC,CAAC;AACxF,eAAO,MAAM,0BAA0B,UAAW,SAAS,qCAAsC,CAAC"}
package/store/slice.d.ts DELETED
@@ -1,61 +0,0 @@
1
- import { OptionType } from '@connector/ui';
2
- import { InterfaceDetails, FormFields, PreviewArgs } from '../types/form';
3
- export declare const commonSlice: import('@reduxjs/toolkit').Slice<import('./initial-state').CommonSliceState, {
4
- resetState: () => import('./initial-state').CommonSliceState;
5
- resetPreviewCardData: (state: import('immer').WritableDraft<import('./initial-state').CommonSliceState>) => void;
6
- }, "commonSlice", "commonSlice", import('@reduxjs/toolkit').SliceSelectors<import('./initial-state').CommonSliceState>>;
7
- export declare const fetchDropDownOptions: import('@reduxjs/toolkit').AsyncThunk<{
8
- optionsList: {
9
- label: string;
10
- value: string | number;
11
- }[];
12
- fieldName: string;
13
- formId: string;
14
- currentPage: number;
15
- hasMore: boolean;
16
- key: string;
17
- }, {
18
- fieldName: string;
19
- formId: string;
20
- fieldConfig: FormFields;
21
- interfaceId?: string;
22
- pagination: InterfaceDetails["pagination"];
23
- callback?: (options: OptionType[]) => void;
24
- args?: {
25
- [key: string]: string | number | boolean | null;
26
- };
27
- isScrollToBottomEvent?: boolean;
28
- }, {
29
- state?: unknown;
30
- dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
31
- extra?: unknown;
32
- rejectValue?: unknown;
33
- serializedErrorType?: unknown;
34
- pendingMeta?: unknown;
35
- fulfilledMeta?: unknown;
36
- rejectedMeta?: unknown;
37
- }>;
38
- export declare const previewCard: import('@reduxjs/toolkit').AsyncThunk<{
39
- data: null;
40
- } | {
41
- data: import('../types/cards').ISpecificCard;
42
- }, {
43
- id: string;
44
- args: PreviewArgs;
45
- channelType?: string;
46
- isRefresh?: boolean;
47
- }, {
48
- state?: unknown;
49
- dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
50
- extra?: unknown;
51
- rejectValue?: unknown;
52
- serializedErrorType?: unknown;
53
- pendingMeta?: unknown;
54
- fulfilledMeta?: unknown;
55
- rejectedMeta?: unknown;
56
- }>;
57
- declare const resetState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"commonSlice/resetState">, resetPreviewCardData: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"commonSlice/resetPreviewCardData">;
58
- declare const _default: import('redux').Reducer<import('./initial-state').CommonSliceState>;
59
- export default _default;
60
- export { resetState, resetPreviewCardData };
61
- //# sourceMappingURL=slice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../src/store/slice.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG9E,eAAO,MAAM,WAAW;;;uHA6CtB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;eAIhB,MAAM;YACT,MAAM;iBACD,UAAU;kBACT,MAAM;gBACR,gBAAgB,CAAC,YAAY,CAAC;eAC/B,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI;WACnC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;KAAE;4BAClC,OAAO;;;;;;;;;;EA6GpC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;QAQhB,MAAM;UACJ,WAAW;kBACH,MAAM;gBACR,OAAO;;;;;;;;;;EActB,CAAC;AAEF,QAAA,MAAQ,UAAU,oFAAE,oBAAoB,4FAAwB,CAAC;;AACjE,wBAAmC;AAEnC,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const handlers: import('msw').HttpHandler[];
2
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/common.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,QAAQ,6BAA+B,CAAC"}