@pnkx-lib/ui 1.7.8 → 1.8.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/es/chunks/{ErrorBoundary-CeATB599.js → ErrorBoundary-BxrzfgtL.js} +3 -2
- package/es/index.js +1 -1
- package/es/ui/index.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +10 -26
- package/types/ui.d.ts +10 -26
@@ -12606,7 +12606,7 @@ const ConfirmModal = ({
|
|
12606
12606
|
] }) });
|
12607
12607
|
};
|
12608
12608
|
|
12609
|
-
|
12609
|
+
class ErrorBoundaryClass extends Component {
|
12610
12610
|
constructor(props) {
|
12611
12611
|
super(props);
|
12612
12612
|
this.state = {
|
@@ -12645,7 +12645,8 @@ const ErrorBoundary = class extends Component {
|
|
12645
12645
|
}
|
12646
12646
|
return this.props.children;
|
12647
12647
|
}
|
12648
|
-
}
|
12648
|
+
}
|
12649
|
+
const ErrorBoundary = ErrorBoundaryClass;
|
12649
12650
|
const styles = {
|
12650
12651
|
container: {
|
12651
12652
|
padding: "40px",
|
package/es/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from './chunks/ErrorBoundary-
|
1
|
+
export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from './chunks/ErrorBoundary-BxrzfgtL.js';
|
2
2
|
export { D as DatePickerField, E as ErrorMessage, I as Input, L as Label, P as PnkxField, R as RangePickerField, a as TinyMCE, T as Typography } from './chunks/Switch-eMq9KkOy.js';
|
3
3
|
export { C as CheckboxField, R as RadioGroup, S as Select } from './chunks/Checkbox-CJ_M7IzZ.js';
|
4
4
|
export { u as useToast } from './chunks/cloneDeep-BLYi2V0G.js';
|
package/es/ui/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from '../chunks/ErrorBoundary-
|
1
|
+
export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from '../chunks/ErrorBoundary-BxrzfgtL.js';
|
2
2
|
export { E as ErrorMessage, L as Label, T as Typography } from '../chunks/Switch-eMq9KkOy.js';
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
@@ -18,6 +18,7 @@ import { CollapseProps } from 'antd';
|
|
18
18
|
import { ColorPickerProps } from 'antd';
|
19
19
|
import { ColProps as ColProps_2 } from 'antd';
|
20
20
|
import { ColSize } from 'antd/es/grid';
|
21
|
+
import { Component } from 'react';
|
21
22
|
import { Control } from 'react-hook-form';
|
22
23
|
import { ControllerFieldState } from 'react-hook-form';
|
23
24
|
import { ControllerRenderProps } from 'react-hook-form';
|
@@ -326,32 +327,15 @@ export declare const Empty: React.FC<EmptyProps>;
|
|
326
327
|
|
327
328
|
export declare type EmptyProps = EmptyProps_2;
|
328
329
|
|
329
|
-
export declare const ErrorBoundary:
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
state: Readonly<ErrorBoundaryState>;
|
339
|
-
componentDidMount?(): void;
|
340
|
-
shouldComponentUpdate?(nextProps: Readonly<ErrorBoundaryProps>, nextState: Readonly<ErrorBoundaryState>, nextContext: any): boolean;
|
341
|
-
componentWillUnmount?(): void;
|
342
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<ErrorBoundaryProps>, prevState: Readonly<ErrorBoundaryState>): any;
|
343
|
-
componentDidUpdate?(prevProps: Readonly<ErrorBoundaryProps>, prevState: Readonly<ErrorBoundaryState>, snapshot?: any): void;
|
344
|
-
componentWillMount?(): void;
|
345
|
-
UNSAFE_componentWillMount?(): void;
|
346
|
-
componentWillReceiveProps?(nextProps: Readonly<ErrorBoundaryProps>, nextContext: any): void;
|
347
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<ErrorBoundaryProps>, nextContext: any): void;
|
348
|
-
componentWillUpdate?(nextProps: Readonly<ErrorBoundaryProps>, nextState: Readonly<ErrorBoundaryState>, nextContext: any): void;
|
349
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<ErrorBoundaryProps>, nextState: Readonly<ErrorBoundaryState>, nextContext: any): void;
|
350
|
-
};
|
351
|
-
getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
352
|
-
contextType?: default_2.Context<any> | undefined;
|
353
|
-
propTypes?: any;
|
354
|
-
};
|
330
|
+
export declare const ErrorBoundary: typeof ErrorBoundaryClass;
|
331
|
+
|
332
|
+
declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
333
|
+
constructor(props: ErrorBoundaryProps);
|
334
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
335
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
336
|
+
handleReload: () => void;
|
337
|
+
render(): default_2.ReactNode;
|
338
|
+
}
|
355
339
|
|
356
340
|
export declare interface ErrorBoundaryProps {
|
357
341
|
children: ReactNode;
|
package/types/ui.d.ts
CHANGED
@@ -15,6 +15,7 @@ import { CollapseProps } from 'antd';
|
|
15
15
|
import { ColorPickerProps } from 'antd';
|
16
16
|
import { ColProps as ColProps_2 } from 'antd';
|
17
17
|
import { ColSize } from 'antd/es/grid';
|
18
|
+
import { Component } from 'react';
|
18
19
|
import { Control } from 'react-hook-form';
|
19
20
|
import { default as default_2 } from 'react';
|
20
21
|
import { default as default_3 } from 'antd/es/anchor/AnchorLink';
|
@@ -272,32 +273,15 @@ export declare const Empty: React.FC<EmptyProps>;
|
|
272
273
|
|
273
274
|
export declare type EmptyProps = EmptyProps_2;
|
274
275
|
|
275
|
-
export declare const ErrorBoundary:
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
state: Readonly<ErrorBoundaryState>;
|
285
|
-
componentDidMount?(): void;
|
286
|
-
shouldComponentUpdate?(nextProps: Readonly<ErrorBoundaryProps>, nextState: Readonly<ErrorBoundaryState>, nextContext: any): boolean;
|
287
|
-
componentWillUnmount?(): void;
|
288
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<ErrorBoundaryProps>, prevState: Readonly<ErrorBoundaryState>): any;
|
289
|
-
componentDidUpdate?(prevProps: Readonly<ErrorBoundaryProps>, prevState: Readonly<ErrorBoundaryState>, snapshot?: any): void;
|
290
|
-
componentWillMount?(): void;
|
291
|
-
UNSAFE_componentWillMount?(): void;
|
292
|
-
componentWillReceiveProps?(nextProps: Readonly<ErrorBoundaryProps>, nextContext: any): void;
|
293
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<ErrorBoundaryProps>, nextContext: any): void;
|
294
|
-
componentWillUpdate?(nextProps: Readonly<ErrorBoundaryProps>, nextState: Readonly<ErrorBoundaryState>, nextContext: any): void;
|
295
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<ErrorBoundaryProps>, nextState: Readonly<ErrorBoundaryState>, nextContext: any): void;
|
296
|
-
};
|
297
|
-
getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
298
|
-
contextType?: default_2.Context<any> | undefined;
|
299
|
-
propTypes?: any;
|
300
|
-
};
|
276
|
+
export declare const ErrorBoundary: typeof ErrorBoundaryClass;
|
277
|
+
|
278
|
+
declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
279
|
+
constructor(props: ErrorBoundaryProps);
|
280
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
281
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
282
|
+
handleReload: () => void;
|
283
|
+
render(): default_2.ReactNode;
|
284
|
+
}
|
301
285
|
|
302
286
|
export declare interface ErrorBoundaryProps {
|
303
287
|
children: ReactNode;
|