@omnia/fx 7.9.24 → 7.9.25

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.
@@ -1,4 +1,4 @@
1
- import { TextPromptRequest, TextPromptResult } from "../models/azure-openai";
1
+ import { TextPromptRequest, TextPromptResult, TextToImagesRequest, TextToImagesResponse } from "../models/azure-openai";
2
2
  import { GeneratedImage, TextToImageRequest, ImageDataResult, TextToImageResponse, ErrorResponse } from "@omnia/fx-models";
3
3
  export declare class AzureOpenAIService {
4
4
  private httpClient;
@@ -9,6 +9,7 @@ export declare class AzureOpenAIService {
9
9
  constructor();
10
10
  private get numOfTokensToSummarize();
11
11
  generateImage: (request: TextToImageRequest) => Promise<TextToImageResponse | ErrorResponse>;
12
+ generateImages: (request: TextToImagesRequest) => Promise<TextToImagesResponse | ErrorResponse>;
12
13
  executeTextPrompt(request: TextPromptRequest): Promise<TextPromptResult>;
13
14
  executeLimitTextPrompt(summarizedText: string, isUseCustomPrompt?: boolean): Promise<TextPromptResult>;
14
15
  private getSummaryPrompt;
@@ -730,6 +730,12 @@ export interface OmniaUxLocalization {
730
730
  Title: string;
731
731
  ConsentInformation: string;
732
732
  };
733
+ ManagedMetadataProperties: {
734
+ Category: string;
735
+ Description: string;
736
+ Title: string;
737
+ ConsentInformation: string;
738
+ };
733
739
  };
734
740
  AuditLog: {
735
741
  Title: string;
@@ -0,0 +1,41 @@
1
+ import { types } from "typestyle";
2
+ import { ITheming } from "@omnia/fx/ux";
3
+ export declare const imageSize = 357.25;
4
+ export declare const GptImageProviderStyles: {
5
+ wrapper: string;
6
+ text: string;
7
+ notify: string;
8
+ label: string;
9
+ inputText: string;
10
+ selectInputStyle: string;
11
+ imageCol: string;
12
+ imageHeight: string;
13
+ image: string;
14
+ shadowCard: string;
15
+ skeletonWrapper: string;
16
+ GptImageFilterContentErrorWrapper: string;
17
+ ErrorIcon: string;
18
+ promptTip: string;
19
+ FullHeight: string;
20
+ };
21
+ export declare const gptImageImageGridStyles: {
22
+ row?: types.NestedCSSProperties;
23
+ column?: types.NestedCSSProperties;
24
+ imageWrapper?: types.NestedCSSProperties;
25
+ image?: types.NestedCSSProperties;
26
+ noResultsWrapper: types.NestedCSSProperties;
27
+ noResultsPositioner: types.NestedCSSProperties;
28
+ noResultsText: (theme: ITheming) => types.NestedCSSProperties;
29
+ overlay?: types.NestedCSSProperties;
30
+ backgroundColor?: types.NestedCSSProperties;
31
+ defaultOverlay?: types.NestedCSSProperties;
32
+ };
33
+ export declare const MediaProviderComponentBaseStyles: {
34
+ baseWrapper: string;
35
+ providerWrapper: string;
36
+ loadingProviderWrapper: string;
37
+ providerContent: string;
38
+ loadingOverlayWrapper: string;
39
+ loadingWrapper: string;
40
+ gridWrapper: string;
41
+ };
@@ -0,0 +1,53 @@
1
+ import { OmniaTheming } from "@omnia/fx/ux";
2
+ import { IWebComponentInstance, OmniaContext } from "@omnia/fx";
3
+ import { type OmniaUxLocalization } from "@omnia/fx/ux";
4
+ import { GridViewMediaProviderComponent } from "../mediaproviderbase/GridViewMediaProviderComponent";
5
+ import { ImageInformation, VideoItem, ImageItem, MediaPickerVideo, VideoInformation, MediaPickerImageTransformationResult, IBusinessProfile } from "../../../models";
6
+ import { AzureOpenAIService } from "../../../services";
7
+ import { GptImageProviderLocalization } from "./loc/localize";
8
+ import { TextToImagesRequest, GeneratedImage, TextToImagesResponse } from "@omnia/fx-models";
9
+ import "./GptImageProvider.css";
10
+ import { MultilingualStore } from "@omnia/fx/stores";
11
+ export default class GptImageProvider extends GridViewMediaProviderComponent implements IWebComponentInstance {
12
+ beforeSaved(resultToBeSaved: MediaPickerImageTransformationResult | VideoInformation): Promise<MediaPickerVideo | MediaPickerImageTransformationResult>;
13
+ getMediaItems(searchKeyword: string): Promise<GeneratedImage[]>;
14
+ getMoreMediaItems(lastLoadedIndex: number): Promise<GeneratedImage[]>;
15
+ getMediaInfo(mediaItem: ImageItem | VideoItem): Promise<ImageInformation | VideoInformation>;
16
+ setEmptyResultHandler(): void;
17
+ azureOpenAiService: AzureOpenAIService;
18
+ omniaTheming: OmniaTheming;
19
+ private aiSettingsService;
20
+ omniaCtx: OmniaContext;
21
+ multilingualStore: MultilingualStore;
22
+ gptImageLoc: GptImageProviderLocalization.locInterface;
23
+ omniaUxLoc: OmniaUxLocalization;
24
+ private searchKeyword;
25
+ private GptImageSupportImageResolution;
26
+ private generatedImages;
27
+ private textToImagesRequests;
28
+ private resultStyles;
29
+ private selectedImageResolution;
30
+ private textToImagesResponseMap;
31
+ private gptImagePredefinedPromptList;
32
+ private preDefinedPrompt;
33
+ private preDefaultPrompt;
34
+ private gptImageConstant;
35
+ private displayPrompts;
36
+ private getTextToImagesRequest;
37
+ constructor();
38
+ created(): void;
39
+ mounted(): void;
40
+ initGptImagePromptSettingsListing(businessProfileId: IBusinessProfile): Promise<void>;
41
+ onGenerateImage(): void;
42
+ onPressEnter: (event: KeyboardEvent) => void;
43
+ getPredefinedPrompts(predefinedPrompt: string): void;
44
+ selectGridItemPublic(item: GeneratedImage): void;
45
+ addGeneratedImage(item: GeneratedImage, textToImagesRequest: TextToImagesRequest): void;
46
+ addTextToImagesResponse(item: TextToImagesResponse, textToImagesRequest: TextToImagesRequest): void;
47
+ onRegenerateImage(textToImagesRequest: TextToImagesRequest): void;
48
+ private renderCustomSlot;
49
+ private getPredefinedPromptsItem;
50
+ private renderPredefinedPrompts;
51
+ private renderPromptInput;
52
+ render(): VueTsxSupport.JSX.Element;
53
+ }
@@ -0,0 +1,47 @@
1
+ import { GeneratedImage, TextToImagesRequest, TextToImagesResponse } from "@omnia/fx-models";
2
+ declare const _default: (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd"), {}, import("vue-tsx-support").PropsForOutside<{
3
+ textToImageRequest: TextToImagesRequest;
4
+ selectGridItem: (mediaItem: GeneratedImage) => void;
5
+ generatedImage: GeneratedImage;
6
+ addGeneratedImage: (generatedImage: GeneratedImage, textToImageRequest: TextToImagesRequest) => void;
7
+ onRegenerateImage: (textToImageRequest: TextToImagesRequest) => void;
8
+ textToImageResponse: TextToImagesResponse;
9
+ addTextToImageResponse: (textToImageResponse: TextToImagesResponse, textToImageRequest: TextToImagesRequest) => void;
10
+ imageRef: HTMLImageElement;
11
+ setImageRef: (imageRef: HTMLImageElement) => void;
12
+ }, never>, any, any, any>> & {
13
+ propsDefinition: import("vue-tsx-support").PropsForOutside<{
14
+ textToImageRequest: TextToImagesRequest;
15
+ selectGridItem: (mediaItem: GeneratedImage) => void;
16
+ generatedImage: GeneratedImage;
17
+ addGeneratedImage: (generatedImage: GeneratedImage, textToImageRequest: TextToImagesRequest) => void;
18
+ onRegenerateImage: (textToImageRequest: TextToImagesRequest) => void;
19
+ textToImageResponse: TextToImagesResponse;
20
+ addTextToImageResponse: (textToImageResponse: TextToImagesResponse, textToImageRequest: TextToImagesRequest) => void;
21
+ imageRef: HTMLImageElement;
22
+ setImageRef: (imageRef: HTMLImageElement) => void;
23
+ }, never>;
24
+ }) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<{
25
+ textToImageRequest: TextToImagesRequest;
26
+ selectGridItem: (mediaItem: GeneratedImage) => void;
27
+ generatedImage: GeneratedImage;
28
+ addGeneratedImage: (generatedImage: GeneratedImage, textToImageRequest: TextToImagesRequest) => void;
29
+ onRegenerateImage: (textToImageRequest: TextToImagesRequest) => void;
30
+ textToImageResponse: TextToImagesResponse;
31
+ addTextToImageResponse: (textToImageResponse: TextToImagesResponse, textToImageRequest: TextToImagesRequest) => void;
32
+ imageRef: HTMLImageElement;
33
+ setImageRef: (imageRef: HTMLImageElement) => void;
34
+ }, never>, any, any, any>> & {
35
+ propsDefinition: import("vue-tsx-support").PropsForOutside<{
36
+ textToImageRequest: TextToImagesRequest;
37
+ selectGridItem: (mediaItem: GeneratedImage) => void;
38
+ generatedImage: GeneratedImage;
39
+ addGeneratedImage: (generatedImage: GeneratedImage, textToImageRequest: TextToImagesRequest) => void;
40
+ onRegenerateImage: (textToImageRequest: TextToImagesRequest) => void;
41
+ textToImageResponse: TextToImagesResponse;
42
+ addTextToImageResponse: (textToImageResponse: TextToImagesResponse, textToImageRequest: TextToImagesRequest) => void;
43
+ imageRef: HTMLImageElement;
44
+ setImageRef: (imageRef: HTMLImageElement) => void;
45
+ }, never>;
46
+ });
47
+ export default _default;
@@ -0,0 +1,23 @@
1
+ export declare module GptImageProviderLocalization {
2
+ const namespace = "Omnia.Ux.GptImageProvider";
3
+ interface locInterface {
4
+ Title: string;
5
+ FeatureTitle: string;
6
+ FeatureDescription: string;
7
+ DowloadImageFailed: string;
8
+ PhotoBy: string;
9
+ PhotosProviderBy: string;
10
+ MaxInputLength: number;
11
+ Generate: string;
12
+ SelectSizePicture: string;
13
+ Download: string;
14
+ GenerateNewImage: string;
15
+ ErrorMessage: string;
16
+ ImageName: string;
17
+ PromptHeader: string;
18
+ PromptContent: string;
19
+ PromptExample: string;
20
+ Label: string;
21
+ ImageStyle: string;
22
+ }
23
+ }
@@ -85,6 +85,7 @@ import wc12d1bca1d50b4186acd50014584389c9 from './ux/mediagallery/galleryviewpro
85
85
  import wc96c7e84dfb66450796fe123aea7999c5 from './ux/mediagallery/view/PhotoWallWithSliderDisplayRenderer';
