@opentiny/tiny-robot 0.4.1-alpha.0 → 0.4.1-alpha.2

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
@@ -4975,23 +4975,15 @@ export { }
4975
4975
  */
4976
4976
  declare module '@tiptap/core' {
4977
4977
  interface Commands<ReturnType> {
4978
- template: {
4979
- /**
4980
- * 设置模板数据(批量)
4981
- */
4982
- setTemplateData: (items: TemplateItem[]) => ReturnType;
4983
- /**
4984
- * 插入模板块
4985
- */
4986
- insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
4978
+ mention: {
4987
4979
  /**
4988
- * 聚焦到第一个模板块
4980
+ * 插入 mention 节点
4989
4981
  */
4990
- focusFirstTemplate: () => ReturnType;
4982
+ insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
4991
4983
  /**
4992
- * 插入选择器
4984
+ * 删除 mention 节点
4993
4985
  */
4994
- insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
4986
+ deleteMention: (id: string) => ReturnType;
4995
4987
  };
4996
4988
  }
4997
4989
  }
@@ -5004,15 +4996,23 @@ declare module '@tiptap/core' {
5004
4996
  */
5005
4997
  declare module '@tiptap/core' {
5006
4998
  interface Commands<ReturnType> {
5007
- mention: {
4999
+ template: {
5008
5000
  /**
5009
- * 插入 mention 节点
5001
+ * 设置模板数据(批量)
5010
5002
  */
5011
- insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
5003
+ setTemplateData: (items: TemplateItem[]) => ReturnType;
5012
5004
  /**
5013
- * 删除 mention 节点
5005
+ * 插入模板块
5014
5006
  */
5015
- deleteMention: (id: string) => ReturnType;
5007
+ insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
5008
+ /**
5009
+ * 聚焦到第一个模板块
5010
+ */
5011
+ focusFirstTemplate: () => ReturnType;
5012
+ /**
5013
+ * 插入选择器
5014
+ */
5015
+ insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
5016
5016
  };
5017
5017
  }
5018
5018
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-robot",
3
- "version": "0.4.1-alpha.0",
3
+ "version": "0.4.1-alpha.2",
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.1-alpha.0",
57
+ "@opentiny/tiny-robot-svgs": "0.4.1-alpha.2",
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": "22cb4503b47f2e1d2134d4a90d02b5643672ef6c"
93
+ "gitHead": "a68e9109e840fdf6f37d1dab835ac58546e7cdcb"
94
94
  }