@wix/sdk-react 0.3.2 → 0.3.4
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/README.md +3 -0
- package/build/index.d.mts +2 -2
- package/build/index.d.ts +2 -2
- package/package.json +6 -6
package/README.md
ADDED
package/build/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Host, Descriptors, AuthenticationStrategy, AssertHostMatches, WixClient, BuildDescriptors } from '@wix/sdk';
|
|
1
|
+
import { Host, Descriptors, AuthenticationStrategy, AssertHostMatches, WixClient, BoundAuthenticationStrategy, BuildDescriptors } from '@wix/sdk';
|
|
2
2
|
export * from '@wix/sdk';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ declare function WixProvider<H extends Host<any> | undefined = undefined, T exte
|
|
|
9
9
|
}>): React.JSX.Element;
|
|
10
10
|
declare function useWix<T extends WixClient<Host<any> | undefined> = WixClient>(): T;
|
|
11
11
|
declare function useWixFetch(): (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
12
|
-
declare function useWixAuth<T extends AuthenticationStrategy>(): T;
|
|
12
|
+
declare function useWixAuth<T extends AuthenticationStrategy>(): Omit<T, "getAuthHeaders"> & BoundAuthenticationStrategy;
|
|
13
13
|
declare function useWixModules<T extends Descriptors>(modules: T): BuildDescriptors<T, Host<any>>;
|
|
14
14
|
declare function useEnvironment<T>(): T;
|
|
15
15
|
|
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Host, Descriptors, AuthenticationStrategy, AssertHostMatches, WixClient, BuildDescriptors } from '@wix/sdk';
|
|
1
|
+
import { Host, Descriptors, AuthenticationStrategy, AssertHostMatches, WixClient, BoundAuthenticationStrategy, BuildDescriptors } from '@wix/sdk';
|
|
2
2
|
export * from '@wix/sdk';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ declare function WixProvider<H extends Host<any> | undefined = undefined, T exte
|
|
|
9
9
|
}>): React.JSX.Element;
|
|
10
10
|
declare function useWix<T extends WixClient<Host<any> | undefined> = WixClient>(): T;
|
|
11
11
|
declare function useWixFetch(): (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
12
|
-
declare function useWixAuth<T extends AuthenticationStrategy>(): T;
|
|
12
|
+
declare function useWixAuth<T extends AuthenticationStrategy>(): Omit<T, "getAuthHeaders"> & BoundAuthenticationStrategy;
|
|
13
13
|
declare function useWixModules<T extends Descriptors>(modules: T): BuildDescriptors<T, Host<any>>;
|
|
14
14
|
declare function useEnvironment<T>(): T;
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/sdk-react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"module": "build/index.mjs",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"typecheck": "tsc --noEmit"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@wix/sdk": "1.5.
|
|
24
|
+
"@wix/sdk": "1.5.4"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@swc/core": "^1.3.
|
|
30
|
+
"@swc/core": "^1.3.93",
|
|
31
31
|
"@swc/jest": "^0.2.29",
|
|
32
32
|
"@testing-library/jest-dom": "^5.17.0",
|
|
33
33
|
"@testing-library/react": "^14.0.0",
|
|
34
|
-
"@types/react": "^18.2.
|
|
35
|
-
"@wix/ecom": "^1.0.
|
|
34
|
+
"@types/react": "^18.2.28",
|
|
35
|
+
"@wix/ecom": "^1.0.368",
|
|
36
36
|
"eslint": "^7.32.0",
|
|
37
37
|
"eslint-config-sdk": "0.0.0",
|
|
38
38
|
"is-ci": "^3.0.1",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"eslintConfig": {
|
|
61
61
|
"extends": "sdk"
|
|
62
62
|
},
|
|
63
|
-
"falconPackageHash": "
|
|
63
|
+
"falconPackageHash": "cdbb30e9a5ede2ada5c7b012af41802e82150c8df4a986d79ba80eba"
|
|
64
64
|
}
|