@omnia/fx-models 8.0.80-dev → 8.0.81-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/ManifestIds.d.ts CHANGED
@@ -195,7 +195,7 @@ export declare class OmniaWebComponentManifests {
195
195
  static get ORadio(): Guid;
196
196
  static get ORadioGroup(): Guid;
197
197
  static get ORating(): Guid;
198
- static get OSplitpanes(): Guid;
198
+ static get OSplitpane(): Guid;
199
199
  static get OSplitpaneItem(): Guid;
200
200
  static get OSelect(): Guid;
201
201
  static get OSkeletonLoader(): Guid;
package/ManifestIds.js CHANGED
@@ -598,7 +598,7 @@ class OmniaWebComponentManifests {
598
598
  static get ORating() {
599
599
  return new models_1.Guid("4c41fd87-99ae-4346-8150-fd47661e8100");
600
600
  }
601
- static get OSplitpanes() {
601
+ static get OSplitpane() {
602
602
  return new models_1.Guid("6b7f04ba-8fc4-487e-a496-dd8e42b55dbd");
603
603
  }
604
604
  static get OSplitpaneItem() {
@@ -1,15 +1,40 @@
1
- import { GuidValue } from ".";
1
+ import { VNodeChild } from "vue";
2
+ import { Mark, Node, Extension } from "@tiptap/core";
3
+ import { GuidValue } from "../shared";
4
+ type RichTextEditorExtensionConfiguration = {
5
+ nodes?: Array<RichTextEditorNode>;
6
+ toolbarItems?: Array<RichTextEditorToolbar>;
7
+ bubbleMenuItems?: Array<RichTextEditorBubbleMenu>;
8
+ };
2
9
  export interface RichTextEditorSettingsModel {
3
10
  extensions: Array<RichTextEditorExtensionRegistration>;
4
11
  limitedExtensions: Array<RichTextEditorExtensionRegistration>;
5
12
  }
6
13
  export interface RichTextEditorExtensionRegistration {
14
+ /**
15
+ * Rich text extension id.
16
+ */
7
17
  id: GuidValue;
8
- title: string;
9
- manifestId: GuidValue;
10
- serviceId: GuidValue;
11
18
  settings?: RichTextEditorExtensionSettings;
12
19
  isChecked?: boolean;
13
20
  }
21
+ export interface RichTextEditorExtension {
22
+ id: GuidValue;
23
+ title: string;
24
+ getConfiguration(settings?: RichTextEditorExtensionSettings): RichTextEditorExtensionConfiguration | Promise<RichTextEditorExtensionConfiguration>;
25
+ }
26
+ export type RichTextEditorNode<Options = any, Storage = any> = Mark<Options, Storage> | Node<Options, Storage> | Extension<Options, Storage>;
27
+ export interface RichTextEditorToolbar<T = any> {
28
+ toolbar: VNodeChild | any;
29
+ configuration?: T;
30
+ hidden?: boolean;
31
+ isSubToolBar?: boolean;
32
+ }
33
+ export interface RichTextEditorBubbleMenu<T = any> {
34
+ menuItem: VNodeChild | any;
35
+ configuration?: T;
36
+ showOnPasted?: boolean;
37
+ }
14
38
  export interface RichTextEditorExtensionSettings {
15
39
  }
40
+ export {};
@@ -1,5 +1,4 @@
1
- import { GuidValue, MultilingualString, PromotedTagOptions, PropertyIndexedType } from "../";
2
- import { RichTextEditorExtension } from "../../ux/richtexteditor";
1
+ import { GuidValue, MultilingualString, PromotedTagOptions, PropertyIndexedType, RichTextEditorExtension } from "../";
3
2
  export interface EnterprisePropertyItemSettings {
4
3
  type: PropertyIndexedType;
5
4
  id: GuidValue;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.80-dev",
4
+ "version": "8.0.81-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,6 +1,6 @@
1
1
  import { Guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../../ux";
3
- import { RichTextEditorExtensionRegistration } from "../../RichTextEditorExtension";
3
+ import { RichTextEditorExtension } from "../../RichTextEditorExtension";
4
4
  import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "../PropertyDefinition";
5
5
  import { HtmlPropertyValue } from "../values";
6
6
  export declare enum HtmlEditorMode {
@@ -14,7 +14,7 @@ export declare class HtmlDisplaySettings extends PropertyDisplaySettingsBase {
14
14
  export declare class HtmlEditorSettings extends PropertyEditorSettingsBase {
15
15
  locks?: PropertyLockStatusType<Omit<HtmlEditorSettings, "locks">>;
16
16
  mode: HtmlEditorMode;
17
- selectedRichTextExtensions?: RichTextEditorExtensionRegistration[];
17
+ selectedRichTextExtensions?: RichTextEditorExtension[];
18
18
  }
19
19
  export declare class HtmlPropertyDefinition extends PropertyDefinition<HtmlPropertyValue, HtmlDisplaySettings, HtmlEditorSettings> {
20
20
  id: Guid;