@inditextech/weave-react 0.42.0 → 0.42.2
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.cjs +2 -2
- package/dist/react.d.cts +2 -0
- package/dist/react.d.ts +2 -0
- package/dist/react.js +2 -2
- package/package.json +2 -2
package/dist/react.cjs
CHANGED
|
@@ -228,7 +228,7 @@ const useWeave = create()((set) => ({
|
|
|
228
228
|
|
|
229
229
|
//#endregion
|
|
230
230
|
//#region src/components/provider.tsx
|
|
231
|
-
const WeaveProvider = ({ getContainer, store, nodes = [], actions = [], plugins = [], customPlugins = [], fonts = [], children }) => {
|
|
231
|
+
const WeaveProvider = ({ getContainer, store, nodes = [], actions = [], plugins = [], customPlugins = [], fonts = [], logLevel = "info", children }) => {
|
|
232
232
|
const weaveInstanceRef = react.default.useRef(null);
|
|
233
233
|
const selectedNodes = useWeave((state) => state.selection.nodes);
|
|
234
234
|
const setInstance = useWeave((state) => state.setInstance);
|
|
@@ -301,7 +301,7 @@ const WeaveProvider = ({ getContainer, store, nodes = [], actions = [], plugins
|
|
|
301
301
|
actions,
|
|
302
302
|
plugins: [...instancePlugins, ...customPlugins],
|
|
303
303
|
fonts,
|
|
304
|
-
logger: { level:
|
|
304
|
+
logger: { level: logLevel }
|
|
305
305
|
}, {
|
|
306
306
|
container: weaveEle,
|
|
307
307
|
width: weaveEleClientRect?.width ?? 1920,
|
package/dist/react.d.cts
CHANGED
|
@@ -60,6 +60,7 @@ type WeaveProviderType = {
|
|
|
60
60
|
customActions?: WeaveAction[];
|
|
61
61
|
customPlugins?: WeavePlugin[];
|
|
62
62
|
children: React.ReactNode;
|
|
63
|
+
logLevel?: "debug" | "info" | "warn" | "error";
|
|
63
64
|
};
|
|
64
65
|
declare const WeaveProvider: ({
|
|
65
66
|
getContainer,
|
|
@@ -69,6 +70,7 @@ declare const WeaveProvider: ({
|
|
|
69
70
|
plugins,
|
|
70
71
|
customPlugins,
|
|
71
72
|
fonts,
|
|
73
|
+
logLevel,
|
|
72
74
|
children
|
|
73
75
|
}: Readonly<WeaveProviderType>) => React.JSX.Element;
|
|
74
76
|
|
package/dist/react.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ type WeaveProviderType = {
|
|
|
60
60
|
customActions?: WeaveAction[];
|
|
61
61
|
customPlugins?: WeavePlugin[];
|
|
62
62
|
children: React.ReactNode;
|
|
63
|
+
logLevel?: "debug" | "info" | "warn" | "error";
|
|
63
64
|
};
|
|
64
65
|
declare const WeaveProvider: ({
|
|
65
66
|
getContainer,
|
|
@@ -69,6 +70,7 @@ declare const WeaveProvider: ({
|
|
|
69
70
|
plugins,
|
|
70
71
|
customPlugins,
|
|
71
72
|
fonts,
|
|
73
|
+
logLevel,
|
|
72
74
|
children
|
|
73
75
|
}: Readonly<WeaveProviderType>) => React.JSX.Element;
|
|
74
76
|
|
package/dist/react.js
CHANGED
|
@@ -204,7 +204,7 @@ const useWeave = create()((set) => ({
|
|
|
204
204
|
|
|
205
205
|
//#endregion
|
|
206
206
|
//#region src/components/provider.tsx
|
|
207
|
-
const WeaveProvider = ({ getContainer, store, nodes = [], actions = [], plugins = [], customPlugins = [], fonts = [], children }) => {
|
|
207
|
+
const WeaveProvider = ({ getContainer, store, nodes = [], actions = [], plugins = [], customPlugins = [], fonts = [], logLevel = "info", children }) => {
|
|
208
208
|
const weaveInstanceRef = React.useRef(null);
|
|
209
209
|
const selectedNodes = useWeave((state) => state.selection.nodes);
|
|
210
210
|
const setInstance = useWeave((state) => state.setInstance);
|
|
@@ -277,7 +277,7 @@ const WeaveProvider = ({ getContainer, store, nodes = [], actions = [], plugins
|
|
|
277
277
|
actions,
|
|
278
278
|
plugins: [...instancePlugins, ...customPlugins],
|
|
279
279
|
fonts,
|
|
280
|
-
logger: { level:
|
|
280
|
+
logger: { level: logLevel }
|
|
281
281
|
}, {
|
|
282
282
|
container: weaveEle,
|
|
283
283
|
width: weaveEleClientRect?.width ?? 1920,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inditextech/weave-react",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"yjs": "13.6.27"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@inditextech/weave-sdk": "0.42.
|
|
51
|
+
"@inditextech/weave-sdk": "0.42.2",
|
|
52
52
|
"@types/node": "^22.15.3",
|
|
53
53
|
"@typescript-eslint/eslint-plugin": "8.26.0",
|
|
54
54
|
"@typescript-eslint/parser": "8.26.0",
|