microboard-temp 0.4.87 → 0.4.89

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.
@@ -7064,7 +7064,9 @@ var conf = {
7064
7064
  FORCE_HOTKEYS: "auto",
7065
7065
  debug: false,
7066
7066
  FALLBACK_LNG: "en",
7067
- cursorsMap
7067
+ cursorsMap,
7068
+ apiURL: undefined,
7069
+ wsURL: undefined
7068
7070
  };
7069
7071
  initDefaultI18N();
7070
7072
 
@@ -47834,8 +47836,10 @@ class Card extends BaseItem {
47834
47836
  this.throttledBringToFront = throttle(() => {
47835
47837
  this.board.bringToFront(this);
47836
47838
  }, 1000);
47837
- this.transformation.subject.subscribe(() => {
47838
- this.throttledBringToFront();
47839
+ this.transformation.subject.subscribe((_, op) => {
47840
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
47841
+ this.throttledBringToFront();
47842
+ }
47839
47843
  this.updateMbr();
47840
47844
  this.subject.publish(this);
47841
47845
  });
package/dist/cjs/index.js CHANGED
@@ -7064,7 +7064,9 @@ var conf = {
7064
7064
  FORCE_HOTKEYS: "auto",
7065
7065
  debug: false,
7066
7066
  FALLBACK_LNG: "en",
7067
- cursorsMap
7067
+ cursorsMap,
7068
+ apiURL: undefined,
7069
+ wsURL: undefined
7068
7070
  };
7069
7071
  initDefaultI18N();
7070
7072
 
@@ -47834,8 +47836,10 @@ class Card extends BaseItem {
47834
47836
  this.throttledBringToFront = throttle(() => {
47835
47837
  this.board.bringToFront(this);
47836
47838
  }, 1000);
47837
- this.transformation.subject.subscribe(() => {
47838
- this.throttledBringToFront();
47839
+ this.transformation.subject.subscribe((_, op) => {
47840
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
47841
+ this.throttledBringToFront();
47842
+ }
47839
47843
  this.updateMbr();
47840
47844
  this.subject.publish(this);
47841
47845
  });
package/dist/cjs/node.js CHANGED
@@ -8101,7 +8101,9 @@ var conf = {
8101
8101
  FORCE_HOTKEYS: "auto",
8102
8102
  debug: false,
8103
8103
  FALLBACK_LNG: "en",
8104
- cursorsMap
8104
+ cursorsMap,
8105
+ apiURL: undefined,
8106
+ wsURL: undefined
8105
8107
  };
8106
8108
  initDefaultI18N();
8107
8109
 
@@ -50307,8 +50309,10 @@ class Card extends BaseItem {
50307
50309
  this.throttledBringToFront = throttle(() => {
50308
50310
  this.board.bringToFront(this);
50309
50311
  }, 1000);
50310
- this.transformation.subject.subscribe(() => {
50311
- this.throttledBringToFront();
50312
+ this.transformation.subject.subscribe((_, op) => {
50313
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
50314
+ this.throttledBringToFront();
50315
+ }
50312
50316
  this.updateMbr();
50313
50317
  this.subject.publish(this);
50314
50318
  });
@@ -6904,7 +6904,9 @@ var conf = {
6904
6904
  FORCE_HOTKEYS: "auto",
6905
6905
  debug: false,
6906
6906
  FALLBACK_LNG: "en",
6907
- cursorsMap
6907
+ cursorsMap,
6908
+ apiURL: undefined,
6909
+ wsURL: undefined
6908
6910
  };
6909
6911
  initDefaultI18N();
6910
6912
 
@@ -47683,8 +47685,10 @@ class Card extends BaseItem {
47683
47685
  this.throttledBringToFront = throttle(() => {
47684
47686
  this.board.bringToFront(this);
47685
47687
  }, 1000);
47686
- this.transformation.subject.subscribe(() => {
47687
- this.throttledBringToFront();
47688
+ this.transformation.subject.subscribe((_, op) => {
47689
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
47690
+ this.throttledBringToFront();
47691
+ }
47688
47692
  this.updateMbr();
47689
47693
  this.subject.publish(this);
47690
47694
  });
package/dist/esm/index.js CHANGED
@@ -6897,7 +6897,9 @@ var conf = {
6897
6897
  FORCE_HOTKEYS: "auto",
6898
6898
  debug: false,
6899
6899
  FALLBACK_LNG: "en",
6900
- cursorsMap
6900
+ cursorsMap,
6901
+ apiURL: undefined,
6902
+ wsURL: undefined
6901
6903
  };
6902
6904
  initDefaultI18N();
6903
6905
 
@@ -47676,8 +47678,10 @@ class Card extends BaseItem {
47676
47678
  this.throttledBringToFront = throttle(() => {
47677
47679
  this.board.bringToFront(this);
47678
47680
  }, 1000);
47679
- this.transformation.subject.subscribe(() => {
47680
- this.throttledBringToFront();
47681
+ this.transformation.subject.subscribe((_, op) => {
47682
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
47683
+ this.throttledBringToFront();
47684
+ }
47681
47685
  this.updateMbr();
47682
47686
  this.subject.publish(this);
47683
47687
  });
package/dist/esm/node.js CHANGED
@@ -7681,7 +7681,9 @@ var conf = {
7681
7681
  FORCE_HOTKEYS: "auto",
7682
7682
  debug: false,
7683
7683
  FALLBACK_LNG: "en",
7684
- cursorsMap
7684
+ cursorsMap,
7685
+ apiURL: undefined,
7686
+ wsURL: undefined
7685
7687
  };
7686
7688
  initDefaultI18N();
7687
7689
 
@@ -50144,8 +50146,10 @@ class Card extends BaseItem {
50144
50146
  this.throttledBringToFront = throttle(() => {
50145
50147
  this.board.bringToFront(this);
50146
50148
  }, 1000);
50147
- this.transformation.subject.subscribe(() => {
50148
- this.throttledBringToFront();
50149
+ this.transformation.subject.subscribe((_, op) => {
50150
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
50151
+ this.throttledBringToFront();
50152
+ }
50149
50153
  this.updateMbr();
50150
50154
  this.subject.publish(this);
50151
50155
  });
@@ -230,6 +230,8 @@ export declare const conf: {
230
230
  debug: boolean;
231
231
  FALLBACK_LNG: string;
232
232
  cursorsMap: Partial<Record<import("./Pointer/Cursor").CursorName, string>>;
233
+ apiURL: string | undefined;
234
+ wsURL: string | undefined;
233
235
  };
234
236
  export type Settings = typeof conf;
235
237
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.87",
3
+ "version": "0.4.89",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",