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 all 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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
node: [18]

steps:
- uses: actions/setup-node@v2
Expand Down Expand Up @@ -45,11 +45,11 @@ jobs:
run: npm run build

- name: Coverage
if: matrix.os == 'ubuntu-latest' && matrix.node == 16
if: matrix.os == 'ubuntu-latest' && matrix.node == 18
uses: codecov/codecov-action@v1

- name: Size
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node == 16
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node == 18
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

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](https://github.com/prismicio/prismic-react/compare/v2.9.0-alpha.0...v2.9.0) (2024-09-27)

## [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.11.0"
}
}
Loading
Loading