micro-ice-vue3-ts 1.0.0 → 1.0.3

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 CHANGED
@@ -1,11 +1,48 @@
1
1
  # micro-ice-app
2
2
  ## vue3+ts 版本
3
3
  ##
4
- 该框架有极限性,针对指定项目使用,并非适用大众,请知悉!
5
4
  站在巨人的肩膀上,该框架基于腾讯[wujie](https://github.com/Tencent/wujie)进行封装
6
- ## Project setup
5
+
6
+ ## 安装
7
7
  ```
8
8
  yarn add micro-ice-vue3-ts
9
9
  ```
10
+
11
+ ## 组件 Props
12
+
13
+ | 参数 | 说明 | 类型 | 默认值 |
14
+ | --- | --- | --- | --- |
15
+ | name | 应用名称,wujie 按 name 缓存应用 | string | - |
16
+ | url | 应用入口 HTML 地址 | string | - |
17
+ | width / height | 容器尺寸 | string | 100% |
18
+ | alive | 保活模式,卸载后保留沙箱 | boolean | false |
19
+ | sync | 路由同步 | boolean | false |
20
+ | props | 传递给子应用的数据(`window.$wujie.props` 读取) | object | - |
21
+ | plugins | wujie 插件(cssBeforeLoaders / jsBeforeLoaders / jsLoader 等) | array | - |
22
+ | events | 只把指定事件透传为组件的 emit 事件;不填则透传全部事件 | string[] | - |
23
+ | destroyOnUnmount | 非保活应用卸载时自动销毁沙箱 | boolean | false |
24
+ | fiber / degrade / fetch / replace / prefix / loading | 透传 wujie startApp,见 wujie 文档 | - | - |
25
+ | beforeLoad / beforeMount / afterMount / beforeUnmount / afterUnmount / activated / deactivated / loadError | 生命周期钩子,透传 wujie | function | - |
26
+
27
+ ## 事件通信
28
+
29
+ - `eventBus`(即 wujie `bus`):`$on` / `$emit` / `$off`。
30
+ - **事件总线是主应用与所有微应用全局共享的**,任何应用 `$emit('xxx')` 会触发所有监听 `xxx` 的地方——事件名务必加应用前缀避免串线,如 `iot:onLoading`、`gauge:save`。
31
+ - 组件内推荐用 `useMicroEvent(event, handler)`(卸载时自动取消订阅)代替直接 `eventBus.$on`:
32
+
33
+ ```ts
34
+ import { useMicroEvent } from 'micro-ice-vue3-ts'
35
+ useMicroEvent('iot:onLoading', (flag: boolean) => { /* ... */ })
36
+ ```
37
+
38
+ ## 注意事项
39
+
40
+ - **url 变更不会作用于已在运行的同名应用**(wujie 按 name 缓存),切换前需先 `destroyApp(name)`;
41
+ - `destroyOnUnmount` 只对非保活应用(`alive=false`)生效;保活应用由框架保留沙箱供下次激活;
42
+ - 子应用启动失败时组件会 `console.error` 并 `emit('start-error', error)`。
43
+
44
+ ## 其他
45
+ 该框架有极限性,针对指定项目使用,并非适用大众,请知悉!
46
+
10
47
  ### Customize configuration
11
48
  See [Configuration Reference](https://cli.vuejs.org/config/).
package/lib/demo.html ADDED
@@ -0,0 +1 @@
1
+ <!doctype html><meta charset="utf-8"><title>index demo</title><script src="./index.umd.js"></script><link rel="stylesheet" href="./index.css"><script>console.log(index)</script>
@@ -2990,7 +2990,8 @@ __webpack_require__.d(__webpack_exports__, {
2990
2990
  destroyApp: function() { return /* reexport */ destroyApp; },
2991
2991
  eventBus: function() { return /* reexport */ bus; },
2992
2992
  preloadApp: function() { return /* reexport */ preloadApp; },
2993
- setupApp: function() { return /* reexport */ setupApp; }
2993
+ setupApp: function() { return /* reexport */ setupApp; },
2994
+ useMicroEvent: function() { return /* reexport */ useMicroEvent; }
2994
2995
  });
2995
2996
 
2996
2997
  ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
@@ -7731,23 +7732,24 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue"
7731
7732
  ;// CONCATENATED MODULE: ./packages/MicroIceApp/index.ts
7732
7733
 
7733
7734
 
7735
+
7734
7736
  const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.defineComponent)({
7735
7737
  name: "MicroIceApp",
7736
7738
  props: {
7737
7739
  width: {
7738
7740
  type: String,
7739
- default: ""
7741
+ default: "100%"
7740
7742
  },
7741
7743
  height: {
7742
7744
  type: String,
7743
- default: ""
7745
+ default: "100%"
7744
7746
  },
7745
7747
  name: {
7746
7748
  type: String,
7747
7749
  default: ""
7748
7750
  },
7749
7751
  loading: {
7750
- type: Object,
7752
+ type: HTMLElement,
7751
7753
  default: undefined
7752
7754
  },
7753
7755
  url: {
@@ -7756,7 +7758,7 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7756
7758
  },
7757
7759
  sync: {
7758
7760
  type: Boolean,
7759
- default: undefined
7761
+ default: false
7760
7762
  },
7761
7763
  prefix: {
7762
7764
  type: Object,
@@ -7764,16 +7766,12 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7764
7766
  },
7765
7767
  alive: {
7766
7768
  type: Boolean,
7767
- default: undefined
7769
+ default: false
7768
7770
  },
7769
7771
  props: {
7770
7772
  type: Object,
7771
7773
  default: undefined
7772
7774
  },
7773
- attrs: {
7774
- type: Object,
7775
- default: undefined
7776
- },
7777
7775
  replace: {
7778
7776
  type: Function,
7779
7777
  default: undefined
@@ -7788,12 +7786,20 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7788
7786
  },
7789
7787
  degrade: {
7790
7788
  type: Boolean,
7791
- default: undefined
7789
+ default: false
7792
7790
  },
7793
7791
  plugins: {
7794
7792
  type: Array,
7795
7793
  default: null
7796
7794
  },
7795
+ events: {
7796
+ type: Array,
7797
+ default: null
7798
+ },
7799
+ destroyOnUnmount: {
7800
+ type: Boolean,
7801
+ default: false
7802
+ },
7797
7803
  beforeLoad: {
7798
7804
  type: Function,
7799
7805
  default: null
@@ -7832,6 +7838,9 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7832
7838
  }) {
7833
7839
  const MicroIceAppRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.ref)(null);
7834
7840
  let startAppQueue = Promise.resolve();
7841
+ let startedName = "";
7842
+ let startedUrl = "";
7843
+ const subscribedEvents = [];
7835
7844
  const handleEmit = (event, ...args) => {
7836
7845
  emit(event, ...args);
7837
7846
  };
@@ -7845,7 +7854,6 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7845
7854
  alive: props.alive,
7846
7855
  fetch: props.fetch,
7847
7856
  props: props.props,
7848
- attrs: props.attrs,
7849
7857
  replace: props.replace,
7850
7858
  sync: props.sync,
7851
7859
  prefix: props.prefix,
@@ -7861,52 +7869,64 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7861
7869
  deactivated: props.deactivated,
7862
7870
  loadError: props.loadError
7863
7871
  });
7864
- // const iframe = window.document.querySelector<HTMLIFrameElement>(
7865
- // `iframe[name="${props.name}"]`
7866
- // );
7867
- // iframeApp.value = iframe;
7868
- // if (iframe) {
7869
- // setGlobal(iframe.contentWindow);
7870
- // }
7872
+ startedName = props.name;
7873
+ startedUrl = props.url;
7871
7874
  } catch (error) {
7872
- console.log(error);
7875
+ console.error(`[micro-ice] 应用 ${props.name} 启动失败:`, error);
7876
+ emit("start-error", error);
7873
7877
  }
