@oliasoft-open-source/react-ui-library 9.5.1-beta-2 → 9.5.1-beta-4
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 +14 -11
- 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
|
@@ -8476,9 +8476,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8476
8476
|
});
|
|
8477
8477
|
return c;
|
|
8478
8478
|
}, Yp = (e) => e.status === "deleted" ? Kp(e.row, Hp) : e.status === "added" ? Kp(e.row, Up) : qp(e.row, e.compareRow), Xp = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
|
|
8479
|
-
let i = h(() => Jp(e.rows, t), [e.rows, t]), a =
|
|
8480
|
-
if (!a) return i.map((e) => e.row);
|
|
8481
|
-
}, [a, i]), s = l(({ row: e, rowIndex: t }) => {
|
|
8479
|
+
let i = h(() => Jp(e.rows, t), [e.rows, t]), a = l(({ row: e, rowIndex: t }) => {
|
|
8482
8480
|
let r = i[t], a = r ? Yp(r) : e;
|
|
8483
8481
|
return n ? n({
|
|
8484
8482
|
row: a,
|
|
@@ -8487,12 +8485,13 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8487
8485
|
}, [i, n]);
|
|
8488
8486
|
return /* @__PURE__ */ S(nu, {
|
|
8489
8487
|
...r,
|
|
8490
|
-
beforeRenderRow:
|
|
8488
|
+
beforeRenderRow: a,
|
|
8491
8489
|
table: {
|
|
8492
8490
|
...e,
|
|
8493
|
-
rows:
|
|
8494
|
-
rowCount:
|
|
8495
|
-
striped: !1
|
|
8491
|
+
rows: void 0,
|
|
8492
|
+
rowCount: i.length,
|
|
8493
|
+
striped: !1,
|
|
8494
|
+
infiniteScroll: !0
|
|
8496
8495
|
}
|
|
8497
8496
|
});
|
|
8498
8497
|
};
|
|
@@ -10153,10 +10152,14 @@ var Um = (e = {}) => Hm({
|
|
|
10153
10152
|
console.error("Error caught by boundary:", e, t);
|
|
10154
10153
|
},
|
|
10155
10154
|
children: e
|
|
10156
|
-
}), hh = (e, t = {}) =>
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
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
|
+
return i.displayName = `WithErrorBoundary(${(n = (r = e.displayName) == null ? e.name : r) == null ? "Component" : n})`, c(i);
|
|
10162
|
+
}, gh = (e = {}) => (t) => hh(t, e), _h = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, vh = (e) => {
|
|
10160
10163
|
jp(Ep.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
10161
10164
|
e === Ep.Translations ? jp(e, Op(t)) : jp(e, _h(t) ? t : { ...t });
|
|
10162
10165
|
});
|
package/package.json
CHANGED