@ikonai/sdk-react-ui-standard 1.0.44 → 1.0.45
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/components/file-picker.d.ts +2 -0
- package/index.js +10585 -10449
- package/package.json +1 -1
- package/standard-core.d.ts +14 -6
- package/utils/file-picker-store.d.ts +5 -0
package/package.json
CHANGED
package/standard-core.d.ts
CHANGED
|
@@ -67,14 +67,22 @@ export declare function useOptimisticState<T>(serverValue: T | undefined, defaul
|
|
|
67
67
|
*/
|
|
68
68
|
export declare function useOptimisticArrayState<T>(serverValue: T[] | undefined, defaultValue: T[], onChange?: (value: T[]) => void): [T[], (value: T[]) => void, boolean];
|
|
69
69
|
/**
|
|
70
|
-
* Hook for optimistic text input
|
|
71
|
-
* Provides immediate visual feedback when users type, while debouncing server dispatches
|
|
72
|
-
* to reduce network traffic.
|
|
70
|
+
* Hook for optimistic text input.
|
|
73
71
|
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
72
|
+
* Dispatches user keystrokes synchronously on every change (default) so reactive variables
|
|
73
|
+
* and downstream UI observers update in real-time. The input box itself is protected from
|
|
74
|
+
* server echo-back by a focus guard and a divergence guard.
|
|
75
|
+
*
|
|
76
|
+
* IME composition: while the user is composing (CJK, dead keys, accents), local value
|
|
77
|
+
* updates but dispatch is suppressed. The committed value is dispatched once on compositionend.
|
|
78
|
+
*
|
|
79
|
+
* Opt-in coalescing: pass debounceMs > 0 for search-style inputs that want to reduce
|
|
80
|
+
* dispatch traffic. Default 0 = synchronous.
|
|
81
|
+
*
|
|
82
|
+
* @param serverValue - Controlled value from the server (undefined means uncontrolled)
|
|
83
|
+
* @param defaultValue - Default value for uncontrolled mode
|
|
76
84
|
* @param onChange - Optional callback when value changes (dispatches to server)
|
|
77
|
-
* @param debounceMs -
|
|
85
|
+
* @param debounceMs - Optional debounce delay (default 0 = immediate)
|
|
78
86
|
* @returns Tuple of [currentValue, setValue, flush, isPending, inputRef]
|
|
79
87
|
*/
|
|
80
88
|
export declare function useOptimisticTextState(serverValue: string | undefined, defaultValue: string, onChange?: (value: string) => void, debounceMs?: number): [string, (value: string) => void, () => void, boolean, React.RefObject<HTMLInputElement | HTMLTextAreaElement | null>];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function stashSelection(id: string, file: File): void;
|
|
2
|
+
export declare function takeSelection(id: string): File | undefined;
|
|
3
|
+
export declare function peekSelection(id: string): File | undefined;
|
|
4
|
+
export declare function hasSelection(id: string): boolean;
|
|
5
|
+
export declare function dropSelection(id: string): void;
|