@orangelogic/orange-dam-content-browser-sdk 2.4.8 → 2.4.9-pr111303.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.
Files changed (27) hide show
  1. package/README.md +26 -0
  2. package/build/GlobalConfigContext.d.ts +5 -0
  3. package/build/OrangeDAMContentBrowserSDK.min.js +740 -338
  4. package/build/api/asset/asset.d.ts +2 -1
  5. package/build/api/asset/asset.types.d.ts +9 -0
  6. package/build/components/content-browser/content-browser.d.ts +78 -2
  7. package/build/components/content-browser-asset-card/content-browser-asset-card.d.ts +25 -1
  8. package/build/components/content-browser-control-bar/content-browser-control-bar.d.ts +1 -0
  9. package/build/components/content-browser-control-view/content-browser-control-view.d.ts +5 -2
  10. package/build/components/content-browser-format-dialog/content-browser-format-dialog.d.ts +32 -1
  11. package/build/components/content-browser-grid/content-browser-grid.d.ts +5 -1
  12. package/build/components/content-browser-table/column-layout.d.ts +29 -0
  13. package/build/components/content-browser-table/content-browser-table.d.ts +302 -0
  14. package/build/components/content-browser-table/content-browser-table.styles.d.ts +2 -0
  15. package/build/content-browser.mjs +2526 -446
  16. package/build/events/cx-content-browser-control-view-change.d.ts +2 -2
  17. package/build/events/cx-content-browser-request-change.d.ts +2 -2
  18. package/build/events/cx-content-browser-table-column-resize.d.ts +26 -0
  19. package/build/events/index.d.ts +1 -0
  20. package/build/index.d.ts +47 -2
  21. package/build/index.html +4 -0
  22. package/build/index.mjs +2564 -638
  23. package/build/tools/fetch-and-merge-assets.d.ts +15 -3
  24. package/build/types/asset.d.ts +5 -0
  25. package/build/types/content-browser.d.ts +69 -0
  26. package/build/utils/table-column-widths.d.ts +5 -0
  27. package/package.json +2 -2
package/README.md CHANGED
@@ -108,6 +108,32 @@ 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
+ ## Confirm When a Format Is Selected (`confirmOnFormatSelect`)
112
+
113
+ Set `confirmOnFormatSelect: true` to remove the extra Insert click after the user chooses
114
+ an image variation:
115
+
116
+ ```html
117
+ <script>
118
+ OrangeDAMContentBrowser.open({
119
+ containerId: 'asset-picker',
120
+ allowProxy: true,
121
+ confirmOnFormatSelect: true,
122
+ onAssetSelected: (assets) => console.log(assets),
123
+ });
124
+ </script>
125
+ ```
126
+
127
+ Selecting a proxy or representative image confirms it immediately. Selecting Custom
128
+ Format still opens the editor so the user can configure the transformation; clicking
129
+ Done then confirms it immediately. Tracking remains a toggle and does not confirm the
130
+ selection.
131
+
132
+ The option defaults to `false`, so existing integrations retain the explicit Insert
133
+ button. It has no effect when proxy selection is unavailable, including when
134
+ `simplePick` disables proxies. Link generation and the `onAssetSelected` payload are
135
+ unchanged.
136
+
111
137
  # Change Log
112
138
  * March 24, 2026 - v2.2.3
113
139
  * Supports displaying asset thumbnails according to the selected format (https://link.orangelogic.com/Tasks/420YSB)
@@ -1,3 +1,4 @@
1
+ import { TableColumn, type AutoSelectFormat, type TableRowActionPosition } from './types/content-browser';
1
2
  export type ImageCardDisplayInfo = {
2
3
  title?: boolean;
3
4
  dimension?: boolean;
@@ -28,10 +29,14 @@ export type GlobalConfigContextType = {
28
29
  allowLogout?: boolean;
29
30
  allowTracking: boolean;
30
31
  allowProxy: boolean;
32
+ confirmOnFormatSelect: boolean;
31
33
  simplePick: boolean;
32
34
  allowFavorites: boolean;
33
35
  allowPin: boolean;
34
36
  allowFormatDialogPin?: boolean;
35
37
  defaultGridView: string;
38
+ autoSelectFormat: AutoSelectFormat;
39
+ tableColumns?: TableColumn[];
40
+ tableRowActionPosition?: TableRowActionPosition;
36
41
  };
37
42
  export declare const GlobalConfigContext: import("react").Context<GlobalConfigContextType>;