7874
7878
  };
7875
7879
  const execStartApp = () => {
7876
7880
  startAppQueue = startAppQueue.then(startApp);
7877
7881
  };
7882
+ const subscribeEvents = () => {
7883
+ // 指定了 events 时只订阅这些事件,避免 $onAll 把其他应用的事件也转发进来
7884
+ if (props.events?.length) {
7885
+ props.events.forEach(event => {
7886
+ const handler = (...args) => handleEmit(event, ...args);
7887
+ subscribedEvents.push({
7888
+ event,
7889
+ handler
7890
+ });
7891
+ bus.$on(event, handler);
7892
+ });
7893
+ } else {
7894
+ bus.$onAll(handleEmit);
7895
+ }
7896
+ };
7897
+ const unsubscribeEvents = () => {
7898
+ if (props.events?.length) {
7899
+ subscribedEvents.forEach(({
7900
+ event,
7901
+ handler
7902
+ }) => bus.$off(event, handler));
7903
+ subscribedEvents.length = 0;
7904
+ } else {
7905
+ bus.$offAll(handleEmit);
7906
+ }
7907
+ };
7878
7908
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.onMounted)(() => {
7879
- bus.$onAll(handleEmit);
7909
+ subscribeEvents();
7880
7910
  execStartApp();
7881
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.name + props.url, () => execStartApp());
7911
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.name + props.url, () => {
7912
+ // name 变化视为全新应用,直接重新启动
7913
+ if (props.name !== startedName) {
7914
+ execStartApp();
7915
+ return;
7916
+ }
7917
+ // wujie 按 name 缓存,url 变更对已在运行的应用不生效,需要显式销毁后重启
7918
+ if (props.url !== startedUrl) {
7919
+ console.warn(`[micro-ice] 应用 ${props.name} 已在运行,url 变更不会生效,请先 destroyApp("${props.name}") 后再切换`);
7920
+ }
7921
+ });
7882
7922
  });
