Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Aug 14, 2024
1 parent e7f6069 commit dc45450
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 92 deletions.
1 change: 1 addition & 0 deletions src/StructuredText/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ You need to use custom components in the following cases:
```astro
---
import { StructuredText } from '@datocms/astro/StructuredText';
import { executeQuery } from '@datocms/cda-client';
import Cta from '~/components/Cta/index.astro';
import NewsletterSignup from '~/components/NewsletterSignup/index.astro';
Expand Down
5 changes: 4 additions & 1 deletion src/StructuredText/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import StructuredText from './StructuredText.astro';

export { defaultComponents } from './utils';
export {
defaultMetaTransformer,
type TransformedMeta,
} from 'datocms-structured-text-generic-html-renderer';

export { StructuredText };
2 changes: 1 addition & 1 deletion src/StructuredText/nodes/ItemLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ const { meta } = node;
const attrs = meta ? defaultMetaTransformer({ node, meta }) : {};
---

<Component {node} {record} {attrs} />
<Component {node} {record} {attrs}><slot /></Component>
90 changes: 0 additions & 90 deletions src/StructuredText/utils.ts

This file was deleted.

0 comments on commit dc45450

Please sign in to comment.