@tandem-language-exchange/content-store 1.2.23 → 1.2.24

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.
@@ -1,5 +1,10 @@
1
1
  // src/sanity-studio.node.ts
2
- var StudioPage = () => null;
2
+ import { createElement } from "react";
3
+ function StudioPage() {
4
+ return createElement("div", {
5
+ style: { height: "100vh", background: "#101112" }
6
+ });
7
+ }
3
8
  export {
4
9
  StudioPage
5
10
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/sanity-studio.node.ts"],"sourcesContent":["/**\n * Server-side stub for StudioPage.\n * The real component is client-only; this prevents Node.js from trying to\n * resolve browser-only dependencies (next/dynamic, react-dropzone, etc.) during SSR.\n */\nconst StudioPage = () => null;\n\nexport { StudioPage };\nexport type { StudioPageProps } from './client/sanity/studio';\n"],"mappings":";AAKA,IAAM,aAAa,MAAM;","names":[]}
1
+ {"version":3,"sources":["../src/sanity-studio.node.ts"],"sourcesContent":["/**\n * Server-side stub for StudioPage.\n * The real component is client-only; this prevents Node.js from trying to\n * resolve browser-only dependencies (react-dropzone, etc.) during SSR.\n * Returns the same loading placeholder as the client component for hydration parity.\n */\nimport { createElement } from 'react';\n\nexport function StudioPage() {\n return createElement('div', {\n style: { height: '100vh', background: '#101112' },\n });\n}\n"],"mappings":";AAMA,SAAS,qBAAqB;AAEvB,SAAS,aAAa;AACzB,SAAO,cAAc,OAAO;AAAA,IACxB,OAAO,EAAE,QAAQ,SAAS,YAAY,UAAU;AAAA,EACpD,CAAC;AACL;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tandem-language-exchange/content-store",
3
- "version": "1.2.23",
3
+ "version": "1.2.24",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,14 +0,0 @@
1
- import { WorkspaceOptions } from 'sanity';
2
-
3
- interface StudioPageProps {
4
- config?: Partial<WorkspaceOptions>;
5
- }
6
-
7
- /**
8
- * Server-side stub for StudioPage.
9
- * The real component is client-only; this prevents Node.js from trying to
10
- * resolve browser-only dependencies (next/dynamic, react-dropzone, etc.) during SSR.
11
- */
12
- declare const StudioPage: () => null;
13
-
14
- export { StudioPage, type StudioPageProps };