@heartlandone/vega-react 2.7.0 → 2.9.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/dist/components.d.ts +1 -0
- package/dist/components.js +1 -0
- package/dist/testing/utils.js +2 -11
- package/package.json +2 -2
package/dist/components.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const VegaAccordion: import("react").ForwardRefExoticComponent<JS
|
|
|
4
4
|
export declare const VegaAppFooter: import("react").ForwardRefExoticComponent<JSX.VegaAppFooter & Omit<import("react").HTMLAttributes<HTMLVegaAppFooterElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaAppFooterElement>>;
|
|
5
5
|
export declare const VegaAppHeaderButton: import("react").ForwardRefExoticComponent<JSX.VegaAppHeaderButton & Omit<import("react").HTMLAttributes<HTMLVegaAppHeaderButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaAppHeaderButtonElement>>;
|
|
6
6
|
export declare const VegaBackdrop: import("react").ForwardRefExoticComponent<JSX.VegaBackdrop & Omit<import("react").HTMLAttributes<HTMLVegaBackdropElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaBackdropElement>>;
|
|
7
|
+
export declare const VegaBanner: import("react").ForwardRefExoticComponent<JSX.VegaBanner & Omit<import("react").HTMLAttributes<HTMLVegaBannerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaBannerElement>>;
|
|
7
8
|
export declare const VegaBarChart: import("react").ForwardRefExoticComponent<JSX.VegaBarChart & Omit<import("react").HTMLAttributes<HTMLVegaBarChartElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaBarChartElement>>;
|
|
8
9
|
export declare const VegaBox: import("react").ForwardRefExoticComponent<JSX.VegaBox & Omit<import("react").HTMLAttributes<HTMLVegaBoxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaBoxElement>>;
|
|
9
10
|
export declare const VegaBreadcrumb: import("react").ForwardRefExoticComponent<JSX.VegaBreadcrumb & Omit<import("react").HTMLAttributes<HTMLVegaBreadcrumbElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaBreadcrumbElement>>;
|
package/dist/components.js
CHANGED
|
@@ -10,6 +10,7 @@ export const VegaAccordion = /*@__PURE__*/ createReactComponent('vega-accordion'
|
|
|
10
10
|
export const VegaAppFooter = /*@__PURE__*/ createReactComponent('vega-app-footer');
|
|
11
11
|
export const VegaAppHeaderButton = /*@__PURE__*/ createReactComponent('vega-app-header-button');
|
|
12
12
|
export const VegaBackdrop = /*@__PURE__*/ createReactComponent('vega-backdrop');
|
|
13
|
+
export const VegaBanner = /*@__PURE__*/ createReactComponent('vega-banner');
|
|
13
14
|
export const VegaBarChart = /*@__PURE__*/ createReactComponent('vega-bar-chart');
|
|
14
15
|
export const VegaBox = /*@__PURE__*/ createReactComponent('vega-box');
|
|
15
16
|
export const VegaBreadcrumb = /*@__PURE__*/ createReactComponent('vega-breadcrumb');
|
package/dist/testing/utils.js
CHANGED
|
@@ -7,19 +7,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
10
|
+
import { waitForVega } from "@heartlandone/vega";
|
|
11
11
|
export function waitForVegaReady(renderResult, delay = 300) {
|
|
12
12
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13
|
-
yield
|
|
14
|
-
renderResult.baseElement
|
|
15
|
-
.querySelectorAll("*:not(.hydrated)")
|
|
16
|
-
// eslint-disable-next-line unicorn/no-array-for-each
|
|
17
|
-
.forEach((element) => {
|
|
18
|
-
if (element.tagName.startsWith("VEGA")) {
|
|
19
|
-
throw new Error("Vega component is not rendered yet, retrying...");
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
});
|
|
13
|
+
yield waitForVega();
|
|
23
14
|
/*
|
|
24
15
|
* The following code is added to load the vega component, and the attribute value is set after each component is loaded.
|
|
25
16
|
* To determine whether there is a hydrated style that cannot meet the requirements after the component is loaded,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heartlandone/vega-react",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.9.0",
|
|
5
5
|
"description": "React specific wrapper for @heartlandone/vega",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"stencil-postbuild": "node ./src/scripts/stencil-post-build-script.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"typescript": "^4.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@heartlandone/vega": "2.
|
|
41
|
+
"@heartlandone/vega": "2.9.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=16.7.0",
|