eddev 2.0.0-beta.81 → 2.0.0-beta.83
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/HydrationOverlay.d.ts +1 -3
- package/dist/app/entry/HydrationOverlay.js +2 -98
- package/dist/app/lib/devtools/hooks/useTailwind.d.ts +72 -72
- package/dist/node/cli/version.d.ts +1 -1
- package/dist/node/cli/version.js +1 -1
- package/dist/node/compiler/vinxi-codegen.js +2 -7
- package/dist/node/types/block-type.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,98 +1,2 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
import beautify from "beautify";
|
|
5
|
-
import { createPortal } from "react-dom";
|
|
6
|
-
import { useEffect, useState } from "react";
|
|
7
|
-
import ReactDiffViewer, { DiffMethod } from "react-diff-viewer-continued";
|
|
8
|
-
import { hydrationDebug } from "../utils/hydration-debugger";
|
|
9
|
-
import { useSnapshot } from "valtio";
|
|
10
|
-
// Remove emotion-inserted style tags from the HTML string from the server
|
|
11
|
-
// as they get removed before hydration, so they shouldn't show in the diff
|
|
12
|
-
// (pollutes the diff and makes it unusable)
|
|
13
|
-
function removeEmotionStyleTags(htmlString = "") {
|
|
14
|
-
const regex = /<style\s+data-emotion(?:="[^"]*"|[^>])*>[\s\S]*?<\/style>/g;
|
|
15
|
-
return htmlString.replace(regex, "");
|
|
16
|
-
}
|
|
17
|
-
const DiffViewer = ReactDiffViewer.default
|
|
18
|
-
? ReactDiffViewer.default
|
|
19
|
-
: ReactDiffViewer;
|
|
20
|
-
export function HydrationOverlay({ integrations }) {
|
|
21
|
-
const [SSRHtml, setSSRHtml] = useState("");
|
|
22
|
-
const [CSRHtml, setCSRHtml] = useState("");
|
|
23
|
-
const [showModal, setShowModal] = useState(true);
|
|
24
|
-
const [hasHydrationMismatch, setHasHydrationMismatch] = useState(false);
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
const ssrHtml = hydrationDebug.initialHTML;
|
|
28
|
-
// hydrationDebug.add({ error: new Error(), info: null })
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
// window.BUILDER_HYDRATION_OVERLAY.CSR_HTML = document.querySelector("#_app")?.innerHTML
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
const newCSRHtml = document.querySelector("#_app")?.innerHTML;
|
|
33
|
-
if (!ssrHtml || !newCSRHtml)
|
|
34
|
-
return;
|
|
35
|
-
const newSSR = beautify(ssrHtml, { format: "html" });
|
|
36
|
-
setSSRHtml(newSSR);
|
|
37
|
-
const newCSR = beautify(newCSRHtml, { format: "html" });
|
|
38
|
-
setCSRHtml(newCSR);
|
|
39
|
-
setShowModal(true);
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
if (hydrationDebug.events.length > 0) {
|
|
42
|
-
console.log("Showing modal?");
|
|
43
|
-
setHasHydrationMismatch(true);
|
|
44
|
-
}
|
|
45
|
-
}, []);
|
|
46
|
-
const hideModal = () => {
|
|
47
|
-
setShowModal(false);
|
|
48
|
-
};
|
|
49
|
-
const renderModal = showModal && hasHydrationMismatch && typeof document !== "undefined";
|
|
50
|
-
const events = useSnapshot(hydrationDebug.events);
|
|
51
|
-
if (!renderModal) {
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
const renderOverlay = () => {
|
|
55
|
-
return (_jsx("div", { style: {
|
|
56
|
-
position: "absolute",
|
|
57
|
-
top: 0,
|
|
58
|
-
left: 0,
|
|
59
|
-
right: 0,
|
|
60
|
-
bottom: 0,
|
|
61
|
-
zIndex: 999998,
|
|
62
|
-
background: "rgba(0,0,0,0.5)",
|
|
63
|
-
cursor: "pointer",
|
|
64
|
-
display: "flex",
|
|
65
|
-
flexDirection: "column",
|
|
66
|
-
fontFamily: "monospace",
|
|
67
|
-
direction: "ltr",
|
|
68
|
-
}, onClick: hideModal, children: _jsx("div", { style: {
|
|
69
|
-
zIndex: 999999,
|
|
70
|
-
margin: "4rem 6rem",
|
|
71
|
-
backgroundColor: "white",
|
|
72
|
-
borderRadius: "0.5rem",
|
|
73
|
-
overflow: "auto",
|
|
74
|
-
cursor: "auto",
|
|
75
|
-
color: "#212529",
|
|
76
|
-
}, onClick: (e) => {
|
|
77
|
-
e.stopPropagation();
|
|
78
|
-
}, children: _jsxs("div", { style: { display: "flex", flexDirection: "column" }, children: [_jsxs("div", { style: {
|
|
79
|
-
display: "flex",
|
|
80
|
-
justifyContent: "space-between",
|
|
81
|
-
borderBottom: "1px solid black",
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
}, children: [_jsx("div", { style: {
|
|
84
|
-
fontSize: "2rem",
|
|
85
|
-
fontWeight: "bold",
|
|
86
|
-
padding: "1rem",
|
|
87
|
-
}, children: "Hydration Mismatch Occurred" }), _jsx("button", { style: {
|
|
88
|
-
all: "unset",
|
|
89
|
-
cursor: "pointer",
|
|
90
|
-
padding: "0.5rem",
|
|
91
|
-
marginRight: "1rem",
|
|
92
|
-
backgroundColor: "#212529",
|
|
93
|
-
borderRadius: "0.25rem",
|
|
94
|
-
color: "white",
|
|
95
|
-
}, onClick: hideModal, children: "CLOSE" })] }), _jsx("div", { style: { position: "relative", width: "100%" }, children: _jsx(DiffViewer, { oldValue: SSRHtml, newValue: CSRHtml, leftTitle: "Server-Side Render", rightTitle: "Client-Side Render", compareMethod: DiffMethod.WORDS }) })] }) }) }));
|
|
96
|
-
};
|
|
97
|
-
return createPortal(renderOverlay(), document.body);
|
|
98
|
-
}
|
|
1
|
+
// "use client"
|
|
2
|
+
export {};
|
|
@@ -883,32 +883,20 @@ export declare function useTailwindConfig(): {
|
|
|
883
883
|
readonly corePlugins?: readonly (import("tailwindcss/types/generated/corePluginList.js").CorePluginList | undefined)[] | {
|
|
884
884
|
readonly filter?: boolean | undefined;
|
|
885
885
|
readonly fill?: boolean | undefined;
|
|
886
|
-
readonly
|
|
887
|
-
readonly
|
|
888
|
-
readonly
|
|
886
|
+
readonly translate?: boolean | undefined;
|
|
887
|
+
readonly content?: boolean | undefined;
|
|
888
|
+
readonly height?: boolean | undefined;
|
|
889
|
+
readonly width?: boolean | undefined;
|
|
889
890
|
readonly cursor?: boolean | undefined;
|
|
890
891
|
readonly display?: boolean | undefined;
|
|
891
|
-
readonly flex?: boolean | undefined;
|
|
892
|
-
readonly flexDirection?: boolean | undefined;
|
|
893
892
|
readonly fontFamily?: boolean | undefined;
|
|
894
|
-
readonly margin?: boolean | undefined;
|
|
895
|
-
readonly backgroundColor?: boolean | undefined;
|
|
896
|
-
readonly borderRadius?: boolean | undefined;
|
|
897
|
-
readonly overflow?: boolean | undefined;
|
|
898
|
-
readonly justifyContent?: boolean | undefined;
|
|
899
|
-
readonly inset?: boolean | undefined;
|
|
900
|
-
readonly alignItems?: boolean | undefined;
|
|
901
|
-
readonly width?: boolean | undefined;
|
|
902
893
|
readonly fontSize?: boolean | undefined;
|
|
903
|
-
readonly fontWeight?: boolean | undefined;
|
|
904
|
-
readonly padding?: boolean | undefined;
|
|
905
|
-
readonly translate?: boolean | undefined;
|
|
906
|
-
readonly content?: boolean | undefined;
|
|
907
|
-
readonly height?: boolean | undefined;
|
|
908
894
|
readonly fontStyle?: boolean | undefined;
|
|
895
|
+
readonly fontWeight?: boolean | undefined;
|
|
909
896
|
readonly letterSpacing?: boolean | undefined;
|
|
910
897
|
readonly opacity?: boolean | undefined;
|
|
911
898
|
readonly order?: boolean | undefined;
|
|
899
|
+
readonly overflow?: boolean | undefined;
|
|
912
900
|
readonly pointerEvents?: boolean | undefined;
|
|
913
901
|
readonly rotate?: boolean | undefined;
|
|
914
902
|
readonly scale?: boolean | undefined;
|
|
@@ -918,15 +906,22 @@ export declare function useTailwindConfig(): {
|
|
|
918
906
|
readonly transform?: boolean | undefined;
|
|
919
907
|
readonly visibility?: boolean | undefined;
|
|
920
908
|
readonly size?: boolean | undefined;
|
|
909
|
+
readonly backgroundColor?: boolean | undefined;
|
|
910
|
+
readonly inset?: boolean | undefined;
|
|
921
911
|
readonly invert?: boolean | undefined;
|
|
922
912
|
readonly outlineOffset?: boolean | undefined;
|
|
913
|
+
readonly borderRadius?: boolean | undefined;
|
|
914
|
+
readonly padding?: boolean | undefined;
|
|
915
|
+
readonly flex?: boolean | undefined;
|
|
923
916
|
readonly blur?: boolean | undefined;
|
|
924
917
|
readonly resize?: boolean | undefined;
|
|
918
|
+
readonly position?: boolean | undefined;
|
|
925
919
|
readonly columns?: boolean | undefined;
|
|
926
920
|
readonly preflight?: boolean | undefined;
|
|
927
921
|
readonly container?: boolean | undefined;
|
|
928
922
|
readonly accessibility?: boolean | undefined;
|
|
929
923
|
readonly isolation?: boolean | undefined;
|
|
924
|
+
readonly zIndex?: boolean | undefined;
|
|
930
925
|
readonly gridColumn?: boolean | undefined;
|
|
931
926
|
readonly gridColumnStart?: boolean | undefined;
|
|
932
927
|
readonly gridColumnEnd?: boolean | undefined;
|
|
@@ -935,6 +930,7 @@ export declare function useTailwindConfig(): {
|
|
|
935
930
|
readonly gridRowEnd?: boolean | undefined;
|
|
936
931
|
readonly float?: boolean | undefined;
|
|
937
932
|
readonly clear?: boolean | undefined;
|
|
933
|
+
readonly margin?: boolean | undefined;
|
|
938
934
|
readonly boxSizing?: boolean | undefined;
|
|
939
935
|
readonly lineClamp?: boolean | undefined;
|
|
940
936
|
readonly aspectRatio?: boolean | undefined;
|
|
@@ -971,12 +967,16 @@ export declare function useTailwindConfig(): {
|
|
|
971
967
|
readonly gridAutoRows?: boolean | undefined;
|
|
972
968
|
readonly gridTemplateColumns?: boolean | undefined;
|
|
973
969
|
readonly gridTemplateRows?: boolean | undefined;
|
|
970
|
+
readonly flexDirection?: boolean | undefined;
|
|
974
971
|
readonly flexWrap?: boolean | undefined;
|
|
975
972
|
readonly placeContent?: boolean | undefined;
|
|
976
973
|
readonly placeItems?: boolean | undefined;
|
|
977
974
|
readonly alignContent?: boolean | undefined;
|
|
975
|
+
readonly alignItems?: boolean | undefined;
|
|
976
|
+
readonly justifyContent?: boolean | undefined;
|
|
978
977
|
readonly justifyItems?: boolean | undefined;
|
|
979
978
|
readonly gap?: boolean | undefined;
|
|
979
|
+
readonly space?: boolean | undefined;
|
|
980
980
|
readonly divideWidth?: boolean | undefined;
|
|
981
981
|
readonly divideStyle?: boolean | undefined;
|
|
982
982
|
readonly divideColor?: boolean | undefined;
|
|
@@ -1928,32 +1928,20 @@ export declare function useTailwindConfig(): {
|
|
|
1928
1928
|
readonly corePlugins?: readonly (import("tailwindcss/types/generated/corePluginList.js").CorePluginList | undefined)[] | {
|
|
1929
1929
|
readonly filter?: boolean | undefined;
|
|
1930
1930
|
readonly fill?: boolean | undefined;
|
|
1931
|
-
readonly
|
|
1932
|
-
readonly
|
|
1933
|
-
readonly
|
|
1931
|
+
readonly translate?: boolean | undefined;
|
|
1932
|
+
readonly content?: boolean | undefined;
|
|
1933
|
+
readonly height?: boolean | undefined;
|
|
1934
|
+
readonly width?: boolean | undefined;
|
|
1934
1935
|
readonly cursor?: boolean | undefined;
|
|
1935
1936
|
readonly display?: boolean | undefined;
|
|
1936
|
-
readonly flex?: boolean | undefined;
|
|
1937
|
-
readonly flexDirection?: boolean | undefined;
|
|
1938
1937
|
readonly fontFamily?: boolean | undefined;
|
|
1939
|
-
readonly margin?: boolean | undefined;
|
|
1940
|
-
readonly backgroundColor?: boolean | undefined;
|
|
1941
|
-
readonly borderRadius?: boolean | undefined;
|
|
1942
|
-
readonly overflow?: boolean | undefined;
|
|
1943
|
-
readonly justifyContent?: boolean | undefined;
|
|
1944
|
-
readonly inset?: boolean | undefined;
|
|
1945
|
-
readonly alignItems?: boolean | undefined;
|
|
1946
|
-
readonly width?: boolean | undefined;
|
|
1947
1938
|
readonly fontSize?: boolean | undefined;
|
|
1948
|
-
readonly fontWeight?: boolean | undefined;
|
|
1949
|
-
readonly padding?: boolean | undefined;
|
|
1950
|
-
readonly translate?: boolean | undefined;
|
|
1951
|
-
readonly content?: boolean | undefined;
|
|
1952
|
-
readonly height?: boolean | undefined;
|
|
1953
1939
|
readonly fontStyle?: boolean | undefined;
|
|
1940
|
+
readonly fontWeight?: boolean | undefined;
|
|
1954
1941
|
readonly letterSpacing?: boolean | undefined;
|
|
1955
1942
|
readonly opacity?: boolean | undefined;
|
|
1956
1943
|
readonly order?: boolean | undefined;
|
|
1944
|
+
readonly overflow?: boolean | undefined;
|
|
1957
1945
|
readonly pointerEvents?: boolean | undefined;
|
|
1958
1946
|
readonly rotate?: boolean | undefined;
|
|
1959
1947
|
readonly scale?: boolean | undefined;
|
|
@@ -1963,15 +1951,22 @@ export declare function useTailwindConfig(): {
|
|
|
1963
1951
|
readonly transform?: boolean | undefined;
|
|
1964
1952
|
readonly visibility?: boolean | undefined;
|
|
1965
1953
|
readonly size?: boolean | undefined;
|
|
1954
|
+
readonly backgroundColor?: boolean | undefined;
|
|
1955
|
+
readonly inset?: boolean | undefined;
|
|
1966
1956
|
readonly invert?: boolean | undefined;
|
|
1967
1957
|
readonly outlineOffset?: boolean | undefined;
|
|
1958
|
+
readonly borderRadius?: boolean | undefined;
|
|
1959
|
+
readonly padding?: boolean | undefined;
|
|
1960
|
+
readonly flex?: boolean | undefined;
|
|
1968
1961
|
readonly blur?: boolean | undefined;
|
|
1969
1962
|
readonly resize?: boolean | undefined;
|
|
1963
|
+
readonly position?: boolean | undefined;
|
|
1970
1964
|
readonly columns?: boolean | undefined;
|
|
1971
1965
|
readonly preflight?: boolean | undefined;
|
|
1972
1966
|
readonly container?: boolean | undefined;
|
|
1973
1967
|
readonly accessibility?: boolean | undefined;
|
|
1974
1968
|
readonly isolation?: boolean | undefined;
|
|
1969
|
+
readonly zIndex?: boolean | undefined;
|
|
1975
1970
|
readonly gridColumn?: boolean | undefined;
|
|
1976
1971
|
readonly gridColumnStart?: boolean | undefined;
|
|
1977
1972
|
readonly gridColumnEnd?: boolean | undefined;
|
|
@@ -1980,6 +1975,7 @@ export declare function useTailwindConfig(): {
|
|
|
1980
1975
|
readonly gridRowEnd?: boolean | undefined;
|
|
1981
1976
|
readonly float?: boolean | undefined;
|
|
1982
1977
|
readonly clear?: boolean | undefined;
|
|
1978
|
+
readonly margin?: boolean | undefined;
|
|
1983
1979
|
readonly boxSizing?: boolean | undefined;
|
|
1984
1980
|
readonly lineClamp?: boolean | undefined;
|
|
1985
1981
|
readonly aspectRatio?: boolean | undefined;
|
|
@@ -2016,12 +2012,16 @@ export declare function useTailwindConfig(): {
|
|
|
2016
2012
|
readonly gridAutoRows?: boolean | undefined;
|
|
2017
2013
|
readonly gridTemplateColumns?: boolean | undefined;
|
|
2018
2014
|
readonly gridTemplateRows?: boolean | undefined;
|
|
2015
|
+
readonly flexDirection?: boolean | undefined;
|
|
2019
2016
|
readonly flexWrap?: boolean | undefined;
|
|
2020
2017
|
readonly placeContent?: boolean | undefined;
|
|
2021
2018
|
readonly placeItems?: boolean | undefined;
|
|
2022
2019
|
readonly alignContent?: boolean | undefined;
|
|
2020
|
+
readonly alignItems?: boolean | undefined;
|
|
2021
|
+
readonly justifyContent?: boolean | undefined;
|
|
2023
2022
|
readonly justifyItems?: boolean | undefined;
|
|
2024
2023
|
readonly gap?: boolean | undefined;
|
|
2024
|
+
readonly space?: boolean | undefined;
|
|
2025
2025
|
readonly divideWidth?: boolean | undefined;
|
|
2026
2026
|
readonly divideStyle?: boolean | undefined;
|
|
2027
2027
|
readonly divideColor?: boolean | undefined;
|
|
@@ -2948,32 +2948,20 @@ export declare function useTailwindConfig(): {
|
|
|
2948
2948
|
readonly corePlugins?: readonly (import("tailwindcss/types/generated/corePluginList.js").CorePluginList | undefined)[] | {
|
|
2949
2949
|
readonly filter?: boolean | undefined;
|
|
2950
2950
|
readonly fill?: boolean | undefined;
|
|
2951
|
-
readonly
|
|
2952
|
-
readonly
|
|
2953
|
-
readonly
|
|
2951
|
+
readonly translate?: boolean | undefined;
|
|
2952
|
+
readonly content?: boolean | undefined;
|
|
2953
|
+
readonly height?: boolean | undefined;
|
|
2954
|
+
readonly width?: boolean | undefined;
|
|
2954
2955
|
readonly cursor?: boolean | undefined;
|
|
2955
2956
|
readonly display?: boolean | undefined;
|
|
2956
|
-
readonly flex?: boolean | undefined;
|
|
2957
|
-
readonly flexDirection?: boolean | undefined;
|
|
2958
2957
|
readonly fontFamily?: boolean | undefined;
|
|
2959
|
-
readonly margin?: boolean | undefined;
|
|
2960
|
-
readonly backgroundColor?: boolean | undefined;
|
|
2961
|
-
readonly borderRadius?: boolean | undefined;
|
|
2962
|
-
readonly overflow?: boolean | undefined;
|
|
2963
|
-
readonly justifyContent?: boolean | undefined;
|
|
2964
|
-
readonly inset?: boolean | undefined;
|
|
2965
|
-
readonly alignItems?: boolean | undefined;
|
|
2966
|
-
readonly width?: boolean | undefined;
|
|
2967
2958
|
readonly fontSize?: boolean | undefined;
|
|
2968
|
-
readonly fontWeight?: boolean | undefined;
|
|
2969
|
-
readonly padding?: boolean | undefined;
|
|
2970
|
-
readonly translate?: boolean | undefined;
|
|
2971
|
-
readonly content?: boolean | undefined;
|
|
2972
|
-
readonly height?: boolean | undefined;
|
|
2973
2959
|
readonly fontStyle?: boolean | undefined;
|
|
2960
|
+
readonly fontWeight?: boolean | undefined;
|
|
2974
2961
|
readonly letterSpacing?: boolean | undefined;
|
|
2975
2962
|
readonly opacity?: boolean | undefined;
|
|
2976
2963
|
readonly order?: boolean | undefined;
|
|
2964
|
+
readonly overflow?: boolean | undefined;
|
|
2977
2965
|
readonly pointerEvents?: boolean | undefined;
|
|
2978
2966
|
readonly rotate?: boolean | undefined;
|
|
2979
2967
|
readonly scale?: boolean | undefined;
|
|
@@ -2983,15 +2971,22 @@ export declare function useTailwindConfig(): {
|
|
|
2983
2971
|
readonly transform?: boolean | undefined;
|
|
2984
2972
|
readonly visibility?: boolean | undefined;
|
|
2985
2973
|
readonly size?: boolean | undefined;
|
|
2974
|
+
readonly backgroundColor?: boolean | undefined;
|
|
2975
|
+
readonly inset?: boolean | undefined;
|
|
2986
2976
|
readonly invert?: boolean | undefined;
|
|
2987
2977
|
readonly outlineOffset?: boolean | undefined;
|
|
2978
|
+
readonly borderRadius?: boolean | undefined;
|
|
2979
|
+
readonly padding?: boolean | undefined;
|
|
2980
|
+
readonly flex?: boolean | undefined;
|
|
2988
2981
|
readonly blur?: boolean | undefined;
|
|
2989
2982
|
readonly resize?: boolean | undefined;
|
|
2983
|
+
readonly position?: boolean | undefined;
|
|
2990
2984
|
readonly columns?: boolean | undefined;
|
|
2991
2985
|
readonly preflight?: boolean | undefined;
|
|
2992
2986
|
readonly container?: boolean | undefined;
|
|
2993
2987
|
readonly accessibility?: boolean | undefined;
|
|
2994
2988
|
readonly isolation?: boolean | undefined;
|
|
2989
|
+
readonly zIndex?: boolean | undefined;
|
|
2995
2990
|
readonly gridColumn?: boolean | undefined;
|
|
2996
2991
|
readonly gridColumnStart?: boolean | undefined;
|
|
2997
2992
|
readonly gridColumnEnd?: boolean | undefined;
|
|
@@ -3000,6 +2995,7 @@ export declare function useTailwindConfig(): {
|
|
|
3000
2995
|
readonly gridRowEnd?: boolean | undefined;
|
|
3001
2996
|
readonly float?: boolean | undefined;
|
|
3002
2997
|
readonly clear?: boolean | undefined;
|
|
2998
|
+
readonly margin?: boolean | undefined;
|
|
3003
2999
|
readonly boxSizing?: boolean | undefined;
|
|
3004
3000
|
readonly lineClamp?: boolean | undefined;
|
|
3005
3001
|
readonly aspectRatio?: boolean | undefined;
|
|
@@ -3036,12 +3032,16 @@ export declare function useTailwindConfig(): {
|
|
|
3036
3032
|
readonly gridAutoRows?: boolean | undefined;
|
|
3037
3033
|
readonly gridTemplateColumns?: boolean | undefined;
|
|
3038
3034
|
readonly gridTemplateRows?: boolean | undefined;
|
|
3035
|
+
readonly flexDirection?: boolean | undefined;
|
|
3039
3036
|
readonly flexWrap?: boolean | undefined;
|
|
3040
3037
|
readonly placeContent?: boolean | undefined;
|
|
3041
3038
|
readonly placeItems?: boolean | undefined;
|
|
3042
3039
|
readonly alignContent?: boolean | undefined;
|
|
3040
|
+
readonly alignItems?: boolean | undefined;
|
|
3041
|
+
readonly justifyContent?: boolean | undefined;
|
|
3043
3042
|
readonly justifyItems?: boolean | undefined;
|
|
3044
3043
|
readonly gap?: boolean | undefined;
|
|
3044
|
+
readonly space?: boolean | undefined;
|
|
3045
3045
|
readonly divideWidth?: boolean | undefined;
|
|
3046
3046
|
readonly divideStyle?: boolean | undefined;
|
|
3047
3047
|
readonly divideColor?: boolean | undefined;
|
|
@@ -3993,32 +3993,20 @@ export declare function useTailwindConfig(): {
|
|
|
3993
3993
|
readonly corePlugins?: readonly (import("tailwindcss/types/generated/corePluginList.js").CorePluginList | undefined)[] | {
|
|
3994
3994
|
readonly filter?: boolean | undefined;
|
|
3995
3995
|
readonly fill?: boolean | undefined;
|
|
3996
|
-
readonly
|
|
3997
|
-
readonly
|
|
3998
|
-
readonly
|
|
3996
|
+
readonly translate?: boolean | undefined;
|
|
3997
|
+
readonly content?: boolean | undefined;
|
|
3998
|
+
readonly height?: boolean | undefined;
|
|
3999
|
+
readonly width?: boolean | undefined;
|
|
3999
4000
|
readonly cursor?: boolean | undefined;
|
|
4000
4001
|
readonly display?: boolean | undefined;
|
|
4001
|
-
readonly flex?: boolean | undefined;
|
|
4002
|
-
readonly flexDirection?: boolean | undefined;
|
|
4003
4002
|
readonly fontFamily?: boolean | undefined;
|
|
4004
|
-
readonly margin?: boolean | undefined;
|
|
4005
|
-
readonly backgroundColor?: boolean | undefined;
|
|
4006
|
-
readonly borderRadius?: boolean | undefined;
|
|
4007
|
-
readonly overflow?: boolean | undefined;
|
|
4008
|
-
readonly justifyContent?: boolean | undefined;
|
|
4009
|
-
readonly inset?: boolean | undefined;
|
|
4010
|
-
readonly alignItems?: boolean | undefined;
|
|
4011
|
-
readonly width?: boolean | undefined;
|
|
4012
4003
|
readonly fontSize?: boolean | undefined;
|
|
4013
|
-
readonly fontWeight?: boolean | undefined;
|
|
4014
|
-
readonly padding?: boolean | undefined;
|
|
4015
|
-
readonly translate?: boolean | undefined;
|
|
4016
|
-
readonly content?: boolean | undefined;
|
|
4017
|
-
readonly height?: boolean | undefined;
|
|
4018
4004
|
readonly fontStyle?: boolean | undefined;
|
|
4005
|
+
readonly fontWeight?: boolean | undefined;
|
|
4019
4006
|
readonly letterSpacing?: boolean | undefined;
|
|
4020
4007
|
readonly opacity?: boolean | undefined;
|
|
4021
4008
|
readonly order?: boolean | undefined;
|
|
4009
|
+
readonly overflow?: boolean | undefined;
|
|
4022
4010
|
readonly pointerEvents?: boolean | undefined;
|
|
4023
4011
|
readonly rotate?: boolean | undefined;
|
|
4024
4012
|
readonly scale?: boolean | undefined;
|
|
@@ -4028,15 +4016,22 @@ export declare function useTailwindConfig(): {
|
|
|
4028
4016
|
readonly transform?: boolean | undefined;
|
|
4029
4017
|
readonly visibility?: boolean | undefined;
|
|
4030
4018
|
readonly size?: boolean | undefined;
|
|
4019
|
+
readonly backgroundColor?: boolean | undefined;
|
|
4020
|
+
readonly inset?: boolean | undefined;
|
|
4031
4021
|
readonly invert?: boolean | undefined;
|
|
4032
4022
|
readonly outlineOffset?: boolean | undefined;
|
|
4023
|
+
readonly borderRadius?: boolean | undefined;
|
|
4024
|
+
readonly padding?: boolean | undefined;
|
|
4025
|
+
readonly flex?: boolean | undefined;
|
|
4033
4026
|
readonly blur?: boolean | undefined;
|
|
4034
4027
|
readonly resize?: boolean | undefined;
|
|
4028
|
+
readonly position?: boolean | undefined;
|
|
4035
4029
|
readonly columns?: boolean | undefined;
|
|
4036
4030
|
readonly preflight?: boolean | undefined;
|
|
4037
4031
|
readonly container?: boolean | undefined;
|
|
4038
4032
|
readonly accessibility?: boolean | undefined;
|
|
4039
4033
|
readonly isolation?: boolean | undefined;
|
|
4034
|
+
readonly zIndex?: boolean | undefined;
|
|
4040
4035
|
readonly gridColumn?: boolean | undefined;
|
|
4041
4036
|
readonly gridColumnStart?: boolean | undefined;
|
|
4042
4037
|
readonly gridColumnEnd?: boolean | undefined;
|
|
@@ -4045,6 +4040,7 @@ export declare function useTailwindConfig(): {
|
|
|
4045
4040
|
readonly gridRowEnd?: boolean | undefined;
|
|
4046
4041
|
readonly float?: boolean | undefined;
|
|
4047
4042
|
readonly clear?: boolean | undefined;
|
|
4043
|
+
readonly margin?: boolean | undefined;
|
|
4048
4044
|
readonly boxSizing?: boolean | undefined;
|
|
4049
4045
|
readonly lineClamp?: boolean | undefined;
|
|
4050
4046
|
readonly aspectRatio?: boolean | undefined;
|
|
@@ -4081,12 +4077,16 @@ export declare function useTailwindConfig(): {
|
|
|
4081
4077
|
readonly gridAutoRows?: boolean | undefined;
|
|
4082
4078
|
readonly gridTemplateColumns?: boolean | undefined;
|
|
4083
4079
|
readonly gridTemplateRows?: boolean | undefined;
|
|
4080
|
+
readonly flexDirection?: boolean | undefined;
|
|
4084
4081
|
readonly flexWrap?: boolean | undefined;
|
|
4085
4082
|
readonly placeContent?: boolean | undefined;
|
|
4086
4083
|
readonly placeItems?: boolean | undefined;
|
|
4087
4084
|
readonly alignContent?: boolean | undefined;
|
|
4085
|
+
readonly alignItems?: boolean | undefined;
|
|
4086
|
+
readonly justifyContent?: boolean | undefined;
|
|
4088
4087
|
readonly justifyItems?: boolean | undefined;
|
|
4089
4088
|
readonly gap?: boolean | undefined;
|
|
4089
|
+
readonly space?: boolean | undefined;
|
|
4090
4090
|
readonly divideWidth?: boolean | undefined;
|
|
4091
4091
|
readonly divideStyle?: boolean | undefined;
|
|
4092
4092
|
readonly divideColor?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.0.0-beta.
|
|
1
|
+
export declare const VERSION = "2.0.0-beta.83";
|
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.83";
|
|
@@ -190,18 +190,13 @@ export function createVinxiCodegen(opts) {
|
|
|
190
190
|
const bypassToken = process.env.VERCEL_BYPASS_TOKEN
|
|
191
191
|
const cookieName = "__prerender_bypass"
|
|
192
192
|
|
|
193
|
-
setCookie(event,
|
|
193
|
+
setCookie(event, cookieName, bypassToken, {
|
|
194
194
|
expires: new Date(Date.now() + 1000 * 60 * 60 * 24),
|
|
195
195
|
})
|
|
196
196
|
|
|
197
197
|
return {
|
|
198
|
-
status: 200,
|
|
199
|
-
headers: {
|
|
200
|
-
"content-type": "text/plain",
|
|
201
|
-
},
|
|
202
198
|
body: bypassToken,
|
|
203
199
|
}
|
|
204
|
-
|
|
205
200
|
}),
|
|
206
201
|
)
|
|
207
202
|
export default router.handler
|
|
@@ -566,7 +561,7 @@ export function createVinxiCodegen(opts) {
|
|
|
566
561
|
// Update URLs with dots, which tRPC prefers
|
|
567
562
|
const originalReq = getWebRequest(event)
|
|
568
563
|
const parsed = parseURL(originalReq.url)
|
|
569
|
-
parsed.pathname = "/" + parsed.pathname.replace(/(^\\/|\\/$)/g, "").replace(
|
|
564
|
+
parsed.pathname = "/" + parsed.pathname.replace(/(^\\/|\\/$)/g, "").replace(/\\//g, ".")
|
|
570
565
|
const req = new Request(stringifyParsedURL(parsed), originalReq)
|
|
571
566
|
|
|
572
567
|
// Handle any early results which are Responses
|
|
@@ -52,7 +52,7 @@ export declare const BlockMetaSchema: z.ZodObject<{
|
|
|
52
52
|
dynamic: boolean;
|
|
53
53
|
cache: boolean;
|
|
54
54
|
allowMultiple: boolean;
|
|
55
|
-
frontendMode: "
|
|
55
|
+
frontendMode: "hidden" | "default" | "childrenOnly";
|
|
56
56
|
inserter: boolean;
|
|
57
57
|
icon?: string | undefined;
|
|
58
58
|
description?: string | undefined;
|
|
@@ -88,7 +88,7 @@ export declare const BlockMetaSchema: z.ZodObject<{
|
|
|
88
88
|
postTypes: string[];
|
|
89
89
|
fieldName: string;
|
|
90
90
|
} | undefined;
|
|
91
|
-
frontendMode?: "
|
|
91
|
+
frontendMode?: "hidden" | "default" | "childrenOnly" | undefined;
|
|
92
92
|
inserter?: boolean | undefined;
|
|
93
93
|
}>;
|
|
94
94
|
export type BlockMetadata = z.infer<typeof BlockMetaSchema>;
|