@heartlandone/vega-react 2.6.0 → 2.8.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.
@@ -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>>;
@@ -60,6 +61,8 @@ export declare const VegaRadio: import("react").ForwardRefExoticComponent<JSX.Ve
60
61
  export declare const VegaRadioGroup: import("react").ForwardRefExoticComponent<JSX.VegaRadioGroup & Omit<import("react").HTMLAttributes<HTMLVegaRadioGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaRadioGroupElement>>;
61
62
  export declare const VegaSectionTitle: import("react").ForwardRefExoticComponent<JSX.VegaSectionTitle & Omit<import("react").HTMLAttributes<HTMLVegaSectionTitleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaSectionTitleElement>>;
62
63
  export declare const VegaSegmentControl: import("react").ForwardRefExoticComponent<JSX.VegaSegmentControl & Omit<import("react").HTMLAttributes<HTMLVegaSegmentControlElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaSegmentControlElement>>;
64
+ export declare const VegaSelectionTile: import("react").ForwardRefExoticComponent<JSX.VegaSelectionTile & Omit<import("react").HTMLAttributes<HTMLVegaSelectionTileElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaSelectionTileElement>>;
65
+ export declare const VegaSelectionTileGroup: import("react").ForwardRefExoticComponent<JSX.VegaSelectionTileGroup & Omit<import("react").HTMLAttributes<HTMLVegaSelectionTileGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaSelectionTileGroupElement>>;
63
66
  export declare const VegaSlotContainer: import("react").ForwardRefExoticComponent<JSX.VegaSlotContainer & Omit<import("react").HTMLAttributes<HTMLVegaSlotContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaSlotContainerElement>>;
64
67
  export declare const VegaStepper: import("react").ForwardRefExoticComponent<JSX.VegaStepper & Omit<import("react").HTMLAttributes<HTMLVegaStepperElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaStepperElement>>;
65
68
  export declare const VegaTabGroup: import("react").ForwardRefExoticComponent<JSX.VegaTabGroup & Omit<import("react").HTMLAttributes<HTMLVegaTabGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLVegaTabGroupElement>>;
@@ -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');
@@ -66,6 +67,8 @@ export const VegaRadio = /*@__PURE__*/ createReactComponent('vega-radio');
66
67
  export const VegaRadioGroup = /*@__PURE__*/ createReactComponent('vega-radio-group');
67
68
  export const VegaSectionTitle = /*@__PURE__*/ createReactComponent('vega-section-title');
68
69
  export const VegaSegmentControl = /*@__PURE__*/ createReactComponent('vega-segment-control');
70
+ export const VegaSelectionTile = /*@__PURE__*/ createReactComponent('vega-selection-tile');
71
+ export const VegaSelectionTileGroup = /*@__PURE__*/ createReactComponent('vega-selection-tile-group');
69
72
  export const VegaSlotContainer = /*@__PURE__*/ createReactComponent('vega-slot-container');
70
73
  export const VegaStepper = /*@__PURE__*/ createReactComponent('vega-stepper');
71
74
  export const VegaTabGroup = /*@__PURE__*/ createReactComponent('vega-tab-group');
@@ -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 { waitFor } from "@testing-library/react";
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 waitFor(() => {
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.6.0",
4
+ "version": "2.8.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.6.0"
41
+ "@heartlandone/vega": "2.8.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=16.7.0",