@diceui/mention
Advanced tools
+4
-4
@@ -1253,3 +1253,3 @@ 'use client'; | ||
| if (value === "") { | ||
| throw new Error(`${ITEM_NAME} value cannot be an empty string.`); | ||
| throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`); | ||
| } | ||
@@ -1272,5 +1272,5 @@ return context.onItemRegister({ | ||
| ...{ [shared.DATA_ITEM_ATTR]: "" }, | ||
| "data-selected": isSelected ? "" : undefined, | ||
| "data-highlighted": context.highlightedItem?.ref.current?.id === id ? "" : undefined, | ||
| "data-disabled": isDisabled ? "" : undefined, | ||
| "data-selected": isSelected ? "" : void 0, | ||
| "data-highlighted": context.highlightedItem?.ref.current?.id === id ? "" : void 0, | ||
| "data-disabled": isDisabled ? "" : void 0, | ||
| ...itemProps, | ||
@@ -1277,0 +1277,0 @@ ref: composedRef, |
+4
-4
@@ -1231,3 +1231,3 @@ 'use client'; | ||
| if (value === "") { | ||
| throw new Error(`${ITEM_NAME} value cannot be an empty string.`); | ||
| throw new Error(`\`${ITEM_NAME}\` value cannot be an empty string`); | ||
| } | ||
@@ -1250,5 +1250,5 @@ return context.onItemRegister({ | ||
| ...{ [DATA_ITEM_ATTR]: "" }, | ||
| "data-selected": isSelected ? "" : undefined, | ||
| "data-highlighted": context.highlightedItem?.ref.current?.id === id ? "" : undefined, | ||
| "data-disabled": isDisabled ? "" : undefined, | ||
| "data-selected": isSelected ? "" : void 0, | ||
| "data-highlighted": context.highlightedItem?.ref.current?.id === id ? "" : void 0, | ||
| "data-disabled": isDisabled ? "" : void 0, | ||
| ...itemProps, | ||
@@ -1255,0 +1255,0 @@ ref: composedRef, |
+4
-4
| { | ||
| "name": "@diceui/mention", | ||
| "version": "0.5.0", | ||
| "version": "0.6.0", | ||
| "type": "module", | ||
@@ -51,8 +51,8 @@ "publishConfig": { | ||
| "devDependencies": { | ||
| "tsup": "^8.3.5", | ||
| "tsup": "^8.3.6", | ||
| "typescript": "^5.7.3" | ||
| }, | ||
| "dependencies": { | ||
| "@floating-ui/react": "^0.27.2", | ||
| "@diceui/shared": "0.9.0" | ||
| "@floating-ui/react": "^0.27.4", | ||
| "@diceui/shared": "0.10.0" | ||
| }, | ||
@@ -59,0 +59,0 @@ "scripts": { |
111636
-0.01%+ Added
- Removed
Updated
Updated