@orangelogic/orange-dam-content-browser-sdk 2.2.0-figma-beta-2 → 2.2.0-figma-beta-4

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,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import { CtaTextTransform } from '@/GlobalConfigContext';
2
3
  import { TrackingParameter, Transformation } from '@/types/assets';
3
4
  import { Asset, AssetLinkInfo, AssetTransformationInfo, MediaType, Proxy } from '@/types/search';
4
5
  type Props = {
@@ -15,6 +16,7 @@ type Props = {
15
16
  }[]>;
16
17
  availableProxies?: Proxy[];
17
18
  ctaText?: string;
19
+ ctaTextTransform?: CtaTextTransform;
18
20
  extensions: string[];
19
21
  isFavorite?: boolean;
20
22
  maxHeight?: number;
package/build/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import './styles.css';
2
2
  import { AppContextType } from '@/AppContext';
3
- import { ImageCardDisplayInfo } from '@/GlobalConfigContext';
3
+ import { CtaTextTransform, ImageCardDisplayInfo } from '@/GlobalConfigContext';
4
4
  import { Asset, Facet, Folder, GetContentRequest, GetFoldersRequest } from './types/search';
5
5
  type OrangeDAMContentBrowser = {
6
6
  help: () => void;
@@ -107,6 +107,12 @@ 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;
110
116
  /**
111
117
  * The persist mode for the content browser which will prevent the browser from closing after selecting asset
112
118
  * 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-2",
3
+ "version": "2.2.0-figma-beta-4",
4
4
  "description": "OrangeDAM Content Browser SDK source code",
5
5
  "main": "build/OrangeDAMContentBrowserSDK.min.js",
6
6
  "types": "build/index.d.ts",