@orangelogic/orange-dam-content-browser-sdk 2.3.6-beta-1 → 2.3.6-beta-2

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/README.md CHANGED
@@ -48,7 +48,7 @@ yarn start
48
48
  ```
49
49
  yarn build
50
50
  ```
51
- - use the 2 files `build\static\js\ContentBrowserSDK.min.js` and `build\static\css\ContentBrowserSDK.min.css` in your other projects
51
+ - use the 2 files `build/OrangeDAMContentBrowserSDK.min.js` and `build/OrangeDAMContentBrowserSDK.min.css` in your other projects
52
52
 
53
53
  # More guide
54
54
  For detail guides on usage check out the [Orange Logic Developer Portal](https://developer.orangelogic.com/docs/generic-asset-browser)
@@ -82,6 +82,32 @@ authentication when the site session expires. Sign in through the Cortex site an
82
82
  reopen the picker to resume. Omit `useSiteSession` to retain the existing SDK
83
83
  authentication flow.
84
84
 
85
+ ## Pick Without Formats (`simplePick`)
86
+
87
+ Set `simplePick: true` when the host only needs the user to choose an asset. The SDK
88
+ skips the available-proxies lookup and the transformation request that normally runs
89
+ when an asset is confirmed, so picking costs one fewer round trip each way:
90
+
91
+ ```html
92
+ <script>
93
+ OrangeDAMContentBrowser.open({
94
+ containerId: 'asset-picker',
95
+ simplePick: true,
96
+ onAssetSelected: (assets) => console.log(assets),
97
+ });
98
+ </script>
99
+ ```
100
+
101
+ The preview popup still opens with the asset's metadata, but shows only the image
102
+ (`CoreField.LargeSizePreview`, already returned by the content request that fills the
103
+ grid) and a single confirm button -- no proxy selector and no custom-format section.
104
+ Confirming emits the asset straight to `onAssetSelected`.
105
+
106
+ `simplePick` implies `allowProxy: false`; passing both is not an error, the proxy
107
+ setting is simply ignored. Because no GetAssetLink request is made, only the computed
108
+ `extraFields` (`ScrubUrl` and `AllowATSLink`) are returned in this mode -- request any
109
+ other field with `simplePick` off.
110
+
85
111
  # Change Log
86
112
  * March 24, 2026 - v2.2.3
87
113
  * Supports displaying asset thumbnails according to the selected format (https://link.orangelogic.com/Tasks/420YSB)
@@ -28,6 +28,7 @@ export type GlobalConfigContextType = {
28
28
  allowLogout?: boolean;
29
29
  allowTracking: boolean;
30
30
  allowProxy: boolean;
31
+ simplePick: boolean;
31
32
  allowFavorites: boolean;
32
33
  allowPin: boolean;
33
34
  allowFormatDialogPin?: boolean;