@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 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) {
@@ -1,7 +1,8 @@
1
1
  export declare enum LoginProviderTypes {
2
2
  Unset = 0,
3
3
  AzureAD = 1,
4
- Omnia = 2
4
+ Omnia = 2,
5
+ SharepointAddIn = 3
5
6
  }
6
7
  export interface LoginProvider {
7
8
  title: string;
@@ -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
  };
@@ -0,0 +1,7 @@
1
+ import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
+ export interface MarkdownPluginRegistration {
3
+ id: guid;
4
+ text: string;
5
+ altText?: string;
6
+ plugin: (settings: any) => any;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
+ export interface MarkdownPluginSettings {
3
+ pluginId: guid;
4
+ settings?: any;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,3 @@
1
1
  export * from "./MarkdownActionRegistration";
2
+ export * from "./MarkdownPluginRegistration";
3
+ export * from "./MarkdownPluginSettings";
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.242-dev",
4
+ "version": "8.0.244-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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);