@capacitor/clipboard
Advanced tools
Comparing version 0.4.6 to 0.4.7
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.4.7](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/clipboard@0.4.6...@capacitor/clipboard@0.4.7) (2021-04-29) | ||
### Bug Fixes | ||
* **clipboard:** prevent NotAllowedError on first method invocation ([#342](https://github.com/ionic-team/capacitor-plugins/issues/342)) ([ab8eecb](https://github.com/ionic-team/capacitor-plugins/commit/ab8eecb873999d6f4321218c60b45335998189eb)) | ||
## [0.4.6](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/clipboard@0.4.5...@capacitor/clipboard@0.4.6) (2021-03-10) | ||
@@ -8,0 +19,0 @@ |
import { registerPlugin } from '@capacitor/core'; | ||
import { ClipboardWeb } from './web'; | ||
const Clipboard = registerPlugin('Clipboard', { | ||
web: () => import('./web').then(m => new m.ClipboardWeb()), | ||
web: () => new ClipboardWeb(), | ||
}); | ||
@@ -5,0 +6,0 @@ export * from './definitions'; |
@@ -16,3 +16,1 @@ import { WebPlugin } from '@capacitor/core'; | ||
} | ||
declare const Clipboard: ClipboardWeb; | ||
export { Clipboard }; |
@@ -88,4 +88,2 @@ import { WebPlugin } from '@capacitor/core'; | ||
} | ||
const Clipboard = new ClipboardWeb(); | ||
export { Clipboard }; | ||
//# sourceMappingURL=web.js.map |
@@ -7,6 +7,2 @@ 'use strict'; | ||
const Clipboard$1 = core.registerPlugin('Clipboard', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.ClipboardWeb()), | ||
}); | ||
class ClipboardWeb extends core.WebPlugin { | ||
@@ -98,11 +94,8 @@ async write(options) { | ||
} | ||
const Clipboard = new ClipboardWeb(); | ||
var web = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
ClipboardWeb: ClipboardWeb, | ||
Clipboard: Clipboard | ||
const Clipboard = core.registerPlugin('Clipboard', { | ||
web: () => new ClipboardWeb(), | ||
}); | ||
exports.Clipboard = Clipboard$1; | ||
exports.Clipboard = Clipboard; | ||
//# sourceMappingURL=plugin.cjs.js.map |
var capacitorClipboard = (function (exports, core) { | ||
'use strict'; | ||
const Clipboard$1 = core.registerPlugin('Clipboard', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.ClipboardWeb()), | ||
}); | ||
class ClipboardWeb extends core.WebPlugin { | ||
@@ -94,11 +90,8 @@ async write(options) { | ||
} | ||
const Clipboard = new ClipboardWeb(); | ||
var web = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
ClipboardWeb: ClipboardWeb, | ||
Clipboard: Clipboard | ||
const Clipboard = core.registerPlugin('Clipboard', { | ||
web: () => new ClipboardWeb(), | ||
}); | ||
exports.Clipboard = Clipboard$1; | ||
exports.Clipboard = Clipboard; | ||
@@ -105,0 +98,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
{ | ||
"name": "@capacitor/clipboard", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"description": "The Clipboard API enables copy and pasting to/from the system clipboard.", | ||
@@ -47,6 +47,6 @@ "main": "dist/plugin.cjs.js", | ||
"devDependencies": { | ||
"@capacitor/android": "3.0.0-rc.0", | ||
"@capacitor/core": "3.0.0-rc.0", | ||
"@capacitor/android": "3.0.0-rc.1", | ||
"@capacitor/core": "3.0.0-rc.1", | ||
"@capacitor/docgen": "0.0.16", | ||
"@capacitor/ios": "3.0.0-rc.0", | ||
"@capacitor/ios": "3.0.0-rc.1", | ||
"@ionic/eslint-config": "^0.3.0", | ||
@@ -57,3 +57,3 @@ "@ionic/prettier-config": "~1.0.1", | ||
"prettier": "~2.2.0", | ||
"prettier-plugin-java": "~1.0.0", | ||
"prettier-plugin-java": "~1.0.2", | ||
"rimraf": "^3.0.0", | ||
@@ -65,3 +65,3 @@ "rollup": "^2.29.0", | ||
"peerDependencies": { | ||
"@capacitor/core": "3.0.0-rc.0" | ||
"@capacitor/core": "3.0.0-rc.1" | ||
}, | ||
@@ -84,3 +84,3 @@ "prettier": "@ionic/prettier-config", | ||
}, | ||
"gitHead": "94a39a9300beb941a43ba30d6505d9fefaff0b98" | ||
"gitHead": "1434d3339dfd3324dd2f76037b4de7fdae08ca2e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57468
533