11/*!
2- * clipboard.js v2.0.8
2+ * clipboard.js v2.0.9
33 * https://clipboardjs.com/
44 *
55 * Licensed MIT © Zeno Rocha
1717return /******/ ( function ( ) { // webpackBootstrap
1818/******/ var __webpack_modules__ = ( {
1919
20- /***/ 747 :
20+ /***/ 686 :
2121/***/ ( function ( __unused_webpack_module , __webpack_exports__ , __webpack_require__ ) {
2222
2323"use strict" ;
@@ -49,12 +49,12 @@ function command(type) {
4949 return false ;
5050 }
5151}
52- ; // CONCATENATED MODULE: ./src/clipboard-action- cut.js
52+ ; // CONCATENATED MODULE: ./src/actions/ cut.js
5353
5454
5555/**
5656 * Cut action wrapper.
57- * @param {HTMLElement } target
57+ * @param {String| HTMLElement } target
5858 * @return {String }
5959 */
6060
@@ -64,7 +64,7 @@ var ClipboardActionCut = function ClipboardActionCut(target) {
6464 return selectedText ;
6565} ;
6666
67- /* harmony default export */ var clipboard_action_cut = ( ClipboardActionCut ) ;
67+ /* harmony default export */ var actions_cut = ( ClipboardActionCut ) ;
6868; // CONCATENATED MODULE: ./src/common/create-fake-element.js
6969/**
7070 * Creates a fake textarea element with a value.
@@ -90,7 +90,7 @@ function createFakeElement(value) {
9090 fakeElement . value = value ;
9191 return fakeElement ;
9292}
93- ; // CONCATENATED MODULE: ./src/clipboard-action- copy.js
93+ ; // CONCATENATED MODULE: ./src/actions/ copy.js
9494
9595
9696
@@ -121,8 +121,8 @@ var ClipboardActionCopy = function ClipboardActionCopy(target) {
121121 return selectedText ;
122122} ;
123123
124- /* harmony default export */ var clipboard_action_copy = ( ClipboardActionCopy ) ;
125- ; // CONCATENATED MODULE: ./src/clipboard-action- default.js
124+ /* harmony default export */ var actions_copy = ( ClipboardActionCopy ) ;
125+ ; // CONCATENATED MODULE: ./src/actions/ default.js
126126function _typeof ( obj ) { "@babel/helpers - typeof" ; if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { _typeof = function _typeof ( obj ) { return typeof obj ; } ; } else { _typeof = function _typeof ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return _typeof ( obj ) ; }
127127
128128
@@ -163,20 +163,20 @@ var ClipboardActionDefault = function ClipboardActionDefault() {
163163
164164
165165 if ( text ) {
166- return clipboard_action_copy ( text , {
166+ return actions_copy ( text , {
167167 container : container
168168 } ) ;
169169 } // Defines which selection strategy based on `target` property.
170170
171171
172172 if ( target ) {
173- return action === 'cut' ? clipboard_action_cut ( target ) : clipboard_action_copy ( target , {
173+ return action === 'cut' ? actions_cut ( target ) : actions_copy ( target , {
174174 container : container
175175 } ) ;
176176 }
177177} ;
178178
179- /* harmony default export */ var clipboard_action_default = ( ClipboardActionDefault ) ;
179+ /* harmony default export */ var actions_default = ( ClipboardActionDefault ) ;
180180; // CONCATENATED MODULE: ./src/clipboard.js
181181function clipboard_typeof ( obj ) { "@babel/helpers - typeof" ; if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { clipboard_typeof = function _typeof ( obj ) { return typeof obj ; } ; } else { clipboard_typeof = function _typeof ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return clipboard_typeof ( obj ) ; }
182182
@@ -241,8 +241,6 @@ var Clipboard = /*#__PURE__*/function (_Emitter) {
241241 _classCallCheck ( this , Clipboard ) ;
242242
243243 _this = _super . call ( this ) ;
244- _this . ClipboardActionCut = clipboard_action_cut . bind ( _assertThisInitialized ( _this ) ) ;
245- _this . ClipboardActionCopy = clipboard_action_copy . bind ( _assertThisInitialized ( _this ) ) ;
246244
247245 _this . resolveOptions ( options ) ;
248246
@@ -289,7 +287,7 @@ var Clipboard = /*#__PURE__*/function (_Emitter) {
289287 key : "onClick" ,
290288 value : function onClick ( e ) {
291289 var trigger = e . delegateTarget || e . currentTarget ;
292- var selectedText = clipboard_action_default ( {
290+ var selectedText = actions_default ( {
293291 action : this . action ( trigger ) ,
294292 container : this . container ,
295293 target : this . target ( trigger ) ,
@@ -334,6 +332,13 @@ var Clipboard = /*#__PURE__*/function (_Emitter) {
334332 return document . querySelector ( selector ) ;
335333 }
336334 }
335+ /**
336+ * Allow fire programmatically a copy action
337+ * @param {String|HTMLElement } target
338+ * @param {Object } options
339+ * @returns Text copied.
340+ */
341+
337342 } , {
338343 key : "defaultText" ,
339344
@@ -359,12 +364,18 @@ var Clipboard = /*#__PURE__*/function (_Emitter) {
359364 var options = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : {
360365 container : document . body
361366 } ;
362- return clipboard_action_copy ( target , options ) ;
367+ return actions_copy ( target , options ) ;
363368 }
369+ /**
370+ * Allow fire programmatically a cut action
371+ * @param {String|HTMLElement } target
372+ * @returns Text cutted.
373+ */
374+
364375 } , {
365376 key : "cut" ,
366377 value : function cut ( target ) {
367- return clipboard_action_cut ( target ) ;
378+ return actions_cut ( target ) ;
368379 }
369380 /**
370381 * Returns the support of the given action, or all actions if no action is
@@ -858,7 +869,7 @@ module.exports.TinyEmitter = E;
858869/******/ // module exports must be returned from runtime so entry inlining is disabled
859870/******/ // startup
860871/******/ // Load entry module and return exports
861- /******/ return __webpack_require__ ( 747 ) ;
872+ /******/ return __webpack_require__ ( 686 ) ;
862873/******/ } ) ( )
863874. default ;
864875} ) ;
0 commit comments