@omnia/fx 7.5.15-dev → 7.5.17-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/UxModels.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/filterengine/Helper.d.ts +1 -2
- package/internal-do-not-import-from-here/ux/filterengine/handler/FilterEngineHandler.d.ts +4 -5
- package/internal-do-not-import-from-here/ux/mediapickerproviders/dalleprovider/DallEProvider.d.ts +14 -2
- package/package.json +2 -2
|
@@ -213,6 +213,8 @@ export interface OmniaUxLocalization {
|
|
|
213
213
|
AppWaitForApproval: string;
|
|
214
214
|
RequireAppAdminToProvisioning: string;
|
|
215
215
|
UnexpectedError: string;
|
|
216
|
+
InvalidSiteUrl: string;
|
|
217
|
+
InvalidUrlExistingAppInstance: string;
|
|
216
218
|
};
|
|
217
219
|
RequestedBy: string;
|
|
218
220
|
RequestedAt: string;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { FilterEngineContext, FilterEngineSettings
|
|
1
|
+
import { FilterEngineContext, FilterEngineSettings } from "@omnia/fx-models";
|
|
2
2
|
export declare class Helper {
|
|
3
3
|
private enterprisePropertyStore;
|
|
4
4
|
private propertyDefinitionHash;
|
|
5
5
|
private propertyDefinitionApi;
|
|
6
6
|
private contextPropertiesApi;
|
|
7
|
-
readonly supportedIndexTypes: PropertyIndexedType[];
|
|
8
7
|
ensureValidData: (settings: FilterEngineSettings, context: FilterEngineContext) => Promise<void>;
|
|
9
8
|
ensureInitResources: () => Promise<void>;
|
|
10
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseFilterEngineProperty, BaseFilterEnginePropertyOutput, BaseFilterEnginePropertyType, EnterprisePropertyDefinition, FilterEngineContext, FilterEngineContextPropertyDefinition, FilterEngineRouterProperty, FilterEngineSettings, IMessageBusSubscriptionHandler, ITypedFilterEngineHandler,
|
|
1
|
+
import { BaseFilterEngineProperty, BaseFilterEnginePropertyOutput, BaseFilterEnginePropertyType, EnterprisePropertyDefinition, FilterEngineContext, FilterEngineContextPropertyDefinition, FilterEngineRouterProperty, FilterEngineSettings, IMessageBusSubscriptionHandler, ITypedFilterEngineHandler, Refinement, Refiner, TermColorSettings } from "@omnia/fx-models";
|
|
2
2
|
import { Store } from "@omnia/fx/stores";
|
|
3
3
|
import { SidePanelContext } from "../../SidePanelContext";
|
|
4
4
|
export declare class FilterEngineHandler extends Store {
|
|
@@ -9,8 +9,7 @@ export declare class FilterEngineHandler extends Store {
|
|
|
9
9
|
private multilingualStore;
|
|
10
10
|
private localizationService;
|
|
11
11
|
private filterEngineContext;
|
|
12
|
-
readonly
|
|
13
|
-
readonly smallContainerMaxWidth: number;
|
|
12
|
+
readonly smallViewportMaxWidth: number;
|
|
14
13
|
readonly defaultFilterWidth: number;
|
|
15
14
|
readonly resizeTimeWatchId: string;
|
|
16
15
|
private resizeTimeWatch;
|
|
@@ -29,8 +28,8 @@ export declare class FilterEngineHandler extends Store {
|
|
|
29
28
|
private sidePanelInstanceId;
|
|
30
29
|
private isRenderReady;
|
|
31
30
|
private hasSmallContainer;
|
|
31
|
+
private hasSmallViewport;
|
|
32
32
|
private canRenderSideSections;
|
|
33
|
-
private canRenderDialogPanel;
|
|
34
33
|
mainSectionMaxWidth: number;
|
|
35
34
|
readonly sectionMinWidth: number;
|
|
36
35
|
private isWaitingForFirstQuery;
|
|
@@ -39,8 +38,8 @@ export declare class FilterEngineHandler extends Store {
|
|
|
39
38
|
getters: {
|
|
40
39
|
keywordsSearching: () => string;
|
|
41
40
|
hasSmallContainer: () => boolean;
|
|
41
|
+
hasSmallViewport: () => boolean;
|
|
42
42
|
canRenderSideSections: () => boolean;
|
|
43
|
-
canRenderDialogPanel: () => boolean;
|
|
44
43
|
settings: () => FilterEngineSettings;
|
|
45
44
|
enterprisePropertyDefitionHash: () => {
|
|
46
45
|
[propertyName: string]: EnterprisePropertyDefinition;
|
package/internal-do-not-import-from-here/ux/mediapickerproviders/dalleprovider/DallEProvider.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { OmniaTheming } from "@omnia/fx/ux";
|
|
2
|
-
import { IWebComponentInstance } from "@omnia/fx";
|
|
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 } from "../../../models";
|
|
5
|
+
import { ImageInformation, VideoItem, ImageItem, MediaPickerVideo, VideoInformation, MediaPickerImageTransformationResult, AiSettings, 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";
|
|
9
9
|
import "./DallEProvider.css";
|
|
10
|
+
import { MultilingualStore } from "@omnia/fx/stores";
|
|
10
11
|
export default class DallEProvider extends GridViewMediaProviderComponent implements IWebComponentInstance {
|
|
11
12
|
beforeSaved(resultToBeSaved: MediaPickerImageTransformationResult | VideoInformation): Promise<MediaPickerVideo | MediaPickerImageTransformationResult>;
|
|
12
13
|
getMediaItems(searchKeyword: string): Promise<GeneratedImage[]>;
|
|
@@ -15,6 +16,9 @@ export default class DallEProvider extends GridViewMediaProviderComponent implem
|
|
|
15
16
|
setEmptyResultHandler(): void;
|
|
16
17
|
azureOpenAiService: AzureOpenAIService;
|
|
17
18
|
omniaTheming: OmniaTheming;
|
|
19
|
+
private aiSettingsService;
|
|
20
|
+
omniaCtx: OmniaContext;
|
|
21
|
+
multilingualStore: MultilingualStore;
|
|
18
22
|
dallELoc: DallEProviderLocalization.locInterface;
|
|
19
23
|
omniaUxLoc: OmniaUxLocalization;
|
|
20
24
|
private searchKeyword;
|
|
@@ -24,17 +28,25 @@ export default class DallEProvider extends GridViewMediaProviderComponent implem
|
|
|
24
28
|
private resultStyles;
|
|
25
29
|
private selectedImageResolution;
|
|
26
30
|
private textToImageResponseMap;
|
|
31
|
+
private dallEPredefinedPromptList;
|
|
32
|
+
private showMenu;
|
|
33
|
+
private preDefindedPrompt;
|
|
34
|
+
private preDefaultPrompt;
|
|
35
|
+
private workPlaceGuid;
|
|
27
36
|
private getTextToImageRequest;
|
|
28
37
|
constructor();
|
|
29
38
|
created(): void;
|
|
30
39
|
mounted(): void;
|
|
40
|
+
initDallEPromptSettingsListing(businessProfileId: IBusinessProfile): Promise<void>;
|
|
31
41
|
onGenerateImage(): void;
|
|
32
42
|
onPressEnter: (event: KeyboardEvent) => void;
|
|
43
|
+
getPredefinedPrompts(item: AiSettings): void;
|
|
33
44
|
selectGridItemPublic(item: GeneratedImage): void;
|
|
34
45
|
addGeneratedImage(item: GeneratedImage, textToImageRequest: TextToImageRequest): void;
|
|
35
46
|
addTextToImageResponse(item: TextToImageResponse, textToImageRequest: TextToImageRequest): void;
|
|
36
47
|
onRegenerateImage(textToImageRequest: TextToImageRequest): void;
|
|
37
48
|
private renderCustomSlot;
|
|
49
|
+
private renderPredefinedPrompts;
|
|
38
50
|
private renderPromptInput;
|
|
39
51
|
render(): VueTsxSupport.JSX.Element;
|
|
40
52
|
}
|
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.17-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.17-dev",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|