@statisticsfinland/pxvisualizer 1.0.8-d.3 → 1.0.8-d.5

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,4 +4,3 @@ export declare const Translations: TTranslations;
4
4
  export declare const ArrayTranslations: TArrayTranslations;
5
5
  export declare const GetAllLanguages: () => string[];
6
6
  export declare function AddTranslations(newTranslations: TTranslationPackage): void;
7
- export default Translations;
@@ -6,7 +6,7 @@ interface IErrorBoundaryProps {
6
6
  fallback: ReactNode;
7
7
  children: ReactNode;
8
8
  }
9
- declare class ErrorBoundary extends Component<IErrorBoundaryProps, IErrorBoundaryState> {
9
+ export declare class ErrorBoundary extends Component<IErrorBoundaryProps, IErrorBoundaryState> {
10
10
  constructor(props: IErrorBoundaryProps);
11
11
  static getDerivedStateFromError(): {
12
12
  hasError: boolean;
@@ -14,4 +14,4 @@ declare class ErrorBoundary extends Component<IErrorBoundaryProps, IErrorBoundar
14
14
  componentDidCatch(error: Error, info: ErrorInfo): void;
15
15
  render(): ReactNode;
16
16
  }
17
- export default ErrorBoundary;
17
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ErrorBoundary';
@@ -31,4 +31,4 @@ export declare function calculateExportDimensions(chartRef: HighchartsReactRefOb
31
31
  finalHeight: number;
32
32
  };
33
33
  export declare const BurgerMenu: React.FC<IBurgerMenuProps>;
34
- export default BurgerMenu;
34
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './burgerMenu';
2
+ export * from './menuItem';
@@ -0,0 +1 @@
1
+ export * from './menuItem';
@@ -14,4 +14,3 @@ export interface IMenuItemProps {
14
14
  isLast?: boolean;
15
15
  }
16
16
  export declare const MenuItem: React.FC<IMenuItemProps>;
17
- export default MenuItem;
@@ -15,5 +15,4 @@ export interface IChartProps {
15
15
  showTableSources?: boolean;
16
16
  footnote?: string;
17
17
  }
18
- declare const Chart: React.FC<IChartProps>;
19
- export default Chart;
18
+ export declare const Chart: React.FC<IChartProps>;
@@ -1 +1 @@
1
- export { default } from './chart';
1
+ export * from './chart';
@@ -1,2 +1 @@
1
- declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
2
- export default GlobalStyle;
1
+ export declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
@@ -1 +1 @@
1
- export { default } from './globalStyle';
1
+ export * from './globalStyle';
@@ -4,5 +4,5 @@ interface IIconProps {
4
4
  icon: TIcon;
5
5
  inheritColor?: boolean;
6
6
  }
7
- declare const Icon: React.FC<IIconProps>;
8
- export default Icon;
7
+ export declare const Icon: React.FC<IIconProps>;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from './icon';
@@ -1 +1,5 @@
1
- export { default as Chart } from "./chart";
1
+ export * from "./chart";
2
+ export * from "./ErrorBoundary";
3
+ export * from "./globalStyle";
4
+ export * from "./icon";
5
+ export * from "./burgerMenu";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statisticsfinland/pxvisualizer",
3
- "version": "1.0.8-d.3",
3
+ "version": "1.0.8-d.5",
4
4
  "description": "Component library for visualizing PxGraf data",
5
5
  "main": "./dist/pxv.cjs",
6
6
  "jestSonar": {
@@ -15,7 +15,8 @@
15
15
  "source": "src/index.ts",
16
16
  "exports": {
17
17
  "require": "./dist/pxv.cjs",
18
- "default": "./dist/pxv.modern.js"
18
+ "default": "./dist/pxv.modern.js",
19
+ "types": "./dist/types/index.d.ts"
19
20
  },
20
21
  "files": [
21
22
  "dist"