@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpaca-editor/sharedien-dam",
3
- "version": "1.0.4160",
3
+ "version": "1.0.4161",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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-info-circle mr-2 text-red-500"></i>
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
- {!assetData?.AssetInfo?.Message && assetData?.AssetWarning?.ShouldWarn && assetData.AssetWarning.Message && (
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.AssetWarning.Message}</span>
454
+ <span>{assetData.AssetInfo.Message}</span>
461
455
  </div>
462
456
  )}
463
457