File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -692,6 +692,17 @@ export interface PickerOptions {
692
692
* It can override global objects like console, error etc. Defaults to `true`.
693
693
*/
694
694
useSentryBreadcrumbs ?: boolean ;
695
+ /**
696
+ * Specify which Picker instance should respond to paste event.
697
+ * By default only hovered instance responds to event.
698
+ * @param {boolean = false } pasteToFirstInViewPort If none instance is hovered take first picker instance fully visible in viewport
699
+ * @param {boolean = false } pasteToFirstInstance If none instance is hovered take first picker instance that is initialized
700
+ * @pasteToFirstInViewPort is checked first
701
+ */
702
+ pasteMode ?: {
703
+ pasteToFirstInViewPort ?: boolean ,
704
+ pasteToFirstInstance ?: boolean
705
+ } ;
695
706
}
696
707
697
708
export interface PickerCropOptions {
Original file line number Diff line number Diff line change @@ -431,5 +431,17 @@ export const PickerParamsSchema = {
431
431
useSentryBreadcrumbs : {
432
432
type : 'boolean' ,
433
433
} ,
434
+ pasteMode : {
435
+ type : 'object' ,
436
+ additionalProperties : false ,
437
+ properties : {
438
+ pasteToFirstInViewPort : {
439
+ type : 'boolean' ,
440
+ } ,
441
+ pasteToFirstInstance : {
442
+ type : 'boolean' ,
443
+ } ,
444
+ } ,
445
+ } ,
434
446
} ,
435
447
} ;
You can’t perform that action at this time.
0 commit comments