@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.
- package/app/index.d.ts +8 -1
- package/app/index.d.ts.map +1 -1
- package/constants/card.d.ts +2 -0
- package/constants/card.d.ts.map +1 -1
- package/constants/noConnector.d.ts +5 -0
- package/constants/noConnector.d.ts.map +1 -0
- package/context/index.d.ts +11 -0
- package/context/index.d.ts.map +1 -1
- package/context/main-app-provider/index.d.ts.map +1 -1
- package/features/connector-cards/api/index.d.ts +1 -0
- package/features/connector-cards/api/index.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/Card.d.ts +18 -0
- package/features/connector-cards/components/card-list/Card.d.ts.map +1 -0
- package/features/connector-cards/components/card-list/CardContent.d.ts +15 -0
- package/features/connector-cards/components/card-list/CardContent.d.ts.map +1 -0
- package/features/connector-cards/components/card-list/{__test__ → __tests__}/card-list.test.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/index.d.ts +7 -1
- package/features/connector-cards/components/card-list/index.d.ts.map +1 -1
- package/features/connector-cards/components/card-list/style.d.ts +10 -3
- package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
- package/features/connector-cards/components/no-connectors/index.d.ts +3 -0
- package/features/connector-cards/components/no-connectors/index.d.ts.map +1 -0
- package/features/connector-cards/components/no-connectors/style.d.ts +7 -0
- package/features/connector-cards/components/no-connectors/style.d.ts.map +1 -0
- package/features/connector-cards/constants/api.d.ts.map +1 -1
- package/features/connector-cards/store/index.d.ts +7 -0
- package/features/connector-cards/store/index.d.ts.map +1 -1
- package/features/connector-cards/store/initial-state.d.ts +5 -3
- package/features/connector-cards/store/initial-state.d.ts.map +1 -1
- package/features/connector-cards/store/selectors.d.ts +5 -3
- package/features/connector-cards/store/selectors.d.ts.map +1 -1
- package/features/connector-cards/store/slice.d.ts +16 -1
- package/features/connector-cards/store/slice.d.ts.map +1 -1
- package/features/connector-cards/utils/type-guards.d.ts +6 -0
- package/features/connector-cards/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.es.js +9395 -8191
- package/index.umd.js +281 -92
- package/main.d.ts +5 -0
- package/main.d.ts.map +1 -1
- package/package.json +2 -5
- package/testing/mocks/handlers/fetch-cards.d.ts +6 -0
- package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
- package/testing/test-utils.d.ts +6 -1
- package/testing/test-utils.d.ts.map +1 -1
- package/types/cards.d.ts +12 -6
- package/types/cards.d.ts.map +1 -1
- /package/features/connector-cards/components/card-list/{__test__ → __tests__}/card-list.test.d.ts +0 -0
package/main.d.ts
CHANGED
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.
|
|
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":"
|
|
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"}
|
package/testing/test-utils.d.ts
CHANGED
|
@@ -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?:
|
|
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":"
|
|
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
|
-
|
|
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:
|
|
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
|
package/types/cards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/types/cards.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAEnD,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,
|
|
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,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,WAAW,EAAE,CAAC;IAC3B,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC;IACrB,IAAI,EAAE,YAAY,CAAC;CACpB,CAAC"}
|
/package/features/connector-cards/components/card-list/{__test__ → __tests__}/card-list.test.d.ts
RENAMED
|
File without changes
|