@windstream/react-shared-components 0.1.55 → 0.1.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windstream/react-shared-components",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "type": "module",
5
5
  "description": "Shared React components for Kinetic applications",
6
6
  "main": "dist/index.js",
@@ -1,13 +1,19 @@
1
1
  "use client";
2
2
 
3
3
  import { forwardRef } from "react";
4
- import NextJsImage, {
4
+ import NextJsImageImport, {
5
5
  type ImageLoaderProps,
6
6
  type ImageProps as NextImageProps,
7
7
  } from "next/image";
8
8
 
9
9
  import { cx } from "@shared/utils";
10
10
 
11
+ // Handle CJS/ESM interop: next/image default export may be wrapped as { default: ... }
12
+ const NextJsImage =
13
+ typeof (NextJsImageImport as any).default === "function"
14
+ ? (NextJsImageImport as any).default
15
+ : NextJsImageImport;
16
+
11
17
  export interface NextImageComponentProps extends NextImageProps {
12
18
  className?: string;
13
19
  }