@opentiny/tiny-robot 0.5.2-alpha.7 → 0.5.2-alpha.8

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
@@ -5494,23 +5494,15 @@ export { }
5494
5494
  */
5495
5495
  declare module '@tiptap/core' {
5496
5496
  interface Commands<ReturnType> {
5497
- template: {
5498
- /**
5499
- * 设置模板数据(批量)
5500
- */
5501
- setTemplateData: (items: TemplateItem[]) => ReturnType;
5502
- /**
5503
- * 插入模板块
5504
- */
5505
- insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
5497
+ mention: {
5506
5498
  /**
5507
- * 聚焦到第一个模板块
5499
+ * 插入 mention 节点
5508
5500
  */
5509
- focusFirstTemplate: () => ReturnType;
5501
+ insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
5510
5502
  /**
5511
- * 插入选择器
5503
+ * 删除 mention 节点
5512
5504
  */
5513
- insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
5505
+ deleteMention: (id: string) => ReturnType;
5514
5506
  };
5515
5507
  }
5516
5508
  }
@@ -5523,15 +5515,23 @@ declare module '@tiptap/core' {
5523
5515
  */
5524
5516
  declare module '@tiptap/core' {
5525
5517
  interface Commands<ReturnType> {
5526
- mention: {
5518
+ template: {
5527
5519
  /**
5528
- * 插入 mention 节点
5520
+ * 设置模板数据(批量)
5529
5521
  */
5530
- insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
5522
+ setTemplateData: (items: TemplateItem[]) => ReturnType;
5531
5523
  /**
5532
- * 删除 mention 节点
5524
+ * 插入模板块
5533
5525
  */
5534
- deleteMention: (id: string) => ReturnType;
5526
+ insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
5527
+ /**
5528
+ * 聚焦到第一个模板块
5529
+ */
5530
+ focusFirstTemplate: () => ReturnType;
5531
+ /**
5532
+ * 插入选择器
5533
+ */
5534
+ insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
5535
5535
  };
5536
5536
  }
5537
5537
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-robot",
3
- "version": "0.5.2-alpha.7",
3
+ "version": "0.5.2-alpha.8",
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.7",
57
+ "@opentiny/tiny-robot-svgs": "0.5.2-alpha.8",
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": "c46a4a6e98015fac07857857f777428be88ec924"
93
+ "gitHead": "c2d02016cdc0b29f8112e4c9b68cc65ad00f7a43"
94
94
  }