eddev 2.3.12 → 2.3.13
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/entry/MetaTags.d.ts.map +1 -1
- package/dist/app/entry/MetaTags.js +2 -0
- package/dist/app/lib/blocks/block-utils.d.ts +2 -2
- package/dist/app/lib/blocks/block-utils.d.ts.map +1 -1
- package/dist/app/lib/blocks/block-utils.js +10 -3
- package/dist/app/lib/blocks/editor/root-blocks.d.ts.map +1 -1
- package/dist/app/lib/blocks/editor/root-blocks.js +2 -2
- package/dist/app/lib/devtools/hooks/useTailwind.d.ts +45 -45
- package/dist/app/lib/hooks/query-hooks.d.ts +8 -8
- package/dist/app/lib/hooks/query-hooks.d.ts.map +1 -1
- package/dist/app/lib/hooks/query-hooks.js +2 -1
- package/dist/app/lib/runtime/apiConfig.d.ts +15 -0
- package/dist/app/lib/runtime/apiConfig.d.ts.map +1 -1
- package/dist/app/server/proxy-wp-admin.d.ts.map +1 -1
- package/dist/app/server/proxy-wp-admin.js +1 -0
- package/dist/app/server/server-context.d.ts +2 -2
- package/dist/app/server/server-context.d.ts.map +1 -1
- package/dist/app/utils/trpc-client.d.ts.map +1 -1
- package/dist/app/utils/trpc-client.js +19 -3
- package/dist/node/cli/version.d.ts +1 -1
- package/dist/node/cli/version.js +1 -1
- package/dist/node/compiler/dev-server.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-app.d.ts +1 -1
- package/dist/node/compiler/vinxi-app.d.ts.map +1 -1
- package/dist/node/utils/fetch-wp.d.ts.map +1 -1
- package/dist/node/utils/fetch-wp.js +2 -1
- package/dist/node/utils/fs.d.ts +22 -19
- package/dist/node/utils/fs.d.ts.map +1 -1
- package/package.json +2 -2
- package/skills/eddev/SKILL.md +156 -0
- package/skills/eddev/docs/acf/admin-panel-widgets.mdx +99 -0
- package/skills/eddev/docs/acf/custom-enums.mdx +75 -0
- package/skills/eddev/docs/acf/custom-fields.mdx +131 -0
- package/skills/eddev/docs/acf.mdx +31 -0
- package/skills/eddev/docs/blocks/block-definition.mdx +189 -0
- package/skills/eddev/docs/blocks/core-blocks.mdx +86 -0
- package/skills/eddev/docs/blocks/data-and-editing.mdx +219 -0
- package/skills/eddev/docs/blocks/editor-config.mdx +157 -0
- package/skills/eddev/docs/blocks/nested-blocks.mdx +129 -0
- package/skills/eddev/docs/blocks/overview.mdx +58 -0
- package/skills/eddev/docs/blocks/template-parts.mdx +131 -0
- package/skills/eddev/docs/config.mdx +200 -0
- package/skills/eddev/docs/design/color.mdx +185 -0
- package/skills/eddev/docs/design/favicons.mdx +103 -0
- package/skills/eddev/docs/design/grid.mdx +120 -0
- package/skills/eddev/docs/design/icons.mdx +197 -0
- package/skills/eddev/docs/design/responsive-scaling.mdx +312 -0
- package/skills/eddev/docs/design/type.mdx +125 -0
- package/skills/eddev/docs/devtool/cli.mdx +201 -0
- package/skills/eddev/docs/devtool/overlay.mdx +5 -0
- package/skills/eddev/docs/getting-started.mdx +53 -0
- package/skills/eddev/docs/graphql/extending.mdx +186 -0
- package/skills/eddev/docs/graphql/fragments.mdx +107 -0
- package/skills/eddev/docs/graphql/global-data.mdx +47 -0
- package/skills/eddev/docs/graphql/infinite-queries.mdx +95 -0
- package/skills/eddev/docs/graphql/mutation-hooks.mdx +111 -0
- package/skills/eddev/docs/graphql/query-hooks.mdx +122 -0
- package/skills/eddev/docs/graphql/tooling.mdx +50 -0
- package/skills/eddev/docs/graphql.mdx +97 -0
- package/skills/eddev/docs/guides/color-schemes.mdx +204 -0
- package/skills/eddev/docs/guides/integrations.mdx +3 -0
- package/skills/eddev/docs/guides/page-transitions.mdx +5 -0
- package/skills/eddev/docs/guides/seo.mdx +5 -0
- package/skills/eddev/docs/guides/state-management.mdx +5 -0
- package/skills/eddev/docs/infra/caching.mdx +9 -0
- package/skills/eddev/docs/infra/deployment.mdx +13 -0
- package/skills/eddev/docs/infra/local.mdx +5 -0
- package/skills/eddev/docs/infra/security.mdx +11 -0
- package/skills/eddev/docs/routing/api.mdx +731 -0
- package/skills/eddev/docs/routing/custom.mdx +123 -0
- package/skills/eddev/docs/routing/full-details.mdx +37 -0
- package/skills/eddev/docs/routing/wordpress.mdx +70 -0
- package/skills/eddev/docs/routing.mdx +18 -0
- package/skills/eddev/docs/serverless/functions.mdx +436 -0
- package/skills/eddev/docs/serverless.mdx +202 -0
- package/skills/eddev/docs/snippets/automated-block-layouts.mdx +97 -0
- package/skills/eddev/docs/snippets/custom-routes-and-urls.mdx +91 -0
- package/skills/eddev/docs/snippets/multiple-editable-zones.mdx +87 -0
- package/skills/eddev/docs/snippets/querying-specific-blocks.mdx +164 -0
- package/skills/eddev/docs/snippets/submitting-forms-to-rpc.mdx +91 -0
- package/skills/eddev/docs/snippets/svgs.mdx +38 -0
- package/skills/eddev/docs/snippets/type-safe-acf-dropdowns.mdx +72 -0
- package/skills/eddev/docs/snippets.mdx +19 -0
- package/skills/eddev/docs/software.mdx +19 -0
- package/skills/eddev/docs/stack/how-it-works.mdx +50 -0
- package/skills/eddev/docs/stack/overview.mdx +56 -0
- package/skills/eddev/docs/stack/spa-vs-ssr.mdx +52 -0
- package/skills/eddev/docs/views/app-view.mdx +97 -0
- package/skills/eddev/docs/views/page-templates.mdx +82 -0
- package/skills/eddev/docs/views/queries.mdx +116 -0
- package/skills/eddev/docs/views.mdx +63 -0
- package/skills/eddev/index.mdx +79 -0
- package/tsconfig.app.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetaTags.d.ts","sourceRoot":"","sources":["../../../src/app/entry/MetaTags.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAEtD,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,YAAY,EAAE,CAAA;CACrB,CAAA;
|
|
1
|
+
{"version":3,"file":"MetaTags.d.ts","sourceRoot":"","sources":["../../../src/app/entry/MetaTags.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAEtD,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,YAAY,EAAE,CAAA;CACrB,CAAA;AAoBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,2CAqBpC"}
|
|
@@ -11,6 +11,8 @@ function toReactAttributes(attributes) {
|
|
|
11
11
|
return Object.fromEntries(Object.entries(attributes).map(([key, value]) => {
|
|
12
12
|
if (key in REACT_ATTRIBUTES)
|
|
13
13
|
key = REACT_ATTRIBUTES[key];
|
|
14
|
+
if (key === "crossOrigin" && value === "")
|
|
15
|
+
value = true;
|
|
14
16
|
return [key, value === "" ? true : value];
|
|
15
17
|
}));
|
|
16
18
|
}
|
|
@@ -15,10 +15,10 @@ export declare function getPublicBlockInfo(): {
|
|
|
15
15
|
export declare function addBlockMetadata(blocks: ContentBlock[] | null | undefined): ContentBlock[];
|
|
16
16
|
export declare function getBlockMetadata(blockName: string): {
|
|
17
17
|
slug: string;
|
|
18
|
-
tags
|
|
18
|
+
tags: string[];
|
|
19
19
|
flags?: undefined;
|
|
20
20
|
} | {
|
|
21
|
-
tags:
|
|
21
|
+
tags: string[];
|
|
22
22
|
flags: DefinedBlockFlags;
|
|
23
23
|
slug: BlockTypeName;
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-utils.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/blocks/block-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD;;;GAGG;AACH,wBAAgB,kBAAkB;;EAEjC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,GAAG,SAAS,GAAG,YAAY,EAAE,CA4B1F;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM;;;;;;;;
|
|
1
|
+
{"version":3,"file":"block-utils.d.ts","sourceRoot":"","sources":["../../../../src/app/lib/blocks/block-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD;;;GAGG;AACH,wBAAgB,kBAAkB;;EAEjC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,GAAG,SAAS,GAAG,YAAY,EAAE,CA4B1F;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM;;;;;;;;EAmBjD"}
|
|
@@ -46,13 +46,20 @@ export function addBlockMetadata(blocks) {
|
|
|
46
46
|
export function getBlockMetadata(blockName) {
|
|
47
47
|
const infos = getPublicBlockInfo();
|
|
48
48
|
const info = infos[blockName];
|
|
49
|
+
const tags = info?.tags ?? [];
|
|
50
|
+
if (env.admin) {
|
|
51
|
+
if ("ED_BLOCK_TAGS" in window && blockName in window.ED_BLOCK_TAGS) {
|
|
52
|
+
tags.push(...window.ED_BLOCK_TAGS[blockName]);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
49
55
|
if (!info)
|
|
50
56
|
return {
|
|
51
57
|
slug: blockName,
|
|
58
|
+
tags,
|
|
52
59
|
};
|
|
53
60
|
return {
|
|
54
|
-
tags
|
|
55
|
-
flags: info
|
|
56
|
-
slug: info
|
|
61
|
+
tags,
|
|
62
|
+
flags: info?.flags ?? {},
|
|
63
|
+
slug: info?.slug ?? blockName,
|
|
57
64
|
};
|
|
58
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-blocks.d.ts","sourceRoot":"","sources":["../../../../../src/app/lib/blocks/editor/root-blocks.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU;;;;
|
|
1
|
+
{"version":3,"file":"root-blocks.d.ts","sourceRoot":"","sources":["../../../../../src/app/lib/blocks/editor/root-blocks.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU;;;;2BAwBE,MAAM,SAAS,MAAM,EAAE;CAG/C,CAAA"}
|
|
@@ -6,7 +6,7 @@ let constraint = ["root", "#root"];
|
|
|
6
6
|
let rootBlockList = new Set(["root", "#root"]);
|
|
7
7
|
export const rootBlocks = {
|
|
8
8
|
listen() {
|
|
9
|
-
let key = hash(
|
|
9
|
+
let key = hash(constraint);
|
|
10
10
|
subscribe(editorConfigStore, () => {
|
|
11
11
|
constraint = snapshot(editorConfigStore.currentBlocksConfig).rootBlocks ?? ["root", "#root"];
|
|
12
12
|
let newKey = hash(constraint);
|
|
@@ -15,7 +15,7 @@ export const rootBlocks = {
|
|
|
15
15
|
// The root blocks config have changed, so we need to recalculate the registered blocks
|
|
16
16
|
key = newKey;
|
|
17
17
|
rootBlocks.update();
|
|
18
|
-
});
|
|
18
|
+
}, true);
|
|
19
19
|
},
|
|
20
20
|
update() {
|
|
21
21
|
rootBlockList = new Set(blocksByTag.expand(constraint));
|
|
@@ -85,12 +85,12 @@ export declare function useTailwindConfig(): {
|
|
|
85
85
|
readonly max: string;
|
|
86
86
|
})[];
|
|
87
87
|
} | undefined;
|
|
88
|
-
readonly supports?:
|
|
88
|
+
readonly supports?: {
|
|
89
89
|
readonly [x: string]: string;
|
|
90
|
-
} | undefined;
|
|
91
|
-
readonly data?:
|
|
90
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
91
|
+
readonly data?: {
|
|
92
92
|
readonly [x: string]: string;
|
|
93
|
-
} | undefined;
|
|
93
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
94
94
|
readonly colors?: ((utils: import("tailwindcss/types/config.js").PluginUtils) => import("tailwindcss/types/config.js").RecursiveKeyValuePair<string, string>) | {
|
|
95
95
|
readonly [x: string]: string | /*elided*/ any;
|
|
96
96
|
} | undefined;
|
|
@@ -493,12 +493,12 @@ export declare function useTailwindConfig(): {
|
|
|
493
493
|
readonly max: string;
|
|
494
494
|
})[];
|
|
495
495
|
} | undefined;
|
|
496
|
-
readonly supports?:
|
|
496
|
+
readonly supports?: {
|
|
497
497
|
readonly [x: string]: string;
|
|
498
|
-
} | undefined;
|
|
499
|
-
readonly data?:
|
|
498
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
499
|
+
readonly data?: {
|
|
500
500
|
readonly [x: string]: string;
|
|
501
|
-
} | undefined;
|
|
501
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
502
502
|
readonly colors?: ((utils: import("tailwindcss/types/config.js").PluginUtils) => import("tailwindcss/types/config.js").RecursiveKeyValuePair<string, string>) | {
|
|
503
503
|
readonly [x: string]: string | /*elided*/ any;
|
|
504
504
|
} | undefined;
|
|
@@ -909,7 +909,6 @@ export declare function useTailwindConfig(): {
|
|
|
909
909
|
readonly size?: boolean | undefined;
|
|
910
910
|
readonly backgroundColor?: boolean | undefined;
|
|
911
911
|
readonly inset?: boolean | undefined;
|
|
912
|
-
readonly invert?: boolean | undefined;
|
|
913
912
|
readonly outlineOffset?: boolean | undefined;
|
|
914
913
|
readonly borderRadius?: boolean | undefined;
|
|
915
914
|
readonly padding?: boolean | undefined;
|
|
@@ -1041,6 +1040,7 @@ export declare function useTailwindConfig(): {
|
|
|
1041
1040
|
readonly dropShadow?: boolean | undefined;
|
|
1042
1041
|
readonly grayscale?: boolean | undefined;
|
|
1043
1042
|
readonly hueRotate?: boolean | undefined;
|
|
1043
|
+
readonly invert?: boolean | undefined;
|
|
1044
1044
|
readonly saturate?: boolean | undefined;
|
|
1045
1045
|
readonly sepia?: boolean | undefined;
|
|
1046
1046
|
readonly backdropBlur?: boolean | undefined;
|
|
@@ -1130,12 +1130,12 @@ export declare function useTailwindConfig(): {
|
|
|
1130
1130
|
readonly max: string;
|
|
1131
1131
|
})[];
|
|
1132
1132
|
} | undefined;
|
|
1133
|
-
readonly supports?:
|
|
1133
|
+
readonly supports?: {
|
|
1134
1134
|
readonly [x: string]: string;
|
|
1135
|
-
} | undefined;
|
|
1136
|
-
readonly data?:
|
|
1135
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
1136
|
+
readonly data?: {
|
|
1137
1137
|
readonly [x: string]: string;
|
|
1138
|
-
} | undefined;
|
|
1138
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
1139
1139
|
readonly colors?: ((utils: import("tailwindcss/types/config.js").PluginUtils) => import("tailwindcss/types/config.js").RecursiveKeyValuePair<string, string>) | {
|
|
1140
1140
|
readonly [x: string]: string | /*elided*/ any;
|
|
1141
1141
|
} | undefined;
|
|
@@ -1538,12 +1538,12 @@ export declare function useTailwindConfig(): {
|
|
|
1538
1538
|
readonly max: string;
|
|
1539
1539
|
})[];
|
|
1540
1540
|
} | undefined;
|
|
1541
|
-
readonly supports?:
|
|
1541
|
+
readonly supports?: {
|
|
1542
1542
|
readonly [x: string]: string;
|
|
1543
|
-
} | undefined;
|
|
1544
|
-
readonly data?:
|
|
1543
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
1544
|
+
readonly data?: {
|
|
1545
1545
|
readonly [x: string]: string;
|
|
1546
|
-
} | undefined;
|
|
1546
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
1547
1547
|
readonly colors?: ((utils: import("tailwindcss/types/config.js").PluginUtils) => import("tailwindcss/types/config.js").RecursiveKeyValuePair<string, string>) | {
|
|
1548
1548
|
readonly [x: string]: string | /*elided*/ any;
|
|
1549
1549
|
} | undefined;
|
|
@@ -1954,7 +1954,6 @@ export declare function useTailwindConfig(): {
|
|
|
1954
1954
|
readonly size?: boolean | undefined;
|
|
1955
1955
|
readonly backgroundColor?: boolean | undefined;
|
|
1956
1956
|
readonly inset?: boolean | undefined;
|
|
1957
|
-
readonly invert?: boolean | undefined;
|
|
1958
1957
|
readonly outlineOffset?: boolean | undefined;
|
|
1959
1958
|
readonly borderRadius?: boolean | undefined;
|
|
1960
1959
|
readonly padding?: boolean | undefined;
|
|
@@ -2086,6 +2085,7 @@ export declare function useTailwindConfig(): {
|
|
|
2086
2085
|
readonly dropShadow?: boolean | undefined;
|
|
2087
2086
|
readonly grayscale?: boolean | undefined;
|
|
2088
2087
|
readonly hueRotate?: boolean | undefined;
|
|
2088
|
+
readonly invert?: boolean | undefined;
|
|
2089
2089
|
readonly saturate?: boolean | undefined;
|
|
2090
2090
|
readonly sepia?: boolean | undefined;
|
|
2091
2091
|
readonly backdropBlur?: boolean | undefined;
|
|
@@ -2150,12 +2150,12 @@ export declare function useTailwindConfig(): {
|
|
|
2150
2150
|
readonly max: string;
|
|
2151
2151
|
})[];
|
|
2152
2152
|
} | undefined;
|
|
2153
|
-
readonly supports?:
|
|
2153
|
+
readonly supports?: {
|
|
2154
2154
|
readonly [x: string]: string;
|
|
2155
|
-
} | undefined;
|
|
2156
|
-
readonly data?:
|
|
2155
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
2156
|
+
readonly data?: {
|
|
2157
2157
|
readonly [x: string]: string;
|
|
2158
|
-
} | undefined;
|
|
2158
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
2159
2159
|
readonly colors?: ((utils: import("tailwindcss/types/config.js").PluginUtils) => import("tailwindcss/types/config.js").RecursiveKeyValuePair<string, string>) | {
|
|
2160
2160
|
readonly [x: string]: string | /*elided*/ any;
|
|
2161
2161
|
} | undefined;
|
|
@@ -2558,12 +2558,12 @@ export declare function useTailwindConfig(): {
|
|
|
2558
2558
|
readonly max: string;
|
|
2559
2559
|
})[];
|
|
2560
2560
|
} | undefined;
|
|
2561
|
-
readonly supports?:
|
|
2561
|
+
readonly supports?: {
|
|
2562
2562
|
readonly [x: string]: string;
|
|
2563
|
-
} | undefined;
|
|
2564
|
-
readonly data?:
|
|
2563
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
2564
|
+
readonly data?: {
|
|
2565
2565
|
readonly [x: string]: string;
|
|
2566
|
-
} | undefined;
|
|
2566
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
2567
2567
|
readonly colors?: ((utils: import("tailwindcss/types/config.js").PluginUtils) => import("tailwindcss/types/config.js").RecursiveKeyValuePair<string, string>) | {
|
|
2568
2568
|
readonly [x: string]: string | /*elided*/ any;
|
|
2569
2569
|
} | undefined;
|
|
@@ -2974,7 +2974,6 @@ export declare function useTailwindConfig(): {
|
|
|
2974
2974
|
readonly size?: boolean | undefined;
|
|
2975
2975
|
readonly backgroundColor?: boolean | undefined;
|
|
2976
2976
|
readonly inset?: boolean | undefined;
|
|
2977
|
-
readonly invert?: boolean | undefined;
|
|
2978
2977
|
readonly outlineOffset?: boolean | undefined;
|
|
2979
2978
|
readonly borderRadius?: boolean | undefined;
|
|
2980
2979
|
readonly padding?: boolean | undefined;
|
|
@@ -3106,6 +3105,7 @@ export declare function useTailwindConfig(): {
|
|
|
3106
3105
|
readonly dropShadow?: boolean | undefined;
|
|
3107
3106
|
readonly grayscale?: boolean | undefined;
|
|
3108
3107
|
readonly hueRotate?: boolean | undefined;
|
|
3108
|
+
readonly invert?: boolean | undefined;
|
|
3109
3109
|
readonly saturate?: boolean | undefined;
|
|
3110
3110
|
readonly sepia?: boolean | undefined;
|
|
3111
3111
|
readonly backdropBlur?: boolean | undefined;
|
|
@@ -3221,12 +3221,12 @@ export declare function useTailwindConfig(): {
|
|
|
3221
3221
|
readonly max: string;
|
|
3222
3222
|
})[];
|
|
3223
3223
|
} | undefined;
|
|
3224
|
-
readonly supports?:
|
|
3224
|
+
readonly supports?: {
|
|
3225
3225
|
readonly [x: string]: string;
|
|
3226
|
-
} | undefined;
|
|
3227
|
-
readonly data?:
|
|
3226
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
3227
|
+
readonly data?: {
|
|
3228
3228
|
readonly [x: string]: string;
|
|
3229
|
-
} | undefined;
|
|
3229
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
3230
3230
|
readonly colors?: ((utils: import("tailwindcss/types/config.js").PluginUtils) => import("tailwindcss/types/config.js").RecursiveKeyValuePair<string, string>) | {
|
|
3231
3231
|
readonly [x: string]: string | /*elided*/ any;
|
|
3232
3232
|
} | undefined;
|
|
@@ -3629,12 +3629,12 @@ export declare function useTailwindConfig(): {
|
|
|
3629
3629
|
readonly max: string;
|
|
3630
3630
|
})[];
|
|
3631
3631
|
} | undefined;
|
|
3632
|
-
readonly supports?:
|
|
3632
|
+
readonly supports?: {
|
|
3633
3633
|
readonly [x: string]: string;
|
|
3634
|
-
} | undefined;
|
|
3635
|
-
readonly data?:
|
|
3634
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
3635
|
+
readonly data?: {
|
|
3636
3636
|
readonly [x: string]: string;
|
|
3637
|
-
} | undefined;
|
|
3637
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
3638
3638
|
readonly colors?: ((utils: import("tailwindcss/types/config.js").PluginUtils) => import("tailwindcss/types/config.js").RecursiveKeyValuePair<string, string>) | {
|
|
3639
3639
|
readonly [x: string]: string | /*elided*/ any;
|
|
3640
3640
|
} | undefined;
|
|
@@ -4045,7 +4045,6 @@ export declare function useTailwindConfig(): {
|
|
|
4045
4045
|
readonly size?: boolean | undefined;
|
|
4046
4046
|
readonly backgroundColor?: boolean | undefined;
|
|
4047
4047
|
readonly inset?: boolean | undefined;
|
|
4048
|
-
readonly invert?: boolean | undefined;
|
|
4049
4048
|
readonly outlineOffset?: boolean | undefined;
|
|
4050
4049
|
readonly borderRadius?: boolean | undefined;
|
|
4051
4050
|
readonly padding?: boolean | undefined;
|
|
@@ -4177,6 +4176,7 @@ export declare function useTailwindConfig(): {
|
|
|
4177
4176
|
readonly dropShadow?: boolean | undefined;
|
|
4178
4177
|
readonly grayscale?: boolean | undefined;
|
|
4179
4178
|
readonly hueRotate?: boolean | undefined;
|
|
4179
|
+
readonly invert?: boolean | undefined;
|
|
4180
4180
|
readonly saturate?: boolean | undefined;
|
|
4181
4181
|
readonly sepia?: boolean | undefined;
|
|
4182
4182
|
readonly backdropBlur?: boolean | undefined;
|
|
@@ -4239,12 +4239,12 @@ export declare function useTailwindConfig(): {
|
|
|
4239
4239
|
readonly max: string;
|
|
4240
4240
|
})[];
|
|
4241
4241
|
} | undefined;
|
|
4242
|
-
readonly supports?:
|
|
4242
|
+
readonly supports?: {
|
|
4243
4243
|
readonly [x: string]: string;
|
|
4244
|
-
} | undefined;
|
|
4245
|
-
readonly data?:
|
|
4244
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
4245
|
+
readonly data?: {
|
|
4246
4246
|
readonly [x: string]: string;
|
|
4247
|
-
} | undefined;
|
|
4247
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
4248
4248
|
readonly colors?: ((utils: import("tailwindcss/types/config.js").PluginUtils) => import("tailwindcss/types/config.js").RecursiveKeyValuePair<string, string>) | {
|
|
4249
4249
|
readonly [x: string]: string | /*elided*/ any;
|
|
4250
4250
|
} | undefined;
|
|
@@ -4647,12 +4647,12 @@ export declare function useTailwindConfig(): {
|
|
|
4647
4647
|
readonly max: string;
|
|
4648
4648
|
})[];
|
|
4649
4649
|
} | undefined;
|
|
4650
|
-
readonly supports?:
|
|
4650
|
+
readonly supports?: {
|
|
4651
4651
|
readonly [x: string]: string;
|
|
4652
|
-
} | undefined;
|
|
4653
|
-
readonly data?:
|
|
4652
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
4653
|
+
readonly data?: {
|
|
4654
4654
|
readonly [x: string]: string;
|
|
4655
|
-
} | undefined;
|
|
4655
|
+
} | ((utils: import("tailwindcss/types/config.js").PluginUtils) => Record<string, string>) | undefined;
|
|
4656
4656
|
readonly colors?: ((utils: import("tailwindcss/types/config.js").PluginUtils) => import("tailwindcss/types/config.js").RecursiveKeyValuePair<string, string>) | {
|
|
4657
4657
|
readonly [x: string]: string | /*elided*/ any;
|
|
4658
4658
|
} | undefined;
|
|
@@ -5063,7 +5063,6 @@ export declare function useTailwindConfig(): {
|
|
|
5063
5063
|
readonly size?: boolean | undefined;
|
|
5064
5064
|
readonly backgroundColor?: boolean | undefined;
|
|
5065
5065
|
readonly inset?: boolean | undefined;
|
|
5066
|
-
readonly invert?: boolean | undefined;
|
|
5067
5066
|
readonly outlineOffset?: boolean | undefined;
|
|
5068
5067
|
readonly borderRadius?: boolean | undefined;
|
|
5069
5068
|
readonly padding?: boolean | undefined;
|
|
@@ -5195,6 +5194,7 @@ export declare function useTailwindConfig(): {
|
|
|
5195
5194
|
readonly dropShadow?: boolean | undefined;
|
|
5196
5195
|
readonly grayscale?: boolean | undefined;
|
|
5197
5196
|
readonly hueRotate?: boolean | undefined;
|
|
5197
|
+
readonly invert?: boolean | undefined;
|
|
5198
5198
|
readonly saturate?: boolean | undefined;
|
|
5199
5199
|
readonly sepia?: boolean | undefined;
|
|
5200
5200
|
readonly backdropBlur?: boolean | undefined;
|
|
@@ -54,28 +54,28 @@ export type UseMutationFunction<TData, TArgs> = ((options?: Omit<UseMutationOpti
|
|
|
54
54
|
}) => Promise<TData>;
|
|
55
55
|
};
|
|
56
56
|
export declare function createUseMutation<TData extends any, TArgs extends MaybeVars>(init: CreateUseQueryOptions): UseMutationFunction<TData, TArgs>;
|
|
57
|
-
type RPCQueryName = RPCRouter["queries"]["key"];
|
|
58
|
-
type RPCQueryResult<T> = Extract<RPCRouter["queries"], {
|
|
57
|
+
export type RPCQueryName = RPCRouter["queries"]["key"];
|
|
58
|
+
export type RPCQueryResult<T extends RPCQueryName> = Extract<RPCRouter["queries"], {
|
|
59
59
|
key: T;
|
|
60
60
|
}>["output"];
|
|
61
|
-
type RPCQueryInput<T> = OptionalMaybes<Extract<RPCRouter["queries"], {
|
|
61
|
+
export type RPCQueryInput<T extends RPCQueryName> = OptionalMaybes<Extract<RPCRouter["queries"], {
|
|
62
62
|
key: T;
|
|
63
63
|
}>["input"]>;
|
|
64
|
-
type RPCQueryError<T> = TRPCClientError<Extract<RPCRouter["queries"], {
|
|
64
|
+
export type RPCQueryError<T extends RPCQueryName> = TRPCClientError<Extract<RPCRouter["queries"], {
|
|
65
65
|
key: T;
|
|
66
66
|
}>["procedure"]>;
|
|
67
67
|
export type RPCQueryOptions<TName extends RPCQueryName> = Omit<UndefinedInitialDataOptions<RPCQueryResult<TName>, RPCQueryError<TName>, RPCQueryResult<TName>>, "queryKey" | "queryFn"> & {
|
|
68
68
|
headers?: Record<string, string>;
|
|
69
69
|
};
|
|
70
70
|
export declare function useRPCQuery<TName extends RPCQueryName>(key: TName, ...[args, options]: RPCQueryInput<TName> extends void ? [args?: RPCQueryInput<TName>, options?: RPCQueryOptions<TName>] : [args: RPCQueryInput<TName>, options?: RPCQueryOptions<TName>]): UseQueryResult<RPCQueryResult<TName>, RPCQueryError<TName>>;
|
|
71
|
-
type RPCMutationName = RPCRouter["mutations"]["key"];
|
|
72
|
-
type RPCMutationResult<T> = Extract<RPCRouter["mutations"], {
|
|
71
|
+
export type RPCMutationName = RPCRouter["mutations"]["key"];
|
|
72
|
+
export type RPCMutationResult<T extends RPCMutationName> = Extract<RPCRouter["mutations"], {
|
|
73
73
|
key: T;
|
|
74
74
|
}>["output"];
|
|
75
|
-
type RPCMutationInput<T> = Extract<RPCRouter["mutations"], {
|
|
75
|
+
export type RPCMutationInput<T extends RPCMutationName> = Extract<RPCRouter["mutations"], {
|
|
76
76
|
key: T;
|
|
77
77
|
}>["input"];
|
|
78
|
-
type RPCMutationError<T> = TRPCClientError<Extract<RPCRouter["mutations"], {
|
|
78
|
+
export type RPCMutationError<T extends RPCMutationName> = TRPCClientError<Extract<RPCRouter["mutations"], {
|
|
79
79
|
key: T;
|
|
80
80
|
}>["procedure"]>;
|
|
81
81
|
export declare function useRPCMutation<TName extends RPCMutationName>(key: TName, options?: Omit<UseMutationOptions<RPCMutationResult<TName>, RPCMutationError<TName>, RPCMutationInput<TName>>, "mutationFn"> & {
|
|
@@ -1 +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,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAQlE,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,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KAAK,SACJ,gBAAgB,CAAC,KAAK,CAAC,SACvB,kBAAkB,GACxB,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;CAGrC,CAAA;AAED,wBAAgB,cAAc,gDAE7B;AAED,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -221,8 +221,9 @@ export function createUseMutation(init) {
|
|
|
221
221
|
return hook;
|
|
222
222
|
}
|
|
223
223
|
export function useRPCQuery(key, ...[args, options]) {
|
|
224
|
+
const customKey = apiConfig.customRPCQueryKey;
|
|
224
225
|
return useQuery({
|
|
225
|
-
queryKey: ["rpcQuery", key, args, options?.headers],
|
|
226
|
+
queryKey: ["rpcQuery", key, args, options?.headers, customKey],
|
|
226
227
|
queryFn: async (args) => {
|
|
227
228
|
return getRPCClient().query(key, args.queryKey[2]);
|
|
228
229
|
},
|
|
@@ -17,6 +17,21 @@ export type APIConfigStore = {
|
|
|
17
17
|
* Allows you to hook into the response of a query or mutation.
|
|
18
18
|
*/
|
|
19
19
|
onResponse?: (response: Response, type: "query" | "mutation", queryName: string, queryArgs: any, url: string, opts: RequestInit) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Any value, which will be used as part of the cache key for each RPC query.
|
|
22
|
+
*
|
|
23
|
+
* Changing this value at runtime will invalidate any cached RPC queries, and re-execute them if needed.
|
|
24
|
+
**/
|
|
25
|
+
customRPCQueryKey?: any;
|
|
26
|
+
/**
|
|
27
|
+
* Allows you to override the fetch options used when calling an RPC query or mutation.
|
|
28
|
+
* This can be used for adding things like Authorization headers to every (or certain) requests.
|
|
29
|
+
*/
|
|
30
|
+
customRPCFetchOptions?: (type: "query" | "mutation", queryName: string, url: string, opts: RequestInit) => RequestInit | Promise<RequestInit>;
|
|
31
|
+
/**
|
|
32
|
+
* Allows you to hook into the response of an RPC query or mutation.
|
|
33
|
+
*/
|
|
34
|
+
onRPCResponse?: (response: Response, type: "query" | "mutation", queryName: string, url: string, opts: RequestInit) => void;
|
|
20
35
|
set: (config: Partial<APIConfigStore>) => void;
|
|
21
36
|
/**
|
|
22
37
|
* WordPress API key, for use on the server only
|
|
@@ -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;IAE9C;;QAEI;IACJ,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,SAAS,gBAIpB,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;;;;QAII;IACJ,iBAAiB,CAAC,EAAE,GAAG,CAAA;IACvB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,CACtB,IAAI,EAAE,OAAO,GAAG,UAAU,EAC1B,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,WAAW,KACd,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IACvC;;OAEG;IACH,aAAa,CAAC,EAAE,CACd,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,OAAO,GAAG,UAAU,EAC1B,SAAS,EAAE,MAAM,EACjB,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy-wp-admin.d.ts","sourceRoot":"","sources":["../../../src/app/server/proxy-wp-admin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAwD,OAAO,EAAE,MAAM,YAAY,CAAA;AAI/G,wBAAsB,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,mBAAmB,CAAC,
|
|
1
|
+
{"version":3,"file":"proxy-wp-admin.d.ts","sourceRoot":"","sources":["../../../src/app/server/proxy-wp-admin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAwD,OAAO,EAAE,MAAM,YAAY,CAAA;AAI/G,wBAAsB,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,mBAAmB,CAAC,qBAuHrE"}
|
|
@@ -77,6 +77,7 @@ export async function proxyWpAdmin(event) {
|
|
|
77
77
|
if (contentType.startsWith("text/html")) {
|
|
78
78
|
const clientManifest = serverContext.runtime.getManifest("admin");
|
|
79
79
|
const assets = await clientManifest.inputs[clientManifest.handler].assets();
|
|
80
|
+
// @ts-ignore
|
|
80
81
|
const getViteHeader = () => assets.map((asset) => renderAsset(asset)).join("\n");
|
|
81
82
|
const getViteFooter = () => renderAsset({
|
|
82
83
|
tag: "script",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Manifest } from "vinxi/
|
|
1
|
+
import { Manifest } from "vinxi/manifest";
|
|
2
2
|
import { H3Event, RequestHeaders } from "vinxi/http";
|
|
3
3
|
import type { EDCacheConfig, EDConfig } from "../../node/project/config.js";
|
|
4
4
|
import { TrackerTags } from "../lib/routing/types.js";
|
|
@@ -53,7 +53,7 @@ export declare class ServerContext {
|
|
|
53
53
|
bypass?: boolean;
|
|
54
54
|
newOrigin?: string;
|
|
55
55
|
}): Promise<ServerAppData>;
|
|
56
|
-
extractRequestHeaders(req?: RequestHeaders): Partial<Record<import("
|
|
56
|
+
extractRequestHeaders(req?: RequestHeaders): Partial<Record<import("vinxi/http").HTTPHeaderName, string | undefined>>;
|
|
57
57
|
fetchNamedQuery(req: {
|
|
58
58
|
name: string;
|
|
59
59
|
bypass: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-context.d.ts","sourceRoot":"","sources":["../../../src/app/server/server-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server-context.d.ts","sourceRoot":"","sources":["../../../src/app/server/server-context.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,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,MAAM,EAAE,MAAM;;;;;;;;;;;;;CAiD9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trpc-client.d.ts","sourceRoot":"","sources":["../../../src/app/utils/trpc-client.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsE,iBAAiB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"trpc-client.d.ts","sourceRoot":"","sources":["../../../src/app/utils/trpc-client.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAiBpH,wBAAgB,YAAY,IAAI,iBAAiB,CAAC,GAAG,CAAC,CAyCrD"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { createTRPCUntypedClient, httpLink, httpSubscriptionLink, splitLink } from "@trpc/client";
|
|
2
2
|
import SuperJSON from "superjson";
|
|
3
3
|
import { parseURL, stringifyParsedURL } from "ufo";
|
|
4
|
+
import { apiConfig } from "../lib/runtime/apiConfig.js";
|
|
4
5
|
const updatePath = (url) => {
|
|
5
6
|
const parsed = parseURL(url);
|
|
6
7
|
parsed.pathname = "/" + parsed.pathname.replace(/(^\/|\/$)/g, "").replace(/\./g, "/") + "/";
|
|
7
8
|
return stringifyParsedURL(parsed);
|
|
8
9
|
};
|
|
10
|
+
/** Extract the dotted procedure name (e.g. `posts.list`) from a tRPC request URL */
|
|
11
|
+
const getRPCName = (url) => {
|
|
12
|
+
return (parseURL(url).pathname || "").replace(/(^\/+|\/+$)/g, "");
|
|
13
|
+
};
|
|
9
14
|
let client;
|
|
10
15
|
export function getRPCClient() {
|
|
11
16
|
if (env.rpcEnabled) {
|
|
@@ -22,11 +27,22 @@ export function getRPCClient() {
|
|
|
22
27
|
}),
|
|
23
28
|
false: httpLink({
|
|
24
29
|
url: endpoint,
|
|
25
|
-
fetch: (url, opts) => {
|
|
26
|
-
|
|
30
|
+
fetch: async (url, opts) => {
|
|
31
|
+
const type = (opts?.method ?? "GET").toUpperCase() === "POST" ? "mutation" : "query";
|
|
32
|
+
const name = getRPCName(url);
|
|
33
|
+
const finalUrl = updatePath(url);
|
|
34
|
+
let options = {
|
|
27
35
|
...opts,
|
|
28
36
|
credentials: "omit",
|
|
29
|
-
}
|
|
37
|
+
};
|
|
38
|
+
// Apply API configuration
|
|
39
|
+
if (apiConfig.customRPCFetchOptions) {
|
|
40
|
+
options = await apiConfig.customRPCFetchOptions(type, name, finalUrl, options);
|
|
41
|
+
}
|
|
42
|
+
const response = await fetch(finalUrl, options);
|
|
43
|
+
if (apiConfig.onRPCResponse)
|
|
44
|
+
apiConfig.onRPCResponse(response, type, name, finalUrl, options);
|
|
45
|
+
return response;
|
|
30
46
|
},
|
|
31
47
|
transformer: SuperJSON,
|
|
32
48
|
}),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.
|
|
1
|
+
export declare const VERSION = "2.3.13";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/node/cli/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.3.
|
|
1
|
+
export const VERSION = "2.3.13";
|
|
@@ -21,7 +21,7 @@ export class DevServer {
|
|
|
21
21
|
this.start();
|
|
22
22
|
this.origin = ProjectEnvUtils.get("SITE_URL");
|
|
23
23
|
const parsedSiteURL = parseURL(this.origin);
|
|
24
|
-
this.hostname = parsedSiteURL.host
|
|
24
|
+
this.hostname = !!parsedSiteURL.host ? parsedSiteURL.host : "localhost";
|
|
25
25
|
this.hostOrigin = (opts.https ? "https" : "http") + "://" + this.hostname + ":" + this.port;
|
|
26
26
|
}
|
|
27
27
|
async start() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-vite-config.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/get-vite-config.ts"],"names":[],"mappings":"AAMA,OAAO,EAAgB,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAG/D,OAAO,EAAE,WAAW,EA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EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,wBAAgB,WAAW,CAAC,IAAI,GAAE,eAAoB,kBA4FrD;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,YAAY,CA6CxC;AAwBD,wBAAgB,aAAa,IAAI,YAAY,CAW5C;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,EAAE,CAatD;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,CAmEtD"}
|
|
@@ -18,6 +18,6 @@ type CustomRoute = {
|
|
|
18
18
|
pattern: string;
|
|
19
19
|
handler: () => Promise<CustomRouteModule>;
|
|
20
20
|
};
|
|
21
|
-
export declare function createVinxiApp(args: AppArgs):
|
|
21
|
+
export declare function createVinxiApp(args: AppArgs): any;
|
|
22
22
|
export {};
|
|
23
23
|
//# sourceMappingURL=vinxi-app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vinxi-app.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-app.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAKtD,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAA;IACtB,MAAM,CAA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C,GAAG,EAAE,OAAO,KAAK,QAAQ,CAAA;AACrD,KAAK,iBAAiB,GAAG,MAAM,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,OA6P3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-wp.d.ts","sourceRoot":"","sources":["../../../src/node/utils/fetch-wp.ts"],"names":[],"mappings":"AASA,wBAAsB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,GAAE,WAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"fetch-wp.d.ts","sourceRoot":"","sources":["../../../src/node/utils/fetch-wp.ts"],"names":[],"mappings":"AASA,wBAAsB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,GAAE,WAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAoB1F"}
|
|
@@ -13,7 +13,8 @@ export async function fetchWP(url, args = {}) {
|
|
|
13
13
|
headers.set("x-ed-api-key", accessKey);
|
|
14
14
|
}
|
|
15
15
|
// Allow self-signed certificates when using a local development domain
|
|
16
|
-
let allowSelfSigned = isDevelopmentDomain(url)
|
|
16
|
+
// let allowSelfSigned = isDevelopmentDomain(url)
|
|
17
|
+
let allowSelfSigned = process.env.NODE_ENV === "development";
|
|
17
18
|
const response = (await fetch(url, {
|
|
18
19
|
...args,
|
|
19
20
|
dispatcher: allowSelfSigned ? agent : undefined,
|