@orangelogic/orange-dam-content-browser-sdk 2.4.11 → 2.4.12
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 +22 -0
- package/build/GlobalConfigContext.d.ts +1 -0
- package/build/OrangeDAMContentBrowserSDK.min.js +5 -5
- package/build/api/asset/asset.d.ts +1 -1
- package/build/api/asset/asset.types.d.ts +5 -0
- package/build/components/content-browser/content-browser.d.ts +6 -0
- package/build/content-browser.mjs +14 -2
- package/build/index.d.ts +7 -0
- package/build/index.mjs +19 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,6 +108,28 @@ setting is simply ignored. Because no GetAssetLink request is made, only the com
|
|
|
108
108
|
`extraFields` (`ScrubUrl` and `AllowATSLink`) are returned in this mode -- request any
|
|
109
109
|
other field with `simplePick` off.
|
|
110
110
|
|
|
111
|
+
## Select Without an Asset Link (`skipLinkGeneration`)
|
|
112
|
+
|
|
113
|
+
Set `skipLinkGeneration: true` when the host needs the selected asset's fields, not a
|
|
114
|
+
URL. Confirm still calls GetAssetLink, but with `GenerateAssetUrl=false`, so Cortex
|
|
115
|
+
returns the metadata and the requested `extraFields` and creates no asset link:
|
|
116
|
+
|
|
117
|
+
```html
|
|
118
|
+
<script>
|
|
119
|
+
OrangeDAMContentBrowser.open({
|
|
120
|
+
allowProxy: false,
|
|
121
|
+
extraFields: ['Document.RecordID'],
|
|
122
|
+
skipLinkGeneration: true,
|
|
123
|
+
onAssetSelected: (assets) => console.log(assets[0].extraFields['Document.RecordID']),
|
|
124
|
+
});
|
|
125
|
+
</script>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Use it when a link is not needed. Cortex refuses a link to some users who can still
|
|
129
|
+
read the asset (for example a CDN permanent link without the `GetBulkPermanentLinks`
|
|
130
|
+
security function), and the selection then fails. Each selected item's `imageUrl` is
|
|
131
|
+
the grid preview URL. Unlike `simplePick`, any `extraFields` can be requested.
|
|
132
|
+
|
|
111
133
|
# Change Log
|
|
112
134
|
* March 24, 2026 - v2.2.3
|
|
113
135
|
* Supports displaying asset thumbnails according to the selected format (https://link.orangelogic.com/Tasks/420YSB)
|