@oliasoft-open-source/react-ui-library 9.5.0 → 9.5.1-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 CHANGED
@@ -1,5 +1,6 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  import { Color as Color_2 } from 'react-aria-components/ColorPicker';
3
+ import { ComponentType } from 'react';
3
4
  import { Context } from 'react';
4
5
  import { CSSProperties } from 'react';
5
6
  import { default as default_2 } from 'react';
@@ -2474,8 +2475,8 @@ declare type ViewType = typeof SPLIT_VIEW | typeof UNIFIED_VIEW;
2474
2475
 
2475
2476
  export declare const widthOfCharacters: (characterCount: number) => string;
2476
2477
 
2477
- export declare const withChainableErrorBoundary: (options?: ErrorBoundaryOptions) => <T extends default_2.JSXElementConstructor<any>>(Component: T) => T;
2478
+ export declare const withChainableErrorBoundary: (options?: ErrorBoundaryOptions) => <P extends object>(Component: ComponentType<P>) => ComponentType<P>;
2478
2479
 
2479
- export declare const withErrorBoundary: <T extends default_2.JSXElementConstructor<any>>(Component: T, options?: ErrorBoundaryOptions) => T;
2480
+ export declare const withErrorBoundary: <P extends object>(Component: ComponentType<P>, options?: ErrorBoundaryOptions) => ComponentType<P>;
2480
2481
 
2481
2482
  export { }
package/dist/index.js CHANGED
@@ -10152,10 +10152,16 @@ var Um = (e = {}) => Hm({
10152
10152
  console.error("Error caught by boundary:", e, t);
10153
10153
  },
10154
10154
  children: e
10155
- }), hh = (e, t = {}) => (n) => /* @__PURE__ */ S(mh, {
10156
- options: t,
10157
- children: /* @__PURE__ */ S(e, { ...n })
10158
- }), gh = (e = {}) => (t) => hh(t, e), _h = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, vh = (e) => {
10155
+ }), hh = (e, t = {}) => {
10156
+ var n, r;
10157
+ let i = (n) => /* @__PURE__ */ S(mh, {
10158
+ options: t,
10159
+ children: /* @__PURE__ */ S(e, { ...n })
10160
+ });
10161
+ i.displayName = `WithErrorBoundary(${(n = (r = e.displayName) == null ? e.name : r) == null ? "Component" : n})`;
10162
+ let a = c(i);
10163
+ return a.displayName = i.displayName, a;
10164
+ }, gh = (e = {}) => (t) => hh(t, e), _h = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, vh = (e) => {
10159
10165
  jp(Ep.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
10160
10166
  e === Ep.Translations ? jp(e, Op(t)) : jp(e, _h(t) ? t : { ...t });
10161
10167
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "9.5.0",
3
+ "version": "9.5.1-beta-1",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {