@orangelogic/orange-dam-content-browser-sdk 2.2.0-figma-beta-4 → 2.2.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.
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
- import { CtaTextTransform } from '@/GlobalConfigContext';
3
2
  import { TrackingParameter, Transformation } from '@/types/assets';
4
3
  import { Asset, AssetLinkInfo, AssetTransformationInfo, MediaType, Proxy } from '@/types/search';
5
4
  type Props = {
@@ -16,7 +15,6 @@ type Props = {
16
15
  }[]>;
17
16
  availableProxies?: Proxy[];
18
17
  ctaText?: string;
19
- ctaTextTransform?: CtaTextTransform;
20
18
  extensions: string[];
21
19
  isFavorite?: boolean;
22
20
  maxHeight?: number;
@@ -36,7 +34,7 @@ type Props = {
36
34
  useRepresentative?: boolean;
37
35
  value: string;
38
36
  selectedProxyMetadata?: AssetLinkInfo;
39
- }) => Promise<boolean>;
37
+ }) => Promise<void>;
40
38
  onFormatConfirm: (value: {
41
39
  extension?: string;
42
40
  parameters?: TrackingParameter[];
@@ -44,7 +42,7 @@ type Props = {
44
42
  value: Transformation[];
45
43
  sourceProxyMetadata?: AssetLinkInfo;
46
44
  transformedAssetMetadata?: AssetTransformationInfo;
47
- }) => Promise<boolean>;
45
+ }) => Promise<void>;
48
46
  onUnFavorite: () => Promise<boolean>;
49
47
  };
50
48
  declare const FormatDialog: FC<Props>;
package/build/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import './styles.css';
2
2
  import { AppContextType } from '@/AppContext';
3
- import { CtaTextTransform, ImageCardDisplayInfo } from '@/GlobalConfigContext';
3
+ import { ImageCardDisplayInfo } from '@/GlobalConfigContext';
4
4
  import { Asset, Facet, Folder, GetContentRequest, GetFoldersRequest } from './types/search';
5
5
  type OrangeDAMContentBrowser = {
6
6
  help: () => void;
@@ -107,12 +107,6 @@ type OrangeDAMContentBrowser = {
107
107
  * default to "Insert"
108
108
  */
109
109
  ctaText?: string;
110
- /**
111
- * The text transform for the CTA text
112
- * Available values: 'none' | 'uppercase' | 'lowercase' | 'capitalize'
113
- * Default: 'capitalize'
114
- */
115
- ctaTextTransform?: CtaTextTransform;
116
110
  /**
117
111
  * The persist mode for the content browser which will prevent the browser from closing after selecting asset
118
112
  * default to false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangelogic/orange-dam-content-browser-sdk",
3
- "version": "2.2.0-figma-beta-4",
3
+ "version": "2.2.0",
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.411",
79
+ "@orangelogic-private/design-system": "1.0.396",
80
80
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
81
81
  "@reduxjs/toolkit": "^1.9.5",
82
82
  "@svgr/webpack": "^8.1.0",
@@ -1,4 +0,0 @@
1
- import type { CxLineClamp } from '@orangelogic-private/design-system';
2
- import type { CxLineClampProps } from '@orangelogic-private/design-system/react-types';
3
- declare const LineClamp: import("react").ForwardRefExoticComponent<Omit<CxLineClampProps, "ref"> & import("react").RefAttributes<CxLineClamp>>;
4
- export default LineClamp;
@@ -1 +0,0 @@
1
- export { default } from './LineClamp';
@@ -1,14 +0,0 @@
1
- /**
2
- * A function that merges React refs into one.
3
- * Supports both functions and ref objects created using createRef() and useRef().
4
- *
5
- * Usage:
6
- * ```tsx
7
- * <div ref={mergeRefs(ref1, ref2, ref3)} />
8
- * ```
9
- *
10
- * @param {(React.Ref<T> | undefined)[]} inputRefs Array of refs
11
- * @returns {React.Ref<T> | React.RefCallback<T>} Merged refs
12
- */
13
- declare function mergeRefs<T>(...inputRefs: (React.Ref<T> | undefined)[]): React.Ref<T> | React.RefCallback<T>;
14
- export default mergeRefs;