@fuma-content/studio 2.0.1 → 2.0.2
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/build/server/assets/{actions-Dzcz2kMa.js → actions-BzP4tP1M.js} +1 -1
- package/build/server/assets/{actions-uVjtnX4j.js → actions-CaGEqhgl.js} +1 -1
- package/build/server/assets/{actions-DvFESkwQ.js → actions-DpOrh3NH.js} +1 -1
- package/build/server/assets/{config-jP5_BijJ.js → config-Bgujr1_8.js} +2 -2
- package/build/server/assets/{layout-C4scrlw6.js → layout-Dx7HBD_-.js} +1 -1
- package/build/server/assets/{page-DeXk-yzM.js → page-KxRgxZm3.js} +1 -1
- package/build/server/assets/{root-Ck2GLGjf.js → root-CIAi6aCX.js} +1 -1
- package/build/server/index.js +5 -5
- package/dist/package.mjs +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as registerServerReference } from "./rsc-DmPMAgtu.js";
|
|
2
2
|
import "./react.react-server-BF3WVpWq.js";
|
|
3
3
|
import "../index.js";
|
|
4
|
-
import { a as encoderDecoders, i as DataStudioDocument, n as requireDocument, o as getEncoderDecoder, r as studioHook, s as createFileDocument, t as getCore } from "./config-
|
|
4
|
+
import { a as encoderDecoders, i as DataStudioDocument, n as requireDocument, o as getEncoderDecoder, r as studioHook, s as createFileDocument, t as getCore } from "./config-Bgujr1_8.js";
|
|
5
5
|
import "./jsx-runtime.react-server-XfXmk4vM.js";
|
|
6
6
|
import { DataCollection } from "fuma-content/collections/data";
|
|
7
7
|
import { z } from "zod/mini";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as registerServerReference } from "./rsc-DmPMAgtu.js";
|
|
2
2
|
import "./react.react-server-BF3WVpWq.js";
|
|
3
3
|
import "../index.js";
|
|
4
|
-
import { n as requireDocument, r as studioHook } from "./config-
|
|
4
|
+
import { n as requireDocument, r as studioHook } from "./config-Bgujr1_8.js";
|
|
5
5
|
import "./jsx-runtime.react-server-XfXmk4vM.js";
|
|
6
6
|
//#region src/lib/content/actions.ts
|
|
7
7
|
async function deleteDocumentAction(documentId, collectionId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as registerServerReference } from "./rsc-DmPMAgtu.js";
|
|
2
2
|
import "./react.react-server-BF3WVpWq.js";
|
|
3
3
|
import "../index.js";
|
|
4
|
-
import { r as studioHook, s as createFileDocument, t as getCore } from "./config-
|
|
4
|
+
import { r as studioHook, s as createFileDocument, t as getCore } from "./config-Bgujr1_8.js";
|
|
5
5
|
import "./jsx-runtime.react-server-XfXmk4vM.js";
|
|
6
6
|
import { MDXCollection } from "fuma-content/collections/mdx";
|
|
7
7
|
import { z } from "zod/mini";
|
|
@@ -241,7 +241,7 @@ function dataHook(collection) {
|
|
|
241
241
|
}
|
|
242
242
|
//#endregion
|
|
243
243
|
//#region src/lib/content/index.tsx
|
|
244
|
-
var studioHook = defineCollectionHook((collection, options) => {
|
|
244
|
+
var studioHook = defineCollectionHook("studio", (collection, options) => {
|
|
245
245
|
if (options) return options;
|
|
246
246
|
if (collection instanceof MDXCollection) return mdxHook(collection);
|
|
247
247
|
if (collection instanceof DataCollection) return dataHook(collection);
|
|
@@ -291,7 +291,7 @@ global.HOCUSPOCUS_ENV = {
|
|
|
291
291
|
return studioHook;
|
|
292
292
|
},
|
|
293
293
|
async getRootHandler() {
|
|
294
|
-
const { rootHandler } = await import("./root-
|
|
294
|
+
const { rootHandler } = await import("./root-CIAi6aCX.js");
|
|
295
295
|
return rootHandler;
|
|
296
296
|
}
|
|
297
297
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as registerClientReference } from "./rsc-DmPMAgtu.js";
|
|
2
2
|
import "./react.react-server-BF3WVpWq.js";
|
|
3
|
-
import { r as studioHook, t as getCore } from "./config-
|
|
3
|
+
import { r as studioHook, t as getCore } from "./config-Bgujr1_8.js";
|
|
4
4
|
import "./jsx-runtime.react-server-XfXmk4vM.js";
|
|
5
5
|
//#region src/routes/layout.tsx?client-route-module
|
|
6
6
|
var layout_default = /* @__PURE__ */ registerClientReference(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __toESM } from "./chunk-BnRpC7BT.js";
|
|
2
2
|
import { a as registerClientReference } from "./rsc-DmPMAgtu.js";
|
|
3
3
|
import { t as require_react_react_server } from "./react.react-server-BF3WVpWq.js";
|
|
4
|
-
import { n as requireDocument, r as studioHook } from "./config-
|
|
4
|
+
import { n as requireDocument, r as studioHook } from "./config-Bgujr1_8.js";
|
|
5
5
|
import { t as require_jsx_runtime_react_server } from "./jsx-runtime.react-server-XfXmk4vM.js";
|
|
6
6
|
import { t as NotFoundError } from "./root-YSds1YTY.js";
|
|
7
7
|
import assetsManifest from "../__vite_rsc_assets_manifest.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./react.react-server-BF3WVpWq.js";
|
|
2
|
-
import { r as studioHook, t as getCore } from "./config-
|
|
2
|
+
import { r as studioHook, t as getCore } from "./config-Bgujr1_8.js";
|
|
3
3
|
import "./jsx-runtime.react-server-XfXmk4vM.js";
|
|
4
4
|
//#region src/lib/content/root.ts
|
|
5
5
|
var rootHandler = {
|
package/build/server/index.js
CHANGED
|
@@ -6,18 +6,18 @@ import assetsManifest from "./__vite_rsc_assets_manifest.js";
|
|
|
6
6
|
//#region \0virtual:vite-rsc/server-references
|
|
7
7
|
var server_references_default = {
|
|
8
8
|
"77357e96e60e": async () => {
|
|
9
|
-
const { createMDXDocument } = await import("./assets/actions-
|
|
9
|
+
const { createMDXDocument } = await import("./assets/actions-DpOrh3NH.js");
|
|
10
10
|
return { createMDXDocument };
|
|
11
11
|
},
|
|
12
12
|
"8d1aa9feba58": async () => {
|
|
13
|
-
const { createDataDocument, saveDataDocument } = await import("./assets/actions-
|
|
13
|
+
const { createDataDocument, saveDataDocument } = await import("./assets/actions-BzP4tP1M.js");
|
|
14
14
|
return {
|
|
15
15
|
createDataDocument,
|
|
16
16
|
saveDataDocument
|
|
17
17
|
};
|
|
18
18
|
},
|
|
19
19
|
"c9fab40704e2": async () => {
|
|
20
|
-
const { deleteDocumentAction } = await import("./assets/actions-
|
|
20
|
+
const { deleteDocumentAction } = await import("./assets/actions-CaGEqhgl.js");
|
|
21
21
|
return { deleteDocumentAction };
|
|
22
22
|
}
|
|
23
23
|
};
|
|
@@ -2278,7 +2278,7 @@ var routes_default = [{
|
|
|
2278
2278
|
id: "root",
|
|
2279
2279
|
path: "",
|
|
2280
2280
|
children: [{
|
|
2281
|
-
lazy: () => import("./assets/layout-
|
|
2281
|
+
lazy: () => import("./assets/layout-Dx7HBD_-.js"),
|
|
2282
2282
|
id: "../routes/layout",
|
|
2283
2283
|
children: [
|
|
2284
2284
|
{
|
|
@@ -2292,7 +2292,7 @@ var routes_default = [{
|
|
|
2292
2292
|
path: "collection/:name"
|
|
2293
2293
|
},
|
|
2294
2294
|
{
|
|
2295
|
-
lazy: () => import("./assets/page-
|
|
2295
|
+
lazy: () => import("./assets/page-KxRgxZm3.js"),
|
|
2296
2296
|
id: "../routes/collection/document/page",
|
|
2297
2297
|
path: "collection/:name/:id"
|
|
2298
2298
|
},
|
package/dist/package.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fuma-content/studio",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "The studio integration of Fuma Content",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Contentlayer",
|
|
@@ -151,10 +151,10 @@
|
|
|
151
151
|
"vite": "^8.0.0",
|
|
152
152
|
"vite-plugin-babel": "^1.5.1",
|
|
153
153
|
"vite-tsconfig-paths": "^6.1.1",
|
|
154
|
-
"fuma-content": "^1.2.
|
|
154
|
+
"fuma-content": "^1.2.2"
|
|
155
155
|
},
|
|
156
156
|
"peerDependencies": {
|
|
157
|
-
"fuma-content": "^1.2.
|
|
157
|
+
"fuma-content": "^1.2.2"
|
|
158
158
|
},
|
|
159
159
|
"scripts": {
|
|
160
160
|
"dev": "tsdown --watch",
|