@inditextech/weave-store-standalone 2.3.0 → 2.3.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/client.d.ts CHANGED
@@ -106,6 +106,10 @@ type WeaveNodesSelectionConfig = {
106
106
  selectionArea: Konva.RectConfig;
107
107
  panningWhenSelection: WeaveNodesSelectionPanningOnSelectionConfig;
108
108
  behaviors: WeaveNodesSelectionBehaviorsConfig;
109
+ style: WeaveNodesSelectionStyleConfig;
110
+ };
111
+ type WeaveNodesSelectionStyleConfig = {
112
+ dragOpacity: number;
109
113
  };
110
114
  type WeaveNodesSelectionPluginConfig = Partial<WeaveNodesSelectionConfig>;
111
115
  type WeaveNodesSelectionPluginParams = {
@@ -518,8 +522,11 @@ declare class WeaveNodesMultiSelectionFeedbackPlugin extends WeavePlugin {
518
522
  getSelectedHalos(): Record<string, konva_lib_shapes_Rect10.Rect>;
519
523
  cleanupSelectedHalos(): void;
520
524
  private getNodeRectInfo;
525
+ private getNodeInfo;
521
526
  createSelectionHalo(node: Konva.Node): void;
522
527
  destroySelectionHalo(node: Konva.Node): void;
528
+ updateSelectionHalo(node: Konva.Node): void;
529
+ showSelectionHalo(node: Konva.Node): void;
523
530
  hideSelectionHalo(node: Konva.Node): void;
524
531
  private getLayer;
525
532
  enable(): void;
@@ -606,6 +613,7 @@ declare class WeaveNodesSelectionPlugin extends WeavePlugin {
606
613
  getNodesDistanceSnappingPlugin(): WeaveNodesDistanceSnappingPlugin | undefined;
607
614
  getStagePanningPlugin(): WeaveStagePanningPlugin | undefined;
608
615
  getSelectorConfig(): TransformerConfig;
616
+ getDragOpacity(): number;
609
617
  }
610
618
 
611
619
  //#endregion
@@ -636,6 +644,7 @@ declare abstract class WeaveNode implements WeaveNodeBase {
636
644
  abstract onRender(props: WeaveElementAttributes): WeaveElementInstance;
637
645
  abstract onUpdate(instance: WeaveElementInstance, nextProps: WeaveElementAttributes): void;
638
646
  onDestroy(nodeInstance: WeaveElementInstance): void;
647
+ onDestroyInstance(): void;
639
648
  serialize(instance: WeaveElementInstance): WeaveStateElement;
640
649
  show(instance: Konva.Node): void;
641
650
  hide(instance: Konva.Node): void;
package/dist/server.d.ts CHANGED
@@ -106,6 +106,10 @@ type WeaveNodesSelectionConfig = {
106
106
  selectionArea: Konva.RectConfig;
107
107
  panningWhenSelection: WeaveNodesSelectionPanningOnSelectionConfig;
108
108
  behaviors: WeaveNodesSelectionBehaviorsConfig;
109
+ style: WeaveNodesSelectionStyleConfig;
110
+ };
111
+ type WeaveNodesSelectionStyleConfig = {
112
+ dragOpacity: number;
109
113
  };
110
114
  type WeaveNodesSelectionPluginConfig = Partial<WeaveNodesSelectionConfig>;
111
115
  type WeaveNodesSelectionPluginParams = {
@@ -518,8 +522,11 @@ declare class WeaveNodesMultiSelectionFeedbackPlugin extends WeavePlugin {
518
522
  getSelectedHalos(): Record<string, konva_lib_shapes_Rect10.Rect>;
519
523
  cleanupSelectedHalos(): void;
520
524
  private getNodeRectInfo;
525
+ private getNodeInfo;
521
526
  createSelectionHalo(node: Konva.Node): void;
522
527
  destroySelectionHalo(node: Konva.Node): void;
528
+ updateSelectionHalo(node: Konva.Node): void;
529
+ showSelectionHalo(node: Konva.Node): void;
523
530
  hideSelectionHalo(node: Konva.Node): void;
524
531
  private getLayer;
525
532
  enable(): void;
@@ -606,6 +613,7 @@ declare class WeaveNodesSelectionPlugin extends WeavePlugin {
606
613
  getNodesDistanceSnappingPlugin(): WeaveNodesDistanceSnappingPlugin | undefined;
607
614
  getStagePanningPlugin(): WeaveStagePanningPlugin | undefined;
608
615
  getSelectorConfig(): TransformerConfig;
616
+ getDragOpacity(): number;
609
617
  }
610
618
 
611
619
  //#endregion
@@ -636,6 +644,7 @@ declare abstract class WeaveNode implements WeaveNodeBase {
636
644
  abstract onRender(props: WeaveElementAttributes): WeaveElementInstance;
637
645
  abstract onUpdate(instance: WeaveElementInstance, nextProps: WeaveElementAttributes): void;
638
646
  onDestroy(nodeInstance: WeaveElementInstance): void;
647
+ onDestroyInstance(): void;
639
648
  serialize(instance: WeaveElementInstance): WeaveStateElement;
640
649
  show(instance: Konva.Node): void;
641
650
  hide(instance: Konva.Node): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inditextech/weave-store-standalone",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
@@ -53,8 +53,8 @@
53
53
  "version:release": "npm version $RELEASE_VERSION -m \"[npm-scripts] prepare release $RELEASE_VERSION\" --tag-version-prefix \"\""
54
54
  },
55
55
  "dependencies": {
56
- "@inditextech/weave-types": "2.3.0",
57
- "@inditextech/weave-sdk": "2.3.0",
56
+ "@inditextech/weave-types": "2.3.2",
57
+ "@inditextech/weave-sdk": "2.3.2",
58
58
  "@syncedstore/core": "0.6.0"
59
59
  },
60
60
  "devDependencies": {