Skip to content

Commit

Permalink
chore: rename uri to link to differentiate
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj committed Jul 11, 2024
1 parent b467aec commit 0c0bd6f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const jsonFormsLinkControlTester: RankedTester = rankWith(
JSON_FORMS_RANKING.LinkControl,
and(
isStringControl,
schemaMatches((schema) => schema.format === "uri"),
schemaMatches((schema) => schema.format === "link"),
),
)

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/interfaces/complex/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ButtonSchema = Type.Object(
href: Type.String({
title: "Button URL",
description: "The URL to navigate to when the button is clicked",
format: "uri",
format: "link",
}),
colorScheme: Type.Optional(
Type.Union(
Expand Down
8 changes: 4 additions & 4 deletions packages/components/src/interfaces/complex/Hero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const HeroButtonsSchema = Type.Object({
Type.String({
title: "Button destination",
description: "When this is clicked, open:",
format: "uri",
format: "link",
}),
),
secondaryButtonLabel: Type.Optional(
Expand All @@ -40,7 +40,7 @@ const HeroButtonsSchema = Type.Object({
Type.String({
title: "Button destination",
description: "When this is clicked, open:",
format: "uri",
format: "link",
}),
),
})
Expand All @@ -61,7 +61,7 @@ const HeroKeyHighlightSchema = Type.Object({
title: "Key highlight URL",
description:
"The URL to navigate to when the key highlight is clicked",
format: "uri",
format: "link",
}),
}),
{
Expand All @@ -88,7 +88,7 @@ const HeroDropdownSchema = Type.Object({
title: "Dropdown option URL",
description:
"The URL to navigate to when the dropdown option is clicked",
format: "uri",
format: "link",
}),
}),
{
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/interfaces/complex/InfoCols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const InfoBoxSchema = Type.Object({
Type.String({
title: "Button URL",
description: "The URL the button should navigate to",
format: "uri",
format: "link",
}),
),
})
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/interfaces/complex/Infobar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const InfobarSchema = Type.Object(
Type.String({
title: "Button URL",
description: "The URL for the primary button",
format: "uri",
format: "link",
}),
),
secondaryButtonLabel: Type.Optional(
Expand All @@ -45,7 +45,7 @@ export const InfobarSchema = Type.Object(
Type.String({
title: "Secondary button URL",
description: "The URL for the secondary button",
format: "uri",
format: "link",
}),
),
},
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/interfaces/complex/Infopic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const InfopicSchema = Type.Object(
Type.String({
title: "Infopic button URL",
description: "The URL the button should navigate to",
format: "uri",
format: "link",
}),
),
isTextOnRight: Type.Optional(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ContentPageHeaderSchema = Type.Object(
Type.String({
title: "Button URL",
description: "The URL the button should link to",
format: "uri",
format: "link",
}),
),
},
Expand Down

0 comments on commit 0c0bd6f

Please sign in to comment.