@cesdk/cesdk-js 1.7.0-alpha.3 → 1.7.0-alpha.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.
package/index.d.ts CHANGED
@@ -11,11 +11,118 @@ declare type A11y = {
11
11
 
12
12
  /** @public */
13
13
  export declare class API {
14
+ asset: AssetAPI;
14
15
  block: BlockAPI;
15
- scene: SceneAPI;
16
+ editor: EditorAPI;
16
17
  event: EventAPI;
18
+ scene: SceneAPI;
17
19
  variable: VariableAPI;
18
- editor: EditorAPI;
20
+ }
21
+
22
+ /**
23
+ * Generic asset information
24
+ * @public
25
+ */
26
+ declare interface Asset {
27
+ /**
28
+ * Is a combination of source id, extension pack id (optional), type and asset id
29
+ * e.g. "extension://ly.img.cesdk.images.samples/ly.img.image/sample.1"
30
+ */
31
+ id: string;
32
+ /** E.g. `ly.img.image` */
33
+ /** Groups of the asset. */
34
+ groups?: Groups;
35
+ /** URI to a thumbnail of the asset used e.g. in the content library UI */
36
+ thumbUri: string;
37
+
38
+ /** Asset-specific and custom meta information */
39
+ meta?: {
40
+ uri?: string;
41
+ filename?: string;
42
+ vectorPath?: string;
43
+ } & Record<string, unknown>;
44
+ }
45
+
46
+ /**
47
+ * @public
48
+ */
49
+ export declare class AssetAPI {
50
+ #private;
51
+
52
+ /**
53
+ * Adds a custom asset source. Its ID has to be unique.
54
+ * @param source - The asset source.
55
+ */
56
+ addSource(source: AssetSource_2): void;
57
+ /**
58
+ * Removes an asset source with the given ID.
59
+ * @param id - The ID to refer to the asset source.
60
+ */
61
+ removeSource(id: string): void;
62
+ /**
63
+ * Finds all registered asset sources.
64
+ * @returns A list with the IDs of all registered asset sources.
65
+ */
66
+ findAllSources(): string[];
67
+ /**
68
+ * Finds assets of a given type in a specific asset source.
69
+ * @param sourceId - The ID of the asset source.
70
+ * @param query - All the options to filter the search results by.
71
+ * @returns The search results.
72
+ */
73
+ findAssets(sourceId: string, query: AssetQueryData): Promise<AssetsQueryResult_2>;
74
+ /**
75
+ * Queries the asset source's groups for a certain asset type.
76
+ * @param id - The ID of the asset source.
77
+ * @returns The asset groups.
78
+ */
79
+ getGroups(id: string): Promise<string[]>;
80
+ /**
81
+ * Queries the asset source's credits info.
82
+ * @param sourceId - The ID of the asset source.
83
+ * @returns The asset source's credits info consisting of a name and an optional URL.
84
+ */
85
+ getCredits(sourceId: string): {
86
+ name: string;
87
+ url: string | undefined;
88
+ } | undefined;
89
+ /**
90
+ * Queries the asset source's license info.
91
+ * @param sourceId - The ID of the asset source.
92
+ * @returns The asset source's license info consisting of a name and an optional URL.
93
+ */
94
+ getLicense(sourceId: string): {
95
+ name: string;
96
+ url: string | undefined;
97
+ } | undefined;
98
+ canManageAssets(sourceId: string): boolean;
99
+ /**
100
+ * Apply an asset result to the active scene.
101
+ * The default behavior will instantiate a block and configure it according to the asset's properties.
102
+ * Note that this can be overridden by providing an `applyAsset` function when adding the asset source.
103
+ * @param sourceId - The ID of the asset source.
104
+ * @param assetResult - A single assetResult of a `findAssets` query.
105
+ */
106
+ apply(sourceId: string, assetResult: AssetResult_2): Promise<void>;
107
+ }
108
+
109
+ /**
110
+ * Definition of an assets used if an asset is added to an asset source.
111
+ * @public
112
+ */
113
+ declare interface AssetDefinition extends Asset {
114
+ /**
115
+ * Label used to display in aria-label and as a tooltip.
116
+ * Will be also searched in a query and should be localized
117
+ */
118
+ label?: Record<Locale, string>;
119
+ /**
120
+ * Tags for this asset. Can be used for filtering, but is also useful for
121
+ * free-text search. Since the label is searched as well as used for tooltips
122
+ * you do not want to overdo it, but still add things which are searched.
123
+ * Thus, it should be localized similar to the `label`.
124
+ */
125
+ tags?: Record<Locale, string[]>;
19
126
  }
20
127
 
21
128
  /** @public */
@@ -26,6 +133,94 @@ export declare interface _AssetElement {
26
133
  thumbUri: string;
27
134
  }
28
135
 
136
+ declare type AssetLibraryEntries = AssetLibraryEntry[] | ((currentAssetLibraryEntries: AssetLibraryEntry[]) => AssetLibraryEntry[]);
137
+
138
+ declare interface AssetLibraryEntry extends AssetLibraryEntryData, AssetLibraryEntryView {
139
+ }
140
+
141
+ declare interface AssetLibraryEntryData {
142
+ id: string;
143
+ sourceIds: string[];
144
+ excludeGroups?: string[];
145
+ includeGroups?: string[];
146
+ title?: (options?: {
147
+ group?: string;
148
+ }) => string;
149
+ managed?: boolean;
150
+ }
151
+
152
+ declare interface AssetLibraryEntryView {
153
+ showGroupOverview?: boolean;
154
+ /**
155
+ * Determines how many asset results will be show in an overview or
156
+ * section overview.
157
+ */
158
+ previewLength?: number;
159
+ /**
160
+ * Determines if the thumbUri is set as a background that will be
161
+ * contained or covered by the card in an overview or section overview.
162
+ */
163
+ previewBackgroundType?: 'cover' | 'contain';
164
+ /**
165
+ * Determines if the thumbUri is set as a background that will be
166
+ * contained or covered by the card in the grid view
167
+ */
168
+ gridBackgroundType?: 'cover' | 'contain';
169
+ /**
170
+ * Number of columns in the grid view
171
+ */
172
+ gridColumns?: number;
173
+ /**
174
+ * Determines the height of an item in the grid view.
175
+ *
176
+ * - `auto` automatically determine height yielding a masonry-like grid view
177
+ * - `square` every card will have the same square size
178
+ */
179
+ gridItemHeight?: 'auto' | 'square';
180
+ /**
181
+ * Overwrite the label of a card for a specific asset result
182
+ */
183
+ cardLabel?: (assetResult: AssetResult_2) => string | undefined;
184
+ /**
185
+ * Add custom styles to a card for a specific asset result
186
+ */
187
+ cardStyle?: (assetResult: AssetResult_2) => Record<string, string | undefined>;
188
+ /**
189
+ * Add custom styles to a label for a specific asset result
190
+ */
191
+ cardLabelStyle?: (assetResult: AssetResult_2) => Record<string, string | undefined>;
192
+ }
193
+
194
+ /**
195
+ * Defines a request for querying assets
196
+ * @public
197
+ */
198
+ declare interface AssetQueryData {
199
+ /** A query string used for (fuzzy) searching of labels and tags */
200
+ query?: string;
201
+ /** The current page queried for paginated views. */
202
+ page: number;
203
+ /**
204
+ * Tags are searched with the query parameter, but this search is fuzzy.
205
+ * If one needs to get assets with exactly the tag (from a tag cloud or filter)
206
+ * this query parameter should be used.
207
+ */
208
+ tags?: string | string[];
209
+ /** Query only these groups */
210
+ groups?: Groups;
211
+ /** Filter out assets with this groups */
212
+ excludeGroups?: Groups;
213
+ /** Choose the locale of the labels and tags for localized search and filtering */
214
+ locale?: Locale;
215
+ /**
216
+ * The number of results queried. How many assets shall be returned regardless
217
+ * of the total number of assets available.
218
+ *
219
+ * Together with `page` this can be used for pagination.
220
+ */
221
+ perPage: number;
222
+ }
223
+
29
224
  /**
30
225
  * Single asset result of a query from the engine.
31
226
  * @public
@@ -33,8 +228,6 @@ export declare interface _AssetElement {
33
228
  declare interface AssetResult {
34
229
  /** A unique id of this asset */
35
230
  id: string;
36
- /** E.g. `ly.img.image` */
37
- type: string;
38
231
  /** URI to a thumbnail of the asset used e.g. in the content library UI */
39
232
  thumbUri: string;
40
233
  /** Original size of the asset. */
@@ -68,36 +261,53 @@ declare interface AssetResult {
68
261
  };
69
262
  }
