@opentiny/tiny-robot 0.3.0-alpha.17 → 0.3.0-alpha.18

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 CHANGED
@@ -1899,13 +1899,7 @@ export declare interface BubbleCommonProps {
1899
1899
  * 如果 Bubble 中的 content 是长度大于 0 的数组,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
1900
1900
  */
1901
1901
  contentRenderer?: BubbleContentRenderer;
1902
- /**
1903
- * 自定义气泡内容字段。比如 customContentField 设置为 'my-content',则 Bubble 优先渲染 my-content 属性到气泡内容
1904
- */
1905
- customContentField?: string;
1906
- /**
1907
- * 气泡最大宽度
1908
- */
1902
+ hidden?: boolean;
1909
1903
  maxWidth?: string | number;
1910
1904
  }
1911
1905
 
@@ -1957,26 +1951,20 @@ export declare interface BubbleListProps {
1957
1951
 
1958
1952
  export declare class BubbleMarkdownContentRenderer extends BubbleContentClassRenderer {
1959
1953
  readonly mdConfig: Options;
1960
- readonly dompurifyConfig: Config;
1961
- readonly sanitizeDisabled: boolean;
1962
- readonly defaultAttrs: Record<string, unknown>;
1954
+ readonly dompurifyConfig: Config & {
1955
+ disable?: boolean;
1956
+ };
1963
1957
  private md;
1964
- constructor(options?: BubbleMarkdownRendererOptions);
1958
+ constructor(mdConfig?: Options, dompurifyConfig?: Config & {
1959
+ disable?: boolean;
1960
+ });
1965
1961
  render(options: {
1966
1962
  content?: string;
1967
- [key: string]: unknown;
1968
1963
  }): VNode<RendererNode, RendererElement, {
1969
1964
  [key: string]: any;
1970
1965
  }>;
1971
1966
  }
1972
1967
 
1973
- declare interface BubbleMarkdownRendererOptions {
1974
- mdConfig?: Options;
1975
- dompurifyConfig?: Config;
1976
- sanitizeDisabled?: boolean;
1977
- defaultAttrs?: Record<string, unknown>;
1978
- }
1979
-
1980
1968
  export declare interface BubbleProps extends BubbleCommonProps {
1981
1969
  /**
1982
1970
  * 气泡内容
@@ -1997,7 +1985,6 @@ export { BubbleProvider as TrBubbleProvider }
1997
1985
  declare const bubbleProviderInstall: (app: App) => void;
1998
1986
 
1999
1987
  export declare type BubbleRoleConfig = BubbleCommonProps & {
2000
- hidden?: boolean;
2001
1988
  slots?: BubbleSlots;
2002
1989
  };
2003
1990