@webority/ui-react 0.9.22 → 0.10.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/dist/types/components/useWuiControl.d.ts +1 -4
- package/dist/ui-react.js +1063 -5347
- package/package.json +3 -3
- package/dist/examples.mobile.json-BMXTGiGC-Dl_Tt3py.js +0 -250
- package/dist/max-BDKx469G-7aEpYZ9J.js +0 -14310
- /package/dist/{i2.g-DWVVpm1e.js → i.g-DWVVpm1e.js} +0 -0
- /package/dist/{i.g-C_oEIf4M.js → i2.g-C_oEIf4M.js} +0 -0
- /package/dist/{j2.g-CTjAiDOh.js → j.g-CTjAiDOh.js} +0 -0
- /package/dist/{j.g-BPszpMm1.js → j2.g-BPszpMm1.js} +0 -0
- /package/dist/{u2.g-jofx4B7Z.js → u.g-jofx4B7Z.js} +0 -0
- /package/dist/{u.g-CT36EKae.js → u2.g-CT36EKae.js} +0 -0
- /package/dist/{v2.g-8HuxnCvA.js → v.g-8HuxnCvA.js} +0 -0
- /package/dist/{v.g-D4qP1UQ0.js → v2.g-D4qP1UQ0.js} +0 -0
|
@@ -35,11 +35,9 @@
|
|
|
35
35
|
* survives-element-recreation lifecycle as the change listeners. Handlers always see the
|
|
36
36
|
* latest render's callbacks; the map's KEYS must be stable across renders (the values may
|
|
37
37
|
* be fresh closures).
|
|
38
|
-
* @param {unknown[]} [opts.syncDeps] Extra deps that should re-run the write effect
|
|
39
|
-
* (rarely needed — prefer baking state into `value`).
|
|
40
38
|
* @returns {{ setRef: (el: HTMLElement | null) => void, innerRef: import('react').MutableRefObject<HTMLElement | null> }}
|
|
41
39
|
*/
|
|
42
|
-
export default function useWuiControl({ ref, value, onChange, readValue, writeValue, events, on
|
|
40
|
+
export default function useWuiControl({ ref, value, onChange, readValue, writeValue, events, on }?: {
|
|
43
41
|
ref?: import('react').Ref<HTMLElement>;
|
|
44
42
|
value?: unknown;
|
|
45
43
|
onChange?: (value: unknown) => void;
|
|
@@ -47,7 +45,6 @@ export default function useWuiControl({ ref, value, onChange, readValue, writeVa
|
|
|
47
45
|
writeValue?: (el: HTMLElement, value: unknown) => void;
|
|
48
46
|
events?: string[];
|
|
49
47
|
on?: Record<string, (e: Event) => void>;
|
|
50
|
-
syncDeps?: unknown[];
|
|
51
48
|
}): {
|
|
52
49
|
setRef: (el: HTMLElement | null) => void;
|
|
53
50
|
innerRef: import('react').MutableRefObject<HTMLElement | null>;
|