@crossbind/extension-dialog 2.0.0-beta.76 → 2.0.0-beta.79
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 +6 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Open and message dialogs everywhere, save dialogs on the desktop.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
It comes with `@crossbind/core-app-host`: there is nothing to install or list.
|
|
6
6
|
|
|
7
7
|
## Use
|
|
8
8
|
|
|
@@ -20,14 +20,13 @@ index of the button clicked. A file a dialog picked is one the page's `shell` fu
|
|
|
20
20
|
|
|
21
21
|
`dialog.open` and `dialog.message` on macOS, Linux, Windows, iOS and Android; `dialog.save` on macOS, Linux and Windows.
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
saves the page's files as its downloads, which show the system's export sheet on iOS and its save picker on Android.
|
|
23
|
+
On a phone, `dialog.open` shows the system's document picker, without a title, and gives copies of the picked files in a
|
|
24
|
+
temporary folder the system may empty. With `directory: true` an iOS app gets the folder itself, which it reaches while
|
|
25
|
+
it runs; Android picks files only. Android filters by type where it knows an extension's type, and offers any file
|
|
26
|
+
otherwise. A phone saves the page's files as downloads: the export sheet on iOS, the save picker on Android.
|
|
28
27
|
|
|
29
28
|
## Replace or leave out
|
|
30
29
|
|
|
31
|
-
It holds the role `dialog`. An extension
|
|
30
|
+
It holds the role `dialog`. An extension with `replaces: 'dialog'` takes it; `app: { without: ['dialog'] }` in `crossbind.config.js` leaves it out. [The guide](https://crossbind.dev/guide/extensions/#replace) shows how, and [extensions.md](https://github.com/crossbind/crossbind/blob/main/docs/api/extensions.md#the-hosts-own-extensions) what a replacement answers.
|
|
32
31
|
|
|
33
32
|
[app.md](https://github.com/crossbind/crossbind/blob/main/docs/api/app.md#the-apps-functions) has every option.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossbind/extension-dialog",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.79",
|
|
4
4
|
"description": "crossbind app extension: open and message dialogs everywhere, save dialogs on the desktop.",
|
|
5
5
|
"homepage": "https://github.com/crossbind/crossbind/tree/main/extensions/dialog#readme",
|
|
6
6
|
"repository": {
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"extension": "./crossbind.extension.js"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"crossbind": "^2.0.0-beta.
|
|
29
|
+
"crossbind": "^2.0.0-beta.79"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"crossbind": "^2.0.0-beta.
|
|
32
|
+
"crossbind": "^2.0.0-beta.79"
|
|
33
33
|
},
|
|
34
34
|
"keywords": [
|
|
35
35
|
"crossbind-extension",
|