@diceui/shared
Advanced tools
+10
-3
@@ -57,3 +57,3 @@ import * as React from 'react'; | ||
| */ | ||
| container?: HTMLElement | DocumentFragment | null; | ||
| container?: Element | DocumentFragment | null; | ||
| } | ||
@@ -650,3 +650,10 @@ declare const Portal: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<HTMLDivElement>>; | ||
| type ForwardRefComponent<T, P = {}> = React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>; | ||
| type WithForwardedRef<T> = { | ||
| ref?: React.ForwardedRef<T>; | ||
| }; | ||
| interface WithDisplayName { | ||
| displayName?: string; | ||
| } | ||
| interface ForwardRefComponent<T, P = {}> extends React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T> & WithDisplayName> { | ||
| } | ||
| declare function forwardRef<T, P = {}>(render: React.ForwardRefRenderFunction<T, React.PropsWithoutRef<P>>): ForwardRefComponent<T, P>; | ||
@@ -697,2 +704,2 @@ | ||
| export { type Align, type AnchorPositionerProps, type CollectionGroupMap, type CollectionItem, type CollectionItemMap, DATA_DISMISSABLE_LAYER_ATTR, DATA_DISMISSABLE_LAYER_STYLE_ATTR, DATA_ITEM_ATTR, DATA_VALUE_ATTR, type Direction, type FilterStore, type FocusOutsideEvent, type ForwardRefComponent, type HighlightingDirection, type Orientation, type PointerDownOutsideEvent, Portal, type PortalProps, Presence, type PresenceProps, Primitive, type PrimitivePropsWithRef, type ProgressState, type Side, Slot, type SlotProps, Slottable, VAR_ANCHOR_HEIGHT, VAR_ANCHOR_WIDTH, VAR_AVAILABLE_HEIGHT, VAR_AVAILABLE_WIDTH, VAR_TRANSFORM_ORIGIN, VisuallyHiddenInput, center, compareNodePosition, composeEventHandlers, composeRefs, createContext, dispatchDiscreteCustomEvent, findNextItem, focusRing, forwardRef, fullSize, getOwnerDocument, getOwnerWindow, getPlatform, getProgressState, isFirefox, isIOS, isIPad, isIPhone, isMac, isMobileFirefox, isPinchZoomActive, isSafari, noSelect, overlay, scrollableHidden, testPlatform, truncate, useAnchor, useAnchorPositioner, useCallbackRef, useCollection, useComposedRefs, useControllableState, useDirection, useDismiss, useEscapeKeydown, useEvent, useEventCallback, useFilter, useFilterStore, useFormControl, useFormReset, useId, useIsomorphicLayoutEffect, useItemCollection, useLabel, useLayoutEffect, useListHighlighting, useMounted, usePrevious, useProgress, useScrollLock, useSize, useStateMachine, useTypeahead, visuallyHidden, wrapArray }; | ||
| export { type Align, type AnchorPositionerProps, type CollectionGroupMap, type CollectionItem, type CollectionItemMap, DATA_DISMISSABLE_LAYER_ATTR, DATA_DISMISSABLE_LAYER_STYLE_ATTR, DATA_ITEM_ATTR, DATA_VALUE_ATTR, type Direction, type FilterStore, type FocusOutsideEvent, type ForwardRefComponent, type HighlightingDirection, type Orientation, type PointerDownOutsideEvent, Portal, type PortalProps, Presence, type PresenceProps, Primitive, type PrimitivePropsWithRef, type ProgressState, type Side, Slot, type SlotProps, Slottable, VAR_ANCHOR_HEIGHT, VAR_ANCHOR_WIDTH, VAR_AVAILABLE_HEIGHT, VAR_AVAILABLE_WIDTH, VAR_TRANSFORM_ORIGIN, VisuallyHiddenInput, type WithDisplayName, type WithForwardedRef, center, compareNodePosition, composeEventHandlers, composeRefs, createContext, dispatchDiscreteCustomEvent, findNextItem, focusRing, forwardRef, fullSize, getOwnerDocument, getOwnerWindow, getPlatform, getProgressState, isFirefox, isIOS, isIPad, isIPhone, isMac, isMobileFirefox, isPinchZoomActive, isSafari, noSelect, overlay, scrollableHidden, testPlatform, truncate, useAnchor, useAnchorPositioner, useCallbackRef, useCollection, useComposedRefs, useControllableState, useDirection, useDismiss, useEscapeKeydown, useEvent, useEventCallback, useFilter, useFilterStore, useFormControl, useFormReset, useId, useIsomorphicLayoutEffect, useItemCollection, useLabel, useLayoutEffect, useListHighlighting, useMounted, usePrevious, useProgress, useScrollLock, useSize, useStateMachine, useTypeahead, visuallyHidden, wrapArray }; |
+10
-3
@@ -57,3 +57,3 @@ import * as React from 'react'; | ||
| */ | ||
| container?: HTMLElement | DocumentFragment | null; | ||
| container?: Element | DocumentFragment | null; | ||
| } | ||
@@ -650,3 +650,10 @@ declare const Portal: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<HTMLDivElement>>; | ||
| type ForwardRefComponent<T, P = {}> = React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>; | ||
| type WithForwardedRef<T> = { | ||
| ref?: React.ForwardedRef<T>; | ||
| }; | ||
| interface WithDisplayName { | ||
| displayName?: string; | ||
| } | ||
| interface ForwardRefComponent<T, P = {}> extends React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T> & WithDisplayName> { | ||
| } | ||
| declare function forwardRef<T, P = {}>(render: React.ForwardRefRenderFunction<T, React.PropsWithoutRef<P>>): ForwardRefComponent<T, P>; | ||
@@ -697,2 +704,2 @@ | ||
| export { type Align, type AnchorPositionerProps, type CollectionGroupMap, type CollectionItem, type CollectionItemMap, DATA_DISMISSABLE_LAYER_ATTR, DATA_DISMISSABLE_LAYER_STYLE_ATTR, DATA_ITEM_ATTR, DATA_VALUE_ATTR, type Direction, type FilterStore, type FocusOutsideEvent, type ForwardRefComponent, type HighlightingDirection, type Orientation, type PointerDownOutsideEvent, Portal, type PortalProps, Presence, type PresenceProps, Primitive, type PrimitivePropsWithRef, type ProgressState, type Side, Slot, type SlotProps, Slottable, VAR_ANCHOR_HEIGHT, VAR_ANCHOR_WIDTH, VAR_AVAILABLE_HEIGHT, VAR_AVAILABLE_WIDTH, VAR_TRANSFORM_ORIGIN, VisuallyHiddenInput, center, compareNodePosition, composeEventHandlers, composeRefs, createContext, dispatchDiscreteCustomEvent, findNextItem, focusRing, forwardRef, fullSize, getOwnerDocument, getOwnerWindow, getPlatform, getProgressState, isFirefox, isIOS, isIPad, isIPhone, isMac, isMobileFirefox, isPinchZoomActive, isSafari, noSelect, overlay, scrollableHidden, testPlatform, truncate, useAnchor, useAnchorPositioner, useCallbackRef, useCollection, useComposedRefs, useControllableState, useDirection, useDismiss, useEscapeKeydown, useEvent, useEventCallback, useFilter, useFilterStore, useFormControl, useFormReset, useId, useIsomorphicLayoutEffect, useItemCollection, useLabel, useLayoutEffect, useListHighlighting, useMounted, usePrevious, useProgress, useScrollLock, useSize, useStateMachine, useTypeahead, visuallyHidden, wrapArray }; | ||
| export { type Align, type AnchorPositionerProps, type CollectionGroupMap, type CollectionItem, type CollectionItemMap, DATA_DISMISSABLE_LAYER_ATTR, DATA_DISMISSABLE_LAYER_STYLE_ATTR, DATA_ITEM_ATTR, DATA_VALUE_ATTR, type Direction, type FilterStore, type FocusOutsideEvent, type ForwardRefComponent, type HighlightingDirection, type Orientation, type PointerDownOutsideEvent, Portal, type PortalProps, Presence, type PresenceProps, Primitive, type PrimitivePropsWithRef, type ProgressState, type Side, Slot, type SlotProps, Slottable, VAR_ANCHOR_HEIGHT, VAR_ANCHOR_WIDTH, VAR_AVAILABLE_HEIGHT, VAR_AVAILABLE_WIDTH, VAR_TRANSFORM_ORIGIN, VisuallyHiddenInput, type WithDisplayName, type WithForwardedRef, center, compareNodePosition, composeEventHandlers, composeRefs, createContext, dispatchDiscreteCustomEvent, findNextItem, focusRing, forwardRef, fullSize, getOwnerDocument, getOwnerWindow, getPlatform, getProgressState, isFirefox, isIOS, isIPad, isIPhone, isMac, isMobileFirefox, isPinchZoomActive, isSafari, noSelect, overlay, scrollableHidden, testPlatform, truncate, useAnchor, useAnchorPositioner, useCallbackRef, useCollection, useComposedRefs, useControllableState, useDirection, useDismiss, useEscapeKeydown, useEvent, useEventCallback, useFilter, useFilterStore, useFormControl, useFormReset, useId, useIsomorphicLayoutEffect, useItemCollection, useLabel, useLayoutEffect, useListHighlighting, useMounted, usePrevious, useProgress, useScrollLock, useSize, useStateMachine, useTypeahead, visuallyHidden, wrapArray }; |
+6
-1
@@ -1517,3 +1517,8 @@ import * as React32 from 'react'; | ||
| function forwardRef2(render) { | ||
| return React32.forwardRef(render); | ||
| return Object.assign( | ||
| React32.forwardRef(render), | ||
| { | ||
| displayName: render.displayName ?? render.name | ||
| } | ||
| ); | ||
| } | ||
@@ -1520,0 +1525,0 @@ |
+1
-1
| { | ||
| "name": "@diceui/shared", | ||
| "version": "0.11.0", | ||
| "version": "0.12.0", | ||
| "publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
184732
0.31%4557
0.37%