@tldraw/editor 5.7.0-canary.f58edb2cdca7 → 5.7.0-canary.f68e78a406ca

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.
@@ -4059,6 +4059,7 @@ export declare class Editor extends EventEmitter<TLEventMap> {
4059
4059
  * @param historyOptions - The history options for the change.
4060
4060
  */
4061
4061
  setOpacityForNextShapes(opacity: number, historyOptions?: TLHistoryBatchOptions): this;
4062
+ private getOpacityForNextShape;
4062
4063
  /**
4063
4064
  * Set the current opacity. This will effect any selected shapes.
4064
4065
  *
@@ -8792,6 +8793,9 @@ export declare interface TLEventMap {
8792
8793
  name: string;
8793
8794
  pageId: TLPageId;
8794
8795
  }];
8796
+ 'confirm-open-link': [{
8797
+ url: string;
8798
+ }];
8795
8799
  change: [HistoryEntry<TLRecord>];
8796
8800
  update: [];
8797
8801
  crash: [{
package/dist-cjs/index.js CHANGED
@@ -398,7 +398,7 @@ var import_uniq = require("./lib/utils/uniq");
398
398
  var import_defaultThemes2 = require("./lib/editor/managers/ThemeManager/defaultThemes");
399
399
  (0, import_utils.registerTldrawLibraryVersion)(
400
400
  "@tldraw/editor",
401
- "5.7.0-canary.f58edb2cdca7",
401
+ "5.7.0-canary.f68e78a406ca",
402
402
  "cjs"
403
403
  );
404
404
  //# sourceMappingURL=index.js.map
@@ -6625,7 +6625,7 @@ class Editor extends import_eventemitter3.default {
6625
6625
  }
6626
6626
  if (opacity !== null) return { type: "shared", value: opacity };
6627
6627
  }
6628
- return { type: "shared", value: this.getInstanceState().opacityForNextShape };
6628
+ return { type: "shared", value: this.getOpacityForNextShape() };
6629
6629
  }
6630
6630
  /**
6631
6631
  * Set the opacity for the next shapes. This will effect subsequently created shapes.
@@ -6642,6 +6642,9 @@ class Editor extends import_eventemitter3.default {
6642
6642
  this.updateInstanceState({ opacityForNextShape: opacity }, historyOptions);
6643
6643
  return this;
6644
6644
  }
6645
+ getOpacityForNextShape() {
6646
+ return this.getInstanceState().opacityForNextShape;
6647
+ }
6645
6648
  /**
6646
6649
  * Set the current opacity. This will effect any selected shapes.
6647
6650
  *
@@ -8630,6 +8633,9 @@ __decorateClass([
8630
8633
  __decorateClass([
8631
8634
  import_state.computed
8632
8635
  ], Editor.prototype, "getSharedOpacity", 1);
8636
+ __decorateClass([
8637
+ import_state.computed
8638
+ ], Editor.prototype, "getOpacityForNextShape", 1);
8633
8639
  __decorateClass([
8634
8640
  import_state.computed
8635
8641
  ], Editor.prototype, "getIsFocused", 1);