@foliwake/next 0.0.0-stage → 0.4.0
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/CHANGELOG.md +78 -0
- package/LICENSE +202 -0
- package/README.md +540 -2
- package/dist/cache.d.ts +14 -0
- package/dist/cache.js +31 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +3 -0
- package/dist/config.d.ts +33 -0
- package/dist/config.js +53 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +7 -0
- package/dist/page.d.ts +55 -0
- package/dist/page.js +71 -0
- package/dist/routes.d.ts +35 -0
- package/dist/routes.js +35 -0
- package/dist/server.d.ts +10 -0
- package/dist/server.js +22 -0
- package/dist/settings.d.ts +4 -0
- package/dist/settings.js +22 -0
- package/package.json +85 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'server-only';
|
|
2
|
+
export { foliwakeConfig, originClient, foliwakeTags } from './server.js';
|
|
3
|
+
export { readEnvelopeCached } from './cache.js';
|
|
4
|
+
export { FoliwakeServerPage, FoliwakeImportMap, readPage, emitPreloadHints, type FoliwakeServerPageProps, type ReadPageOptions } from './page.js';
|
|
5
|
+
export { readEnvelope, preparePage, pageImportMap, FoliwakePageError, type PrepareOptions, type PageErrorKind } from '@foliwake/server/page';
|
|
6
|
+
export type { FoliwakeAppConfig } from '@foliwake/server/config';
|
|
7
|
+
export { preloadHints } from '@foliwake/server/preload';
|
|
8
|
+
export type { FoliwakePageData, PageEnvelope, ChannelName, PreloadHint } from '@foliwake/blocks-contract/page';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// @foliwake/next (server-only): reading and preparing Foliwake pages in the App Router.
|
|
2
|
+
import 'server-only';
|
|
3
|
+
export { foliwakeConfig, originClient, foliwakeTags } from './server.js';
|
|
4
|
+
export { readEnvelopeCached } from './cache.js';
|
|
5
|
+
export { FoliwakeServerPage, FoliwakeImportMap, readPage, emitPreloadHints } from './page.js';
|
|
6
|
+
export { readEnvelope, preparePage, pageImportMap, FoliwakePageError } from '@foliwake/server/page';
|
|
7
|
+
export { preloadHints } from '@foliwake/server/preload';
|
package/dist/page.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import 'server-only';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { ChannelName, FoliwakePageData, PageEnvelope } from '@foliwake/blocks-contract/page';
|
|
4
|
+
import { type PrepareOptions } from '@foliwake/server/page';
|
|
5
|
+
/** Options of `readPage`: the channel, the reader, hints, and `preparePage`'s options. */
|
|
6
|
+
export interface ReadPageOptions extends PrepareOptions {
|
|
7
|
+
/** `live` (default, cached) or `preview` (read per request, never cached). */
|
|
8
|
+
channel?: ChannelName;
|
|
9
|
+
/** The live envelope reader; default readEnvelopeCached (or the app's own 'use cache' wrapper). */
|
|
10
|
+
read?: (path: string) => Promise<PageEnvelope>;
|
|
11
|
+
/** Compute same-origin preload hints for the page's blocks into `page.preload` (default true). */
|
|
12
|
+
hints?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/** The prepared page. Preview: `connection()` first (per request, never cached). */
|
|
15
|
+
export declare function readPage(path: string, opts?: ReadPageOptions): Promise<FoliwakePageData>;
|
|
16
|
+
/**
|
|
17
|
+
* Emits the page's hints into the document head (React DOM resource APIs; deduplicated by React). Modules are
|
|
18
|
+
* hinted as `preload as="script"` (the bytes, fetched in parallel), not `modulepreload`: a module preloaded
|
|
19
|
+
* before the page's import map is in the document fails to resolve the kit's specifier for good, and in a Next
|
|
20
|
+
* app the hints reach <head> before the map (which renders with the page, and on a client navigation arrives
|
|
21
|
+
* later).
|
|
22
|
+
*/
|
|
23
|
+
export declare function emitPreloadHints(page: FoliwakePageData): void;
|
|
24
|
+
/** Props of `<FoliwakeServerPage>`. */
|
|
25
|
+
export interface FoliwakeServerPageProps {
|
|
26
|
+
/** The site's page path (`/`, `/lessons/a`); it must match `app.pages`. */
|
|
27
|
+
path: string;
|
|
28
|
+
/** `live` (default, cached) or `preview` (per request, never cached; protect the route). */
|
|
29
|
+
channel?: ChannelName;
|
|
30
|
+
/** `preparePage` options: `rewriteLink`, `transform`, `mode`. */
|
|
31
|
+
prepare?: PrepareOptions;
|
|
32
|
+
/** The live envelope reader; default readEnvelopeCached. */
|
|
33
|
+
read?: (path: string) => Promise<PageEnvelope>;
|
|
34
|
+
/** Preload hints for the blocks (default true): modulepreload/preload links in <head>, same-origin. */
|
|
35
|
+
hints?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The request's CSP nonce (`foliwakeCsp({ strategy: 'nonce', nonce })`): set on the page's import map. Pass it to
|
|
38
|
+
* your `<FoliwakePage nonce>` too, so a map the browser adds on a client navigation carries it.
|
|
39
|
+
*/
|
|
40
|
+
nonce?: string;
|
|
41
|
+
/** Runs on the server; returns the app's client component with the page. */
|
|
42
|
+
render: (page: FoliwakePageData) => ReactNode;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The import map of the page's code release (`@foliwake/block-kit` → its block-kit, scoped to the release's code
|
|
46
|
+
* path), as an element to render before the page's blocks load; null for a page without a code release.
|
|
47
|
+
* Browsers honour a map that arrives after the document's first module load (client navigation, a second
|
|
48
|
+
* release) only with multiple import maps (Chrome 133+); `@foliwake/client` adds the same map when it is missing.
|
|
49
|
+
*/
|
|
50
|
+
export declare function FoliwakeImportMap({ page, nonce }: {
|
|
51
|
+
page: FoliwakePageData;
|
|
52
|
+
nonce?: string;
|
|
53
|
+
}): ReactNode;
|
|
54
|
+
/** A Foliwake page in a server component. Missing or not allowed → notFound(); other errors throw (error.tsx). */
|
|
55
|
+
export declare function FoliwakeServerPage(props: FoliwakeServerPageProps): Promise<ReactNode>;
|
package/dist/page.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// <FoliwakeServerPage> and readPage: read (live: cached envelope; preview: never cached), prepare per request
|
|
3
|
+
// (callbacks run here, on the server, after the cache), and hand the serialisable page to the app's client
|
|
4
|
+
// component.
|
|
5
|
+
import 'server-only';
|
|
6
|
+
import { notFound } from 'next/navigation.js';
|
|
7
|
+
import { preload } from 'react-dom';
|
|
8
|
+
import { connection } from 'next/server.js';
|
|
9
|
+
import { pageImportMap, preparePage, readEnvelope } from '@foliwake/server/page';
|
|
10
|
+
import { preloadHints } from '@foliwake/server/preload';
|
|
11
|
+
import { readEnvelopeCached } from './cache.js';
|
|
12
|
+
import { foliwakeConfig, originClient } from './server.js';
|
|
13
|
+
const isPageError = (error, ...kinds) => typeof error === 'object' && error !== null && error.name === 'FoliwakePageError' && kinds.includes(error.kind ?? '');
|
|
14
|
+
/** The prepared page. Preview: `connection()` first (per request, never cached). */
|
|
15
|
+
export async function readPage(path, opts = {}) {
|
|
16
|
+
const { channel = 'live', read, hints = true, ...prepare } = opts;
|
|
17
|
+
const config = foliwakeConfig();
|
|
18
|
+
let envelope;
|
|
19
|
+
if (channel === 'preview') {
|
|
20
|
+
await connection();
|
|
21
|
+
envelope = await readEnvelope(config, originClient(), config.site, 'preview', path);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
envelope = await (read ?? readEnvelopeCached)(path);
|
|
25
|
+
}
|
|
26
|
+
const page = preparePage(config, envelope, prepare);
|
|
27
|
+
if (hints)
|
|
28
|
+
page.preload = await preloadHints(config, originClient(), page);
|
|
29
|
+
return page;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Emits the page's hints into the document head (React DOM resource APIs; deduplicated by React). Modules are
|
|
33
|
+
* hinted as `preload as="script"` (the bytes, fetched in parallel), not `modulepreload`: a module preloaded
|
|
34
|
+
* before the page's import map is in the document fails to resolve the kit's specifier for good, and in a Next
|
|
35
|
+
* app the hints reach <head> before the map (which renders with the page, and on a client navigation arrives
|
|
36
|
+
* later).
|
|
37
|
+
*/
|
|
38
|
+
export function emitPreloadHints(page) {
|
|
39
|
+
for (const hint of page.preload) {
|
|
40
|
+
if (hint.rel === 'modulepreload')
|
|
41
|
+
preload(hint.href, { as: 'script', crossOrigin: 'anonymous' });
|
|
42
|
+
else
|
|
43
|
+
preload(hint.href, { as: 'style' });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The import map of the page's code release (`@foliwake/block-kit` → its block-kit, scoped to the release's code
|
|
48
|
+
* path), as an element to render before the page's blocks load; null for a page without a code release.
|
|
49
|
+
* Browsers honour a map that arrives after the document's first module load (client navigation, a second
|
|
50
|
+
* release) only with multiple import maps (Chrome 133+); `@foliwake/client` adds the same map when it is missing.
|
|
51
|
+
*/
|
|
52
|
+
export function FoliwakeImportMap({ page, nonce }) {
|
|
53
|
+
const text = pageImportMap(page);
|
|
54
|
+
if (text === null)
|
|
55
|
+
return null;
|
|
56
|
+
return _jsx("script", { type: "importmap", nonce: nonce, "data-foliwake-code": page.codeBase ?? undefined, dangerouslySetInnerHTML: { __html: text } });
|
|
57
|
+
}
|
|
58
|
+
/** A Foliwake page in a server component. Missing or not allowed → notFound(); other errors throw (error.tsx). */
|
|
59
|
+
export async function FoliwakeServerPage(props) {
|
|
60
|
+
let page;
|
|
61
|
+
try {
|
|
62
|
+
page = await readPage(props.path, { ...(props.prepare ?? {}), ...(props.channel ? { channel: props.channel } : {}), ...(props.read ? { read: props.read } : {}), hints: props.hints ?? true });
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
if (isPageError(error, 'not_found', 'not_allowed'))
|
|
66
|
+
notFound();
|
|
67
|
+
throw error;
|
|
68
|
+
}
|
|
69
|
+
emitPreloadHints(page);
|
|
70
|
+
return (_jsxs(_Fragment, { children: [_jsx(FoliwakeImportMap, { page: page, nonce: props.nonce }), props.render(page)] }));
|
|
71
|
+
}
|
package/dist/routes.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import 'server-only';
|
|
2
|
+
import { type AuthorizePreview } from '@foliwake/server/handlers';
|
|
3
|
+
type Context = {
|
|
4
|
+
params: Promise<{
|
|
5
|
+
path: string[];
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
8
|
+
type RouteHandler = (request: Request, context: Context) => Promise<Response>;
|
|
9
|
+
/**
|
|
10
|
+
* Route handlers for `app/<proxies.code>/[...path]/route.ts`: serve the files of a code release from the app's
|
|
11
|
+
* origin (`codeHandler` of `@foliwake/server/handlers`). Usage:
|
|
12
|
+
* `export const { GET, HEAD } = codeRoute({ authorizePreview: isAuthor })`. Each handler takes
|
|
13
|
+
* `(request, { params })` and returns a `Response`.
|
|
14
|
+
*
|
|
15
|
+
* @param opts - `authorizePreview`: the app's author check for preview files, or `false`; required.
|
|
16
|
+
*/
|
|
17
|
+
export declare function codeRoute(opts: {
|
|
18
|
+
authorizePreview: AuthorizePreview;
|
|
19
|
+
}): {
|
|
20
|
+
GET: RouteHandler;
|
|
21
|
+
HEAD: RouteHandler;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Route handlers for `app/<proxies.media>/[...path]/route.ts`: serve hashed pictures (`mediaHandler` of
|
|
25
|
+
* `@foliwake/server/handlers`). Usage: `export const { GET, HEAD } = mediaRoute({ authorizePreview: isAuthor })`.
|
|
26
|
+
*
|
|
27
|
+
* @param opts - `authorizePreview`: the app's author check for preview pictures, or `false`; required.
|
|
28
|
+
*/
|
|
29
|
+
export declare function mediaRoute(opts: {
|
|
30
|
+
authorizePreview: AuthorizePreview;
|
|
31
|
+
}): {
|
|
32
|
+
GET: RouteHandler;
|
|
33
|
+
HEAD: RouteHandler;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
package/dist/routes.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @foliwake/next/routes: route handlers for app/<proxies.code>/[...path]/route.ts and the media proxy.
|
|
2
|
+
import 'server-only';
|
|
3
|
+
import { codeHandler, mediaHandler } from '@foliwake/server/handlers';
|
|
4
|
+
import { foliwakeConfig, originClient } from './server.js';
|
|
5
|
+
function route(make, opts) {
|
|
6
|
+
if (!opts || (opts.authorizePreview !== false && typeof opts.authorizePreview !== 'function')) {
|
|
7
|
+
throw new TypeError('Pass { authorizePreview: <your author check> } or { authorizePreview: false }; no default serves preview.');
|
|
8
|
+
}
|
|
9
|
+
let handler = null;
|
|
10
|
+
const run = async (request, context) => {
|
|
11
|
+
handler ??= make(foliwakeConfig(), originClient(), opts);
|
|
12
|
+
return handler(request, { path: (await context.params).path ?? [] });
|
|
13
|
+
};
|
|
14
|
+
return { GET: run, HEAD: run };
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Route handlers for `app/<proxies.code>/[...path]/route.ts`: serve the files of a code release from the app's
|
|
18
|
+
* origin (`codeHandler` of `@foliwake/server/handlers`). Usage:
|
|
19
|
+
* `export const { GET, HEAD } = codeRoute({ authorizePreview: isAuthor })`. Each handler takes
|
|
20
|
+
* `(request, { params })` and returns a `Response`.
|
|
21
|
+
*
|
|
22
|
+
* @param opts - `authorizePreview`: the app's author check for preview files, or `false`; required.
|
|
23
|
+
*/
|
|
24
|
+
export function codeRoute(opts) {
|
|
25
|
+
return route(codeHandler, opts);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Route handlers for `app/<proxies.media>/[...path]/route.ts`: serve hashed pictures (`mediaHandler` of
|
|
29
|
+
* `@foliwake/server/handlers`). Usage: `export const { GET, HEAD } = mediaRoute({ authorizePreview: isAuthor })`.
|
|
30
|
+
*
|
|
31
|
+
* @param opts - `authorizePreview`: the app's author check for preview pictures, or `false`; required.
|
|
32
|
+
*/
|
|
33
|
+
export function mediaRoute(opts) {
|
|
34
|
+
return route(mediaHandler, opts);
|
|
35
|
+
}
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import 'server-only';
|
|
2
|
+
import type { ChannelName } from '@foliwake/blocks-contract/page';
|
|
3
|
+
import { type OriginClient } from '@foliwake/server/origin';
|
|
4
|
+
import type { FoliwakeAppConfig } from '@foliwake/server/config';
|
|
5
|
+
/** The app's Foliwake config (validated at build time by withFoliwake). */
|
|
6
|
+
export declare function foliwakeConfig(): FoliwakeAppConfig;
|
|
7
|
+
/** The origin client; credentials are read from process.env per request. */
|
|
8
|
+
export declare function originClient(): OriginClient;
|
|
9
|
+
/** Cache tags of a channel (and page): foliwake, foliwake:<site>, foliwake:<site>:<channel>, …:page:<path>. */
|
|
10
|
+
export declare function foliwakeTags(channel: ChannelName, path?: string): string[];
|
package/dist/server.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Server-side helpers (server-only): the config, the origin client and cache tags.
|
|
2
|
+
import 'server-only';
|
|
3
|
+
import { createOriginClient } from '@foliwake/server/origin';
|
|
4
|
+
import { loadConfigSync } from './settings.js';
|
|
5
|
+
let client = null;
|
|
6
|
+
/** The app's Foliwake config (validated at build time by withFoliwake). */
|
|
7
|
+
export function foliwakeConfig() {
|
|
8
|
+
return loadConfigSync();
|
|
9
|
+
}
|
|
10
|
+
/** The origin client; credentials are read from process.env per request. */
|
|
11
|
+
export function originClient() {
|
|
12
|
+
client ??= createOriginClient(foliwakeConfig(), process.env);
|
|
13
|
+
return client;
|
|
14
|
+
}
|
|
15
|
+
/** Cache tags of a channel (and page): foliwake, foliwake:<site>, foliwake:<site>:<channel>, …:page:<path>. */
|
|
16
|
+
export function foliwakeTags(channel, path) {
|
|
17
|
+
const site = foliwakeConfig().site;
|
|
18
|
+
const tags = ['foliwake', `foliwake:${site}`, `foliwake:${site}:${channel}`];
|
|
19
|
+
if (path !== undefined)
|
|
20
|
+
tags.push(`foliwake:${site}:${channel}:page:${path}`);
|
|
21
|
+
return tags;
|
|
22
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type FoliwakeAppConfig } from '@foliwake/server/config';
|
|
2
|
+
/** The Next `env` key withFoliwake() sets. Not NEXT_PUBLIC_: never inlined into client code by name. */
|
|
3
|
+
export declare const CONFIG_ENV_KEY = "FOLIWAKE_APP_CONFIG";
|
|
4
|
+
export declare function loadConfigSync(): FoliwakeAppConfig;
|
package/dist/settings.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Where the app's Foliwake config comes from at run time: withFoliwake() validates the file at build time and
|
|
2
|
+
// inlines it (Next `env`) into server code only (this module is imported from server-only modules). Without
|
|
3
|
+
// withFoliwake, the file is read on first use (FOLIWAKE_REMOTE or ./foliwake.remote.json).
|
|
4
|
+
import { readFileSync } from 'node:fs';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
import { configFilePath, parseFoliwakeConfig } from '@foliwake/server/config';
|
|
7
|
+
/** The Next `env` key withFoliwake() sets. Not NEXT_PUBLIC_: never inlined into client code by name. */
|
|
8
|
+
export const CONFIG_ENV_KEY = 'FOLIWAKE_APP_CONFIG';
|
|
9
|
+
let cached = null;
|
|
10
|
+
export function loadConfigSync() {
|
|
11
|
+
if (cached)
|
|
12
|
+
return cached;
|
|
13
|
+
const inlined = process.env.FOLIWAKE_APP_CONFIG;
|
|
14
|
+
if (inlined) {
|
|
15
|
+
const { file, text } = JSON.parse(inlined);
|
|
16
|
+
cached = parseFoliwakeConfig(text, { file });
|
|
17
|
+
return cached;
|
|
18
|
+
}
|
|
19
|
+
const file = configFilePath();
|
|
20
|
+
cached = parseFoliwakeConfig(readFileSync(file, 'utf8'), { file: path.basename(file) });
|
|
21
|
+
return cached;
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,88 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foliwake/next",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "Next.js App Router adapter for Foliwake pages: withFoliwake, cached envelope read, <FoliwakeServerPage>, preview pages, code and media route handlers, CSP header.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/foliwake/foliwake-js.git",
|
|
11
|
+
"directory": "packages/next"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://docs.foliwake.dev/reference/packages/next",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/foliwake/foliwake-js/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"foliwake",
|
|
19
|
+
"cms",
|
|
20
|
+
"headless",
|
|
21
|
+
"blocks",
|
|
22
|
+
"nextjs",
|
|
23
|
+
"next",
|
|
24
|
+
"react",
|
|
25
|
+
"app-router"
|
|
26
|
+
],
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=22.22"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"provenance": true
|
|
33
|
+
},
|
|
34
|
+
"foliwake": {
|
|
35
|
+
"plain": 2,
|
|
36
|
+
"blocksContract": 2,
|
|
37
|
+
"remoteConfig": 2
|
|
38
|
+
},
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"types": "./dist/index.d.ts",
|
|
42
|
+
"default": "./dist/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./client": {
|
|
45
|
+
"types": "./dist/client.d.ts",
|
|
46
|
+
"default": "./dist/client.js"
|
|
47
|
+
},
|
|
48
|
+
"./config": {
|
|
49
|
+
"types": "./dist/config.d.ts",
|
|
50
|
+
"default": "./dist/config.js"
|
|
51
|
+
},
|
|
52
|
+
"./routes": {
|
|
53
|
+
"types": "./dist/routes.d.ts",
|
|
54
|
+
"default": "./dist/routes.js"
|
|
55
|
+
},
|
|
56
|
+
"./cache": {
|
|
57
|
+
"types": "./dist/cache.d.ts",
|
|
58
|
+
"default": "./dist/cache.js"
|
|
59
|
+
},
|
|
60
|
+
"./package.json": "./package.json"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"server-only": "0.0.1",
|
|
64
|
+
"@foliwake/blocks-contract": "0.4.0",
|
|
65
|
+
"@foliwake/server": "0.4.0",
|
|
66
|
+
"@foliwake/react": "0.4.0"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"next": ">=16.2.0 <17",
|
|
70
|
+
"react": "^19.2.0"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@types/node": "22.20.5",
|
|
74
|
+
"@types/react": "19.3.0",
|
|
75
|
+
"next": "16.2.12",
|
|
76
|
+
"react": "19.3.0",
|
|
77
|
+
"react-dom": "19.3.0"
|
|
78
|
+
},
|
|
79
|
+
"files": [
|
|
80
|
+
"dist/",
|
|
81
|
+
"!dist/**/*.map",
|
|
82
|
+
"!dist/.build-stamp",
|
|
83
|
+
"!dist/.build-manifest.json",
|
|
84
|
+
"LICENSE",
|
|
85
|
+
"README.md",
|
|
86
|
+
"CHANGELOG.md"
|
|
87
|
+
]
|
|
6
88
|
}
|