@unhingged/vizu-react 0.1.22 → 0.1.23
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.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import { VizuOptions, VizuComment, Vizu, VizuAction, VizuEventName, VizuEventHandler, VizuUser } from '@unhingged/vizu-core';
|
|
4
4
|
export { Vizu, VizuAction, VizuComment, VizuEventHandler, VizuEventName, VizuOptions, VizuUser } from '@unhingged/vizu-core';
|
|
@@ -40,7 +40,7 @@ interface VizuLauncherProps {
|
|
|
40
40
|
* By default the pill hides itself while Vizu is active (Vizu's own toolbar
|
|
41
41
|
* takes over) and reappears when Vizu is disabled.
|
|
42
42
|
*/
|
|
43
|
-
declare function VizuLauncher({ label, position, offset, showCount, hideWhenActive, accent, zIndex, className, style, children, onToggle, }: VizuLauncherProps):
|
|
43
|
+
declare function VizuLauncher({ label, position, offset, showCount, hideWhenActive, accent, zIndex, className, style, children, onToggle, }: VizuLauncherProps): react.JSX.Element | null;
|
|
44
44
|
|
|
45
45
|
interface VizuProviderProps {
|
|
46
46
|
options?: VizuOptions;
|
|
@@ -51,7 +51,7 @@ interface VizuProviderProps {
|
|
|
51
51
|
* once and persists across re-renders. Pass options once at construction;
|
|
52
52
|
* imperative changes go through `useVizu()`.
|
|
53
53
|
*/
|
|
54
|
-
declare function VizuProvider({ options, children }: VizuProviderProps):
|
|
54
|
+
declare function VizuProvider({ options, children }: VizuProviderProps): react.JSX.Element;
|
|
55
55
|
/** Returns the Vizu instance. Throws if used outside a <VizuProvider>. */
|
|
56
56
|
declare function useVizu(): Vizu;
|
|
57
57
|
/** Subscribe to a Vizu event for the component's lifetime. Fire-and-forget. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import { VizuOptions, VizuComment, Vizu, VizuAction, VizuEventName, VizuEventHandler, VizuUser } from '@unhingged/vizu-core';
|
|
4
4
|
export { Vizu, VizuAction, VizuComment, VizuEventHandler, VizuEventName, VizuOptions, VizuUser } from '@unhingged/vizu-core';
|
|
@@ -40,7 +40,7 @@ interface VizuLauncherProps {
|
|
|
40
40
|
* By default the pill hides itself while Vizu is active (Vizu's own toolbar
|
|
41
41
|
* takes over) and reappears when Vizu is disabled.
|
|
42
42
|
*/
|
|
43
|
-
declare function VizuLauncher({ label, position, offset, showCount, hideWhenActive, accent, zIndex, className, style, children, onToggle, }: VizuLauncherProps):
|
|
43
|
+
declare function VizuLauncher({ label, position, offset, showCount, hideWhenActive, accent, zIndex, className, style, children, onToggle, }: VizuLauncherProps): react.JSX.Element | null;
|
|
44
44
|
|
|
45
45
|
interface VizuProviderProps {
|
|
46
46
|
options?: VizuOptions;
|
|
@@ -51,7 +51,7 @@ interface VizuProviderProps {
|
|
|
51
51
|
* once and persists across re-renders. Pass options once at construction;
|
|
52
52
|
* imperative changes go through `useVizu()`.
|
|
53
53
|
*/
|
|
54
|
-
declare function VizuProvider({ options, children }: VizuProviderProps):
|
|
54
|
+
declare function VizuProvider({ options, children }: VizuProviderProps): react.JSX.Element;
|
|
55
55
|
/** Returns the Vizu instance. Throws if used outside a <VizuProvider>. */
|
|
56
56
|
declare function useVizu(): Vizu;
|
|
57
57
|
/** Subscribe to a Vizu event for the component's lifetime. Fire-and-forget. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhingged/vizu-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "React bindings for @unhingged/vizu-core — VizuProvider, useVizu, useComments, useVizuUser, useVizuEvent.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react": ">=18"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@unhingged/vizu-core": "0.1.
|
|
33
|
+
"@unhingged/vizu-core": "^0.1.23"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@happy-dom/global-registrator": "^20.9.0",
|