@omnia/fx 7.5.42-dev → 7.5.44-dev
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/ux/richtexteditor/extensions/TextCompletion/TextCompletionMenu.d.ts +6 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextCompletion/TextCompletionNode.d.ts +5 -1
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextCompletion/TextCompletionToolbar.d.ts +20 -3
- package/internal-do-not-import-from-here/wctypings.d.ts +0 -2
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ export default class TextCompletionMenu extends ToolbarExtension implements Text
|
|
|
13
13
|
private multilingualStore;
|
|
14
14
|
private aiSettingStore;
|
|
15
15
|
private sidePanelContext;
|
|
16
|
+
private aiService;
|
|
16
17
|
omniaTheming: OmniaTheming;
|
|
17
18
|
blockInstance: BlockInstance;
|
|
18
19
|
protected omniaContext: IOmniaContext;
|
|
@@ -20,6 +21,8 @@ export default class TextCompletionMenu extends ToolbarExtension implements Text
|
|
|
20
21
|
private aiSettings;
|
|
21
22
|
private validateSelection;
|
|
22
23
|
private isValidating;
|
|
24
|
+
private isExecutingPrompt;
|
|
25
|
+
private menuModel;
|
|
23
26
|
private max_accept_token;
|
|
24
27
|
mounted(): void;
|
|
25
28
|
onValidateSelectionChange(newVal: boolean): void;
|
|
@@ -29,7 +32,9 @@ export default class TextCompletionMenu extends ToolbarExtension implements Text
|
|
|
29
32
|
private getSelectionText;
|
|
30
33
|
validateSelectedText(): Promise<void>;
|
|
31
34
|
private setSelectedPrompt;
|
|
32
|
-
|
|
35
|
+
renderMenuSelectionItem(): VueTsxSupport.JSX.Element;
|
|
36
|
+
renderLoadingMenu(): VueTsxSupport.JSX.Element;
|
|
37
|
+
renderMenu(isAnimatedGif: boolean, validated?: boolean): VueTsxSupport.JSX.Element;
|
|
33
38
|
renderDefaultButtonBehavior(isAnimatedGif: boolean): VueTsxSupport.JSX.Element;
|
|
34
39
|
render(): VueTsxSupport.JSX.Element;
|
|
35
40
|
}
|
|
@@ -7,5 +7,9 @@ export default class TextCompletionNode extends NodeExtension {
|
|
|
7
7
|
private isHtml;
|
|
8
8
|
commands({ schema }: {
|
|
9
9
|
schema: any;
|
|
10
|
-
}):
|
|
10
|
+
}): {
|
|
11
|
+
insertText: (attrs: any) => (state: any, dispatch: any) => void;
|
|
12
|
+
selectAll: () => any;
|
|
13
|
+
};
|
|
14
|
+
insert(attrs: any, schema: any): (state: any, dispatch: any) => void;
|
|
11
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ToolbarExtension } from "../../ToolbarExtension";
|
|
2
|
-
import { TextCompletionMenuBar, TextCompletionToolbarProperties, TipTapEditor } from "../../../../models";
|
|
2
|
+
import { TextCompletionMenuBar, TextCompletionToolbarProperties, TipTapEditor, IMessageBusSubscriptionHandler } from "../../../../models";
|
|
3
3
|
export declare class TextCompletionToolbar extends ToolbarExtension implements TextCompletionToolbarProperties {
|
|
4
4
|
menubar?: TextCompletionMenuBar;
|
|
5
5
|
onContentChange?: (content: string) => void;
|
|
@@ -7,9 +7,26 @@ export declare class TextCompletionToolbar extends ToolbarExtension implements T
|
|
|
7
7
|
private loc;
|
|
8
8
|
private sidePanelContext;
|
|
9
9
|
private textCompletionHandler;
|
|
10
|
+
subscriptionHandler: IMessageBusSubscriptionHandler;
|
|
11
|
+
private aiSettingStore;
|
|
12
|
+
private multilingualStore;
|
|
13
|
+
private aiService;
|
|
14
|
+
private menuModel;
|
|
15
|
+
private isValidating;
|
|
16
|
+
private max_accept_token;
|
|
17
|
+
private validateSelection;
|
|
18
|
+
private isExecutingPrompt;
|
|
19
|
+
private aiSettings;
|
|
20
|
+
created(): void;
|
|
10
21
|
mounted(): void;
|
|
11
|
-
|
|
22
|
+
onValidateSelectionChange(newVal: boolean): void;
|
|
23
|
+
private onClickOpenSidePanel;
|
|
12
24
|
beforeDestroy(): void;
|
|
25
|
+
private setSelectedPrompt;
|
|
26
|
+
private validateSelectedText;
|
|
27
|
+
private renderMenuSelectionItem;
|
|
28
|
+
private renderLoadingMenu;
|
|
29
|
+
private renderMenu;
|
|
30
|
+
private renderDefaultButtonBehavior;
|
|
13
31
|
render(): VueTsxSupport.JSX.Element;
|
|
14
|
-
getToolbarButtonActiveStyle(val: boolean): string;
|
|
15
32
|
}
|
|
@@ -19,7 +19,6 @@ import wc1476702e8f24468d9185322be5931c54 from './ux/app/management/tabs/shared/
|
|
|
19
19
|
import wc8e21d658d6f84d70870d29805b27df86 from './ux/appprovisioning/appshowinpubliclistingsinput/AppShowInPublicListingsInput';
|
|
20
20
|
import wce4889269c6ad440da65f3acdf5bb6152 from './ux/authsetup/AuthSetup';
|
|
21
21
|
import wc5dfa7b609aed43ffab03dad33c65b2da from './ux/commandpalette/CommandPalette';
|
|
22
|
-
import wce57d5f3e25e942a08ed97f69d608ab92 from './ux/compositiontests/OptionsBlockCurrent';
|
|
23
22
|
import wc90e26d3a6e3e4bf9bd1ce81c6735eda2 from './ux/datetimezonepicker/DateTimeZonePicker';
|
|
24
23
|
import wcd3d05fa7bb114ecab1c16f714641b678 from './ux/datetimezonerenderer/DateTimeZoneRenderer';
|
|
25
24
|
import wc3ff00f2d8a4c48a4ae0cff23fc0127ac from './ux/dialog/Dialog';
|
|
@@ -170,7 +169,6 @@ declare global {
|
|
|
170
169
|
"omfx-app-show-in-public-listings-input": base.CombinedTsxComponentAttrs<typeof wc8e21d658d6f84d70870d29805b27df86.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
|
|
171
170
|
"omfx-authsetup": base.CombinedTsxComponentAttrs<typeof wce4889269c6ad440da65f3acdf5bb6152.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
|
|
172
171
|
"omfx-command-palette": base.CombinedTsxComponentAttrs<typeof wc5dfa7b609aed43ffab03dad33c65b2da.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
|
|
173
|
-
"omfx-options-block-current": base.CombinedTsxComponentAttrs<typeof wce57d5f3e25e942a08ed97f69d608ab92.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
|
|
174
172
|
"omfx-date-time-zone-picker": base.CombinedTsxComponentAttrs<typeof wc90e26d3a6e3e4bf9bd1ce81c6735eda2.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
|
|
175
173
|
"omfx-date-time-zone-renderer": base.CombinedTsxComponentAttrs<typeof wcd3d05fa7bb114ecab1c16f714641b678.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
|
|
176
174
|
"omfx-dialog": base.CombinedTsxComponentAttrs<typeof wc3ff00f2d8a4c48a4ae0cff23fc0127ac.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.5.
|
|
4
|
+
"version": "7.5.44-dev",
|
|
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.5.
|
|
23
|
+
"@omnia/fx-models": "7.5.44-dev",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|