@wix/sdk-react 0.1.0 → 0.1.1
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/build/browser/index.mjs +1 -0
- package/build/index.d.mts +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +4 -1
- package/build/index.mjs +1 -0
- package/package.json +5 -5
package/build/browser/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import { createContext, useEffect, useMemo } from "react";
|
|
|
4
4
|
import {
|
|
5
5
|
createClient
|
|
6
6
|
} from "@wix/api-client";
|
|
7
|
+
export * from "@wix/api-client";
|
|
7
8
|
var WixContext = createContext(void 0);
|
|
8
9
|
var HostEnvironmentContext = createContext(void 0);
|
|
9
10
|
function WixProvider(props) {
|
package/build/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Descriptors, Host, AuthenticationStrategy, AssertHostMatches, WixClient, BuildDescriptors } from '@wix/api-client';
|
|
3
|
+
export * from '@wix/api-client';
|
|
3
4
|
|
|
4
5
|
declare function WixProvider<T extends Descriptors<H>, H extends Host<any> = Host>(props: React.PropsWithChildren<{
|
|
5
6
|
auth?: AuthenticationStrategy<H>;
|
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Descriptors, Host, AuthenticationStrategy, AssertHostMatches, WixClient, BuildDescriptors } from '@wix/api-client';
|
|
3
|
+
export * from '@wix/api-client';
|
|
3
4
|
|
|
4
5
|
declare function WixProvider<T extends Descriptors<H>, H extends Host<any> = Host>(props: React.PropsWithChildren<{
|
|
5
6
|
auth?: AuthenticationStrategy<H>;
|
package/build/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -39,6 +40,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
39
40
|
var React = __toESM(require("react"));
|
|
40
41
|
var import_react = require("react");
|
|
41
42
|
var import_api_client = require("@wix/api-client");
|
|
43
|
+
__reExport(src_exports, require("@wix/api-client"), module.exports);
|
|
42
44
|
var WixContext = (0, import_react.createContext)(void 0);
|
|
43
45
|
var HostEnvironmentContext = (0, import_react.createContext)(void 0);
|
|
44
46
|
function WixProvider(props) {
|
|
@@ -102,5 +104,6 @@ function useEnvironment() {
|
|
|
102
104
|
useEnvironment,
|
|
103
105
|
useWix,
|
|
104
106
|
useWixAuth,
|
|
105
|
-
useWixModules
|
|
107
|
+
useWixModules,
|
|
108
|
+
...require("@wix/api-client")
|
|
106
109
|
});
|
package/build/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import { createContext, useEffect, useMemo } from "react";
|
|
|
4
4
|
import {
|
|
5
5
|
createClient
|
|
6
6
|
} from "@wix/api-client";
|
|
7
|
+
export * from "@wix/api-client";
|
|
7
8
|
var WixContext = createContext(void 0);
|
|
8
9
|
var HostEnvironmentContext = createContext(void 0);
|
|
9
10
|
function WixProvider(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/sdk-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
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/api-client": "1.2.
|
|
24
|
+
"@wix/api-client": "1.2.2"
|
|
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.68",
|
|
31
31
|
"@swc/jest": "^0.2.26",
|
|
32
32
|
"@testing-library/jest-dom": "^5.16.5",
|
|
33
33
|
"@testing-library/react": "^14.0.0",
|
|
34
34
|
"@types/react": "^18.2.14",
|
|
35
|
-
"@wix/ecom": "^1.0.
|
|
35
|
+
"@wix/ecom": "^1.0.254",
|
|
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": "57448c2ba81a2bc2eaf017b547e916dabd082896c3879c916819b9e5"
|
|
64
64
|
}
|