Skip to content

Commit

Permalink
Merge pull request #205 from prismicio/xru/support-link-text
Browse files Browse the repository at this point in the history
feat: support link text
  • Loading branch information
dani-mp authored Sep 27, 2024
2 parents 2f15c25 + e68a6e3 commit c41ffb5
Show file tree
Hide file tree
Showing 10 changed files with 136 additions and 368 deletions.
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

0 comments on commit c41ffb5

Please sign in to comment.