eddev 0.2.2-beta.11 → 0.2.2-beta.12

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type Props = {
2
3
  previewSize: string;
3
4
  aspects: string[];
File without changes
File without changes
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CompilerState } from "../../../build/state/compiler-state";
2
3
  import { Observable } from "../../../utils/Observable";
3
4
  export declare function BundleDisplay(props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CodegenState } from "../../../build/state/codegen-state";
2
3
  import { Observable } from "../../../utils/Observable";
3
4
  export declare function CodegenDisplay(props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CodegenState } from "../../../build/state/codegen-state";
2
3
  import { CompilerState } from "../../../build/state/compiler-state";
3
4
  import { ServerlessState } from "../../../build/state/serverless-state";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ServerlessState } from "../../../build/state/serverless-state";
2
3
  import { Observable } from "../../../utils/Observable";
3
4
  export declare function ServerlessDisplay(props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type Props = {
2
3
  icon: "loading" | "tick" | "error" | "none";
3
4
  };
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function AdminBar(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type Props = {
2
3
  lerpStart?: boolean;
3
4
  lerps?: boolean;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function BreakpointIndicator(): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function DevUI(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ResponsiveAtomCalc } from "../../style";
2
3
  declare type Props = {
3
4
  data: ResponsiveAtomCalc[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BreakpointArray } from "../../style";
2
3
  export declare const RESPONSIVE_COLUMN_WIDTH = "110px";
3
4
  export declare const RESPONSIVE_ROW_HEIGHT = "20px";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type Props = {
2
3
  prefix?: string;
3
4
  suffix?: string;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function PageDataDebugger(): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function SpacingEditor(): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function TypographyEditor(): JSX.Element;
package/dev-ui/icons.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const bolt: JSX.Element;
2
3
  export declare const typography: JSX.Element;
3
4
  export declare const ruler: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function DevUILoader(): JSX.Element | null;
@@ -0,0 +1,151 @@
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>;
@@ -0,0 +1,10 @@
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/entry/Root.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare function Root(): JSX.Element;
2
3
  declare const _default: typeof Root | import("next").NextComponentType<import("next").NextPageContext, {}, {}>;
3
4
  export default _default;
@@ -0,0 +1,32 @@
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.2.2-beta.11",
3
+ "version": "0.2.2-beta.12",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {