infographic-for-react 0.1.0 → 0.2.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/index.d.mts CHANGED
@@ -98,6 +98,8 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
98
98
  render(): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | null | undefined;
99
99
  }
100
100
 
101
+ declare function useInfographic(containerRef: React.RefObject<HTMLElement>, props: InfographicProps): InfographicRef;
102
+
101
103
  declare function useRenderer(containerRef: React.RefObject<HTMLElement>): {
102
104
  render: (options: Partial<InfographicOptions>) => Promise<void>;
103
105
  update: (options: Partial<InfographicOptions>) => void;
@@ -109,8 +111,6 @@ declare function useRenderer(containerRef: React.RefObject<HTMLElement>): {
109
111
  isReady: boolean;
110
112
  };
111
113
 
112
- declare function useInfographic(containerRef: React.RefObject<HTMLElement>, props: InfographicProps): InfographicRef;
113
-
114
114
  declare function applyOverrides(base: DSLObject, overrides: DSLOverride[]): DSLObject;
115
115
  declare function mergeDSL(dsl1: DSLObject, dsl2: DSLObject): DSLObject;
116
116
 
package/dist/index.d.ts CHANGED
@@ -98,6 +98,8 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
98
98
  render(): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | null | undefined;
99
99
  }
100
100
 
101
+ declare function useInfographic(containerRef: React.RefObject<HTMLElement>, props: InfographicProps): InfographicRef;
102
+
101
103
  declare function useRenderer(containerRef: React.RefObject<HTMLElement>): {
102
104
  render: (options: Partial<InfographicOptions>) => Promise<void>;
103
105
  update: (options: Partial<InfographicOptions>) => void;
@@ -109,8 +111,6 @@ declare function useRenderer(containerRef: React.RefObject<HTMLElement>): {
109
111
  isReady: boolean;
110
112
  };
111
113
 
112
- declare function useInfographic(containerRef: React.RefObject<HTMLElement>, props: InfographicProps): InfographicRef;
113
-
114
114
  declare function applyOverrides(base: DSLObject, overrides: DSLOverride[]): DSLObject;
115
115
  declare function mergeDSL(dsl1: DSLObject, dsl2: DSLObject): DSLObject;
116
116