@inditextech/weave-sdk 3.2.4 → 3.2.5
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/sdk.js +12 -7
- package/dist/sdk.node.js +12 -7
- package/dist/types.d.ts +14 -14
- package/dist/types.js +12 -7
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
package/dist/sdk.js
CHANGED
|
@@ -21971,7 +21971,7 @@ var WeaveRegisterManager = class {
|
|
|
21971
21971
|
|
|
21972
21972
|
//#endregion
|
|
21973
21973
|
//#region package.json
|
|
21974
|
-
var version = "3.2.
|
|
21974
|
+
var version = "3.2.5";
|
|
21975
21975
|
|
|
21976
21976
|
//#endregion
|
|
21977
21977
|
//#region src/managers/setup.ts
|
|
@@ -25751,12 +25751,14 @@ const doPreloadCursors = async (cursorsToPreload, setCursor, getFallbackCursor,
|
|
|
25751
25751
|
const cursorUrls = [];
|
|
25752
25752
|
for (const cursorKey of cursors) {
|
|
25753
25753
|
const cursorValue = cursorsToPreload[cursorKey];
|
|
25754
|
-
|
|
25755
|
-
|
|
25756
|
-
|
|
25757
|
-
|
|
25758
|
-
|
|
25759
|
-
|
|
25754
|
+
if (hasValidUrl(cursorValue)) {
|
|
25755
|
+
const { preload, cursor } = extractCursorUrl(cursorValue);
|
|
25756
|
+
if (preload) cursorUrls.push({
|
|
25757
|
+
state: cursorKey,
|
|
25758
|
+
value: cursorValue,
|
|
25759
|
+
src: cursor
|
|
25760
|
+
});
|
|
25761
|
+
} else setCursor(cursorKey, cursorValue);
|
|
25760
25762
|
}
|
|
25761
25763
|
if (cursorUrls.length > 0) {
|
|
25762
25764
|
const cursorsPreloading = [];
|
|
@@ -25805,6 +25807,9 @@ const extractCursorUrl = (cursor) => {
|
|
|
25805
25807
|
cursor: url
|
|
25806
25808
|
};
|
|
25807
25809
|
};
|
|
25810
|
+
const hasValidUrl = (value) => {
|
|
25811
|
+
return /url\(["']?.+?["']?\)/i.test(value);
|
|
25812
|
+
};
|
|
25808
25813
|
const isAllowedUrl = (value) => {
|
|
25809
25814
|
if (/^https?:\/\//i.test(value)) return true;
|
|
25810
25815
|
if (/^(javascript|data|blob|ftp):/i.test(value)) return false;
|
package/dist/sdk.node.js
CHANGED
|
@@ -21970,7 +21970,7 @@ var WeaveRegisterManager = class {
|
|
|
21970
21970
|
|
|
21971
21971
|
//#endregion
|
|
21972
21972
|
//#region package.json
|
|
21973
|
-
var version = "3.2.
|
|
21973
|
+
var version = "3.2.5";
|
|
21974
21974
|
|
|
21975
21975
|
//#endregion
|
|
21976
21976
|
//#region src/managers/setup.ts
|
|
@@ -25750,12 +25750,14 @@ const doPreloadCursors = async (cursorsToPreload, setCursor, getFallbackCursor,
|
|
|
25750
25750
|
const cursorUrls = [];
|
|
25751
25751
|
for (const cursorKey of cursors) {
|
|
25752
25752
|
const cursorValue = cursorsToPreload[cursorKey];
|
|
25753
|
-
|
|
25754
|
-
|
|
25755
|
-
|
|
25756
|
-
|
|
25757
|
-
|
|
25758
|
-
|
|
25753
|
+
if (hasValidUrl(cursorValue)) {
|
|
25754
|
+
const { preload, cursor } = extractCursorUrl(cursorValue);
|
|
25755
|
+
if (preload) cursorUrls.push({
|
|
25756
|
+
state: cursorKey,
|
|
25757
|
+
value: cursorValue,
|
|
25758
|
+
src: cursor
|
|
25759
|
+
});
|
|
25760
|
+
} else setCursor(cursorKey, cursorValue);
|
|
25759
25761
|
}
|
|
25760
25762
|
if (cursorUrls.length > 0) {
|
|
25761
25763
|
const cursorsPreloading = [];
|
|
@@ -25804,6 +25806,9 @@ const extractCursorUrl = (cursor) => {
|
|
|
25804
25806
|
cursor: url
|
|
25805
25807
|
};
|
|
25806
25808
|
};
|
|
25809
|
+
const hasValidUrl = (value) => {
|
|
25810
|
+
return /url\(["']?.+?["']?\)/i.test(value);
|
|
25811
|
+
};
|
|
25807
25812
|
const isAllowedUrl = (value) => {
|
|
25808
25813
|
if (/^https?:\/\//i.test(value)) return true;
|
|
25809
25814
|
if (/^(javascript|data|blob|ftp):/i.test(value)) return false;
|
package/dist/types.d.ts
CHANGED
|
@@ -5,15 +5,15 @@ import * as Y$1 from "yjs";
|
|
|
5
5
|
import * as Y from "yjs";
|
|
6
6
|
import { Doc } from "yjs";
|
|
7
7
|
import * as konva_lib_types8 from "konva/lib/types";
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
8
|
+
import * as konva_lib_types22 from "konva/lib/types";
|
|
9
|
+
import * as konva_lib_types23 from "konva/lib/types";
|
|
10
10
|
import { Vector2d } from "konva/lib/types";
|
|
11
|
+
import * as konva_lib_Node14 from "konva/lib/Node";
|
|
12
|
+
import * as konva_lib_Node15 from "konva/lib/Node";
|
|
13
|
+
import * as konva_lib_Node16 from "konva/lib/Node";
|
|
14
|
+
import * as konva_lib_Node17 from "konva/lib/Node";
|
|
11
15
|
import * as konva_lib_Node18 from "konva/lib/Node";
|
|
12
16
|
import * as konva_lib_Node19 from "konva/lib/Node";
|
|
13
|
-
import * as konva_lib_Node20 from "konva/lib/Node";
|
|
14
|
-
import * as konva_lib_Node21 from "konva/lib/Node";
|
|
15
|
-
import * as konva_lib_Node22 from "konva/lib/Node";
|
|
16
|
-
import * as konva_lib_Node23 from "konva/lib/Node";
|
|
17
17
|
import * as konva_lib_Node0 from "konva/lib/Node";
|
|
18
18
|
import * as konva_lib_Node1 from "konva/lib/Node";
|
|
19
19
|
import * as konva_lib_Node2 from "konva/lib/Node";
|
|
@@ -29,8 +29,8 @@ import { Stage, StageConfig } from "konva/lib/Stage";
|
|
|
29
29
|
import * as konva_lib_shapes_Transformer4 from "konva/lib/shapes/Transformer";
|
|
30
30
|
import { TransformerConfig } from "konva/lib/shapes/Transformer";
|
|
31
31
|
import * as konva_lib_shapes_Rect12 from "konva/lib/shapes/Rect";
|
|
32
|
-
import * as
|
|
33
|
-
import * as
|
|
32
|
+
import * as konva_lib_shapes_Line20 from "konva/lib/shapes/Line";
|
|
33
|
+
import * as konva_lib_shapes_Line21 from "konva/lib/shapes/Line";
|
|
34
34
|
import * as konva_lib_Layer13 from "konva/lib/Layer";
|
|
35
35
|
|
|
36
36
|
//#region src/stores/store.d.ts
|
|
@@ -928,7 +928,7 @@ declare class WeaveTargetingManager {
|
|
|
928
928
|
nodeIntersectsContainerElement(node: Konva.Node | Konva.Transformer, actualLayer?: Konva.Layer | Konva.Group): Konva.Node | undefined;
|
|
929
929
|
getMousePointer(point?: Konva.Vector2d): WeaveMousePointInfo;
|
|
930
930
|
getMousePointerRelativeToContainer(container: Konva.Node | Konva.Layer): WeaveMousePointInfoSimple;
|
|
931
|
-
getRealSelectedNode: (nodeTarget: Konva.Node) =>
|
|
931
|
+
getRealSelectedNode: (nodeTarget: Konva.Node) => konva_lib_Node15.Node<konva_lib_Node14.NodeConfig>;
|
|
932
932
|
}
|
|
933
933
|
|
|
934
934
|
//#endregion
|
|
@@ -947,8 +947,8 @@ declare class WeaveCloningManager {
|
|
|
947
947
|
cloneNode(targetNode: Konva.Node): Konva.Node | undefined;
|
|
948
948
|
addClone(node: Konva.Node): void;
|
|
949
949
|
removeClone(node: Konva.Node): void;
|
|
950
|
-
getClones():
|
|
951
|
-
isClone(node: Konva.Node):
|
|
950
|
+
getClones(): konva_lib_Node17.Node<konva_lib_Node16.NodeConfig>[];
|
|
951
|
+
isClone(node: Konva.Node): konva_lib_Node19.Node<konva_lib_Node18.NodeConfig> | undefined;
|
|
952
952
|
cleanupClones(): void;
|
|
953
953
|
}
|
|
954
954
|
|
|
@@ -2110,10 +2110,10 @@ declare class WeaveBaseLineTipManager {
|
|
|
2110
2110
|
render(instance: Konva.Group, point: WeaveStrokeSingleNodeTipSide): void;
|
|
2111
2111
|
update(instance: Konva.Group, point: WeaveStrokeSingleNodeTipSide): void;
|
|
2112
2112
|
protected getTip(instance: Konva.Group, point: WeaveStrokeSingleNodeTipSide): Konva.Node | undefined;
|
|
2113
|
-
protected getInternalLine(instance: Konva.Group):
|
|
2113
|
+
protected getInternalLine(instance: Konva.Group): konva_lib_shapes_Line21.Line<konva_lib_shapes_Line20.LineConfig> | undefined;
|
|
2114
2114
|
protected getLinePoints(instance: Konva.Group): {
|
|
2115
|
-
lineStartPoint:
|
|
2116
|
-
lineEndPoint:
|
|
2115
|
+
lineStartPoint: konva_lib_types22.Vector2d;
|
|
2116
|
+
lineEndPoint: konva_lib_types23.Vector2d;
|
|
2117
2117
|
};
|
|
2118
2118
|
}
|
|
2119
2119
|
|
package/dist/types.js
CHANGED
|
@@ -21982,7 +21982,7 @@ var WeaveRegisterManager = class {
|
|
|
21982
21982
|
|
|
21983
21983
|
//#endregion
|
|
21984
21984
|
//#region package.json
|
|
21985
|
-
var version = "3.2.
|
|
21985
|
+
var version = "3.2.5";
|
|
21986
21986
|
|
|
21987
21987
|
//#endregion
|
|
21988
21988
|
//#region src/managers/setup.ts
|
|
@@ -25762,12 +25762,14 @@ const doPreloadCursors = async (cursorsToPreload, setCursor, getFallbackCursor,
|
|
|
25762
25762
|
const cursorUrls = [];
|
|
25763
25763
|
for (const cursorKey of cursors) {
|
|
25764
25764
|
const cursorValue = cursorsToPreload[cursorKey];
|
|
25765
|
-
|
|
25766
|
-
|
|
25767
|
-
|
|
25768
|
-
|
|
25769
|
-
|
|
25770
|
-
|
|
25765
|
+
if (hasValidUrl(cursorValue)) {
|
|
25766
|
+
const { preload, cursor } = extractCursorUrl(cursorValue);
|
|
25767
|
+
if (preload) cursorUrls.push({
|
|
25768
|
+
state: cursorKey,
|
|
25769
|
+
value: cursorValue,
|
|
25770
|
+
src: cursor
|
|
25771
|
+
});
|
|
25772
|
+
} else setCursor(cursorKey, cursorValue);
|
|
25771
25773
|
}
|
|
25772
25774
|
if (cursorUrls.length > 0) {
|
|
25773
25775
|
const cursorsPreloading = [];
|
|
@@ -25816,6 +25818,9 @@ const extractCursorUrl = (cursor) => {
|
|
|
25816
25818
|
cursor: url
|
|
25817
25819
|
};
|
|
25818
25820
|
};
|
|
25821
|
+
const hasValidUrl = (value) => {
|
|
25822
|
+
return /url\(["']?.+?["']?\)/i.test(value);
|
|
25823
|
+
};
|
|
25819
25824
|
const isAllowedUrl = (value) => {
|
|
25820
25825
|
if (/^https?:\/\//i.test(value)) return true;
|
|
25821
25826
|
if (/^(javascript|data|blob|ftp):/i.test(value)) return false;
|