@inditextech/weave-react 0.18.0 → 0.20.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.cjs CHANGED
@@ -34,6 +34,17 @@ const WEAVE_INSTANCE_STATUS = {
34
34
  ["LOADING_FONTS"]: "loadingFonts",
35
35
  ["RUNNING"]: "running"
36
36
  };
37
+ const WEAVE_TRANSFORMER_ANCHORS = {
38
+ ["TOP_LEFT"]: "top-left",
39
+ ["TOP_CENTER"]: "top-center",
40
+ ["TOP_RIGHT"]: "top-right",
41
+ ["MIDDLE_RIGHT"]: "middle-right",
42
+ ["MIDDLE_LEFT"]: "middle-left",
43
+ ["BOTTOM_LEFT"]: "bottom-left",
44
+ ["BOTTOM_CENTER"]: "bottom-center",
45
+ ["BOTTOM_RIGHT"]: "bottom-right"
46
+ };
47
+ const WEAVE_DEFAULT_ENABLED_ANCHORS = Object.values(WEAVE_TRANSFORMER_ANCHORS);
37
48
 
38
49
  //#endregion
39
50
  //#region ../../node_modules/zustand/esm/vanilla.mjs
package/dist/react.d.cts CHANGED
@@ -6,12 +6,7 @@ import "konva/lib/types";
6
6
  import { StoreApi, UseBoundStore } from "zustand";
7
7
 
8
8
  //#region ../types/dist/types.d.ts
9
- declare const WEAVE_INSTANCE_STATUS: {
10
- readonly "IDLE": "idle";
11
- readonly "STARTING": "starting";
12
- readonly "LOADING_FONTS": "loadingFonts";
13
- readonly "RUNNING": "running";
14
- };
9
+
15
10
  type WeaveStatusKeys = keyof typeof WEAVE_INSTANCE_STATUS;
16
11
  type WeaveStatus = (typeof WEAVE_INSTANCE_STATUS)[WeaveStatusKeys];
17
12
  type WeaveElementAttributes = {
@@ -48,6 +43,12 @@ type WeaveUser = {
48
43
  type WeaveFont = {
49
44
  id: string;
50
45
  name: string;
46
+ };
47
+ declare const WEAVE_INSTANCE_STATUS: {
48
+ readonly "IDLE": "idle";
49
+ readonly "STARTING": "starting";
50
+ readonly "LOADING_FONTS": "loadingFonts";
51
+ readonly "RUNNING": "running";
51
52
  }; //#endregion
52
53
  //#region src/components/provider.d.ts
53
54
  type WeaveProviderType = {
package/dist/react.d.ts CHANGED
@@ -6,12 +6,7 @@ import "konva/lib/types";
6
6
  import { StoreApi, UseBoundStore } from "zustand";
7
7
 
8
8
  //#region ../types/dist/types.d.ts
9
- declare const WEAVE_INSTANCE_STATUS: {
10
- readonly "IDLE": "idle";
11
- readonly "STARTING": "starting";
12
- readonly "LOADING_FONTS": "loadingFonts";
13
- readonly "RUNNING": "running";
14
- };
9
+
15
10
  type WeaveStatusKeys = keyof typeof WEAVE_INSTANCE_STATUS;
16
11
  type WeaveStatus = (typeof WEAVE_INSTANCE_STATUS)[WeaveStatusKeys];
17
12
  type WeaveElementAttributes = {
@@ -48,6 +43,12 @@ type WeaveUser = {
48
43
  type WeaveFont = {
49
44
  id: string;
50
45
  name: string;
46
+ };
47
+ declare const WEAVE_INSTANCE_STATUS: {
48
+ readonly "IDLE": "idle";
49
+ readonly "STARTING": "starting";
50
+ readonly "LOADING_FONTS": "loadingFonts";
51
+ readonly "RUNNING": "running";
51
52
  }; //#endregion
52
53
  //#region src/components/provider.d.ts
53
54
  type WeaveProviderType = {
package/dist/react.js CHANGED
@@ -10,6 +10,17 @@ const WEAVE_INSTANCE_STATUS = {
10
10
  ["LOADING_FONTS"]: "loadingFonts",
11
11
  ["RUNNING"]: "running"
12
12
  };
13
+ const WEAVE_TRANSFORMER_ANCHORS = {
14
+ ["TOP_LEFT"]: "top-left",
15
+ ["TOP_CENTER"]: "top-center",
16
+ ["TOP_RIGHT"]: "top-right",
17
+ ["MIDDLE_RIGHT"]: "middle-right",
18
+ ["MIDDLE_LEFT"]: "middle-left",
19
+ ["BOTTOM_LEFT"]: "bottom-left",
20
+ ["BOTTOM_CENTER"]: "bottom-center",
21
+ ["BOTTOM_RIGHT"]: "bottom-right"
22
+ };
23
+ const WEAVE_DEFAULT_ENABLED_ANCHORS = Object.values(WEAVE_TRANSFORMER_ANCHORS);
13
24
 
14
25
  //#endregion
15
26
  //#region ../../node_modules/zustand/esm/vanilla.mjs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inditextech/weave-react",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
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.26"
49
49
  },
50
50
  "devDependencies": {
51
- "@inditextech/weave-sdk": "0.18.0",
51
+ "@inditextech/weave-sdk": "0.20.0",
52
52
  "@types/node": "^22.15.3",
53
53
  "@typescript-eslint/eslint-plugin": "8.26.0",
54
54
  "@typescript-eslint/parser": "8.26.0",