@omnia/fx-models 8.0.242-dev → 8.0.244-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/Constants.d.ts +8 -0
- package/Constants.js +8 -0
- package/Enums.d.ts +2 -1
- package/Enums.js +2 -0
- package/auth/LoginProvider.d.ts +2 -1
- package/auth/LoginProvider.js +1 -0
- package/internal-do-not-import-from-here/shared/factory/DefineFactory.d.ts +3 -1
- package/internal-do-not-import-from-here/shared/services/ActivityService.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/services/ActivitySubscriptionService.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/services/DefineService.d.ts +3 -1
- package/internal-do-not-import-from-here/shared/services/RealtimeService.d.ts +2 -0
- package/markdown/MarkdownPluginRegistration.d.ts +7 -0
- package/markdown/MarkdownPluginRegistration.js +2 -0
- package/markdown/MarkdownPluginSettings.d.ts +5 -0
- package/markdown/MarkdownPluginSettings.js +2 -0
- package/markdown/index.d.ts +2 -0
- package/markdown/index.js +2 -0
- package/package.json +1 -1
- package/ux/MarkdownApi.d.ts +24 -0
- package/ux/MarkdownApi.js +2 -0
- package/ux/index.d.ts +1 -0
- package/ux/index.js +1 -0
package/Constants.d.ts
CHANGED
@@ -16,6 +16,14 @@ export declare const Constants: {
|
|
16
16
|
like: ActionHandlerRegistrationId;
|
17
17
|
};
|
18
18
|
components: {
|
19
|
+
markdown: {
|
20
|
+
plugins: {
|
21
|
+
text: guid;
|
22
|
+
color: guid;
|
23
|
+
typography: guid;
|
24
|
+
velcron: guid;
|
25
|
+
};
|
26
|
+
};
|
19
27
|
filterEngine: {
|
20
28
|
getDefaultSettings: () => FilterEngineSettings;
|
21
29
|
countNumber: {
|
package/Constants.js
CHANGED
@@ -21,6 +21,14 @@ exports.Constants = {
|
|
21
21
|
like: ActionHandler_1.ActionHandlerRegistrationId.create((0, models_1.guid)("d838c061-1ef4-49cb-8d6d-cee8f67bd17f")),
|
22
22
|
},
|
23
23
|
components: {
|
24
|
+
markdown: {
|
25
|
+
plugins: {
|
26
|
+
text: (0, models_1.guid)("a9edb1ed-9e97-4c1b-a3ec-9f66d1a97ff9"),
|
27
|
+
color: (0, models_1.guid)("5b6dd221-0d30-4405-95c3-ca637f69d8ca"),
|
28
|
+
typography: (0, models_1.guid)("cfc8e261-fe4b-4449-ab9a-19dfe0293ced"),
|
29
|
+
velcron: (0, models_1.guid)("7c254dea-a4fc-486c-9189-618663e657a2"),
|
30
|
+
}
|
31
|
+
},
|
24
32
|
filterEngine: {
|
25
33
|
getDefaultSettings: () => {
|
26
34
|
return {
|
package/Enums.d.ts
CHANGED
@@ -393,7 +393,8 @@ export declare enum StaticEndpoint {
|
|
393
393
|
MagicLinkLogin = "/api/magiclink/complete",
|
394
394
|
MagicLinkSuccess = "/api/magiclink/success",
|
395
395
|
MagicLinkFailure = "/api/magiclink/failure",
|
396
|
-
MagicLink = "/api/magiclink"
|
396
|
+
MagicLink = "/api/magiclink",
|
397
|
+
SharepointServerLogin = "/spsignin"
|
397
398
|
}
|
398
399
|
export declare enum QueueMessageStatus {
|
399
400
|
Unassigned = 0,
|
package/Enums.js
CHANGED
@@ -434,6 +434,8 @@ var StaticEndpoint;
|
|
434
434
|
StaticEndpoint["MagicLinkSuccess"] = "/api/magiclink/success";
|
435
435
|
StaticEndpoint["MagicLinkFailure"] = "/api/magiclink/failure";
|
436
436
|
StaticEndpoint["MagicLink"] = "/api/magiclink";
|
437
|
+
// onprem only
|
438
|
+
StaticEndpoint["SharepointServerLogin"] = "/spsignin";
|
437
439
|
})(StaticEndpoint || (exports.StaticEndpoint = StaticEndpoint = {}));
|
438
440
|
var QueueMessageStatus;
|
439
441
|
(function (QueueMessageStatus) {
|
package/auth/LoginProvider.d.ts
CHANGED
package/auth/LoginProvider.js
CHANGED
@@ -6,4 +6,5 @@ var LoginProviderTypes;
|
|
6
6
|
LoginProviderTypes[LoginProviderTypes["Unset"] = 0] = "Unset";
|
7
7
|
LoginProviderTypes[LoginProviderTypes["AzureAD"] = 1] = "AzureAD";
|
8
8
|
LoginProviderTypes[LoginProviderTypes["Omnia"] = 2] = "Omnia";
|
9
|
+
LoginProviderTypes[LoginProviderTypes["SharepointAddIn"] = 3] = "SharepointAddIn";
|
9
10
|
})(LoginProviderTypes || (exports.LoginProviderTypes = LoginProviderTypes = {}));
|
@@ -4,7 +4,9 @@ export interface SetupFactoryContext {
|
|
4
4
|
onDeactivated(fn: () => void): any;
|
5
5
|
subscriptions: SubscriptionHandler;
|
6
6
|
}
|
7
|
-
export declare function defineFactory<InferReturnSetup>(setup: (ctx: SetupFactoryContext, ...args: any) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: guid): () => InferReturnSetup
|
7
|
+
export declare function defineFactory<InferReturnSetup>(setup: (ctx: SetupFactoryContext, ...args: any) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: guid): () => InferReturnSetup & {
|
8
|
+
dispose?: () => void;
|
9
|
+
};
|
8
10
|
export declare function defineFactory<InferReturnSetup, T1>(setup: (ctx: SetupFactoryContext, param1: T1) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: guid): (param1: T1) => InferReturnSetup;
|
9
11
|
export declare function defineFactory<InferReturnSetup, T1, T2>(setup: (ctx: SetupFactoryContext, param1: T1, param2: T2) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: string): (param1: T1, param2: T2) => InferReturnSetup;
|
10
12
|
export declare function defineFactory<InferReturnSetup, T1, T2, T3>(setup: (ctx: SetupFactoryContext, param1: T1, param2: T2, param3: T3) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: guid): (param1: T1, param2: T2, param3: T3) => InferReturnSetup;
|
@@ -24,4 +24,6 @@ export declare const activityService: () => {
|
|
24
24
|
getTempFiles: (tempFilesId: TemporaryFileId, startPath: string[]) => Promise<string[]>;
|
25
25
|
takeOwnership: (tempFilesId: TemporaryFileId, subPath: string[]) => Promise<void>;
|
26
26
|
upload: (uniqueguid: TemporaryFileId, files: File[]) => Promise<TemporaryFileId>;
|
27
|
+
} & {
|
28
|
+
dispose?: () => void;
|
27
29
|
};
|
@@ -12,4 +12,6 @@ export declare const activitySubscriptionService: () => {
|
|
12
12
|
addFollowingSubscription: (actorToFollow: ActorId) => Promise<void>;
|
13
13
|
isFollowingSubscription: (actorToFollow: ActorId) => Promise<boolean>;
|
14
14
|
removeFollowingSubscription: (actorToFollow: ActorId) => Promise<SubscriptionId>;
|
15
|
+
} & {
|
16
|
+
dispose?: () => void;
|
15
17
|
};
|
@@ -6,5 +6,7 @@ interface SetupServiceContext extends SetupFactoryContext {
|
|
6
6
|
}
|
7
7
|
export declare function defineService<TActions extends {
|
8
8
|
[key: string]: Function;
|
9
|
-
}, TArgs extends any[]>(setup: (ctx: SetupServiceContext) => TActions, lifeTime?: InstanceLifetimes): () => TActions
|
9
|
+
}, TArgs extends any[]>(setup: (ctx: SetupServiceContext) => TActions, lifeTime?: InstanceLifetimes): () => TActions & {
|
10
|
+
dispose?: () => void;
|
11
|
+
};
|
10
12
|
export {};
|
@@ -5,4 +5,6 @@ export declare const useRealtimeService: () => {
|
|
5
5
|
send: <TRealtimeChannel extends RealtimeChannel, TRealtimeData extends RealtimeData<TRealtimeChannel, any>>(data: TRealtimeData, value: TRealtimeData["value"]) => void;
|
6
6
|
getUsersInChannel: (channel: RealtimeChannel) => Future<Array<number>>;
|
7
7
|
onMessage: <TRealtimeChannel_1 extends RealtimeChannel, TRealtimeData_1 extends RealtimeData<TRealtimeChannel_1, any>>(data: TRealtimeData_1, callback: (value: TRealtimeData_1["value"]) => void) => void;
|
8
|
+
} & {
|
9
|
+
dispose?: () => void;
|
8
10
|
};
|
package/markdown/index.d.ts
CHANGED
package/markdown/index.js
CHANGED
@@ -2,3 +2,5 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
4
|
tslib_1.__exportStar(require("./MarkdownActionRegistration"), exports);
|
5
|
+
tslib_1.__exportStar(require("./MarkdownPluginRegistration"), exports);
|
6
|
+
tslib_1.__exportStar(require("./MarkdownPluginSettings"), exports);
|
package/package.json
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
import { MarkdownPluginRegistration } from "@omnia/fx-models";
|
2
|
+
import { ApiPath } from "../Extends";
|
3
|
+
export interface IMarkdownPluginRegistrationHandler {
|
4
|
+
getAll: () => Array<MarkdownPluginRegistration>;
|
5
|
+
register: (plugins: MarkdownPluginRegistration | MarkdownPluginRegistration[]) => void;
|
6
|
+
}
|
7
|
+
export interface IMarkdownPluginRegistration {
|
8
|
+
registration: Promise<IMarkdownPluginRegistrationHandler>;
|
9
|
+
}
|
10
|
+
export interface IMarkdownRegistrationApi {
|
11
|
+
plugins: IMarkdownPluginRegistration;
|
12
|
+
}
|
13
|
+
declare module "./UxApi" {
|
14
|
+
interface IOmniaUxApi {
|
15
|
+
markdown: IMarkdownRegistrationApi;
|
16
|
+
}
|
17
|
+
interface IOmniaUxExtendApiManifest {
|
18
|
+
markdown: {
|
19
|
+
plugins: {
|
20
|
+
registration: ApiPath;
|
21
|
+
};
|
22
|
+
};
|
23
|
+
}
|
24
|
+
}
|
package/ux/index.d.ts
CHANGED
@@ -22,4 +22,5 @@ export * from "./MediaGalleryApi";
|
|
22
22
|
export * from "./DynamicPlaceholderApi";
|
23
23
|
export * from "./RouterApi";
|
24
24
|
export * from "./ScopedPermissionApi";
|
25
|
+
export * from "./MarkdownApi";
|
25
26
|
export { type Directives, type DirectiveDefinition, type IInternalDirectiveRegistration } from "./Directive";
|
package/ux/index.js
CHANGED
@@ -25,3 +25,4 @@ tslib_1.__exportStar(require("./MediaGalleryApi"), exports);
|
|
25
25
|
tslib_1.__exportStar(require("./DynamicPlaceholderApi"), exports);
|
26
26
|
tslib_1.__exportStar(require("./RouterApi"), exports);
|
27
27
|
tslib_1.__exportStar(require("./ScopedPermissionApi"), exports);
|
28
|
+
tslib_1.__exportStar(require("./MarkdownApi"), exports);
|