@oliasoft-open-source/react-ui-library 9.5.2-beta-4 → 9.5.2-beta-5

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
@@ -2479,13 +2479,10 @@ export declare const widthOfCharacters: (characterCount: number) => string;
2479
2479
 
2480
2480
  export declare const withChainableErrorBoundary: (options?: ErrorBoundaryOptions) => <P extends object>(Component: ComponentType<P>) => ComponentType<P>;
2481
2481
 
2482
- export declare function WithErrorBoundary<P extends object>({ Component, options, ...props }: WithErrorBoundaryProps<P>): JSX.Element;
2482
+ export declare const withErrorBoundary: <T extends ComponentType<any>>(Component: T, options?: ErrorBoundaryOptions) => (props: ComponentProps<T>) => JSX.Element;
2483
2483
 
2484
- export declare const withErrorBoundary: <T extends ComponentType<any>>(Component: T, options?: ErrorBoundaryOptions) => MemoExoticComponent<(props: ComponentProps<T>) => JSX.Element>;
2484
+ export declare const withErrorBoundaryv2: <T extends ComponentType<any>>(Component: T, options?: ErrorBoundaryOptions) => MemoExoticComponent<(props: ComponentProps<T>) => JSX.Element>;
2485
2485
 
2486
- declare type WithErrorBoundaryProps<P extends object> = P & {
2487
- Component: ComponentType<P>;
2488
- options?: ErrorBoundaryOptions;
2489
- };
2486
+ export declare function withErrorBoundaryv3<P extends object>(Component: ComponentType<P>, options?: ErrorBoundaryOptions): ComponentType<P>;
2490
2487
 
2491
2488
  export { }
package/dist/index.js CHANGED
@@ -10153,22 +10153,28 @@ var Wm = (e = {}) => Um({
10153
10153
  console.error("Error caught by boundary:", e, t);
10154
10154
  },
10155
10155
  children: e
10156
- }), gh = (e, t = {}) => c((n) => /* @__PURE__ */ S(hh, {
10156
+ }), gh = (e, t = {}) => (n) => /* @__PURE__ */ S(hh, {
10157
10157
  options: t,
10158
10158
  children: /* @__PURE__ */ S(e, { ...n })
10159
- })), _h = (e = {}) => (t) => gh(t, e);
10160
- function vh({ Component: e, options: t, ...n }) {
10161
- return /* @__PURE__ */ S(hh, {
10162
- options: t,
10163
- children: /* @__PURE__ */ S(e, { ...n })
10164
- });
10159
+ }), _h = (e = {}) => (t) => gh(t, e), vh = (e, t = {}) => c((n) => /* @__PURE__ */ S(hh, {
10160
+ options: t,
10161
+ children: /* @__PURE__ */ S(e, { ...n })
10162
+ }));
10163
+ function yh(e, t = {}) {
10164
+ function n(n) {
10165
+ return /* @__PURE__ */ S(hh, {
10166
+ options: t,
10167
+ children: /* @__PURE__ */ S(e, { ...n })
10168
+ });
10169
+ }
10170
+ return n;
10165
10171
  }
10166
10172
  //#endregion
10167
10173
  //#region src/translations/initialize-gui-library.ts
10168
- var yh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, bh = (e) => {
10174
+ var bh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, xh = (e) => {
10169
10175
  jp(Ep.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
10170
- e === Ep.Translations ? jp(e, Op(t)) : jp(e, yh(t) ? t : { ...t });
10176
+ e === Ep.Translations ? jp(e, Op(t)) : jp(e, bh(t) ? t : { ...t });
10171
10177
  });
10172
10178
  };
10173
10179
  //#endregion
