@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 +7 -2
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -7688,6 +7688,11 @@ function stripImageAssetsFromAhistoricStaticOverrides(ahistoricStaticOverridesBy
|
|
|
7688
7688
|
}
|
|
7689
7689
|
}
|
|
7690
7690
|
}
|
|
7691
|
+
function isDirectAssetUrl(assetId) {
|
|
7692
|
+
if (/^(?:https?:\/\/|blob:|data:)/i.test(assetId))
|
|
7693
|
+
return true;
|
|
7694
|
+
return assetId.includes("/") || assetId.includes("\\");
|
|
7695
|
+
}
|
|
7691
7696
|
|
|
7692
7697
|
// core/src/projects/Project.ts
|
|
7693
7698
|
var Project = class {
|
|
@@ -7732,7 +7737,7 @@ var Project = class {
|
|
|
7732
7737
|
this._onDiskStateAtom = onDiskStateAtom;
|
|
7733
7738
|
this._assetStorageReadyDeferred = defer();
|
|
7734
7739
|
this.assetStorage = {
|
|
7735
|
-
getAssetUrl: (assetId) => "".concat(config.assets?.baseUrl, "/").concat(assetId),
|
|
7740
|
+
getAssetUrl: (assetId) => isDirectAssetUrl(assetId) ? assetId : "".concat(config.assets?.baseUrl, "/").concat(assetId),
|
|
7736
7741
|
// Until the asset storage is ready, we'll throw an error when the user tries to use it
|
|
7737
7742
|
createAsset: () => {
|
|
7738
7743
|
throw new Error("Please wait for Project.ready to use assets.");
|
|
@@ -8351,7 +8356,7 @@ var CoreBundle = class {
|
|
|
8351
8356
|
return "Theatre_CoreBundle";
|
|
8352
8357
|
}
|
|
8353
8358
|
get version() {
|
|
8354
|
-
return "0.1.
|
|
8359
|
+
return "0.1.14";
|
|
8355
8360
|
}
|
|
8356
8361
|
getBitsForStudio(studio, callback) {
|
|
8357
8362
|
if (this._studio) {
|