@tauri-apps/plugin-dialog 2.0.0 → 2.0.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 CHANGED
@@ -12,7 +12,7 @@ Native system dialogs for opening and saving files along with message dialogs.
12
12
 
13
13
  ## Install
14
14
 
15
- _This plugin requires a Rust version of at least **1.78**_
15
+ _This plugin requires a Rust version of at least **1.77.2**_
16
16
 
17
17
  There are three general methods of installation that we can recommend.
18
18
 
package/dist-js/index.cjs CHANGED
@@ -141,8 +141,8 @@ async function ask(message, options) {
141
141
  message: message.toString(),
142
142
  title: opts?.title?.toString(),
143
143
  kind: opts?.kind,
144
- okButtonLabel: opts?.okLabel?.toString() ?? 'Yes',
145
- cancelButtonLabel: opts?.cancelLabel?.toString() ?? 'No'
144
+ yesButtonLabel: opts?.okLabel?.toString(),
145
+ noButtonLabel: opts?.cancelLabel?.toString()
146
146
  });
147
147
  }
148
148
  /**
@@ -167,8 +167,8 @@ async function confirm(message, options) {
167
167
  message: message.toString(),
168
168
  title: opts?.title?.toString(),
169
169
  kind: opts?.kind,
170
- okButtonLabel: opts?.okLabel?.toString() ?? 'Ok',
171
- cancelButtonLabel: opts?.cancelLabel?.toString() ?? 'Cancel'
170
+ okButtonLabel: opts?.okLabel?.toString(),
171
+ cancelButtonLabel: opts?.cancelLabel?.toString()
172
172
  });
173
173
  }
174
174
 
package/dist-js/index.js CHANGED
@@ -139,8 +139,8 @@ async function ask(message, options) {
139
139
  message: message.toString(),
140
140
  title: opts?.title?.toString(),
141
141
  kind: opts?.kind,
142
- okButtonLabel: opts?.okLabel?.toString() ?? 'Yes',
143
- cancelButtonLabel: opts?.cancelLabel?.toString() ?? 'No'
142
+ yesButtonLabel: opts?.okLabel?.toString(),
143
+ noButtonLabel: opts?.cancelLabel?.toString()
144
144
  });
145
145
  }
146
146
  /**
@@ -165,8 +165,8 @@ async function confirm(message, options) {
165
165
  message: message.toString(),
166
166
  title: opts?.title?.toString(),
167
167
  kind: opts?.kind,
168
- okButtonLabel: opts?.okLabel?.toString() ?? 'Ok',
169
- cancelButtonLabel: opts?.cancelLabel?.toString() ?? 'Cancel'
168
+ okButtonLabel: opts?.okLabel?.toString(),
169
+ cancelButtonLabel: opts?.cancelLabel?.toString()
170
170
  });
171
171
  }
172
172
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/plugin-dialog",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "license": "MIT OR Apache-2.0",
5
5
  "authors": [
6
6
  "Tauri Programme within The Commons Conservancy"