@bynder/compact-view
Advanced tools
Comparing version 1.5.0-beta.1 to 1.5.0-beta.2
224
index.d.ts
/// <reference types="react" /> | ||
export declare type assetType = "IMAGE" | "AUDIO" | "VIDEO" | "DOCUMENT"; | ||
export declare type Props = { | ||
export declare type CompactView_Props = { | ||
readonly assetTypes?: assetType[]; | ||
@@ -9,163 +9,89 @@ readonly defaultSearchTerm?: string; | ||
readonly onAddMedia: (_1: Array<{ | ||
tag: "Audio"; | ||
value: { | ||
readonly asset: { | ||
readonly assetType: "AUDIO" | "DOCUMENT" | "IMAGE" | "VIDEO"; | ||
readonly brandId?: string; | ||
readonly copyright?: string; | ||
readonly createdAt: string; | ||
readonly createdBy?: { | ||
readonly name: string; | ||
}; | ||
readonly derivatives: { | ||
readonly custom: Array<{ | ||
readonly name: string; | ||
readonly url: string; | ||
}>; | ||
readonly mini?: string; | ||
readonly thumbnail?: string; | ||
readonly webImage?: string; | ||
}; | ||
readonly description?: string; | ||
readonly extensions: string[]; | ||
readonly fileSize: number; | ||
readonly height: number; | ||
readonly isArchived: boolean; | ||
readonly isLimitedUse: boolean; | ||
readonly isPublic: boolean; | ||
readonly isWatermarked: boolean; | ||
readonly asset: { | ||
readonly assetType: "AUDIO" | "DOCUMENT" | "IMAGE" | "VIDEO"; | ||
readonly brandId?: string; | ||
readonly copyright?: string; | ||
readonly createdAt: string; | ||
readonly createdBy?: { | ||
readonly name: string; | ||
readonly orientation: "LANDSCAPE" | "PORTRAIT" | "SQUARE"; | ||
readonly originalUrl?: string; | ||
readonly publishedAt?: string; | ||
readonly tags: string[]; | ||
readonly updatedAt?: string; | ||
readonly url: string; | ||
readonly width: number; | ||
}; | ||
readonly id: string; | ||
}; | ||
} | { | ||
tag: "Document"; | ||
value: { | ||
readonly asset: { | ||
readonly assetType: "AUDIO" | "DOCUMENT" | "IMAGE" | "VIDEO"; | ||
readonly brandId?: string; | ||
readonly copyright?: string; | ||
readonly createdAt: string; | ||
readonly createdBy?: { | ||
readonly derivatives: { | ||
readonly custom: Array<{ | ||
readonly name: string; | ||
}; | ||
readonly derivatives: { | ||
readonly custom: Array<{ | ||
readonly name: string; | ||
readonly url: string; | ||
}>; | ||
readonly mini?: string; | ||
readonly thumbnail?: string; | ||
readonly webImage?: string; | ||
}; | ||
readonly description?: string; | ||
readonly extensions: string[]; | ||
readonly fileSize: number; | ||
readonly height: number; | ||
readonly isArchived: boolean; | ||
readonly isLimitedUse: boolean; | ||
readonly isPublic: boolean; | ||
readonly isWatermarked: boolean; | ||
readonly name: string; | ||
readonly orientation: "LANDSCAPE" | "PORTRAIT" | "SQUARE"; | ||
readonly originalUrl?: string; | ||
readonly publishedAt?: string; | ||
readonly tags: string[]; | ||
readonly updatedAt?: string; | ||
readonly url: string; | ||
readonly width: number; | ||
readonly url: string; | ||
}>; | ||
readonly mini?: string; | ||
readonly thumbnail?: string; | ||
readonly webImage?: string; | ||
}; | ||
readonly id: string; | ||
readonly description?: string; | ||
readonly extensions: string[]; | ||
readonly fileSize: number; | ||
readonly height: number; | ||
readonly isArchived: boolean; | ||
readonly isLimitedUse: boolean; | ||
readonly isPublic: boolean; | ||
readonly isWatermarked: boolean; | ||
readonly name: string; | ||
readonly orientation: "LANDSCAPE" | "PORTRAIT" | "SQUARE"; | ||
readonly originalUrl?: string; | ||
readonly publishedAt?: string; | ||
readonly tags: string[]; | ||
readonly updatedAt?: string; | ||
readonly url: string; | ||
readonly width: number; | ||
}; | ||
} | { | ||
tag: "Image"; | ||
value: { | ||
readonly asset: { | ||
readonly assetType: "AUDIO" | "DOCUMENT" | "IMAGE" | "VIDEO"; | ||
readonly brandId?: string; | ||
readonly copyright?: string; | ||
readonly createdAt: string; | ||
readonly createdBy?: { | ||
readonly name: string; | ||
}; | ||
readonly derivatives: { | ||
readonly custom: Array<{ | ||
readonly name: string; | ||
readonly url: string; | ||
}>; | ||
readonly mini?: string; | ||
readonly thumbnail?: string; | ||
readonly webImage?: string; | ||
}; | ||
readonly description?: string; | ||
readonly extensions: string[]; | ||
readonly fileSize: number; | ||
readonly height: number; | ||
readonly isArchived: boolean; | ||
readonly isLimitedUse: boolean; | ||
readonly isPublic: boolean; | ||
readonly isWatermarked: boolean; | ||
readonly id: string; | ||
}>) => unknown; | ||
readonly showCollections?: boolean; | ||
readonly children?: unknown; | ||
}; | ||
export declare const CompactView: React.ComponentClass<CompactView_Props>; | ||
export default CompactView; | ||
export declare type CompactViewWithLogin_Props = { | ||
readonly assetTypes?: assetType[]; | ||
readonly defaultSearchTerm?: string; | ||
readonly language: string; | ||
readonly mode?: "MultiSelect" | "SingleSelect"; | ||
readonly onAddMedia: (_1: Array<{ | ||
readonly asset: { | ||
readonly assetType: "AUDIO" | "DOCUMENT" | "IMAGE" | "VIDEO"; | ||
readonly brandId?: string; | ||
readonly copyright?: string; | ||
readonly createdAt: string; | ||
readonly createdBy?: { | ||
readonly name: string; | ||
readonly orientation: "LANDSCAPE" | "PORTRAIT" | "SQUARE"; | ||
readonly originalUrl?: string; | ||
readonly publishedAt?: string; | ||
readonly tags: string[]; | ||
readonly updatedAt?: string; | ||
readonly url: string; | ||
readonly width: number; | ||
}; | ||
readonly id: string; | ||
}; | ||
} | { | ||
tag: "Video"; | ||
value: { | ||
readonly asset: { | ||
readonly assetType: "AUDIO" | "DOCUMENT" | "IMAGE" | "VIDEO"; | ||
readonly brandId?: string; | ||
readonly copyright?: string; | ||
readonly createdAt: string; | ||
readonly createdBy?: { | ||
readonly derivatives: { | ||
readonly custom: Array<{ | ||
readonly name: string; | ||
}; | ||
readonly derivatives: { | ||
readonly custom: Array<{ | ||
readonly name: string; | ||
readonly url: string; | ||
}>; | ||
readonly mini?: string; | ||
readonly thumbnail?: string; | ||
readonly webImage?: string; | ||
}; | ||
readonly description?: string; | ||
readonly extensions: string[]; | ||
readonly fileSize: number; | ||
readonly height: number; | ||
readonly isArchived: boolean; | ||
readonly isLimitedUse: boolean; | ||
readonly isPublic: boolean; | ||
readonly isWatermarked: boolean; | ||
readonly name: string; | ||
readonly orientation: "LANDSCAPE" | "PORTRAIT" | "SQUARE"; | ||
readonly originalUrl?: string; | ||
readonly publishedAt?: string; | ||
readonly tags: string[]; | ||
readonly updatedAt?: string; | ||
readonly url: string; | ||
readonly width: number; | ||
readonly url: string; | ||
}>; | ||
readonly mini?: string; | ||
readonly thumbnail?: string; | ||
readonly webImage?: string; | ||
}; | ||
readonly id: string; | ||
readonly previewUrls: string[]; | ||
readonly description?: string; | ||
readonly extensions: string[]; | ||
readonly fileSize: number; | ||
readonly height: number; | ||
readonly isArchived: boolean; | ||
readonly isLimitedUse: boolean; | ||
readonly isPublic: boolean; | ||
readonly isWatermarked: boolean; | ||
readonly name: string; | ||
readonly orientation: "LANDSCAPE" | "PORTRAIT" | "SQUARE"; | ||
readonly originalUrl?: string; | ||
readonly publishedAt?: string; | ||
readonly tags: string[]; | ||
readonly updatedAt?: string; | ||
readonly url: string; | ||
readonly width: number; | ||
}; | ||
readonly id: string; | ||
}>) => unknown; | ||
readonly showCollections?: boolean; | ||
readonly onClose?: (_1: void) => void; | ||
readonly children?: unknown; | ||
}; | ||
export declare const CompactView: React.ComponentClass<Props>; | ||
export default CompactView; | ||
export declare const CompactViewWithLogin: React.ComponentClass<CompactViewWithLogin_Props>; |
{ | ||
"name": "@bynder/compact-view", | ||
"description": "Bynder Compact View", | ||
"version": "1.5.0-beta.1", | ||
"version": "1.5.0-beta.2", | ||
"author": "Bynder", | ||
"license": "UNLICENSED", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"files": ["index.js", "index.d.ts"], | ||
"dependencies": {}, | ||
@@ -13,0 +10,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
398625
8821