@unseenco/theatre-core 0.1.13 → 0.1.14

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
@@ -7698,6 +7698,11 @@ function stripImageAssetsFromAhistoricStaticOverrides(ahistoricStaticOverridesBy
7698
7698
  }
7699
7699
  }
7700
7700
  }
7701
+ function isDirectAssetUrl(assetId) {
7702
+ if (/^(?:https?:\/\/|blob:|data:)/i.test(assetId))
7703
+ return true;
7704
+ return assetId.includes("/") || assetId.includes("\\");
7705
+ }
7701
7706
 
7702
7707
  // core/src/projects/Project.ts
7703
7708
  var Project = class {
@@ -7742,7 +7747,7 @@ var Project = class {
7742
7747
  this._onDiskStateAtom = onDiskStateAtom;
7743
7748
  this._assetStorageReadyDeferred = defer();
7744
7749
  this.assetStorage = {
7745
- getAssetUrl: (assetId) => "".concat(config.assets?.baseUrl, "/").concat(assetId),
7750
+ getAssetUrl: (assetId) => isDirectAssetUrl(assetId) ? assetId : "".concat(config.assets?.baseUrl, "/").concat(assetId),
7746
7751
  // Until the asset storage is ready, we'll throw an error when the user tries to use it
7747
7752
  createAsset: () => {
7748
7753
  throw new Error("Please wait for Project.ready to use assets.");
@@ -8361,7 +8366,7 @@ var CoreBundle = class {
8361
8366
  return "Theatre_CoreBundle";
8362
8367
  }
8363
8368
  get version() {
8364
- return "0.1.13";
8369
+ return "0.1.14";
8365
8370
  }
8366
8371
  getBitsForStudio(studio, callback) {
8367
8372
  if (this._studio) {