strata.client.react 0.0.0-snapshot.6 → 0.0.0-snapshot.60

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.
@@ -1,10 +1,12 @@
1
+ import * as React from "react";
1
2
  import { AbstractApplication, IApplication } from "strata.client.core/Main";
2
3
  import { IPresenter } from "strata.client.core/Presenter";
3
4
  import { IRenderable } from "../Presenter/IRenderable";
5
+ import Element = React.JSX.Element;
4
6
  export declare abstract class ReactApplication<M, V extends IRenderable, P extends IPresenter<M, V>> extends AbstractApplication<M, V, P> implements IApplication {
5
7
  private root;
6
8
  protected constructor();
7
9
  start(): void;
8
10
  stop(): void;
9
- protected abstract getMainView(): any;
11
+ protected abstract getMainView(): Element;
10
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ReactApplication.js","sourceRoot":"","sources":["../../../main/typescript/Main/ReactApplication.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,6CAAiD;AACjD,kDAAyE;AAEzE,uDAA+C;AAG/C,MACe,gBACX,SAAQ,0BAA0B;IAG1B,IAAI,CAAO;IAEnB;QAEI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAA,mBAAU,EAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;IAC3D,CAAC;IAED,KAAK;QAED,IAAI,CAAC,IAAI,CAAC,MAAM,CACZ,oBAAC,gCAAa,QACT,IAAI,CAAC,WAAW,EAAE,CACP,CAAC,CAAC;IAC1B,CAAC;IAED,IAAI;QAEA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAA;IACvB,CAAC;CAGJ;AA3BD,4CA2BC"}
1
+ {"version":3,"file":"ReactApplication.js","sourceRoot":"","sources":["../../../main/typescript/Main/ReactApplication.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,6CAAiD;AACjD,kDAAyE;AAIzE,uDAA+C;AAE/C,MACe,gBACX,SAAQ,0BAA0B;IAG1B,IAAI,CAAO;IAEnB;QAEI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAA,mBAAU,EAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;IAC3D,CAAC;IAED,KAAK;QAED,IAAI,CAAC,IAAI,CAAC,MAAM,CACZ,oBAAC,gCAAa,QACT,IAAI,CAAC,WAAW,EAAE,CACP,CAAC,CAAC;IAC1B,CAAC;IAED,IAAI;QAEA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAA;IACvB,CAAC;CAGJ;AA3BD,4CA2BC"}
@@ -6,7 +6,7 @@ import { IPresentable } from "strata.client.core/Presenter";
6
6
  import Element = React.JSX.Element;
7
7
  export declare abstract class PresenterView<V, T extends IPresentable<V>, P extends IPresenterViewProperty<T>, S = {}> extends Component<P, S> implements IRenderable {
8
8
  protected constructor(props: P);
9
- componentWillMount(): void;
9
+ componentDidMount(): void;
10
10
  abstract render(): Element;
11
11
  protected abstract getSelf(): V;
12
12
  }
@@ -6,7 +6,7 @@ class PresenterView extends react_1.Component {
6
6
  constructor(props) {
7
7
  super(props);
8
8
  }
9
- componentWillMount() {
9
+ componentDidMount() {
10
10
  this.props.presenter.setView(this.getSelf());
11
11
  }
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PresenterView.js","sourceRoot":"","sources":["../../../main/typescript/Presenter/PresenterView.tsx"],"names":[],"mappings":";;;AACA,iCAAgC;AAMhC,MACe,aAKX,SAAQ,iBAAc;IAGtB,YAAsB,KAAQ;QAE1B,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAED,kBAAkB;QAEd,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;CAMJ;AAvBD,sCAuBC"}
1
+ {"version":3,"file":"PresenterView.js","sourceRoot":"","sources":["../../../main/typescript/Presenter/PresenterView.tsx"],"names":[],"mappings":";;;AACA,iCAAgC;AAMhC,MACe,aAKX,SAAQ,iBAAc;IAGtB,YAAsB,KAAQ;QAE1B,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAED,iBAAiB;QAEb,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;CAMJ;AAvBD,sCAuBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strata.client.react",
3
- "version": "0.0.0-snapshot.6",
3
+ "version": "0.0.0-snapshot.60",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "increment-snapshot": "npm version prerelease",
@@ -9,11 +9,6 @@
9
9
  "increment-patch": "npm version patch"
10
10
  },
11
11
  "dependencies": {
12
- "@blueprintjs/core": "^5.2.1",
13
- "@blueprintjs/datetime": "^5.0.9",
14
- "@blueprintjs/icons": "^5.1.5",
15
- "@blueprintjs/select": "^5.0.9",
16
- "@blueprintjs/table": "^5.0.9",
17
12
  "@types/react": "^18.2.21",
18
13
  "@types/react-dom": "^18.2.7",
19
14
  "@types/react-router": "^5.1.20",
@@ -22,6 +17,6 @@
22
17
  "react-dom": "^18.2.0",
23
18
  "react-router-dom": "^5.3.4",
24
19
  "rxjs": "^6.5.5",
25
- "strata.client.core": "^0.0.0-snapshot.2"
20
+ "strata.client.core": "^0.0.0-snapshot.38"
26
21
  }
27
22
  }