-
Notifications
You must be signed in to change notification settings - Fork 61
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: add support for text
property in link fields
#348
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's tackle the one above or discuss it, otherwise I'm good with it :)
…empty-link support link text with boolean config & empty link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few small things, mainly surrounding the decision to not add allowText
on content relationship fields.
/** | ||
* Supports optional `text` property. | ||
*/ | ||
expectType<prismic.CustomTypeModelContentRelationshipField>({ | ||
type: prismic.CustomTypeModelFieldType.Link, | ||
config: { | ||
label: "string", | ||
select: prismic.CustomTypeModelLinkSelectType.Document, | ||
}, | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text
property. This test is identical to the file's first expectType
test.
…text-in-links # Conflicts: # CHANGELOG.md # package-lock.json # package.json
…text-in-links # Conflicts: # CHANGELOG.md # package-lock.json # package.json
945e7ae
to
986284b
Compare
Resolves: DT-2283
Sub-ticket of: DT-2259
Description
Adds support for the
text
property in link fields.Checklist
Preview
N/A
How to QA 1
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