eddev 0.2.1 → 0.2.2-beta.11
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/{fields → admin}/components/ImageWell.d.ts +0 -1
- package/{fields → admin}/components/ImageWell.js +0 -0
- package/{fields → admin}/defineFIeld.d.ts +0 -0
- package/{fields → admin}/defineFIeld.js +0 -0
- package/admin/defineWidget.d.ts +10 -0
- package/admin/defineWidget.js +10 -0
- package/admin/index.d.ts +3 -0
- package/{fields → admin}/index.js +2 -1
- package/{fields → admin}/installFieldTypes.d.ts +0 -0
- package/{fields → admin}/installFieldTypes.js +0 -0
- package/admin/runWidgets.d.ts +1 -0
- package/admin/runWidgets.js +40 -0
- package/{fields → admin}/selectMedia.d.ts +0 -0
- package/{fields → admin}/selectMedia.js +0 -0
- package/blocks/ContentBlocks.js +4 -1
- package/blocks/blockAttributes.d.ts +4 -0
- package/blocks/blockAttributes.js +23 -7
- package/blocks/inlineEditing.d.ts +9 -3
- package/blocks/inlineEditing.js +28 -5
- package/blocks/installGutenbergHooks.js +24 -3
- package/build/get-webpack-config.js +18 -0
- package/build/graphql-codegen/graphql-codegen-blocks.js +0 -1
- package/build/manifests/manifest-widgets.d.ts +12 -0
- package/build/manifests/manifest-widgets.js +42 -0
- package/build/serverless/create-next-app.js +0 -4
- package/build/workers/codegen-worker-script.js +3 -1
- package/cli/display/components/BundleDisplay.d.ts +0 -1
- package/cli/display/components/CodegenDisplay.d.ts +0 -1
- package/cli/display/components/DevCLIDisplay.d.ts +0 -1
- package/cli/display/components/ServerlessDisplay.d.ts +0 -1
- package/cli/display/components/StatusIcon.d.ts +0 -1
- package/cli/preinstall.js +11 -6
- package/components/AdminBar.d.ts +0 -1
- package/dev-ui/components/BreakpointColumnHeader.d.ts +0 -1
- package/dev-ui/components/BreakpointIndicator.d.ts +0 -1
- package/dev-ui/components/DevUI.d.ts +0 -1
- package/dev-ui/components/ResponsiveLerpControl.d.ts +0 -1
- package/dev-ui/components/ResponsiveScaleEditor.d.ts +0 -1
- package/dev-ui/components/ResponsiveScaleEditor.js +3 -3
- package/dev-ui/components/atoms/NumberField.d.ts +0 -1
- package/dev-ui/components/panels/PageDataDebugger.d.ts +0 -1
- package/dev-ui/components/panels/SpacingEditor.d.ts +0 -1
- package/dev-ui/components/panels/TypographyEditor.d.ts +0 -1
- package/dev-ui/components/panels/TypographyEditor.js +10 -3
- package/dev-ui/icons.d.ts +0 -1
- package/dev-ui/loader.d.ts +0 -1
- package/entry/Root.d.ts +0 -1
- package/entry/entry.admin.dev.js +13 -1
- package/entry/entry.admin.prod.js +3 -1
- package/hooks/useAppData.js +4 -0
- package/package.json +4 -4
- package/serverless-template/_utils/fetch-wp.ts +1 -0
- package/serverless-template/package.json +2 -2
- package/serverless-template/pages/_app.tsx +3 -1
- package/style/createStitches.js +30 -29
- package/dev-ui/theme.d.ts +0 -151
- package/dynamic/dynamic-component.d.ts +0 -10
- package/fields/index.d.ts +0 -2
- package/hooks/useRPC.d.ts +0 -32
- package/style/createStitches.d.ts +0 -1056
|
@@ -24,6 +24,7 @@ var Button_1 = require("../atoms/Button");
|
|
|
24
24
|
var Spacer_1 = require("../atoms/Spacer");
|
|
25
25
|
var Text_1 = require("../atoms/Text");
|
|
26
26
|
var PanelWrapper_1 = require("../PanelWrapper");
|
|
27
|
+
var ResponsiveScaleEditor_1 = require("../ResponsiveScaleEditor");
|
|
27
28
|
function TypographyEditor() {
|
|
28
29
|
var _a = (0, react_1.useState)(function () { return _theme_1.originalConfig.typography; }), values = _a[0], setValues = _a[1];
|
|
29
30
|
var parsedBreakpoints = (0, style_1.parseBreakpoints)(_theme_1.originalConfig.breakpoints, _theme_1.originalConfig.media);
|
|
@@ -49,9 +50,15 @@ function TypographyEditor() {
|
|
|
49
50
|
// })
|
|
50
51
|
} }, { children: [icons_1.paste, "Paste"] }), void 0), (0, jsx_runtime_1.jsx)(Spacer_1.Spacer, {}, void 0), (0, jsx_runtime_1.jsxs)(Button_1.Button, __assign({ small: true, onClick: reset }, { children: [icons_1.trash, " Reset"] }), void 0)] }, void 0) }, { children: (0, jsx_runtime_1.jsx)(Wrapper, { children: Object.entries(values).map(function (_a, index) {
|
|
51
52
|
var name = _a[0], settings = _a[1];
|
|
52
|
-
return ((0, jsx_runtime_1.jsxs)(TypographyItem, { children: [(0, jsx_runtime_1.jsx)(Meta, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, __assign({ variant: "monoBold" }, { children: name }), void 0) }, void 0), (0, jsx_runtime_1.
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
return ((0, jsx_runtime_1.jsxs)(TypographyItem, { children: [(0, jsx_runtime_1.jsx)(Meta, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, __assign({ variant: "monoBold" }, { children: name }), void 0) }, void 0), (0, jsx_runtime_1.jsxs)(Details, { children: [(0, jsx_runtime_1.jsx)(Preview, { css: { typography: name }, value: previewText, onChange: function (e) {
|
|
54
|
+
setPreviewText(e.currentTarget.value);
|
|
55
|
+
} }, void 0), (0, jsx_runtime_1.jsx)(ResponsiveScaleEditor_1.ResponsiveScaleEditor, { editableRange: true, editableValues: true, breakpoints: parsedBreakpoints, data: {
|
|
56
|
+
fontSize: settings.fontSize,
|
|
57
|
+
lineHeight: settings.lineHeight,
|
|
58
|
+
}, showBreakpointName: true, showRange: true, showValues: true, labelWidth: "80px", onChange: function (data) {
|
|
59
|
+
var _a;
|
|
60
|
+
setValues(__assign(__assign({}, values), (_a = {}, _a[name] = __assign(__assign({}, settings), { fontSize: data.fontSize, lineHeight: data.lineHeight }), _a)));
|
|
61
|
+
}, modes: ["px", "multiplier"] }, void 0)] }, void 0)] }, index));
|
|
55
62
|
}) }, void 0) }), void 0));
|
|
56
63
|
}
|
|
57
64
|
exports.TypographyEditor = TypographyEditor;
|
package/dev-ui/icons.d.ts
CHANGED
package/dev-ui/loader.d.ts
CHANGED
package/entry/Root.d.ts
CHANGED
package/entry/entry.admin.dev.js
CHANGED
|
@@ -3,9 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var installGutenbergHooks_1 = require("../blocks/installGutenbergHooks");
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
var _theme_1 = require("@theme");
|
|
6
|
-
var installFieldTypes_1 = require("../
|
|
6
|
+
var installFieldTypes_1 = require("../admin/installFieldTypes");
|
|
7
|
+
var runWidgets_1 = require("../admin/runWidgets");
|
|
7
8
|
(0, installGutenbergHooks_1.installEDGutenbergHooks)();
|
|
8
9
|
(0, installFieldTypes_1.installFieldTypes)();
|
|
10
|
+
window.onload = runWidgets_1.runWidgets;
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
// if (import.meta.webpackHot) {
|
|
13
|
+
// console.log("HEY", require.resolve("@manifest/widgets"))
|
|
14
|
+
// // @ts-ignore
|
|
15
|
+
// import.meta.webpackHot.accept([require.resolve("@manifest/widgets")], () => {
|
|
16
|
+
// const runWidgets = require("../admin/runWidgets").runWidgets
|
|
17
|
+
// console.log("HELLO")
|
|
18
|
+
// runWidgets()
|
|
19
|
+
// })
|
|
20
|
+
// }
|
|
9
21
|
if (_theme_1.editorGlobalStyles) {
|
|
10
22
|
(0, _theme_1.editorGlobalStyles)();
|
|
11
23
|
}
|
|
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var installGutenbergHooks_1 = require("../blocks/installGutenbergHooks");
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
var _theme_1 = require("@theme");
|
|
6
|
-
var installFieldTypes_1 = require("../
|
|
6
|
+
var installFieldTypes_1 = require("../admin/installFieldTypes");
|
|
7
|
+
var runWidgets_1 = require("../admin/runWidgets");
|
|
7
8
|
(0, installGutenbergHooks_1.installEDGutenbergHooks)();
|
|
8
9
|
(0, installFieldTypes_1.installFieldTypes)();
|
|
10
|
+
window.onload = runWidgets_1.runWidgets;
|
|
9
11
|
if (_theme_1.editorGlobalStyles) {
|
|
10
12
|
(0, _theme_1.editorGlobalStyles)();
|
|
11
13
|
}
|
package/hooks/useAppData.js
CHANGED
|
@@ -22,6 +22,10 @@ function useAppData(selector) {
|
|
|
22
22
|
return selector(value);
|
|
23
23
|
return value;
|
|
24
24
|
}
|
|
25
|
+
else if (process.admin) {
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
return selector ? selector(__ED_APP_DATA.data) : __ED_APP_DATA.data;
|
|
28
|
+
}
|
|
25
29
|
else {
|
|
26
30
|
return useAppDataStore(function (store) {
|
|
27
31
|
if (selector)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eddev",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2-beta.11",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@loadable/webpack-plugin": "^5.15.2",
|
|
49
49
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
|
|
50
50
|
"@soda/friendly-errors-webpack-plugin": "^1.8.0",
|
|
51
|
-
"@stitches/core": "^1.2.
|
|
52
|
-
"@stitches/react": "^1.2.
|
|
51
|
+
"@stitches/core": "^1.2.7",
|
|
52
|
+
"@stitches/react": "^1.2.7",
|
|
53
53
|
"@trpc/client": "^9.19.0",
|
|
54
54
|
"@trpc/next": "^9.19.0",
|
|
55
55
|
"@trpc/react": "^9.19.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"rimraf": "^3.0.2",
|
|
88
88
|
"swr": "^1.0.1",
|
|
89
89
|
"to-icon": "^1.1.4",
|
|
90
|
-
"typescript": "
|
|
90
|
+
"typescript": "4.5.5",
|
|
91
91
|
"url-parse": "^1.5.3",
|
|
92
92
|
"webpack": "^5.52.0",
|
|
93
93
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
@@ -26,7 +26,9 @@ function Root({ Component, pageProps }: AppProps) {
|
|
|
26
26
|
|
|
27
27
|
if (!appData) return <div />
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
if (!View) {
|
|
30
|
+
console.log(`Could not load view named "${pageProps.view}"`)
|
|
31
|
+
}
|
|
30
32
|
|
|
31
33
|
return (
|
|
32
34
|
<ServerlessAppDataProvider value={appData}>
|
package/style/createStitches.js
CHANGED
|
@@ -78,11 +78,11 @@ function parseTypography(theme, breakpoints, typography) {
|
|
|
78
78
|
return value;
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
var
|
|
81
|
+
for (var name_1 in typography) {
|
|
82
82
|
var style = typography[name_1];
|
|
83
83
|
var variant = {};
|
|
84
84
|
typeVariants[name_1] = variant;
|
|
85
|
-
var
|
|
85
|
+
for (var key in style) {
|
|
86
86
|
var value = style[key];
|
|
87
87
|
var varName = "--type-".concat(name_1, "-").concat(key);
|
|
88
88
|
variant[key] = "var(".concat(varName, ")");
|
|
@@ -93,36 +93,37 @@ function parseTypography(theme, breakpoints, typography) {
|
|
|
93
93
|
}
|
|
94
94
|
else if (value && typeof value === "object") {
|
|
95
95
|
// A responsive object value
|
|
96
|
-
var
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
96
|
+
var unit = key === "lineHeight" ? "%" : "px";
|
|
97
|
+
var _a = getResponsiveObjectStyles(breakpoints, value, varName, unit), tokenGlobals = _a[0], initial = _a[1];
|
|
98
|
+
for (var key_1 in tokenGlobals) {
|
|
99
|
+
globals[key_1] = __assign(__assign({}, globals[key_1]), tokenGlobals[key_1]);
|
|
100
|
+
}
|
|
101
|
+
// const entries = Object.entries(value)
|
|
102
|
+
// entries.forEach(([bpName, responsiveValue], i) => {
|
|
103
|
+
// if (Array.isArray(responsiveValue)) {
|
|
104
|
+
// responsiveValue = responsiveValue[0]
|
|
105
|
+
// // An array in the format [value] signifies font locking between the current breakpoint and the next defined one
|
|
106
|
+
// const minSize = breakpoints.find((bp) => "@" + bp.key === bpName)?.min
|
|
107
|
+
// const nextBreakpoint = breakpoints.find((bp) => "@" + bp.key === entries[i + 1]?.[0])
|
|
108
|
+
// if (!nextBreakpoint)
|
|
109
|
+
// throw new Error(
|
|
110
|
+
// `Cannot create responsive '${key}' for '${name}' at breakpoint '${bpName}', since it is the last-defined breakpoint. Your last size should be a string/number/token.`
|
|
111
|
+
// )
|
|
112
|
+
// const maxSize = nextBreakpoint.min
|
|
113
|
+
// let responsiveValue2 = (value as any)["@" + nextBreakpoint.key]
|
|
114
|
+
// if (Array.isArray(responsiveValue2)) responsiveValue2 = responsiveValue2[0]
|
|
115
|
+
// let size1 = resolveValue(tokenPrefix, responsiveValue)
|
|
116
|
+
// let size2 = resolveValue(tokenPrefix, responsiveValue2)
|
|
117
|
+
// responsiveValue = `calc(${size1} + (100vw - ${minSize}) / (${unitless(maxSize)} - ${unitless(
|
|
118
|
+
// minSize
|
|
119
|
+
// )}) * (${unitless(size2)} - ${unitless(size1)}))`
|
|
120
|
+
// }
|
|
121
|
+
// globals[bpName][varName] = responsiveValue
|
|
122
|
+
// })
|
|
117
123
|
}
|
|
118
|
-
};
|
|
119
|
-
for (var key in style) {
|
|
120
|
-
_loop_2(key);
|
|
121
124
|
}
|
|
122
|
-
};
|
|
123
|
-
for (var name_1 in typography) {
|
|
124
|
-
_loop_1(name_1);
|
|
125
125
|
}
|
|
126
|
+
// debugger
|
|
126
127
|
return { globalTypography: globals, typeVariants: typeVariants };
|
|
127
128
|
}
|
|
128
129
|
function parseGrid(theme, media, grid) {
|
package/dev-ui/theme.d.ts
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const styled: <Type extends import("react").ComponentType<any> | keyof JSX.IntrinsicElements | import("@stitches/react/types/util").Function, Composers extends (string | import("react").ComponentType<any> | import("@stitches/react/types/util").Function | {
|
|
3
|
-
[name: string]: unknown;
|
|
4
|
-
})[], CSS = import("@stitches/react/types/css-util").CSS<{}, {
|
|
5
|
-
space: {
|
|
6
|
-
smallButtonHeight: string;
|
|
7
|
-
buttonHeight: string;
|
|
8
|
-
0: string;
|
|
9
|
-
1: string;
|
|
10
|
-
2: string;
|
|
11
|
-
3: string;
|
|
12
|
-
4: string;
|
|
13
|
-
5: string;
|
|
14
|
-
6: string;
|
|
15
|
-
};
|
|
16
|
-
colors: {
|
|
17
|
-
bg: string;
|
|
18
|
-
bgHover: string;
|
|
19
|
-
bgHoverLight: string;
|
|
20
|
-
bgLine: string;
|
|
21
|
-
bgLineStrong: string;
|
|
22
|
-
button: string;
|
|
23
|
-
buttonHover: string;
|
|
24
|
-
fg: string;
|
|
25
|
-
fgFaded: string;
|
|
26
|
-
};
|
|
27
|
-
fontSizes: {
|
|
28
|
-
sm: string;
|
|
29
|
-
md: string;
|
|
30
|
-
lg: string;
|
|
31
|
-
xl: string;
|
|
32
|
-
};
|
|
33
|
-
fonts: {
|
|
34
|
-
body: string;
|
|
35
|
-
mono: string;
|
|
36
|
-
};
|
|
37
|
-
radii: {
|
|
38
|
-
sm: string;
|
|
39
|
-
md: string;
|
|
40
|
-
lg: string;
|
|
41
|
-
};
|
|
42
|
-
transitions: {
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
|
-
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>(type: Type, ...composers: { [K in keyof Composers]: Composers[K] extends string | import("react").ComponentType<any> | import("@stitches/react/types/util").Function ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
|
|
46
|
-
variants?: {
|
|
47
|
-
[x: string]: {
|
|
48
|
-
[x: string]: CSS;
|
|
49
|
-
[x: number]: CSS;
|
|
50
|
-
};
|
|
51
|
-
} | undefined;
|
|
52
|
-
compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : import("@stitches/react/types/util").WideObject) & {
|
|
53
|
-
css: CSS;
|
|
54
|
-
})[] | undefined;
|
|
55
|
-
defaultVariants?: ("variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : import("@stitches/react/types/util").WideObject) | undefined;
|
|
56
|
-
} & CSS & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; }; }) => import("@stitches/react/types/styled-component").StyledComponent<Type, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, import("@stitches/react/types/css-util").CSS<{}, {
|
|
57
|
-
space: {
|
|
58
|
-
smallButtonHeight: string;
|
|
59
|
-
buttonHeight: string;
|
|
60
|
-
0: string;
|
|
61
|
-
1: string;
|
|
62
|
-
2: string;
|
|
63
|
-
3: string;
|
|
64
|
-
4: string;
|
|
65
|
-
5: string;
|
|
66
|
-
6: string;
|
|
67
|
-
};
|
|
68
|
-
colors: {
|
|
69
|
-
bg: string;
|
|
70
|
-
bgHover: string;
|
|
71
|
-
bgHoverLight: string;
|
|
72
|
-
bgLine: string;
|
|
73
|
-
bgLineStrong: string;
|
|
74
|
-
button: string;
|
|
75
|
-
buttonHover: string;
|
|
76
|
-
fg: string;
|
|
77
|
-
fgFaded: string;
|
|
78
|
-
};
|
|
79
|
-
fontSizes: {
|
|
80
|
-
sm: string;
|
|
81
|
-
md: string;
|
|
82
|
-
lg: string;
|
|
83
|
-
xl: string;
|
|
84
|
-
};
|
|
85
|
-
fonts: {
|
|
86
|
-
body: string;
|
|
87
|
-
mono: string;
|
|
88
|
-
};
|
|
89
|
-
radii: {
|
|
90
|
-
sm: string;
|
|
91
|
-
md: string;
|
|
92
|
-
lg: string;
|
|
93
|
-
};
|
|
94
|
-
transitions: {
|
|
95
|
-
default: string;
|
|
96
|
-
};
|
|
97
|
-
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>, css: <Composers extends (string | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> | import("@stitches/react/types/util").Function | {
|
|
98
|
-
[name: string]: unknown;
|
|
99
|
-
})[], CSS = import("@stitches/react/types/css-util").CSS<{}, {
|
|
100
|
-
space: {
|
|
101
|
-
smallButtonHeight: string;
|
|
102
|
-
buttonHeight: string;
|
|
103
|
-
0: string;
|
|
104
|
-
1: string;
|
|
105
|
-
2: string;
|
|
106
|
-
3: string;
|
|
107
|
-
4: string;
|
|
108
|
-
5: string;
|
|
109
|
-
6: string;
|
|
110
|
-
};
|
|
111
|
-
colors: {
|
|
112
|
-
bg: string;
|
|
113
|
-
bgHover: string;
|
|
114
|
-
bgHoverLight: string;
|
|
115
|
-
bgLine: string;
|
|
116
|
-
bgLineStrong: string;
|
|
117
|
-
button: string;
|
|
118
|
-
buttonHover: string;
|
|
119
|
-
fg: string;
|
|
120
|
-
fgFaded: string;
|
|
121
|
-
};
|
|
122
|
-
fontSizes: {
|
|
123
|
-
sm: string;
|
|
124
|
-
md: string;
|
|
125
|
-
lg: string;
|
|
126
|
-
xl: string;
|
|
127
|
-
};
|
|
128
|
-
fonts: {
|
|
129
|
-
body: string;
|
|
130
|
-
mono: string;
|
|
131
|
-
};
|
|
132
|
-
radii: {
|
|
133
|
-
sm: string;
|
|
134
|
-
md: string;
|
|
135
|
-
lg: string;
|
|
136
|
-
};
|
|
137
|
-
transitions: {
|
|
138
|
-
default: string;
|
|
139
|
-
};
|
|
140
|
-
}, import("@stitches/react/types/config").DefaultThemeMap, {}>>(...composers: { [K in keyof Composers]: Composers[K] extends string | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> | import("@stitches/react/types/util").Function ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
|
|
141
|
-
variants?: {
|
|
142
|
-
[x: string]: {
|
|
143
|
-
[x: string]: CSS;
|
|
144
|
-
[x: number]: CSS;
|
|
145
|
-
};
|
|
146
|
-
} | undefined;
|
|
147
|
-
compoundVariants?: (("variants" extends keyof Composers[K] ? { [Name in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : import("@stitches/react/types/util").WideObject) & {
|
|
148
|
-
css: CSS;
|
|
149
|
-
})[] | undefined;
|
|
150
|
-
defaultVariants?: ("variants" extends keyof Composers[K] ? { [Name_1 in keyof Composers[K][keyof Composers[K] & "variants"]]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : import("@stitches/react/types/util").WideObject) | undefined;
|
|
151
|
-
} & CSS & { [K2 in keyof Composers[K]]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; }; }) => import("@stitches/react/types/styled-component").CssComponent<import("@stitches/react/types/styled-component").StyledComponentType<Composers>, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, CSS>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const dynamic: {
|
|
3
|
-
<Props, Module = import("@loadable/component").DefaultComponent<Props>>(loadFn: (props: Props) => Promise<Module>, options: import("@loadable/component").OptionsWithResolver<Props, Module>): import("@loadable/component").LoadableComponent<Props>;
|
|
4
|
-
<Props_1>(loadFn: (props: Props_1) => Promise<import("@loadable/component").DefaultComponent<Props_1>>, options?: import("@loadable/component").OptionsWithoutResolver<Props_1> | undefined): import("@loadable/component").LoadableComponent<Props_1>;
|
|
5
|
-
<Component extends import("react").ComponentClass<any, any>>(loadFn: (props: import("react").ComponentProps<Component>) => Promise<Component | {
|
|
6
|
-
default: Component;
|
|
7
|
-
}>, options?: import("@loadable/component").Options<import("react").ComponentProps<Component>, Component> | undefined): import("@loadable/component").LoadableClassComponent<Component>;
|
|
8
|
-
} & {
|
|
9
|
-
lib: <Props_2, Module_1>(loadFn: (props: Props_2) => Promise<Module_1>, options?: import("@loadable/component").OptionsWithoutResolver<Props_2> | undefined) => import("@loadable/component").LoadableLibrary<Module_1>;
|
|
10
|
-
};
|
package/fields/index.d.ts
DELETED
package/hooks/useRPC.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TRPCClientError } from "@trpc/client";
|
|
3
|
-
declare const trpc: {
|
|
4
|
-
Provider: ({ client, queryClient, children, isPrepass, ssrContext, }: {
|
|
5
|
-
queryClient: import("react-query").QueryClient;
|
|
6
|
-
client: import("@trpc/react").TRPCClient<import("@trpc/server").AnyRouter<any>>;
|
|
7
|
-
children: import("react").ReactNode;
|
|
8
|
-
isPrepass?: boolean | undefined;
|
|
9
|
-
ssrContext?: unknown;
|
|
10
|
-
}) => JSX.Element;
|
|
11
|
-
createClient: (opts: import("@trpc/react").CreateTRPCClientOptions<import("@trpc/server").AnyRouter<any>>) => import("@trpc/react").TRPCClient<import("@trpc/server").AnyRouter<any>>;
|
|
12
|
-
useContext: () => import("@trpc/react/dist/declarations/src/internals/context").TRPCContextState<import("@trpc/server").AnyRouter<any>, unknown>;
|
|
13
|
-
useQuery: <TPath extends string>(pathAndInput: [TPath, (null | undefined)?], opts?: import("@trpc/react").UseTRPCQueryOptions<TPath, unknown, any, import("@trpc/react").TRPCClientErrorLike<import("@trpc/server").AnyRouter<any>>> | undefined) => import("react-query").UseQueryResult<any, import("@trpc/react").TRPCClientErrorLike<import("@trpc/server").AnyRouter<any>>>;
|
|
14
|
-
useMutation: <TPath_1 extends string>(path: TPath_1 | [TPath_1], opts?: import("@trpc/react").UseTRPCMutationOptions<unknown, import("@trpc/react").TRPCClientErrorLike<import("@trpc/server").AnyRouter<any>>, any> | undefined) => import("react-query").UseMutationResult<any, import("@trpc/react").TRPCClientErrorLike<import("@trpc/server").AnyRouter<any>>, unknown, unknown>;
|
|
15
|
-
useSubscription: <TPath_2 extends string, TOutput extends any>(pathAndInput: [TPath_2, (null | undefined)?], opts: {
|
|
16
|
-
enabled?: boolean | undefined;
|
|
17
|
-
onError?: ((err: import("@trpc/react").TRPCClientErrorLike<import("@trpc/server").AnyRouter<any>>) => void) | undefined;
|
|
18
|
-
onNext: (data: TOutput) => void;
|
|
19
|
-
}) => void;
|
|
20
|
-
useDehydratedState: (client: import("@trpc/react").TRPCClient<import("@trpc/server").AnyRouter<any>>, trpcState: import("react-query").DehydratedState | undefined) => import("react-query").DehydratedState | undefined;
|
|
21
|
-
useInfiniteQuery: <TPath_3 extends never>(pathAndInput: [path: TPath_3, input: Omit<unknown, "cursor">], opts?: import("@trpc/react").UseTRPCInfiniteQueryOptions<TPath_3, Omit<unknown, "cursor">, any, import("@trpc/react").TRPCClientErrorLike<import("@trpc/server").AnyRouter<any>>> | undefined) => import("react-query").UseInfiniteQueryResult<any, import("@trpc/react").TRPCClientErrorLike<import("@trpc/server").AnyRouter<any>>>;
|
|
22
|
-
};
|
|
23
|
-
export declare const useRPCQuery: RPCUseQuery;
|
|
24
|
-
export declare const useRPCMutation: RPCUseMutation;
|
|
25
|
-
export declare const useRPCInfiniteQuery: RPCUseInfiniteQuery;
|
|
26
|
-
export declare const rpcClient: RPCClient;
|
|
27
|
-
export declare type UseRPCMutationResult = ReturnType<typeof trpc.useMutation>;
|
|
28
|
-
export declare type UseRPCQueryResult = ReturnType<typeof trpc.useQuery>;
|
|
29
|
-
export declare type UseRPCInfiniteQueryResult = ReturnType<typeof trpc.useInfiniteQuery>;
|
|
30
|
-
export declare const RPCClientError: typeof TRPCClientError;
|
|
31
|
-
export declare type RPCClientError = InstanceType<typeof TRPCClientError>;
|
|
32
|
-
export {};
|