gbrichtext 0.1.2 → 0.1.3

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.
@@ -5798,6 +5798,8 @@ const cd = {
5798
5798
  return t({
5799
5799
  /** 取内核实例(高级用法) */
5800
5800
  getEditor: () => r.value?.editor ?? null,
5801
+ /** 开查找条(Ctrl/Cmd+F 的同一入口;宿主顶栏/命令面板的「在本文中查找」走这里) */
5802
+ openFind: () => !!s.value?.open(),
5801
5803
  /** 内核命令透传(insertTable / setBlockAttrs 等) */
5802
5804
  exec: (m, ...h) => r.value?.editor?.exec(m, ...h),
5803
5805
  /** 图片内嵌正文(光标处插入):拖落在正文区之外的图片由壳转交至此 */
@@ -5930,7 +5932,7 @@ const cd = {
5930
5932
  },
5931
5933
  emits: ["update:modelValue"],
5932
5934
  setup(e, { expose: t, emit: n }) {
5933
- const o = zi(() => import("./AttrDialog-B9-e8HIE.js")), r = e, i = n, l = S(null), s = S(null), a = j(() => r.height ? `${r.height}px` : "100%"), c = j(() => Ki(r.modelValue || "")), { images: f, index: u, openAt: p, close: y } = ni(), E = (b) => {
5935
+ const o = zi(() => import("./AttrDialog-CoaNsJPE.js")), r = e, i = n, l = S(null), s = S(null), a = j(() => r.height ? `${r.height}px` : "100%"), c = j(() => Ki(r.modelValue || "")), { images: f, index: u, openAt: p, close: y } = ni(), E = (b) => {
5934
5936
  const T = b.target.closest?.("img");
5935
5937
  T && p(s.value, T);
5936
5938
  }, m = S(!1), h = S({}), g = S("");
@@ -6029,7 +6031,7 @@ const cd = {
6029
6031
  }
6030
6032
  }, fd = /* @__PURE__ */ We(dd, [["__scopeId", "data-v-2d725fe4"]]), hd = (e) => {
6031
6033
  e.component("GbRichTextEditor", fd), e.component("GbRichEditorCore", wi);
6032
- }, gd = { install: hd, version: "0.1.2" };
6034
+ }, gd = { install: hd, version: "0.1.3" };
6033
6035
  export {
6034
6036
  fd as G,
6035
6037
  We as _,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gbrichtext",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "GB Rich Text — a Vue 3 contenteditable rich text editor with block handles, slash commands (Chinese/pinyin search), callout/superblock, block attributes and read-only rendering. Built on guabiui; the document is plain HTML.",
5
5
  "type": "module",
6
6
  "license": "MIT",