@plasmicpkgs/plasmic-graphcms 0.0.220 → 0.0.222
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/graphcms.d.ts +38 -38
- package/dist/index.d.ts +7 -7
- package/package.json +6 -6
package/dist/graphcms.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { GlobalContextMeta } from "@plasmicapp/host";
|
|
2
|
-
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
3
|
-
import React, { ReactNode } from "react";
|
|
4
|
-
export declare function ensure<T>(x: T | null | undefined): T;
|
|
5
|
-
interface GraphCMSCredentialsProviderProps {
|
|
6
|
-
apiUrl: string;
|
|
7
|
-
authToken: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const GraphCMSCredentialsProviderMeta: GlobalContextMeta<GraphCMSCredentialsProviderProps>;
|
|
10
|
-
export declare function GraphCMSCredentialsProvider({ apiUrl, authToken, children, }: React.PropsWithChildren<GraphCMSCredentialsProviderProps>): React.JSX.Element;
|
|
11
|
-
interface GraphCMSFetcherProps {
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
className?: string;
|
|
14
|
-
noAutoRepeat?: boolean;
|
|
15
|
-
noLayout?: boolean;
|
|
16
|
-
query?: {
|
|
17
|
-
query?: string;
|
|
18
|
-
variables?: object;
|
|
19
|
-
};
|
|
20
|
-
varOverrides?: Record<string, any>;
|
|
21
|
-
setControlContextData?: (data: {
|
|
22
|
-
endpoint?: string;
|
|
23
|
-
headers?: HeadersInit;
|
|
24
|
-
}) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare const GraphCMSFetcherMeta: CodeComponentMeta<GraphCMSFetcherProps>;
|
|
27
|
-
export declare function GraphCMSFetcher({ query, children, className, noLayout, noAutoRepeat, varOverrides, setControlContextData, }: GraphCMSFetcherProps): React.JSX.Element | null;
|
|
28
|
-
interface GraphCMSFieldProps {
|
|
29
|
-
className?: string;
|
|
30
|
-
path?: string;
|
|
31
|
-
setControlContextData?: (data: {
|
|
32
|
-
data: any;
|
|
33
|
-
}) => void;
|
|
34
|
-
themeClassName?: string;
|
|
35
|
-
}
|
|
36
|
-
export declare const GraphCMSFieldMeta: CodeComponentMeta<GraphCMSFieldProps>;
|
|
37
|
-
export declare function GraphCMSField({ className, path, themeClassName, setControlContextData, }: GraphCMSFieldProps): React.JSX.Element;
|
|
38
|
-
export {};
|
|
1
|
+
import { GlobalContextMeta } from "@plasmicapp/host";
|
|
2
|
+
import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
3
|
+
import React, { ReactNode } from "react";
|
|
4
|
+
export declare function ensure<T>(x: T | null | undefined): T;
|
|
5
|
+
interface GraphCMSCredentialsProviderProps {
|
|
6
|
+
apiUrl: string;
|
|
7
|
+
authToken: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const GraphCMSCredentialsProviderMeta: GlobalContextMeta<GraphCMSCredentialsProviderProps>;
|
|
10
|
+
export declare function GraphCMSCredentialsProvider({ apiUrl, authToken, children, }: React.PropsWithChildren<GraphCMSCredentialsProviderProps>): React.JSX.Element;
|
|
11
|
+
interface GraphCMSFetcherProps {
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
noAutoRepeat?: boolean;
|
|
15
|
+
noLayout?: boolean;
|
|
16
|
+
query?: {
|
|
17
|
+
query?: string;
|
|
18
|
+
variables?: object;
|
|
19
|
+
};
|
|
20
|
+
varOverrides?: Record<string, any>;
|
|
21
|
+
setControlContextData?: (data: {
|
|
22
|
+
endpoint?: string;
|
|
23
|
+
headers?: HeadersInit;
|
|
24
|
+
}) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const GraphCMSFetcherMeta: CodeComponentMeta<GraphCMSFetcherProps>;
|
|
27
|
+
export declare function GraphCMSFetcher({ query, children, className, noLayout, noAutoRepeat, varOverrides, setControlContextData, }: GraphCMSFetcherProps): React.JSX.Element | null;
|
|
28
|
+
interface GraphCMSFieldProps {
|
|
29
|
+
className?: string;
|
|
30
|
+
path?: string;
|
|
31
|
+
setControlContextData?: (data: {
|
|
32
|
+
data: any;
|
|
33
|
+
}) => void;
|
|
34
|
+
themeClassName?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const GraphCMSFieldMeta: CodeComponentMeta<GraphCMSFieldProps>;
|
|
37
|
+
export declare function GraphCMSField({ className, path, themeClassName, setControlContextData, }: GraphCMSFieldProps): React.JSX.Element;
|
|
38
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import registerComponent from "@plasmicapp/host/registerComponent";
|
|
2
|
-
import registerGlobalContext from "@plasmicapp/host/registerGlobalContext";
|
|
3
|
-
export declare function registerAll(loader?: {
|
|
4
|
-
registerComponent: typeof registerComponent;
|
|
5
|
-
registerGlobalContext: typeof registerGlobalContext;
|
|
6
|
-
}): void;
|
|
7
|
-
export * from "./graphcms";
|
|
1
|
+
import registerComponent from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import registerGlobalContext from "@plasmicapp/host/registerGlobalContext";
|
|
3
|
+
export declare function registerAll(loader?: {
|
|
4
|
+
registerComponent: typeof registerComponent;
|
|
5
|
+
registerGlobalContext: typeof registerGlobalContext;
|
|
6
|
+
}): void;
|
|
7
|
+
export * from "./graphcms";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/plasmic-graphcms",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.222",
|
|
4
4
|
"description": "Plasmic GraphCMS components.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"start": "tsdx watch",
|
|
16
16
|
"build": "tsdx build",
|
|
17
|
-
"test": "TEST_CWD=`pwd`
|
|
17
|
+
"test": "TEST_CWD=`pwd` pnpm -w test --passWithNoTests",
|
|
18
18
|
"lint": "tsdx lint",
|
|
19
19
|
"prepublishOnly": "npm run build",
|
|
20
20
|
"size": "size-limit",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@plasmicapp/host": "2.0.
|
|
40
|
-
"@plasmicapp/query": "0.1.
|
|
41
|
-
"@types/dlv": "^1.1.
|
|
39
|
+
"@plasmicapp/host": "2.0.8",
|
|
40
|
+
"@plasmicapp/query": "0.1.86",
|
|
41
|
+
"@types/dlv": "^1.1.5",
|
|
42
42
|
"@types/react": "^18",
|
|
43
43
|
"@types/react-dom": "^18",
|
|
44
44
|
"husky": "^7.0.4",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"dlv": "^1.1.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "f2542f3c07f280e033323f363580af5dd8dc534b"
|
|
54
54
|
}
|