@unseenco/theatre-core 0.1.13 → 0.1.15

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/index.js CHANGED
@@ -6878,7 +6878,8 @@ var SheetTemplate = class {
6878
6878
  __publicField(this, "objectTemplatesP", this._objectTemplates.pointer);
6879
6879
  __publicField(this, "_pendingOutlineNamespaces", {});
6880
6880
  __publicField(this, "_sequenceVariants", [DEFAULT_SEQUENCE_VARIANT]);
6881
- __publicField(this, "_visibleInOutline", true);
6881
+ __publicField(this, "_visibleInOutline", new import_theatre_dataverse16.Atom(true));
6882
+ __publicField(this, "visibleInOutlineP", this._visibleInOutline.pointer);
6882
6883
  this.address = { ...project.address, sheetId };
6883
6884
  }
6884
6885
  getInstance(instanceId) {
@@ -6951,10 +6952,10 @@ var SheetTemplate = class {
6951
6952
  );
6952
6953
  }
6953
6954
  setVisibleInOutline(visible) {
6954
- this._visibleInOutline = visible;
6955
+ this._visibleInOutline.set(visible);
6955
6956
  }
6956
6957
  isVisibleInOutline() {
6957
- return this._visibleInOutline;
6958
+ return this._visibleInOutline.get();
6958
6959
  }
6959
6960
  };
6960
6961
 
@@ -7698,6 +7699,11 @@ function stripImageAssetsFromAhistoricStaticOverrides(ahistoricStaticOverridesBy
7698
7699
  }
7699
7700
  }
7700
7701
  }
7702
+ function isDirectAssetUrl(assetId) {
7703
+ if (/^(?:https?:\/\/|blob:|data:)/i.test(assetId))
7704
+ return true;
7705
+ return assetId.includes("/") || assetId.includes("\\");
7706
+ }
7701
7707
 
7702
7708
  // core/src/projects/Project.ts
7703
7709
  var Project = class {
@@ -7742,7 +7748,7 @@ var Project = class {
7742
7748
  this._onDiskStateAtom = onDiskStateAtom;
7743
7749
  this._assetStorageReadyDeferred = defer();
7744
7750
  this.assetStorage = {
7745
- getAssetUrl: (assetId) => "".concat(config.assets?.baseUrl, "/").concat(assetId),
7751
+ getAssetUrl: (assetId) => isDirectAssetUrl(assetId) ? assetId : "".concat(config.assets?.baseUrl, "/").concat(assetId),
7746
7752
  // Until the asset storage is ready, we'll throw an error when the user tries to use it
7747
7753
  createAsset: () => {
7748
7754
  throw new Error("Please wait for Project.ready to use assets.");
@@ -8361,7 +8367,7 @@ var CoreBundle = class {
8361
8367
  return "Theatre_CoreBundle";
8362
8368
  }
8363
8369
  get version() {
8364
- return "0.1.13";
8370
+ return "0.1.15";
8365
8371
  }
8366
8372
  getBitsForStudio(studio, callback) {
8367
8373
  if (this._studio) {