pigallery2-extension-kit 2.5.0-edge2 → 2.5.0-edge3

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.
@@ -219,34 +219,27 @@ export interface IClientSVGIconConfig {
219
219
  items: string;
220
220
  }
221
221
 
222
- export enum IClientMediaFields {
223
- title,
224
- caption,
225
- cameraData,
226
- positionData,
227
- faces,
228
- size,
229
- creationDate,
230
- creationDateOffset,
231
- bitRate,
232
- duration,
233
- fileSize,
234
- fps
235
- }
222
+ export type IClientMediaFields = 'title' | 'caption' | 'cameraData' | 'positionData' |
223
+ 'faces' | 'size' | 'creationDate' | 'creationDateOffset' | 'bitRate' |
224
+ 'duration' | 'fileSize' | 'fps';
236
225
 
237
226
  export interface IClientMediaButtonPopupConfig {
238
227
  /**
239
228
  * Header of the popup.
240
229
  */
241
- header: string;
230
+ header?: string;
242
231
  /**
243
232
  * Body of the popup.
244
233
  */
245
- body: string;
234
+ body?: string;
235
+ /**
236
+ * Button text on the action button.
237
+ */
238
+ buttonString?: string;
246
239
  /**
247
240
  * Fields to show in the popup as editable text fields.
248
241
  */
249
- fields: IClientMediaFields[];
242
+ fields?: IClientMediaFields[];
250
243
  }
251
244
 
252
245
  export interface IClientMediaButtonConfig {
@@ -285,7 +278,7 @@ export interface IClientMediaButtonConfig {
285
278
  }
286
279
 
287
280
  export interface IClientUIConfig {
288
- mediaButtons: IClientMediaButtonConfig[];
281
+ mediaButtons?: IClientMediaButtonConfig[];
289
282
  }
290
283
 
291
284
  export interface IExtensionConfigInit<C> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pigallery2-extension-kit",
3
- "version": "2.5.0-edge2",
3
+ "version": "2.5.0-edge3",
4
4
  "description": "Interfaces for developing extensions for pigallery2",
5
5
  "author": "Patrik J. Braun",
6
6
  "homepage": "https://github.com/bpatrik/pigallery2",