@nebularstreams/libmui 2.5.69 → 2.5.71

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nebularstreams/libmui",
3
3
  "description": "Micro UI based on Mithril",
4
- "version": "2.5.69",
4
+ "version": "2.5.71",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
package/src/index.js CHANGED
@@ -27,6 +27,7 @@ import {CoolContentTicker, CoolGenericTicker, GenericButtonTicker, optionsPrompt
27
27
  import EmptyButton from "./widgets/EmptyButton";
28
28
  import CoolerEmpty from "./widgets/CoolerEmpty";
29
29
  import tainter from "./util/tainter"
30
+ import UploadFile from "./widgets/UploadFile.js"
30
31
 
31
32
  import MainState, {implement as MainStateImplement} from "./app/MainState";
32
33
 
@@ -15,7 +15,7 @@ function confirmPromise(text, options = ["NO", "YES"], cancelError = "cancelled"
15
15
  return new Promise((resolve, reject) => {
16
16
  ConfirmPromise(null, text, options, () => reject(new Error(cancelError)))
17
17
  .then(({idx}) => {
18
- if (idx) {
18
+ if (idx >= 0) {
19
19
  resolve(idx);
20
20
  } else {
21
21
  reject(new Error(cancelError));
@@ -421,7 +421,8 @@ const
421
421
  optionsDict: attrs.optionsDict,
422
422
  play: attrs.play,
423
423
  auxTargetIsDefault: attrs.auxTargetIsDefault,
424
- AssetButton: attrs.AssetButton
424
+ AssetButton: attrs.AssetButton,
425
+ CodeMirror: attrs.CodeMirror
425
426
  })
426
427
  ],
427
428
  titleExpended: metaDef.titleExpanded || metaDef.hint,
@@ -1207,7 +1208,8 @@ const
1207
1208
  taint();
1208
1209
  m.redraw();
1209
1210
  },
1210
- AssetButton: attrs.AssetButton
1211
+ AssetButton: attrs.AssetButton,
1212
+ CodeMirror: attrs.CodeMirror
1211
1213
  })] : [],
1212
1214
 
1213
1215
  ...hasSize ? [m(".flexbreak"), m(RangeWidget, {