7883
7923
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.onBeforeUnmount)(() => {
7884
- bus.$offAll(handleEmit);
7924
+ unsubscribeEvents();
7925
+ // 仅非保活应用支持卸载即销毁;保活应用应保留沙箱以便下次激活
7926
+ if (props.destroyOnUnmount && !props.alive && props.name) {
7927
+ destroyApp(props.name);
7928
+ }
7885
7929
  });
7886
- // const setGlobal = (iframeWindow: Window | null) => {
7887
- // if (!iframeWindow) return;
7888
- // const global = {
7889
- // __POWERED_BY_MICRO__: iframeWindow.__POWERED_BY_WUJIE__,
7890
- // __MICRO_PUBLIC_PATH__: iframeWindow.__WUJIE_PUBLIC_PATH__,
7891
- // __MICRO_RAW_DOCUMENT_QUERY_SELECTOR__:
7892
- // iframeWindow.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__,
7893
- // __MICRO_RAW_DOCUMENT_QUERY_SELECTOR_ALL__:
7894
- // iframeWindow.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__,
7895
- // __MICRO_RAW_WINDOW__: iframeWindow.__WUJIE_RAW_WINDOW__,
7896
- // __MICRO: iframeWindow.__WUJIE,
7897
- // __MICRO_MOUNT: () => iframeWindow.__WUJIE_MOUNT(),
7898
- // __MICRO_UNMOUNT: () => iframeWindow.__WUJIE_UNMOUNT(),
7899
- // $micro_ice: {
7900
- // bus: iframeWindow.$wujie.bus,
7901
- // shadowRoot: iframeWindow.$wujie.shadowRoot,
7902
- // props: iframeWindow.$wujie.props,
7903
- // location: iframeWindow.$wujie.location,
7904
- // },
7905
- // };
7906
- // Object.keys(global).forEach((key) => {
7907
- // (iframeWindow as any)[key] = global[key];
7908
- // });
7909
- // };
7910
7930
  return () => (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.h)("div", {
7911
7931
  style: {
7912
7932
  width: props.width,
@@ -7919,6 +7939,16 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7919
7939
  MicroIceApp.install = function (app) {
7920
7940
  app.component("MicroIceApp", MicroIceApp);
7921
7941
  };
7942
+ /**
7943
+ * 监听微应用事件,组件卸载时自动取消订阅
7944
+ * 注意:事件总线为主应用与所有微应用全局共享,事件名请加应用前缀避免串线(如 iot:onLoading)
7945
+ */
7946
+ function useMicroEvent(event, handler) {
7947
+ bus.$on(event, handler);
7948
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.onBeforeUnmount)(() => {
7949
+ bus.$off(event, handler);
7950
+ });
7951
+ }
7922
7952
  /* harmony default export */ var packages_MicroIceApp = (MicroIceApp);
7923
7953
 
7924
7954
  ;// CONCATENATED MODULE: ./packages/index.ts
package/lib/index.umd.js CHANGED
@@ -3008,7 +3008,8 @@ __webpack_require__.d(__webpack_exports__, {
3008
3008
  destroyApp: function() { return /* reexport */ destroyApp; },
3009
3009
  eventBus: function() { return /* reexport */ bus; },
3010
3010
  preloadApp: function() { return /* reexport */ preloadApp; },
3011
- setupApp: function() { return /* reexport */ setupApp; }
3011
+ setupApp: function() { return /* reexport */ setupApp; },
3012
+ useMicroEvent: function() { return /* reexport */ useMicroEvent; }
3012
3013
  });
3013
3014
 
3014
3015
  ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
@@ -7749,23 +7750,24 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
7749
7750
  ;// CONCATENATED MODULE: ./packages/MicroIceApp/index.ts
7750
7751
 
7751
7752
 
7753
+
7752
7754
  const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
7753
7755
  name: "MicroIceApp",
7754
7756
  props: {
7755
7757
  width: {
7756
7758
  type: String,
7757
- default: ""
7759
+ default: "100%"
7758
7760
  },
7759
7761
  height: {
7760
7762
  type: String,
7761
- default: ""
7763
+ default: "100%"
7762
7764
  },
7763
7765
  name: {
7764
7766
  type: String,
7765
7767
  default: ""
7766
7768
  },
7767
7769
  loading: {
7768
- type: Object,
7770
+ type: HTMLElement,
7769
7771
  default: undefined
7770
7772
  },
7771
7773
  url: {
@@ -7774,7 +7776,7 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7774
7776
  },
7775
7777
  sync: {
7776
7778
  type: Boolean,
7777
- default: undefined
7779
+ default: false
7778
7780
  },
7779
7781
  prefix: {
7780
7782
  type: Object,
@@ -7782,16 +7784,12 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7782
7784
  },
7783
7785
  alive: {
7784
7786
  type: Boolean,
7785
- default: undefined
7787
+ default: false
7786
7788
  },
7787
7789
  props: {
7788
7790
  type: Object,
7789
7791
  default: undefined
7790
7792
  },
7791
- attrs: {
7792
- type: Object,
7793
- default: undefined
7794
- },
7795
7793
  replace: {
7796
7794
  type: Function,
7797
7795
  default: undefined
@@ -7806,12 +7804,20 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7806
7804
  },
7807
7805
  degrade: {
7808
7806
  type: Boolean,
7809
- default: undefined
7807
+ default: false
7810
7808
  },
7811
7809
  plugins: {
7812
7810
  type: Array,
7813
7811
  default: null
7814
7812
  },
7813
+ events: {
7814
+ type: Array,
7815
+ default: null
7816
+ },
7817
+ destroyOnUnmount: {
7818
+ type: Boolean,
7819
+ default: false
7820
+ },
7815
7821
  beforeLoad: {
7816
7822
  type: Function,
7817
7823
  default: null
@@ -7850,6 +7856,9 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7850
7856
  }) {
7851
7857
  const MicroIceAppRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
7852
7858
  let startAppQueue = Promise.resolve();
7859
+ let startedName = "";
7860
+ let startedUrl = "";
7861
+ const subscribedEvents = [];
7853
7862
  const handleEmit = (event, ...args) => {
7854
7863
  emit(event, ...args);
7855
7864
  };
@@ -7863,7 +7872,6 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7863
7872
  alive: props.alive,
7864
7873
  fetch: props.fetch,
7865
7874
  props: props.props,
7866
- attrs: props.attrs,
7867
7875
  replace: props.replace,
7868
7876
  sync: props.sync,
7869
7877
  prefix: props.prefix,
@@ -7879,52 +7887,64 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7879
7887
  deactivated: props.deactivated,
7880
7888
  loadError: props.loadError
7881
7889
  });
7882
- // const iframe = window.document.querySelector<HTMLIFrameElement>(
7883
- // `iframe[name="${props.name}"]`
7884
- // );
7885
- // iframeApp.value = iframe;
7886
- // if (iframe) {
7887
- // setGlobal(iframe.contentWindow);
7888
- // }
7890
+ startedName = props.name;
7891
+ startedUrl = props.url;
7889
7892
  } catch (error) {
7890
- console.log(error);
7893
+ console.error(`[micro-ice] 应用 ${props.name} 启动失败:`, error);
7894
+ emit("start-error", error);
7891
7895
  }
