@opentiny/tiny-robot 0.5.2-alpha.1 → 0.5.2-alpha.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +18 -18
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -5490,23 +5490,15 @@ export { }
5490
5490
  */
5491
5491
  declare module '@tiptap/core' {
5492
5492
  interface Commands<ReturnType> {
5493
- template: {
5494
- /**
5495
- * 设置模板数据(批量)
5496
- */
5497
- setTemplateData: (items: TemplateItem[]) => ReturnType;
5498
- /**
5499
- * 插入模板块
5500
- */
5501
- insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
5493
+ mention: {
5502
5494
  /**
5503
- * 聚焦到第一个模板块
5495
+ * 插入 mention 节点
5504
5496
  */
5505
- focusFirstTemplate: () => ReturnType;
5497
+ insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
5506
5498
  /**
5507
- * 插入选择器
5499
+ * 删除 mention 节点
5508
5500
  */
5509
- insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
5501
+ deleteMention: (id: string) => ReturnType;
5510
5502
  };
5511
5503
  }
5512
5504
  }
@@ -5519,15 +5511,23 @@ declare module '@tiptap/core' {
5519
5511
  */
5520
5512
  declare module '@tiptap/core' {
5521
5513
  interface Commands<ReturnType> {
5522
- mention: {
5514
+ template: {
5523
5515
  /**
5524
- * 插入 mention 节点
5516
+ * 设置模板数据(批量)
5525
5517
  */
5526
- insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
5518
+ setTemplateData: (items: TemplateItem[]) => ReturnType;
5527
5519
  /**
5528
- * 删除 mention 节点
5520
+ * 插入模板块
5529
5521
  */
5530
- deleteMention: (id: string) => ReturnType;
5522
+ insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
5523
+ /**
5524
+ * 聚焦到第一个模板块
5525
+ */
5526
+ focusFirstTemplate: () => ReturnType;
5527
+ /**
5528
+ * 插入选择器
5529
+ */
5530
+ insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
5531
5531
  };
5532
5532
  }
5533
5533
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-robot",
3
- "version": "0.5.2-alpha.1",
3
+ "version": "0.5.2-alpha.3",
4
4
  "license": "MIT",
5
5
  "description": "TinyRobot 是一个 AI 对话组件库,提供了丰富的 AI 交互组件,助力开发者快速构建企业级 AI 应用;同时也是一个智能助手,支持普通 AI 问答、也支持集成 MCP Server,让 AI 真正帮人“干活”。",
6
6
  "homepage": "https://docs.opentiny.design/tiny-robot/",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@floating-ui/dom": "^1.6.0",
57
- "@opentiny/tiny-robot-svgs": "0.5.2-alpha.1",
57
+ "@opentiny/tiny-robot-svgs": "0.5.2-alpha.3",
58
58
  "@opentiny/vue": "^3.20.0",
59
59
  "@tiptap/core": "3.17.1",
60
60
  "@tiptap/extension-character-count": "3.17.1",
@@ -90,5 +90,5 @@
90
90
  "@tiptap/extension-bubble-menu": "3.17.1",
91
91
  "@tiptap/extension-floating-menu": "3.17.1"
92
92
  },
93
- "gitHead": "22957eb64f6f5709f0d548d44be381c284b93994"
93
+ "gitHead": "84475bc4b7695d335abcb249ee5267797b3133d1"
94
94
  }