@nebularstreams/libmui 0.1.0 → 0.1.2

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": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "author": "Rodolfo Lopez Pintor - Nebular Streams",
6
6
  "main": "dist/libmui.cjs.js",
7
7
  "module": "dist/libmui.esm.js",
package/src/app/app.js ADDED
@@ -0,0 +1,9 @@
1
+ function startApp(target, appMetadata) {
2
+ m.route(
3
+ document.getElementById(target),
4
+ appMetadata.default || "/",
5
+ appMetadata.routes
6
+ );
7
+ }
8
+
9
+ export default startApp;
package/src/index.js CHANGED
@@ -9,7 +9,8 @@ import * as OverflowUtils from "./widgets/OverflowUtils";
9
9
  import {clearModal, popupMessage} from "./util/widgets";
10
10
  import Separator from "./widgets/Separator";
11
11
  import RangeWidget from "./widgets/RangeWidget";
12
-
12
+ import startApp from "./app/app"
13
+ import defineWidget from "./util/widgets.utils";
13
14
  export {
14
15
  Button,
15
16
  ButtonNew,
@@ -25,5 +26,7 @@ export {
25
26
  Separator,
26
27
  m,
27
28
  clearModal,
28
- popupMessage
29
+ popupMessage,
30
+ startApp,
31
+ defineWidget
29
32
  }