@oliasoft-open-source/react-ui-library 9.5.1 → 9.5.2-beta-1
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 +8 -2
- package/dist/index.js +8 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
2
|
import { Color as Color_2 } from 'react-aria-components/ColorPicker';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
import { ComponentType } from 'react';
|
|
3
5
|
import { Context } from 'react';
|
|
4
6
|
import { CSSProperties } from 'react';
|
|
5
7
|
import { default as default_2 } from 'react';
|
|
@@ -14,6 +16,7 @@ import { Id } from 'react-toastify';
|
|
|
14
16
|
import { JSX } from 'react/jsx-runtime';
|
|
15
17
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
16
18
|
import { KeyboardEventHandler } from 'react';
|
|
19
|
+
import { MemoExoticComponent } from 'react';
|
|
17
20
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
18
21
|
import { MouseEventHandler } from 'react';
|
|
19
22
|
import { MutableRefObject } from 'react';
|
|
@@ -2474,8 +2477,11 @@ declare type ViewType = typeof SPLIT_VIEW | typeof UNIFIED_VIEW;
|
|
|
2474
2477
|
|
|
2475
2478
|
export declare const widthOfCharacters: (characterCount: number) => string;
|
|
2476
2479
|
|
|
2477
|
-
export declare const withChainableErrorBoundary: (options?: ErrorBoundaryOptions) => <
|
|
2480
|
+
export declare const withChainableErrorBoundary: (options?: ErrorBoundaryOptions) => <P extends object>(Component: ComponentType<P>) => ComponentType<P>;
|
|
2478
2481
|
|
|
2479
|
-
export declare const withErrorBoundary: <T extends
|
|
2482
|
+
export declare const withErrorBoundary: <T extends ComponentType<any>>(Component: T, options?: ErrorBoundaryOptions) => MemoExoticComponent<{
|
|
2483
|
+
(props: ComponentProps<T>): JSX.Element;
|
|
2484
|
+
displayName: string;
|
|
2485
|
+
}>;
|
|
2480
2486
|
|
|
2481
2487
|
export { }
|
package/dist/index.js
CHANGED
|
@@ -10153,10 +10153,14 @@ var Wm = (e = {}) => Um({
|
|
|
10153
10153
|
console.error("Error caught by boundary:", e, t);
|
|
10154
10154
|
},
|
|
10155
10155
|
children: e
|
|
10156
|
-
}), gh = (e, t = {}) =>
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10156
|
+
}), gh = (e, t = {}) => {
|
|
10157
|
+
var n, r;
|
|
10158
|
+
let i = (n) => /* @__PURE__ */ S(hh, {
|
|
10159
|
+
options: t,
|
|
10160
|
+
children: /* @__PURE__ */ S(e, { ...n })
|
|
10161
|
+
});
|
|
10162
|
+
return i.displayName = `WithErrorBoundary(${(n = (r = e.displayName) == null ? e.name : r) == null ? "Component" : n})`, c(i);
|
|
10163
|
+
}, _h = (e = {}) => (t) => gh(t, e), vh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, yh = (e) => {
|
|
10160
10164
|
jp(Ep.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
10161
10165
|
e === Ep.Translations ? jp(e, Op(t)) : jp(e, vh(t) ? t : { ...t });
|
|
10162
10166
|
});
|
package/package.json
CHANGED