@hygraph/app-sdk-react 0.0.6 → 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/cjs/hooks.d.ts +2 -3
- package/dist/esm/hooks.d.ts +2 -3
- package/dist/hooks.d.ts +2 -3
- package/package.json +3 -3
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/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"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@graphcms/zoid": "^9.0.64-alpha.3",
|
|
22
|
-
"@hygraph/app-sdk": "0.0.
|
|
22
|
+
"@hygraph/app-sdk": "0.0.8"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/react": "^17.0.2",
|
|
26
26
|
"react": "^17.0.1",
|
|
27
27
|
"typescript": "^4.1.5"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "da41db91c6423639343a5aa5e72ce7023eb75328"
|
|
30
30
|
}
|