@tauri-apps/plugin-dialog 2.0.0-alpha.0 → 2.0.0-alpha.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 +1 -1
- package/dist-js/index.d.ts +4 -4
- package/dist-js/index.min.js +6 -6
- package/dist-js/index.mjs +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
package/dist-js/index.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ declare function open(options?: OpenDialogOptions & {
|
|
|
118
118
|
* You can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope).
|
|
119
119
|
* @example
|
|
120
120
|
* ```typescript
|
|
121
|
-
* import { save } from '@tauri-apps/
|
|
121
|
+
* import { save } from '@tauri-apps/plugin-dialog';
|
|
122
122
|
* const filePath = await save({
|
|
123
123
|
* filters: [{
|
|
124
124
|
* name: 'Image',
|
|
@@ -136,7 +136,7 @@ declare function save(options?: SaveDialogOptions): Promise<string | null>;
|
|
|
136
136
|
* Shows a message dialog with an `Ok` button.
|
|
137
137
|
* @example
|
|
138
138
|
* ```typescript
|
|
139
|
-
* import { message } from '@tauri-apps/
|
|
139
|
+
* import { message } from '@tauri-apps/plugin-dialog';
|
|
140
140
|
* await message('Tauri is awesome', 'Tauri');
|
|
141
141
|
* await message('File not found', { title: 'Tauri', type: 'error' });
|
|
142
142
|
* ```
|
|
@@ -154,7 +154,7 @@ declare function message(message: string, options?: string | MessageDialogOption
|
|
|
154
154
|
* Shows a question dialog with `Yes` and `No` buttons.
|
|
155
155
|
* @example
|
|
156
156
|
* ```typescript
|
|
157
|
-
* import { ask } from '@tauri-apps/
|
|
157
|
+
* import { ask } from '@tauri-apps/plugin-dialog';
|
|
158
158
|
* const yes = await ask('Are you sure?', 'Tauri');
|
|
159
159
|
* const yes2 = await ask('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });
|
|
160
160
|
* ```
|
|
@@ -171,7 +171,7 @@ declare function ask(message: string, options?: string | ConfirmDialogOptions):
|
|
|
171
171
|
* Shows a question dialog with `Ok` and `Cancel` buttons.
|
|
172
172
|
* @example
|
|
173
173
|
* ```typescript
|
|
174
|
-
* import { confirm } from '@tauri-apps/
|
|
174
|
+
* import { confirm } from '@tauri-apps/plugin-dialog';
|
|
175
175
|
* const confirmed = await confirm('Are you sure?', 'Tauri');
|
|
176
176
|
* const confirmed2 = await confirm('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });
|
|
177
177
|
* ```
|
package/dist-js/index.min.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* You can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope).
|
|
13
13
|
* @example
|
|
14
14
|
* ```typescript
|
|
15
|
-
* import { open } from '@tauri-apps/
|
|
15
|
+
* import { open } from '@tauri-apps/plugin-dialog';
|
|
16
16
|
* // Open a selection dialog for image files
|
|
17
17
|
* const selected = await open({
|
|
18
18
|
* multiple: true,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```typescript
|
|
35
|
-
* import { open } from '@tauri-apps/
|
|
35
|
+
* import { open } from '@tauri-apps/plugin-dialog';
|
|
36
36
|
* import { appDir } from '@tauri-apps/api/path';
|
|
37
37
|
* // Open a selection dialog for directories
|
|
38
38
|
* const selected = await open({
|
|
@@ -70,7 +70,7 @@ async function open(options = {}) {
|
|
|
70
70
|
* You can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope).
|
|
71
71
|
* @example
|
|
72
72
|
* ```typescript
|
|
73
|
-
* import { save } from '@tauri-apps/
|
|
73
|
+
* import { save } from '@tauri-apps/plugin-dialog';
|
|
74
74
|
* const filePath = await save({
|
|
75
75
|
* filters: [{
|
|
76
76
|
* name: 'Image',
|
|
@@ -93,7 +93,7 @@ async function save(options = {}) {
|
|
|
93
93
|
* Shows a message dialog with an `Ok` button.
|
|
94
94
|
* @example
|
|
95
95
|
* ```typescript
|
|
96
|
-
* import { message } from '@tauri-apps/
|
|
96
|
+
* import { message } from '@tauri-apps/plugin-dialog';
|
|
97
97
|
* await message('Tauri is awesome', 'Tauri');
|
|
98
98
|
* await message('File not found', { title: 'Tauri', type: 'error' });
|
|
99
99
|
* ```
|
|
@@ -120,7 +120,7 @@ async function message(message, options) {
|
|
|
120
120
|
* Shows a question dialog with `Yes` and `No` buttons.
|
|
121
121
|
* @example
|
|
122
122
|
* ```typescript
|
|
123
|
-
* import { ask } from '@tauri-apps/
|
|
123
|
+
* import { ask } from '@tauri-apps/plugin-dialog';
|
|
124
124
|
* const yes = await ask('Are you sure?', 'Tauri');
|
|
125
125
|
* const yes2 = await ask('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });
|
|
126
126
|
* ```
|
|
@@ -147,7 +147,7 @@ async function ask(message, options) {
|
|
|
147
147
|
* Shows a question dialog with `Ok` and `Cancel` buttons.
|
|
148
148
|
* @example
|
|
149
149
|
* ```typescript
|
|
150
|
-
* import { confirm } from '@tauri-apps/
|
|
150
|
+
* import { confirm } from '@tauri-apps/plugin-dialog';
|
|
151
151
|
* const confirmed = await confirm('Are you sure?', 'Tauri');
|
|
152
152
|
* const confirmed2 = await confirm('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });
|
|
153
153
|
* ```
|
package/dist-js/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* You can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope).
|
|
13
13
|
* @example
|
|
14
14
|
* ```typescript
|
|
15
|
-
* import { open } from '@tauri-apps/
|
|
15
|
+
* import { open } from '@tauri-apps/plugin-dialog';
|
|
16
16
|
* // Open a selection dialog for image files
|
|
17
17
|
* const selected = await open({
|
|
18
18
|
* multiple: true,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```typescript
|
|
35
|
-
* import { open } from '@tauri-apps/
|
|
35
|
+
* import { open } from '@tauri-apps/plugin-dialog';
|
|
36
36
|
* import { appDir } from '@tauri-apps/api/path';
|
|
37
37
|
* // Open a selection dialog for directories
|
|
38
38
|
* const selected = await open({
|
|
@@ -70,7 +70,7 @@ async function open(options = {}) {
|
|
|
70
70
|
* You can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope).
|
|
71
71
|
* @example
|
|
72
72
|
* ```typescript
|
|
73
|
-
* import { save } from '@tauri-apps/
|
|
73
|
+
* import { save } from '@tauri-apps/plugin-dialog';
|
|
74
74
|
* const filePath = await save({
|
|
75
75
|
* filters: [{
|
|
76
76
|
* name: 'Image',
|
|
@@ -93,7 +93,7 @@ async function save(options = {}) {
|
|
|
93
93
|
* Shows a message dialog with an `Ok` button.
|
|
94
94
|
* @example
|
|
95
95
|
* ```typescript
|
|
96
|
-
* import { message } from '@tauri-apps/
|
|
96
|
+
* import { message } from '@tauri-apps/plugin-dialog';
|
|
97
97
|
* await message('Tauri is awesome', 'Tauri');
|
|
98
98
|
* await message('File not found', { title: 'Tauri', type: 'error' });
|
|
99
99
|
* ```
|
|
@@ -120,7 +120,7 @@ async function message(message, options) {
|
|
|
120
120
|
* Shows a question dialog with `Yes` and `No` buttons.
|
|
121
121
|
* @example
|
|
122
122
|
* ```typescript
|
|
123
|
-
* import { ask } from '@tauri-apps/
|
|
123
|
+
* import { ask } from '@tauri-apps/plugin-dialog';
|
|
124
124
|
* const yes = await ask('Are you sure?', 'Tauri');
|
|
125
125
|
* const yes2 = await ask('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });
|
|
126
126
|
* ```
|
|
@@ -147,7 +147,7 @@ async function ask(message, options) {
|
|
|
147
147
|
* Shows a question dialog with `Ok` and `Cancel` buttons.
|
|
148
148
|
* @example
|
|
149
149
|
* ```typescript
|
|
150
|
-
* import { confirm } from '@tauri-apps/
|
|
150
|
+
* import { confirm } from '@tauri-apps/plugin-dialog';
|
|
151
151
|
* const confirmed = await confirm('Are you sure?', 'Tauri');
|
|
152
152
|
* const confirmed2 = await confirm('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });
|
|
153
153
|
* ```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/plugin-dialog",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.1",
|
|
4
4
|
"license": "MIT or APACHE-2.0",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Tauri Programme within The Commons Conservancy"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"tslib": "^2.4.1"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tauri-apps/api": "2.0.0-alpha.
|
|
27
|
+
"@tauri-apps/api": "2.0.0-alpha.6"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "rollup -c"
|