@diceui/mention
Advanced tools
+3
-3
@@ -216,3 +216,3 @@ 'use client'; | ||
| /* @__PURE__ */ React4__namespace.createElement(shared.Primitive.div, { ref: composedRef, ...rootProps }, children, isFormControl && name && /* @__PURE__ */ React4__namespace.createElement( | ||
| shared.BubbleInput, | ||
| shared.VisuallyHiddenInput, | ||
| { | ||
@@ -1268,6 +1268,6 @@ type: "hidden", | ||
| { | ||
| ...{ [shared.DATA_ITEM_ATTR]: "" }, | ||
| role: "option", | ||
| id, | ||
| role: "option", | ||
| "aria-selected": isSelected, | ||
| ...{ [shared.DATA_ITEM_ATTR]: "" }, | ||
| "data-selected": isSelected ? "" : undefined, | ||
@@ -1274,0 +1274,0 @@ "data-highlighted": context.highlightedItem?.ref.current?.id === id ? "" : undefined, |
+1
-1
@@ -94,3 +94,3 @@ import { AnchorPositionerProps, Primitive, PointerDownOutsideEvent, Direction, PortalProps } from '@diceui/shared'; | ||
| required?: boolean; | ||
| /** The name of the mention when used in a form. */ | ||
| /** The name of the mention for form submission. */ | ||
| name?: string; | ||
@@ -97,0 +97,0 @@ } |
+1
-1
@@ -94,3 +94,3 @@ import { AnchorPositionerProps, Primitive, PointerDownOutsideEvent, Direction, PortalProps } from '@diceui/shared'; | ||
| required?: boolean; | ||
| /** The name of the mention when used in a form. */ | ||
| /** The name of the mention for form submission. */ | ||
| name?: string; | ||
@@ -97,0 +97,0 @@ } |
+4
-4
| 'use client'; | ||
| import { createContext, useId, useCollection, useFormControl, composeRefs, useDirection, useControllableState, useFilterStore, useListHighlighting, Primitive, BubbleInput, useComposedRefs, useCallbackRef, composeEventHandlers, Portal as Portal$1, useAnchorPositioner, visuallyHidden, useDismiss, useScrollLock, useIsomorphicLayoutEffect, DATA_ITEM_ATTR } from '@diceui/shared'; | ||
| import { createContext, useId, useCollection, useFormControl, composeRefs, useDirection, useControllableState, useFilterStore, useListHighlighting, Primitive, VisuallyHiddenInput, useComposedRefs, useCallbackRef, composeEventHandlers, Portal as Portal$1, useAnchorPositioner, visuallyHidden, useDismiss, useScrollLock, useIsomorphicLayoutEffect, DATA_ITEM_ATTR } from '@diceui/shared'; | ||
| import * as React4 from 'react'; | ||
@@ -194,3 +194,3 @@ import { FloatingFocusManager } from '@floating-ui/react'; | ||
| /* @__PURE__ */ React4.createElement(Primitive.div, { ref: composedRef, ...rootProps }, children, isFormControl && name && /* @__PURE__ */ React4.createElement( | ||
| BubbleInput, | ||
| VisuallyHiddenInput, | ||
| { | ||
@@ -1246,6 +1246,6 @@ type: "hidden", | ||
| { | ||
| ...{ [DATA_ITEM_ATTR]: "" }, | ||
| role: "option", | ||
| id, | ||
| role: "option", | ||
| "aria-selected": isSelected, | ||
| ...{ [DATA_ITEM_ATTR]: "" }, | ||
| "data-selected": isSelected ? "" : undefined, | ||
@@ -1252,0 +1252,0 @@ "data-highlighted": context.highlightedItem?.ref.current?.id === id ? "" : undefined, |
+2
-2
| { | ||
| "name": "@diceui/mention", | ||
| "version": "0.4.0", | ||
| "version": "0.5.0", | ||
| "type": "module", | ||
@@ -56,3 +56,3 @@ "publishConfig": { | ||
| "@floating-ui/react": "^0.27.2", | ||
| "@diceui/shared": "0.8.0" | ||
| "@diceui/shared": "0.9.0" | ||
| }, | ||
@@ -59,0 +59,0 @@ "scripts": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
111647
0.02%0
-100%+ Added
- Removed
Updated