86
86
  import wcc15cd6402e584ab18c73ed2b5e3eded9 from './ux/mediagallery/view/MediaDisplayRenderer';
87
87
  import wc8f6c9579f26646dfb316c087e04455cc from './ux/mediapickerproviders/dalleprovider/PollingImageComponent';
88
+ import wc9a7abf48db574d9080995065fed41259 from './ux/mediapickerproviders/gptimageprovider/PollingImageComponent';
88
89
  import wc29de17877bbb49b1961e75210d865a1b from './ux/mediapickerproviders/mediaflow/MediaflowVideoPlayer';
89
90
  import wc7f06e68f94904b48b827b23acd148bec from './ux/optionpicker/OptionPicker';
90
91
  import wcd4adc78e79ad4c2c889e52755e2bbede from './ux/permissioninput/TenantAdminPermissionInput';
@@ -266,6 +267,7 @@ declare global {
266
267
  "omfx-photowall-slider-display-renderer": base.CombinedTsxComponentAttrs<typeof wc96c7e84dfb66450796fe123aea7999c5.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
267
268
  "omfx-media-display-renderer": base.CombinedTsxComponentAttrs<typeof wcc15cd6402e584ab18c73ed2b5e3eded9.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
268
269
  "omfx-media-picker-dalle-polling-image": base.CombinedTsxComponentAttrs<typeof wc8f6c9579f26646dfb316c087e04455cc.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
270
+ "omfx-media-picker-gptimage-polling-image": base.CombinedTsxComponentAttrs<typeof wc9a7abf48db574d9080995065fed41259.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
269
271
  "omfx-mediaflow-provider-video-player": base.CombinedTsxComponentAttrs<typeof wc29de17877bbb49b1961e75210d865a1b.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
270
272
  "omfx-option-picker": base.CombinedTsxComponentAttrs<typeof wc7f06e68f94904b48b827b23acd148bec.propsDefinition, {}, {}, {}, {}, true> & VueComponentBaseProps;
271
273
  "omfx-tenant-admin-permission-input": base.CombinedTsxComponentAttrs<typeof wcd4adc78e79ad4c2c889e52755e2bbede.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.9.24",
4
+ "version": "7.9.25",
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": "Omnia Digital Workplace AB",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "7.9.24",
23
+ "@omnia/fx-models": "7.9.25",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.10.7",