70
263
 
264
+ /**
265
+ * Single asset result of a query from the engine.
266
+ * @public
267
+ */
268
+ declare interface AssetResult_2 extends Asset {
269
+ /** The locale of the label and tags */
270
+ locale?: Locale;
271
+ /** The label of the result. Used for description and tooltips. */
272
+ label?: string;
273
+ /** The tags of this asset. Used for filtering and free-text searching. */
274
+ tags?: string[];
275
+
276
+ /** Credits for the artist of the asset */
277
+ credits?: {
278
+ name: string;
279
+ url?: string;
280
+ };
281
+ /** License for this asset. Overwrites the source license if present */
282
+ license?: {
283
+ name: string;
284
+ url?: string;
285
+ };
286
+ /** UTM parameters for the links inside the credits */
287
+ utm?: {
288
+ source?: string;
289
+ medium?: string;
290
+ };
291
+ }
292
+
71
293
  /** @public */
72
294
  declare interface AssetResultContext {
73
295
  sourceId: string;
74
296
  createdByRole: string;
75
297
  }
76
298
 
77
- declare interface AssetResultCredits {
78
- name: string;
79
- url: string;
80
- }
81
-
82
- declare interface AssetResultLicense {
83
- name: string;
84
- url: string;
85
- }
86
-
87
- declare interface AssetResultUtm {
88
- source: string;
89
- medium: string;
90
- }
91
-
92
299
  /**
93
300
  * API to query for assets
94
301
  * @public
95
302
  */
