@opentiny/tiny-robot 1.0.0-beta.0 → 1.0.0-beta.1

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
@@ -6060,15 +6060,23 @@ export { }
6060
6060
  */
6061
6061
  declare module '@tiptap/core' {
6062
6062
  interface Commands<ReturnType> {
6063
- mention: {
6063
+ template: {
6064
6064
  /**
6065
- * 插入 mention 节点
6065
+ * 设置模板数据(批量)
6066
6066
  */
6067
- insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
6067
+ setTemplateData: (items: TemplateItem[]) => ReturnType;
6068
6068
  /**
6069
- * 删除 mention 节点
6069
+ * 插入模板块
6070
6070
  */
6071
- deleteMention: (id: string) => ReturnType;
6071
+ insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
6072
+ /**
6073
+ * 聚焦到第一个模板块
6074
+ */
6075
+ focusFirstTemplate: () => ReturnType;
6076
+ /**
6077
+ * 插入选择器
6078
+ */
6079
+ insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
6072
6080
  };
6073
6081
  }
6074
6082
  }
@@ -6081,23 +6089,15 @@ declare module '@tiptap/core' {
6081
6089
  */
6082
6090
  declare module '@tiptap/core' {
6083
6091
  interface Commands<ReturnType> {
6084
- template: {
6085
- /**
6086
- * 设置模板数据(批量)
6087
- */
6088
- setTemplateData: (items: TemplateItem[]) => ReturnType;
6089
- /**
6090
- * 插入模板块
6091
- */
6092
- insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
6092
+ mention: {
6093
6093
  /**
6094
- * 聚焦到第一个模板块
6094
+ * 插入 mention 节点
6095
6095
  */
6096
- focusFirstTemplate: () => ReturnType;
6096
+ insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
6097
6097
  /**
6098
- * 插入选择器
6098
+ * 删除 mention 节点
6099
6099
  */
6100
- insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
6100
+ deleteMention: (id: string) => ReturnType;
6101
6101
  };
6102
6102
  }
6103
6103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-robot",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0-beta.1",
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": "1.0.0-beta.0",
57
+ "@opentiny/tiny-robot-svgs": "1.0.0-beta.1",
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": "30a225596e22a9f9f51d70333901c0ebcf0fccd1"
93
+ "gitHead": "49bf2d12171a55e1029bd00bdf2c5dbb53be3eb7"
94
94
  }