@inditextech/weave-sdk 0.77.1 → 0.77.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/sdk.cjs CHANGED
@@ -22952,7 +22952,7 @@ var WeaveRegisterManager = class {
22952
22952
 
22953
22953
  //#endregion
22954
22954
  //#region package.json
22955
- var version = "0.77.1";
22955
+ var version = "0.77.2";
22956
22956
 
22957
22957
  //#endregion
22958
22958
  //#region src/managers/setup.ts
@@ -25594,7 +25594,7 @@ var WeaveImageNode = class extends WeaveNode {
25594
25594
  }
25595
25595
  updatePlaceholderSize(image, imagePlaceholder) {
25596
25596
  const imageAttrs = image.getAttrs();
25597
- if (!imageAttrs.loadedImage) return;
25597
+ if (!this.imageState[imageAttrs.id ?? ""]?.loaded) return;
25598
25598
  if (!imageAttrs.adding && imageAttrs.cropInfo) {
25599
25599
  const actualScale = imageAttrs.uncroppedImage.width / imageAttrs.imageInfo.width;
25600
25600
  const cropScale = imageAttrs.cropInfo ? imageAttrs.cropInfo.scaleX : actualScale;
@@ -25611,7 +25611,7 @@ var WeaveImageNode = class extends WeaveNode {
25611
25611
  const stage = this.instance.getStage();
25612
25612
  const image = stage.findOne(`#${imageAttrs.id}`);
25613
25613
  const internalImage = image?.findOne(`#${imageAttrs.id}-image`);
25614
- if (!imageAttrs.loadedImage) return;
25614
+ if (!this.imageState[imageAttrs.id ?? ""]?.loaded) return;
25615
25615
  if (image && internalImage && !imageAttrs.adding && imageAttrs.cropInfo) {
25616
25616
  const actualScale = imageAttrs.uncroppedImage.width / imageAttrs.imageInfo.width;
25617
25617
  const cropScale = imageAttrs.cropInfo ? imageAttrs.cropInfo.scaleX : actualScale;
package/dist/sdk.d.cts CHANGED
@@ -16,8 +16,8 @@ import { Stage, StageConfig } from "konva/lib/Stage";
16
16
  import * as konva_lib_shapes_Transformer0 from "konva/lib/shapes/Transformer";
17
17
  import { TransformerConfig } from "konva/lib/shapes/Transformer";
18
18
  import { Container } from "konva/lib/Container";
19
- import * as konva_lib_Group6 from "konva/lib/Group";
20
- import * as konva_lib_Layer5 from "konva/lib/Layer";
19
+ import * as konva_lib_Group5 from "konva/lib/Group";
20
+ import * as konva_lib_Layer6 from "konva/lib/Layer";
21
21
 
22
22
  //#region ../types/dist/types.d.ts
23
23
  //#region src/base/node.d.ts
@@ -1926,7 +1926,7 @@ declare class WeaveCommentNode<T> extends WeaveNode {
1926
1926
  protected commentDomVisible: boolean;
1927
1927
  protected showResolved: boolean;
1928
1928
  constructor(params: WeaveCommentNodeParams<T>);
1929
- onRender(props: WeaveElementAttributes): konva_lib_Group6.Group;
1929
+ onRender(props: WeaveElementAttributes): konva_lib_Group5.Group;
1930
1930
  onUpdate(nodeInstance: WeaveElementInstance, nextProps: WeaveElementAttributes): void;
1931
1931
  onDestroy(nodeInstance: WeaveElementInstance): void;
1932
1932
  private expandNode;
@@ -3612,7 +3612,7 @@ declare class WeaveCommentsRendererPlugin<T> extends WeavePlugin {
3612
3612
  private initCommentsLayer;
3613
3613
  deleteComments(): void;
3614
3614
  render(): void;
3615
- getCommentsLayer(): konva_lib_Layer5.Layer;
3615
+ getCommentsLayer(): konva_lib_Layer6.Layer;
3616
3616
  enable(): void;
3617
3617
  disable(): void;
3618
3618
  }
package/dist/sdk.js CHANGED
@@ -19994,7 +19994,7 @@ var WeaveRegisterManager = class {
19994
19994
 
19995
19995
  //#endregion
19996
19996
  //#region package.json
19997
- var version = "0.77.1";
19997
+ var version = "0.77.2";
19998
19998
 
19999
19999
  //#endregion
20000
20000
  //#region src/managers/setup.ts
@@ -22626,7 +22626,7 @@ var WeaveImageNode = class extends WeaveNode {
22626
22626
  }
22627
22627
  updatePlaceholderSize(image, imagePlaceholder) {
22628
22628
  const imageAttrs = image.getAttrs();
22629
- if (!imageAttrs.loadedImage) return;
22629
+ if (!this.imageState[imageAttrs.id ?? ""]?.loaded) return;
22630
22630
  if (!imageAttrs.adding && imageAttrs.cropInfo) {
22631
22631
  const actualScale = imageAttrs.uncroppedImage.width / imageAttrs.imageInfo.width;
22632
22632
  const cropScale = imageAttrs.cropInfo ? imageAttrs.cropInfo.scaleX : actualScale;
@@ -22643,7 +22643,7 @@ var WeaveImageNode = class extends WeaveNode {
22643
22643
  const stage = this.instance.getStage();
22644
22644
  const image = stage.findOne(`#${imageAttrs.id}`);
22645
22645
  const internalImage = image?.findOne(`#${imageAttrs.id}-image`);
22646
- if (!imageAttrs.loadedImage) return;
22646
+ if (!this.imageState[imageAttrs.id ?? ""]?.loaded) return;
22647
22647
  if (image && internalImage && !imageAttrs.adding && imageAttrs.cropInfo) {
22648
22648
  const actualScale = imageAttrs.uncroppedImage.width / imageAttrs.imageInfo.width;
22649
22649
  const cropScale = imageAttrs.cropInfo ? imageAttrs.cropInfo.scaleX : actualScale;