96
303
  declare interface AssetSource {
97
- /** The asset types returned by this source. Will default to ['ly.img.image']. */
98
- types?: string[];
99
304
  /** Find all asset for the given type and the provided query data. */
100
- findAssets(type: string, queryData?: QueryData): Promise<AssetsQueryResult | undefined>;
305
+ findAssets(queryData?: QueryData): Promise<AssetsQueryResult | undefined>;
306
+ /**
307
+ * Apply the given asset result to the active scene.
308
+ * You can override this with custom behavior.
309
+ */
310
+ applyAsset?: (asset: AssetResult) => Promise<void>;
101
311
  /**
102
312
  * Indicates if the asset shall be downloaded to handle the raw data instead
103
313
  * of an URL reference. Do this if you do not want to depend on
@@ -118,6 +328,72 @@ declare interface AssetSource {
118
328
  };
119
329
  }
120
330
 
331
+ /**
332
+ * A source of assets
333
+ * @public
334
+ */
335
+ declare interface AssetSource_2 {
336
+ /** The unique id of the API */
337
+ id: string;
338
+ /** Find all asset for the given type and the provided query data. */
339
+ findAssets(queryData: AssetQueryData): Promise<AssetsQueryResult_2>;
340
+ /** Return every available group */
341
+ getGroups: () => Promise<string[]>;
342
+ /** Credits for the source/api */
343
+ credits?: {
344
+ name: string;
345
+ url?: string;
346
+ };
347
+ /** General license for all asset from this source */
348
+ license?: {
349
+ name: string;
350
+ url?: string;
351
+ };
352
+ /**
353
+ * Indicates if the asset shall be downloaded to handle the raw data instead
354
+ * of an URL reference. Do this if you do not want to depend on
355
+ * a service after adding the asset to the scene. If this is your own API
356
+ * with your own service, you do not need to set this and avoid downloading /
357
+ * re-uploading the assets.
358
+ */
359
+ downloadAssets?: (asset: AssetResult_2) => Promise<Blob>;
360
+ /**
361
+ * @returns the asset or undefined if no asset with the given id could be found
362
+ */
363
+ getAsset(id: string): Promise<AssetResult_2 | undefined>;
364
+ /**
365
+ * Can the source add, update and remove assets dynamically? If `false`
366
+ * methods like `addAsset` `updateAsset` and `removeAsset` will throw an
367
+ * error.
368
+ */
369
+ canManageAssets?: boolean;
370
+ /**
371
+ * Apply the given asset result to the active scene.
372
+ * You can override this with custom behavior.
373
+ */
374
+ applyAsset?: (asset: AssetResult_2) => Promise<void>;
375
+ /**
376
+ * Adds the given asset to this source. Throws an error if `canManageAssets`
377
+ * is `false`.
378
+ *
379
+ * @returns the id of the added asset
380
+ */
381
+ addAsset(asset: AssetDefinition): Promise<string>;
382
+ /**
383
+ * Updates the asset of this source. Throws an error if `canManageAssets`
384
+ * is `false` or no asset with the given id could not be found.
385
+ *
386
+ * @returns the id of the added asset
387
+ */
388
+ updateAsset(assetId: string, asset: AssetDefinition): Promise<void>;
389
+ /**
390
+ * Removes the given asset from this source.
391
+ *
392
+ * @returns true if asset was found and removed, and false otherwise
393
+ */
394
+ removeAsset(assetId: string): Promise<boolean>;
395
+ }
396
+
121
397
  /** @public */
122
398
  declare type AssetSources = {
123
399
  [id: string]: AssetSource;
@@ -138,6 +414,21 @@ declare interface AssetsQueryResult {
138
414
  total: number;
139
415
  }
140
416
 
417
+ /**
418
+ * Return type of a `findAssets` query.
419
+ * @public
420
+ */
421
+ declare interface AssetsQueryResult_2 {
422
+ /** The assets in the requested page */
423
+ assets: AssetResult_2[];
424
+ /** The current, requested page */
425
+ currentPage: number;
426
+ /** The next page to query if it exists */
427
+ nextPage?: number;
428
+ /** How many assets are there in total for the current query regardless of the page */
429
+ total: number;
430
+ }
431
+
141
432
  /**
142
433
  * Bleed margin configuration options for a single design unit type.
143
434
  * @public
@@ -1344,7 +1635,7 @@ export { ConfigTypes }
1344
1635
  * optional and what mandatory. This is Configuration, but `ui` is recursively
1345
1636
  * optional, and all other props are non-recursively optional
1346
1637
  */
1347
- export declare type Configuration = Partial<_DeepOptional<_RequiredConfiguration, 'ui'>>;
1638
+ export declare type Configuration = Partial<_RequiredConfiguration>;
1348
1639
 
1349
1640
  /**
1350
1641
  * - Crop: Manual crop.
@@ -1450,6 +1741,7 @@ declare class CreativeEditorSDK {
1450
1741
  unstable_getPages(): Promise<number[]>;
1451
1742
  unstable_getActivePage(): Promise<number>;
1452
1743
  unstable_onActivePageChanged(callback: (id: number) => void): () => void;
1744
+ unstable_focusPage(pageId: number): Promise<void>;
1453
1745
  /**
1454
1746
  * Disposes the editor and engine if no longer needed.
1455
1747
  */
@@ -1507,6 +1799,12 @@ export declare enum DesignBlockType {
1507
1799
  /** @public */
1508
1800
  export declare type DesignUnit = 'mm' | 'px' | 'in';
1509
1801
 
1802
+ declare interface DockGroup {
1803
+ id: string;
1804
+ showOverview?: boolean;
1805
+ entryIds?: string[];
1806
+ }
1807
+
1510
1808
  /**
1511
1809
  * @public
1512
1810
  */
@@ -1576,6 +1874,12 @@ export declare class EditorAPI {
1576
1874
  * @returns True if a redo step is available.
1577
1875
  */
1578
1876
  canRedo(): boolean;
1877
+ /**
1878
+ * Subscribe to changes to the editor settings.
1879
+ * @param callback - This function is called at the end of the engine update, if the editor settings have changed.
1880
+ * @returns A method to unsubscribe.
1881
+ */
1882
+ onSettingsChanged(callback: () => void): () => void;
1579
1883
  /**
1580
1884
  * Set a boolean setting.
1581
1885
  * @param keypath - The settings keypath, e.g. `ubq://doubleClickToCropEnabled`
@@ -1819,23 +2123,7 @@ declare type Extensions = {
1819
2123
  */
1820
2124
  export declare type FillType = 'Solid' | 'Gradient';
1821
2125
 
1822
- declare interface FindAssetResult {
1823
- id: string;
1824
- type: string;
1825
- groups: Vector<string>;
1826
- thumbUri: string;
1827
- width: number;
1828
- height: number;
1829
- meta: UnorderedMap<string, string>;
1830
- locale: string;
1831
- label: string;
1832
- tags: Vector<string>;
1833
- context: AssetResultContext;
1834
- credits: AssetResultCredits;
1835
- license: AssetResultLicense;
1836
- utm: AssetResultUtm;
1837
- }
1838
-
2126
+ /** @public */
1839
2127
  declare interface FindAssetsQuery {
1840
2128
  perPage: number;
1841
2129
  page: number;
@@ -1846,23 +2134,6 @@ declare interface FindAssetsQuery {
1846
2134
  locale: string;
1847
2135
  }
1848
2136
 
1849
- declare interface FindAssetsQueryCpp {
1850
- perPage: number;
1851
- page: number;
1852
- query: string;
1853
- tags: Vector<string>;
1854
- groups: Vector<string>;
1855
- excludeGroups: Vector<string>;
1856
- locale: string;
1857
- }
1858
-
1859
- declare interface FindAssetsResult {
1860
- assets: Vector<FindAssetResult>;
1861
- currentPage: number;
1862
- nextPage: number;
1863
- total: number;
1864
- }
1865
-
1866
2137
  /** @public */
1867
2138
  declare interface Flip {
1868
2139
  horizontal: boolean;
@@ -1905,6 +2176,17 @@ a: number
1905
2176
  */
1906
2177
  export declare type GradientType = 'Linear' | 'Radial' | 'Conical';
1907
2178
 
2179
+ /**
2180
+ * An asset can be member of multiple groups. Groups have a semantic meaning
2181
+ * used to build and group UIs exploring the assets, e.g.sections in the
2182
+ * content library, or for things like topics in Unsplash for instance.
2183
+ *
2184
+ * Tags in comparison have are more loosely hold meaning used for extended
2185
+ * searching/filtering.
2186
+ * @public
2187
+ */
2188
+ declare type Groups = string[];
2189
+
1908
2190
  /**
1909
2191
  * A hexadecimal color value (RGB or RGBA) that starts with a '#'
1910
2192
  * @example #6686FF or #6686FFFF
@@ -1939,6 +2221,12 @@ export declare interface _ImageElement extends _AssetElement {
1939
2221
  };
1940
2222
  }
1941
2223
 
2224
+ /**
2225
+ * e.g. `en`, `de`, etc.
2226
+ * @public
2227
+ */
2228
+ declare type Locale = string;
2229
+
1942
2230
  /** @public */
1943
2231
  export declare type Logger = (message: string, level: LogLevel) => void;
1944
2232
 
@@ -2234,7 +2522,7 @@ export declare class SceneAPI {
2234
2522
  * Only has an effect if the zoom level is not handled by the UI.
2235
2523
  * Without padding, this results in a tight view on the block.
2236
2524
  *
2237
- * @param id - The block that should be focussed on.
2525
+ * @param id - The block that should be focused on.
2238
2526
  * @param paddingLeft - Optional padding in screen pixels to the left of the block.
2239
2527
  * @param paddingTop - Optional padding in screen pixels to the top of the block.
2240
2528
  * @param paddingRight - Optional padding in screen pixels to the right of the block.
@@ -2319,18 +2607,11 @@ declare interface UIOptionsPerDesignUnit {
2319
2607
  in: UIOptionsForSingleDesignUnit;
2320
2608
  }
2321
2609
 
2322
- declare interface UnorderedMap<K, V> {
2323
- size: () => number;
2324
- get: (key: K) => V;
2325
- set: (key: K, value: V) => void;
2326
- keys: () => Vector<K>;
2327
- }
2328
-
2329
2610
  /** @public */
2330
2611
  export declare interface UserInterface {
2331
- baseURL: string;
2612
+ baseURL?: string;
2332
2613
  scale?: Scale;
2333
- elements: UserInterfaceElements_2;
2614
+ elements?: UserInterfaceElements_2;
2334
2615
  stylesheets?: {
2335
2616
  disableShadowDOM?: boolean;
2336
2617
  disableTagInsertion?: boolean;
@@ -2375,6 +2656,11 @@ declare namespace UserInterfaceElements {
2375
2656
  UserInterfaceCustomActionIconName,
2376
2657
  UserInterfaceCustomAction,
2377
2658
  UserInterfaceNavigation,
2659
+ DockGroup,
2660
+ AssetLibraryEntryView,
2661
+ AssetLibraryEntryData,
2662
+ AssetLibraryEntry,
2663
+ AssetLibraryEntries,
2378
2664
  UserInterfaceElements_2 as UserInterfaceElements
2379
2665
  }
2380
2666
  }
@@ -2382,11 +2668,7 @@ export { UserInterfaceElements }
2382
2668
 
2383
2669
  /** @public */
2384
2670
  declare interface UserInterfaceElements_2 {
2385
- view?: {
2386
- adopter?: {
2387
- style?: 'default' | 'advanced';
2388
- };
2389
- };
2671
+ view?: 'default' | 'advanced';
2390
2672
  panels?: {
2391
2673
  inspector?: UserInterfaceInspector | boolean;
2392
2674
  settings?: UserInterfaceSettings | boolean;
@@ -2396,26 +2678,41 @@ declare interface UserInterfaceElements_2 {
2396
2678
  dock?: {
2397
2679
  iconSize?: Scale;
2398
2680
  hideLabels?: boolean;
2681
+ /**
2682
+ * If groups are used this group will contain all entries that are
2683
+ * not included in other groups.
2684
+ */
2685
+ defaultGroupId?: string;
2686
+ /**
2687
+ * If set the entries will be grouped by these dock groups
2688
+ */
2689
+ groups?: DockGroup[];
2399
2690
  };
2400
2691
  libraries?: {
2401
- upload?: UserInterfaceElement | boolean;
2402
- template?: UserInterfaceElement | boolean;
2403
- image?: UserInterfaceElement | boolean;
2404
- text?: UserInterfaceElement | boolean;
2405
- element?: UserInterfaceElement | boolean;
2406
- panel: {
2407
- insert: {
2692
+ insert?: {
2693
+ entries: AssetLibraryEntries;
2694
+ };
2695
+ replace?: {
2696
+ entries: AssetLibraryEntries;
2697
+ };
2698
+ /**
2699
+ * TODO Group this under `insert` and `replace`
2700
+ * We should probably group these together with the insert/replace key
2701
+ * together with the entries, e.g. `libraries.insert.panel.autoClose` etc
2702
+ */
2703
+ panel?: {
2704
+ insert?: {
2408
2705
  autoClose?: boolean | (() => boolean);
2409
2706
  floating?: boolean;
2410
2707
  };
2411
- replace: {
2708
+ replace?: {
2412
2709
  autoClose?: boolean | (() => boolean);
2413
2710
  floating?: boolean;
2414
2711
  };
2415
2712
  };
2416
2713
  };
2417
2714
  blocks?: UserInterfaceInspectorBlocks;
2418
- navigation: UserInterfaceNavigation;
2715
+ navigation?: UserInterfaceNavigation;
2419
2716
  }
2420
2717
 
2421
2718
  /** @public */
@@ -2445,8 +2742,8 @@ declare interface UserInterfaceInspectorBlockImage extends UserInterfaceInspecto
2445
2742
  declare interface UserInterfaceInspectorBlocks {
2446
2743
  opacity?: UserInterfaceElement | boolean;
2447
2744
  transform?: UserInterfaceElement | boolean;
2448
- '//ly.img.ubq/image': UserInterfaceInspectorBlockImage;
2449
- '//ly.img.ubq/text': UserInterfaceInspectorBlockText;
2745
+ '//ly.img.ubq/image'?: UserInterfaceInspectorBlockImage;
2746
+ '//ly.img.ubq/text'?: UserInterfaceInspectorBlockText;
2450
2747
  }
2451
2748
 
2452
2749
  /** @public */
@@ -2458,17 +2755,17 @@ declare interface UserInterfaceInspectorBlockText extends UserInterfaceInspector
2458
2755
 
2459
2756
  /** @public */
2460
2757
  declare interface UserInterfaceNavigation extends UserInterfaceElement {
2461
- position: NavigationPosition;
2758
+ position?: NavigationPosition;
2462
2759
  title?: string | null;
2463
2760
  action?: {
2464
- close: UserInterfaceElement | boolean;
2465
- back: UserInterfaceElement | boolean;
2466
- save: UserInterfaceElement | boolean;
2467
- export: UserInterfaceExportAction | boolean;
2468
- share: UserInterfaceElement | boolean;
2469
- load: UserInterfaceElement | boolean;
2470
- download: UserInterfaceElement | boolean;
2471
- custom: UserInterfaceCustomAction[];
2761
+ close?: UserInterfaceElement | boolean;
2762
+ back?: UserInterfaceElement | boolean;
2763
+ save?: UserInterfaceElement | boolean;
2764
+ export?: UserInterfaceExportAction | boolean;
2765
+ share?: UserInterfaceElement | boolean;
2766
+ load?: UserInterfaceElement | boolean;
2767
+ download?: UserInterfaceElement | boolean;
2768
+ custom?: UserInterfaceCustomAction[];
2472
2769
  };
2473
2770
  }
2474
2771
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cesdk/cesdk-js",
3
- "version": "1.7.0-alpha.3",
3
+ "version": "1.7.0-alpha.4",
4
4
  "main": "./cesdk.umd.js",
5
5
  "types": "./index.d.ts",
6
6
  "homepage": "https://www.img.ly",