@bynder/compact-view 4.2.4 → 4.3.0
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/components.d.ts +7 -7
- package/components.js +1 -1
- package/index.d.ts +3 -1
- package/index.js +2 -2
- package/package.json +1 -1
package/components.d.ts
CHANGED
|
@@ -38,6 +38,13 @@ interface File {
|
|
|
38
38
|
fileSize?: number;
|
|
39
39
|
isFakeOriginal?: boolean;
|
|
40
40
|
}
|
|
41
|
+
type AssetData = {
|
|
42
|
+
tag: "Loading";
|
|
43
|
+
value: undefined | Asset[];
|
|
44
|
+
} | {
|
|
45
|
+
tag: "Loaded";
|
|
46
|
+
value: Asset[];
|
|
47
|
+
};
|
|
41
48
|
interface Derivatives {
|
|
42
49
|
thumbnail?: string;
|
|
43
50
|
}
|
|
@@ -84,13 +91,6 @@ interface Theme {
|
|
|
84
91
|
colorButtonPrimaryHoverLabel?: string;
|
|
85
92
|
}
|
|
86
93
|
type SelectionMode = "SingleSelect" | "SingleSelectFile" | "MultiSelect";
|
|
87
|
-
type AssetData = {
|
|
88
|
-
tag: "Loading";
|
|
89
|
-
value: undefined | Asset[];
|
|
90
|
-
} | {
|
|
91
|
-
tag: "Loaded";
|
|
92
|
-
value: Asset[];
|
|
93
|
-
};
|
|
94
94
|
interface Props$0 {
|
|
95
95
|
assets: AssetData;
|
|
96
96
|
count?: number;
|
package/components.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ interface Config {
|
|
|
66
66
|
hideSwitch?: boolean;
|
|
67
67
|
__shouldAddOriginal__?: boolean;
|
|
68
68
|
noCache?: boolean;
|
|
69
|
+
selectAllOption?: boolean;
|
|
69
70
|
}
|
|
70
71
|
interface Props {
|
|
71
72
|
assetFieldSelection?: string;
|
|
@@ -85,10 +86,11 @@ interface Props {
|
|
|
85
86
|
__shouldAddOriginal__?: boolean;
|
|
86
87
|
hideSwitch?: boolean;
|
|
87
88
|
noCache?: boolean;
|
|
89
|
+
selectAllOption?: boolean;
|
|
88
90
|
}
|
|
89
91
|
declare function App({ assetFieldSelection, assetFilter, assetTypes, defaultSearchTerm, language, mode,
|
|
90
92
|
// eslint-disable-next-line no-console
|
|
91
|
-
onSuccess, theme, hideExternalAccess, selectedAssets, hideLimitedUse, isContainerMode, __shouldAddOriginal__, hideSwitch, noCache }: Props): React.JSX.Element;
|
|
93
|
+
onSuccess, theme, hideExternalAccess, selectedAssets, hideLimitedUse, isContainerMode, __shouldAddOriginal__, hideSwitch, noCache, selectAllOption }: Props): React.JSX.Element;
|
|
92
94
|
declare const CompactView: typeof App;
|
|
93
95
|
type CompactViewProps = Props;
|
|
94
96
|
interface Props$0 {
|