@opentiny/tiny-robot 0.4.2-alpha.10 → 0.4.2-alpha.11

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
@@ -5196,15 +5196,23 @@ export { }
5196
5196
  */
5197
5197
  declare module '@tiptap/core' {
5198
5198
  interface Commands<ReturnType> {
5199
- mention: {
5199
+ template: {
5200
5200
  /**
5201
- * 插入 mention 节点
5201
+ * 设置模板数据(批量)
5202
5202
  */
5203
- insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
5203
+ setTemplateData: (items: TemplateItem[]) => ReturnType;
5204
5204
  /**
5205
- * 删除 mention 节点
5205
+ * 插入模板块
5206
5206
  */
5207
- deleteMention: (id: string) => ReturnType;
5207
+ insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
5208
+ /**
5209
+ * 聚焦到第一个模板块
5210
+ */
5211
+ focusFirstTemplate: () => ReturnType;
5212
+ /**
5213
+ * 插入选择器
5214
+ */
5215
+ insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
5208
5216
  };
5209
5217
  }
5210
5218
  }
@@ -5217,23 +5225,15 @@ declare module '@tiptap/core' {
5217
5225
  */
5218
5226
  declare module '@tiptap/core' {
5219
5227
  interface Commands<ReturnType> {
5220
- template: {
5221
- /**
5222
- * 设置模板数据(批量)
5223
- */
5224
- setTemplateData: (items: TemplateItem[]) => ReturnType;
5225
- /**
5226
- * 插入模板块
5227
- */
5228
- insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
5228
+ mention: {
5229
5229
  /**
5230
- * 聚焦到第一个模板块
5230
+ * 插入 mention 节点
5231
5231
  */
5232
- focusFirstTemplate: () => ReturnType;
5232
+ insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
5233
5233
  /**
5234
- * 插入选择器
5234
+ * 删除 mention 节点
5235
5235
  */
5236
- insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
5236
+ deleteMention: (id: string) => ReturnType;
5237
5237
  };
5238
5238
  }
5239
5239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-robot",
3
- "version": "0.4.2-alpha.10",
3
+ "version": "0.4.2-alpha.11",
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.4.2-alpha.10",
57
+ "@opentiny/tiny-robot-svgs": "0.4.2-alpha.11",
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": "d51ffd84e76b006921515513fbe4766d94ec7cfa"
93
+ "gitHead": "76dae716694672301f299190439618aeb1586d63"
94
94
  }