@usethrottle/builder-react 0.0.0-stage → 0.2.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.
@@ -0,0 +1,118 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+ var _chunkS2XR224Acjs = require('./chunk-S2XR224A.cjs');
16
+
17
+ // src/server/load-site.ts
18
+ var _builder = require('@usethrottle/builder');
19
+ async function loadSite(options) {
20
+ const { locale, slots = [], packs = [], page, mediaOrigin = "" } = options;
21
+ const client = _chunkS2XR224Acjs.clientOf.call(void 0, options);
22
+ let bundle;
23
+ try {
24
+ bundle = await _chunkS2XR224Acjs.getBundle.call(void 0, { client, locale, slots, page });
25
+ } catch (error) {
26
+ if (!(error instanceof _builder.BuilderUnavailableError) || client.mode === "build") throw error;
27
+ _chunkS2XR224Acjs.warnOnce.call(void 0, "site-unavailable", `The Builder could not be read (${error.reason}); the store renders without its Builder header, footer and slots`);
28
+ return { status: "unavailable", locale };
29
+ }
30
+ const registry = _chunkS2XR224Acjs.createRendererRegistry.call(void 0, packs);
31
+ const names = Object.keys(bundle.slots);
32
+ const documents = [bundle.header.document, bundle.footer.document, ...names.map((n) => bundle.slots[n].document)];
33
+ const data = await _chunkS2XR224Acjs.staticDataFor.call(void 0, documents, registry, locale);
34
+ return {
35
+ status: "ok",
36
+ locale,
37
+ generation: bundle.generation,
38
+ siteVersion: bundle.site.siteVersion,
39
+ mediaOrigin,
40
+ settings: bundle.site.settings,
41
+ header: _chunkS2XR224Acjs.partOf.call(void 0, bundle.header, data),
42
+ footer: _chunkS2XR224Acjs.partOf.call(void 0, bundle.footer, data),
43
+ slots: Object.fromEntries(names.map((name) => [name, _chunkS2XR224Acjs.partOf.call(void 0, bundle.slots[name], data)]))
44
+ };
45
+ }
46
+
47
+ // src/server/sitemap.ts
48
+
49
+ async function builderSitemap(options) {
50
+ const client = _chunkS2XR224Acjs.clientOf.call(void 0, options);
51
+ const origin = _chunkS2XR224Acjs.originOf.call(void 0, options.storeUrl);
52
+ if (origin === void 0) {
53
+ _chunkS2XR224Acjs.warnOnce.call(void 0, "sitemap-origin", "builderSitemap needs a storeUrl (https://shop.example.com) that is an http(s) origin. The Builder does not publish the store URL.");
54
+ return [];
55
+ }
56
+ const locale = _nullishCoalesce(options.locale, () => ( "en"));
57
+ try {
58
+ const pages = await client.pages.list();
59
+ const { settings } = await client.site({ locale });
60
+ const indexable = await withoutNoindex(client, pages, locale);
61
+ const { list } = _chunkS2XR224Acjs.siteLocales.call(void 0, settings);
62
+ const prefixes = options.localeRoute !== true ? [void 0] : list.length > 0 ? list : [locale];
63
+ return indexable.flatMap((page) => {
64
+ const path = _chunkS2XR224Acjs.pagePathOf.call(void 0, settings, page, options.pagePath);
65
+ if (path === null) return [];
66
+ return prefixes.map((prefix) => ({ url: `${origin}${_chunkS2XR224Acjs.localized.call(void 0, path, prefix)}`, lastModified: new Date(page.updatedAt) }));
67
+ });
68
+ } catch (error) {
69
+ if (!(error instanceof _builder.BuilderUnavailableError) || client.mode === "build") throw error;
70
+ _chunkS2XR224Acjs.warnOnce.call(void 0, "sitemap-unavailable", `The Builder could not be read (${error.reason}); the sitemap leaves out its pages`);
71
+ return [];
72
+ }
73
+ }
74
+ var READ_AT_ONCE = 8;
75
+ async function withoutNoindex(client, pages, locale) {
76
+ const unknown = pages.filter((page) => typeof page.noindex !== "boolean");
77
+ const skip = new Set(pages.filter((page) => page.noindex === true).map((page) => page.slug));
78
+ for (let from = 0; from < unknown.length; from += READ_AT_ONCE) {
79
+ const slice = unknown.slice(from, from + READ_AT_ONCE);
80
+ const answers = await Promise.all(
81
+ slice.map(
82
+ (page) => client.pages.get(page.slug, { locale }).catch((error) => {
83
+ if (error instanceof _builder.BuilderNotFoundError) return "gone";
84
+ _chunkS2XR224Acjs.warnOnce.call(void 0, "sitemap-page-read", `A page could not be read for the sitemap (${error instanceof Error ? error.message : "unknown error"}); it stays listed`);
85
+ return void 0;
86
+ })
87
+ )
88
+ );
89
+ slice.forEach((page, index) => {
90
+ const answer = answers[index];
91
+ if (answer === "gone" || answer !== void 0 && (_chunkS2XR224Acjs.isRedirect.call(void 0, answer) || _chunkS2XR224Acjs.pageSeoOf.call(void 0, answer).noindex)) skip.add(page.slug);
92
+ });
93
+ }
94
+ return pages.filter((page) => !skip.has(page.slug));
95
+ }
96
+
97
+ // src/server/static-params.ts
98
+ async function builderStaticParams(options) {
99
+ const client = _chunkS2XR224Acjs.clientOf.call(void 0, options);
100
+ if (client.mode !== "build")
101
+ throw new TypeError(
102
+ 'builderStaticParams generates every page of a frozen release: give it a client made with createBuilderClient({ mode: "build" }). A live store keeps its pages dynamic.'
103
+ );
104
+ const pages = await client.pages.list();
105
+ return pages.map((page) => ({ [_nullishCoalesce(options.param, () => ( "handle"))]: page.slug }));
106
+ }
107
+
108
+ // src/server/index.ts
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ exports.BuilderNotFoundError = _builder.BuilderNotFoundError; exports.BuilderUnavailableError = _builder.BuilderUnavailableError; exports.builderSitemap = builderSitemap; exports.builderStaticParams = builderStaticParams; exports.getBundle = _chunkS2XR224Acjs.getBundle; exports.loadBuilderPage = _chunkS2XR224Acjs.loadBuilderPage; exports.loadSite = loadSite;
@@ -0,0 +1,88 @@
1
+ import { C as ClientOptions, W as WidgetPack, b as LoadedSite, L as LoadedPage, a as LoadedRedirect, P as PagePathResolver } from './seo-Dz439Jlk.cjs';
2
+ export { B as BundleAsk, g as getBundle } from './seo-Dz439Jlk.cjs';
3
+ export { BuilderNotFoundError, BuilderUnavailableError } from '@usethrottle/builder';
4
+ import 'react';
5
+ import '@usethrottle/builder-schema';
6
+
7
+ type LoadSiteOptions = ClientOptions & {
8
+ locale: string;
9
+ /** The slots the store renders (`product.above`, `product.below`, `shop.above`, `shop.below`, ...). */
10
+ slots?: readonly string[];
11
+ /** The page this request renders, when the caller knows it, so its read is the same read. */
12
+ page?: string;
13
+ /**
14
+ * The origin Throttle serves public media from (`https://...`). Images on any
15
+ * other origin, or over http, are refused. Without it no image shows.
16
+ */
17
+ mediaOrigin?: string;
18
+ packs?: readonly WidgetPack[];
19
+ };
20
+ /**
21
+ * Reads the site design once for a request: settings, header, footer and the
22
+ * named slots, with the non-perShopper data of their widgets resolved.
23
+ *
24
+ * When the Builder cannot answer and there is no last good answer it returns
25
+ * `{ status: 'unavailable' }` and logs once per process: the store's header,
26
+ * footer and slots then render nothing and the catalog pages keep working
27
+ * (ruling R8). Any other error (a bad key, a programming error) is thrown, and
28
+ * so is every error of a build-mode client (`createBuilderClient({ mode: 'build' })`).
29
+ */
30
+ declare function loadSite(options: LoadSiteOptions): Promise<LoadedSite>;
31
+
32
+ type LoadBuilderPageOptions = ClientOptions & {
33
+ slug: string;
34
+ locale: string;
35
+ packs?: readonly WidgetPack[];
36
+ /** The slots the layout reads, so this read can share the layout's. */
37
+ slots?: readonly string[];
38
+ };
39
+ /**
40
+ * Reads one published page for a request. Data of the page's non-perShopper
41
+ * sources is resolved here, each distinct binding once, into `initialData`;
42
+ * perShopper data is never read on the server and is not in the result.
43
+ *
44
+ * Rejects with `BuilderNotFoundError` for an unpublished page and
45
+ * `BuilderUnavailableError` when the Builder cannot answer: a page has no
46
+ * "render nothing" fallback, so the store's error boundary takes it.
47
+ */
48
+ declare function loadBuilderPage(options: LoadBuilderPageOptions): Promise<LoadedPage | LoadedRedirect>;
49
+
50
+ type BuilderSitemapOptions = ClientOptions & {
51
+ /** The store's origin (`https://shop.example.com`). The Builder does not publish it, so it is required: without a valid one the sitemap is empty. */
52
+ storeUrl?: string;
53
+ /** The locale the site settings (and, for an older Builder, the pages) are read in, as for `createBuilderPage` (`en` by default). */
54
+ locale?: string;
55
+ /**
56
+ * Your routes have a `[locale]` segment (`app/[locale]/pages/[handle]`), as the canonical links assume when the
57
+ * locale comes from the route. Each page is then listed once per site locale, under `/<locale>`.
58
+ */
59
+ localeRoute?: boolean;
60
+ /** Where your store serves a page, as for `createBuilderPage`. Pass the same function. */
61
+ pagePath?: PagePathResolver;
62
+ };
63
+ /** The published pages as sitemap entries. An unavailable Builder gives an empty list, never a failed sitemap (a build-mode client fails the build instead). */
64
+ declare function builderSitemap(options: BuilderSitemapOptions): Promise<{
65
+ url: string;
66
+ lastModified: Date;
67
+ }[]>;
68
+
69
+ type BuilderStaticParamsOptions = ClientOptions & {
70
+ /** The dynamic segment of the route, as in `createBuilderPage({ fromParams })`. Default `handle`. */
71
+ param?: string;
72
+ };
73
+ /**
74
+ * `generateStaticParams` for a build-time store: one entry per page of the frozen
75
+ * release, so every page is generated at build and nothing is rendered or
76
+ * regenerated afterwards (pair it with `export const dynamicParams = false`).
77
+ *
78
+ * ```ts
79
+ * export const generateStaticParams = () => builderStaticParams({ client: builder });
80
+ * export const dynamicParams = false;
81
+ * ```
82
+ *
83
+ * It only takes a build-mode client. A live store must not prerender its pages
84
+ * (every one is an ISR write on each deploy), so there it throws.
85
+ */
86
+ declare function builderStaticParams(options: BuilderStaticParamsOptions): Promise<Record<string, string>[]>;
87
+
88
+ export { type BuilderSitemapOptions, type BuilderStaticParamsOptions, type LoadBuilderPageOptions, type LoadSiteOptions, LoadedPage, LoadedRedirect, LoadedSite, builderSitemap, builderStaticParams, loadBuilderPage, loadSite };
@@ -0,0 +1,88 @@
1
+ import { C as ClientOptions, W as WidgetPack, b as LoadedSite, L as LoadedPage, a as LoadedRedirect, P as PagePathResolver } from './seo-Dz439Jlk.js';
2
+ export { B as BundleAsk, g as getBundle } from './seo-Dz439Jlk.js';
3
+ export { BuilderNotFoundError, BuilderUnavailableError } from '@usethrottle/builder';
4
+ import 'react';
5
+ import '@usethrottle/builder-schema';
6
+
7
+ type LoadSiteOptions = ClientOptions & {
8
+ locale: string;
9
+ /** The slots the store renders (`product.above`, `product.below`, `shop.above`, `shop.below`, ...). */
10
+ slots?: readonly string[];
11
+ /** The page this request renders, when the caller knows it, so its read is the same read. */
12
+ page?: string;
13
+ /**
14
+ * The origin Throttle serves public media from (`https://...`). Images on any
15
+ * other origin, or over http, are refused. Without it no image shows.
16
+ */
17
+ mediaOrigin?: string;
18
+ packs?: readonly WidgetPack[];
19
+ };
20
+ /**
21
+ * Reads the site design once for a request: settings, header, footer and the
22
+ * named slots, with the non-perShopper data of their widgets resolved.
23
+ *
24
+ * When the Builder cannot answer and there is no last good answer it returns
25
+ * `{ status: 'unavailable' }` and logs once per process: the store's header,
26
+ * footer and slots then render nothing and the catalog pages keep working
27
+ * (ruling R8). Any other error (a bad key, a programming error) is thrown, and
28
+ * so is every error of a build-mode client (`createBuilderClient({ mode: 'build' })`).
29
+ */
30
+ declare function loadSite(options: LoadSiteOptions): Promise<LoadedSite>;
31
+
32
+ type LoadBuilderPageOptions = ClientOptions & {
33
+ slug: string;
34
+ locale: string;
35
+ packs?: readonly WidgetPack[];
36
+ /** The slots the layout reads, so this read can share the layout's. */
37
+ slots?: readonly string[];
38
+ };
39
+ /**
40
+ * Reads one published page for a request. Data of the page's non-perShopper
41
+ * sources is resolved here, each distinct binding once, into `initialData`;
42
+ * perShopper data is never read on the server and is not in the result.
43
+ *
44
+ * Rejects with `BuilderNotFoundError` for an unpublished page and
45
+ * `BuilderUnavailableError` when the Builder cannot answer: a page has no
46
+ * "render nothing" fallback, so the store's error boundary takes it.
47
+ */
48
+ declare function loadBuilderPage(options: LoadBuilderPageOptions): Promise<LoadedPage | LoadedRedirect>;
49
+
50
+ type BuilderSitemapOptions = ClientOptions & {
51
+ /** The store's origin (`https://shop.example.com`). The Builder does not publish it, so it is required: without a valid one the sitemap is empty. */
52
+ storeUrl?: string;
53
+ /** The locale the site settings (and, for an older Builder, the pages) are read in, as for `createBuilderPage` (`en` by default). */
54
+ locale?: string;
55
+ /**
56
+ * Your routes have a `[locale]` segment (`app/[locale]/pages/[handle]`), as the canonical links assume when the
57
+ * locale comes from the route. Each page is then listed once per site locale, under `/<locale>`.
58
+ */
59
+ localeRoute?: boolean;
60
+ /** Where your store serves a page, as for `createBuilderPage`. Pass the same function. */
61
+ pagePath?: PagePathResolver;
62
+ };
63
+ /** The published pages as sitemap entries. An unavailable Builder gives an empty list, never a failed sitemap (a build-mode client fails the build instead). */
64
+ declare function builderSitemap(options: BuilderSitemapOptions): Promise<{
65
+ url: string;
66
+ lastModified: Date;
67
+ }[]>;
68
+
69
+ type BuilderStaticParamsOptions = ClientOptions & {
70
+ /** The dynamic segment of the route, as in `createBuilderPage({ fromParams })`. Default `handle`. */
71
+ param?: string;
72
+ };
73
+ /**
74
+ * `generateStaticParams` for a build-time store: one entry per page of the frozen
75
+ * release, so every page is generated at build and nothing is rendered or
76
+ * regenerated afterwards (pair it with `export const dynamicParams = false`).
77
+ *
78
+ * ```ts
79
+ * export const generateStaticParams = () => builderStaticParams({ client: builder });
80
+ * export const dynamicParams = false;
81
+ * ```
82
+ *
83
+ * It only takes a build-mode client. A live store must not prerender its pages
84
+ * (every one is an ISR write on each deploy), so there it throws.
85
+ */
86
+ declare function builderStaticParams(options: BuilderStaticParamsOptions): Promise<Record<string, string>[]>;
87
+
88
+ export { type BuilderSitemapOptions, type BuilderStaticParamsOptions, type LoadBuilderPageOptions, type LoadSiteOptions, LoadedPage, LoadedRedirect, LoadedSite, builderSitemap, builderStaticParams, loadBuilderPage, loadSite };
package/dist/server.js ADDED
@@ -0,0 +1,118 @@
1
+ import {
2
+ clientOf,
3
+ createRendererRegistry,
4
+ getBundle,
5
+ isRedirect,
6
+ loadBuilderPage,
7
+ localized,
8
+ originOf,
9
+ pagePathOf,
10
+ pageSeoOf,
11
+ partOf,
12
+ siteLocales,
13
+ staticDataFor,
14
+ warnOnce
15
+ } from "./chunk-NUE2KNT2.js";
16
+
17
+ // src/server/load-site.ts
18
+ import { BuilderUnavailableError } from "@usethrottle/builder";
19
+ async function loadSite(options) {
20
+ const { locale, slots = [], packs = [], page, mediaOrigin = "" } = options;
21
+ const client = clientOf(options);
22
+ let bundle;
23
+ try {
24
+ bundle = await getBundle({ client, locale, slots, page });
25
+ } catch (error) {
26
+ if (!(error instanceof BuilderUnavailableError) || client.mode === "build") throw error;
27
+ warnOnce("site-unavailable", `The Builder could not be read (${error.reason}); the store renders without its Builder header, footer and slots`);
28
+ return { status: "unavailable", locale };
29
+ }
30
+ const registry = createRendererRegistry(packs);
31
+ const names = Object.keys(bundle.slots);
32
+ const documents = [bundle.header.document, bundle.footer.document, ...names.map((n) => bundle.slots[n].document)];
33
+ const data = await staticDataFor(documents, registry, locale);
34
+ return {
35
+ status: "ok",
36
+ locale,
37
+ generation: bundle.generation,
38
+ siteVersion: bundle.site.siteVersion,
39
+ mediaOrigin,
40
+ settings: bundle.site.settings,
41
+ header: partOf(bundle.header, data),
42
+ footer: partOf(bundle.footer, data),
43
+ slots: Object.fromEntries(names.map((name) => [name, partOf(bundle.slots[name], data)]))
44
+ };
45
+ }
46
+
47
+ // src/server/sitemap.ts
48
+ import { BuilderNotFoundError, BuilderUnavailableError as BuilderUnavailableError2 } from "@usethrottle/builder";
49
+ async function builderSitemap(options) {
50
+ const client = clientOf(options);
51
+ const origin = originOf(options.storeUrl);
52
+ if (origin === void 0) {
53
+ warnOnce("sitemap-origin", "builderSitemap needs a storeUrl (https://shop.example.com) that is an http(s) origin. The Builder does not publish the store URL.");
54
+ return [];
55
+ }
56
+ const locale = options.locale ?? "en";
57
+ try {
58
+ const pages = await client.pages.list();
59
+ const { settings } = await client.site({ locale });
60
+ const indexable = await withoutNoindex(client, pages, locale);
61
+ const { list } = siteLocales(settings);
62
+ const prefixes = options.localeRoute !== true ? [void 0] : list.length > 0 ? list : [locale];
63
+ return indexable.flatMap((page) => {
64
+ const path = pagePathOf(settings, page, options.pagePath);
65
+ if (path === null) return [];
66
+ return prefixes.map((prefix) => ({ url: `${origin}${localized(path, prefix)}`, lastModified: new Date(page.updatedAt) }));
67
+ });
68
+ } catch (error) {
69
+ if (!(error instanceof BuilderUnavailableError2) || client.mode === "build") throw error;
70
+ warnOnce("sitemap-unavailable", `The Builder could not be read (${error.reason}); the sitemap leaves out its pages`);
71
+ return [];
72
+ }
73
+ }
74
+ var READ_AT_ONCE = 8;
75
+ async function withoutNoindex(client, pages, locale) {
76
+ const unknown = pages.filter((page) => typeof page.noindex !== "boolean");
77
+ const skip = new Set(pages.filter((page) => page.noindex === true).map((page) => page.slug));
78
+ for (let from = 0; from < unknown.length; from += READ_AT_ONCE) {
79
+ const slice = unknown.slice(from, from + READ_AT_ONCE);
80
+ const answers = await Promise.all(
81
+ slice.map(
82
+ (page) => client.pages.get(page.slug, { locale }).catch((error) => {
83
+ if (error instanceof BuilderNotFoundError) return "gone";
84
+ warnOnce("sitemap-page-read", `A page could not be read for the sitemap (${error instanceof Error ? error.message : "unknown error"}); it stays listed`);
85
+ return void 0;
86
+ })
87
+ )
88
+ );
89
+ slice.forEach((page, index) => {
90
+ const answer = answers[index];
91
+ if (answer === "gone" || answer !== void 0 && (isRedirect(answer) || pageSeoOf(answer).noindex)) skip.add(page.slug);
92
+ });
93
+ }
94
+ return pages.filter((page) => !skip.has(page.slug));
95
+ }
96
+
97
+ // src/server/static-params.ts
98
+ async function builderStaticParams(options) {
99
+ const client = clientOf(options);
100
+ if (client.mode !== "build")
101
+ throw new TypeError(
102
+ 'builderStaticParams generates every page of a frozen release: give it a client made with createBuilderClient({ mode: "build" }). A live store keeps its pages dynamic.'
103
+ );
104
+ const pages = await client.pages.list();
105
+ return pages.map((page) => ({ [options.param ?? "handle"]: page.slug }));
106
+ }
107
+
108
+ // src/server/index.ts
109
+ import { BuilderNotFoundError as BuilderNotFoundError2, BuilderUnavailableError as BuilderUnavailableError3 } from "@usethrottle/builder";
110
+ export {
111
+ BuilderNotFoundError2 as BuilderNotFoundError,
112
+ BuilderUnavailableError3 as BuilderUnavailableError,
113
+ builderSitemap,
114
+ builderStaticParams,
115
+ getBundle,
116
+ loadBuilderPage,
117
+ loadSite
118
+ };
package/package.json CHANGED
@@ -1,6 +1,99 @@
1
1
  {
2
2
  "name": "@usethrottle/builder-react",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0",
4
+ "description": "Renders a published Throttle Builder page document as React in a merchant's store: responsive CSS, header, footer, slots and the site design provider.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "require": {
17
+ "types": "./dist/index.d.cts",
18
+ "default": "./dist/index.cjs"
19
+ }
20
+ },
21
+ "./server": {
22
+ "import": {
23
+ "types": "./dist/server.d.ts",
24
+ "default": "./dist/server.js"
25
+ },
26
+ "require": {
27
+ "types": "./dist/server.d.cts",
28
+ "default": "./dist/server.cjs"
29
+ }
30
+ },
31
+ "./next": {
32
+ "import": {
33
+ "types": "./dist/next.d.ts",
34
+ "default": "./dist/next.js"
35
+ },
36
+ "require": {
37
+ "types": "./dist/next.d.cts",
38
+ "default": "./dist/next.cjs"
39
+ }
40
+ },
41
+ "./package.json": "./package.json"
42
+ },
43
+ "files": [
44
+ "dist",
45
+ "CLAUDE.md"
46
+ ],
47
+ "sideEffects": false,
48
+ "engines": {
49
+ "node": ">=20"
50
+ },
51
+ "keywords": [
52
+ "throttle",
53
+ "usethrottle",
54
+ "builder",
55
+ "page-builder",
56
+ "react",
57
+ "nextjs"
58
+ ],
59
+ "dependencies": {
60
+ "@usethrottle/builder": "^0.2.0",
61
+ "@usethrottle/builder-schema": "^0.1.2",
62
+ "@usethrottle/ui": "^0.1.2"
63
+ },
64
+ "peerDependencies": {
65
+ "next": ">=15",
66
+ "react": ">=18",
67
+ "react-dom": ">=18"
68
+ },
69
+ "peerDependenciesMeta": {
70
+ "next": {
71
+ "optional": true
72
+ }
73
+ },
74
+ "devDependencies": {
75
+ "@testing-library/react": "^16.1.0",
76
+ "@types/node": "^20.0.0",
77
+ "@types/react": "^19.1.0",
78
+ "@types/react-dom": "^19.1.0",
79
+ "jsdom": "^25.0.1",
80
+ "next": "15.5.15",
81
+ "playwright": "^1.62.1",
82
+ "react": "19.2.5",
83
+ "react-dom": "19.2.5",
84
+ "tsup": "^8.0.0",
85
+ "typescript": "^5.7.0",
86
+ "vitest": "^2.1.9"
87
+ },
88
+ "publishConfig": {
89
+ "access": "public"
90
+ },
91
+ "scripts": {
92
+ "build": "tsup",
93
+ "dev": "node scripts/playground.mjs",
94
+ "test": "vitest run",
95
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
96
+ "size": "node scripts/size.mjs",
97
+ "test:rsc": "node scripts/rsc-build.mjs"
98
+ }
6
99
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.