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.
- package/dist/api/categories.d.ts +1 -1
- package/dist/api/categories.js +18 -2
- package/dist/api/index.d.ts +7 -6
- package/dist/api/index.js +7 -6
- package/dist/api/mappers.d.ts +1 -1
- package/dist/api/mappers.js +1 -1
- package/dist/api/menus.d.ts +18 -0
- package/dist/api/menus.js +39 -0
- package/dist/api/posts.js +30 -2
- package/dist/api/translations.js +7 -1
- package/dist/api/wpClient.d.ts +5 -8
- package/dist/api/wpClient.js +14 -0
- package/dist/app/config.d.ts +2 -1
- package/dist/app/config.js +4 -0
- package/dist/app/globals.css +33 -121
- package/dist/base/category/index.d.ts +3 -3
- package/dist/base/category/index.js +9 -8
- package/dist/base/category/pagination.d.ts +2 -2
- package/dist/base/category/pagination.js +12 -10
- package/dist/base/home/index.js +1 -1
- package/dist/base/home/pagination.js +3 -3
- package/dist/base/index.d.ts +7 -7
- package/dist/base/index.js +7 -7
- package/dist/base/layout/RootLayoutBase.d.ts +6 -7
- package/dist/base/layout/RootLayoutBase.js +4 -4
- package/dist/base/layout/RootLayoutBase.module.css +10 -0
- package/dist/base/legal/index.d.ts +4 -4
- package/dist/base/legal/index.js +36 -24
- package/dist/base/post/index.d.ts +1 -1
- package/dist/base/post/index.js +15 -12
- package/dist/components/Breadcrumbs/index.js +4 -4
- package/dist/components/JsonLd.d.ts +5 -0
- package/dist/components/JsonLd.js +9 -0
- package/dist/components/Paginator/index.d.ts +1 -1
- package/dist/components/Paginator/index.js +5 -5
- package/dist/components/PostCard/index.d.ts +3 -2
- package/dist/components/PostCard/index.js +8 -6
- package/dist/components/PostCard/index.module.css +7 -7
- package/dist/components/PostCard/index.types.d.ts +2 -1
- package/dist/components/PostCard/index.utils.d.ts +5 -5
- package/dist/components/PostCard/index.utils.js +8 -6
- package/dist/components/index.d.ts +6 -5
- package/dist/components/index.js +6 -5
- package/dist/components/layout/Footer/index.d.ts +5 -5
- package/dist/components/layout/Footer/index.js +11 -22
- package/dist/components/layout/Footer/index.module.css +59 -9
- package/dist/components/layout/Header/HeaderClient.d.ts +1 -1
- package/dist/components/layout/Header/HeaderClient.js +22 -2
- package/dist/components/layout/Header/index.d.ts +5 -5
- package/dist/components/layout/Header/index.js +10 -29
- package/dist/components/layout/Header/index.module.css +77 -16
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/alert.js +12 -0
- package/dist/components/ui/alert.module.css +26 -0
- package/dist/components/ui/badge.d.ts +3 -0
- package/dist/components/ui/badge.js +9 -0
- package/dist/components/ui/badge.module.css +23 -0
- package/dist/components/ui/breadcrumb.d.ts +8 -0
- package/dist/components/ui/breadcrumb.js +22 -0
- package/dist/components/ui/breadcrumb.module.css +37 -0
- package/dist/components/ui/button.d.ts +7 -0
- package/dist/components/ui/button.js +16 -0
- package/dist/components/ui/button.module.css +72 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/card.js +16 -0
- package/dist/components/ui/card.module.css +37 -0
- package/dist/components/ui/cn.d.ts +1 -0
- package/dist/components/ui/cn.js +3 -0
- package/dist/components/ui/index.d.ts +6 -0
- package/dist/components/ui/index.js +6 -0
- package/dist/components/ui/pagination.d.ts +14 -0
- package/dist/components/ui/pagination.js +25 -0
- package/dist/components/ui/pagination.module.css +62 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -6
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/yoast/index.js +10 -7
- package/dist/utils/hreflang.d.ts +4 -7
- package/dist/utils/hreflang.js +11 -6
- package/dist/utils/html.d.ts +2 -0
- package/dist/utils/html.js +25 -0
- package/dist/utils/index.d.ts +7 -6
- package/dist/utils/index.js +7 -6
- package/dist/utils/language.d.ts +37 -0
- package/dist/utils/language.js +75 -0
- package/dist/utils/seo.d.ts +1 -6
- package/dist/utils/seo.js +9 -5
- package/dist/utils/sitemap.d.ts +1 -1
- package/dist/utils/sitemap.js +107 -56
- package/dist/views/CategoryListView/index.d.ts +1 -1
- package/dist/views/CategoryListView/index.js +6 -6
- package/dist/views/CategoryListView/index.utils.d.ts +1 -1
- package/dist/views/CategoryListView/index.utils.js +1 -1
- package/dist/views/CategoryPaginationView/index.d.ts +1 -1
- package/dist/views/CategoryPaginationView/index.js +6 -6
- package/dist/views/CategoryPaginationView/index.utils.d.ts +1 -1
- package/dist/views/CategoryPaginationView/index.utils.js +1 -1
- package/dist/views/HomePaginationView/index.d.ts +1 -1
- package/dist/views/HomePaginationView/index.js +5 -4
- package/dist/views/HomePaginationView/index.utils.d.ts +1 -1
- package/dist/views/HomePaginationView/index.utils.js +1 -1
- package/dist/views/HomeView/index.d.ts +1 -1
- package/dist/views/HomeView/index.js +13 -12
- package/dist/views/HomeView/index.module.css +51 -8
- package/dist/views/HomeView/index.utils.d.ts +1 -1
- package/dist/views/HomeView/index.utils.js +2 -2
- package/dist/views/LegalPageView/index.d.ts +2 -1
- package/dist/views/LegalPageView/index.js +5 -5
- package/dist/views/LegalPageView/index.module.css +3 -3
- package/dist/views/LegalPageView/index.utils.js +1 -1
- package/dist/views/PostView/index.d.ts +3 -2
- package/dist/views/PostView/index.js +9 -7
- package/dist/views/PostView/index.module.css +46 -13
- package/dist/views/PostView/index.utils.d.ts +3 -3
- package/dist/views/PostView/index.utils.js +2 -2
- package/dist/views/index.d.ts +6 -6
- package/dist/views/index.js +6 -6
- 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:
|
|
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,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)}
|
|
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 (
|
|
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-
|
|
2
|
+
padding-top: var(--spacing-xl);
|
|
3
3
|
padding-bottom: var(--spacing-xl);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.article {
|
|
7
|
-
|
|
8
|
-
margin: 0 auto;
|
|
7
|
+
width: 100%;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
.badgeOverlay {
|
|
12
11
|
position: absolute;
|
|
13
|
-
|
|
14
|
-
left:
|
|
15
|
-
z-index:
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
package/dist/views/index.d.ts
CHANGED
|
@@ -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/dist/views/index.js
CHANGED
|
@@ -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.
|
|
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 &&
|
|
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.
|
|
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": "
|
|
35
|
-
"react": "
|
|
36
|
-
"react-dom": "
|
|
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.
|
|
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
|
}
|