@signalflare-ai/ui 1.0.0 → 1.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @signalflare-ai/ui
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 76871cf: Add first-class reference tags to the prompt input.
8
+
9
+ - New `PromptInputTag` data type and `tags` field on `PromptInputRequestContext`.
10
+ - New controller helpers: `addTags`, `removeTag`, `clearTags`, and `insertTag` (writes to both `text` and `tags`).
11
+ - New UI primitives: `PromptInputTag`, `PromptInputTags`, `PromptInputAddTagButton`.
12
+ - New `PromptInputEditor` primitive: textarea with inline reference badges, `@`-trigger picker (caret-anchored, keyboard nav), and `onReferenceSearch` / `references` props.
13
+ - Submit payload now includes `tags` alongside `text` and `files`; `resetRequest()` clears tags.
14
+
3
15
  ## 1.0.0
4
16
 
5
17
  ### Major Changes
@@ -3718,15 +3718,85 @@
3718
3718
  "bg-sf-base",
3719
3719
  "bg-sf-control",
3720
3720
  "bg-sf-elevated",
3721
+ "bg-sf-info-tint",
3721
3722
  "bg-sf-overlay",
3722
3723
  "bg-sf-tint",
3724
+ "border-sf-info",
3723
3725
  "ring-sf-line",
3724
3726
  "ring-sf-ring",
3725
3727
  "text-sf-brand",
3726
3728
  "text-sf-default",
3727
3729
  "text-sf-inactive",
3730
+ "text-sf-strong",
3728
3731
  "text-sf-subtle"
3729
- ]
3732
+ ],
3733
+ "subComponents": {
3734
+ "BackLayer": {
3735
+ "name": "BackLayer",
3736
+ "description": "BackLayer sub-component",
3737
+ "props": {}
3738
+ },
3739
+ "Textarea": {
3740
+ "name": "Textarea",
3741
+ "description": "Textarea sub-component",
3742
+ "props": {}
3743
+ },
3744
+ "Editor": {
3745
+ "name": "Editor",
3746
+ "description": "Editor sub-component",
3747
+ "props": {}
3748
+ },
3749
+ "Toolbar": {
3750
+ "name": "Toolbar",
3751
+ "description": "Toolbar sub-component",
3752
+ "props": {}
3753
+ },
3754
+ "Tools": {
3755
+ "name": "Tools",
3756
+ "description": "Tools sub-component",
3757
+ "props": {}
3758
+ },
3759
+ "Submit": {
3760
+ "name": "Submit",
3761
+ "description": "Submit sub-component",
3762
+ "props": {}
3763
+ },
3764
+ "ModeSelector": {
3765
+ "name": "ModeSelector",
3766
+ "description": "ModeSelector sub-component",
3767
+ "props": {}
3768
+ },
3769
+ "AddTagButton": {
3770
+ "name": "AddTagButton",
3771
+ "description": "AddTagButton sub-component",
3772
+ "props": {}
3773
+ },
3774
+ "Tags": {
3775
+ "name": "Tags",
3776
+ "description": "Tags sub-component",
3777
+ "props": {}
3778
+ },
3779
+ "Tag": {
3780
+ "name": "Tag",
3781
+ "description": "Tag sub-component",
3782
+ "props": {}
3783
+ },
3784
+ "AttachButton": {
3785
+ "name": "AttachButton",
3786
+ "description": "AttachButton sub-component",
3787
+ "props": {}
3788
+ },
3789
+ "Attachments": {
3790
+ "name": "Attachments",
3791
+ "description": "Attachments sub-component",
3792
+ "props": {}
3793
+ },
3794
+ "Attachment": {
3795
+ "name": "Attachment",
3796
+ "description": "Attachment sub-component",
3797
+ "props": {}
3798
+ }
3799
+ }
3730
3800
  },
3731
3801
  "Radio": {
3732
3802
  "name": "Radio",
@@ -2085,7 +2085,64 @@ Prompt input form. Can be self-managed or controlled via `PromptInputProvider`.
2085
2085
 
2086
2086
  **Colors (sf tokens used):**
2087
2087
 
2088
- `bg-sf-base`, `bg-sf-control`, `bg-sf-elevated`, `bg-sf-overlay`, `bg-sf-tint`, `ring-sf-line`, `ring-sf-ring`, `text-sf-brand`, `text-sf-default`, `text-sf-inactive`, `text-sf-subtle`
2088
+ `bg-sf-base`, `bg-sf-control`, `bg-sf-elevated`, `bg-sf-info-tint`, `bg-sf-overlay`, `bg-sf-tint`, `border-sf-info`, `ring-sf-line`, `ring-sf-ring`, `text-sf-brand`, `text-sf-default`, `text-sf-inactive`, `text-sf-strong`, `text-sf-subtle`
2089
+
2090
+ **Sub-Components:**
2091
+
2092
+ This is a compound component. Use these sub-components:
2093
+
2094
+ #### PromptInput.BackLayer
2095
+
2096
+ BackLayer sub-component
2097
+
2098
+ #### PromptInput.Textarea
2099
+
2100
+ Textarea sub-component
2101
+
2102
+ #### PromptInput.Editor
2103
+
2104
+ Editor sub-component
2105
+
2106
+ #### PromptInput.Toolbar
2107
+
2108
+ Toolbar sub-component
2109
+
2110
+ #### PromptInput.Tools
2111
+
2112
+ Tools sub-component
2113
+
2114
+ #### PromptInput.Submit
2115
+
2116
+ Submit sub-component
2117
+
2118
+ #### PromptInput.ModeSelector
2119
+
2120
+ ModeSelector sub-component
2121
+
2122
+ #### PromptInput.AddTagButton
2123
+
2124
+ AddTagButton sub-component
2125
+
2126
+ #### PromptInput.Tags
2127
+
2128
+ Tags sub-component
2129
+
2130
+ #### PromptInput.Tag
2131
+
2132
+ Tag sub-component
2133
+
2134
+ #### PromptInput.AttachButton
2135
+
2136
+ AttachButton sub-component
2137
+
2138
+ #### PromptInput.Attachments
2139
+
2140
+ Attachments sub-component
2141
+
2142
+ #### PromptInput.Attachment
2143
+
2144
+ Attachment sub-component
2145
+
2089
2146
 
2090
2147
  ---
2091
2148
 
@@ -1 +1 @@
1
- 1777081957812
1
+ 1777343275229