@alpaca-editor/sharedien-dam 1.0.4160 → 1.0.4161
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/package.json +1 -1
- package/src/DamSelector.tsx +4 -10
package/package.json
CHANGED
package/src/DamSelector.tsx
CHANGED
|
@@ -34,16 +34,10 @@ interface AssetInfo {
|
|
|
34
34
|
Message: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
interface AssetWarning {
|
|
38
|
-
ShouldWarn: boolean;
|
|
39
|
-
Message: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
37
|
interface AssetResponse {
|
|
43
38
|
Derivations: DerivationItem[];
|
|
44
39
|
PreviewDerivationSrc: string;
|
|
45
40
|
AssetInfo: AssetInfo;
|
|
46
|
-
AssetWarning: AssetWarning;
|
|
47
41
|
AssetProperties: AssetProperty[];
|
|
48
42
|
}
|
|
49
43
|
|
|
@@ -447,17 +441,17 @@ export function DamSelector({
|
|
|
447
441
|
)}
|
|
448
442
|
</div>
|
|
449
443
|
|
|
450
|
-
{assetData?.AssetInfo?.Message && (
|
|
444
|
+
{assetData?.AssetInfo?.MeetsRestrictions === false && assetData?.AssetInfo?.Message && (
|
|
451
445
|
<div className="mt-3 p-3 bg-red-50 border-round">
|
|
452
|
-
<i className="pi pi-
|
|
446
|
+
<i className="pi pi-exclamation-circle mr-2 text-red-500"></i>
|
|
453
447
|
<span>{assetData.AssetInfo.Message}</span>
|
|
454
448
|
</div>
|
|
455
449
|
)}
|
|
456
450
|
|
|
457
|
-
{
|
|
451
|
+
{assetData?.AssetInfo?.MeetsRestrictions && assetData?.AssetInfo?.Message && (
|
|
458
452
|
<div className="mt-3 p-3 bg-yellow-50 border-round">
|
|
459
453
|
<i className="pi pi-exclamation-triangle mr-2 text-yellow-500"></i>
|
|
460
|
-
<span>{assetData.
|
|
454
|
+
<span>{assetData.AssetInfo.Message}</span>
|
|
461
455
|
</div>
|
|
462
456
|
)}
|
|
463
457
|
|