@inditextech/weave-react 2.9.4 → 2.10.0
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/react.d.ts +3 -1
- package/dist/react.js +2 -1
- package/package.json +3 -3
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Weave, WeaveAction, WeaveConnectedUsers, WeaveNode, WeavePlugin, WeaveStore } from "@inditextech/weave-sdk";
|
|
3
|
-
import { WeaveFont, WeaveSelection, WeaveState, WeaveStateElement, WeaveStatus } from "@inditextech/weave-types";
|
|
3
|
+
import { WeaveFont, WeavePerformanceConfig, WeaveSelection, WeaveState, WeaveStateElement, WeaveStatus } from "@inditextech/weave-types";
|
|
4
4
|
import { StoreApi, UseBoundStore } from "zustand";
|
|
5
5
|
|
|
6
6
|
//#region src/components/provider.d.ts
|
|
@@ -11,6 +11,7 @@ type WeaveProviderType = {
|
|
|
11
11
|
nodes?: WeaveNode[];
|
|
12
12
|
actions?: WeaveAction[];
|
|
13
13
|
plugins?: WeavePlugin[];
|
|
14
|
+
performance?: WeavePerformanceConfig;
|
|
14
15
|
customNodes?: WeaveNode[];
|
|
15
16
|
customActions?: WeaveAction[];
|
|
16
17
|
customPlugins?: WeavePlugin[];
|
|
@@ -26,6 +27,7 @@ declare const WeaveProvider: ({
|
|
|
26
27
|
customPlugins,
|
|
27
28
|
fonts,
|
|
28
29
|
logLevel,
|
|
30
|
+
performance,
|
|
29
31
|
children
|
|
30
32
|
}: Readonly<WeaveProviderType>) => React.JSX.Element;
|
|
31
33
|
|
package/dist/react.js
CHANGED
|
@@ -180,7 +180,7 @@ const useWeave = create()((set) => ({
|
|
|
180
180
|
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region src/components/provider.tsx
|
|
183
|
-
const WeaveProvider = ({ getContainer, store, nodes = [], actions = [], plugins = [], customPlugins = [], fonts = [], logLevel = "info", children }) => {
|
|
183
|
+
const WeaveProvider = ({ getContainer, store, nodes = [], actions = [], plugins = [], customPlugins = [], fonts = [], logLevel = "info", performance, children }) => {
|
|
184
184
|
const weaveInstanceRef = React.useRef(null);
|
|
185
185
|
const selectedNodes = useWeave((state) => state.selection.nodes);
|
|
186
186
|
const setInstance = useWeave((state) => state.setInstance);
|
|
@@ -253,6 +253,7 @@ const WeaveProvider = ({ getContainer, store, nodes = [], actions = [], plugins
|
|
|
253
253
|
actions,
|
|
254
254
|
plugins: [...instancePlugins, ...customPlugins],
|
|
255
255
|
fonts,
|
|
256
|
+
performance,
|
|
256
257
|
logger: { level: logLevel }
|
|
257
258
|
}, {
|
|
258
259
|
container: weaveEle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inditextech/weave-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"version:release": "npm version $RELEASE_VERSION -m \"[npm-scripts] prepare release $RELEASE_VERSION\" --tag-version-prefix \"\""
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@inditextech/weave-sdk": "2.
|
|
51
|
-
"@inditextech/weave-types": "2.
|
|
50
|
+
"@inditextech/weave-sdk": "2.10.0",
|
|
51
|
+
"@inditextech/weave-types": "2.10.0",
|
|
52
52
|
"@syncedstore/core": "0.6.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|