@opentiny/tiny-robot 0.3.0-alpha.1 → 0.3.0-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.
package/dist/index.d.ts CHANGED
@@ -1832,10 +1832,12 @@ export declare const BubbleChainMessageRenderer: DefineComponent< {
1832
1832
  items: ChainItem[];
1833
1833
  html?: boolean;
1834
1834
  contentClass?: string;
1835
+ contentRenderer?: (content: string) => string;
1835
1836
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
1836
1837
  items: ChainItem[];
1837
1838
  html?: boolean;
1838
1839
  contentClass?: string;
1840
+ contentRenderer?: (content: string) => string;
1839
1841
  }> & Readonly<{}>, {
1840
1842
  html: boolean;
1841
1843
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -1892,14 +1894,15 @@ export declare interface BubbleListProps {
1892
1894
  }
1893
1895
 
1894
1896
  export declare class BubbleMarkdownMessageRenderer extends BubbleMessageClassRenderer {
1897
+ readonly md: default_2;
1895
1898
  readonly mdConfig: Options;
1896
- readonly dompurifyConfig: Config & {
1897
- disable?: boolean;
1899
+ readonly dompurifyConfig: Config;
1900
+ readonly sanitizeDisabled: boolean;
1901
+ readonly styleOptions: {
1902
+ class?: string;
1903
+ style?: string;
1898
1904
  };
1899
- readonly md: default_2;
1900
- constructor(mdConfig?: Options, dompurifyConfig?: Config & {
1901
- disable?: boolean;
1902
- });
1905
+ constructor({ mdConfig, dompurifyConfig, sanitizeDisabled, styleOptions }?: BubbleMarkdownRendererOptions);
1903
1906
  render(options: {
1904
1907
  content?: string;
1905
1908
  }): VNode<RendererNode, RendererElement, {
@@ -1907,6 +1910,16 @@ export declare class BubbleMarkdownMessageRenderer extends BubbleMessageClassRen
1907
1910
  }>;
1908
1911
  }
1909
1912
 
1913
+ declare interface BubbleMarkdownRendererOptions {
1914
+ mdConfig?: Options;
1915
+ dompurifyConfig?: Config;
1916
+ sanitizeDisabled?: boolean;
1917
+ styleOptions?: {
1918
+ class?: string;
1919
+ style?: string;
1920
+ };
1921
+ }
1922
+
1910
1923
  export declare abstract class BubbleMessageClassRenderer {
1911
1924
  abstract render(options: {
1912
1925
  [key: string]: any;
@@ -1922,7 +1935,10 @@ export declare interface BubbleMessageProps {
1922
1935
  [key: string]: any;
1923
1936
  }
1924
1937
 
1925
- export declare type BubbleMessageRenderer = BubbleMessageFunctionRenderer | BubbleMessageClassRenderer | Component;
1938
+ export declare type BubbleMessageRenderer = BubbleMessageFunctionRenderer | BubbleMessageClassRenderer | Component | {
1939
+ component: Component;
1940
+ defaultProps: Record<string, unknown>;
1941
+ };
1926
1942
 
1927
1943
  export declare interface BubbleProps extends BubbleCommonProps {
1928
1944
  /**