eddev 2.0.0-beta.148 → 2.0.0-beta.150
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/dist/app/lib/devtools/hooks/useTailwind.d.ts +1177 -133
- package/dist/app/lib/devtools/hooks/useTailwind.d.ts.map +1 -1
- package/dist/app/lib/devtools/useQueryDebug.d.ts +1 -1
- package/dist/app/lib/hooks/index.d.ts +1 -1
- package/dist/app/lib/hooks/index.d.ts.map +1 -1
- package/dist/app/lib/hooks/index.js +1 -1
- package/dist/app/lib/hooks/{queryUtils.d.ts → query-hooks.d.ts} +1 -1
- package/dist/app/lib/hooks/query-hooks.d.ts.map +1 -0
- package/dist/app/lib/hooks/{queryUtils.js → query-hooks.js} +19 -5
- package/dist/app/lib/routing/components/Link.d.ts.map +1 -1
- package/dist/app/lib/runtime/apiConfig.d.ts +4 -0
- package/dist/app/lib/runtime/apiConfig.d.ts.map +1 -1
- package/dist/app/server/render-ssr-page.d.ts +1 -1
- package/dist/app/server/render-ssr-page.d.ts.map +1 -1
- package/dist/app/server/rpc.d.ts +7 -15
- package/dist/app/server/rpc.d.ts.map +1 -1
- package/dist/app/server/server-context.js +1 -1
- package/dist/node/cli/display/hooks/useStatefulLog.d.ts.map +1 -1
- package/dist/node/cli/version.d.ts +1 -1
- package/dist/node/cli/version.js +1 -1
- package/dist/node/compiler/get-vite-config.d.ts.map +1 -1
- package/dist/node/compiler/get-vite-config.js +1 -0
- package/dist/node/compiler/vinxi-codegen.d.ts.map +1 -1
- package/dist/node/compiler/vinxi-codegen.js +4 -0
- package/dist/node/project/config.d.ts +60 -60
- package/dist/node/project/config.js +1 -1
- package/dist/node/types/block-type.d.ts +16 -16
- package/dist/node/types/view-type.d.ts +7 -7
- package/dist/node/utils/fs.d.ts.map +1 -1
- package/dist/node/utils/report-builder.d.ts +6 -6
- package/package.json +1 -1
- package/dist/app/lib/hooks/queryUtils.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAD,CAAC;;;;;;SAD76W"}
|
|
@@ -11,6 +11,6 @@ export declare function useQueryDebugData(): {
|
|
|
11
11
|
readonly errors: readonly string[];
|
|
12
12
|
readonly duration: number;
|
|
13
13
|
readonly label: string;
|
|
14
|
-
readonly children: readonly any[];
|
|
14
|
+
readonly children: readonly /*elided*/ any[];
|
|
15
15
|
} | undefined;
|
|
16
16
|
//# sourceMappingURL=useQueryDebug.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA"}
|
|
@@ -81,4 +81,4 @@ export declare function useRPCMutation<TName extends RPCMutationName>(key: TName
|
|
|
81
81
|
headers?: Record<string, string>;
|
|
82
82
|
}): UseMutationResult<RPCMutationResult<TName>, RPCMutationError<TName>, RPCMutationInput<TName>>;
|
|
83
83
|
export {};
|
|
84
|
-
//# sourceMappingURL=
|
|
84
|
+
//# sourceMappingURL=query-hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-hooks.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/hooks/query-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mCAAmC,EACnC,2BAA2B,EAE3B,sBAAsB,EAEtB,kBAAkB,EAClB,iBAAiB,EAGjB,cAAc,EACf,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAQ9C,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,EAAE,GACpC,CAAC,GACD,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAC9B;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAC/D,CAAC,CAAA;AAEP,KAAK,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,SAAS,CAAA;AAEnD,cAAM,UAAW,SAAQ,KAAK;IAC5B,IAAI,SAAe;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;gBAEN,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,GAAG,UAAU,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE;CAM5G;AAuBD,sBAAsB;AACtB,KAAK,qBA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AAO,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE;IAAE,GAAG,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,OAAO,CAAC,CAAA;AAE/E,KAAK,gBAAgB,CAAC,CAAC,IAAI,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE;IAAE,GAAG,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAA;AAEpG,wBAAgB,cAAc,CAAC,KAAK,SAAS,eAAe,EAC1D,GAAG,EAAE,KAAK,EACV,OAAO,CAAC,EAAE,IAAI,CACZ,kBAAkB,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC,EAC9F,YAAY,CACb,GAAG;IACF,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC,GACA,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAW/F"}
|
|
@@ -18,10 +18,23 @@ class QueryError extends Error {
|
|
|
18
18
|
function useFallbackClient() {
|
|
19
19
|
return useQueryClient(getQueryClient());
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
function getApiKeyHeaders() {
|
|
22
|
+
if (apiConfig.apiKey) {
|
|
23
|
+
return {
|
|
24
|
+
"x-ed-api-key": apiConfig.apiKey,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const fetchQuery = async (name, params, opts) => {
|
|
22
32
|
let url;
|
|
23
33
|
let options = {
|
|
24
|
-
headers:
|
|
34
|
+
headers: {
|
|
35
|
+
...opts?.headers,
|
|
36
|
+
...getApiKeyHeaders(),
|
|
37
|
+
},
|
|
25
38
|
};
|
|
26
39
|
if (env.serverless && env.client) {
|
|
27
40
|
url = `/_data/query/${name}`;
|
|
@@ -57,7 +70,7 @@ export function createUseQuery(init) {
|
|
|
57
70
|
const customKey = apiConfig.customQueryKey;
|
|
58
71
|
return useQuery({
|
|
59
72
|
queryKey: ["query", init.name, args, options?.headers, customKey],
|
|
60
|
-
queryFn: (args) =>
|
|
73
|
+
queryFn: (args) => fetchQuery(init.name, args.queryKey[2] ? JSON.stringify(args.queryKey[2]) : "", {
|
|
61
74
|
headers: options?.headers,
|
|
62
75
|
}),
|
|
63
76
|
...options,
|
|
@@ -67,7 +80,7 @@ export function createUseQuery(init) {
|
|
|
67
80
|
const customKey = apiConfig.customQueryKey;
|
|
68
81
|
return getQueryClient().fetchQuery({
|
|
69
82
|
queryKey: ["query", init.name, args, options?.headers, customKey],
|
|
70
|
-
queryFn: (args) =>
|
|
83
|
+
queryFn: (args) => fetchQuery(init.name, args.queryKey[2] ? JSON.stringify(args.queryKey[2]) : "", {
|
|
71
84
|
headers: options?.headers,
|
|
72
85
|
}),
|
|
73
86
|
...options,
|
|
@@ -110,7 +123,7 @@ export function createUseInfiniteQuery(init) {
|
|
|
110
123
|
...(args.queryKey[2] ?? {}),
|
|
111
124
|
cursor: args.pageParam,
|
|
112
125
|
};
|
|
113
|
-
const data = await
|
|
126
|
+
const data = await fetchQuery(init.name, JSON.stringify(finalArgs), {
|
|
114
127
|
headers: options?.headers,
|
|
115
128
|
});
|
|
116
129
|
const endCursor = selectByPath(data, init.paths.endCursorPath);
|
|
@@ -149,6 +162,7 @@ const fetchMutation = async (name, params, opts) => {
|
|
|
149
162
|
"Content-Type": "application/json",
|
|
150
163
|
Accept: "application/json",
|
|
151
164
|
...opts?.headers,
|
|
165
|
+
...getApiKeyHeaders(),
|
|
152
166
|
},
|
|
153
167
|
body: JSON.stringify(params),
|
|
154
168
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/app/lib/routing/components/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAA;AAS7F,KAAK,KAAK,CAAC,CAAC,SAAS,WAAW,GAAG,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG;IAC1F,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,EAAE,CAAC,EAAE,CAAC,CAAA;IACN,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,IAAI,EA0CX,CAAC,
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/app/lib/routing/components/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAA;AAS7F,KAAK,KAAK,CAAC,CAAC,SAAS,WAAW,GAAG,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG;IAC1F,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,EAAE,CAAC,EAAE,CAAC,CAAA;IACN,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,IAAI,EA0CX,CAAC,CAAC,SAAS,WAAW,GAAG,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,YAAY,CAAA;AAKpE;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;EA6BxC"}
|
|
@@ -18,6 +18,10 @@ export type APIConfigStore = {
|
|
|
18
18
|
*/
|
|
19
19
|
onResponse?: (response: Response, type: "query" | "mutation", queryName: string, queryArgs: any, url: string, opts: RequestInit) => void;
|
|
20
20
|
set: (config: Partial<APIConfigStore>) => void;
|
|
21
|
+
/**
|
|
22
|
+
* WordPress API key, for use on the server only
|
|
23
|
+
**/
|
|
24
|
+
apiKey?: string;
|
|
21
25
|
};
|
|
22
26
|
export declare const apiConfig: APIConfigStore;
|
|
23
27
|
//# sourceMappingURL=apiConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiConfig.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/runtime/apiConfig.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;QAII;IACJ,cAAc,CAAC,EAAE,GAAG,CAAA;IACpB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,CACxB,IAAI,EAAE,OAAO,GAAG,UAAU,EAC1B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,GAAG,EACd,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,WAAW,KACd,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IACvC;;OAEG;IACH,UAAU,CAAC,EAAE,CACX,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,OAAO,GAAG,UAAU,EAC1B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,GAAG,EACd,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,WAAW,KACd,IAAI,CAAA;IACT,GAAG,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"apiConfig.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/runtime/apiConfig.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;QAII;IACJ,cAAc,CAAC,EAAE,GAAG,CAAA;IACpB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,CACxB,IAAI,EAAE,OAAO,GAAG,UAAU,EAC1B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,GAAG,EACd,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,WAAW,KACd,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IACvC;;OAEG;IACH,UAAU,CAAC,EAAE,CACX,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,OAAO,GAAG,UAAU,EAC1B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,GAAG,EACd,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,WAAW,KACd,IAAI,CAAA;IACT,GAAG,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;IAE9C;;QAEI;IACJ,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,SAAS,gBAIpB,CAAA"}
|
|
@@ -4,7 +4,7 @@ type SSRArgs = {
|
|
|
4
4
|
initialData: RouteDataWithTrackers;
|
|
5
5
|
nonce?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function getSsrStream(args: SSRArgs): Promise<ReadableStream<Uint8Array
|
|
7
|
+
export declare function getSsrStream(args: SSRArgs): Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
|
|
8
8
|
type RenderArgs = {
|
|
9
9
|
pathname: string;
|
|
10
10
|
statusCode?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-ssr-page.d.ts","sourceRoot":"","sources":["../../../src/app/server/render-ssr-page.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAOrF,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,qBAAqB,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"render-ssr-page.d.ts","sourceRoot":"","sources":["../../../src/app/server/render-ssr-page.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAOrF,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,qBAAqB,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,OAAO,wDAuH/C;AAED,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CAAA;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC,CA0FpE;AAED,KAAK,mBAAmB,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,GAAG,CAAA;CAChB,GAAG,eAAe,CAAA;AAEnB,wBAAsB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAgBlF;AAED,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAA;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,WAAW,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,UA6B1D"}
|
package/dist/app/server/rpc.d.ts
CHANGED
|
@@ -9,20 +9,12 @@ export declare const rpcApi: {
|
|
|
9
9
|
}>;
|
|
10
10
|
procedure: import("@trpc/server/unstable-core-do-not-import").ProcedureBuilder<RPCContext, object, object, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/unstable-core-do-not-import").unsetMarker, false>;
|
|
11
11
|
middleware: <$ContextOverrides>(fn: import("@trpc/server/unstable-core-do-not-import").MiddlewareFunction<RPCContext, object, object, $ContextOverrides, unknown>) => import("@trpc/server/unstable-core-do-not-import").MiddlewareBuilder<RPCContext, object, $ContextOverrides, unknown>;
|
|
12
|
-
router: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, TInput>;
|
|
19
|
-
<TInput extends import("@trpc/server/unstable-core-do-not-import").CreateRouterOptions>(input: TInput): import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
20
|
-
ctx: RPCContext;
|
|
21
|
-
meta: object;
|
|
22
|
-
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
23
|
-
transformer: true;
|
|
24
|
-
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
|
|
25
|
-
};
|
|
12
|
+
router: <TInput extends import("@trpc/server/unstable-core-do-not-import").CreateRouterOptions>(input: TInput) => import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
13
|
+
ctx: RPCContext;
|
|
14
|
+
meta: object;
|
|
15
|
+
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
16
|
+
transformer: true;
|
|
17
|
+
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
|
|
26
18
|
mergeRouters: typeof import("@trpc/server/unstable-core-do-not-import").mergeRouters;
|
|
27
19
|
createCallerFactory: <TRecord extends import("@trpc/server").RouterRecord>(router: Pick<import("@trpc/server/unstable-core-do-not-import").Router<{
|
|
28
20
|
ctx: RPCContext;
|
|
@@ -48,7 +40,7 @@ export declare function instantiateRouter<T extends RouterSchema>(routes: T): im
|
|
|
48
40
|
meta: object;
|
|
49
41
|
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
50
42
|
transformer: true;
|
|
51
|
-
}, T
|
|
43
|
+
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<T>>;
|
|
52
44
|
export type InferRPCServerContext<TFunc extends null | ((opts: FetchCreateContextFnOptions) => any)> = {
|
|
53
45
|
req: Request;
|
|
54
46
|
resHeaders: Headers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../../src/app/server/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAY,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAGzE,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../../src/app/server/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAY,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAGzE,eAAO,MAAM,MAAM;;;;;;;;;mCA4B04D,0CAAU;;;;;;;iDAAqwB,cAAU;;;;;;;;;;;CA1BprF,CAAA;AAEF,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,YAAY,CAAC,CAAA;AAE/E,eAAO,MAAM,GAAG;;;WAGP,CAAC,SAAS,YAAY,UAAU,CAAC,GAAG,CAAC;CAG7C,CAAA;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,IAAI,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,CAAC,GAC7C,CAAC,IAAI,EAAE,2BAA2B,KAAK,CAAC,CAE1C;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,YAAY,EAAE,MAAM,EAAE,CAAC;;;;;sFAElE;AAED,MAAM,MAAM,qBAAqB,CAAC,KAAK,SAAS,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,2BAA2B,KAAK,GAAG,CAAC,IAAI;IACrG,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;CACpB,GAAG,CAAC,KAAK,SAAS,CAAC,IAAI,EAAE,2BAA2B,KAAK,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAA"}
|
|
@@ -367,7 +367,7 @@ export class ServerContext {
|
|
|
367
367
|
result = result.filter((origin) => origin !== "*");
|
|
368
368
|
}
|
|
369
369
|
if (this.config.serverless.cors?.origins) {
|
|
370
|
-
result.push(...this.config.serverless.cors.origins);
|
|
370
|
+
result.push(...this.config.serverless.cors.origins.map((origin) => origin.replace(/(https?:\/\/|\/$)/, "")));
|
|
371
371
|
}
|
|
372
372
|
return result;
|
|
373
373
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStatefulLog.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/hooks/useStatefulLog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAa5D,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,GAAG,SAAS,IAAI;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,CAAA;IACrC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAA;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,SAAS,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,SAAS;CAAE,EAAE,IAAI,EAAE,CAAC,GAiD/E,GACf,
|
|
1
|
+
{"version":3,"file":"useStatefulLog.d.ts","sourceRoot":"","sources":["../../../../../src/node/cli/display/hooks/useStatefulLog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAa5D,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,GAAG,SAAS,IAAI;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,CAAA;IACrC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAA;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,SAAS,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,SAAS;CAAE,EAAE,IAAI,EAAE,CAAC,GAiD/E,GACf,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAC9B,CACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.0.0-beta.
|
|
1
|
+
export declare const VERSION = "2.0.0-beta.150";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/node/cli/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.0.0-beta.
|
|
1
|
+
export const VERSION = "2.0.0-beta.150";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-vite-config.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/get-vite-config.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAEtD,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,UAAU,GAAG,KAAK,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"get-vite-config.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/get-vite-config.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAEtD,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,UAAU,GAAG,KAAK,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,CA8BlD;AAED,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,wBAAgB,WAAW,CAAC,IAAI,GAAE,eAAoB,kBA4FrD;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,YAAY,CA4CxC;AAwBD,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,EAAE,CAStD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,EAAE,CAE/D;AAED,wBAAgB,wBAAwB,IAAI,YAAY,CA8BvD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE;IAAE,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC,CAAA;CAAE,GAAG,YAAY,CA4B9E;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,CA8DtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vinxi-codegen.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-codegen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"vinxi-codegen.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-codegen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAIlD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,UAExE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,OAAO,iBAIlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,aAmqB/C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { code, imp } from "ts-poet";
|
|
2
2
|
import { FSCodegen } from "../utils/fs-codegen.js";
|
|
3
3
|
import { camelCase } from "change-case-all";
|
|
4
|
+
import { ProjectEnvUtils } from "../project/env.js";
|
|
4
5
|
export function getVinxiFolder(opts) {
|
|
5
6
|
return (opts.mode === "development" ? "dev" : "prod") + (opts.serverless ? "" : "-spa");
|
|
6
7
|
}
|
|
@@ -36,6 +37,7 @@ export function createVinxiCodegen(opts) {
|
|
|
36
37
|
return code /* tsx */ `
|
|
37
38
|
import { ServerContext } from "eddev/server"
|
|
38
39
|
import { getManifest } from "vinxi/manifest"
|
|
40
|
+
import { apiConfig } from 'eddev/hooks'
|
|
39
41
|
|
|
40
42
|
ServerContext.setRuntime({
|
|
41
43
|
getManifest
|
|
@@ -45,6 +47,8 @@ export function createVinxiCodegen(opts) {
|
|
|
45
47
|
.map(([key, value]) => `${key}: ${JSON.stringify(value)}`)
|
|
46
48
|
.join(",\n")}
|
|
47
49
|
})
|
|
50
|
+
|
|
51
|
+
apiConfig.apiKey = ${JSON.stringify(ProjectEnvUtils.getSafe("SITE_API_KEY") ?? "")}
|
|
48
52
|
`.toString();
|
|
49
53
|
},
|
|
50
54
|
});
|
|
@@ -9,20 +9,20 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
9
9
|
provider: z.ZodLiteral<"ga4">;
|
|
10
10
|
id: z.ZodString;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
provider: "ga4";
|
|
13
12
|
id: string;
|
|
14
|
-
}, {
|
|
15
13
|
provider: "ga4";
|
|
14
|
+
}, {
|
|
16
15
|
id: string;
|
|
16
|
+
provider: "ga4";
|
|
17
17
|
}>, z.ZodObject<{
|
|
18
18
|
provider: z.ZodLiteral<"gtm">;
|
|
19
19
|
id: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
provider: "gtm";
|
|
22
21
|
id: string;
|
|
23
|
-
}, {
|
|
24
22
|
provider: "gtm";
|
|
23
|
+
}, {
|
|
25
24
|
id: string;
|
|
25
|
+
provider: "gtm";
|
|
26
26
|
}>]>, "many">>;
|
|
27
27
|
serverless: z.ZodObject<{
|
|
28
28
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -52,32 +52,32 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
52
52
|
commonOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
53
53
|
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
nonce: boolean;
|
|
55
56
|
enabled: boolean;
|
|
56
57
|
autoDetect: boolean;
|
|
57
|
-
nonce: boolean;
|
|
58
58
|
values?: Record<string, string[]> | undefined;
|
|
59
59
|
commonOrigins?: string[] | undefined;
|
|
60
60
|
}, {
|
|
61
61
|
enabled: boolean;
|
|
62
62
|
values?: Record<string, string[]> | undefined;
|
|
63
|
-
autoDetect?: boolean | undefined;
|
|
64
63
|
nonce?: boolean | undefined;
|
|
64
|
+
autoDetect?: boolean | undefined;
|
|
65
65
|
commonOrigins?: string[] | undefined;
|
|
66
66
|
}>>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
plugins: "proxy" | "remote";
|
|
68
69
|
enabled: boolean;
|
|
69
70
|
uploads: "proxy" | "remote";
|
|
70
|
-
|
|
71
|
-
admin: "proxy" | "hide";
|
|
71
|
+
admin: "hide" | "proxy";
|
|
72
72
|
originProtection: {
|
|
73
73
|
requireLogin: boolean;
|
|
74
74
|
};
|
|
75
75
|
themeAssets: string[];
|
|
76
76
|
endpoints: Record<string, string>;
|
|
77
77
|
csp: {
|
|
78
|
+
nonce: boolean;
|
|
78
79
|
enabled: boolean;
|
|
79
80
|
autoDetect: boolean;
|
|
80
|
-
nonce: boolean;
|
|
81
81
|
values?: Record<string, string[]> | undefined;
|
|
82
82
|
commonOrigins?: string[] | undefined;
|
|
83
83
|
};
|
|
@@ -87,9 +87,9 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
87
87
|
}, {
|
|
88
88
|
uploads: "proxy" | "remote";
|
|
89
89
|
endpoints: Record<string, string>;
|
|
90
|
-
enabled?: boolean | undefined;
|
|
91
90
|
plugins?: "proxy" | "remote" | undefined;
|
|
92
|
-
|
|
91
|
+
enabled?: boolean | undefined;
|
|
92
|
+
admin?: "hide" | "proxy" | undefined;
|
|
93
93
|
originProtection?: {
|
|
94
94
|
requireLogin?: boolean | undefined;
|
|
95
95
|
} | undefined;
|
|
@@ -100,8 +100,8 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
100
100
|
csp?: {
|
|
101
101
|
enabled: boolean;
|
|
102
102
|
values?: Record<string, string[]> | undefined;
|
|
103
|
-
autoDetect?: boolean | undefined;
|
|
104
103
|
nonce?: boolean | undefined;
|
|
104
|
+
autoDetect?: boolean | undefined;
|
|
105
105
|
commonOrigins?: string[] | undefined;
|
|
106
106
|
} | undefined;
|
|
107
107
|
}>;
|
|
@@ -124,37 +124,37 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
124
124
|
dataCache: z.ZodDefault<z.ZodEnum<["in-memory", "kv", "none"]>>;
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
126
|
isr: boolean;
|
|
127
|
-
dataCache: "
|
|
127
|
+
dataCache: "none" | "in-memory" | "kv";
|
|
128
128
|
}, {
|
|
129
129
|
isr?: boolean | undefined;
|
|
130
|
-
dataCache?: "
|
|
130
|
+
dataCache?: "none" | "in-memory" | "kv" | undefined;
|
|
131
131
|
}>>>;
|
|
132
132
|
pageDataTTL: z.ZodDefault<z.ZodNumber>;
|
|
133
133
|
appDataTTL: z.ZodDefault<z.ZodNumber>;
|
|
134
134
|
queryHooksTTL: z.ZodDefault<z.ZodNumber>;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
serverless: {
|
|
137
|
-
isr: boolean;
|
|
138
|
-
dataCache: "in-memory" | "kv" | "none";
|
|
139
|
-
};
|
|
140
136
|
wordpress: {
|
|
141
137
|
strategy: "always" | "ssr-always-fresh";
|
|
142
138
|
cacheHeaders: boolean;
|
|
143
139
|
transients: boolean;
|
|
144
140
|
};
|
|
141
|
+
serverless: {
|
|
142
|
+
isr: boolean;
|
|
143
|
+
dataCache: "none" | "in-memory" | "kv";
|
|
144
|
+
};
|
|
145
145
|
pageDataTTL: number;
|
|
146
146
|
appDataTTL: number;
|
|
147
147
|
queryHooksTTL: number;
|
|
148
148
|
}, {
|
|
149
|
-
serverless?: {
|
|
150
|
-
isr?: boolean | undefined;
|
|
151
|
-
dataCache?: "in-memory" | "kv" | "none" | undefined;
|
|
152
|
-
} | undefined;
|
|
153
149
|
wordpress?: {
|
|
154
150
|
strategy: "always" | "ssr-always-fresh";
|
|
155
151
|
cacheHeaders?: boolean | undefined;
|
|
156
152
|
transients?: boolean | undefined;
|
|
157
153
|
} | undefined;
|
|
154
|
+
serverless?: {
|
|
155
|
+
isr?: boolean | undefined;
|
|
156
|
+
dataCache?: "none" | "in-memory" | "kv" | undefined;
|
|
157
|
+
} | undefined;
|
|
158
158
|
pageDataTTL?: number | undefined;
|
|
159
159
|
appDataTTL?: number | undefined;
|
|
160
160
|
queryHooksTTL?: number | undefined;
|
|
@@ -162,22 +162,36 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
162
162
|
devUI: z.ZodDefault<z.ZodEnum<["disabled", "enabled"]>>;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
164
|
version: "2";
|
|
165
|
+
cache: Record<string, {
|
|
166
|
+
wordpress: {
|
|
167
|
+
strategy: "always" | "ssr-always-fresh";
|
|
168
|
+
cacheHeaders: boolean;
|
|
169
|
+
transients: boolean;
|
|
170
|
+
};
|
|
171
|
+
serverless: {
|
|
172
|
+
isr: boolean;
|
|
173
|
+
dataCache: "none" | "in-memory" | "kv";
|
|
174
|
+
};
|
|
175
|
+
pageDataTTL: number;
|
|
176
|
+
appDataTTL: number;
|
|
177
|
+
queryHooksTTL: number;
|
|
178
|
+
}>;
|
|
165
179
|
legacyMetadata: boolean;
|
|
166
180
|
legacyStitches: boolean;
|
|
167
181
|
serverless: {
|
|
182
|
+
plugins: "proxy" | "remote";
|
|
168
183
|
enabled: boolean;
|
|
169
184
|
uploads: "proxy" | "remote";
|
|
170
|
-
|
|
171
|
-
admin: "proxy" | "hide";
|
|
185
|
+
admin: "hide" | "proxy";
|
|
172
186
|
originProtection: {
|
|
173
187
|
requireLogin: boolean;
|
|
174
188
|
};
|
|
175
189
|
themeAssets: string[];
|
|
176
190
|
endpoints: Record<string, string>;
|
|
177
191
|
csp: {
|
|
192
|
+
nonce: boolean;
|
|
178
193
|
enabled: boolean;
|
|
179
194
|
autoDetect: boolean;
|
|
180
|
-
nonce: boolean;
|
|
181
195
|
values?: Record<string, string[]> | undefined;
|
|
182
196
|
commonOrigins?: string[] | undefined;
|
|
183
197
|
};
|
|
@@ -185,37 +199,23 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
185
199
|
origins?: string[] | undefined;
|
|
186
200
|
} | undefined;
|
|
187
201
|
};
|
|
188
|
-
|
|
189
|
-
serverless: {
|
|
190
|
-
isr: boolean;
|
|
191
|
-
dataCache: "in-memory" | "kv" | "none";
|
|
192
|
-
};
|
|
193
|
-
wordpress: {
|
|
194
|
-
strategy: "always" | "ssr-always-fresh";
|
|
195
|
-
cacheHeaders: boolean;
|
|
196
|
-
transients: boolean;
|
|
197
|
-
};
|
|
198
|
-
pageDataTTL: number;
|
|
199
|
-
appDataTTL: number;
|
|
200
|
-
queryHooksTTL: number;
|
|
201
|
-
}>;
|
|
202
|
-
devUI: "enabled" | "disabled";
|
|
202
|
+
devUI: "disabled" | "enabled";
|
|
203
203
|
$schema?: string | undefined;
|
|
204
204
|
trackers?: ({
|
|
205
|
-
provider: "ga4";
|
|
206
205
|
id: string;
|
|
206
|
+
provider: "ga4";
|
|
207
207
|
} | {
|
|
208
|
-
provider: "gtm";
|
|
209
208
|
id: string;
|
|
209
|
+
provider: "gtm";
|
|
210
210
|
})[] | undefined;
|
|
211
211
|
}, {
|
|
212
212
|
version: "1" | "2";
|
|
213
213
|
serverless: {
|
|
214
214
|
uploads: "proxy" | "remote";
|
|
215
215
|
endpoints: Record<string, string>;
|
|
216
|
-
enabled?: boolean | undefined;
|
|
217
216
|
plugins?: "proxy" | "remote" | undefined;
|
|
218
|
-
|
|
217
|
+
enabled?: boolean | undefined;
|
|
218
|
+
admin?: "hide" | "proxy" | undefined;
|
|
219
219
|
originProtection?: {
|
|
220
220
|
requireLogin?: boolean | undefined;
|
|
221
221
|
} | undefined;
|
|
@@ -226,36 +226,36 @@ export declare const EDConfigSchema: z.ZodObject<{
|
|
|
226
226
|
csp?: {
|
|
227
227
|
enabled: boolean;
|
|
228
228
|
values?: Record<string, string[]> | undefined;
|
|
229
|
-
autoDetect?: boolean | undefined;
|
|
230
229
|
nonce?: boolean | undefined;
|
|
230
|
+
autoDetect?: boolean | undefined;
|
|
231
231
|
commonOrigins?: string[] | undefined;
|
|
232
232
|
} | undefined;
|
|
233
233
|
};
|
|
234
|
-
$schema?: string | undefined;
|
|
235
|
-
legacyMetadata?: boolean | undefined;
|
|
236
|
-
legacyStitches?: boolean | undefined;
|
|
237
|
-
trackers?: ({
|
|
238
|
-
provider: "ga4";
|
|
239
|
-
id: string;
|
|
240
|
-
} | {
|
|
241
|
-
provider: "gtm";
|
|
242
|
-
id: string;
|
|
243
|
-
})[] | undefined;
|
|
244
234
|
cache?: Record<string, {
|
|
245
|
-
serverless?: {
|
|
246
|
-
isr?: boolean | undefined;
|
|
247
|
-
dataCache?: "in-memory" | "kv" | "none" | undefined;
|
|
248
|
-
} | undefined;
|
|
249
235
|
wordpress?: {
|
|
250
236
|
strategy: "always" | "ssr-always-fresh";
|
|
251
237
|
cacheHeaders?: boolean | undefined;
|
|
252
238
|
transients?: boolean | undefined;
|
|
253
239
|
} | undefined;
|
|
240
|
+
serverless?: {
|
|
241
|
+
isr?: boolean | undefined;
|
|
242
|
+
dataCache?: "none" | "in-memory" | "kv" | undefined;
|
|
243
|
+
} | undefined;
|
|
254
244
|
pageDataTTL?: number | undefined;
|
|
255
245
|
appDataTTL?: number | undefined;
|
|
256
246
|
queryHooksTTL?: number | undefined;
|
|
257
247
|
}> | undefined;
|
|
258
|
-
|
|
248
|
+
$schema?: string | undefined;
|
|
249
|
+
legacyMetadata?: boolean | undefined;
|
|
250
|
+
legacyStitches?: boolean | undefined;
|
|
251
|
+
trackers?: ({
|
|
252
|
+
id: string;
|
|
253
|
+
provider: "ga4";
|
|
254
|
+
} | {
|
|
255
|
+
id: string;
|
|
256
|
+
provider: "gtm";
|
|
257
|
+
})[] | undefined;
|
|
258
|
+
devUI?: "disabled" | "enabled" | undefined;
|
|
259
259
|
}>;
|
|
260
260
|
export type EDConfig = z.infer<typeof EDConfigSchema>;
|
|
261
261
|
export declare class Configurator {
|
|
@@ -89,7 +89,7 @@ export const EDConfigSchema = z.object({
|
|
|
89
89
|
.optional()
|
|
90
90
|
.describe("A map of CSP directives to their values. Keys should be camelCase."),
|
|
91
91
|
})
|
|
92
|
-
.default({ enabled:
|
|
92
|
+
.default({ enabled: false })
|
|
93
93
|
.describe("Content Security Policy settings"),
|
|
94
94
|
}),
|
|
95
95
|
cache: z
|