@foundationui/smart-input
Advanced tools
Comparing version 1.0.92 to 1.0.93
@@ -14,2 +14,9 @@ import { ICompletionResponse } from '@foundationui/react-hooks'; | ||
/** | ||
* The completion mode to use. `typeahead` will show completions as you type, while `completion` will only show completions | ||
* when you press "Ctrl+Space". `completion` is recommended for most use cases. | ||
* | ||
* Default: `completion` | ||
*/ | ||
mode?: 'typeahead' | 'completion'; | ||
/** | ||
* The ID of the user using the input. Providing this helps the model learn a particular user's style, | ||
@@ -16,0 +23,0 @@ * including if they prefer not to use completions at all. |
@@ -8,2 +8,3 @@ import React from 'react'; | ||
value: string; | ||
mode?: 'typeahead' | 'completion'; | ||
onAcceptCompletion?: (completion: ICompletionResponse) => void; | ||
@@ -37,2 +38,3 @@ onShowCompletion?: (completion: ICompletionResponse) => void; | ||
clearCompletion: () => void; | ||
clearCache: () => void; | ||
}; |
@@ -14,2 +14,9 @@ import { ICompletionResponse } from '@foundationui/react-hooks'; | ||
/** | ||
* The completion mode to use. `typeahead` will show completions as you type, while `completion` will only show completions | ||
* when you press "Ctrl+Space". `completion` is recommended for most use cases. | ||
* | ||
* Default: `completion` | ||
*/ | ||
mode?: 'typeahead' | 'completion'; | ||
/** | ||
* The ID of the user using the input. Providing this helps the model learn a particular user's style, | ||
@@ -16,0 +23,0 @@ * including if they prefer not to use completions at all. |
@@ -8,2 +8,3 @@ import React from 'react'; | ||
value: string; | ||
mode?: 'typeahead' | 'completion'; | ||
onAcceptCompletion?: (completion: ICompletionResponse) => void; | ||
@@ -37,2 +38,3 @@ onShowCompletion?: (completion: ICompletionResponse) => void; | ||
clearCompletion: () => void; | ||
clearCache: () => void; | ||
}; |
@@ -157,2 +157,3 @@ import * as _foundationui_react_hooks from '@foundationui/react-hooks'; | ||
value: string; | ||
mode?: 'typeahead' | 'completion'; | ||
onAcceptCompletion?: (completion: ICompletionResponse) => void; | ||
@@ -186,2 +187,3 @@ onShowCompletion?: (completion: ICompletionResponse) => void; | ||
clearCompletion: () => void; | ||
clearCache: () => void; | ||
}; | ||
@@ -199,2 +201,9 @@ | ||
/** | ||
* The completion mode to use. `typeahead` will show completions as you type, while `completion` will only show completions | ||
* when you press "Ctrl+Space". `completion` is recommended for most use cases. | ||
* | ||
* Default: `completion` | ||
*/ | ||
mode?: 'typeahead' | 'completion'; | ||
/** | ||
* The ID of the user using the input. Providing this helps the model learn a particular user's style, | ||
@@ -201,0 +210,0 @@ * including if they prefer not to use completions at all. |
@@ -14,2 +14,9 @@ import { ICompletionResponse } from '@foundationui/react-hooks'; | ||
/** | ||
* The completion mode to use. `typeahead` will show completions as you type, while `completion` will only show completions | ||
* when you press "Ctrl+Space". `completion` is recommended for most use cases. | ||
* | ||
* Default: `completion` | ||
*/ | ||
mode?: 'typeahead' | 'completion'; | ||
/** | ||
* The ID of the user using the input. Providing this helps the model learn a particular user's style, | ||
@@ -16,0 +23,0 @@ * including if they prefer not to use completions at all. |
@@ -8,2 +8,3 @@ import React from 'react'; | ||
value: string; | ||
mode?: 'typeahead' | 'completion'; | ||
onAcceptCompletion?: (completion: ICompletionResponse) => void; | ||
@@ -37,2 +38,3 @@ onShowCompletion?: (completion: ICompletionResponse) => void; | ||
clearCompletion: () => void; | ||
clearCache: () => void; | ||
}; |
{ | ||
"name": "@foundationui/smart-input", | ||
"version": "1.0.92", | ||
"version": "1.0.93", | ||
"description": "Smart input/textarea component for React. Learns to provide inline, tab-completeable suggestions.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
593733
3321