@ssa-ui-kit/core 2.32.0-canary-d213a33-20251219 → 2.32.0-canary-6379a60-20251223
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.
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* React 19 compatibility wrapper for Nivo responsive components.
|
|
4
4
|
*
|
|
5
|
-
* @nivo
|
|
6
|
-
*
|
|
5
|
+
* @nivo components can be received as module objects instead of functions due to
|
|
6
|
+
* CommonJS/ESM interop issues. This wrapper detects and unwraps such objects,
|
|
7
|
+
* then creates a functional component wrapper.
|
|
7
8
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* By returning the component unchanged, we let the consuming application's
|
|
14
|
-
* bundler resolve the module correctly and avoid CommonJS/ESM interop issues.
|
|
9
|
+
* The unwrapping process checks for:
|
|
10
|
+
* - .default export (CommonJS/ESM default export)
|
|
11
|
+
* - .ResponsiveWrapper property (Nivo's internal wrapper)
|
|
12
|
+
* - Direct function component
|
|
15
13
|
*
|
|
16
14
|
* @param Component - The Nivo responsive component (e.g., ResponsiveLine, ResponsivePie)
|
|
17
|
-
* @param displayName -
|
|
18
|
-
* @returns
|
|
15
|
+
* @param displayName - Display name for debugging in React DevTools
|
|
16
|
+
* @returns A React 19 compatible functional component
|
|
19
17
|
*/
|
|
20
|
-
export declare function wrapNivoResponsiveComponent<T extends
|
|
18
|
+
export declare function wrapNivoResponsiveComponent<T extends ComponentType<any>>(Component: T, displayName?: string): T;
|
|
@@ -8,7 +8,4 @@ export type FullscreenModeContextType = {
|
|
|
8
8
|
export declare const FullscreenModeContext: import("react").Context<FullscreenModeContextType>;
|
|
9
9
|
export declare const FullscreenModeProvider: ({ children, }: React.PropsWithChildren) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare const useFullscreenMode: () => FullscreenModeContextType;
|
|
11
|
-
export declare const WithFullscreenMode: <T extends object>(Component: React.ComponentType<T>, rest?: Parameters<typeof FullscreenModeProvider>[0]) =>
|
|
12
|
-
(props: T): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
11
|
+
export declare const WithFullscreenMode: <T extends object>(Component: React.ComponentType<T>, rest?: Parameters<typeof FullscreenModeProvider>[0]) => React.ComponentType<T>;
|