vdc-editor 0.1.117 → 0.1.118

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.
@@ -6,10 +6,13 @@ interface Props extends EditorProps {
6
6
  }
7
7
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
8
  mode: EditorMode;
9
+ autoFocus: boolean;
9
10
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
11
  mode: EditorMode;
12
+ autoFocus: boolean;
11
13
  }>>> & Readonly<{}>, {
12
14
  mode: EditorMode.EDITOR;
15
+ autoFocus: boolean;
13
16
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
17
  export default _default;
15
18
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -19,6 +19,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
19
19
  contentClass: undefined;
20
20
  isOpenSuperView: boolean;
21
21
  disableSuperInput: boolean;
22
+ autoFocus: boolean;
22
23
  }>>, {
23
24
  editor: Editor;
24
25
  isFocused: globalThis.Ref<boolean, boolean>;
@@ -50,6 +51,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
50
51
  contentClass: undefined;
51
52
  isOpenSuperView: boolean;
52
53
  disableSuperInput: boolean;
54
+ autoFocus: boolean;
53
55
  }>>> & Readonly<{
54
56
  onChange?: ((value: import('../../type').SBSEditorOnChange) => any) | undefined;
55
57
  onEnter?: (() => any) | undefined;
@@ -81,6 +83,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
81
83
  hideBubble: boolean;
82
84
  editorClass: string | string[] | Record<string, unknown>;
83
85
  contentClass: string | string[] | Record<string, unknown>;
86
+ autoFocus: boolean;
84
87
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
85
88
  export default _default;
86
89
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -53450,7 +53450,7 @@ const bse = { class: "flex flex-1" }, vse = {
53450
53450
  textAlert: {},
53451
53451
  toolBarClass: {},
53452
53452
  readonly: { type: Boolean },
53453
- autoFocus: { type: Boolean }
53453
+ autoFocus: { type: Boolean, default: !0 }
53454
53454
  },
53455
53455
  emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "lineFocus"],
53456
53456
  setup(t, { expose: e, emit: n }) {
@@ -53543,11 +53543,11 @@ const bse = { class: "flex flex-1" }, vse = {
53543
53543
  }
53544
53544
  return gd(w), dt(() => {
53545
53545
  var T, k;
53546
- A(o.mode), (T = w == null ? void 0 : w.commands) != null && T.setIsEnableSuggestion && w.commands.setIsEnableSuggestion(!1), (k = w == null ? void 0 : w.commands) != null && k.setIsMobile && w.commands.setIsMobile(!0);
53546
+ o.autoFocus && A(o.mode), (T = w == null ? void 0 : w.commands) != null && T.setIsEnableSuggestion && w.commands.setIsEnableSuggestion(!1), (k = w == null ? void 0 : w.commands) != null && k.setIsMobile && w.commands.setIsMobile(!0);
53547
53547
  }), De(
53548
53548
  () => o.mode,
53549
53549
  (T) => {
53550
- A();
53550
+ o.autoFocus && A();
53551
53551
  }
53552
53552
  ), De(
53553
53553
  () => b.value,
@@ -54327,9 +54327,10 @@ const vc = /* @__PURE__ */ q({
54327
54327
  "disable-super-input": ie.disableSuperInput,
54328
54328
  "field-name-comment": ie.fieldNameComment,
54329
54329
  "is-show-format-control-bar": ie.isShowFormatControlBar,
54330
+ "auto-focus": ie.autoFocus,
54330
54331
  "onUpdate:modelValue": Re[0] || (Re[0] = (nt) => r("update:comment", nt)),
54331
54332
  onSetEditorSelected: G
54332
- }, null, 8, ["mode", "extensions", "model-value", "disabled", "disable-super-input", "field-name-comment", "is-show-format-control-bar"])
54333
+ }, null, 8, ["mode", "extensions", "model-value", "disabled", "disable-super-input", "field-name-comment", "is-show-format-control-bar", "auto-focus"])
54333
54334
  ], 2)
54334
54335
  ];
54335
54336
  }),
@@ -54517,7 +54518,7 @@ const vc = /* @__PURE__ */ q({
54517
54518
  textAlert: {},
54518
54519
  toolBarClass: {},
54519
54520
  readonly: { type: Boolean },
54520
- autoFocus: { type: Boolean }
54521
+ autoFocus: { type: Boolean, default: !0 }
54521
54522
  },
54522
54523
  setup(t) {
54523
54524
  const e = t;