@omnia/fx 7.1.71-preview → 7.1.73-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/manifests/omnia.fx.manifest.json +1 -1
- package/internal-do-not-import-from-here/stores/AiSettingsStore.d.ts +43 -0
- package/internal-do-not-import-from-here/stores/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/mediapickerproviders/dalleprovider/DallEProvider.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextCompletion/TextCompletionHandler.d.ts +5 -7
- package/internal-do-not-import-from-here/ux/richtexteditor/extensions/TextCompletion/TextCompletionMenu.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"omniaWebpackJsonp['bb000000-0000-bbbb-0000-0000000000bb']['a5a89056-b5f5-475d-8518-a1f55090379d']","content":{"./node_modules/@omnia/fx/Bootstrapper.js":{"id":"./node_modules/@omnia/fx/bootstrapper.js","buildMeta":{"exportsType":"namespace"},"expo.js":[]},"./node_modules/@omnia/fx/index.js":{"id":"14a8d443-2e58-450b-a462-258bdaf69b49","buildMeta":{"exportsType":"namespace"},"expo.js":["ApiHelper","AppRoutePropertyBagFactory","AuthenticationSessionService","BusinessProfilePathPropertyBagFactory","BusinessProfilePropertyBagFactory","Console","ConsoleUIService","ContextProviderCollection","Cookies","DisplayRules","Encoder","EnterprisePropertyHandler","ErrorBus","Extend","GraphClient","HttpClient","HttpContextProviderCollection","IAppRouteFactory","IBusinessProfileFactory","ITenantFactory","ImageProxyService","Inject","Injectable","LocalStorage","Localize","MD5Util","ManifestResourceLoader","MessageBusExposeOnlyPublication","MessageBusExposeOnlySubscription","MessageBusTopicMediator","MigrationUtils","NamedPropertyOperationsFactory","OmniaContext","OmniaContextProvider","OmniaPropertyBagBase","Provide","ReplaceToken","Require","ScrollPagingUtils","ServiceContainer","ServiceContainerContext","ServiceLocator","ServiceManifestProvider","SubscriptionHandler","TenantPropertyBagFactory","TokenService","Topics","UserAgentUtils","UserPropertyBagFactory","Utils","VueWebComponentSlot","WebComponentBootstrapper","WebUtils","extendApi","install","isInjectable","omniaScriptApi","propertyPath","propertyPathValue","registerApi","setCurrentManifest","useInject","useLocalize","useOmniaClient","useProvide","vueCustomElement"]},"./node_modules/@omnia/fx/stores/index.js":{"id":"5e618f4d-d014-414e-a681-89e34cbeda0f","buildMeta":{"exportsType":"namespace"},"expo.js":["AppNamingPolicyStore","AppStore","AuditLogStore","AzureAdUserStore","BlockTitleGlobalSettingsStore","BlockTitleSettingsStore","BusinessProfileStore","ClipboardStore","CommentLikeStore","ConnectedTenantStore","DirectionRuleStore","DynamicGroupStore","EnterpriseGlossaryStore","EnterprisePropertyCategoryStore","EnterprisePropertySetStore","EnterprisePropertyStore","ExtensionStore","FeatureStore","FileUploaderStore","GroupIdentityStore","IdentityStore","IdentitySyncProviderStore","LocalizationStore","MSTeamsStore","MediaPickerStore","MultilingualStore","OrganizationTreeStore","PostStore","ProfileCardStore","PromotedTagStore","SiteStore","Store","StoreAction","StoreLogTypes","StoreLogger","StoreMutation","StoreState","SystemLogStore","TargetingPropertyStore","TimeZoneStore","TokenStatus","TokenStore","UserIdentityStore","UserTargetingStore","UserTypeStore","VersionedLayoutStore","defineStore","defineStore2"]},"./node_modules/@omnia/fx/vue/index.js":{"id":"c041fe9f-1e14-443d-9407-5aa8829fbc21","buildMeta":{"exportsType":"namespace"},"expo.js":["Localize","VueWebComponentSlot","install","useLocalize","vueCustomElement"]},"./node_modules/@omnia/fx/services/index.js":{"id":"e25b9dd8-6dd7-4437-8ddd-0b9fadba73ac","buildMeta":{"exportsType":"namespace"},"expo.js":["AiSettingsService","AppNamingPolicyService","AppRouteService","AppService","AuditLogService","AzureAdUserService","AzureOpenAIService","BusinessProfileService","ConnectedTenantService","DataSourcePropertiesService","DataSourcePropertyDefinitionHandler","DynamicGroupService","DynamicPropertyDataSource","EnterpriseGlossaryService","EnterprisePropertiesProvider","EnterprisePropertyCategoryService","EnterprisePropertySetService","ExtendedEnterprisePropertiesPropertyBindingProvider","ExtensionsService","FileStorageService","GroupIdentityService","GroupService","IdentityPropertyBindingProvider","IdentityService","IdentitySyncProviderService","ImageProxyService","LocalizationService","ManifestService","MediaPickerService","MicrosoftStreamService","OrganizationTreeService","PermissionNode","PermissionService","PostService","ProfileCardService","PropertyBindingService","PropertyDataSourceBase","QueryablePropertiesService","QueueService","RealtimeService","SecretsService","SecurityRoles","SecurityService","SettingsService","SiteService","TagsService","TargetingPropertyService","TenantContactService","TenantPreSetupService","TestDataSourcePropertiesService","TimeZoneService","TranslationService","UserIdentityService","UserPresenceStatus","UserService","UserTypeService","VersionedDataService","VersionedLayoutService","WebImageService","WriteBackStatus"]}}}
|
|
1
|
+
{"name":"omniaWebpackJsonp['bb000000-0000-bbbb-0000-0000000000bb']['a5a89056-b5f5-475d-8518-a1f55090379d']","content":{"./node_modules/@omnia/fx/Bootstrapper.js":{"id":"./node_modules/@omnia/fx/bootstrapper.js","buildMeta":{"exportsType":"namespace"},"expo.js":[]},"./node_modules/@omnia/fx/index.js":{"id":"14a8d443-2e58-450b-a462-258bdaf69b49","buildMeta":{"exportsType":"namespace"},"expo.js":["ApiHelper","AppRoutePropertyBagFactory","AuthenticationSessionService","BusinessProfilePathPropertyBagFactory","BusinessProfilePropertyBagFactory","Console","ConsoleUIService","ContextProviderCollection","Cookies","DisplayRules","Encoder","EnterprisePropertyHandler","ErrorBus","Extend","GraphClient","HttpClient","HttpContextProviderCollection","IAppRouteFactory","IBusinessProfileFactory","ITenantFactory","ImageProxyService","Inject","Injectable","LocalStorage","Localize","MD5Util","ManifestResourceLoader","MessageBusExposeOnlyPublication","MessageBusExposeOnlySubscription","MessageBusTopicMediator","MigrationUtils","NamedPropertyOperationsFactory","OmniaContext","OmniaContextProvider","OmniaPropertyBagBase","Provide","ReplaceToken","Require","ScrollPagingUtils","ServiceContainer","ServiceContainerContext","ServiceLocator","ServiceManifestProvider","SubscriptionHandler","TenantPropertyBagFactory","TokenService","Topics","UserAgentUtils","UserPropertyBagFactory","Utils","VueWebComponentSlot","WebComponentBootstrapper","WebUtils","extendApi","install","isInjectable","omniaScriptApi","propertyPath","propertyPathValue","registerApi","setCurrentManifest","useInject","useLocalize","useOmniaClient","useProvide","vueCustomElement"]},"./node_modules/@omnia/fx/stores/index.js":{"id":"5e618f4d-d014-414e-a681-89e34cbeda0f","buildMeta":{"exportsType":"namespace"},"expo.js":["AiSettingsStore","AppNamingPolicyStore","AppStore","AuditLogStore","AzureAdUserStore","BlockTitleGlobalSettingsStore","BlockTitleSettingsStore","BusinessProfileStore","ClipboardStore","CommentLikeStore","ConnectedTenantStore","DirectionRuleStore","DynamicGroupStore","EnterpriseGlossaryStore","EnterprisePropertyCategoryStore","EnterprisePropertySetStore","EnterprisePropertyStore","ExtensionStore","FeatureStore","FileUploaderStore","GroupIdentityStore","IdentityStore","IdentitySyncProviderStore","LocalizationStore","MSTeamsStore","MediaPickerStore","MultilingualStore","OrganizationTreeStore","PostStore","ProfileCardStore","PromotedTagStore","SiteStore","Store","StoreAction","StoreLogTypes","StoreLogger","StoreMutation","StoreState","SystemLogStore","TargetingPropertyStore","TimeZoneStore","TokenStatus","TokenStore","UserIdentityStore","UserTargetingStore","UserTypeStore","VersionedLayoutStore","defineStore","defineStore2"]},"./node_modules/@omnia/fx/vue/index.js":{"id":"c041fe9f-1e14-443d-9407-5aa8829fbc21","buildMeta":{"exportsType":"namespace"},"expo.js":["Localize","VueWebComponentSlot","install","useLocalize","vueCustomElement"]},"./node_modules/@omnia/fx/services/index.js":{"id":"e25b9dd8-6dd7-4437-8ddd-0b9fadba73ac","buildMeta":{"exportsType":"namespace"},"expo.js":["AiSettingsService","AppNamingPolicyService","AppRouteService","AppService","AuditLogService","AzureAdUserService","AzureOpenAIService","BusinessProfileService","ConnectedTenantService","DataSourcePropertiesService","DataSourcePropertyDefinitionHandler","DynamicGroupService","DynamicPropertyDataSource","EnterpriseGlossaryService","EnterprisePropertiesProvider","EnterprisePropertyCategoryService","EnterprisePropertySetService","ExtendedEnterprisePropertiesPropertyBindingProvider","ExtensionsService","FileStorageService","GroupIdentityService","GroupService","IdentityPropertyBindingProvider","IdentityService","IdentitySyncProviderService","ImageProxyService","LocalizationService","ManifestService","MediaPickerService","MicrosoftStreamService","OrganizationTreeService","PermissionNode","PermissionService","PostService","ProfileCardService","PropertyBindingService","PropertyDataSourceBase","QueryablePropertiesService","QueueService","RealtimeService","SecretsService","SecurityRoles","SecurityService","SettingsService","SiteService","TagsService","TargetingPropertyService","TenantContactService","TenantPreSetupService","TestDataSourcePropertiesService","TimeZoneService","TranslationService","UserIdentityService","UserPresenceStatus","UserService","UserTypeService","VersionedDataService","VersionedLayoutService","WebImageService","WriteBackStatus"]}}}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AiSettings } from "../models";
|
|
2
|
+
import { GuidValue } from "../shared";
|
|
3
|
+
import { Store } from "./Store";
|
|
4
|
+
export declare class AiSettingsStore extends Store {
|
|
5
|
+
private settings;
|
|
6
|
+
private readonly tenantKey;
|
|
7
|
+
private currentSetting;
|
|
8
|
+
private aiSettingService;
|
|
9
|
+
constructor();
|
|
10
|
+
onActivated(): void;
|
|
11
|
+
onDisposing(): void;
|
|
12
|
+
/**
|
|
13
|
+
* Implementation of getters
|
|
14
|
+
*/
|
|
15
|
+
getters: {
|
|
16
|
+
getSettingsByType: (type: string, businessProfileId?: GuidValue) => AiSettings[];
|
|
17
|
+
getSettingsByScope: (businessProfileId?: GuidValue) => AiSettings[];
|
|
18
|
+
currentEditing: () => AiSettings;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Implementation of mutations
|
|
22
|
+
*/
|
|
23
|
+
mutations: {
|
|
24
|
+
settings: import("./Store").StoreMutation<(newVal: {
|
|
25
|
+
[key: string]: AiSettings[];
|
|
26
|
+
}) => void, (newVal: {
|
|
27
|
+
[key: string]: AiSettings[];
|
|
28
|
+
}) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
29
|
+
settingsByType: import("./Store").StoreMutation<(type: string, newState: Array<AiSettings>) => void, (type: string, newState: AiSettings[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
30
|
+
settingsByScope: import("./Store").StoreMutation<(newState: Array<AiSettings>, businessProfileId?: GuidValue) => void, (newState: AiSettings[], businessProfileId?: GuidValue) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
31
|
+
currentEditing: import("./Store").StoreMutation<(newState: AiSettings) => void, (newState: AiSettings) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Implementation of actions
|
|
35
|
+
*/
|
|
36
|
+
actions: {
|
|
37
|
+
loadSettingsByType: import("./Store").StoreAction<unknown, (type: string, bpId?: GuidValue) => void, (result: AiSettings[], type: string, bpId?: GuidValue) => void, (failureReason: any, type: string, bpId?: GuidValue) => void, (type: string, bpId?: GuidValue) => Promise<AiSettings[]>>;
|
|
38
|
+
loadSettingsByScope: import("./Store").StoreAction<unknown, (bpId?: GuidValue) => void, (result: AiSettings[], bpId?: GuidValue) => void, (failureReason: any, bpId?: GuidValue) => void, (bpId?: GuidValue) => Promise<AiSettings[]>>;
|
|
39
|
+
updateSetting: import("./Store").StoreAction<unknown, (model: AiSettings) => void, (result: AiSettings, model: AiSettings) => void, (failureReason: any, model: AiSettings) => void, (model: AiSettings) => Promise<AiSettings>>;
|
|
40
|
+
addSetting: import("./Store").StoreAction<unknown, (model: AiSettings) => void, (result: AiSettings, model: AiSettings) => void, (failureReason: any, model: AiSettings) => void, (model: AiSettings) => Promise<AiSettings>>;
|
|
41
|
+
removeSetting: import("./Store").StoreAction<unknown, (id: number) => void, (result: void, id: number) => void, (failureReason: any, id: number) => void, (id: number) => Promise<void>>;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OmniaContext } from "@omnia/fx";
|
|
2
|
-
import {
|
|
2
|
+
import { TextCompletionMenuBar, TipTapEditor } from "@omnia/fx-models";
|
|
3
3
|
import { Store } from "@omnia/fx/stores";
|
|
4
4
|
import { SidePanelContext } from "@omnia/fx/ux";
|
|
5
|
-
import {
|
|
5
|
+
import { AzureOpenAIService } from "../../../../services";
|
|
6
6
|
export declare const panelElementName: "omfx-textcompletion-panel";
|
|
7
7
|
export declare class TextCompletionHandler extends Store {
|
|
8
8
|
private sidePanelInstanceId;
|
|
@@ -11,8 +11,7 @@ export declare class TextCompletionHandler extends Store {
|
|
|
11
11
|
private menuBar;
|
|
12
12
|
private prompt;
|
|
13
13
|
private forceClose;
|
|
14
|
-
private
|
|
15
|
-
aiSettingService: AiSettingsService;
|
|
14
|
+
private selectedText;
|
|
16
15
|
openAiService: AzureOpenAIService;
|
|
17
16
|
omniaContext: OmniaContext;
|
|
18
17
|
onClickOpenEvent(sidePanelContext: SidePanelContext, editor: TipTapEditor, menuBar: TextCompletionMenuBar): void;
|
|
@@ -25,7 +24,7 @@ export declare class TextCompletionHandler extends Store {
|
|
|
25
24
|
getMenuBar: () => TextCompletionMenuBar;
|
|
26
25
|
prompt: () => string;
|
|
27
26
|
forceClose: () => boolean;
|
|
28
|
-
|
|
27
|
+
selectedText: () => string;
|
|
29
28
|
};
|
|
30
29
|
setters: {
|
|
31
30
|
setEditor: (editor: TipTapEditor) => TipTapEditor;
|
|
@@ -35,10 +34,9 @@ export declare class TextCompletionHandler extends Store {
|
|
|
35
34
|
mutations: {
|
|
36
35
|
prompt: import("@omnia/fx/stores").StoreMutation<(prompt: string) => void, (prompt: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
37
36
|
forceClose: import("@omnia/fx/stores").StoreMutation<(forceClose: boolean) => void, (forceClose: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
38
|
-
|
|
37
|
+
selectedText: import("@omnia/fx/stores").StoreMutation<(prompt: string) => void, (prompt: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
39
38
|
};
|
|
40
39
|
actions: {
|
|
41
|
-
ensureTextCompletionSettings: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: AiSettings[]) => void, (failureReason: any) => void, () => Promise<AiSettings[]>>;
|
|
42
40
|
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
41
|
};
|
|
44
42
|
protected onActivated(): void;
|
|
@@ -11,6 +11,7 @@ export default class TextCompletionMenu extends ToolbarExtension implements Text
|
|
|
11
11
|
subscriptionHandler: IMessageBusSubscriptionHandler;
|
|
12
12
|
private textCompletionHandler;
|
|
13
13
|
private multilingualStore;
|
|
14
|
+
private aiSettingStore;
|
|
14
15
|
private sidePanelContext;
|
|
15
16
|
omniaTheming: OmniaTheming;
|
|
16
17
|
blockInstance: BlockInstance;
|
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.73-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.73-preview",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|