Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support link text #205

Merged
merged 11 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [2.9.0-alpha.0](https://github.com/prismicio/prismic-react/compare/v2.7.4...v2.9.0-alpha.0) (2024-09-10)


### Features

* support link text ([aeeedcd](https://github.com/prismicio/prismic-react/commit/aeeedcd70058a73f1a00da0d12f2a555ab5d5cf0))
* support React 19 ([c06d5c1](https://github.com/prismicio/prismic-react/commit/c06d5c13a9313efc5dda0c98f714803789b48bf8))


### Chore

* **release:** 2.8.0 ([2f15c25](https://github.com/prismicio/prismic-react/commit/2f15c2592d41672e2b76921b3ebeebfb1c4617f0))

## [2.8.0](https://github.com/prismicio/prismic-react/compare/v2.7.4...v2.8.0) (2024-05-30)


Expand Down
5 changes: 1 addition & 4 deletions examples/with-typescript/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ type PageDocument = prismic.PrismicDocumentWithUID<{
title: prismic.TitleField;
meta_description: prismic.RichTextField;
related_links: prismic.GroupField<{
label: prismic.KeyTextField;
link: prismic.LinkField;
}>;

Expand All @@ -23,7 +22,6 @@ type PageDocument = prismic.PrismicDocumentWithUID<{
heading: prismic.KeyTextField;
body: prismic.RichTextField;
buttons: prismic.GroupField<{
label: prismic.KeyTextField;
link: prismic.LinkField;
}>;
}
Expand All @@ -38,7 +36,6 @@ type PageDocument = prismic.PrismicDocumentWithUID<{
{
text: prismic.RichTextField;
buttons: prismic.GroupField<{
label: prismic.KeyTextField;
link: prismic.LinkField;
}>;
}
Expand Down Expand Up @@ -85,7 +82,7 @@ export const WithGroupFieldLink = (): JSX.Element => {
: item.link.url
}
>
<PrismicLink field={item.link}>{item.label}</PrismicLink>
<PrismicLink field={item.link} />
</li>
),
)}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"@prismicio/react": "../../src"
},
"devDependencies": {
"@prismicio/client": "^7.5.0"
"@prismicio/client": "7.9.0-alpha.2"
}
}
Loading
Loading