@orangelogic/orange-dam-content-browser-sdk 2.1.41-pr61281.18 → 2.1.41-pr61281.83

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.
@@ -1,8 +1,9 @@
1
1
  import { FC } from 'react';
2
2
  import { TrackingParameter, Transformation } from '@/types/assets';
3
- import { Asset, MediaType, Proxy } from '@/types/search';
3
+ import { Asset, AssetLinkInfo, AssetTransformationInfo, MediaType, Proxy } from '@/types/search';
4
4
  type Props = {
5
5
  allowCustomFormat: boolean;
6
+ allowedExtensions?: string[];
6
7
  allowFavorites: boolean;
7
8
  allowProxy: boolean;
8
9
  allowTracking: boolean;
@@ -28,16 +29,19 @@ type Props = {
28
29
  onFavorite: () => Promise<boolean>;
29
30
  onProxyConfirm: (value: {
30
31
  extension: string;
31
- permanentLink?: string;
32
32
  parameters?: TrackingParameter[];
33
+ permanentLink?: string;
33
34
  useRepresentative?: boolean;
34
35
  value: string;
36
+ selectedProxyMetadata?: AssetLinkInfo;
35
37
  }) => Promise<void>;
36
38
  onFormatConfirm: (value: {
37
- value: Transformation[];
39
+ extension?: string;
38
40
  parameters?: TrackingParameter[];
39
41
  proxiesPreference?: string;
40
- extension?: string;
42
+ value: Transformation[];
43
+ sourceProxyMetadata?: AssetLinkInfo;
44
+ transformedAssetMetadata?: AssetTransformationInfo;
41
45
  }) => Promise<void>;
42
46
  onUnFavorite: () => Promise<boolean>;
43
47
  };
@@ -58,6 +58,23 @@ export type GetContentRequest = {
58
58
  start?: number;
59
59
  useSession?: string;
60
60
  };
61
+ export type AssetLinkInfo = {
62
+ cdnName: string | null;
63
+ extension: string | null;
64
+ isCustomFormat: boolean | null;
65
+ permanentLink: string | null;
66
+ proxyLabel: string | null;
67
+ proxyName: string | null;
68
+ width: number | null;
69
+ height: number | null;
70
+ };
71
+ export type AssetTransformationInfo = {
72
+ extension: string | null;
73
+ isCustomFormat: boolean | null;
74
+ height: number | null;
75
+ width: number | null;
76
+ permanentLink: string | null;
77
+ };
61
78
  export type GetAssetLinkResponse = {
62
79
  extraFields?: {
63
80
  [key: string]: string;
@@ -66,6 +83,8 @@ export type GetAssetLinkResponse = {
66
83
  metadata?: {
67
84
  [key: string]: string;
68
85
  };
86
+ assetLinkInfo?: AssetLinkInfo | AssetTransformationInfo;
87
+ assetTransformationSource?: AssetLinkInfo;
69
88
  };
70
89
  export type GetTransformedAssetLinkResponse = {
71
90
  expirationDate: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangelogic/orange-dam-content-browser-sdk",
3
- "version": "2.1.41-pr61281.18",
3
+ "version": "2.1.41-pr61281.83",
4
4
  "description": "OrangeDAM Content Browser SDK source code",
5
5
  "main": "build/OrangeDAMContentBrowserSDK.min.js",
6
6
  "types": "build/index.d.ts",