@omnia/fx 7.5.43-dev → 7.5.45-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/mediapickerproviders/dalleprovider/DallEProvider.d.ts +5 -4
- package/internal-do-not-import-from-here/ux/mediapickerproviders/dalleprovider/loc/localize.d.ts +1 -0
- 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/ux/velcron/core/models/VelcronDefinitions.d.ts +7 -1
- package/internal-do-not-import-from-here/ux/velcron/core/parser/VelcronConstants.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/velcron/core/parser/VelcronData.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/renderer/components/Slot.d.ts +3 -0
- package/internal-do-not-import-from-here/wctypings.d.ts +0 -2
- package/package.json +2 -2
- package/internal-do-not-import-from-here/ux/compositiontests/CompositionBlockCurrent.d.ts +0 -18
- package/internal-do-not-import-from-here/ux/compositiontests/CompositionBlockFuture.d.ts +0 -18
- package/internal-do-not-import-from-here/ux/compositiontests/OptionsBlockCurrent.d.ts +0 -6
- package/internal-do-not-import-from-here/ux/compositiontests/TestInjectComponent.d.ts +0 -9
- package/internal-do-not-import-from-here/ux/compositiontests/models/SharedContext.d.ts +0 -4
- package/internal-do-not-import-from-here/ux/compositiontests/models/index.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/compositiontests/services/CompositionService.d.ts +0 -5
- package/internal-do-not-import-from-here/ux/compositiontests/services/index.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/compositiontests/stores/OldStoreTest.d.ts +0 -10
- package/internal-do-not-import-from-here/ux/compositiontests/stores/index.d.ts +0 -2
- package/internal-do-not-import-from-here/ux/compositiontests/stores/useNewStoreTest.d.ts +0 -11
- package/internal-do-not-import-from-here/ux/compositiontests/use/useTitleComputed.d.ts +0 -3
package/internal-do-not-import-from-here/ux/mediapickerproviders/dalleprovider/DallEProvider.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { OmniaTheming } from "@omnia/fx/ux";
|
|
|
2
2
|
import { IWebComponentInstance, OmniaContext } from "@omnia/fx";
|
|
3
3
|
import { type OmniaUxLocalization } from "@omnia/fx/ux";
|
|
4
4
|
import { GridViewMediaProviderComponent } from "../mediaproviderbase/GridViewMediaProviderComponent";
|
|
5
|
-
import { ImageInformation, VideoItem, ImageItem, MediaPickerVideo, VideoInformation, MediaPickerImageTransformationResult,
|
|
5
|
+
import { ImageInformation, VideoItem, ImageItem, MediaPickerVideo, VideoInformation, MediaPickerImageTransformationResult, IBusinessProfile } from "../../../models";
|
|
6
6
|
import { AzureOpenAIService } from "../../../services";
|
|
7
7
|
import { DallEProviderLocalization } from "./loc/localize";
|
|
8
8
|
import { TextToImageRequest, GeneratedImage, TextToImageResponse } from "@omnia/fx-models";
|
|
@@ -29,10 +29,10 @@ export default class DallEProvider extends GridViewMediaProviderComponent implem
|
|
|
29
29
|
private selectedImageResolution;
|
|
30
30
|
private textToImageResponseMap;
|
|
31
31
|
private dallEPredefinedPromptList;
|
|
32
|
-
private
|
|
33
|
-
private preDefindedPrompt;
|
|
32
|
+
private preDefinedPrompt;
|
|
34
33
|
private preDefaultPrompt;
|
|
35
34
|
private dallEConstant;
|
|
35
|
+
private displayPrompts;
|
|
36
36
|
private getTextToImageRequest;
|
|
37
37
|
constructor();
|
|
38
38
|
created(): void;
|
|
@@ -40,12 +40,13 @@ export default class DallEProvider extends GridViewMediaProviderComponent implem
|
|
|
40
40
|
initDallEPromptSettingsListing(businessProfileId: IBusinessProfile): Promise<void>;
|
|
41
41
|
onGenerateImage(): void;
|
|
42
42
|
onPressEnter: (event: KeyboardEvent) => void;
|
|
43
|
-
getPredefinedPrompts(
|
|
43
|
+
getPredefinedPrompts(predefinedPrompt: string): void;
|
|
44
44
|
selectGridItemPublic(item: GeneratedImage): void;
|
|
45
45
|
addGeneratedImage(item: GeneratedImage, textToImageRequest: TextToImageRequest): void;
|
|
46
46
|
addTextToImageResponse(item: TextToImageResponse, textToImageRequest: TextToImageRequest): void;
|
|
47
47
|
onRegenerateImage(textToImageRequest: TextToImageRequest): void;
|
|
48
48
|
private renderCustomSlot;
|
|
49
|
+
private getPredefinedPromptsItem;
|
|
49
50
|
private renderPredefinedPrompts;
|
|
50
51
|
private renderPromptInput;
|
|
51
52
|
render(): VueTsxSupport.JSX.Element;
|
|
@@ -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
|
}
|
|
@@ -6,7 +6,7 @@ import { ColorSchema, useVelcronThemingStore } from "..";
|
|
|
6
6
|
export interface ResolvedComponentRenderer {
|
|
7
7
|
component: unknown;
|
|
8
8
|
definition: VelcronDefinition;
|
|
9
|
-
customComponent
|
|
9
|
+
customComponent?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export interface BuiltInComponentRenderers {
|
|
12
12
|
"View": unknown;
|
|
@@ -21,6 +21,7 @@ export interface BuiltInComponentRenderers {
|
|
|
21
21
|
"Dialog": unknown;
|
|
22
22
|
"Icon": unknown;
|
|
23
23
|
"Chip": unknown;
|
|
24
|
+
"Slot": unknown;
|
|
24
25
|
}
|
|
25
26
|
export interface ColorSchemaReference {
|
|
26
27
|
name: string;
|
|
@@ -251,6 +252,11 @@ export interface VelcronChipDefinition extends VelcronDefinition, VelcronCustomT
|
|
|
251
252
|
disabled?: boolean;
|
|
252
253
|
events?: VelcronOnPressEvent;
|
|
253
254
|
}
|
|
255
|
+
export interface VelcronSlotDefinition extends VelcronDefinition, VelcronCustomThemeSettings {
|
|
256
|
+
type: "Slot";
|
|
257
|
+
bind: string;
|
|
258
|
+
value: VelcroncomponentArrayType;
|
|
259
|
+
}
|
|
254
260
|
/*** Custom Components ***********************************************************************/
|
|
255
261
|
export type VelcronCustomComponentDefinition = VelcronComponentDescriptor & VelcronComponentDefinition;
|
|
256
262
|
export type VelcronRenderProps<TDefinition> = {
|
|
@@ -12,6 +12,7 @@ export declare const VelcronConstants: {
|
|
|
12
12
|
dialog: string;
|
|
13
13
|
icon: string;
|
|
14
14
|
chip: string;
|
|
15
|
+
slot: string;
|
|
15
16
|
};
|
|
16
17
|
events: {
|
|
17
18
|
idTokenStart: string;
|
|
@@ -24,5 +25,6 @@ export declare const VelcronConstants: {
|
|
|
24
25
|
properties: {
|
|
25
26
|
tokenStart: string;
|
|
26
27
|
tokenEnd: string;
|
|
28
|
+
propsToken: string;
|
|
27
29
|
};
|
|
28
30
|
};
|
|
@@ -26,7 +26,7 @@ export declare class VelcronData {
|
|
|
26
26
|
static extendObject(obj: any): any;
|
|
27
27
|
static getOrSetObjectByPath<T>(object: Object, path: string, value?: any): T | null;
|
|
28
28
|
static getOrSetObjectByPathUsingRenderContext<T>(renderContext: VelcronRenderContext, path: string, value?: any): T;
|
|
29
|
-
static getTokens(template: any): string[];
|
|
29
|
+
static getTokens(template: any, removeBrackets: boolean): string[];
|
|
30
30
|
static ensureEventId(event: string): string;
|
|
31
31
|
static ensureKeys(ui: VelcronDefinition | VelcronAppDefinition, generateNewKeys?: boolean): void;
|
|
32
32
|
static removeKeys(ui: VelcronDefinition | VelcronAppDefinition): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { VelcronRenderProps, VelcronSlotDefinition } from "../../core";
|
|
2
|
+
declare const _default: import("vue-tsx-support")._TsxComponentV3<import("vue").default, {}, import("vue-tsx-support").PropsForOutside<VelcronRenderProps<VelcronSlotDefinition>, never>, any, any, any>;
|
|
3
|
+
export default _default;
|
|
@@ -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.45-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.45-dev",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const CurrentBlock: (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd"), {}, import("vue-tsx-support").PropsForOutside<{
|
|
2
|
-
name: string;
|
|
3
|
-
title: string;
|
|
4
|
-
}, "name">, any, any, any>> & {
|
|
5
|
-
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
6
|
-
name: string;
|
|
7
|
-
title: string;
|
|
8
|
-
}, "name">;
|
|
9
|
-
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
10
|
-
name: string;
|
|
11
|
-
title: string;
|
|
12
|
-
}, "name">, any, any, any>> & {
|
|
13
|
-
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
14
|
-
name: string;
|
|
15
|
-
title: string;
|
|
16
|
-
}, "name">;
|
|
17
|
-
});
|
|
18
|
-
export default CurrentBlock;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const _default: (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd"), {}, import("vue-tsx-support").PropsForOutside<{
|
|
2
|
-
title: string;
|
|
3
|
-
name: string;
|
|
4
|
-
}, "name">, any, any, any>> & {
|
|
5
|
-
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
6
|
-
title: string;
|
|
7
|
-
name: string;
|
|
8
|
-
}, "name">;
|
|
9
|
-
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
10
|
-
title: string;
|
|
11
|
-
name: string;
|
|
12
|
-
}, "name">, any, any, any>> & {
|
|
13
|
-
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
14
|
-
title: string;
|
|
15
|
-
name: string;
|
|
16
|
-
}, "name">;
|
|
17
|
-
});
|
|
18
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const _default: (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd"), {}, import("vue-tsx-support").PropsForOutside<unknown, never>, any, any, any>> & {
|
|
2
|
-
propsDefinition: import("vue-tsx-support").PropsForOutside<unknown, never>;
|
|
3
|
-
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<unknown, never>, any, any, any>> & {
|
|
4
|
-
propsDefinition: import("vue-tsx-support").PropsForOutside<unknown, never>;
|
|
5
|
-
});
|
|
6
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
themeDefinitionId: string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd"), {}, import("vue-tsx-support").PropsForOutside<Props, never>, any, any, any>> & {
|
|
5
|
-
propsDefinition: import("vue-tsx-support").PropsForOutside<Props, never>;
|
|
6
|
-
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<any>, {}, import("vue-tsx-support").PropsForOutside<Props, never>, any, any, any>> & {
|
|
7
|
-
propsDefinition: import("vue-tsx-support").PropsForOutside<Props, never>;
|
|
8
|
-
});
|
|
9
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./SharedContext";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./CompositionService";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Store } from "@omnia/fx/stores";
|
|
2
|
-
export declare class OldStoreTest extends Store {
|
|
3
|
-
counter: import("@omnia/fx/stores").StoreState<number>;
|
|
4
|
-
activated: boolean;
|
|
5
|
-
onActivated(): void;
|
|
6
|
-
onDisposing(): void;
|
|
7
|
-
mutations: {
|
|
8
|
-
increment: () => void;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const hepp: (newInstanceWithName?: string) => {
|
|
2
|
-
state: {};
|
|
3
|
-
get: {
|
|
4
|
-
colorSchema: (schema: string) => void;
|
|
5
|
-
typography: (name: string) => void;
|
|
6
|
-
color: (schemaName: string, colorType: string) => void;
|
|
7
|
-
};
|
|
8
|
-
actions: {
|
|
9
|
-
setTheme(): void;
|
|
10
|
-
};
|
|
11
|
-
};
|