strata.client.react 0.0.0-snapshot.13 → 0.0.0-snapshot.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.
@@ -5,7 +5,8 @@ import { IPresenterViewProperty } from "./IPresenterViewProperty";
5
5
  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
- protected constructor(props: P, self: V);
8
+ protected constructor(props: P);
9
+ componentDidMount(): void;
9
10
  abstract render(): Element;
10
11
  protected abstract getSelf(): V;
11
12
  }
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PresenterView = void 0;
4
4
  const react_1 = require("react");
5
5
  class PresenterView extends react_1.Component {
6
- constructor(props, self) {
6
+ constructor(props) {
7
7
  super(props);
8
- this.props.presenter.setView(self);
8
+ }
9
+ componentDidMount() {
10
+ this.props.presenter.setView(this.getSelf());
9
11
  }
10
12
  }
11
13
  exports.PresenterView = PresenterView;
@@ -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,EAAC,IAAO;QAElC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;CAMJ;AAnBD,sCAmBC"}
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.13",
3
+ "version": "0.0.0-snapshot.14",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "increment-snapshot": "npm version prerelease",