10174
- export { Yi as Accordion, _a as AccordionWithDefaultToggle, po as Actions, Di as Align, dh as AuditLog, ro as Badge, _o as Breadcrumb, ho as BreadcrumbLinkType, q as Button, yo as ButtonGroup, Oi as ButtonPosition, xa as ButtonType, xo as Card, pa as CheckBox, Ui as Chevron, Ki as Collapse, Ei as Color, Ho as ColorInput, Vo as ColorInputPopover, qo as Column, is as Dialog, Zp as DiffTable, Vp as DiffViewer, W as DisabledContext, Qo as Divider, ds as Drawer, rp as ElementType, pu as Empty, hh as ErrorBoundary, yd as Field, hd as FileButton, xs as FileInput, bd as Flex, Sd as FormRow, Do as Grid, H as GroupOrder, ts as Heading, fa as HelpIcon, G as Icon, U as IconType, gs as Input, ms as InputGroup, cl as InputGroupAddon, vs as InputReaderMethods, ji as InputType, _d as Label, Fd as List, wd as ListHeading, Ad as ListSubheading, Ld as Loader, mf as Mention, uo as Menu, qa as MenuCarat, Ka as MenuType, Ks as Message, Bs as MessageType, Es as Modal, Qs as NativeSelect, xl as NumberInput, Wd as OptionDropdown, Kd as Page, ll as Pagination, lp as PopConfirm, Co as Popover, qd as Portal, Yd as PrintHeader, ks as ProgressBar, Xd as RadioButton, pf as RichTextInput, gf as Row, nl as Select, Lp as SettingField, xf as SideBar, Cf as Skeleton, jl as Slider, Ps as SmartUploadModal, Ss as Spacer, ba as Spinner, nu as Table, md as TableImportExport, Xf as Tabs, Xo as Text, $f as TextArea, Zf as TextLink, ki as TextTransform, Ai as Theme, ri as Toaster, Qu as Toggle, K as Tooltip, op as TopBar, pp as Tree, Tp as TreeTable, Ti as TriggerType, Uf as UnitInput, qf as UnitSlider, Fp as UnitTable, fh as UsageTracker, vh as WithErrorBoundary, Yu as dismissToast, Bf as initializeContext, bh as initializeGuiLibrary, ys as readFile, Ju as toast, $s as useFocus, Cs as useKeyboardEvent, nc as useWindowWidth, _h as withChainableErrorBoundary, gh as withErrorBoundary };
10180
+ export { Yi as Accordion, _a as AccordionWithDefaultToggle, po as Actions, Di as Align, dh as AuditLog, ro as Badge, _o as Breadcrumb, ho as BreadcrumbLinkType, q as Button, yo as ButtonGroup, Oi as ButtonPosition, xa as ButtonType, xo as Card, pa as CheckBox, Ui as Chevron, Ki as Collapse, Ei as Color, Ho as ColorInput, Vo as ColorInputPopover, qo as Column, is as Dialog, Zp as DiffTable, Vp as DiffViewer, W as DisabledContext, Qo as Divider, ds as Drawer, rp as ElementType, pu as Empty, hh as ErrorBoundary, yd as Field, hd as FileButton, xs as FileInput, bd as Flex, Sd as FormRow, Do as Grid, H as GroupOrder, ts as Heading, fa as HelpIcon, G as Icon, U as IconType, gs as Input, ms as InputGroup, cl as InputGroupAddon, vs as InputReaderMethods, ji as InputType, _d as Label, Fd as List, wd as ListHeading, Ad as ListSubheading, Ld as Loader, mf as Mention, uo as Menu, qa as MenuCarat, Ka as MenuType, Ks as Message, Bs as MessageType, Es as Modal, Qs as NativeSelect, xl as NumberInput, Wd as OptionDropdown, Kd as Page, ll as Pagination, lp as PopConfirm, Co as Popover, qd as Portal, Yd as PrintHeader, ks as ProgressBar, Xd as RadioButton, pf as RichTextInput, gf as Row, nl as Select, Lp as SettingField, xf as SideBar, Cf as Skeleton, jl as Slider, Ps as SmartUploadModal, Ss as Spacer, ba as Spinner, nu as Table, md as TableImportExport, Xf as Tabs, Xo as Text, $f as TextArea, Zf as TextLink, ki as TextTransform, Ai as Theme, ri as Toaster, Qu as Toggle, K as Tooltip, op as TopBar, pp as Tree, Tp as TreeTable, Ti as TriggerType, Uf as UnitInput, qf as UnitSlider, Fp as UnitTable, fh as UsageTracker, Yu as dismissToast, Bf as initializeContext, xh as initializeGuiLibrary, ys as readFile, Ju as toast, $s as useFocus, Cs as useKeyboardEvent, nc as useWindowWidth, _h as withChainableErrorBoundary, gh as withErrorBoundary, vh as withErrorBoundaryv2, yh as withErrorBoundaryv3 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "9.5.2-beta-4",
3
+ "version": "9.5.2-beta-5",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {