@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260325163935 → 0.8.1-dev.20260325165007
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 +12 -12
- package/dist/index.mjs +12 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3341,16 +3341,16 @@ var import_react44 = __toESM(require("react"));
|
|
|
3341
3341
|
var AssetUtility = class {
|
|
3342
3342
|
constructor() {
|
|
3343
3343
|
}
|
|
3344
|
-
static resolveUrl(
|
|
3344
|
+
static resolveUrl(assetBaseUrl, url) {
|
|
3345
3345
|
if (!url) return void 0;
|
|
3346
3346
|
if (url.startsWith("http")) return url;
|
|
3347
|
-
if (!
|
|
3348
|
-
return `${
|
|
3349
|
-
}
|
|
3350
|
-
static getAssetUrl(apiBaseUrl) {
|
|
3351
|
-
let domainName = apiBaseUrl.replace("https://", "");
|
|
3352
|
-
return `https://cdn.g-assets.com/${domainName}`;
|
|
3347
|
+
if (!assetBaseUrl) return url;
|
|
3348
|
+
return `${assetBaseUrl}/${url}`;
|
|
3353
3349
|
}
|
|
3350
|
+
// static getAssetUrl(apiBaseUrl: string) {
|
|
3351
|
+
// let domainName = apiBaseUrl.replace("https://", "");
|
|
3352
|
+
// return `https://cdn.g-assets.com/${domainName}`;
|
|
3353
|
+
// }
|
|
3354
3354
|
static getAssetFullPath(apiBaseUrl, relativePath) {
|
|
3355
3355
|
let domainName = apiBaseUrl.replace("https://", "");
|
|
3356
3356
|
return `https://cdn.g-assets.com/${domainName}/${relativePath}`;
|
|
@@ -3366,7 +3366,7 @@ init_HlsPlayer();
|
|
|
3366
3366
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3367
3367
|
var DeviceAssetSelector = ({
|
|
3368
3368
|
assets,
|
|
3369
|
-
|
|
3369
|
+
assetBaseUrl,
|
|
3370
3370
|
session,
|
|
3371
3371
|
// This should receive the session
|
|
3372
3372
|
width,
|
|
@@ -3410,8 +3410,8 @@ var DeviceAssetSelector = ({
|
|
|
3410
3410
|
console.warn("No suitable asset found for device:", device, "and tag:", targetTag);
|
|
3411
3411
|
return null;
|
|
3412
3412
|
}
|
|
3413
|
-
const resolvedAssetUrl = AssetUtility_default.resolveUrl(
|
|
3414
|
-
const resolvedThumbnailUrl = selectedAsset.posterUrl ? AssetUtility_default.resolveUrl(
|
|
3413
|
+
const resolvedAssetUrl = AssetUtility_default.resolveUrl(assetBaseUrl, selectedAsset.assetUrl);
|
|
3414
|
+
const resolvedThumbnailUrl = selectedAsset.posterUrl ? AssetUtility_default.resolveUrl(assetBaseUrl, selectedAsset.posterUrl) : void 0;
|
|
3415
3415
|
console.log("Selected Asset:", resolvedThumbnailUrl);
|
|
3416
3416
|
const title = selectedAsset.title || nodeProps?.title;
|
|
3417
3417
|
const intrinsicWidth = selectedAsset.intrinsicWidth?.toString();
|
|
@@ -3448,7 +3448,7 @@ var DeviceAssetSelector = ({
|
|
|
3448
3448
|
showControls,
|
|
3449
3449
|
loop,
|
|
3450
3450
|
playOptions,
|
|
3451
|
-
apiBaseUrl,
|
|
3451
|
+
apiBaseUrl: assetBaseUrl,
|
|
3452
3452
|
session
|
|
3453
3453
|
}
|
|
3454
3454
|
);
|
|
@@ -3529,7 +3529,7 @@ var ImageNode = (props) => {
|
|
|
3529
3529
|
{
|
|
3530
3530
|
device: props.device,
|
|
3531
3531
|
assets,
|
|
3532
|
-
|
|
3532
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
3533
3533
|
session: props.session,
|
|
3534
3534
|
nodeProps: {
|
|
3535
3535
|
title: props.node.title,
|
package/dist/index.mjs
CHANGED
|
@@ -2998,16 +2998,16 @@ import React42 from "react";
|
|
|
2998
2998
|
var AssetUtility = class {
|
|
2999
2999
|
constructor() {
|
|
3000
3000
|
}
|
|
3001
|
-
static resolveUrl(
|
|
3001
|
+
static resolveUrl(assetBaseUrl, url) {
|
|
3002
3002
|
if (!url) return void 0;
|
|
3003
3003
|
if (url.startsWith("http")) return url;
|
|
3004
|
-
if (!
|
|
3005
|
-
return `${
|
|
3006
|
-
}
|
|
3007
|
-
static getAssetUrl(apiBaseUrl) {
|
|
3008
|
-
let domainName = apiBaseUrl.replace("https://", "");
|
|
3009
|
-
return `https://cdn.g-assets.com/${domainName}`;
|
|
3004
|
+
if (!assetBaseUrl) return url;
|
|
3005
|
+
return `${assetBaseUrl}/${url}`;
|
|
3010
3006
|
}
|
|
3007
|
+
// static getAssetUrl(apiBaseUrl: string) {
|
|
3008
|
+
// let domainName = apiBaseUrl.replace("https://", "");
|
|
3009
|
+
// return `https://cdn.g-assets.com/${domainName}`;
|
|
3010
|
+
// }
|
|
3011
3011
|
static getAssetFullPath(apiBaseUrl, relativePath) {
|
|
3012
3012
|
let domainName = apiBaseUrl.replace("https://", "");
|
|
3013
3013
|
return `https://cdn.g-assets.com/${domainName}/${relativePath}`;
|
|
@@ -3022,7 +3022,7 @@ import dynamic2 from "next/dynamic";
|
|
|
3022
3022
|
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
3023
3023
|
var DeviceAssetSelector = ({
|
|
3024
3024
|
assets,
|
|
3025
|
-
|
|
3025
|
+
assetBaseUrl,
|
|
3026
3026
|
session,
|
|
3027
3027
|
// This should receive the session
|
|
3028
3028
|
width,
|
|
@@ -3066,8 +3066,8 @@ var DeviceAssetSelector = ({
|
|
|
3066
3066
|
console.warn("No suitable asset found for device:", device, "and tag:", targetTag);
|
|
3067
3067
|
return null;
|
|
3068
3068
|
}
|
|
3069
|
-
const resolvedAssetUrl = AssetUtility_default.resolveUrl(
|
|
3070
|
-
const resolvedThumbnailUrl = selectedAsset.posterUrl ? AssetUtility_default.resolveUrl(
|
|
3069
|
+
const resolvedAssetUrl = AssetUtility_default.resolveUrl(assetBaseUrl, selectedAsset.assetUrl);
|
|
3070
|
+
const resolvedThumbnailUrl = selectedAsset.posterUrl ? AssetUtility_default.resolveUrl(assetBaseUrl, selectedAsset.posterUrl) : void 0;
|
|
3071
3071
|
console.log("Selected Asset:", resolvedThumbnailUrl);
|
|
3072
3072
|
const title = selectedAsset.title || nodeProps?.title;
|
|
3073
3073
|
const intrinsicWidth = selectedAsset.intrinsicWidth?.toString();
|
|
@@ -3104,7 +3104,7 @@ var DeviceAssetSelector = ({
|
|
|
3104
3104
|
showControls,
|
|
3105
3105
|
loop,
|
|
3106
3106
|
playOptions,
|
|
3107
|
-
apiBaseUrl,
|
|
3107
|
+
apiBaseUrl: assetBaseUrl,
|
|
3108
3108
|
session
|
|
3109
3109
|
}
|
|
3110
3110
|
);
|
|
@@ -3185,7 +3185,7 @@ var ImageNode = (props) => {
|
|
|
3185
3185
|
{
|
|
3186
3186
|
device: props.device,
|
|
3187
3187
|
assets,
|
|
3188
|
-
|
|
3188
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
3189
3189
|
session: props.session,
|
|
3190
3190
|
nodeProps: {
|
|
3191
3191
|
title: props.node.title,
|
package/package.json
CHANGED