@hiver/connector-agent 0.0.1-beta.0 → 0.0.3-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 (59) hide show
  1. package/app/index.d.ts +8 -1
  2. package/app/index.d.ts.map +1 -1
  3. package/constants/card.d.ts +2 -0
  4. package/constants/card.d.ts.map +1 -1
  5. package/constants/noConnector.d.ts +5 -0
  6. package/constants/noConnector.d.ts.map +1 -0
  7. package/context/index.d.ts +11 -0
  8. package/context/index.d.ts.map +1 -1
  9. package/context/main-app-provider/index.d.ts.map +1 -1
  10. package/features/connector-cards/api/index.d.ts +1 -0
  11. package/features/connector-cards/api/index.d.ts.map +1 -1
  12. package/features/connector-cards/components/card-list/Card.d.ts +18 -0
  13. package/features/connector-cards/components/card-list/Card.d.ts.map +1 -0
  14. package/features/connector-cards/components/card-list/CardContent.d.ts +15 -0
  15. package/features/connector-cards/components/card-list/CardContent.d.ts.map +1 -0
  16. package/features/connector-cards/components/card-list/{__test__ → __tests__}/card-list.test.d.ts.map +1 -1
  17. package/features/connector-cards/components/card-list/index.d.ts +7 -1
  18. package/features/connector-cards/components/card-list/index.d.ts.map +1 -1
  19. package/features/connector-cards/components/card-list/style.d.ts +10 -3
  20. package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
  21. package/features/connector-cards/components/no-connectors/index.d.ts +3 -0
  22. package/features/connector-cards/components/no-connectors/index.d.ts.map +1 -0
  23. package/features/connector-cards/components/no-connectors/style.d.ts +7 -0
  24. package/features/connector-cards/components/no-connectors/style.d.ts.map +1 -0
  25. package/features/connector-cards/constants/api.d.ts.map +1 -1
  26. package/features/connector-cards/store/index.d.ts +7 -0
  27. package/features/connector-cards/store/index.d.ts.map +1 -1
  28. package/features/connector-cards/store/initial-state.d.ts +5 -3
  29. package/features/connector-cards/store/initial-state.d.ts.map +1 -1
  30. package/features/connector-cards/store/selectors.d.ts +5 -3
  31. package/features/connector-cards/store/selectors.d.ts.map +1 -1
  32. package/features/connector-cards/store/slice.d.ts +16 -1
  33. package/features/connector-cards/store/slice.d.ts.map +1 -1
  34. package/features/connector-cards/utils/type-guards.d.ts +6 -0
  35. package/features/connector-cards/utils/type-guards.d.ts.map +1 -0
  36. package/features/toast-message/CloseButton.d.ts +4 -0
  37. package/features/toast-message/CloseButton.d.ts.map +1 -0
  38. package/features/toast-message/HiverIconToast.d.ts +7 -0
  39. package/features/toast-message/HiverIconToast.d.ts.map +1 -0
  40. package/features/toast-message/__tests__/toastMessage.test.d.ts +2 -0
  41. package/features/toast-message/__tests__/toastMessage.test.d.ts.map +1 -0
  42. package/features/toast-message/constants/toast.d.ts +4 -0
  43. package/features/toast-message/constants/toast.d.ts.map +1 -0
  44. package/features/toast-message/showMessage.d.ts +13 -0
  45. package/features/toast-message/showMessage.d.ts.map +1 -0
  46. package/features/toast-message/style.d.ts +7 -0
  47. package/features/toast-message/style.d.ts.map +1 -0
  48. package/index.es.js +9395 -8191
  49. package/index.umd.js +281 -92
  50. package/main.d.ts +5 -0
  51. package/main.d.ts.map +1 -1
  52. package/package.json +2 -5
  53. package/testing/mocks/handlers/fetch-cards.d.ts +6 -0
  54. package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
  55. package/testing/test-utils.d.ts +6 -1
  56. package/testing/test-utils.d.ts.map +1 -1
  57. package/types/cards.d.ts +12 -6
  58. package/types/cards.d.ts.map +1 -1
  59. /package/features/connector-cards/components/card-list/{__test__ → __tests__}/card-list.test.d.ts +0 -0
