@contentbit/studio 0.6.0 → 0.7.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.
- package/README.md +5 -1
- package/dist/client/assets/api-BX-WUPtV.js +1 -0
- package/dist/client/assets/document-BOMp4_F5.js +65 -0
- package/dist/client/assets/index-C0ybJ4zQ.js +12 -0
- package/dist/client/assets/routes-ACKdIhYm.js +1 -0
- package/dist/client/assets/styles-DogO4Wcf.css +2 -0
- package/dist/server/assets/{_tanstack-start-manifest_v-BSt6T4tK.js → _tanstack-start-manifest_v-BC1PNuB0.js} +4 -4
- package/dist/server/assets/{document-DlS34LM6.js → document-BB_UYqNL.js} +1 -1
- package/dist/server/assets/document-DSV89Ser.js +4704 -0
- package/dist/server/assets/{empty-plugin-adapters-DKUlnwwl.js → empty-plugin-adapters-De7E1vAI.js} +1 -1
- package/dist/server/assets/{router-734kIJxk.js → router-BJiN6b7L.js} +2 -2
- package/dist/server/assets/{start-q50h9Mc3.js → start-m8EQRpUf.js} +1 -1
- package/dist/server/index.js +475 -126
- package/dist/server/preview.d.ts +2 -2
- package/dist/server/server.js +57 -48
- package/dist/server/types.d.ts +1 -1
- package/dist/server/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/routes/document.tsx +261 -29
- package/src/server/preview.ts +2 -2
- package/src/server/scan.test.ts +61 -1
- package/src/server/types.ts +1 -1
- package/dist/client/assets/api-DbvlDnoO.js +0 -1
- package/dist/client/assets/document-RcoEgi0r.js +0 -1
- package/dist/client/assets/index-BOeG6kVU.js +0 -12
- package/dist/client/assets/routes-cJNV3NIG.js +0 -1
- package/dist/client/assets/styles-DxZJz8Oi.css +0 -2
- package/dist/server/api.js +0 -47
- package/dist/server/assets/document-G8TsI311.js +0 -299
- package/dist/server/preview.js +0 -19
- package/dist/server/scan.js +0 -214
- package/dist/server/types.js +0 -1
package/dist/server/server.js
CHANGED
|
@@ -4,12 +4,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
import { defineHandlerCallback, renderRouterToStream } from "@tanstack/react-router/ssr/server";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { PassThrough, Readable } from "node:stream";
|
|
7
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-start-server@1.167.
|
|
7
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-start-server@1.167.21_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-start-server/dist/esm/StartServer.js
|
|
8
8
|
function StartServer(props) {
|
|
9
9
|
return /* @__PURE__ */ jsx(RouterProvider, { router: props.router });
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-start-server@1.167.
|
|
12
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-start-server@1.167.21_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-start-server/dist/esm/defaultStreamHandler.js
|
|
13
13
|
var defaultStreamHandler = defineHandlerCallback(({ request, router, responseHeaders }) => renderRouterToStream({
|
|
14
14
|
request,
|
|
15
15
|
router,
|
|
@@ -550,7 +550,7 @@ function errorResponse(error, debug, errHeaders) {
|
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
552
|
//#endregion
|
|
553
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.
|
|
553
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/request-response.js
|
|
554
554
|
var GLOBAL_EVENT_STORAGE_KEY = Symbol.for("tanstack-start:event-storage");
|
|
555
555
|
var globalObj$1 = globalThis;
|
|
556
556
|
if (!globalObj$1[GLOBAL_EVENT_STORAGE_KEY]) globalObj$1[GLOBAL_EVENT_STORAGE_KEY] = new AsyncLocalStorage();
|
|
@@ -605,17 +605,26 @@ function getResponse() {
|
|
|
605
605
|
return getH3Event().res;
|
|
606
606
|
}
|
|
607
607
|
//#endregion
|
|
608
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.
|
|
608
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/constants.js
|
|
609
609
|
var HEADERS = { TSS_SHELL: "X-TSS_SHELL" };
|
|
610
610
|
//#endregion
|
|
611
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
611
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/utils.js
|
|
612
612
|
/**
|
|
613
|
-
*
|
|
614
|
-
*
|
|
615
|
-
*
|
|
613
|
+
* Re-encode characters that are unsafe in URL paths.
|
|
614
|
+
* Includes ASCII control characters (0x00-0x1F, 0x7F) and a subset of the
|
|
615
|
+
* WHATWG URL "path percent-encode set" (", <, >, `, {, }).
|
|
616
|
+
*
|
|
617
|
+
* Space (0x20) is intentionally excluded — decodeURI decodes %20 to space
|
|
618
|
+
* and the router stores decoded spaces in location.pathname. The existing
|
|
619
|
+
* encodePathLikeUrl already handles re-encoding spaces for outgoing URLs.
|
|
620
|
+
*
|
|
621
|
+
* These characters are decoded by decodeURI but must remain percent-encoded
|
|
622
|
+
* in paths to match how upstream layers (CDNs, edge middleware, browsers)
|
|
623
|
+
* interpret the URL, preventing infinite redirect loops and path mismatches.
|
|
616
624
|
*/
|
|
625
|
+
var PATH_UNSAFE_RE = /[\x00-\x1f\x7f"<>`{}]/g;
|
|
617
626
|
function sanitizePathSegment(segment) {
|
|
618
|
-
return segment.replace(
|
|
627
|
+
return segment.replace(PATH_UNSAFE_RE, (ch) => "%" + ch.charCodeAt(0).toString(16).toUpperCase().padStart(2, "0"));
|
|
619
628
|
}
|
|
620
629
|
function decodeSegment(segment) {
|
|
621
630
|
let decoded;
|
|
@@ -661,12 +670,12 @@ function decodePath(path) {
|
|
|
661
670
|
};
|
|
662
671
|
}
|
|
663
672
|
//#endregion
|
|
664
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
673
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/invariant.js
|
|
665
674
|
function invariant() {
|
|
666
675
|
throw new Error("Invariant failed");
|
|
667
676
|
}
|
|
668
677
|
//#endregion
|
|
669
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
678
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/lru-cache.js
|
|
670
679
|
function createLRUCache(max) {
|
|
671
680
|
const cache = /* @__PURE__ */ new Map();
|
|
672
681
|
let oldest;
|
|
@@ -733,17 +742,17 @@ function createLRUCache(max) {
|
|
|
733
742
|
};
|
|
734
743
|
}
|
|
735
744
|
//#endregion
|
|
736
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
745
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/not-found.js
|
|
737
746
|
/** Determine if a value is a TanStack Router not-found error. */
|
|
738
747
|
function isNotFound(obj) {
|
|
739
748
|
return obj?.isNotFound === true;
|
|
740
749
|
}
|
|
741
750
|
//#endregion
|
|
742
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
751
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/root.js
|
|
743
752
|
/** Stable identifier used for the root route in a route tree. */
|
|
744
753
|
var rootRouteId = "__root__";
|
|
745
754
|
//#endregion
|
|
746
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
755
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/redirect.js
|
|
747
756
|
/** Check whether a value is a TanStack Router redirect Response. */
|
|
748
757
|
/** Check whether a value is a TanStack Router redirect Response. */
|
|
749
758
|
function isRedirect(obj) {
|
|
@@ -755,7 +764,7 @@ function isResolvedRedirect(obj) {
|
|
|
755
764
|
return isRedirect(obj) && !!obj.options.href;
|
|
756
765
|
}
|
|
757
766
|
//#endregion
|
|
758
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
767
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/rewrite.js
|
|
759
768
|
/** Execute a location input rewrite if provided. */
|
|
760
769
|
function executeRewriteInput(rewrite, url) {
|
|
761
770
|
const res = rewrite?.input?.({ url });
|
|
@@ -976,7 +985,7 @@ function createRandomKey() {
|
|
|
976
985
|
return (Math.random() + 1).toString(36).substring(7);
|
|
977
986
|
}
|
|
978
987
|
//#endregion
|
|
979
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
988
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/manifest.js
|
|
980
989
|
function getAssetCrossOrigin(assetCrossOrigin, kind) {
|
|
981
990
|
if (!assetCrossOrigin) return;
|
|
982
991
|
if (typeof assetCrossOrigin === "string") return assetCrossOrigin;
|
|
@@ -1024,7 +1033,7 @@ function createInlineCssPlaceholderAsset() {
|
|
|
1024
1033
|
return { attrs: { suppressHydrationWarning: true } };
|
|
1025
1034
|
}
|
|
1026
1035
|
//#endregion
|
|
1027
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
1036
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/constants.js
|
|
1028
1037
|
var GLOBAL_TSR = "$_TSR";
|
|
1029
1038
|
var TSR_SCRIPT_BARRIER_ID = "$tsr-stream-barrier";
|
|
1030
1039
|
//#endregion
|
|
@@ -2969,7 +2978,7 @@ function Pu(e, r = {}) {
|
|
|
2969
2978
|
}), e.t);
|
|
2970
2979
|
}
|
|
2971
2980
|
//#endregion
|
|
2972
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
2981
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/transformer.js
|
|
2973
2982
|
/**
|
|
2974
2983
|
* Create a strongly-typed serialization adapter for SSR hydration.
|
|
2975
2984
|
* Use to register custom types with the router serializer.
|
|
@@ -3017,7 +3026,7 @@ function makeSerovalPlugin(serializationAdapter) {
|
|
|
3017
3026
|
});
|
|
3018
3027
|
}
|
|
3019
3028
|
//#endregion
|
|
3020
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
3029
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/RawStream.js
|
|
3021
3030
|
/**
|
|
3022
3031
|
* Marker class for ReadableStream<Uint8Array> that should be serialized
|
|
3023
3032
|
* with base64 encoding (SSR) or binary framing (server functions).
|
|
@@ -3285,7 +3294,7 @@ function createRawStreamRPCPlugin(onRawStream) {
|
|
|
3285
3294
|
});
|
|
3286
3295
|
}
|
|
3287
3296
|
//#endregion
|
|
3288
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
3297
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/ShallowErrorPlugin.js
|
|
3289
3298
|
/**
|
|
3290
3299
|
* this plugin serializes only the `message` part of an Error
|
|
3291
3300
|
* this helps with serializing e.g. a ZodError which has functions attached that cannot be serialized
|
|
@@ -3365,7 +3374,7 @@ function w(e) {
|
|
|
3365
3374
|
return t().catch(() => {}), r;
|
|
3366
3375
|
}
|
|
3367
3376
|
//#endregion
|
|
3368
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
3377
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/seroval-plugins.js
|
|
3369
3378
|
var defaultSerovalPlugins = [
|
|
3370
3379
|
ShallowErrorPlugin,
|
|
3371
3380
|
RawStreamSSRPlugin,
|
|
@@ -3404,7 +3413,7 @@ var defaultSerovalPlugins = [
|
|
|
3404
3413
|
})
|
|
3405
3414
|
];
|
|
3406
3415
|
//#endregion
|
|
3407
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.
|
|
3416
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/router-manifest.js
|
|
3408
3417
|
/**
|
|
3409
3418
|
* @description Returns the router manifest data that should be sent to the client.
|
|
3410
3419
|
* This includes only the assets and preloads for the current route and any
|
|
@@ -3415,7 +3424,7 @@ var defaultSerovalPlugins = [
|
|
|
3415
3424
|
* the dev styles URL for route-scoped CSS collection.
|
|
3416
3425
|
*/
|
|
3417
3426
|
async function getStartManifest(matchedRoutes) {
|
|
3418
|
-
const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-
|
|
3427
|
+
const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-BC1PNuB0.js");
|
|
3419
3428
|
const startManifest = tsrStartManifest();
|
|
3420
3429
|
let routes = startManifest.routes;
|
|
3421
3430
|
routes[rootRouteId];
|
|
@@ -3447,7 +3456,7 @@ async function getServerFnById(id, access) {
|
|
|
3447
3456
|
return action;
|
|
3448
3457
|
}
|
|
3449
3458
|
//#endregion
|
|
3450
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.
|
|
3459
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/constants.js
|
|
3451
3460
|
var TSS_FORMDATA_CONTEXT = "__TSS_CONTEXT";
|
|
3452
3461
|
var TSS_SERVER_FUNCTION = Symbol.for("TSS_SERVER_FUNCTION");
|
|
3453
3462
|
var X_TSS_SERIALIZED = "x-tss-serialized";
|
|
@@ -3470,7 +3479,7 @@ var FrameType = {
|
|
|
3470
3479
|
/** Full Content-Type header value with version parameter */
|
|
3471
3480
|
var TSS_CONTENT_TYPE_FRAMED_VERSIONED = `${TSS_CONTENT_TYPE_FRAMED}; v=1`;
|
|
3472
3481
|
//#endregion
|
|
3473
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.
|
|
3482
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/safeObjectMerge.js
|
|
3474
3483
|
function isSafeKey(key) {
|
|
3475
3484
|
return key !== "__proto__" && key !== "constructor" && key !== "prototype";
|
|
3476
3485
|
}
|
|
@@ -3497,7 +3506,7 @@ function createNullProtoObject(source) {
|
|
|
3497
3506
|
return obj;
|
|
3498
3507
|
}
|
|
3499
3508
|
//#endregion
|
|
3500
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-storage-context@1.167.
|
|
3509
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-storage-context@1.167.16/node_modules/@tanstack/start-storage-context/dist/esm/async-local-storage.js
|
|
3501
3510
|
var GLOBAL_STORAGE_KEY = Symbol.for("tanstack-start:start-storage-context");
|
|
3502
3511
|
var globalObj = globalThis;
|
|
3503
3512
|
if (!globalObj[GLOBAL_STORAGE_KEY]) globalObj[GLOBAL_STORAGE_KEY] = new AsyncLocalStorage();
|
|
@@ -3511,7 +3520,7 @@ function getStartContext(opts) {
|
|
|
3511
3520
|
return context;
|
|
3512
3521
|
}
|
|
3513
3522
|
//#endregion
|
|
3514
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.
|
|
3523
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/getStartOptions.js
|
|
3515
3524
|
var getStartOptions = () => getStartContext().startOptions;
|
|
3516
3525
|
//#endregion
|
|
3517
3526
|
//#region ../../node_modules/.pnpm/cookie-es@3.1.1/node_modules/cookie-es/dist/index.mjs
|
|
@@ -3557,7 +3566,7 @@ function splitSetCookieString(cookiesString) {
|
|
|
3557
3566
|
return cookiesStrings;
|
|
3558
3567
|
}
|
|
3559
3568
|
//#endregion
|
|
3560
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
3569
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/headers.js
|
|
3561
3570
|
function toHeadersInstance(init) {
|
|
3562
3571
|
if (init instanceof Headers) return init;
|
|
3563
3572
|
else if (Array.isArray(init)) return new Headers(init);
|
|
@@ -3574,12 +3583,12 @@ function mergeHeaders(...headers) {
|
|
|
3574
3583
|
}, new Headers());
|
|
3575
3584
|
}
|
|
3576
3585
|
//#endregion
|
|
3577
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
3586
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/ssr-match-id.js
|
|
3578
3587
|
function dehydrateSsrMatchId(id) {
|
|
3579
3588
|
return id.replaceAll("/", "\0");
|
|
3580
3589
|
}
|
|
3581
3590
|
//#endregion
|
|
3582
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.
|
|
3591
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/createServerFn.js
|
|
3583
3592
|
function flattenMiddlewares(middlewares, maxDepth = 100) {
|
|
3584
3593
|
const seen = /* @__PURE__ */ new Set();
|
|
3585
3594
|
const flattened = [];
|
|
@@ -3597,7 +3606,7 @@ function flattenMiddlewares(middlewares, maxDepth = 100) {
|
|
|
3597
3606
|
return flattened;
|
|
3598
3607
|
}
|
|
3599
3608
|
//#endregion
|
|
3600
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.
|
|
3609
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/createMiddleware.js
|
|
3601
3610
|
var createMiddleware = (options, __opts) => {
|
|
3602
3611
|
const resolvedOptions = {
|
|
3603
3612
|
type: "request",
|
|
@@ -3625,7 +3634,7 @@ var createMiddleware = (options, __opts) => {
|
|
|
3625
3634
|
};
|
|
3626
3635
|
};
|
|
3627
3636
|
//#endregion
|
|
3628
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.
|
|
3637
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/createCsrfMiddleware.js
|
|
3629
3638
|
var innerCreateCsrfMiddleware = (opts = {}) => {
|
|
3630
3639
|
return createMiddleware().server(async (ctx) => {
|
|
3631
3640
|
const csrfCtx = ctx;
|
|
@@ -3680,12 +3689,12 @@ async function getFailureResponse(opts, ctx) {
|
|
|
3680
3689
|
return opts.failureResponse?.clone() ?? new Response("Forbidden", { status: 403 });
|
|
3681
3690
|
}
|
|
3682
3691
|
//#endregion
|
|
3683
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.
|
|
3692
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.13/node_modules/@tanstack/start-client-core/dist/esm/getDefaultSerovalPlugins.js
|
|
3684
3693
|
function getDefaultSerovalPlugins() {
|
|
3685
3694
|
return [...(getStartOptions()?.serializationAdapters)?.map(makeSerovalPlugin) ?? [], ...defaultSerovalPlugins];
|
|
3686
3695
|
}
|
|
3687
3696
|
//#endregion
|
|
3688
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.
|
|
3697
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/frame-protocol.js
|
|
3689
3698
|
/**
|
|
3690
3699
|
* Binary frame protocol for multiplexing JSON and raw streams over HTTP.
|
|
3691
3700
|
*
|
|
@@ -3847,7 +3856,7 @@ function createMultiplexedStream(jsonStream, rawStreams, lateStreamSource) {
|
|
|
3847
3856
|
});
|
|
3848
3857
|
}
|
|
3849
3858
|
//#endregion
|
|
3850
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.
|
|
3859
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/server-functions-handler.js
|
|
3851
3860
|
var serovalPlugins = void 0;
|
|
3852
3861
|
var FORM_DATA_CONTENT_TYPES = ["multipart/form-data", "application/x-www-form-urlencoded"];
|
|
3853
3862
|
var MAX_PAYLOAD_SIZE = 1e6;
|
|
@@ -4049,7 +4058,7 @@ function isNotFoundResponse(error) {
|
|
|
4049
4058
|
});
|
|
4050
4059
|
}
|
|
4051
4060
|
//#endregion
|
|
4052
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.
|
|
4061
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/early-hints.js
|
|
4053
4062
|
var LINK_PARAM_TOKEN_RE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
4054
4063
|
var PRELOAD_AS_VALUES = new Set([
|
|
4055
4064
|
"fetch",
|
|
@@ -4299,7 +4308,7 @@ function createEarlyHintsCollector(opts) {
|
|
|
4299
4308
|
};
|
|
4300
4309
|
}
|
|
4301
4310
|
//#endregion
|
|
4302
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.
|
|
4311
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/transformAssetUrls.js
|
|
4303
4312
|
function normalizeTransformAssetResult(result) {
|
|
4304
4313
|
if (typeof result === "string") return { href: result };
|
|
4305
4314
|
return result;
|
|
@@ -4458,7 +4467,7 @@ function buildManifest(source, opts) {
|
|
|
4458
4467
|
};
|
|
4459
4468
|
}
|
|
4460
4469
|
//#endregion
|
|
4461
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.
|
|
4470
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/inlineCss.js
|
|
4462
4471
|
function getStaticHandlerInlineCssDefault(handlerInlineCss) {
|
|
4463
4472
|
if (typeof handlerInlineCss === "function") return;
|
|
4464
4473
|
return handlerInlineCss ?? true;
|
|
@@ -4469,7 +4478,7 @@ async function resolveInlineCssForRequest(opts) {
|
|
|
4469
4478
|
return opts.handlerInlineCss ?? true;
|
|
4470
4479
|
}
|
|
4471
4480
|
//#endregion
|
|
4472
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.
|
|
4481
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/finalManifest.js
|
|
4473
4482
|
function createCachedBaseManifestLoader(loadBaseManifest) {
|
|
4474
4483
|
let baseManifestPromise;
|
|
4475
4484
|
return () => {
|
|
@@ -4590,7 +4599,7 @@ function warmupFinalManifest(opts) {
|
|
|
4590
4599
|
return warmupPromise;
|
|
4591
4600
|
}
|
|
4592
4601
|
//#endregion
|
|
4593
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.
|
|
4602
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/serializer/ServerFunctionSerializationAdapter.js
|
|
4594
4603
|
var ServerFunctionSerializationAdapter = createSerializationAdapter({
|
|
4595
4604
|
key: "$TSS/serverfn",
|
|
4596
4605
|
test: (v) => {
|
|
@@ -4607,10 +4616,10 @@ var ServerFunctionSerializationAdapter = createSerializationAdapter({
|
|
|
4607
4616
|
}
|
|
4608
4617
|
});
|
|
4609
4618
|
//#endregion
|
|
4610
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
4619
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/tsrScript.js
|
|
4611
4620
|
var tsrScript_default = "self.$_TSR={h(){this.hydrated=!0,this.c()},e(){this.streamEnded=!0,this.c()},c(){this.hydrated&&this.streamEnded&&(delete self.$_TSR,delete self.$R.tsr)},p(e){this.initialized?e():this.buffer.push(e)},buffer:[]}";
|
|
4612
4621
|
//#endregion
|
|
4613
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
4622
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/ssr-server.js
|
|
4614
4623
|
var SCOPE_ID = "tsr";
|
|
4615
4624
|
var TSR_PREFIX = GLOBAL_TSR + ".router=";
|
|
4616
4625
|
var P_PREFIX = GLOBAL_TSR + ".p(()=>";
|
|
@@ -5089,7 +5098,7 @@ function getNormalizedURL(url, base) {
|
|
|
5089
5098
|
};
|
|
5090
5099
|
}
|
|
5091
5100
|
//#endregion
|
|
5092
|
-
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.
|
|
5101
|
+
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.14/node_modules/@tanstack/router-core/dist/esm/ssr/handlerCallback.js
|
|
5093
5102
|
function isSsrResponse(value) {
|
|
5094
5103
|
return typeof value === "object" && value !== null && "response" in value && "serverSsrCleanup" in value;
|
|
5095
5104
|
}
|
|
@@ -5116,7 +5125,7 @@ async function stripSsrResponseBody(result, reason) {
|
|
|
5116
5125
|
};
|
|
5117
5126
|
}
|
|
5118
5127
|
//#endregion
|
|
5119
|
-
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.
|
|
5128
|
+
//#region ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/createStartHandler.js
|
|
5120
5129
|
function getStartResponseHeaders(opts) {
|
|
5121
5130
|
return mergeHeaders({ "Content-Type": "text/html; charset=utf-8" }, ...opts.router.stores.matches.get().map((match) => {
|
|
5122
5131
|
return match.headers;
|
|
@@ -5130,9 +5139,9 @@ var getBaseManifest = getProdBaseManifest;
|
|
|
5130
5139
|
var createEarlyHintsForRequest = createEarlyHintsCollector;
|
|
5131
5140
|
async function loadEntries() {
|
|
5132
5141
|
const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
|
|
5133
|
-
import("./assets/router-
|
|
5134
|
-
import("./assets/start-
|
|
5135
|
-
import("./assets/empty-plugin-adapters-
|
|
5142
|
+
import("./assets/router-BJiN6b7L.js"),
|
|
5143
|
+
import("./assets/start-m8EQRpUf.js"),
|
|
5144
|
+
import("./assets/empty-plugin-adapters-De7E1vAI.js")
|
|
5136
5145
|
]);
|
|
5137
5146
|
return {
|
|
5138
5147
|
routerEntry,
|
|
@@ -5508,7 +5517,7 @@ async function handleServerRoutes({ getRouter, request, url, executeRouter, cont
|
|
|
5508
5517
|
return normalizeSsrResponse(response);
|
|
5509
5518
|
}
|
|
5510
5519
|
//#endregion
|
|
5511
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-start@1.168.
|
|
5520
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-start@1.168.27_react-dom@19.2.7_react@19.2.7__react@19.2.7_vite@8.0.16__04ebb5e2b289a20a458eb7b1bb11e27f/node_modules/@tanstack/react-start/dist/plugin/default-entry/server.ts
|
|
5512
5521
|
var fetch$1 = createStartHandler(defaultStreamHandler);
|
|
5513
5522
|
function createServerEntry(entry) {
|
|
5514
5523
|
return { async fetch(...args) {
|
package/dist/server/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { DocumentStats, LinkReference, LinkResolverOptions, SeoBrief } from
|
|
|
2
2
|
import type { BlockComponent } from '@contentbit/react';
|
|
3
3
|
export type StudioSeverity = 'error' | 'warning' | 'info';
|
|
4
4
|
export type StudioStatus = 'error' | 'warning' | 'suggestion' | 'healthy';
|
|
5
|
-
export type StudioFindingSource = 'validation' | 'links' | 'stats' | 'seo';
|
|
5
|
+
export type StudioFindingSource = 'validation' | 'links' | 'stats' | 'integrity' | 'seo';
|
|
6
6
|
export interface StudioFinding {
|
|
7
7
|
severity: StudioSeverity;
|
|
8
8
|
source: StudioFindingSource;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;AACzD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAAA;AACzE,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;AACzD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAAA;AACzE,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,KAAK,CAAA;AAExF,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,cAAc,CAAA;IACxB,MAAM,EAAE,mBAAmB,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,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,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,UAAU,GAAG,YAAY,GAAG,cAAc,GAAG,MAAM,CAAA;CAC5D;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB,KAAK,EAAE,eAAe,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,mBAAmB,CAAA;IACjC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,SAAS,CAAC,CAAA;CAC9E;AAED,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;CACf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentbit/studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Local read-only content studio for contentbit projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -48,10 +48,9 @@
|
|
|
48
48
|
"tinyglobby": "^0.2.10",
|
|
49
49
|
"tw-animate-css": "^1.4.0",
|
|
50
50
|
"vite": "^8",
|
|
51
|
-
"@contentbit/blocks": "0.
|
|
52
|
-
"@contentbit/core": "0.
|
|
53
|
-
"@contentbit/
|
|
54
|
-
"@contentbit/react": "0.6.0"
|
|
51
|
+
"@contentbit/blocks": "0.7.0",
|
|
52
|
+
"@contentbit/core": "0.7.0",
|
|
53
|
+
"@contentbit/react": "0.7.0"
|
|
55
54
|
},
|
|
56
55
|
"devDependencies": {
|
|
57
56
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -59,13 +58,14 @@
|
|
|
59
58
|
"@types/node": "^22",
|
|
60
59
|
"@types/react": "^19",
|
|
61
60
|
"@types/react-dom": "^19",
|
|
61
|
+
"esbuild": "^0.28.0",
|
|
62
62
|
"jsdom": "^28",
|
|
63
63
|
"typescript": "^6",
|
|
64
64
|
"vitest": "^4"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"dev": "vite dev --port 3000",
|
|
68
|
-
"build": "vite build && tsc -p tsconfig.server.json",
|
|
68
|
+
"build": "vite build && tsc -p tsconfig.server.json --emitDeclarationOnly && node build-server.mjs",
|
|
69
69
|
"preview": "vite preview",
|
|
70
70
|
"test": "vitest run",
|
|
71
71
|
"lint": "oxlint",
|