diff --git a/apps/demo/app/[...slug]/fetchSlugs.ts b/apps/demo/app/[...slug]/fetchSlugs.ts
index 1bbce08..de39cf1 100644
--- a/apps/demo/app/[...slug]/fetchSlugs.ts
+++ b/apps/demo/app/[...slug]/fetchSlugs.ts
@@ -1,13 +1,4 @@
-import { createClient } from '@sanity/client';
-
-const client = createClient({
- projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID!,
- dataset: process.env.NEXT_PUBLIC_SANITY_DATASET!,
- apiVersion: 'vX',
- useCdn: false,
- token: process.env.NEXT_PUBLIC_SANITY_TOKEN!,
- perspective: 'drafts',
-});
+import { client } from './sanity-client';
export async function fetchSlugs() {
const slugs: string[] = await client.fetch(
diff --git a/apps/demo/app/[...slug]/page.tsx b/apps/demo/app/[...slug]/page.tsx
index 6e1fa93..96340ee 100644
--- a/apps/demo/app/[...slug]/page.tsx
+++ b/apps/demo/app/[...slug]/page.tsx
@@ -1,10 +1,22 @@
-// import { fetchSlugs } from '@/app/[...slug]/fetchSlugs';
-import { RouteLoader } from '@vyuh/react-extension-content';
-
+import { fetchSlugs } from '@/app/[...slug]/fetchSlugs';
+import { RouteLoaderNext } from '@vyuh/react-extension-content';
+import { ContentItem, PluginDescriptor, VyuhProvider } from '@vyuh/react-core';
+import { DefaultContentPlugin } from '@vyuh/react-extension-content';
+import { client, fetchSlug } from './sanity-client';
+import { system } from '@vyuh/react-feature-system';
+import { auth } from '@vyuh/react-feature-auth';
+import { blog } from '@vyuh/react-feature-blog';
+import { marketing } from '@vyuh/react-feature-marketing';
// Use only if you want to pre-render all routes
-// export async function generateStaticParams() {
-// return await fetchSlugs();
-// }
+export async function generateStaticParams() {
+ return await fetchSlugs();
+}
+
+const plugins = new PluginDescriptor({
+ content: new DefaultContentPlugin(),
+});
+
+const features = () => [system, marketing];
export default async function DynamicRoute({
params,
@@ -16,5 +28,17 @@ export default async function DynamicRoute({
? `/${allParams.slug.join('/')}`
: `/${allParams.slug ?? ''}`;
- return ;
+ const data: ContentItem = await fetchSlug(slug);
+ console.log('>>>>>>');
+ console.log(data);
+ return (
+
+ );
}
diff --git a/apps/demo/app/[...slug]/sanity-client.ts b/apps/demo/app/[...slug]/sanity-client.ts
new file mode 100644
index 0000000..17da55a
--- /dev/null
+++ b/apps/demo/app/[...slug]/sanity-client.ts
@@ -0,0 +1,17 @@
+import { createClient } from '@sanity/client';
+
+export const client = createClient({
+ projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID!,
+ dataset: process.env.NEXT_PUBLIC_SANITY_DATASET!,
+ apiVersion: 'vX',
+ useCdn: false,
+ token: process.env.NEXT_PUBLIC_SANITY_TOKEN!,
+ perspective: 'drafts',
+});
+
+export async function fetchSlug(slug: string) {
+ const response: any = await client.fetch(
+ `*[_type == "vyuh.route" && path == "${slug}"][0]`,
+ );
+ return response;
+}
\ No newline at end of file
diff --git a/apps/demo/app/client-app.tsx b/apps/demo/app/client-app.tsx
index b651a7d..ca5057b 100644
--- a/apps/demo/app/client-app.tsx
+++ b/apps/demo/app/client-app.tsx
@@ -6,11 +6,11 @@ import { misc } from '@/features/misc-feature';
import { NextNavigationPlugin } from '@/plugins/next-navigation-plugin';
import { PluginDescriptor, VyuhProvider } from '@vyuh/react-core';
import { DefaultContentPlugin } from '@vyuh/react-extension-content';
+import { system } from '@vyuh/react-feature-system';
import { auth } from '@vyuh/react-feature-auth';
import { blog } from '@vyuh/react-feature-blog';
import { marketing } from '@vyuh/react-feature-marketing';
-import { system } from '@vyuh/react-feature-system';
import { SanityContentProvider } from '@vyuh/react-plugin-content-provider-sanity';
import { ReactNode } from 'react';
@@ -25,7 +25,7 @@ const sanityProvider = new SanityContentProvider({
});
const plugins = new PluginDescriptor({
- content: new DefaultContentPlugin(sanityProvider),
+ content: new DefaultContentPlugin(),
navigation: new NextNavigationPlugin(),
});
diff --git a/features/auth/react-feature-auth/src/content/email-password-form/default-email-password-form-layout.tsx b/features/auth/react-feature-auth/src/content/email-password-form/default-email-password-form-layout.tsx
index 8c182e9..d0e6bf2 100644
--- a/features/auth/react-feature-auth/src/content/email-password-form/default-email-password-form-layout.tsx
+++ b/features/auth/react-feature-auth/src/content/email-password-form/default-email-password-form-layout.tsx
@@ -1,3 +1,4 @@
+'use client';
import {
executeAction,
LayoutConfiguration,
diff --git a/features/marketing/react-feature-marketing/src/content/accordion/components/Accordion.tsx b/features/marketing/react-feature-marketing/src/content/accordion/components/Accordion.tsx
index de9888d..9dac4e6 100644
--- a/features/marketing/react-feature-marketing/src/content/accordion/components/Accordion.tsx
+++ b/features/marketing/react-feature-marketing/src/content/accordion/components/Accordion.tsx
@@ -1,8 +1,6 @@
import { Accordion as AccordionItem } from '@/content/Accordion/accordion';
import { DefaultAccordionLayout } from '@/content/Accordion/default-accordion-layout';
-import { cn } from '@/shared/utils';
-import { executeAction } from '@vyuh/react-core';
-import React, { useState } from 'react';
+import React from 'react';
interface AccordionProps {
content: AccordionItem;
diff --git a/features/marketing/react-feature-marketing/src/content/banner/components/Banner.tsx b/features/marketing/react-feature-marketing/src/content/banner/components/Banner.tsx
index 52f832b..c49cbbc 100644
--- a/features/marketing/react-feature-marketing/src/content/banner/components/Banner.tsx
+++ b/features/marketing/react-feature-marketing/src/content/banner/components/Banner.tsx
@@ -1,3 +1,4 @@
+'use client';
import { Banner as BannerItem } from '@/content/banner/banner';
import { DefaultBannerLayout } from '@/content/banner/default-banner-layout';
import { cn } from '@/shared/utils';
diff --git a/features/marketing/react-feature-marketing/src/content/header/components/Header.tsx b/features/marketing/react-feature-marketing/src/content/header/components/Header.tsx
index efa4c34..99b1f04 100644
--- a/features/marketing/react-feature-marketing/src/content/header/components/Header.tsx
+++ b/features/marketing/react-feature-marketing/src/content/header/components/Header.tsx
@@ -1,3 +1,4 @@
+'use client';
import { DefaultHeaderLayout } from '@/content/header/default-header-layout';
import { Header as HeaderItem } from '@/content/header/header';
import { cn } from '@/shared/utils';
diff --git a/features/marketing/react-feature-marketing/src/content/header/components/ThemeToggle.tsx b/features/marketing/react-feature-marketing/src/content/header/components/ThemeToggle.tsx
index 79f974c..8eeef12 100644
--- a/features/marketing/react-feature-marketing/src/content/header/components/ThemeToggle.tsx
+++ b/features/marketing/react-feature-marketing/src/content/header/components/ThemeToggle.tsx
@@ -1,3 +1,4 @@
+'use client';
import { cn } from '@/shared/utils';
import { Moon, Palette, Sun } from 'lucide-react';
import React, { useEffect, useState } from 'react';
diff --git a/features/marketing/react-feature-marketing/src/content/pricing/components/Pricing.tsx b/features/marketing/react-feature-marketing/src/content/pricing/components/Pricing.tsx
index eab8b49..c112c26 100644
--- a/features/marketing/react-feature-marketing/src/content/pricing/components/Pricing.tsx
+++ b/features/marketing/react-feature-marketing/src/content/pricing/components/Pricing.tsx
@@ -1,3 +1,4 @@
+'use client';
import { DefaultPricingLayout } from '@/content/pricing/default-pricing-layout';
import { Pricing as PricingContent } from '@/content/pricing/pricing';
import { Section } from '@/shared/components/Section';
diff --git a/packages/react-extension-content/src/default-content-plugin.tsx b/packages/react-extension-content/src/default-content-plugin.tsx
index ee9e163..1e74ac5 100644
--- a/packages/react-extension-content/src/default-content-plugin.tsx
+++ b/packages/react-extension-content/src/default-content-plugin.tsx
@@ -18,8 +18,8 @@ import React from 'react';
*/
export class DefaultContentPlugin extends ContentPlugin {
private extensionBuilder?: ContentExtensionBuilder;
- constructor(provider: ContentProvider) {
- super('vyuh.plugin.content.default', 'Default Content Plugin', provider);
+ constructor() {
+ super('vyuh.plugin.content.default', 'Default Content Plugin', {});
}
getItem(
@@ -43,8 +43,10 @@ export class DefaultContentPlugin extends ContentPlugin {
json: Record | ContentItem,
options?: { layout: LayoutConfiguration },
): React.ReactNode {
- const schemaType = json.schemaType ?? this.provider.schemaType(json);
-
+ console.log(json);
+ const schemaType = json.schemaType ?? 'ContentBuilder';
+ console.log('>@@@@');
+ console.log(json);
// Wrap the renderer in an error boundary to isolate rendering errors
return (
@@ -78,12 +80,12 @@ export class DefaultContentPlugin extends ContentPlugin {
async dispose(): Promise {
// Dispose the content provider
- return this.provider.dispose();
+ // return this.provider.dispose();
}
async init(): Promise {
// Initialize the content provider
- return this.provider.init();
+ // return this.provider.init();
}
}
diff --git a/packages/react-extension-content/src/index.ts b/packages/react-extension-content/src/index.ts
index 0a8e4f5..5a1ece8 100644
--- a/packages/react-extension-content/src/index.ts
+++ b/packages/react-extension-content/src/index.ts
@@ -1,5 +1,6 @@
export * from './ui/document-loader';
export * from './ui/route-loader';
+export * from './ui/route-loader-next';
export * from './ui/async-content-container';
export * from './content-builder';
diff --git a/packages/react-extension-content/src/ui/route-loader-next.tsx b/packages/react-extension-content/src/ui/route-loader-next.tsx
new file mode 100644
index 0000000..e17e953
--- /dev/null
+++ b/packages/react-extension-content/src/ui/route-loader-next.tsx
@@ -0,0 +1,57 @@
+import { ContentItem, FeatureDescriptor } from '@vyuh/react-core';
+
+/**
+ * Props for the RouteLoader component
+ */
+export interface RouteLoaderNextProps {
+ /**
+ * The URL to fetch the route for
+ */
+ url?: string;
+
+ features: () => FeatureDescriptor[] | Promise;
+
+ /**
+ * Custom render function for the content
+ * If not provided, uses the content plugin's render method
+ */
+ renderContent?: (
+ content: TContent,
+ ) => React.ReactNode;
+ /**
+ * Data object for conent
+ */
+ data: TContent;
+ /**
+ * The route ID to fetch the route for
+ */
+ routeId?: string;
+
+ /**
+ * Whether to allow refreshing the route
+ */
+ allowRefresh?: boolean;
+
+ /**
+ * Whether to use live updates (observable-based) instead of one-time loading
+ */
+ live?: boolean;
+}
+
+/**
+ * A component that loads and renders a route from a URL or route ID
+ */
+export async function RouteLoaderNext({
+ url,
+ data,
+ features,
+ renderContent,
+ routeId,
+ allowRefresh = true,
+ live = false,
+}: RouteLoaderNextProps) {
+ const returnFeature = await features();
+ console.log(returnFeature);
+ console.log('take'+ data);
+ return {renderContent(data)}
;
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4583da3..bbe6824 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -28,25 +28,25 @@ importers:
apps/demo:
dependencies:
'@vyuh/react-core':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../packages/react-core
'@vyuh/react-extension-content':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../packages/react-extension-content
'@vyuh/react-feature-auth':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../features/auth/react-feature-auth
'@vyuh/react-feature-blog':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../features/blog/react-feature-blog
'@vyuh/react-feature-marketing':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../features/marketing/react-feature-marketing
'@vyuh/react-feature-system':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../packages/react-feature-system
'@vyuh/react-plugin-content-provider-sanity':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../packages/react-plugin-content-provider-sanity
class-variance-authority:
specifier: ^0.7.1
@@ -59,7 +59,7 @@ importers:
version: 0.482.0(react@19.1.0)
next:
specifier: ^15.2.5
- version: 15.2.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
+ version: 15.2.5(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
react:
specifier: ^19.1.0
version: 19.1.0
@@ -119,13 +119,13 @@ importers:
specifier: ^1.28.5
version: 1.28.5(@emotion/is-prop-valid@1.2.2)(@types/node@22.14.0)(@types/react@19.1.0)(jiti@2.4.2)(lightningcss@1.29.2)(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(yaml@2.7.1)
'@vyuh/sanity-schema-blog':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../features/blog/sanity-schema-blog
'@vyuh/sanity-schema-core':
specifier: ^2.0.1
version: 2.0.1(@emotion/is-prop-valid@1.2.2)(@types/node@22.14.0)(@types/react@19.1.0)(jiti@2.4.2)(lightningcss@1.29.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(yaml@2.7.1)
'@vyuh/sanity-schema-marketing':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../features/marketing/sanity-schema-marketing
'@vyuh/sanity-schema-system':
specifier: ^2.0.1
@@ -165,13 +165,13 @@ importers:
features/auth/react-feature-auth:
dependencies:
'@vyuh/react-core':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../../packages/react-core
'@vyuh/react-extension-content':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../../packages/react-extension-content
'@vyuh/react-feature-system':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../../packages/react-feature-system
lucide-react:
specifier: ^0.482.0
@@ -238,13 +238,13 @@ importers:
features/blog/react-feature-blog:
dependencies:
'@vyuh/react-core':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../../packages/react-core
'@vyuh/react-extension-content':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../../packages/react-extension-content
'@vyuh/react-feature-system':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../../packages/react-feature-system
lucide-react:
specifier: ^0.482.0
@@ -363,13 +363,13 @@ importers:
features/marketing/react-feature-marketing:
dependencies:
'@vyuh/react-core':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../../packages/react-core
'@vyuh/react-extension-content':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../../packages/react-extension-content
'@vyuh/react-feature-system':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../../../packages/react-feature-system
lucide-react:
specifier: ^0.482.0
@@ -552,7 +552,7 @@ importers:
packages/react-extension-content:
dependencies:
'@vyuh/react-core':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../react-core
lucide-react:
specifier: ^0.482.0
@@ -622,10 +622,10 @@ importers:
specifier: ^1.2.0
version: 1.2.0(@types/react@19.1.0)(react@19.1.0)
'@vyuh/react-core':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../react-core
'@vyuh/react-extension-content':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../react-extension-content
class-variance-authority:
specifier: ^0.7.1
@@ -713,11 +713,11 @@ importers:
specifier: 0.0.0-rc.3
version: 0.0.0-rc.3(@sanity/color@3.0.6)(@types/react@19.1.0)(immer@10.1.1)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(use-sync-external-store@1.5.0(react@19.1.0))
'@vyuh/react-core':
- specifier: ^0.4.3
+ specifier: ^0.5.1
version: link:../react-core
next-sanity:
specifier: ^9.9.9
- version: 9.9.9(@emotion/is-prop-valid@1.2.2)(@sanity/client@6.28.4)(@sanity/icons@3.7.0(react@19.1.0))(@sanity/types@3.83.0(@types/react@19.1.0))(@sanity/ui@2.15.12(@emotion/is-prop-valid@1.2.2)(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0)))(next@15.2.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(sanity@3.83.0(@emotion/is-prop-valid@1.2.2)(@types/node@22.14.0)(@types/react@19.1.0)(jiti@2.4.2)(lightningcss@1.29.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(yaml@2.7.1))(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
+ version: 9.9.9(@emotion/is-prop-valid@1.2.2)(@sanity/client@6.28.4)(@sanity/icons@3.7.0(react@19.1.0))(@sanity/types@3.83.0(@types/react@19.1.0))(@sanity/ui@2.15.12(@emotion/is-prop-valid@1.2.2)(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0)))(next@15.2.5(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(sanity@3.83.0(@emotion/is-prop-valid@1.2.2)(@types/node@22.14.0)(@types/react@19.1.0)(jiti@2.4.2)(lightningcss@1.29.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(yaml@2.7.1))(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
react:
specifier: ^19.0.0
version: 19.1.0
@@ -9456,7 +9456,7 @@ snapshots:
get-random-values-esm: 1.0.2
lodash: 4.17.21
- '@portabletext/editor@1.45.3(@sanity/schema@3.83.0(@types/react@19.1.0)(debug@4.4.0))(@sanity/types@3.83.0(@types/react@19.1.0))(@types/react@19.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(rxjs@7.8.2)':
+ '@portabletext/editor@1.45.3(@sanity/schema@3.83.0(@types/react@19.1.0)(debug@4.4.0))(@sanity/types@3.83.0(@types/react@19.1.0)(debug@4.4.0))(@types/react@19.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(rxjs@7.8.2)':
dependencies:
'@portabletext/block-tools': 1.1.17(@sanity/types@3.83.0(@types/react@19.1.0)(debug@4.4.0))(@types/react@19.1.0)
'@portabletext/patches': 1.1.3
@@ -9985,28 +9985,28 @@ snapshots:
react: 18.3.1
react-dom: 19.1.0(react@19.1.0)
- '@sanity/insert-menu@1.1.8(@emotion/is-prop-valid@1.2.2)(@sanity/types@3.83.0(@types/react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))':
+ '@sanity/insert-menu@1.1.8(@emotion/is-prop-valid@1.2.2)(@sanity/types@3.83.0(@types/react@19.1.0)(debug@4.4.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))':
dependencies:
- '@sanity/icons': 3.7.0(react@18.3.1)
+ '@sanity/icons': 3.7.0(react@19.1.0)
'@sanity/types': 3.83.0(@types/react@19.1.0)(debug@4.4.0)
- '@sanity/ui': 2.15.12(@emotion/is-prop-valid@1.2.2)(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
+ '@sanity/ui': 2.15.12(@emotion/is-prop-valid@1.2.2)(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
lodash: 4.17.21
- react: 18.3.1
- react-compiler-runtime: 19.0.0-beta-e993439-20250328(react@18.3.1)
+ react: 19.1.0
+ react-compiler-runtime: 19.0.0-beta-e993439-20250328(react@19.1.0)
react-dom: 19.1.0(react@19.1.0)
react-is: 18.3.1
transitivePeerDependencies:
- '@emotion/is-prop-valid'
- styled-components
- '@sanity/insert-menu@1.1.8(@emotion/is-prop-valid@1.2.2)(@sanity/types@3.83.0(@types/react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))':
+ '@sanity/insert-menu@1.1.8(@emotion/is-prop-valid@1.2.2)(@sanity/types@3.83.0(@types/react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))':
dependencies:
- '@sanity/icons': 3.7.0(react@19.1.0)
+ '@sanity/icons': 3.7.0(react@18.3.1)
'@sanity/types': 3.83.0(@types/react@19.1.0)(debug@4.4.0)
- '@sanity/ui': 2.15.12(@emotion/is-prop-valid@1.2.2)(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
+ '@sanity/ui': 2.15.12(@emotion/is-prop-valid@1.2.2)(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@18.3.1)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
lodash: 4.17.21
- react: 19.1.0
- react-compiler-runtime: 19.0.0-beta-e993439-20250328(react@19.1.0)
+ react: 18.3.1
+ react-compiler-runtime: 19.0.0-beta-e993439-20250328(react@18.3.1)
react-dom: 19.1.0(react@19.1.0)
react-is: 18.3.1
transitivePeerDependencies:
@@ -10080,12 +10080,12 @@ snapshots:
- '@types/react'
- supports-color
- '@sanity/next-loader@1.3.9(@sanity/types@3.83.0(@types/react@19.1.0))(next@15.2.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)':
+ '@sanity/next-loader@1.3.9(@sanity/types@3.83.0(@types/react@19.1.0))(next@15.2.5(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)':
dependencies:
'@sanity/client': 6.28.4(debug@4.4.0)
'@sanity/comlink': 3.0.1
'@sanity/presentation-comlink': 1.0.14(@sanity/client@6.28.4)(@sanity/types@3.83.0(@types/react@19.1.0)(debug@4.4.0))
- next: 15.2.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
+ next: 15.2.5(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
react: 19.1.0
use-effect-event: 1.0.2(react@19.1.0)
transitivePeerDependencies:
@@ -10365,11 +10365,11 @@ snapshots:
optionalDependencies:
'@sanity/types': 3.83.0(@types/react@19.1.0)(debug@4.4.0)
- '@sanity/visual-editing@2.13.15(@emotion/is-prop-valid@1.2.2)(@sanity/client@6.28.4)(@sanity/types@3.83.0(@types/react@19.1.0))(next@15.2.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))':
+ '@sanity/visual-editing@2.13.15(@emotion/is-prop-valid@1.2.2)(@sanity/client@6.28.4)(@sanity/types@3.83.0(@types/react@19.1.0))(next@15.2.5(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))':
dependencies:
'@sanity/comlink': 3.0.1
'@sanity/icons': 3.7.0(react@19.1.0)
- '@sanity/insert-menu': 1.1.8(@emotion/is-prop-valid@1.2.2)(@sanity/types@3.83.0(@types/react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
+ '@sanity/insert-menu': 1.1.8(@emotion/is-prop-valid@1.2.2)(@sanity/types@3.83.0(@types/react@19.1.0)(debug@4.4.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
'@sanity/mutate': 0.11.0-canary.4(xstate@5.19.2)
'@sanity/presentation-comlink': 1.0.14(@sanity/client@6.28.4)(@sanity/types@3.83.0(@types/react@19.1.0)(debug@4.4.0))
'@sanity/preview-url-secret': 2.1.7(@sanity/client@6.28.4)
@@ -10389,7 +10389,7 @@ snapshots:
xstate: 5.19.2
optionalDependencies:
'@sanity/client': 6.28.4(debug@4.4.0)
- next: 15.2.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
+ next: 15.2.5(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
transitivePeerDependencies:
- '@emotion/is-prop-valid'
- '@sanity/types'
@@ -13599,20 +13599,20 @@ snapshots:
negotiator@0.6.3: {}
- next-sanity@9.9.9(@emotion/is-prop-valid@1.2.2)(@sanity/client@6.28.4)(@sanity/icons@3.7.0(react@19.1.0))(@sanity/types@3.83.0(@types/react@19.1.0))(@sanity/ui@2.15.12(@emotion/is-prop-valid@1.2.2)(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0)))(next@15.2.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(sanity@3.83.0(@emotion/is-prop-valid@1.2.2)(@types/node@22.14.0)(@types/react@19.1.0)(jiti@2.4.2)(lightningcss@1.29.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(yaml@2.7.1))(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0)):
+ next-sanity@9.9.9(@emotion/is-prop-valid@1.2.2)(@sanity/client@6.28.4)(@sanity/icons@3.7.0(react@19.1.0))(@sanity/types@3.83.0(@types/react@19.1.0))(@sanity/ui@2.15.12(@emotion/is-prop-valid@1.2.2)(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0)))(next@15.2.5(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(sanity@3.83.0(@emotion/is-prop-valid@1.2.2)(@types/node@22.14.0)(@types/react@19.1.0)(jiti@2.4.2)(lightningcss@1.29.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(yaml@2.7.1))(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0)):
dependencies:
'@portabletext/react': 3.2.1(react@19.1.0)
'@sanity/client': 6.28.4(debug@4.4.0)
'@sanity/icons': 3.7.0(react@19.1.0)
- '@sanity/next-loader': 1.3.9(@sanity/types@3.83.0(@types/react@19.1.0))(next@15.2.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)
+ '@sanity/next-loader': 1.3.9(@sanity/types@3.83.0(@types/react@19.1.0))(next@15.2.5(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)
'@sanity/preview-kit': 6.0.6(@sanity/client@6.28.4)(@sanity/types@3.83.0(@types/react@19.1.0))(react@19.1.0)
'@sanity/preview-url-secret': 2.1.7(@sanity/client@6.28.4)
'@sanity/types': 3.83.0(@types/react@19.1.0)(debug@4.4.0)
'@sanity/ui': 2.15.12(@emotion/is-prop-valid@1.2.2)(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
- '@sanity/visual-editing': 2.13.15(@emotion/is-prop-valid@1.2.2)(@sanity/client@6.28.4)(@sanity/types@3.83.0(@types/react@19.1.0))(next@15.2.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
+ '@sanity/visual-editing': 2.13.15(@emotion/is-prop-valid@1.2.2)(@sanity/client@6.28.4)(@sanity/types@3.83.0(@types/react@19.1.0))(next@15.2.5(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
groq: 3.83.0
history: 5.3.0
- next: 15.2.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
+ next: 15.2.5(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
react: 19.1.0
sanity: 3.83.0(@emotion/is-prop-valid@1.2.2)(@types/node@22.14.0)(@types/react@19.1.0)(jiti@2.4.2)(lightningcss@1.29.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(yaml@2.7.1)
styled-components: 6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
@@ -13626,7 +13626,7 @@ snapshots:
- react-router
- svelte
- next@15.2.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0):
+ next@15.2.5(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0):
dependencies:
'@next/env': 15.2.5
'@swc/counter': 0.1.3
@@ -13636,7 +13636,7 @@ snapshots:
postcss: 8.4.31
react: 19.1.0
react-dom: 19.1.0(react@19.1.0)
- styled-jsx: 5.1.6(react@19.1.0)
+ styled-jsx: 5.1.6(@babel/core@7.26.10)(react@19.1.0)
optionalDependencies:
'@next/swc-darwin-arm64': 15.2.5
'@next/swc-darwin-x64': 15.2.5
@@ -14708,7 +14708,7 @@ snapshots:
'@dnd-kit/utilities': 3.2.2(react@19.1.0)
'@juggle/resize-observer': 3.4.0
'@portabletext/block-tools': 1.1.17(@sanity/types@3.83.0(@types/react@19.1.0)(debug@4.4.0))(@types/react@19.1.0)
- '@portabletext/editor': 1.45.3(@sanity/schema@3.83.0(@types/react@19.1.0)(debug@4.4.0))(@sanity/types@3.83.0(@types/react@19.1.0))(@types/react@19.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(rxjs@7.8.2)
+ '@portabletext/editor': 1.45.3(@sanity/schema@3.83.0(@types/react@19.1.0)(debug@4.4.0))(@sanity/types@3.83.0(@types/react@19.1.0)(debug@4.4.0))(@types/react@19.1.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(rxjs@7.8.2)
'@portabletext/react': 3.2.1(react@19.1.0)
'@portabletext/toolkit': 2.0.17
'@rexxars/react-json-inspector': 9.0.1(react@19.1.0)
@@ -14726,7 +14726,7 @@ snapshots:
'@sanity/icons': 3.7.0(react@19.1.0)
'@sanity/image-url': 1.1.0
'@sanity/import': 3.38.2(@types/react@19.1.0)
- '@sanity/insert-menu': 1.1.8(@emotion/is-prop-valid@1.2.2)(@sanity/types@3.83.0(@types/react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
+ '@sanity/insert-menu': 1.1.8(@emotion/is-prop-valid@1.2.2)(@sanity/types@3.83.0(@types/react@19.1.0)(debug@4.4.0))(react-dom@19.1.0(react@19.1.0))(react-is@18.3.1)(react@19.1.0)(styled-components@6.1.17(react-dom@19.1.0(react@19.1.0))(react@19.1.0))
'@sanity/logos': 2.1.13(@sanity/color@3.0.6)(react@19.1.0)
'@sanity/migrate': 3.83.0(@types/react@19.1.0)
'@sanity/mutator': 3.83.0(@types/react@19.1.0)
@@ -15234,10 +15234,12 @@ snapshots:
stylis: 4.3.2
tslib: 2.6.2
- styled-jsx@5.1.6(react@19.1.0):
+ styled-jsx@5.1.6(@babel/core@7.26.10)(react@19.1.0):
dependencies:
client-only: 0.0.1
react: 19.1.0
+ optionalDependencies:
+ '@babel/core': 7.26.10
stylis@4.2.0: {}