@tauri-apps/plugin-clipboard-manager 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -72,7 +72,6 @@ import {
72
72
  writeText,
73
73
  readText,
74
74
  writeHtml,
75
- readHtml,
76
75
  clear
77
76
  } from '@tauri-apps/plugin-clipboard-manager'
78
77
  await writeText('Tauri is awesome!')
package/dist-js/index.cjs CHANGED
@@ -83,7 +83,7 @@ async function writeImage(image$1) {
83
83
  * import { readImage } from '@tauri-apps/plugin-clipboard-manager';
84
84
  *
85
85
  * const clipboardImage = await readImage();
86
- * const blob = new Blob([await clipboardImage.rbga()], { type: 'image' })
86
+ * const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
87
87
  * const url = URL.createObjectURL(blob)
88
88
  * ```
89
89
  * @since 2.0.0
@@ -100,9 +100,11 @@ async function readImage() {
100
100
  *
101
101
  * @example
102
102
  * ```typescript
103
- * import { writeHtml, readHtml } from '@tauri-apps/plugin-clipboard-manager';
103
+ * import { writeHtml } from '@tauri-apps/plugin-clipboard-manager';
104
104
  * await writeHtml('<h1>Tauri is awesome!</h1>', 'plaintext');
105
- * await writeHtml('<h1>Tauri is awesome!</h1>', '<h1>Tauri is awesome</h1>'); // Will write "<h1>Tauri is awesome</h1>" as plain text
105
+ * // The following will write "<h1>Tauri is awesome</h1>" as plain text
106
+ * await writeHtml('<h1>Tauri is awesome!</h1>', '<h1>Tauri is awesome</h1>');
107
+ * // we can read html data only as a string so there's just readText(), no readHtml()
106
108
  * assert(await readText(), '<h1>Tauri is awesome!</h1>');
107
109
  * ```
108
110
  *
@@ -62,7 +62,7 @@ declare function writeImage(image: string | Image | Uint8Array | ArrayBuffer | n
62
62
  * import { readImage } from '@tauri-apps/plugin-clipboard-manager';
63
63
  *
64
64
  * const clipboardImage = await readImage();
65
- * const blob = new Blob([await clipboardImage.rbga()], { type: 'image' })
65
+ * const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
66
66
  * const url = URL.createObjectURL(blob)
67
67
  * ```
68
68
  * @since 2.0.0
@@ -77,9 +77,11 @@ declare function readImage(): Promise<Image>;
77
77
  *
78
78
  * @example
79
79
  * ```typescript
80
- * import { writeHtml, readHtml } from '@tauri-apps/plugin-clipboard-manager';
80
+ * import { writeHtml } from '@tauri-apps/plugin-clipboard-manager';
81
81
  * await writeHtml('<h1>Tauri is awesome!</h1>', 'plaintext');
82
- * await writeHtml('<h1>Tauri is awesome!</h1>', '<h1>Tauri is awesome</h1>'); // Will write "<h1>Tauri is awesome</h1>" as plain text
82
+ * // The following will write "<h1>Tauri is awesome</h1>" as plain text
83
+ * await writeHtml('<h1>Tauri is awesome!</h1>', '<h1>Tauri is awesome</h1>');
84
+ * // we can read html data only as a string so there's just readText(), no readHtml()
83
85
  * assert(await readText(), '<h1>Tauri is awesome!</h1>');
84
86
  * ```
85
87
  *
package/dist-js/index.js CHANGED
@@ -81,7 +81,7 @@ async function writeImage(image) {
81
81
  * import { readImage } from '@tauri-apps/plugin-clipboard-manager';
82
82
  *
83
83
  * const clipboardImage = await readImage();
84
- * const blob = new Blob([await clipboardImage.rbga()], { type: 'image' })
84
+ * const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
85
85
  * const url = URL.createObjectURL(blob)
86
86
  * ```
87
87
  * @since 2.0.0
@@ -98,9 +98,11 @@ async function readImage() {
98
98
  *
99
99
  * @example
100
100
  * ```typescript
101
- * import { writeHtml, readHtml } from '@tauri-apps/plugin-clipboard-manager';
101
+ * import { writeHtml } from '@tauri-apps/plugin-clipboard-manager';
102
102
  * await writeHtml('<h1>Tauri is awesome!</h1>', 'plaintext');
103
- * await writeHtml('<h1>Tauri is awesome!</h1>', '<h1>Tauri is awesome</h1>'); // Will write "<h1>Tauri is awesome</h1>" as plain text
103
+ * // The following will write "<h1>Tauri is awesome</h1>" as plain text
104
+ * await writeHtml('<h1>Tauri is awesome!</h1>', '<h1>Tauri is awesome</h1>');
105
+ * // we can read html data only as a string so there's just readText(), no readHtml()
104
106
  * assert(await readText(), '<h1>Tauri is awesome!</h1>');
105
107
  * ```
106
108
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/plugin-clipboard-manager",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "license": "MIT OR Apache-2.0",
5
5
  "authors": [
6
6
  "Tauri Programme within The Commons Conservancy"