@bynder/compact-view 4.3.2 → 5.0.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/index.d.ts DELETED
@@ -1,114 +0,0 @@
1
- import React from 'react';
2
-
3
- interface File {
4
- url: string;
5
- width?: number;
6
- height?: number;
7
- fileSize?: number;
8
- isFakeOriginal?: boolean;
9
- }
10
-
11
- type AssetType = 'AUDIO' | 'DOCUMENT' | 'IMAGE' | 'VIDEO' | 'ARCHIVE';
12
-
13
- interface AssetFilterJson {
14
- assetType_in?: AssetType[];
15
- collectionId?: string;
16
- metapropertyOptionId_in?: string[];
17
- searchTerm?: string;
18
- tagNames_in?: string[];
19
- isLimitedUse?: boolean;
20
- showToolbar?: boolean;
21
- }
22
-
23
- interface Theme {
24
- colorPrimary?: string;
25
- colorButtonPrimary?: string;
26
- colorButtonPrimaryLabel?: string;
27
- colorButtonPrimaryActive?: string;
28
- colorButtonPrimaryHover?: string;
29
- colorButtonPrimaryHoverLabel?: string;
30
- }
31
-
32
- type AdditionalInfo = {
33
- selectedFile?: File;
34
- };
35
- type OnSuccessCallback = (assets: unknown[], additionalInfo: AdditionalInfo) => void;
36
- type SelectionMode = 'SingleSelect' | 'SingleSelectFile' | 'MultiSelect';
37
- interface PortalConfig {
38
- url: string;
39
- editable?: boolean;
40
- }
41
- /**
42
- * When starting the app or tests a .guard.ts file will be generated. This file
43
- * will contain a method which is able to validate if a variable is consistent
44
- * with the Config type.
45
- */
46
- /** @see {validateConfig} ts-auto-guard:type-guard */
47
- interface Config {
48
- assetFieldSelection?: string;
49
- assetFilter?: AssetFilterJson;
50
- assetTypes?: AssetType[];
51
- container?: HTMLElement;
52
- language?: string;
53
- onSuccess?: OnSuccessCallback;
54
- mode?: SelectionMode;
55
- portal?: PortalConfig;
56
- defaultSearchTerm?: string;
57
- theme?: Theme;
58
- hideExternalAccess?: boolean;
59
- selectedAssets?: string[];
60
- authentication?: {
61
- getAccessToken: () => string;
62
- hideLogout?: boolean;
63
- };
64
- onLogout?: () => void;
65
- hideLimitedUse?: boolean;
66
- modalStyles?: {
67
- [key: string]: string;
68
- };
69
- hideSwitch?: boolean;
70
- __shouldAddOriginal__?: boolean;
71
- noCache?: boolean;
72
- selectAllOption?: boolean;
73
- }
74
-
75
- interface Props$2 {
76
- assetFieldSelection?: string;
77
- assetFilter?: AssetFilterJson;
78
- assetTypes?: AssetType[];
79
- defaultSearchTerm?: string;
80
- language?: string;
81
- mode?: SelectionMode;
82
- onSuccess?: (assets: unknown[], additionalInformation: {
83
- selectedFile?: File;
84
- }) => void;
85
- theme?: Theme;
86
- hideExternalAccess?: boolean;
87
- selectedAssets?: string[];
88
- hideLimitedUse?: boolean;
89
- isContainerMode?: boolean;
90
- __shouldAddOriginal__?: boolean;
91
- hideSwitch?: boolean;
92
- noCache?: boolean;
93
- selectAllOption?: boolean;
94
- }
95
- declare function App({ assetFieldSelection, assetFilter, assetTypes, defaultSearchTerm, language, mode, onSuccess, theme, hideExternalAccess, selectedAssets, hideLimitedUse, isContainerMode, __shouldAddOriginal__, hideSwitch, noCache, selectAllOption, }: Props$2): React.JSX.Element;
96
-
97
- interface Props$1 {
98
- portal?: PortalConfig;
99
- language?: string;
100
- children: React.ReactNode;
101
- authentication?: Config['authentication'];
102
- onLogout?: Config['onLogout'];
103
- }
104
- declare const LoginWithShield: (props: Props$1) => React.JSX.Element;
105
-
106
- interface Props {
107
- children: React.ReactNode;
108
- isOpen?: boolean;
109
- style?: React.CSSProperties;
110
- onClose?: () => void;
111
- }
112
- declare function Modal({ children, isOpen, style, onClose, }: Props): React.JSX.Element | null;
113
-
114
- export { type AdditionalInfo, App as CompactView, type Props$2 as CompactViewProps, type File, LoginWithShield as Login, Modal, type OnSuccessCallback, type PortalConfig, type AssetFilterJson as assetFilter, type AssetType as assetType, type SelectionMode as selectionMode, type Theme as theme };