@@ -155,6 +155,13 @@ export interface PickerFileMetadata {
155
155
url : string ;
156
156
}
157
157
158
+ export interface CustomAuthTextOptions {
159
+ [ key : string ] : {
160
+ top ?: string [ ] ,
161
+ bottom ?: string [ ]
162
+ } ;
163
+ }
164
+
158
165
export interface PickerResponse {
159
166
filesUploaded : PickerFileMetadata [ ] ;
160
167
filesFailed : PickerFileMetadata [ ] ;
@@ -387,6 +394,36 @@ export interface PickerOptions {
387
394
cleanupImageExif ?: boolean | {
388
395
keepOrientation : boolean
389
396
} ;
397
+ /**
398
+ * Customize the text on the cloud authentication screen in Picker.
399
+ * Use a cloud source name (see [[PickerOptions.fromSources]])
400
+ * or a 'default' as a key, then put your custom notice or consent
401
+ * to the 'top' or the 'bottom' key to show it respectivly above or under 'Connect button'.
402
+ *
403
+ * ```javascript
404
+ * customAuthText: {
405
+ * // use it for every cloud authentication screen
406
+ * default: {
407
+ * top: [
408
+ * 'default top first line',
409
+ * 'default top second line'
410
+ * ],
411
+ * bottom: [
412
+ * 'default bottom first line',
413
+ * 'default bottom second line'
414
+ * ]
415
+ * },
416
+ * // override a default bottom text for only gmail
417
+ * gmail: {
418
+ * bottom: [
419
+ * 'We need your permission to access your data and',
420
+ * 'process it with our machine learning system.'
421
+ * ]
422
+ * }
423
+ * }
424
+ * ```
425
+ */
426
+ customAuthText ?: CustomAuthTextOptions ;
390
427
/**
391
428
* Picker display mode, one of `'inline'`, `'overlay'`, `'dropPane'` - default is `'overlay'`.
392
429
*/
0 commit comments