7892
7896
  };
7893
7897
  const execStartApp = () => {
7894
7898
  startAppQueue = startAppQueue.then(startApp);
7895
7899
  };
7900
+ const subscribeEvents = () => {
7901
+ // 指定了 events 时只订阅这些事件,避免 $onAll 把其他应用的事件也转发进来
7902
+ if (props.events?.length) {
7903
+ props.events.forEach(event => {
7904
+ const handler = (...args) => handleEmit(event, ...args);
7905
+ subscribedEvents.push({
7906
+ event,
7907
+ handler
7908
+ });
7909
+ bus.$on(event, handler);
7910
+ });
7911
+ } else {
7912
+ bus.$onAll(handleEmit);
7913
+ }
7914
+ };
7915
+ const unsubscribeEvents = () => {
7916
+ if (props.events?.length) {
7917
+ subscribedEvents.forEach(({
7918
+ event,
7919
+ handler
7920
+ }) => bus.$off(event, handler));
7921
+ subscribedEvents.length = 0;
7922
+ } else {
7923
+ bus.$offAll(handleEmit);
7924
+ }
7925
+ };
7896
7926
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
7897
- bus.$onAll(handleEmit);
7927
+ subscribeEvents();
7898
7928
  execStartApp();
7899
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.name + props.url, () => execStartApp());
7929
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.name + props.url, () => {
7930
+ // name 变化视为全新应用,直接重新启动
7931
+ if (props.name !== startedName) {
7932
+ execStartApp();
7933
+ return;
7934
+ }
7935
+ // wujie 按 name 缓存,url 变更对已在运行的应用不生效,需要显式销毁后重启
7936
+ if (props.url !== startedUrl) {
7937
+ console.warn(`[micro-ice] 应用 ${props.name} 已在运行,url 变更不会生效,请先 destroyApp("${props.name}") 后再切换`);
7938
+ }
7939
+ });
7900
7940
  });
