@nebularstreams/libmui 2.5.67 → 2.5.69

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.67",
4
+ "version": "2.5.69",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
@@ -221,6 +221,7 @@ const
221
221
  REGEX_NODOTS = /[^0-9A-Z-]+/gi;
222
222
 
223
223
  function sanitizeFilename(filename, withDots = true) {
224
+ // EDGE CASE -> NO DOT AT THE END
224
225
  withDots = withDots && !filename?.endsWith(".");
225
226
  return filename ? filename.trim()
226
227
  .toLowerCase()
@@ -485,8 +485,8 @@ const
485
485
  oninput: () => {
486
486
  }
487
487
  },
488
- multi: metaDef.multi,
489
- alwaysmulti: metaDef.alwaysmulti,
488
+ multi: isJson || metaDef.multi,
489
+ alwaysmulti: isJson || metaDef.alwaysmulti,
490
490
  onchange: (value) => {
491
491
  set(value);
492
492
  onchange(UPDATECODE, targetParameters, metaKey, undefined, metaDef);
@@ -932,7 +932,7 @@ const
932
932
  busy, parameters, auxParameters, cardid, size, index,
933
933
  titleWidget, parametersTitle, parametersBody, rootUpdate: mainRootUpdate, global, layer,
934
934
  tableChildren, cols, onLayerReset, onAction, nofold, bodyClass, titleAction,
935
- AssetButton
935
+ AssetButton, CodeMirror
936
936
  } = attrs;
937
937
 
938
938
  return m(CardieWidget, {
@@ -963,6 +963,7 @@ const
963
963
  clone: true,
964
964
  global, layer,
965
965
  AssetButton,
966
+ CodeMirror,
966
967
  onAction,
967
968
  onchange: (realtime, targetParameters, metaKey, wasDeleted, metaDef) => {
968
969
 
@@ -1029,6 +1030,7 @@ const
1029
1030
  itemsDict: attrs.itemsDict,
1030
1031
  optionsDict: attrs.optionsDict,
1031
1032
  AssetButton,
1033
+ CodeMirror,
1032
1034
  onAction,
1033
1035
  onchange: (realtime, targetParameters, metaKey, wasDeleted, metaDef, event) => {
1034
1036
  const rootUpdate = metaDef.rootUpdate || mainRootUpdate;