wpheadless-lib 1.1.10 → 1.1.11

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.
Files changed (119) hide show
  1. package/dist/api/categories.d.ts +1 -1
  2. package/dist/api/categories.js +18 -2
  3. package/dist/api/index.d.ts +7 -6
  4. package/dist/api/index.js +7 -6
  5. package/dist/api/mappers.d.ts +1 -1
  6. package/dist/api/mappers.js +1 -1
  7. package/dist/api/menus.d.ts +18 -0
  8. package/dist/api/menus.js +39 -0
  9. package/dist/api/posts.js +30 -2
  10. package/dist/api/translations.js +7 -1
  11. package/dist/api/wpClient.d.ts +5 -8
  12. package/dist/api/wpClient.js +14 -0
  13. package/dist/app/config.d.ts +2 -1
  14. package/dist/app/config.js +4 -0
  15. package/dist/app/globals.css +33 -121
  16. package/dist/base/category/index.d.ts +3 -3
  17. package/dist/base/category/index.js +9 -8
  18. package/dist/base/category/pagination.d.ts +2 -2
  19. package/dist/base/category/pagination.js +12 -10
  20. package/dist/base/home/index.js +1 -1
  21. package/dist/base/home/pagination.js +3 -3
  22. package/dist/base/index.d.ts +7 -7
  23. package/dist/base/index.js +7 -7
  24. package/dist/base/layout/RootLayoutBase.d.ts +6 -7
  25. package/dist/base/layout/RootLayoutBase.js +4 -4
  26. package/dist/base/layout/RootLayoutBase.module.css +10 -0
  27. package/dist/base/legal/index.d.ts +4 -4
  28. package/dist/base/legal/index.js +36 -24
  29. package/dist/base/post/index.d.ts +1 -1
  30. package/dist/base/post/index.js +15 -12
  31. package/dist/components/Breadcrumbs/index.js +4 -4
  32. package/dist/components/JsonLd.d.ts +5 -0
  33. package/dist/components/JsonLd.js +9 -0
  34. package/dist/components/Paginator/index.d.ts +1 -1
  35. package/dist/components/Paginator/index.js +5 -5
  36. package/dist/components/PostCard/index.d.ts +3 -2
  37. package/dist/components/PostCard/index.js +8 -6
  38. package/dist/components/PostCard/index.module.css +7 -7
  39. package/dist/components/PostCard/index.types.d.ts +2 -1
  40. package/dist/components/PostCard/index.utils.d.ts +5 -5
  41. package/dist/components/PostCard/index.utils.js +8 -6
  42. package/dist/components/index.d.ts +6 -5
  43. package/dist/components/index.js +6 -5
  44. package/dist/components/layout/Footer/index.d.ts +5 -5
  45. package/dist/components/layout/Footer/index.js +11 -22
  46. package/dist/components/layout/Footer/index.module.css +59 -9
  47. package/dist/components/layout/Header/HeaderClient.d.ts +1 -1
  48. package/dist/components/layout/Header/HeaderClient.js +22 -2
  49. package/dist/components/layout/Header/index.d.ts +5 -5
  50. package/dist/components/layout/Header/index.js +10 -29
  51. package/dist/components/layout/Header/index.module.css +77 -16
  52. package/dist/components/ui/alert.d.ts +8 -0
  53. package/dist/components/ui/alert.js +12 -0
  54. package/dist/components/ui/alert.module.css +26 -0
  55. package/dist/components/ui/badge.d.ts +3 -0
  56. package/dist/components/ui/badge.js +9 -0
  57. package/dist/components/ui/badge.module.css +23 -0
  58. package/dist/components/ui/breadcrumb.d.ts +8 -0
  59. package/dist/components/ui/breadcrumb.js +22 -0
  60. package/dist/components/ui/breadcrumb.module.css +37 -0
  61. package/dist/components/ui/button.d.ts +7 -0
  62. package/dist/components/ui/button.js +16 -0
  63. package/dist/components/ui/button.module.css +72 -0
  64. package/dist/components/ui/card.d.ts +11 -0
  65. package/dist/components/ui/card.js +16 -0
  66. package/dist/components/ui/card.module.css +37 -0
  67. package/dist/components/ui/cn.d.ts +1 -0
  68. package/dist/components/ui/cn.js +3 -0
  69. package/dist/components/ui/index.d.ts +6 -0
  70. package/dist/components/ui/index.js +6 -0
  71. package/dist/components/ui/pagination.d.ts +14 -0
  72. package/dist/components/ui/pagination.js +25 -0
  73. package/dist/components/ui/pagination.module.css +62 -0
  74. package/dist/index.d.ts +6 -6
  75. package/dist/index.js +6 -6
  76. package/dist/plugins/index.d.ts +1 -1
  77. package/dist/plugins/index.js +1 -1
  78. package/dist/plugins/yoast/index.js +10 -7
  79. package/dist/utils/hreflang.d.ts +4 -7
  80. package/dist/utils/hreflang.js +11 -6
  81. package/dist/utils/html.d.ts +2 -0
  82. package/dist/utils/html.js +25 -0
  83. package/dist/utils/index.d.ts +7 -6
  84. package/dist/utils/index.js +7 -6
  85. package/dist/utils/language.d.ts +37 -0
  86. package/dist/utils/language.js +75 -0
  87. package/dist/utils/seo.d.ts +1 -6
  88. package/dist/utils/seo.js +9 -5
  89. package/dist/utils/sitemap.d.ts +1 -1
  90. package/dist/utils/sitemap.js +107 -56
  91. package/dist/views/CategoryListView/index.d.ts +1 -1
  92. package/dist/views/CategoryListView/index.js +6 -6
  93. package/dist/views/CategoryListView/index.utils.d.ts +1 -1
  94. package/dist/views/CategoryListView/index.utils.js +1 -1
  95. package/dist/views/CategoryPaginationView/index.d.ts +1 -1
  96. package/dist/views/CategoryPaginationView/index.js +6 -6
  97. package/dist/views/CategoryPaginationView/index.utils.d.ts +1 -1
  98. package/dist/views/CategoryPaginationView/index.utils.js +1 -1
  99. package/dist/views/HomePaginationView/index.d.ts +1 -1
  100. package/dist/views/HomePaginationView/index.js +5 -4
  101. package/dist/views/HomePaginationView/index.utils.d.ts +1 -1
  102. package/dist/views/HomePaginationView/index.utils.js +1 -1
  103. package/dist/views/HomeView/index.d.ts +1 -1
  104. package/dist/views/HomeView/index.js +13 -12
  105. package/dist/views/HomeView/index.module.css +51 -8
  106. package/dist/views/HomeView/index.utils.d.ts +1 -1
  107. package/dist/views/HomeView/index.utils.js +2 -2
  108. package/dist/views/LegalPageView/index.d.ts +2 -1
  109. package/dist/views/LegalPageView/index.js +5 -5
  110. package/dist/views/LegalPageView/index.module.css +3 -3
  111. package/dist/views/LegalPageView/index.utils.js +1 -1
  112. package/dist/views/PostView/index.d.ts +3 -2
  113. package/dist/views/PostView/index.js +9 -7
  114. package/dist/views/PostView/index.module.css +46 -13
  115. package/dist/views/PostView/index.utils.d.ts +3 -3
  116. package/dist/views/PostView/index.utils.js +2 -2
  117. package/dist/views/index.d.ts +6 -6
  118. package/dist/views/index.js +6 -6
  119. package/package.json +47 -10
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Image from "next/image";
3
3
  import styles from "./index.module.css";
