Skip to content

Commit 3fa6d07

Browse files
committed
chore: sync documentation
1 parent ffa4f2c commit 3fa6d07

10 files changed

+23
-24
lines changed

packages/heuristic-table-plugin/docs/heuristic-table-plugin.htmltableprops.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Props for the [HTMLTable](./heuristic-table-plugin.htmltable.md) component.
99
<b>Signature:</b>
1010

1111
```typescript
12-
export interface HTMLTableProps extends CustomTagRendererProps<TBlock>
12+
export interface HTMLTableProps extends CustomRendererProps<TBlock>
1313
```
14-
<b>Extends:</b> CustomTagRendererProps&lt;TBlock&gt;
14+
<b>Extends:</b> CustomRendererProps&lt;TBlock&gt;
1515
1616
## Properties
1717

packages/heuristic-table-plugin/docs/heuristic-table-plugin.tdrenderer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ The renderer component for `td` tag.
99
<b>Signature:</b>
1010

1111
```typescript
12-
TdRenderer: CustomBlockRenderer<TableCellPropsFromParent>
12+
TdRenderer: CustomBlockRenderer
1313
```

packages/heuristic-table-plugin/docs/heuristic-table-plugin.threnderer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ The renderer component for `th` tag.
99
<b>Signature:</b>
1010

1111
```typescript
12-
ThRenderer: CustomBlockRenderer<TableCellPropsFromParent>
12+
ThRenderer: CustomBlockRenderer
1313
```

packages/heuristic-table-plugin/docs/heuristic-table-plugin.usehtmltablecellprops.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ Customize `td` and `th` renderers while reusing default cell renderer logic.
99
<b>Signature:</b>
1010

1111
```typescript
12-
export default function useHtmlTableCellProps({ propsFromParent, ...props }: DefaultTagRendererProps<TBlock, TableCellPropsFromParent>): DefaultTagRendererProps<TBlock, TableCellPropsFromParent>;
12+
export default function useHtmlTableCellProps({ propsFromParent, ...props }: CustomRendererProps<TBlock>): CustomRendererProps<TBlock>;
1313
```
1414

1515
## Parameters
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
19-
| { propsFromParent, ...props } | DefaultTagRendererProps&lt;TBlock, [TableCellPropsFromParent](./heuristic-table-plugin.tablecellpropsfromparent.md)<!-- -->&gt; | |
19+
| { propsFromParent, ...props } | CustomRendererProps&lt;TBlock&gt; | |
2020

2121
<b>Returns:</b>
2222

23-
DefaultTagRendererProps&lt;TBlock, [TableCellPropsFromParent](./heuristic-table-plugin.tablecellpropsfromparent.md)<!-- -->&gt;
23+
CustomRendererProps&lt;TBlock&gt;
2424

packages/heuristic-table-plugin/docs/heuristic-table-plugin.usehtmltableprops.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Customize the rendering logic of the table renderer via this hook.
99
<b>Signature:</b>
1010

