@opentiny/tiny-robot 0.4.0-beta.0 → 0.4.0
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.
- package/dist/index.d.ts +20 -21
- package/dist/index6.js +448 -455
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1656,12 +1656,11 @@ export declare interface BubbleListProps {
|
|
|
1656
1656
|
/**
|
|
1657
1657
|
* 分组策略:
|
|
1658
1658
|
* - 'consecutive': 连续相同角色的消息合并为一组
|
|
1659
|
-
* - 'divider':
|
|
1659
|
+
* - 'divider': 按分割角色分组(每条分割角色消息单独成组,其他消息在两个分割角色之间合并为一组)
|
|
1660
1660
|
* - 自定义函数: (messages, dividerRole) => BubbleMessageGroup[]
|
|
1661
1661
|
*
|
|
1662
1662
|
* 特殊情况:
|
|
1663
|
-
* -
|
|
1664
|
-
* - 该独立分组会被"密封",后续的消息(即使角色相同)也不会被添加到这个分组中
|
|
1663
|
+
* - hidden 的消息需要单独分组,连续的 hidden 可以同一组
|
|
1665
1664
|
*/
|
|
1666
1665
|
groupStrategy?: 'consecutive' | 'divider' | BubbleGroupFunction;
|
|
1667
1666
|
/**
|
|
@@ -4709,23 +4708,15 @@ export { }
|
|
|
4709
4708
|
*/
|
|
4710
4709
|
declare module '@tiptap/core' {
|
|
4711
4710
|
interface Commands<ReturnType> {
|
|
4712
|
-
|
|
4713
|
-
/**
|
|
4714
|
-
* 设置模板数据(批量)
|
|
4715
|
-
*/
|
|
4716
|
-
setTemplateData: (items: TemplateItem[]) => ReturnType;
|
|
4717
|
-
/**
|
|
4718
|
-
* 插入模板块
|
|
4719
|
-
*/
|
|
4720
|
-
insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
|
|
4711
|
+
mention: {
|
|
4721
4712
|
/**
|
|
4722
|
-
*
|
|
4713
|
+
* 插入 mention 节点
|
|
4723
4714
|
*/
|
|
4724
|
-
|
|
4715
|
+
insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
|
|
4725
4716
|
/**
|
|
4726
|
-
*
|
|
4717
|
+
* 删除 mention 节点
|
|
4727
4718
|
*/
|
|
4728
|
-
|
|
4719
|
+
deleteMention: (id: string) => ReturnType;
|
|
4729
4720
|
};
|
|
4730
4721
|
}
|
|
4731
4722
|
}
|
|
@@ -4738,15 +4729,23 @@ declare module '@tiptap/core' {
|
|
|
4738
4729
|
*/
|
|
4739
4730
|
declare module '@tiptap/core' {
|
|
4740
4731
|
interface Commands<ReturnType> {
|
|
4741
|
-
|
|
4732
|
+
template: {
|
|
4742
4733
|
/**
|
|
4743
|
-
*
|
|
4734
|
+
* 设置模板数据(批量)
|
|
4744
4735
|
*/
|
|
4745
|
-
|
|
4736
|
+
setTemplateData: (items: TemplateItem[]) => ReturnType;
|
|
4746
4737
|
/**
|
|
4747
|
-
*
|
|
4738
|
+
* 插入模板块
|
|
4748
4739
|
*/
|
|
4749
|
-
|
|
4740
|
+
insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
|
|
4741
|
+
/**
|
|
4742
|
+
* 聚焦到第一个模板块
|
|
4743
|
+
*/
|
|
4744
|
+
focusFirstTemplate: () => ReturnType;
|
|
4745
|
+
/**
|
|
4746
|
+
* 插入选择器
|
|
4747
|
+
*/
|
|
4748
|
+
insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
|
|
4750
4749
|
};
|
|
4751
4750
|
}
|
|
4752
4751
|
}
|