@hygraph/app-sdk-react 0.0.5 → 0.0.8
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/Wrapper.d.ts +1 -1
- package/dist/cjs/Wrapper.d.ts +1 -1
- package/dist/cjs/hooks.d.ts +2 -3
- package/dist/esm/Wrapper.d.ts +1 -1
- package/dist/esm/hooks.d.ts +2 -3
- package/dist/hooks.d.ts +2 -3
- package/package.json +12 -10
package/dist/Wrapper.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ type WrapperProps = {
|
|
|
14
14
|
} & {
|
|
15
15
|
children: React.ReactNode;
|
|
16
16
|
};
|
|
17
|
-
export declare function Wrapper(props: WrapperProps): JSX.Element;
|
|
17
|
+
export declare function Wrapper(props: WrapperProps): React.JSX.Element;
|
|
18
18
|
export declare function useWrapperContext(): WrapperContext;
|
|
19
19
|
export {};
|
package/dist/cjs/Wrapper.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ type WrapperProps = {
|
|
|
14
14
|
} & {
|
|
15
15
|
children: React.ReactNode;
|
|
16
16
|
};
|
|
17
|
-
export declare function Wrapper(props: WrapperProps): JSX.Element;
|
|
17
|
+
export declare function Wrapper(props: WrapperProps): React.JSX.Element;
|
|
18
18
|
export declare function useWrapperContext(): WrapperContext;
|
|
19
19
|
export {};
|
package/dist/cjs/hooks.d.ts
CHANGED
|
@@ -17,9 +17,8 @@ export declare function useApp(): {
|
|
|
17
17
|
readonly openDialog: import("@hygraph/app-sdk/dist/type-helpers/dialog").OpenDialog;
|
|
18
18
|
readonly showToast: import("@hygraph/app-sdk/dist/type-helpers/toast").ShowToast;
|
|
19
19
|
readonly openAssetPicker: import("@hygraph/app-sdk/dist/type-helpers/openAssetPicker").OpenAssetPicker;
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly historyPush: (url: string | ((href: string) => string)) => Promise<void>;
|
|
20
|
+
readonly reloadPage: () => void;
|
|
21
|
+
readonly clearSearchParams: () => void;
|
|
23
22
|
};
|
|
24
23
|
export interface FieldExtensionProps extends Omit<FieldExtensionPropsBase, 'onBlur' | 'onChange' | 'onFocus'> {
|
|
25
24
|
onBlur: <T extends HTMLElement = HTMLElement>(event?: React.FocusEvent<T>) => Promise<void>;
|
package/dist/esm/Wrapper.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ type WrapperProps = {
|
|
|
14
14
|
} & {
|
|
15
15
|
children: React.ReactNode;
|
|
16
16
|
};
|
|
17
|
-
export declare function Wrapper(props: WrapperProps): JSX.Element;
|
|
17
|
+
export declare function Wrapper(props: WrapperProps): React.JSX.Element;
|
|
18
18
|
export declare function useWrapperContext(): WrapperContext;
|
|
19
19
|
export {};
|
package/dist/esm/hooks.d.ts
CHANGED
|
@@ -17,9 +17,8 @@ export declare function useApp(): {
|
|
|
17
17
|
readonly openDialog: import("@hygraph/app-sdk/dist/type-helpers/dialog").OpenDialog;
|
|
18
18
|
readonly showToast: import("@hygraph/app-sdk/dist/type-helpers/toast").ShowToast;
|
|
19
19
|
readonly openAssetPicker: import("@hygraph/app-sdk/dist/type-helpers/openAssetPicker").OpenAssetPicker;
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly historyPush: (url: string | ((href: string) => string)) => Promise<void>;
|
|
20
|
+
readonly reloadPage: () => void;
|
|
21
|
+
readonly clearSearchParams: () => void;
|
|
23
22
|
};
|
|
24
23
|
export interface FieldExtensionProps extends Omit<FieldExtensionPropsBase, 'onBlur' | 'onChange' | 'onFocus'> {
|
|
25
24
|
onBlur: <T extends HTMLElement = HTMLElement>(event?: React.FocusEvent<T>) => Promise<void>;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -17,9 +17,8 @@ export declare function useApp(): {
|
|
|
17
17
|
readonly openDialog: import("@hygraph/app-sdk/dist/type-helpers/dialog").OpenDialog;
|
|
18
18
|
readonly showToast: import("@hygraph/app-sdk/dist/type-helpers/toast").ShowToast;
|
|
19
19
|
readonly openAssetPicker: import("@hygraph/app-sdk/dist/type-helpers/openAssetPicker").OpenAssetPicker;
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly historyPush: (url: string | ((href: string) => string)) => Promise<void>;
|
|
20
|
+
readonly reloadPage: () => void;
|
|
21
|
+
readonly clearSearchParams: () => void;
|
|
23
22
|
};
|
|
24
23
|
export interface FieldExtensionProps extends Omit<FieldExtensionPropsBase, 'onBlur' | 'onChange' | 'onFocus'> {
|
|
25
24
|
onBlur: <T extends HTMLElement = HTMLElement>(event?: React.FocusEvent<T>) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hygraph/app-sdk-react",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.8",
|
|
5
5
|
"author": "Hygraph",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -9,20 +9,22 @@
|
|
|
9
9
|
"main": "dist/cjs/index.js",
|
|
10
10
|
"module": "dist/esm/index.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "npm run build:types && npm run build:esm && npm run build:cjs",
|
|
14
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
15
|
+
"build:esm": "tsc --target es5 --module es2015 --outDir dist/esm",
|
|
16
|
+
"build:cjs": "tsc --target es5 --module commonjs --outDir dist/cjs",
|
|
17
|
+
"prepare": "npm run build",
|
|
18
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
19
|
+
},
|
|
12
20
|
"dependencies": {
|
|
13
21
|
"@graphcms/zoid": "^9.0.64-alpha.3",
|
|
14
|
-
"@hygraph/app-sdk": "0.0.
|
|
22
|
+
"@hygraph/app-sdk": "0.0.8"
|
|
15
23
|
},
|
|
16
24
|
"devDependencies": {
|
|
17
25
|
"@types/react": "^17.0.2",
|
|
18
26
|
"react": "^17.0.1",
|
|
19
27
|
"typescript": "^4.1.5"
|
|
20
28
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"build:types": "tsc --emitDeclarationOnly",
|
|
24
|
-
"build:esm": "tsc --target es5 --module es2015 --outDir dist/esm",
|
|
25
|
-
"build:cjs": "tsc --target es5 --module commonjs --outDir dist/cjs",
|
|
26
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
+
"gitHead": "da41db91c6423639343a5aa5e72ce7023eb75328"
|
|
30
|
+
}
|