Skip to content

v0.2.1#62

Merged
Alexanderdunlop merged 4 commits intomainfrom
v0.2.1
Aug 6, 2025
Merged

v0.2.1#62
Alexanderdunlop merged 4 commits intomainfrom
v0.2.1

Conversation

@Alexanderdunlop
Copy link
Owner

@Alexanderdunlop Alexanderdunlop commented Jul 24, 2025

Related Bug Reports or Discussions

Fixes #61 #63

Summary

@vercel
Copy link

vercel bot commented Jul 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mentis-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2025 7:31pm

  - Add dataValue prop to MentionInput for setting content based on data values
  - Implement reconstructFromDataValue utility to parse dataValue strings into mention chips
  - Refactor MentionData.value to MentionData.displayValue for API clarity
  - Add comprehensive dataValue reconstruction logic with overlap handling
  - Support updating mention labels when options change but values remain same
  - Enable bi-directional data flow: displayValue for UI, dataValue for programmatic control

  This solves issue #63 by allowing:
  - Setting input content based on dataValue (e.g., "user-123 user-456")
  - Proper data extraction for AI tools and APIs
  - Mention reconstruction when editing existing content
  - Handle cases where people have same names but different IDs

  Breaking changes:
  - MentionData.value → MentionData.displayValue
  - MentionInputProps.value → MentionInputProps.displayValue
  - onChange now provides both displayValue (UI text) and dataValue (data IDs)
@Alexanderdunlop Alexanderdunlop merged commit dd1f71c into main Aug 6, 2025
4 checks passed
@Alexanderdunlop Alexanderdunlop deleted the v0.2.1 branch August 6, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clearing input doesn't work

1 participant