Skip to content

Commit 672209c

Browse files
committed
chore: fix build
1 parent 113072b commit 672209c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

apps/docs/document-engine/sdks.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ The SDKs expose all operations from the [Document API](/document-api/overview) p
657657
| `doc.get_node_by_id` | `get-node-by-id` | Retrieve a single node by its unique ID. |
658658
| `doc.get_text` | `get-text` | Extract the plain-text content of the document. |
659659
| `doc.get_markdown` | `get-markdown` | Extract the document content as a Markdown string. |
660+
| `doc.get_html` | `get-html` | Extract the document content as an HTML string. |
660661
| `doc.info` | `info` | Return document metadata including revision, node count, and capabilities. |
661662
| `doc.query.match` | `query match` | Deterministic selector-based search with cardinality contracts for mutation targeting. |
662663
| `doc.mutations.preview` | `mutations preview` | Dry-run a mutation plan, returning resolved targets without applying changes. |

packages/super-editor/src/document-api-adapters/tables-adapter.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3674,14 +3674,15 @@ export function tablesGetStylesAdapter(editor: Editor, _input?: TablesGetStylesI
36743674
}
36753675

36763676
const translatedLinkedStyles = converter.translatedLinkedStyles ?? null;
3677-
const allStyles = translatedLinkedStyles?.styles ?? {};
3677+
const allStyles = translatedLinkedStyles?.styles ?? [];
36783678

36793679
// Collect table styles
36803680
const styles: TableStyleInfo[] = [];
3681-
for (const [id, def] of Object.entries(allStyles)) {
3681+
for (const def of allStyles) {
3682+
if (!def.styleId) continue;
36823683
if (def.type !== 'table') continue;
36833684
styles.push({
3684-
id,
3685+
id: def.styleId,
36853686
name: def.name ?? null,
36863687
basedOn: def.basedOn ?? null,
36873688
isDefault: def.default === true,

0 commit comments

Comments
 (0)