@inditextech/weave-react 3.0.0-SNAPSHOT.14.1 → 3.0.0-SNAPSHOT.18.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/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Weave, WeaveAction, WeaveConnectedUsers, WeaveNode, WeavePlugin, WeaveStore } from "@inditextech/weave-sdk";
2
+ import { Weave, WeaveAction, WeaveConnectedUsers, WeaveNode, WeavePlugin, WeaveRenderer, WeaveStore } from "@inditextech/weave-sdk";
3
3
  import { WeaveChildLoggerLevel, WeaveFont, WeavePerformanceConfig, WeaveSelection, WeaveState, WeaveStateElement, WeaveStatus } from "@inditextech/weave-types";
4
4
  import { StoreApi, UseBoundStore } from "zustand";
5
5
 
@@ -8,6 +8,7 @@ type WeaveProviderType = {
8
8
  getContainer: () => HTMLElement;
9
9
  fonts?: WeaveFont[] | (() => Promise<WeaveFont[]>);
10
10
  store: WeaveStore;
11
+ renderer: WeaveRenderer;
11
12
  nodes?: WeaveNode[];
12
13
  actions?: WeaveAction[];
13
14
  plugins?: WeavePlugin[];
@@ -19,6 +20,7 @@ type WeaveProviderType = {
19
20
  declare const WeaveProvider: ({
20
21
  getContainer,
21
22
  store,
23
+ renderer,
22
24
  nodes,
23
25
  actions,
24
26
  plugins,
package/dist/react.js CHANGED
@@ -205,7 +205,7 @@ const useWeave = create()((set) => ({
205
205
 
206
206
  //#endregion
207
207
  //#region src/components/provider.tsx
208
- const WeaveProvider = ({ getContainer, store, nodes = [], actions = [], plugins = [], fonts = [], logLevel = "info", logModules = [], performance, children }) => {
208
+ const WeaveProvider = ({ getContainer, store, renderer, nodes = [], actions = [], plugins = [], fonts = [], logLevel = "info", logModules = [], performance, children }) => {
209
209
  const weaveInstanceRef = React.useRef(null);
210
210
  const selectedNodes = useWeave((state) => state.selection.nodes);
211
211
  const setInstance = useWeave((state) => state.setInstance);
@@ -284,6 +284,7 @@ const WeaveProvider = ({ getContainer, store, nodes = [], actions = [], plugins
284
284
  if (weaveEle && !weaveInstanceRef.current) {
285
285
  weaveInstanceRef.current = new Weave({
286
286
  store,
287
+ renderer,
287
288
  nodes,
288
289
  actions,
289
290
  plugins,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inditextech/weave-react",
3
- "version": "3.0.0-SNAPSHOT.14.1",
3
+ "version": "3.0.0-SNAPSHOT.18.1",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
@@ -35,7 +35,7 @@
35
35
  "lint:fix": "npm run lint -- --fix",
36
36
  "lint": "eslint ./src",
37
37
  "pack": "npm pack",
38
- "publish:snapshot": "npm publish",
38
+ "publish:snapshot": "npm publish --tag next --access public",
39
39
  "release:perform": "npm publish --access public",
40
40
  "release:prepare": "npm run verify",
41
41
  "test": "vitest --passWithNoTests --coverage --watch=false",
@@ -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": "3.0.0-SNAPSHOT.14.1",
51
- "@inditextech/weave-types": "3.0.0-SNAPSHOT.14.1",
50
+ "@inditextech/weave-sdk": "3.0.0-SNAPSHOT.18.1",
51
+ "@inditextech/weave-types": "3.0.0-SNAPSHOT.18.1",
52
52
  "@syncedstore/core": "0.6.0"
53
53
  },
54
54
  "devDependencies": {