@tauri-apps/plugin-clipboard-manager 2.2.0 → 2.2.1
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 +0 -1
- package/dist-js/index.cjs +4 -2
- package/dist-js/index.d.ts +4 -2
- package/dist-js/index.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist-js/index.cjs
CHANGED
|
@@ -100,9 +100,11 @@ async function readImage() {
|
|
|
100
100
|
*
|
|
101
101
|
* @example
|
|
102
102
|
* ```typescript
|
|
103
|
-
* import { writeHtml
|
|
103
|
+
* import { writeHtml } from '@tauri-apps/plugin-clipboard-manager';
|
|
104
104
|
* await writeHtml('<h1>Tauri is awesome!</h1>', 'plaintext');
|
|
105
|
-
*
|
|
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
|
*
|
package/dist-js/index.d.ts
CHANGED
|
@@ -77,9 +77,11 @@ declare function readImage(): Promise<Image>;
|
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* ```typescript
|
|
80
|
-
* import { writeHtml
|
|
80
|
+
* import { writeHtml } from '@tauri-apps/plugin-clipboard-manager';
|
|
81
81
|
* await writeHtml('<h1>Tauri is awesome!</h1>', 'plaintext');
|
|
82
|
-
*
|
|
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
|
@@ -98,9 +98,11 @@ async function readImage() {
|
|
|
98
98
|
*
|
|
99
99
|
* @example
|
|
100
100
|
* ```typescript
|
|
101
|
-
* import { writeHtml
|
|
101
|
+
* import { writeHtml } from '@tauri-apps/plugin-clipboard-manager';
|
|
102
102
|
* await writeHtml('<h1>Tauri is awesome!</h1>', 'plaintext');
|
|
103
|
-
*
|
|
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
|
*
|