@servicetitan/error-boundary 23.3.0 → 23.4.0

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/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps> {
12
12
  };
13
13
  private logService?;
14
14
  componentDidCatch(error: Error): void;
15
- render(): string | number | boolean | Iterable<import("react").ReactNode> | JSX.Element | null | undefined;
15
+ render(): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
16
16
  }
17
17
  export {};
18
18
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ export class ErrorBoundary extends Component {
40
40
  const handleRefresh = () => {
41
41
  this.setState({ hasError: false });
42
42
  };
43
- return (_jsx(Fallback, { onRefresh: handleRefresh }));
43
+ return _jsx(Fallback, { onRefresh: handleRefresh });
44
44
  }
45
45
  return this.props.children;
46
46
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,uCAAuC;AACvC,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAWhD,MAAM,OAAO,aAAc,SAAQ,SAA6B;IAAhE;;QACI;;;;mBAAQ;gBACJ,QAAQ,EAAE,KAAK;aAClB;WAAC;IA8BN,CAAC;IAxBG,iBAAiB,CAAC,KAAY;;QAC1B,MAAA,IAAI,CAAC,UAAU,0CAAE,KAAK,CAAC;YACnB,KAAK;YACL,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE;SAC1C,C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AI,CAAC,KAAK,CAAC,UAAU,EAAE;SAC1C,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACtC,CAAC;IAED,MAAM;QACF,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,eAAe,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE5D,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEhC,IAAI,QAAQ,EAAE;YACV,MAAM,aAAa,GAAG,GAAG,EAAE;gBACvB,IAAI,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;YACvC,CAAC,CAAC;YACF,OAAO,KAAC,QAAQ,IAAC,SAAS,EAAE,aAAa,GAAI,CAAC;SACjD;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC/B,CAAC;CACJ;AA1BG;IAFC,QAAQ,EAAE;IACV,gBAAgB,CAAC,GAAG,CAAC;8BACO,GAAG;iDAAC;AA4BrC,MAAM,eAAe,GAAO,GAAG,EAAE,CAAC,gDAA6B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/error-boundary",
3
- "version": "23.3.0",
3
+ "version": "23.4.0",
4
4
  "description": "",
5
5
  "homepage": "https://docs.st.dev/docs/frontend/error-boundary",
6
6
  "repository": {
@@ -16,14 +16,14 @@
16
16
  "src"
17
17
  ],
18
18
  "devDependencies": {
19
- "@servicetitan/log-service": "23.3.0",
20
- "@servicetitan/react-ioc": "23.3.0",
19
+ "@servicetitan/log-service": "23.4.0",
20
+ "@servicetitan/react-ioc": "23.4.0",
21
21
  "@types/react": "~18.2.55",
22
22
  "react": "~18.2.0"
23
23
  },
24
24
  "peerDependencies": {
25
- "@servicetitan/log-service": "23.3.0",
26
- "@servicetitan/react-ioc": "23.3.0",
25
+ "@servicetitan/log-service": "23.4.0",
26
+ "@servicetitan/react-ioc": "23.4.0",
27
27
  "react": ">=17.0.2"
28
28
  },
29
29
  "publishConfig": {
@@ -32,5 +32,5 @@
32
32
  "cli": {
33
33
  "webpack": false
34
34
  },
35
- "gitHead": "4a3420cf55cf34ff10b5ba6164d940b39f0925e6"
35
+ "gitHead": "94612136ff4d645bc38ae6b13fffad2ab0358666"
36
36
  }
package/src/index.tsx CHANGED
@@ -42,7 +42,7 @@ export class ErrorBoundary extends Component<ErrorBoundaryProps> {
42
42
  const handleRefresh = () => {
43
43
  this.setState({ hasError: false });
44
44
  };
45
- return (<Fallback onRefresh={handleRefresh} />) as JSX.Element;
45
+ return <Fallback onRefresh={handleRefresh} />;
46
46
  }
47
47
 
48
48
  return this.props.children;