@orangelogic/orange-dam-content-browser-sdk 2.3.7-table-view-beta-2 → 2.3.7
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/build/GlobalConfigContext.d.ts +0 -3
- package/build/OrangeDAMContentBrowserSDK.min.js +326 -782
- package/build/api/asset/asset.d.ts +7 -2
- package/build/components/content-browser/content-browser.d.ts +2 -37
- package/build/components/content-browser-asset-card/content-browser-asset-card.d.ts +1 -17
- package/build/components/content-browser-control-bar/content-browser-control-bar.d.ts +0 -1
- package/build/components/content-browser-control-view/content-browser-control-view.d.ts +2 -5
- package/build/components/content-browser-format-dialog/content-browser-format-dialog.d.ts +1 -27
- package/build/components/content-browser-grid/content-browser-grid.d.ts +1 -5
- package/build/components/content-browser-grid/scroll-anchor-controller.d.ts +1 -12
- package/build/content-browser.mjs +506 -1754
- package/build/events/cx-content-browser-control-view-change.d.ts +2 -2
- package/build/events/cx-content-browser-request-change.d.ts +2 -2
- package/build/events/index.d.ts +0 -1
- package/build/index.d.ts +2 -29
- package/build/index.html +0 -4
- package/build/index.mjs +440 -1706
- package/build/tools/fetch-and-merge-assets.d.ts +1 -10
- package/build/types/asset.d.ts +0 -5
- package/build/types/content-browser.d.ts +0 -53
- package/package.json +1 -1
- package/build/components/content-browser-table/content-browser-table.d.ts +0 -178
- package/build/components/content-browser-table/content-browser-table.styles.d.ts +0 -2
- package/build/events/cx-content-browser-table-column-resize.d.ts +0 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GridView } from '../types/content-browser';
|
|
2
2
|
export type CxContentBrowserControlViewChangeEvent = CustomEvent<{
|
|
3
3
|
isSeeThrough: boolean;
|
|
4
|
-
view:
|
|
4
|
+
view: GridView;
|
|
5
5
|
}>;
|
|
6
6
|
declare global {
|
|
7
7
|
interface GlobalEventHandlersEventMap {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GetAssetsRequest } from '../types/asset';
|
|
2
|
-
import {
|
|
2
|
+
import { GridView } from '../types/content-browser';
|
|
3
3
|
export type CxContentBrowserRequestChangeEvent = CustomEvent<{
|
|
4
4
|
request: GetAssetsRequest | null;
|
|
5
|
-
view:
|
|
5
|
+
view: GridView;
|
|
6
6
|
}>;
|
|
7
7
|
declare global {
|
|
8
8
|
interface GlobalEventHandlersEventMap {
|
package/build/events/index.d.ts
CHANGED
|
@@ -16,4 +16,3 @@ export * from './cx-content-browser-pin-asset-change';
|
|
|
16
16
|
export * from './cx-content-browser-pin-asset-lookup';
|
|
17
17
|
export * from './cx-content-browser-request-change';
|
|
18
18
|
export * from './cx-content-browser-selected-asset';
|
|
19
|
-
export * from './cx-content-browser-table-column-resize';
|
package/build/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import './styles.css';
|
|
|
2
2
|
export { default as CxContentBrowser } from './components/content-browser/content-browser';
|
|
3
3
|
import { AppContextType } from './AppContext';
|
|
4
4
|
import { CtaTextTransform, ImageCardDisplayInfo } from './GlobalConfigContext';
|
|
5
|
-
import { type AutoSelectFormat, TableColumn } from './types/content-browser';
|
|
6
5
|
import { Folder, GetContentRequest, GetContentResponse, GetFoldersRequest } from './types/search';
|
|
7
6
|
type OrangeDAMContentBrowser = {
|
|
8
7
|
help: () => void;
|
|
@@ -209,36 +208,10 @@ type OrangeDAMContentBrowser = {
|
|
|
209
208
|
*/
|
|
210
209
|
loadExternalFonts?: boolean;
|
|
211
210
|
/**
|
|
212
|
-
* The default view to be used when showing
|
|
213
|
-
* Available values: small, medium, large
|
|
214
|
-
* `table` only applies when `tableColumns` is also provided.
|
|
211
|
+
* The default grid view to be used when showing asset (default Medium)
|
|
212
|
+
* Available values: small, medium, large
|
|
215
213
|
*/
|
|
216
214
|
defaultGridView?: string;
|
|
217
|
-
/**
|
|
218
|
-
* The columns of the table view. Each column carries a `title` (the header text), a `field`
|
|
219
|
-
* (the Cortex field it reads, e.g. "CoreField.Identifier") and optional
|
|
220
|
-
* styling: `width` (a CSS grid track), `align` and `lines`.
|
|
221
|
-
*
|
|
222
|
-
* The table view is offered in the view menu only when this is set, and the fields listed here
|
|
223
|
-
* are requested on every search — so an asset with no thumbnail, such as a text fragment,
|
|
224
|
-
* becomes browsable and selectable by its metadata.
|
|
225
|
-
*/
|
|
226
|
-
tableColumns?: TableColumn[];
|
|
227
|
-
/**
|
|
228
|
-
* Import behaviour when picking an asset, for a host that would rather not show the format
|
|
229
|
-
* picker.
|
|
230
|
-
*
|
|
231
|
-
* - `false` (default) - the format dialog opens as usual.
|
|
232
|
-
* - `true` - insert with the first available format, without showing the dialog.
|
|
233
|
-
* - a format name - insert with that format. Matched case-insensitively against a proxy's
|
|
234
|
-
* `proxyName` ("TRX") or the label the picker shows ("Original"). A name that matches no
|
|
235
|
-
* available format opens the dialog as usual, so a stale value degrades rather than breaks.
|
|
236
|
-
*
|
|
237
|
-
* Skipping the dialog also skips everything else it offers for that asset: the preview, the
|
|
238
|
-
* ATS custom format, and the tracking-parameter panel. Assets are inserted with tracking off,
|
|
239
|
-
* which is the dialog's own default.
|
|
240
|
-
*/
|
|
241
|
-
autoSelectFormat?: AutoSelectFormat;
|
|
242
215
|
}) => Promise<void>;
|
|
243
216
|
close: () => void;
|
|
244
217
|
fetchAssets: (params: GetContentRequest) => Promise<GetContentResponse | undefined> | undefined;
|
package/build/index.html
CHANGED
|
@@ -92,10 +92,6 @@
|
|
|
92
92
|
// fileSize: false,
|
|
93
93
|
// tags: false,
|
|
94
94
|
extraFields: ['coreField.OriginalFileName', 'document.CortexPath', 'ScrubUrl'],
|
|
95
|
-
// tableColumns: [
|
|
96
|
-
// { title: 'Identifier', field: 'CoreField.Identifier', width: '160px' },
|
|
97
|
-
// { title: 'Title', field: 'CoreField.TitleWithFallback', width: 'minmax(0, 2fr)' },
|
|
98
|
-
// ],
|
|
99
95
|
persistMode: true,
|
|
100
96
|
// publicApplicationName: "",
|
|
101
97
|
// pluginName: "OrangeDAM Content Browser",
|