@plasmicpkgs/plasmic-rich-components 1.0.103 → 1.0.105

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/utils.d.ts CHANGED
@@ -38,4 +38,26 @@ export declare function withoutNils<T>(xs: Array<T | undefined | null>): T[];
38
38
  export type Falsey = null | undefined | false | "" | 0 | 0n;
39
39
  export type Truthy<T> = T extends Falsey ? never : T;
40
40
  export declare function withoutFalsey<T>(xs: Array<T | Falsey>): T[];
41
+ import type { ErrorInfo } from "react";
42
+ interface ErrorBoundaryProps {
43
+ children?: React.ReactNode;
44
+ canvasEnvId?: number;
45
+ }
46
+ interface ErrorBoundaryState {
47
+ hasError: boolean;
48
+ errorInfo: string;
49
+ }
50
+ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
51
+ state: {
52
+ hasError: boolean;
53
+ errorInfo: string;
54
+ };
55
+ static getDerivedStateFromError(error: Error): {
56
+ hasError: boolean;
57
+ errorInfo: string;
58
+ };
59
+ componentDidCatch(error: any, errorInfo: ErrorInfo): void;
60
+ componentDidUpdate(prevProps: Readonly<ErrorBoundaryProps>, prevState: Readonly<ErrorBoundaryState>): void;
61
+ render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
62
+ }
41
63
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/plasmic-rich-components",
3
- "version": "1.0.103",
3
+ "version": "1.0.105",
4
4
  "description": "Rich batteries-included general purpose components for business apps, admin panels, etc.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,8 +30,8 @@
30
30
  "devDependencies": {
31
31
  "@ant-design/icons": "^5.0.1",
32
32
  "@ant-design/pro-components": "^2.4.1",
33
- "@plasmicapp/data-sources": "0.1.99",
34
- "@plasmicapp/host": "1.0.154",
33
+ "@plasmicapp/data-sources": "0.1.100",
34
+ "@plasmicapp/host": "1.0.155",
35
35
  "@rollup/plugin-commonjs": "^25.0.2",
36
36
  "@rollup/plugin-json": "^6.0.0",
37
37
  "@rollup/plugin-node-resolve": "^15.1.0",
@@ -62,5 +62,5 @@
62
62
  "lodash": "^4.17.21",
63
63
  "tinycolor2": "^1.6.0"
64
64
  },
65
- "gitHead": "98f55a13c36ec563fe7e8f286167d0c3f241fee8"
65
+ "gitHead": "42a3b90a6889c8a79948bf7e8900a1a363bc945d"
66
66
  }