@das-fed/mframe 0.0.12 → 0.0.14

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.
Files changed (4) hide show
  1. package/es5.js +1425 -1415
  2. package/index.d.ts +14 -7
  3. package/index.js +1216 -1207
  4. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -322,9 +322,9 @@ declare const channelItem_3: {
322
322
  event: Emitter<Event_4>;
323
323
  };
324
324
 
325
- declare type ChildernListener = 'layoutDataChange' | 'syncRouter';
325
+ declare type ChildernListener = 'layoutDataChange' | 'syncRouter' | 'customEventFromMain';
326
326
 
327
- declare type ChildernListener_2 = 'layoutDataChange' | 'syncRouter';
327
+ declare type ChildernListener_2 = 'layoutDataChange' | 'syncRouter' | 'customEventFromMain';
328
328
 
329
329
  declare type ContainerChannelType = {
330
330
  container: typeof channelItem;
@@ -389,12 +389,19 @@ declare type Event_2 = {
389
389
  declare type Event_3 = {
390
390
  /** 子应用上报路由信息事件 */
391
391
  reportRouter: any;
392
- };
392
+ customEventFromMicro: {
393
+ type: string;
394
+ payload: any;
395
+ };
396
+ } & Record<string, any>;
393
397
 
394
398
  declare type Event_4 = {
395
- /** 主应用同步路由信息事件 */
396
399
  syncRouter: any;
397
- };
400
+ customEventFromMain: {
401
+ type: string;
402
+ payload: any;
403
+ };
404
+ } & Record<string, any>;
398
405
 
399
406
  declare enum LifeCycleKey {
400
407
  'registered' = 0,
@@ -464,9 +471,9 @@ declare type NavItem = {
464
471
  [key: string]: any
465
472
  }
466
473
 
467
- declare type ParentListener = 'getMicroFrameRect' | 'reportRouter' | 'microAppStickStatus';
474
+ declare type ParentListener = 'getMicroFrameRect' | 'reportRouter' | 'microAppStickStatus' | 'customEventFromMicro';
468
475
 
469
- declare type ParentListener_2 = 'getMicroFrameRect' | 'reportRouter' | 'microAppStickStatus';
476
+ declare type ParentListener_2 = 'getMicroFrameRect' | 'reportRouter' | 'microAppStickStatus' | 'customEventFromMicro';
470
477
 
471
478
  export declare const pollVariable: <T>(getDataFn: () => any, opt?: {
472
479
  interval: number;