@redhat-cloud-services/frontend-components 3.11.6 → 3.11.7

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.
@@ -13,6 +13,9 @@ interface ErrorPageState {
13
13
  declare class ErrorBoundaryPage extends React.Component<ErrorPageProps, ErrorPageState> {
14
14
  constructor(props: Readonly<ErrorPageProps>);
15
15
  static getDerivedStateFromError(error: Error): ErrorPageState;
16
+ updateState: () => void;
17
+ componentDidUpdate(): void;
18
+ componentDidMount(): void;
16
19
  render(): React.ReactNode;
17
20
  }
18
21
  export default ErrorBoundaryPage;
@@ -63,6 +63,14 @@ var ErrorBoundaryPage = (function (_super) {
63
63
  __extends(ErrorBoundaryPage, _super);
64
64
  function ErrorBoundaryPage(props) {
65
65
  var _this = _super.call(this, props) || this;
66
+ _this.updateState = function () {
67
+ if (_this.state.historyState !== history.state) {
68
+ _this.setState({
69
+ hasError: false,
70
+ historyState: history.state,
71
+ });
72
+ }
73
+ };
66
74
  _this.state = {
67
75
  hasError: false,
68
76
  historyState: history.state,
@@ -72,13 +80,13 @@ var ErrorBoundaryPage = (function (_super) {
72
80
  ErrorBoundaryPage.getDerivedStateFromError = function (error) {
73
81
  return { hasError: true, error: error, historyState: history.state };
74
82
  };
83
+ ErrorBoundaryPage.prototype.componentDidUpdate = function () {
84
+ this.updateState();
85
+ };
86
+ ErrorBoundaryPage.prototype.componentDidMount = function () {
87
+ this.updateState();
88
+ };
75
89
  ErrorBoundaryPage.prototype.render = function () {
76
- if (this.state.historyState !== history.state) {
77
- this.setState({
78
- hasError: false,
79
- historyState: history.state,
80
- });
81
- }
82
90
  if (this.state.hasError) {
83
91
  if (this.props.silent) {
84
92
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../src/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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I,CAAC,KAAK,CAAC,MAAM,EAAE;gBACrB,OAAO,IAAI,CAAC;aACb;YACD,OAAO,CACL,4CACE,uBAAC,oBAAU,cACT,uBAAC,4BAAe,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAAI,GACvC,EACb,uBAAC,iBAAO,cACN,uBAAC,oBAAU,IACT,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,gBAAgB,EACd,6DACE,2CAAO,IAAI,CAAC,KAAK,CAAC,gBAAgB,GAAQ,EACzC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,CACnB,uBAAC,8BAAiB,aAAC,UAAU,EAAC,cAAc,gBAC1C,uBAAC,oBAAU,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IACrB,CACrB,IACA,GAEL,GACM,IACN,CACP,CAAC;SACH;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC7B,CAAC;IACH,wBAAC;AAAD,CAAC,AA7DD,CAAgC,KAAK,CAAC,SAAS,GA6D9C;AAED,kBAAe,iBAAiB,CAAC"}
@@ -35,6 +35,14 @@ var ErrorBoundaryPage = (function (_super) {
35
35
  __extends(ErrorBoundaryPage, _super);
36
36
  function ErrorBoundaryPage(props) {
37
37
  var _this = _super.call(this, props) || this;
38
+ _this.updateState = function () {
39
+ if (_this.state.historyState !== history.state) {
40
+ _this.setState({
41
+ hasError: false,
42
+ historyState: history.state,
43
+ });
44
+ }
45
+ };
38
46
  _this.state = {
39
47
  hasError: false,
40
48
  historyState: history.state,
@@ -44,13 +52,13 @@ var ErrorBoundaryPage = (function (_super) {
44
52
  ErrorBoundaryPage.getDerivedStateFromError = function (error) {
45
53
  return { hasError: true, error: error, historyState: history.state };
46
54
  };
55
+ ErrorBoundaryPage.prototype.componentDidUpdate = function () {
56
+ this.updateState();
57
+ };
58
+ ErrorBoundaryPage.prototype.componentDidMount = function () {
59
+ this.updateState();
60
+ };
47
61
  ErrorBoundaryPage.prototype.render = function () {
48
- if (this.state.historyState !== history.state) {
49
- this.setState({
50
- hasError: false,
51
- historyState: history.state,
52
- });
53
- }
54
62
  if (this.state.hasError) {
55
63
  if (this.props.silent) {
56
64
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../src/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,UAAU,EAAE,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,OAAO,MAAM,YAAY,CAAC;AAgBjC;IAAgC,qCAA+C;IAC7E,2BAAY,KAA+B;QAA3C,YACE,kBAAM,KAAK,CAAC,SAKb;QAJC,KAAI,CAAC,KAAK,GAAG;YACX,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,OAAO,CAAC,KAAK;SAC5B,CAAC;;IACJ,CAAC;IAEM,0CAAwB,GAA/B,UAAgC,KAAY;QAC1C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,OAAA,EAAE,YAAY,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;IAChE,CAAC;IAED,kCAAM,GAAN;QACE,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,KAAK,OAAO,CAAC,KAAK,EAAE;YAC7C,IAAI,CAAC,QAAQ,CAAC;gBACZ,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,OAAO,CAAC,KAAK;aAC5B,CAAC,CAAC;SACJ;QAED,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YACvB,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;gBACrB,OAAO,IAAI,C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AK,CAAC,SAAS,GA6D9C;AAED,eAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components",
3
- "version": "3.11.6",
3
+ "version": "3.11.7",
4
4
  "description": "Common components for RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",