7901
7941
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
7902
- bus.$offAll(handleEmit);
7942
+ unsubscribeEvents();
7943
+ // 仅非保活应用支持卸载即销毁;保活应用应保留沙箱以便下次激活
7944
+ if (props.destroyOnUnmount && !props.alive && props.name) {
7945
+ destroyApp(props.name);
7946
+ }
7903
7947
  });
7904
- // const setGlobal = (iframeWindow: Window | null) => {
7905
- // if (!iframeWindow) return;
7906
- // const global = {
7907
- // __POWERED_BY_MICRO__: iframeWindow.__POWERED_BY_WUJIE__,
7908
- // __MICRO_PUBLIC_PATH__: iframeWindow.__WUJIE_PUBLIC_PATH__,
7909
- // __MICRO_RAW_DOCUMENT_QUERY_SELECTOR__:
7910
- // iframeWindow.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__,
7911
- // __MICRO_RAW_DOCUMENT_QUERY_SELECTOR_ALL__:
7912
- // iframeWindow.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__,
7913
- // __MICRO_RAW_WINDOW__: iframeWindow.__WUJIE_RAW_WINDOW__,
7914
- // __MICRO: iframeWindow.__WUJIE,
7915
- // __MICRO_MOUNT: () => iframeWindow.__WUJIE_MOUNT(),
7916
- // __MICRO_UNMOUNT: () => iframeWindow.__WUJIE_UNMOUNT(),
7917
- // $micro_ice: {
7918
- // bus: iframeWindow.$wujie.bus,
7919
- // shadowRoot: iframeWindow.$wujie.shadowRoot,
7920
- // props: iframeWindow.$wujie.props,
7921
- // location: iframeWindow.$wujie.location,
7922
- // },
7923
- // };
7924
- // Object.keys(global).forEach((key) => {
7925
- // (iframeWindow as any)[key] = global[key];
7926
- // });
7927
- // };
7928
7948
  return () => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)("div", {
7929
7949
  style: {
7930
7950
  width: props.width,
@@ -7937,6 +7957,16 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7937
7957
  MicroIceApp.install = function (app) {
7938
7958
  app.component("MicroIceApp", MicroIceApp);
7939
7959
  };
7960
+ /**
7961
+ * 监听微应用事件,组件卸载时自动取消订阅
7962
+ * 注意:事件总线为主应用与所有微应用全局共享,事件名请加应用前缀避免串线(如 iot:onLoading)
7963
+ */
7964
+ function useMicroEvent(event, handler) {
7965
+ bus.$on(event, handler);
7966
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
7967
+ bus.$off(event, handler);
7968
+ });
7969
+ }
7940
7970
  /* harmony default export */ var packages_MicroIceApp = (MicroIceApp);
7941
7971
 
7942
7972
  ;// CONCATENATED MODULE: ./packages/index.ts