@cleanweb/oore 2.0.0-alpha.32 → 2.0.0-alpha.34
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/build/_cjs/helpers/debounce/react-state.d.ts +1 -0
- package/build/_cjs/helpers/debounce/react-state.js +2 -0
- package/build/_cjs/slots/types.d.ts +3 -1
- package/build/helpers/debounce/react-state.d.ts +1 -0
- package/build/helpers/debounce/react-state.js +2 -0
- package/build/slots/types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -24,7 +24,9 @@ function useDebouncedState(init, config) {
|
|
|
24
24
|
_setter.flush = debouncedSetter.flush;
|
|
25
25
|
_setter.pause = () => setPaused(true);
|
|
26
26
|
_setter.resume = () => setPaused(false);
|
|
27
|
+
_setter.paused = paused;
|
|
27
28
|
return _setter;
|
|
28
29
|
}, [enableStaging, debouncedSetter]);
|
|
30
|
+
setter.paused = paused;
|
|
29
31
|
return [debouncedValue, setter, stagedValue];
|
|
30
32
|
}
|
|
@@ -85,7 +85,9 @@ export type SlottedComponent<TOwner extends object = ComponentType<any>, TSlots
|
|
|
85
85
|
Slots: TSlots;
|
|
86
86
|
requiredSlotAliases?: Array<keyof TSlots>;
|
|
87
87
|
};
|
|
88
|
-
export type TypedNode<P, T extends JSXTagLike
|
|
88
|
+
export type TypedNode<P, T extends JSXTagLike> = Omit<ReactElement<P>, 'type'> & {
|
|
89
|
+
type: T;
|
|
90
|
+
};
|
|
89
91
|
export type TSlotNode<TSlotted extends SlottedComponent, Key extends keyof TSlotted['Slots'] = keyof TSlotted['Slots']> = (TypedNode<ComponentProps<TSlotted['Slots'][Key]>, TSlotted['Slots'][Key]>);
|
|
90
92
|
/**
|
|
91
93
|
* A record of slot aliases mapped to the corresponding `ReactNode`(s)
|
|
@@ -21,7 +21,9 @@ export function useDebouncedState(init, config) {
|
|
|
21
21
|
_setter.flush = debouncedSetter.flush;
|
|
22
22
|
_setter.pause = () => setPaused(true);
|
|
23
23
|
_setter.resume = () => setPaused(false);
|
|
24
|
+
_setter.paused = paused;
|
|
24
25
|
return _setter;
|
|
25
26
|
}, [enableStaging, debouncedSetter]);
|
|
27
|
+
setter.paused = paused;
|
|
26
28
|
return [debouncedValue, setter, stagedValue];
|
|
27
29
|
}
|
package/build/slots/types.d.ts
CHANGED
|
@@ -85,7 +85,9 @@ export type SlottedComponent<TOwner extends object = ComponentType<any>, TSlots
|
|
|
85
85
|
Slots: TSlots;
|
|
86
86
|
requiredSlotAliases?: Array<keyof TSlots>;
|
|
87
87
|
};
|
|
88
|
-
export type TypedNode<P, T extends JSXTagLike
|
|
88
|
+
export type TypedNode<P, T extends JSXTagLike> = Omit<ReactElement<P>, 'type'> & {
|
|
89
|
+
type: T;
|
|
90
|
+
};
|
|
89
91
|
export type TSlotNode<TSlotted extends SlottedComponent, Key extends keyof TSlotted['Slots'] = keyof TSlotted['Slots']> = (TypedNode<ComponentProps<TSlotted['Slots'][Key]>, TSlotted['Slots'][Key]>);
|
|
90
92
|
/**
|
|
91
93
|
* A record of slot aliases mapped to the corresponding `ReactNode`(s)
|
package/package.json
CHANGED