@orangelogic/orange-dam-content-browser-sdk 2.3.6-beta-1 → 2.3.6-beta-3
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 +27 -1
- package/build/GlobalConfigContext.d.ts +1 -0
- package/build/OrangeDAMContentBrowserSDK.min.js +10 -9
- package/build/components/content-browser/content-browser.d.ts +7 -0
- package/build/components/content-browser-format-dialog/content-browser-format-dialog.d.ts +5 -0
- package/build/content-browser.mjs +90 -25
- package/build/index.d.ts +9 -0
- package/build/index.mjs +96 -26
- package/build/tools/fetch-and-merge-assets.d.ts +13 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ yarn start
|
|
|
48
48
|
```
|
|
49
49
|
yarn build
|
|
50
50
|
```
|
|
51
|
-
- use the 2 files `build
|
|
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)
|