@omnia/fx 7.1.49-preview → 7.1.50-preview
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/internal-do-not-import-from-here/services/AzureOpenAIService.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextCompletion/TextCompletionHandler.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextCompletion/TextCompletionMenu.d.ts +5 -3
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/loc/localize.d.ts +1 -0
- package/package.json +2 -2
|
@@ -16,5 +16,5 @@ export declare class AzureOpenAIService {
|
|
|
16
16
|
getImageFromResponse: (responseData: ImageDataResult) => GeneratedImage;
|
|
17
17
|
private wait;
|
|
18
18
|
getPollingImage: (textToImageResponse: TextToImageResponse) => Promise<CreateServerImageResponse | ErrorResponse>;
|
|
19
|
-
|
|
19
|
+
getTextTokensCount(input: string): Promise<number>;
|
|
20
20
|
}
|
|
@@ -39,7 +39,7 @@ export declare class TextCompletionHandler extends Store {
|
|
|
39
39
|
};
|
|
40
40
|
actions: {
|
|
41
41
|
ensureTextCompletionSettings: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: AiSettings[]) => void, (failureReason: any) => void, () => Promise<AiSettings[]>>;
|
|
42
|
-
validateCount: import("@omnia/fx/stores").StoreAction<unknown, (text: string) => void, (result: number
|
|
42
|
+
validateCount: import("@omnia/fx/stores").StoreAction<unknown, (text: string) => void, (result: number, text: string) => void, (failureReason: any, text: string) => void, (text: string) => Promise<number>>;
|
|
43
43
|
};
|
|
44
44
|
protected onActivated(): void;
|
|
45
45
|
protected onDisposing(): void;
|
|
@@ -10,6 +10,7 @@ export default class TextCompletionMenu extends ToolbarExtension implements Text
|
|
|
10
10
|
private loc;
|
|
11
11
|
subscriptionHandler: IMessageBusSubscriptionHandler;
|
|
12
12
|
private textCompletionHandler;
|
|
13
|
+
private multilingualStore;
|
|
13
14
|
private sidePanelContext;
|
|
14
15
|
omniaTheming: OmniaTheming;
|
|
15
16
|
blockInstance: BlockInstance;
|
|
@@ -17,6 +18,7 @@ export default class TextCompletionMenu extends ToolbarExtension implements Text
|
|
|
17
18
|
selectedText: string;
|
|
18
19
|
private aiSettings;
|
|
19
20
|
private validation;
|
|
21
|
+
private isValidating;
|
|
20
22
|
private max_accept_token;
|
|
21
23
|
mounted(): void;
|
|
22
24
|
created(): void;
|
|
@@ -25,7 +27,7 @@ export default class TextCompletionMenu extends ToolbarExtension implements Text
|
|
|
25
27
|
private getSelectionText;
|
|
26
28
|
validateSelectedText(): Promise<void>;
|
|
27
29
|
private setSelectedPrompt;
|
|
28
|
-
renderMenu(isAnimatedGif: boolean): VueTsxSupport.JSX.Element;
|
|
29
|
-
renderDefaultButtonBehavior(isAnimatedGif: boolean):
|
|
30
|
-
render():
|
|
30
|
+
renderMenu(isAnimatedGif: boolean, isValidate?: boolean): VueTsxSupport.JSX.Element;
|
|
31
|
+
renderDefaultButtonBehavior(isAnimatedGif: boolean): VueTsxSupport.JSX.Element;
|
|
32
|
+
render(): VueTsxSupport.JSX.Element;
|
|
31
33
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.1.
|
|
4
|
+
"version": "7.1.50-preview",
|
|
5
5
|
"description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"author": "Precio Fishbone",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@omnia/fx-models": "7.1.
|
|
23
|
+
"@omnia/fx-models": "7.1.50-preview",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|