@windstream/react-shared-components 0.1.59 → 0.1.60

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.ts CHANGED
@@ -63,7 +63,7 @@ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAtt
63
63
  size?: "slim" | "medium" | "large" | undefined;
64
64
  label?: string | undefined;
65
65
  errorText?: string | undefined;
66
- prefixIconName?: "location_on" | "search" | undefined;
66
+ prefixIconName?: "search" | "location_on" | undefined;
67
67
  prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
68
68
  prefixIconFill?: boolean | undefined;
69
69
  suffixIconFill?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windstream/react-shared-components",
3
- "version": "0.1.59",
3
+ "version": "0.1.60",
4
4
  "type": "module",
5
5
  "description": "Shared React components for Kinetic applications",
6
6
  "main": "dist/index.js",
@@ -1,15 +1,15 @@
1
1
  import React from "react";
2
2
  import { BlogCardProps } from "./types";
3
- import * as _NextImage from "next/image";
4
3
  import * as _NextLink from "next/link";
5
4
 
6
5
  // import { Button } from "@shared/components/button";
7
6
  import { MaterialIcon } from "@shared/components/material-icon";
8
7
  import { Text } from "@shared/components/text";
9
8
 
10
- // CJS/ESM interop: next/image and next/link export { default: Fn } in CJS context
11
- const Image = ((_NextImage as any).default ??
12
- _NextImage) as typeof import("next/image").default;
9
+ // CJS/ESM interop: next/link uses standard __esModule exports so this is safe.
10
+ // next/image is intentionally avoided — its image-external.js uses the
11
+ // `0 && (module.exports = {...})` tree-shaking hint which confuses webpack's
12
+ // CJS→ESM interop and causes "got: object" errors in consuming apps.
13
13
  const Link = ((_NextLink as any).default ??
14
14
  _NextLink) as typeof import("next/link").default;
15
15
 
@@ -41,13 +41,14 @@ export const BlogCard: React.FC<BlogCardProps> = ({
41
41
  <Link href={href} tabIndex={-1} aria-hidden="true" className="block">
42
42
  <div className="h-[232px] w-full flex-shrink-0 overflow-hidden bg-gray-100">
43
43
  {image ? (
44
- <Image
44
+ <img
45
45
  src={image.src}
46
46
  alt={image.alt}
47
47
  width={image.width}
48
48
  height={image.height}
49
+ loading="lazy"
50
+ decoding="async"
49
51
  className="h-full w-full object-cover transition-transform duration-300 hover:scale-[1.03]"
50
- sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"
51
52
  />
52
53
  ) : (
53
54
  <div