package/main.d.ts CHANGED
@@ -1 +1,6 @@
1
+ declare global {
2
+ interface Window {
3
+ grexit: any;
4
+ }
5
+ }
1
6
  //# sourceMappingURL=main.d.ts.map
package/main.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAKA,OAAO,aAAa,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAKA,OAAO,aAAa,CAAC;AAoBrB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QAEd,MAAM,EAAE,GAAG,CAAC;KACb;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-agent",
3
- "version": "0.0.1-beta.0",
3
+ "version": "0.0.3-beta.0",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -30,8 +30,5 @@
30
30
  "publishConfig": {
31
31
  "directory": "dist"
32
32
  },
33
- "private": false,
34
- "scripts": {
35
- "prepublish": "cd dist"
36
- }
33
+ "private": false
37
34
  }
@@ -1,2 +1,8 @@
1
+ import { ICardTypes, IFlatDisplay } from '../../../types/cards';
2
+ export declare const getSpecificConnector: (id: string, count?: number) => {
3
+ id: string;
4
+ cardType: ICardTypes;
5
+ data: IFlatDisplay;
6
+ };
1
7
  export declare const handlers: import('msw').HttpHandler[];
2
8
  //# sourceMappingURL=fetch-cards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AA0DA,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
1
+ {"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,YAAY,EAA4B,MAAM,eAAe,CAAC;AAyBnF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM;;cAiCT,UAAU;;CAG9D,CAAC;AAaF,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
@@ -1,7 +1,12 @@
1
+ import { RootState, AppStore } from '../features/connector-cards/store';
1
2
  import { render as rtlRender, RenderOptions } from '@testing-library/react';
2
3
  import { default as userEvent } from '@testing-library/user-event';
4
+ interface ExtendedRenderOptions extends Omit<RenderOptions, 'queries'> {
5
+ preloadedState?: Partial<RootState>;
6
+ store?: AppStore;
7
+ }
3
8
  export declare const waitForLoadingToFinish: () => Promise<void>;
4
- export declare const renderApp: (ui: React.ReactElement, renderOptions?: RenderOptions) => Promise<{
9
+ export declare const renderApp: (ui: React.ReactElement, { preloadedState, store, ...renderOptions }?: ExtendedRenderOptions) => Promise<{
5
10
  container: HTMLElement;
6
11
  baseElement: HTMLElement;
7
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;
@@ -1 +1 @@
1
- {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/testing/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAqC,MAAM,wBAAwB,CAAC;AAChG,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAGpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,eAAO,MAAM,sBAAsB,qBAG/B,CAAC;AAEL,eAAO,MAAM,SAAS,OAAc,KAAK,CAAC,YAAY,kBAAiB,aAAa;;;uBAce,CAAC,yJAAyJ,CAAC,6BAAiC,CAAC;yBAA+E,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EALvX,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,kCAAkC,CAAC;AAEvE,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;;;uBADnG,CAAC,yJAGY,CAAC,6BAEX,CAAF;yBAE2B,SAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaJ,CAAC;AAGF,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
package/types/cards.d.ts CHANGED
@@ -5,22 +5,28 @@ export type ICard = {
5
5
  priority: number;
6
6
  type: ICardTypes;
7
7
  };
8
- type IFlatDisArr = {
8
+ export type IFlatDisArr = {
9
9
  label: string;
10
- placeholder: string;
10
+ value: string | null;
11
+ errorMessage: string | null;
12
+ statusCode: string | number;
11
13
  };
12
- type IListItemArr = {
14
+ export type IListItemArr = {
13
15
  label: string;
14
- value: string;
16
+ value: string | null;
15
17
  };
18
+ export interface IListItems {
19
+ fields: Array<IListItemArr[]>;
20
+ errorMessage: string | null;
21
+ statusCode: string;
22
+ }
16
23
  export type IFlatDisplay = {
17
24
  flatDisplay: IFlatDisArr[];
18
- listItems: IListItemArr[][];
25
+ listItems: IListItems;
19
26
  };
20
27
  export type ISpecificCard = {
21
28
  id: string;
22
29
  cardType: ICardTypes;
23
30
  data: IFlatDisplay;
24
31
  };
25
- export {};
26
32
  //# sourceMappingURL=cards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/types/cards.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAEnD,MAAM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