@orangelogic/orange-dam-content-browser-sdk 2.1.48-beta.7 → 2.1.48-pr61281.6

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.
@@ -0,0 +1,3 @@
1
+ export declare const LeftPanelOpenIcon = "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24px\"\n viewBox=\"0 -960 960 960\"\n width=\"24px\"\n fill=\"#52525B\"\n >\n <path d=\"M500-640v320l160-160-160-160ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm120-80v-560H200v560h120Zm80 0h360v-560H400v560Zm-80 0H200h120Z\" />\n </svg>";
2
+ export declare const LeftPanelCloseIcon = "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"24px\"\n viewBox=\"0 -960 960 960\"\n width=\"24px\"\n fill=\"#52525B\"\n >\n <path d=\"M660-320v-320L500-480l160 160ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm120-80v-560H200v560h120Zm80 0h360v-560H400v560Zm-80 0H200h120Z\" />\n </svg>";
3
+ export declare const FORCE_OVERLAY_THRESHOLD = 650;
@@ -13,6 +13,9 @@ type Props = {
13
13
  useSession?: string;
14
14
  onFolderSelect: (selectedFolder: Folder) => void;
15
15
  onClose: () => void;
16
+ isPersistent: boolean;
17
+ onChangePersistent: (persistent: boolean) => void;
18
+ forceOverlay: boolean;
16
19
  };
17
20
  declare const Browser: FC<Props>;
18
21
  export default Browser;
package/build/index.d.ts CHANGED
@@ -160,6 +160,11 @@ type OrangeDAMContentBrowser = {
160
160
  * The flag to toggle between loading external fonts from direct links and from internal CSS file
161
161
  */
162
162
  loadExternalFonts?: boolean;
163
+ /**
164
+ * The default grid view to be used when showing asset (default Medium)
165
+ * Available values: small, medium, large
166
+ */
167
+ defaultGridView?: string;
163
168
  }) => Promise<void>;
164
169
  close: () => void;
165
170
  fetchAssets: (params: GetContentRequest) => Promise<{
@@ -1 +1,2 @@
1
1
  export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,2 +1,3 @@
1
1
  import { MediaType } from '@/types/search';
2
- export declare const getMediaIcon: (type?: MediaType) => "article" | "file" | "audio_file" | "album" | "widgets" | "perm_media" | "video_file" | "photo";
2
+ export declare const getMediaIcon: (type?: MediaType) => "article" | "audio_file" | "album" | "widgets" | "perm_media" | "video_file" | "photo" | "file";
3
+ export declare const constructIconDataUrl: (svgString: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangelogic/orange-dam-content-browser-sdk",
3
- "version": "2.1.48-beta.7",
3
+ "version": "2.1.48-pr61281.6",
4
4
  "description": "OrangeDAM Content Browser SDK source code",
5
5
  "main": "build/OrangeDAMContentBrowserSDK.min.js",
6
6
  "types": "build/index.d.ts",
@@ -76,7 +76,7 @@
76
76
  "dependencies": {
77
77
  "@babel/core": "^7.16.0",
78
78
  "@craco/craco": "^7.1.0",
79
- "@orangelogic-private/design-system": "1.0.333",
79
+ "@orangelogic-private/design-system": "1.0.346",
80
80
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
81
81
  "@reduxjs/toolkit": "^1.9.5",
82
82
  "@svgr/webpack": "^8.1.0",