1111
```typescript
12-
export default function useHtmlTableProps({ sharedProps, tnode, ...props }: CustomTagRendererProps<TBlock>, options?: {
12+
export default function useHtmlTableProps({ sharedProps, tnode, ...props }: CustomRendererProps<TBlock>, options?: {
1313
overrideContentWidth?: number;
1414
}): HTMLTableProps;
1515
```
@@ -18,7 +18,7 @@ export default function useHtmlTableProps({ sharedProps, tnode, ...props }: Cust
1818

1919
| Parameter | Type | Description |
2020
| --- | --- | --- |
21-
| { sharedProps, tnode, ...props } | CustomTagRendererProps&lt;TBlock&gt; | |
21+
| { sharedProps, tnode, ...props } | CustomRendererProps&lt;TBlock&gt; | |
2222
| options | { overrideContentWidth?: number; } | Customize this hook behavior. |
2323

2424
<b>Returns:</b>

packages/heuristic-table-plugin/etc/heuristic-table-plugin.api.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
```ts
66

77
import { CustomBlockRenderer } from 'react-native-render-html';
8-
import { CustomTagRendererProps } from 'react-native-render-html';
9-
import { DefaultTagRendererProps } from 'react-native-render-html';
8+
import { CustomRendererProps } from 'react-native-render-html';
109
import { PropsFromParent } from 'react-native-render-html';
1110
import { default as React_2 } from 'react';
1211
import { TBlock } from 'react-native-render-html';
@@ -49,7 +48,7 @@ export interface HeuristicTablePluginConfig {
4948
export const HTMLTable: React_2.NamedExoticComponent<HTMLTableProps>;
5049

5150
// @public
52-
export interface HTMLTableProps extends CustomTagRendererProps<TBlock> {
51+
export interface HTMLTableProps extends CustomRendererProps<TBlock> {
5352
// (undocumented)
5453
config: HeuristicTablePluginConfig;
5554
// Warning: (ae-forgotten-export) The symbol "TableLayout" needs to be exported by the entry point index.d.ts
@@ -111,16 +110,16 @@ export interface TableRoot {
111110
}
112111

113112
// @public
114-
export const TdRenderer: CustomBlockRenderer<TableCellPropsFromParent>;
113+
export const TdRenderer: CustomBlockRenderer;
115114

116115
// @public
117-
export const ThRenderer: CustomBlockRenderer<TableCellPropsFromParent>;
116+
export const ThRenderer: CustomBlockRenderer;
118117

119118
// @public
120-
export function useHtmlTableCellProps({ propsFromParent, ...props }: DefaultTagRendererProps<TBlock, TableCellPropsFromParent>): DefaultTagRendererProps<TBlock, TableCellPropsFromParent>;
119+
export function useHtmlTableCellProps({ propsFromParent, ...props }: CustomRendererProps<TBlock>): CustomRendererProps<TBlock>;
121120

122121
// @public
123-
export function useHtmlTableProps({ sharedProps, tnode, ...props }: CustomTagRendererProps<TBlock>, options?: {
122+
export function useHtmlTableProps({ sharedProps, tnode, ...props }: CustomRendererProps<TBlock>, options?: {
124123
overrideContentWidth?: number;
125124
}): HTMLTableProps;
126125

packages/table-plugin/docs/table-plugin.htmltablebaseprops.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface HTMLTableBaseProps extends HTMLTableStats
1919
| --- | --- | --- |
2020
| [html](./table-plugin.htmltablebaseprops.html.md) | string | The outerHtml of <table> tag. |
2121
| [htmlAttribs?](./table-plugin.htmltablebaseprops.htmlattribs.md) | Record&lt;string, string&gt; | <i>(Optional)</i> Html attributes for this table node. |
22-
| [onLinkPress?](./table-plugin.htmltablebaseprops.onlinkpress.md) | RenderersPropsBase\['a'\]\['onPress'\] | <i>(Optional)</i> Intercept links press. |
22+
| [onLinkPress?](./table-plugin.htmltablebaseprops.onlinkpress.md) | RenderersProps\['a'\]\['onPress'\] | <i>(Optional)</i> Intercept links press. |
2323
| [sourceBaseUrl?](./table-plugin.htmltablebaseprops.sourcebaseurl.md) | string | <i>(Optional)</i> The base to resolve relative URLs. |
2424
| [WebView](./table-plugin.htmltablebaseprops.webview.md) | ComponentType&lt;any&gt; | The <code>WebView</code> Component you wish to use. |
2525

packages/table-plugin/docs/table-plugin.htmltablebaseprops.onlinkpress.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ Intercept links press.
99
<b>Signature:</b>
1010

1111
```typescript
12-
onLinkPress?: RenderersPropsBase['a']['onPress'];
12+
onLinkPress?: RenderersProps['a']['onPress'];
1313
```

packages/table-plugin/docs/table-plugin.usehtmltableprops.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Extract props for the HTMLTable component from renderer function arguments. This
99
<b>Signature:</b>
1010

1111
```typescript
12-
export default function useHtmlTableProps({ key, style, tnode }: CustomTagRendererProps<TBlock>, tableConfig?: TableConfig): (HTMLTableProps & {
12+
export default function useHtmlTableProps({ key, style, tnode }: CustomRendererProps<TBlock>, tableConfig?: TableConfig): (HTMLTableProps & {
1313
key?: string | number;
1414
}) | null;
1515
```
@@ -18,7 +18,7 @@ export default function useHtmlTableProps({ key, style, tnode }: CustomTagRender
1818

1919
| Parameter | Type | Description |
2020
| --- | --- | --- |
21-
| { key, style, tnode } | CustomTagRendererProps&lt;TBlock&gt; | |
21+
| { key, style, tnode } | CustomRendererProps&lt;TBlock&gt; | |
2222
| tableConfig | [TableConfig](./table-plugin.tableconfig.md) | Override config options. |
2323

2424
<b>Returns:</b>

packages/table-plugin/etc/table-plugin.api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
import { ComponentType } from 'react';
88
import { CustomBlockRenderer } from 'react-native-render-html';
9-
import { CustomTagRendererProps } from 'react-native-render-html';
9+
import { CustomRendererProps } from 'react-native-render-html';
1010
import { HTMLContentModel } from 'react-native-render-html';
1111
import { HTMLElementModel } from '@native-html/transient-render-engine';
12-
import { RenderersPropsBase } from 'react-native-render-html';
12+
import { RenderersProps } from 'react-native-render-html';
1313
import { StyleProp } from 'react-native';
1414
import type { TBlock } from '@native-html/transient-render-engine';
1515
import { ViewStyle } from 'react-native';
@@ -27,7 +27,7 @@ export const HTMLTable: ({ WebView, tableStyleSpecs, cssRules, html, sourceBaseU
2727
export interface HTMLTableBaseProps extends HTMLTableStats {
2828
html: string;
2929
htmlAttribs?: Record<string, string>;
30-
onLinkPress?: RenderersPropsBase['a']['onPress'];
30+
onLinkPress?: RenderersProps['a']['onPress'];
3131
sourceBaseUrl?: string;
3232
WebView: ComponentType<any>;
3333
}
@@ -110,7 +110,7 @@ export interface TableStyleSpecs {
110110
}
111111

112112
// @public
113-
export function useHtmlTableProps({ key, style, tnode }: CustomTagRendererProps<TBlock>, tableConfig?: TableConfig): (HTMLTableProps & {
113+
export function useHtmlTableProps({ key, style, tnode }: CustomRendererProps<TBlock>, tableConfig?: TableConfig): (HTMLTableProps & {
114114
key?: string | number;
115115
}) | null;
116116

0 commit comments

Comments
 (0)