@wavy/react-ui 0.0.52 → 0.0.54
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/main.d.ts +7 -2
- package/dist/main.js +8 -8
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -3332,7 +3332,11 @@ declare function useStore<T extends NonFunction<any>>(options: {
|
|
|
3332
3332
|
* @warning Attempting to store a function will throw an error.
|
|
3333
3333
|
*/
|
|
3334
3334
|
defaultValue: CastFn<T>;
|
|
3335
|
-
|
|
3335
|
+
/**
|
|
3336
|
+
* - `"lazy"` Allows you to call the upsert method once, and rejects all other upsert requests.
|
|
3337
|
+
* - `true` Doesn't allow any upsert requests.
|
|
3338
|
+
* */
|
|
3339
|
+
readOnly?: boolean | "lazy";
|
|
3336
3340
|
/**Re-renders the component when the value is changed
|
|
3337
3341
|
* @default false
|
|
3338
3342
|
*/
|
|
@@ -3358,6 +3362,7 @@ declare function useStore<T extends NonFunction<any>>(options: {
|
|
|
3358
3362
|
*/
|
|
3359
3363
|
onValidationFail?: (value: T) => void;
|
|
3360
3364
|
onChange?: (currentValue: T, previousValue: T) => void;
|
|
3365
|
+
onDelete?: (deletedValue: T, previousValue: T) => void;
|
|
3361
3366
|
/** Transform the updated value before the onChange method is called*/
|
|
3362
3367
|
transform?: (value: T) => T;
|
|
3363
3368
|
}): {
|
|
@@ -3374,7 +3379,7 @@ declare function useStore<T extends NonFunction<any>>(options: {
|
|
|
3374
3379
|
skipRender: boolean;
|
|
3375
3380
|
/** Skips the validate callback */
|
|
3376
3381
|
skipValidation: boolean;
|
|
3377
|
-
|
|
3382
|
+
skipTransform: boolean;
|
|
3378
3383
|
}>) => void;
|
|
3379
3384
|
read: () => T;
|
|
3380
3385
|
/** Completely removes all the stored data (including persisted data) */
|