@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/dist/contentful/index.esm.js +2 -2
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +2 -2
- package/dist/contentful/index.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/next/index.esm.js +1 -1
- package/dist/next/index.esm.js.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/next/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/next-image/index.tsx +7 -1
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import
|
|
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
|
}
|