@foundationui/smart-input
Advanced tools
Comparing version 1.0.88 to 1.0.89
export * from './SmartInput'; | ||
export * from './useSmartInput'; |
@@ -18,3 +18,8 @@ import React from 'react'; | ||
} & import("./history/history-editor").HistoryEditor; | ||
foundationModel: any; | ||
foundationModel: { | ||
saveCompletion: (input: string, context?: string | undefined) => Promise<number | void>; | ||
getCompletion: (input: string, context?: string | undefined) => Promise<import("@foundationui/react-hooks").ICompletionResponse | null>; | ||
markCompletionSeen: (completionSid: string) => void; | ||
markCompletionAccepted: (completionSid: string) => void; | ||
}; | ||
completion: ICompletionResponse | null; | ||
@@ -21,0 +26,0 @@ setCompletion: React.Dispatch<React.SetStateAction<ICompletionResponse | null>>; |
export * from './SmartInput'; | ||
export * from './useSmartInput'; |
@@ -18,3 +18,8 @@ import React from 'react'; | ||
} & import("./history/history-editor").HistoryEditor; | ||
foundationModel: any; | ||
foundationModel: { | ||
saveCompletion: (input: string, context?: string | undefined) => Promise<number | void>; | ||
getCompletion: (input: string, context?: string | undefined) => Promise<import("@foundationui/react-hooks").ICompletionResponse | null>; | ||
markCompletionSeen: (completionSid: string) => void; | ||
markCompletionAccepted: (completionSid: string) => void; | ||
}; | ||
completion: ICompletionResponse | null; | ||
@@ -21,0 +26,0 @@ setCompletion: React.Dispatch<React.SetStateAction<ICompletionResponse | null>>; |
import React, { HTMLAttributes, MutableRefObject } from 'react'; | ||
import * as _foundationui_react_hooks from '@foundationui/react-hooks'; | ||
import { useFoundationModel } from '@foundationui/react-hooks'; | ||
import * as slate from 'slate'; | ||
@@ -6,3 +8,2 @@ import { BaseEditor, Operation, Range, Descendant } from 'slate'; | ||
import { ReactEditor } from 'slate-react'; | ||
import { useFoundationModel } from '@foundationui/react-hooks'; | ||
@@ -166,3 +167,8 @@ /** | ||
} & HistoryEditor; | ||
foundationModel: any; | ||
foundationModel: { | ||
saveCompletion: (input: string, context?: string | undefined) => Promise<number | void>; | ||
getCompletion: (input: string, context?: string | undefined) => Promise<_foundationui_react_hooks.ICompletionResponse | null>; | ||
markCompletionSeen: (completionSid: string) => void; | ||
markCompletionAccepted: (completionSid: string) => void; | ||
}; | ||
completion: ICompletionResponse | null; | ||
@@ -299,2 +305,2 @@ setCompletion: React.Dispatch<React.SetStateAction<ICompletionResponse | null>>; | ||
export { SmartInput }; | ||
export { SmartInput, useSmartInput }; |
export * from './SmartInput'; | ||
export * from './useSmartInput'; |
@@ -18,3 +18,8 @@ import React from 'react'; | ||
} & import("./history/history-editor").HistoryEditor; | ||
foundationModel: any; | ||
foundationModel: { | ||
saveCompletion: (input: string, context?: string | undefined) => Promise<number | void>; | ||
getCompletion: (input: string, context?: string | undefined) => Promise<import("@foundationui/react-hooks").ICompletionResponse | null>; | ||
markCompletionSeen: (completionSid: string) => void; | ||
markCompletionAccepted: (completionSid: string) => void; | ||
}; | ||
completion: ICompletionResponse | null; | ||
@@ -21,0 +26,0 @@ setCompletion: React.Dispatch<React.SetStateAction<ICompletionResponse | null>>; |
{ | ||
"name": "@foundationui/smart-input", | ||
"version": "1.0.88", | ||
"version": "1.0.89", | ||
"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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
594007
3261
15