4
- import { getLegalContent, getLegalImage } from "./index.utils";
5
- import { Breadcrumbs } from "../../components";
6
- import { stripTags } from "../../utils";
7
- export function LegalPageView({ page, homeHref }) {
4
+ import { getLegalContent, getLegalImage } from "./index.utils.js";
5
+ import { Breadcrumbs, JsonLd } from "../../components/index.js";
6
+ import { getYoastSchema, stripTags } from "../../utils/index.js";
7
+ export function LegalPageView({ page, homeHref, priorityImage = true, }) {
8
8
  const featuredImage = getLegalImage(page);
9
9
  const { titleHtml, contentHtml } = getLegalContent(page);
10
10
  const titleText = stripTags(titleHtml) || titleHtml;
11
- return (_jsxs("article", { className: styles.article, children: [_jsx(Breadcrumbs, { items: [{ label: "Home", href: homeHref }, { label: titleText }] }), featuredImage && (_jsx("div", { className: styles.imageWrapper, children: _jsx(Image, { src: featuredImage.src, alt: featuredImage.alt, width: featuredImage.width, height: featuredImage.height, className: styles.image, priority: true }) })), _jsx("h1", { dangerouslySetInnerHTML: { __html: titleHtml }, className: styles.title }), _jsx("div", { dangerouslySetInnerHTML: { __html: contentHtml }, className: `post-content ${styles.content}` })] }));
11
+ return (_jsxs("article", { className: styles.article, children: [_jsx(JsonLd, { data: getYoastSchema(page) }), _jsx(Breadcrumbs, { items: [{ label: "Home", href: homeHref }, { label: titleText }] }), featuredImage && (_jsx("div", { className: styles.imageWrapper, children: _jsx(Image, { src: featuredImage.src, alt: featuredImage.alt, width: featuredImage.width, height: featuredImage.height, className: styles.image, priority: priorityImage }) })), _jsx("h1", { dangerouslySetInnerHTML: { __html: titleHtml }, className: styles.title }), _jsx("div", { dangerouslySetInnerHTML: { __html: contentHtml }, className: `post-content ${styles.content}` })] }));
12
12
  }
@@ -1,7 +1,7 @@
1
1
  .article {
2
- max-width: 800px;
3
- margin: 0 auto;
4
- padding: 2rem;
2
+ width: 100%;
3
+ padding-top: var(--spacing-xl);
4
+ padding-bottom: var(--spacing-xl);
5
5
  }
6
6
 
7
7
  .imageWrapper {
@@ -1,4 +1,4 @@
1
- import { getFeaturedMedia, stripTags } from "../../utils";
1
+ import { getFeaturedMedia, stripTags } from "../../utils/index.js";
2
2
  export const getLegalImage = (page) => {
3
3
  const media = getFeaturedMedia(page);
4
4
  if (!media?.source_url)
@@ -1,5 +1,5 @@
1
1
  import { type WPPost } from "wpjsapi-lib";
2
- import { type Locale } from "../../utils";
2
+ import { type Locale } from "../../utils/index.js";
3
3
  type PostViewProps = {
4
4
  post: WPPost;
5
5
  dateLocale?: string;
@@ -7,6 +7,7 @@ type PostViewProps = {
7
7
  locale?: Locale;
8
8
  authorDescription?: string | null;
9
9
  disclaimer?: string;
10
+ priorityImage?: boolean;
10
11
  };
11
- export declare function PostView({ post, dateLocale, categoryBasePath, locale, authorDescription, disclaimer, }: PostViewProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function PostView({ post, dateLocale, categoryBasePath, locale, authorDescription, disclaimer, priorityImage, }: PostViewProps): import("react/jsx-runtime").JSX.Element;
12
13
  export {};
@@ -1,15 +1,17 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Image from "next/image";
3
+ import Link from "next/link";
3
4
  import styles from "./index.module.css";
4
- import { getTranslator } from "../../utils";
5
- import { Breadcrumbs } from "../../components";
6
- import { buildCategoryUrl, formatPublishedDate, getAuthor, getFeaturedImage, getPrimaryCategory, } from "./index.utils";
7
- import { stripTags } from "../../utils";
5
+ import { getTranslator, getYoastSchema } from "../../utils/index.js";
6
+ import { Breadcrumbs, JsonLd } from "../../components/index.js";
7
+ import { buildCategoryUrl, formatPublishedDate, getAuthor, getFeaturedImage, getPrimaryCategory, } from "./index.utils.js";
8
+ import { stripTags } from "../../utils/index.js";
9
+ import { Alert, badgeClassName, Card, CardContent } from "../../components/ui/index.js";
8
10
  function truncateLabel(label, max = 20) {
9
11
  const trimmed = label.trim();
10
- return trimmed.length > max ? `${trimmed.slice(0, max)}...` : trimmed;
12
+ return trimmed.length > max ? `${trimmed.slice(0, max)}…` : trimmed;
11
13
  }
12
- export function PostView({ post, dateLocale = "en-US", categoryBasePath = "/", locale, authorDescription, disclaimer, }) {
14
+ export function PostView({ post, dateLocale = "en-US", categoryBasePath = "/", locale, authorDescription, disclaimer, priorityImage = true, }) {
13
15
  const t = getTranslator(locale);
14
16
  const author = getAuthor(post);
15
17
  const authorBio = authorDescription ?? author?.description;
@@ -27,5 +29,5 @@ export function PostView({ post, dateLocale = "en-US", categoryBasePath = "/", l
27
29
  { label: "Home", href: categoryBasePath },
28
30
  { label: stripTags(post.title.rendered) || post.title.rendered },
29
31
  ];
30
- return (_jsx("div", { className: `container ${styles.container}`, children: _jsxs("article", { className: styles.article, children: [_jsx(Breadcrumbs, { items: breadcrumbs }), _jsx("header", { className: styles.postHeader, children: _jsx("h1", { dangerouslySetInnerHTML: { __html: post.title.rendered }, className: styles.title }) }), featuredImage && (_jsxs("figure", { className: styles.figure, children: [primaryCategory && (_jsx("div", { className: styles.badgeOverlay, children: categoryUrl ? (_jsx("a", { href: categoryUrl, className: "badge", title: primaryCategory.name, children: truncateLabel(primaryCategory.name, 20) })) : (_jsx("span", { className: "badge", title: primaryCategory.name, children: truncateLabel(primaryCategory.name, 20) })) })), _jsx(Image, { src: featuredImage.src, alt: featuredImage.alt, width: featuredImage.width, height: featuredImage.height, className: styles.image, priority: true, sizes: "(max-width: 900px) 100vw, 900px" })] })), _jsxs("div", { className: styles.meta, children: [author && (_jsx("span", { className: styles.authorLabel, children: t("post.authorPrefix", { name: author.name }) })), _jsx("span", { children: "\u2022" }), _jsx("time", { dateTime: post.date, children: publishedDate })] }), _jsx("div", { dangerouslySetInnerHTML: { __html: post.content.rendered }, className: `post-content ${styles.content}` }), disclaimer && (_jsx("div", { className: styles.disclaimer, role: "note", children: disclaimer })), author && (_jsx("aside", { className: `card ${styles.authorCard}`, children: _jsxs("address", { className: styles.authorAddress, children: [_jsx("strong", { className: styles.authorName, children: author.name }), authorBio && (_jsx("p", { className: styles.authorBio, children: authorBio }))] }) }))] }) }));
32
+ return (_jsxs("div", { className: styles.container, children: [_jsx(JsonLd, { data: getYoastSchema(post) }), _jsxs("article", { className: styles.article, children: [_jsx(Breadcrumbs, { items: breadcrumbs }), featuredImage && (_jsxs("figure", { className: styles.figure, children: [_jsx(Image, { src: featuredImage.src, alt: featuredImage.alt, fill: true, className: styles.image, priority: priorityImage, sizes: "(max-width: 1200px) 100vw, 1200px" }), _jsx("div", { className: styles.heroOverlay, "aria-hidden": "true" }), primaryCategory && (_jsx("div", { className: styles.badgeOverlay, children: categoryUrl ? (_jsx(Link, { href: categoryUrl, className: badgeClassName(), title: primaryCategory.name, children: truncateLabel(primaryCategory.name, 20) })) : (_jsx("span", { className: badgeClassName(), title: primaryCategory.name, children: truncateLabel(primaryCategory.name, 20) })) })), _jsx("h1", { dangerouslySetInnerHTML: { __html: post.title.rendered }, className: `${styles.title} ${styles.heroTitle}` })] })), !featuredImage && (_jsx("header", { className: styles.postHeader, children: _jsx("h1", { dangerouslySetInnerHTML: { __html: post.title.rendered }, className: styles.title }) })), _jsxs("div", { className: styles.meta, children: [author && (_jsx("span", { className: styles.authorLabel, children: t("post.authorPrefix", { name: author.name }) })), _jsx("span", { children: "\u2022" }), _jsx("time", { dateTime: post.date, children: publishedDate })] }), _jsx("div", { dangerouslySetInnerHTML: { __html: post.content.rendered }, className: `post-content ${styles.content}` }), disclaimer && (_jsx(Alert, { className: styles.disclaimer, role: "note", children: disclaimer })), author && (_jsx(Card, { as: "aside", className: styles.authorCard, size: "sm", children: _jsx(CardContent, { children: _jsxs("address", { className: styles.authorAddress, children: [_jsx("strong", { className: styles.authorName, children: author.name }), authorBio && _jsx("p", { className: styles.authorBio, children: authorBio })] }) }) }))] })] }));
31
33
  }
@@ -1,18 +1,17 @@
1
1
  .container {
2
- padding-top: var(--spacing-sm);
2
+ padding-top: var(--spacing-xl);
3
3
  padding-bottom: var(--spacing-xl);
4
4
  }
5
5
 
6
6
  .article {
7
- max-width: 900px;
8
- margin: 0 auto;
7
+ width: 100%;
9
8
  }
10
9
 
11
10
  .badgeOverlay {
12
11
  position: absolute;
13
- bottom: 25px;
14
- left: 15px;
15
- z-index: 2;
12
+ top: clamp(1rem, 3vw, 1.5rem);
13
+ left: clamp(1rem, 3vw, 1.5rem);
14
+ z-index: 3;
16
15
  box-shadow: 0 6px 16px var(--shadow);
17
16
  }
18
17
 
@@ -24,6 +23,17 @@
24
23
  margin-bottom: var(--spacing-sm);
25
24
  }
26
25
 
26
+ .heroTitle {
27
+ position: relative;
28
+ z-index: 3;
29
+ align-self: end;
30
+ max-width: min(980px, 100%);
31
+ margin: 0;
32
+ color: #ffffff;
33
+ text-wrap: balance;
34
+ text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
35
+ }
36
+
27
37
  .meta {
28
38
  display: flex;
29
39
  align-items: center;
@@ -47,13 +57,39 @@
47
57
  .figure {
48
58
  margin-bottom: var(--spacing-xs);
49
59
  position: relative;
60
+ display: grid;
61
+ min-height: clamp(13rem, 18vw, 20rem);
62
+ padding: clamp(4.5rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem)
63
+ clamp(1.25rem, 4vw, 3rem);
64
+ overflow: hidden;
65
+ border-radius: 12px;
66
+ isolation: isolate;
50
67
  }
51
68
 
52
69
  .image {
53
- width: 100%;
54
- height: auto;
55
- border-radius: 12px;
56
- box-shadow: 0 4px 12px var(--shadow);
70
+ object-fit: cover;
71
+ z-index: 1;
72
+ }
73
+
74
+ .heroOverlay {
75
+ position: absolute;
76
+ inset: 0;
77
+ z-index: 2;
78
+ background:
79
+ linear-gradient(
80
+ 16deg,
81
+ rgba(0, 0, 0, 0.82) 0%,
82
+ rgba(0, 0, 0, 0.68) 34%,
83
+ rgba(0, 0, 0, 0.34) 58%,
84
+ rgba(0, 0, 0, 0.06) 82%
85
+ ),
86
+ linear-gradient(
87
+ 0deg,
88
+ rgba(0, 0, 0, 0.62) 0%,
89
+ rgba(0, 0, 0, 0.12) 46%,
90
+ transparent 100%
91
+ );
92
+ pointer-events: none;
57
93
  }
58
94
 
59
95
  .content {
@@ -76,10 +112,7 @@
76
112
 
77
113
  .authorCard {
78
114
  margin-top: var(--spacing-lg);
79
- margin-left: auto;
80
- margin-right: auto;
81
115
  padding: var(--spacing-md) var(--spacing-lg);
82
- max-width: 720px;
83
116
  background: rgba(255, 255, 255, 0.03);
84
117
  border: 1px solid var(--border);
85
118
  box-shadow: 0 6px 18px var(--shadow);
@@ -1,7 +1,7 @@
1
1
  import type { WPPost } from "wpjsapi-lib";
2
- import { type Locale } from "../../utils";
3
- import type { EmbeddedAuthor } from "./index.types";
4
- import type { EmbeddedCategory } from "../../api";
2
+ import { type Locale } from "../../utils/index.js";
3
+ import type { EmbeddedAuthor } from "./index.types.js";
4
+ import type { EmbeddedCategory } from "../../api/index.js";
5
5
  export declare const getCategories: (post: WPPost) => EmbeddedCategory[];
6
6
  export declare const getPrimaryCategory: (post: WPPost) => EmbeddedCategory | undefined;
7
7
  export declare const buildCategoryUrl: (basePath: string, slug?: string) => string | null;
@@ -1,5 +1,5 @@
1
- import { ensureTrailingSlash, getFeaturedMedia, getTranslator, stripTags, } from "../../utils";
2
- import { formatPostDate } from "../../components/PostCard/index.utils";
1
+ import { ensureTrailingSlash, getFeaturedMedia, getTranslator, stripTags, } from "../../utils/index.js";
2
+ import { formatPostDate } from "../../components/PostCard/index.utils.js";
3
3
  export const getCategories = (post) => (post._embedded?.["wp:term"]?.[0] || []).filter(Boolean);
4
4
  export const getPrimaryCategory = (post) => getCategories(post)[0];
5
5
  export const buildCategoryUrl = (basePath, slug) => slug
@@ -1,6 +1,6 @@
1
- export * from "./HomeView";
2
- export * from "./HomePaginationView";
3
- export * from "./CategoryListView";
4
- export * from "./CategoryPaginationView";
5
- export * from "./PostView";
6
- export * from "./LegalPageView";
1
+ export * from "./HomeView/index.js";
2
+ export * from "./HomePaginationView/index.js";
3
+ export * from "./CategoryListView/index.js";
4
+ export * from "./CategoryPaginationView/index.js";
5
+ export * from "./PostView/index.js";
6
+ export * from "./LegalPageView/index.js";
@@ -1,6 +1,6 @@
1
- export * from "./HomeView";
2
- export * from "./HomePaginationView";
3
- export * from "./CategoryListView";
4
- export * from "./CategoryPaginationView";
5
- export * from "./PostView";
6
- export * from "./LegalPageView";
1
+ export * from "./HomeView/index.js";
2
+ export * from "./HomePaginationView/index.js";
3
+ export * from "./CategoryListView/index.js";
4
+ export * from "./CategoryPaginationView/index.js";
5
+ export * from "./PostView/index.js";
6
+ export * from "./LegalPageView/index.js";
package/package.json CHANGED
@@ -1,45 +1,82 @@
1
1
  {
2
2
  "name": "wpheadless-lib",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
9
9
  "scripts": {
10
- "build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json && pnpm run copy:assets",
10
+ "build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json -f && node ./scripts/copy-assets.mjs",
11
11
  "copy:assets": "node ./scripts/copy-assets.mjs",
12
- "prepublishOnly": "npm run build",
13
- "prepare": "npm run build"
12
+ "prepublishOnly": "npm run build"
14
13
  },
15
14
  "files": [
16
15
  "dist"
17
16
  ],
17
+ "engines": {
18
+ "node": ">=24.11.0 <25",
19
+ "npm": ">=11"
20
+ },
18
21
  "sideEffects": [
19
22
  "**/*.css"
20
23
  ],
21
24
  "exports": {
22
25
  ".": {
23
26
  "import": "./dist/index.js",
24
- "types": "./dist/index.d.ts"
27
+ "types": "./dist/index.d.ts",
28
+ "default": "./dist/index.js"
29
+ },
30
+ "./api": {
31
+ "import": "./dist/api/index.js",
32
+ "types": "./dist/api/index.d.ts",
33
+ "default": "./dist/api/index.js"
34
+ },
35
+ "./base": {
36
+ "import": "./dist/base/index.js",
37
+ "types": "./dist/base/index.d.ts",
38
+ "default": "./dist/base/index.js"
39
+ },
40
+ "./components": {
41
+ "import": "./dist/components/index.js",
42
+ "types": "./dist/components/index.d.ts",
43
+ "default": "./dist/components/index.js"
44
+ },
45
+ "./plugins": {
46
+ "import": "./dist/plugins/index.js",
47
+ "types": "./dist/plugins/index.d.ts",
48
+ "default": "./dist/plugins/index.js"
49
+ },
50
+ "./utils": {
51
+ "import": "./dist/utils/index.js",
52
+ "types": "./dist/utils/index.d.ts",
53
+ "default": "./dist/utils/index.js"
54
+ },
55
+ "./views": {
56
+ "import": "./dist/views/index.js",
57
+ "types": "./dist/views/index.d.ts",
58
+ "default": "./dist/views/index.js"
25
59
  }
26
60
  },
27
61
  "dependencies": {
28
- "wpjsapi-lib": "3.1.1"
62
+ "wpjsapi-lib": "^3.1.2"
29
63
  },
30
64
  "devDependencies": {
31
65
  "@types/node": "^20",
32
66
  "@types/react": "^19",
33
67
  "@types/react-dom": "^19",
34
- "next": "^16.0.3",
35
- "react": "^19",
36
- "react-dom": "^19",
68
+ "next": "16.2.6",
69
+ "react": "19.2.6",
70
+ "react-dom": "19.2.6",
37
71
  "tsc-alias": "^1.8.10",
38
72
  "typescript": "^5.9.3"
39
73
  },
40
74
  "peerDependencies": {
41
- "next": "16.0.3",
75
+ "next": "^16.2.6",
42
76
  "react": "^19",
43
77
  "react-dom": "^19"
78
+ },
79
+ "overrides": {
80
+ "postcss": "^8.5.14"
44
81
  }
45
82
  }