@ones-editor/editor 0.0.7-beta.23 → 0.0.7-beta.24

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/dist/index.js CHANGED
@@ -57395,7 +57395,9 @@ ${codeText}
57395
57395
  return;
57396
57396
  }
57397
57397
  if (item == null ? void 0 : item.comment) {
57398
- this.closeEditing(item.comment.id);
57398
+ setTimeout(() => {
57399
+ this.closeEditing(item.comment.id);
57400
+ });
57399
57401
  }
57400
57402
  });
57401
57403
  __publicField(this, "handleSelectionChanged", () => {
@@ -57565,7 +57567,9 @@ ${codeText}
57565
57567
  const activeRoot = this.container.querySelector(".comment-group-item-root.active");
57566
57568
  if (activeRoot) {
57567
57569
  const item = this.items[this.activeIndex];
57568
- this.closeEditing(item.comment.id);
57570
+ setTimeout(() => {
57571
+ this.closeEditing(item.comment.id);
57572
+ });
57569
57573
  removeClass(activeRoot, "active");
57570
57574
  }
57571
57575
  if (index2 !== -1) {
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Embed, Box, i18n, OnesEditor, OnesEditorUser, OnesEditorUserPermission, OnesEditorBlockHook, OnesEditorCommandProvider, LogLevel, Block, ShortcutRecords, OnesEditorBlockRenderer } from '../@ones-editor/core';
2
2
  import { DrawIoOptions } from '../@ones-editor/drawio-embed';
3
- import { MermaidEmbedOptions } from '../@ones-editor/graph-embed';
3
+ import { FlowCharEmbedOptions, MermaidEmbedOptions, PlantumlEmbedOptions } from '../@ones-editor/graph-embed';
4
4
  import { ImageOptions } from '../@ones-editor/image-embed';
5
5
  import { MediaEmbedOptions } from '../@ones-editor/media-embed';
6
6
  import { TableOptions } from '../@ones-editor/table-block';
@@ -20,6 +20,8 @@ export type EditorComponentOptions = {
20
20
  drawIO?: DrawIoOptions;
21
21
  media?: MediaEmbedOptions;
22
22
  mermaid?: MermaidEmbedOptions;
23
+ flowchart?: FlowCharEmbedOptions;
24
+ plantuml?: PlantumlEmbedOptions;
23
25
  remoteCarets?: RemoteCaretsOptions;
24
26
  table?: TableOptions;
25
27
  image?: ImageOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "0.0.7-beta.23",
3
+ "version": "0.0.7-beta.24",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",