@orangelogic/orange-dam-content-browser-sdk 2.1.54 → 2.1.57
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/build/ApiService.d.ts +15 -0
- package/build/App.d.ts +62 -0
- package/build/AppContext.d.ts +18 -0
- package/build/GlobalConfigContext.d.ts +33 -0
- package/build/OrangeDAMContentBrowserSDK.min.css +2 -0
- package/build/OrangeDAMContentBrowserSDK.min.css.map +1 -0
- package/build/OrangeDAMContentBrowserSDK.min.js +11481 -0
- package/build/OrangeDAMContentBrowserSDK.min.js.map +1 -0
- package/build/asset-manifest.json +13 -0
- package/build/components/ArrayClamp/ArrayClamp.d.ts +10 -0
- package/build/components/ArrayClamp/ArrayClamp.styled.d.ts +1 -0
- package/build/components/ArrayClamp/index.d.ts +1 -0
- package/build/components/Browser/Browser.constants.d.ts +3 -0
- package/build/components/Browser/Browser.d.ts +22 -0
- package/build/components/Browser/Browser.styled.d.ts +2 -0
- package/build/components/Browser/BrowserItem.d.ts +13 -0
- package/build/components/Browser/LoadMoreButton.d.ts +9 -0
- package/build/components/ControlBar/ControlBar.constants.d.ts +10 -0
- package/build/components/ControlBar/ControlBar.d.ts +23 -0
- package/build/components/ControlBar/ControlBar.styled.d.ts +1 -0
- package/build/components/ControlBar/Facet/Facet.d.ts +14 -0
- package/build/components/ControlBar/Facet/index.d.ts +1 -0
- package/build/components/FormatDialog/CropPreviewer/CropPreviewer.d.ts +41 -0
- package/{src/components/FormatDialog/CropPreviewer/index.ts → build/components/FormatDialog/CropPreviewer/index.d.ts} +1 -1
- package/build/components/FormatDialog/CustomRendition/CustomRendition.constants.d.ts +5 -0
- package/build/components/FormatDialog/CustomRendition/CustomRendition.d.ts +56 -0
- package/build/components/FormatDialog/CustomRendition/CustomRendition.styled.d.ts +1 -0
- package/build/components/FormatDialog/CustomRendition/index.d.ts +1 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Crop.d.ts +26 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Extension.d.ts +11 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Format.d.ts +10 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Metadata.d.ts +7 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Quality.d.ts +7 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Resize.d.ts +18 -0
- package/build/components/FormatDialog/CustomRendition/transformations/Rotate.d.ts +8 -0
- package/{src/components/FormatDialog/CustomRendition/transformations/index.ts → build/components/FormatDialog/CustomRendition/transformations/index.d.ts} +3 -1
- package/build/components/FormatDialog/FormatDialog.d.ts +49 -0
- package/build/components/FormatDialog/FormatDialog.styled.d.ts +3 -0
- package/build/components/FormatDialog/Previewer/Previewer.d.ts +17 -0
- package/build/components/FormatDialog/Previewer/Previewer.styled.d.ts +1 -0
- package/build/components/FormatDialog/Previewer/index.d.ts +1 -0
- package/build/components/FormatDialog/ProxyMenu/ProxyMenu.d.ts +20 -0
- package/build/components/FormatDialog/ProxyMenu/ProxyMenu.styled.d.ts +2 -0
- package/build/components/FormatDialog/ProxyMenu/index.d.ts +1 -0
- package/build/components/FormatDialog/TrackingParameters/TrackingParameters.d.ts +13 -0
- package/build/components/FormatDialog/TrackingParameters/index.d.ts +1 -0
- package/build/components/FormatDialog/VersionHistory/VersionHistory.d.ts +6 -0
- package/build/components/FormatDialog/VersionHistory/VersionHistory.styled.d.ts +1 -0
- package/build/components/FormatDialog/VersionHistory/index.d.ts +1 -0
- package/build/components/FormatDialog/index.d.ts +1 -0
- package/build/components/Header/Header.d.ts +15 -0
- package/build/components/Header/Header.styled.d.ts +5 -0
- package/build/components/Loader/Loader.d.ts +7 -0
- package/build/components/Loader/index.d.ts +1 -0
- package/build/components/NoResult/NoResult.d.ts +7 -0
- package/build/components/NoResult/index.d.ts +1 -0
- package/build/components/Result/AssetCard/AssetCard.d.ts +15 -0
- package/build/components/Result/AssetCard/AssetCard.styled.d.ts +2 -0
- package/build/components/Result/AssetCard/AssetCardWrapper.d.ts +18 -0
- package/build/components/Result/AssetCard/AssetCardWrapper.styled.d.ts +1 -0
- package/build/components/Result/AssetCard/index.d.ts +1 -0
- package/build/components/Result/AssetPreview/AssetPreview.d.ts +11 -0
- package/build/components/Result/AssetPreview/AssetPreview.styled.d.ts +1 -0
- package/build/components/Result/AssetPreview/ImagePreview/ImagePreview.d.ts +11 -0
- package/build/components/Result/AssetPreview/ImagePreview/index.d.ts +1 -0
- package/build/components/Result/AssetPreview/OtherPreview/OtherPreview.d.ts +9 -0
- package/build/components/Result/AssetPreview/OtherPreview/OtherPreview.styled.d.ts +1 -0
- package/build/components/Result/AssetPreview/OtherPreview/index.d.ts +1 -0
- package/build/components/Result/AssetPreview/VideoPreview/VideoPreview.d.ts +11 -0
- package/build/components/Result/AssetPreview/VideoPreview/index.d.ts +1 -0
- package/build/components/Result/AssetPreview/index.d.ts +1 -0
- package/build/consts/asset.d.ts +14 -0
- package/build/consts/auth.d.ts +4 -0
- package/build/consts/data.d.ts +21 -0
- package/build/index.d.ts +229 -0
- package/build/index.html +1 -0
- package/build/page/Authenticate/Authenticate.d.ts +2 -0
- package/build/page/Authenticate/ConnectingBackground.d.ts +8 -0
- package/build/page/Authenticate/index.d.ts +2 -0
- package/build/page/Home/Home.d.ts +6 -0
- package/build/page/Home/Home.styled.d.ts +2 -0
- package/build/setupTests.d.ts +1 -0
- package/build/store/assets/assets.api.d.ts +66 -0
- package/build/store/assets/assets.service.d.ts +23 -0
- package/build/store/assets/assets.slice.d.ts +65 -0
- package/build/store/auth/auth.service.d.ts +10 -0
- package/build/store/auth/auth.slice.d.ts +76 -0
- package/build/store/index.d.ts +368 -0
- package/build/store/search/search.api.d.ts +39 -0
- package/build/store/search/search.slice.d.ts +12 -0
- package/build/store/user/user.api.d.ts +5 -0
- package/build/types/assets.d.ts +68 -0
- package/build/types/auth.d.ts +35 -0
- package/build/types/common.d.ts +11 -0
- package/build/types/download.d.ts +8 -0
- package/build/types/navigation.d.ts +3 -0
- package/build/types/search.d.ts +148 -0
- package/{src/types/storage.ts → build/types/storage.d.ts} +1 -1
- package/build/types/user.d.ts +7 -0
- package/build/utils/api.d.ts +27 -0
- package/build/utils/array.d.ts +13 -0
- package/build/utils/constants.d.ts +11 -0
- package/build/utils/function.d.ts +1 -0
- package/build/utils/getRequestUrl.d.ts +1 -0
- package/build/utils/hooks.d.ts +1 -0
- package/build/utils/icon.d.ts +3 -0
- package/build/utils/image.d.ts +24 -0
- package/build/utils/number.d.ts +4 -0
- package/build/utils/rotate.d.ts +4 -0
- package/build/utils/storage.d.ts +23 -0
- package/build/utils/string.d.ts +12 -0
- package/build/view/AssetsPicker.d.ts +6 -0
- package/package.json +49 -8
- package/.env +0 -1
- package/.eslintignore +0 -2
- package/.eslintrc.json +0 -82
- package/.releaserc +0 -17
- package/.travis.yml +0 -20
- package/CBSDKdemo.html +0 -315
- package/GitVersion.yml +0 -18
- package/azure-pipeline.yaml +0 -93
- package/clientlib.config.js +0 -36
- package/config/env.js +0 -105
- package/config/getHttpsConfig.js +0 -67
- package/config/jest/babelTransform.js +0 -30
- package/config/jest/cssTransform.js +0 -14
- package/config/jest/fileTransform.js +0 -41
- package/config/modules.js +0 -135
- package/config/paths.js +0 -79
- package/config/webpack/persistentCache/createEnvironmentHash.js +0 -10
- package/config/webpack.config.js +0 -762
- package/config/webpackDevServer.config.js +0 -128
- package/config-overrides.js +0 -8
- package/gab_extension/GAB.html +0 -85
- package/gab_extension/GoogleChrome/manifest.json +0 -28
- package/gab_extension/GoogleChrome/src/assets/icon48.png +0 -0
- package/gab_extension/GoogleChrome/src/background/index.js +0 -6
- package/gab_extension/GoogleChrome/src/scripts/index.js +0 -347
- package/gab_extension/MozillaFirefox/manifest.json +0 -20
- package/gab_extension/MozillaFirefox/src/assets/icon.png +0 -0
- package/gab_extension/MozillaFirefox/src/background/index.js +0 -5
- package/gab_extension/MozillaFirefox/src/scripts/index.js +0 -347
- package/gab_extension/README.md +0 -11
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Orange DAM Asset Browser Extension.xcodeproj/project.pbxproj +0 -927
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Orange DAM Asset Browser Extension.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Orange DAM Asset Browser Extension.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Orange DAM Asset Browser Extension.xcodeproj/project.xcworkspace/xcuserdata/oldevmac01.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Orange DAM Asset Browser Extension.xcodeproj/xcuserdata/oldevmac01.xcuserdatad/xcschemes/xcschememanagement.plist +0 -19
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Assets.xcassets/AccentColor.colorset/Contents.json +0 -11
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -63
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Assets.xcassets/Contents.json +0 -6
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Assets.xcassets/LargeIcon.imageset/Contents.json +0 -20
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Base.lproj/Main.html +0 -23
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Resources/Icon.png +0 -0
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Resources/Script.js +0 -24
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/Resources/Style.css +0 -61
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (App)/ViewController.swift +0 -81
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/Shared (Extension)/SafariWebExtensionHandler.swift +0 -26
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (App)/AppDelegate.swift +0 -24
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (App)/Base.lproj/LaunchScreen.storyboard +0 -36
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (App)/Base.lproj/Main.storyboard +0 -38
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (App)/Info.plist +0 -27
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (App)/SceneDelegate.swift +0 -18
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/iOS (Extension)/Info.plist +0 -13
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (App)/AppDelegate.swift +0 -21
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (App)/Base.lproj/Main.storyboard +0 -125
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (App)/Info.plist +0 -8
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (App)/Orange DAM Asset Browser Extension.entitlements +0 -12
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (Extension)/Info.plist +0 -13
- package/gab_extension/Safari/Orange DAM Asset Browser Extension/macOS (Extension)/Orange DAM Asset Browser Extension.entitlements +0 -10
- package/public/index.html +0 -92
- package/scripts/build.js +0 -218
- package/scripts/start.js +0 -154
- package/scripts/test.js +0 -53
- package/src/App.tsx +0 -98
- package/src/AppContext.ts +0 -18
- package/src/GlobalConfigContext.ts +0 -46
- package/src/components/ArrayClamp/ArrayClamp.styled.ts +0 -42
- package/src/components/ArrayClamp/ArrayClamp.tsx +0 -167
- package/src/components/ArrayClamp/index.ts +0 -1
- package/src/components/Browser/Browser.styled.ts +0 -82
- package/src/components/Browser/Browser.tsx +0 -284
- package/src/components/Browser/BrowserItem.tsx +0 -98
- package/src/components/ControlBar/ControlBar.constants.tsx +0 -66
- package/src/components/ControlBar/ControlBar.styled.ts +0 -82
- package/src/components/ControlBar/ControlBar.tsx +0 -528
- package/src/components/ControlBar/Facet/Facet.tsx +0 -113
- package/src/components/ControlBar/Facet/index.ts +0 -1
- package/src/components/FormatDialog/CropPreviewer/CropPreviewer.tsx +0 -224
- package/src/components/FormatDialog/CustomRendition/CustomRendition.constants.ts +0 -24
- package/src/components/FormatDialog/CustomRendition/CustomRendition.styled.ts +0 -57
- package/src/components/FormatDialog/CustomRendition/CustomRendition.tsx +0 -178
- package/src/components/FormatDialog/CustomRendition/index.ts +0 -1
- package/src/components/FormatDialog/CustomRendition/transformations/Crop.tsx +0 -249
- package/src/components/FormatDialog/CustomRendition/transformations/Extension.tsx +0 -54
- package/src/components/FormatDialog/CustomRendition/transformations/Format.tsx +0 -86
- package/src/components/FormatDialog/CustomRendition/transformations/Resize.tsx +0 -176
- package/src/components/FormatDialog/CustomRendition/transformations/Rotate.tsx +0 -101
- package/src/components/FormatDialog/FormatDialog.styled.ts +0 -137
- package/src/components/FormatDialog/FormatDialog.tsx +0 -1533
- package/src/components/FormatDialog/Previewer/Previewer.styled.ts +0 -31
- package/src/components/FormatDialog/Previewer/Previewer.tsx +0 -143
- package/src/components/FormatDialog/Previewer/index.ts +0 -1
- package/src/components/FormatDialog/ProxyMenu/ProxyMenu.styled.ts +0 -88
- package/src/components/FormatDialog/ProxyMenu/ProxyMenu.tsx +0 -74
- package/src/components/FormatDialog/ProxyMenu/index.ts +0 -1
- package/src/components/FormatDialog/TrackingParameters/TrackingParameters.tsx +0 -59
- package/src/components/FormatDialog/TrackingParameters/index.ts +0 -1
- package/src/components/FormatDialog/index.ts +0 -1
- package/src/components/Header/Header.styled.ts +0 -51
- package/src/components/Header/Header.tsx +0 -118
- package/src/components/Loader/Loader.tsx +0 -37
- package/src/components/Loader/index.ts +0 -1
- package/src/components/NoResult/NoResult.tsx +0 -37
- package/src/components/NoResult/index.tsx +0 -1
- package/src/components/Result/AssetCard/AssetCard.styled.ts +0 -120
- package/src/components/Result/AssetCard/AssetCard.tsx +0 -192
- package/src/components/Result/AssetCard/AssetCardWrapper.styled.ts +0 -35
- package/src/components/Result/AssetCard/AssetCardWrapper.tsx +0 -165
- package/src/components/Result/AssetCard/index.ts +0 -1
- package/src/components/Result/AssetPreview/AssetPreview.styled.ts +0 -108
- package/src/components/Result/AssetPreview/AssetPreview.tsx +0 -78
- package/src/components/Result/AssetPreview/ImagePreview/ImagePreview.tsx +0 -42
- package/src/components/Result/AssetPreview/ImagePreview/index.ts +0 -1
- package/src/components/Result/AssetPreview/OtherPreview/OtherPreview.styled.ts +0 -23
- package/src/components/Result/AssetPreview/OtherPreview/OtherPreview.tsx +0 -28
- package/src/components/Result/AssetPreview/OtherPreview/index.ts +0 -1
- package/src/components/Result/AssetPreview/VideoPreview/VideoPreview.tsx +0 -132
- package/src/components/Result/AssetPreview/VideoPreview/index.ts +0 -1
- package/src/components/Result/AssetPreview/index.ts +0 -1
- package/src/consts/asset.ts +0 -16
- package/src/consts/data.ts +0 -17
- package/src/index.tsx +0 -305
- package/src/page/Authenticate/Authenticate.tsx +0 -232
- package/src/page/Authenticate/ConnectingBackground.tsx +0 -44
- package/src/page/Authenticate/index.tsx +0 -94
- package/src/page/Home/Home.styled.ts +0 -46
- package/src/page/Home/Home.tsx +0 -941
- package/src/react-web-component.d.ts +0 -4617
- package/src/store/assets/assets.api.ts +0 -167
- package/src/store/assets/assets.service.ts +0 -223
- package/src/store/assets/assets.slice.ts +0 -104
- package/src/store/auth/auth.service.ts +0 -71
- package/src/store/auth/auth.slice.ts +0 -295
- package/src/store/index.ts +0 -27
- package/src/store/search/search.api.ts +0 -319
- package/src/store/search/search.slice.ts +0 -28
- package/src/store/user/user.api.ts +0 -29
- package/src/styles.css +0 -42
- package/src/types/assets.ts +0 -71
- package/src/types/auth.ts +0 -42
- package/src/types/common.ts +0 -11
- package/src/types/download.ts +0 -8
- package/src/types/navigation.ts +0 -3
- package/src/types/search.ts +0 -116
- package/src/types/user.ts +0 -6
- package/src/utils/api.ts +0 -186
- package/src/utils/array.ts +0 -25
- package/src/utils/constants.ts +0 -12
- package/src/utils/fetch.ts +0 -116
- package/src/utils/getRequestUrl.ts +0 -15
- package/src/utils/hooks.ts +0 -36
- package/src/utils/icon.ts +0 -22
- package/src/utils/image.ts +0 -157
- package/src/utils/number.ts +0 -11
- package/src/utils/rotate.ts +0 -23
- package/src/utils/storage.ts +0 -184
- package/src/utils/string.ts +0 -24
- package/src/view/AssetsPicker.tsx +0 -24
- package/src/web-component.d.ts +0 -8151
- package/tsconfig.eslint.json +0 -10
- package/tsconfig.json +0 -37
- /package/{src/components/Browser/index.ts → build/components/Browser/index.d.ts} +0 -0
- /package/{src/components/ControlBar/index.ts → build/components/ControlBar/index.d.ts} +0 -0
- /package/{src/components/Header/index.ts → build/components/Header/index.d.ts} +0 -0
- /package/{public → build}/favicon.ico +0 -0
- /package/{public → build}/logo192.png +0 -0
- /package/{public → build}/logo512.png +0 -0
- /package/{public → build}/manifest.json +0 -0
- /package/{src/page/Home/index.ts → build/page/Home/index.d.ts} +0 -0
- /package/{public → build}/robots.txt +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { GetContentRequest, GetFoldersRequest } from '@/types/search';
|
|
2
|
+
export declare class APIService {
|
|
3
|
+
private static instance;
|
|
4
|
+
static getInstance(): APIService;
|
|
5
|
+
fetchAssets(params: GetContentRequest): Promise<{
|
|
6
|
+
facets: import("@/types/search").Facet[];
|
|
7
|
+
items: import("@/types/search").Asset[];
|
|
8
|
+
totalCount: number;
|
|
9
|
+
} | undefined>;
|
|
10
|
+
fetchFolders(params: GetFoldersRequest): Promise<{
|
|
11
|
+
items: import("@/types/search").Folder[];
|
|
12
|
+
totalCount: number;
|
|
13
|
+
} | undefined>;
|
|
14
|
+
}
|
|
15
|
+
export declare const ContentBrowserApiService: APIService;
|
package/build/App.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import '@orangelogic-private/design-system/assets/design-system.css';
|
|
2
|
+
import '@orangelogic-private/design-system/components/alert';
|
|
3
|
+
import '@orangelogic-private/design-system/components/avatar';
|
|
4
|
+
import '@orangelogic-private/design-system/components/badge';
|
|
5
|
+
import '@orangelogic-private/design-system/components/button';
|
|
6
|
+
import '@orangelogic-private/design-system/components/button-group';
|
|
7
|
+
import '@orangelogic-private/design-system/components/card';
|
|
8
|
+
import '@orangelogic-private/design-system/components/checkbox';
|
|
9
|
+
import '@orangelogic-private/design-system/components/details';
|
|
10
|
+
import '@orangelogic-private/design-system/components/dialog';
|
|
11
|
+
import '@orangelogic-private/design-system/components/divider';
|
|
12
|
+
import '@orangelogic-private/design-system/components/drawer';
|
|
13
|
+
import '@orangelogic-private/design-system/components/dropdown';
|
|
14
|
+
import '@orangelogic-private/design-system/components/grid';
|
|
15
|
+
import '@orangelogic-private/design-system/components/grid-item';
|
|
16
|
+
import '@orangelogic-private/design-system/components/icon';
|
|
17
|
+
import '@orangelogic-private/design-system/components/icon-button';
|
|
18
|
+
import '@orangelogic-private/design-system/components/input';
|
|
19
|
+
import '@orangelogic-private/design-system/components/input-group';
|
|
20
|
+
import '@orangelogic-private/design-system/components/line-clamp';
|
|
21
|
+
import '@orangelogic-private/design-system/components/menu';
|
|
22
|
+
import '@orangelogic-private/design-system/components/menu-item';
|
|
23
|
+
import '@orangelogic-private/design-system/components/menu-label';
|
|
24
|
+
import '@orangelogic-private/design-system/components/option';
|
|
25
|
+
import '@orangelogic-private/design-system/components/progress-bar';
|
|
26
|
+
import '@orangelogic-private/design-system/components/resize-observer';
|
|
27
|
+
import '@orangelogic-private/design-system/components/select';
|
|
28
|
+
import '@orangelogic-private/design-system/components/space';
|
|
29
|
+
import '@orangelogic-private/design-system/components/skeleton';
|
|
30
|
+
import '@orangelogic-private/design-system/components/spinner';
|
|
31
|
+
import '@orangelogic-private/design-system/components/switch';
|
|
32
|
+
import '@orangelogic-private/design-system/components/tag';
|
|
33
|
+
import '@orangelogic-private/design-system/components/tooltip';
|
|
34
|
+
import '@orangelogic-private/design-system/components/tree';
|
|
35
|
+
import '@orangelogic-private/design-system/components/tree-item';
|
|
36
|
+
import '@orangelogic-private/design-system/components/typography';
|
|
37
|
+
import '@orangelogic-private/design-system/css/ol-light.css';
|
|
38
|
+
import '@orangelogic-private/design-system/react-types';
|
|
39
|
+
import '@orangelogic-private/design-system/components/copy-button';
|
|
40
|
+
import { FC } from 'react';
|
|
41
|
+
import { AppContextType } from '@/AppContext';
|
|
42
|
+
type Props = {
|
|
43
|
+
containerId?: string;
|
|
44
|
+
extraFields?: string[];
|
|
45
|
+
loadExternalFonts?: boolean;
|
|
46
|
+
multiSelect?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Call back when we close the app modal.
|
|
49
|
+
* Note: This only applicable when containerId is not defined
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
onClose?: () => void;
|
|
53
|
+
onError: AppContextType['onError'];
|
|
54
|
+
onAssetAction: AppContextType['onAssetAction'];
|
|
55
|
+
onAssetSelected: AppContextType['onAssetSelected'];
|
|
56
|
+
onImageSelected: AppContextType['onImageSelected'];
|
|
57
|
+
onConnectClicked?: (url: string) => void;
|
|
58
|
+
onTokenChanged?: (token: string) => void;
|
|
59
|
+
onSiteUrlChanged?: (siteUrl: string) => void;
|
|
60
|
+
};
|
|
61
|
+
export declare const App: FC<Props>;
|
|
62
|
+
export default App;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GetAssetLinkResponse } from './types/search';
|
|
2
|
+
export interface CustomStorage {
|
|
3
|
+
get(key: string): Promise<string | null>;
|
|
4
|
+
set(key: string, value: string, ttl?: number): void;
|
|
5
|
+
delete(key: string): void;
|
|
6
|
+
}
|
|
7
|
+
export type AppContextType = {
|
|
8
|
+
extraFields: string[];
|
|
9
|
+
onAssetAction: (action: string, recordID: string) => void;
|
|
10
|
+
onAssetSelected: (asset: GetAssetLinkResponse[]) => void | Promise<void>;
|
|
11
|
+
onImageSelected: (image: GetAssetLinkResponse[]) => void;
|
|
12
|
+
onError: (errorMessage?: string, error?: Error) => void;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
onConnectClicked?: (url: string) => void;
|
|
15
|
+
onTokenChanged?: (token: string) => void;
|
|
16
|
+
customStorage?: CustomStorage;
|
|
17
|
+
};
|
|
18
|
+
export declare const AppContext: import("react").Context<AppContextType>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type ImageCardDisplayInfo = {
|
|
2
|
+
title?: boolean;
|
|
3
|
+
dimension?: boolean;
|
|
4
|
+
fileSize?: boolean;
|
|
5
|
+
tags?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type PluginInfo = {
|
|
8
|
+
publicApplicationName?: string;
|
|
9
|
+
pluginName?: string;
|
|
10
|
+
};
|
|
11
|
+
export type GlobalConfigContextType = {
|
|
12
|
+
allowedExtensions?: string[];
|
|
13
|
+
allowedFolders?: string[];
|
|
14
|
+
availableDocTypes?: string[];
|
|
15
|
+
availableRepresentativeSubtypes?: string[];
|
|
16
|
+
ctaText: string;
|
|
17
|
+
displayInfo: ImageCardDisplayInfo;
|
|
18
|
+
lastLocationMode?: boolean;
|
|
19
|
+
persistMode: boolean;
|
|
20
|
+
pluginInfo: PluginInfo;
|
|
21
|
+
isContentBrowserPopedup: boolean;
|
|
22
|
+
showCollections?: boolean;
|
|
23
|
+
showFavoriteFolder?: boolean;
|
|
24
|
+
showVersions?: boolean;
|
|
25
|
+
useSession?: string;
|
|
26
|
+
allowLogout?: boolean;
|
|
27
|
+
allowTracking: boolean;
|
|
28
|
+
allowProxy: boolean;
|
|
29
|
+
allowFavorites: boolean;
|
|
30
|
+
allowPin: boolean;
|
|
31
|
+
defaultGridView: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const GlobalConfigContext: import("react").Context<GlobalConfigContextType>;
|