@floless/app 0.18.0 → 0.18.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/dist/floless-server.cjs +2 -2
- package/dist/web/aware.js +19 -1
- package/package.json +1 -1
package/dist/floless-server.cjs
CHANGED
|
@@ -52683,7 +52683,7 @@ function appVersion() {
|
|
|
52683
52683
|
return resolveVersion({
|
|
52684
52684
|
isSea: isSea2(),
|
|
52685
52685
|
sqVersionXml: readSqVersionXml(),
|
|
52686
|
-
define: true ? "0.18.
|
|
52686
|
+
define: true ? "0.18.1" : void 0,
|
|
52687
52687
|
pkgVersion: readPkgVersion()
|
|
52688
52688
|
});
|
|
52689
52689
|
}
|
|
@@ -52693,7 +52693,7 @@ function resolveChannel(s) {
|
|
|
52693
52693
|
return "dev";
|
|
52694
52694
|
}
|
|
52695
52695
|
function appChannel() {
|
|
52696
|
-
return resolveChannel({ isSea: isSea2(), define: true ? "0.18.
|
|
52696
|
+
return resolveChannel({ isSea: isSea2(), define: true ? "0.18.1" : void 0 });
|
|
52697
52697
|
}
|
|
52698
52698
|
|
|
52699
52699
|
// oauth-presets.ts
|
package/dist/web/aware.js
CHANGED
|
@@ -1919,7 +1919,25 @@
|
|
|
1919
1919
|
// The server derives the id from the file's `app:` field, installs it, and we select
|
|
1920
1920
|
// it so the user can Compile (we never auto-compile — Run stays a deliberate act).
|
|
1921
1921
|
const $importFile = document.getElementById('import-file');
|
|
1922
|
-
|
|
1922
|
+
// Prefer the File System Access API: its types[].description names the OS picker's filter
|
|
1923
|
+
// ("FloLess workflow"), whereas a plain <input accept=…> with several extensions renders as
|
|
1924
|
+
// the generic "Custom Files". Fall back to the hidden <input> where the API is absent
|
|
1925
|
+
// (Firefox/Safari). Called synchronously from the menu-click gesture (no await before the
|
|
1926
|
+
// picker call), so the required user-activation is preserved.
|
|
1927
|
+
async function triggerImport() {
|
|
1928
|
+
if (typeof window.showOpenFilePicker === 'function') {
|
|
1929
|
+
let handle;
|
|
1930
|
+
try {
|
|
1931
|
+
[handle] = await window.showOpenFilePicker({
|
|
1932
|
+
types: [{ description: 'FloLess workflow', accept: { 'text/plain': ['.flo', '.app', '.flow', '.aware'] } }],
|
|
1933
|
+
multiple: false,
|
|
1934
|
+
});
|
|
1935
|
+
} catch { return; } // the user dismissed the picker (AbortError) — nothing to import
|
|
1936
|
+
try { importFlo(await handle.getFile()); } catch { showToast('Could not read that file', 'err'); }
|
|
1937
|
+
return;
|
|
1938
|
+
}
|
|
1939
|
+
if ($importFile) $importFile.click();
|
|
1940
|
+
}
|
|
1923
1941
|
|
|
1924
1942
|
async function importFlo(file) {
|
|
1925
1943
|
if (!file) return;
|