File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -692,6 +692,17 @@ export interface PickerOptions {
692692 * It can override global objects like console, error etc. Defaults to `true`.
693693 */
694694 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+ } ;
695706}
696707
697708export interface PickerCropOptions {
Original file line number Diff line number Diff line change @@ -431,5 +431,17 @@ export const PickerParamsSchema = {
431431 useSentryBreadcrumbs : {
432432 type : 'boolean' ,
433433 } ,
434+ pasteMode : {
435+ type : 'object' ,
436+ additionalProperties : false ,
437+ properties : {
438+ pasteToFirstInViewPort : {
439+ type : 'boolean' ,
440+ } ,
441+ pasteToFirstInstance : {
442+ type : 'boolean' ,
443+ } ,
444+ } ,
445+ } ,
434446 } ,
435447} ;
You can’t perform that action at this time.
0 commit comments