From ecfb41c350e08aaa0006b648ae6225658f846d5c Mon Sep 17 00:00:00 2001 From: Nathaniel Tucker Date: Fri, 27 Sep 2024 09:28:55 -0400 Subject: [PATCH] docs: Add Embed and AutoPlayVideo components to website --- docs/rest/guides/optimistic-updates.md | 2 +- packages/endpoint/src/schemas/EntitySchema.ts | 2 +- ...7-v0.13-nextjs-app-router-expogo-native.md | 19 ++---- website/src/components/AutoPlayVideo.tsx | 64 +++++++++++++++++++ website/src/components/Embed.tsx | 35 ++++++++++ 5 files changed, 107 insertions(+), 15 deletions(-) create mode 100644 website/src/components/AutoPlayVideo.tsx create mode 100644 website/src/components/Embed.tsx diff --git a/docs/rest/guides/optimistic-updates.md b/docs/rest/guides/optimistic-updates.md index 0fdc258eaaa2..acbe58d8f205 100644 --- a/docs/rest/guides/optimistic-updates.md +++ b/docs/rest/guides/optimistic-updates.md @@ -98,7 +98,7 @@ export default function CreateTodo({ userId }: { userId: number }) {
diff --git a/packages/endpoint/src/schemas/EntitySchema.ts b/packages/endpoint/src/schemas/EntitySchema.ts index 52e86a745b62..631b1ab01406 100644 --- a/packages/endpoint/src/schemas/EntitySchema.ts +++ b/packages/endpoint/src/schemas/EntitySchema.ts @@ -12,7 +12,7 @@ import { AbstractInstanceType } from '../normal.js'; * Represents data that should be deduped by specifying a primary key. * @see https://dataclient.io/rest/api/schema.Entity */ -export default function EntitySchema( +export default function EntityMixin( Base: TBase, options: EntityOptions> = {}, ) { diff --git a/website/blog/2024-06-17-v0.13-nextjs-app-router-expogo-native.md b/website/blog/2024-06-17-v0.13-nextjs-app-router-expogo-native.md index c5d8161dcb9d..99468d07cc9a 100644 --- a/website/blog/2024-06-17-v0.13-nextjs-app-router-expogo-native.md +++ b/website/blog/2024-06-17-v0.13-nextjs-app-router-expogo-native.md @@ -41,6 +41,7 @@ Version 0.12 was skipped due to a publishing mishap. import Grid from '@site/src/components/Grid'; import TypeScriptEditor from '@site/src/components/TypeScriptEditor'; import DiffEditor from '@site/src/components/DiffEditor'; +import AutoPlayVideo from '@site/src/components/AutoPlayVideo'; ## Platforms @@ -74,13 +75,7 @@ xychart-beta -
- -
- + Data Client performs streaming SSR of the HTML, streamlining the initial application load experience. Uniquely, Data Client is then immediately interactive @@ -117,16 +112,13 @@ export default function RootLayout({ children }) { Full NextJS Guide

-#### Demo +#### Mutations demo -