Skip to content

Commit

Permalink
update mutation api
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbenegas committed Feb 4, 2025
1 parent 1be73a5 commit 786f961
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
6 changes: 6 additions & 0 deletions packages/basehub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# basehub

## 8.1.10

### Patch Changes

- upgrade mutation helpers

## 8.1.9

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/basehub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "basehub",
"description": "A very fast Headless CMS.",
"author": "JB <[email protected]>",
"version": "8.1.9",
"version": "8.1.10",
"license": "MIT",
"repository": "basehub-ai/basehub",
"bugs": "https://github.com/basehub-ai/basehub/issues",
Expand Down Expand Up @@ -77,7 +77,7 @@
"zod": "^3.22.1"
},
"devDependencies": {
"@basehub/mutation-api-helpers": "2.0.7",
"@basehub/mutation-api-helpers": "2.0.9",
"@types/lodash.debounce": "^4.0.9",
"@types/lodash.get": "4.4.9",
"@types/node": "18.13.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/basehub/src/react/rich-text/primitive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,8 @@ const Marks = ({
// Fallback to regular link if block not found
props = {
children,
target: mark.attrs.target,
href: mark.attrs.href || "",
href: "#",
target: mark.attrs.target ?? undefined,
internal: undefined,
};
break;
Expand All @@ -648,15 +648,15 @@ const Marks = ({
// Remove _id and _sys from the block type
props = {
children,
href: mark.attrs.href || "",
target: mark.attrs.target,
href: "#",
target: mark.attrs.target ?? undefined,
internal: block,
} as InternalLinkProps<BaseCustomBlock, string>;
} else {
props = {
children,
href: mark.attrs.href,
target: mark.attrs.target,
target: mark.attrs.target ?? undefined,
internal: undefined,
rel:
mark.attrs.target?.toLowerCase() === "_blank"
Expand Down
7 changes: 7 additions & 0 deletions playground/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# playground

## 0.0.179

### Patch Changes

- Updated dependencies
- [email protected]

## 0.0.178

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "playground",
"private": true,
"version": "0.0.178",
"version": "0.0.179",
"scripts": {
"dev": "basehub dev & next dev --port 3003",
"build": "basehub && next build",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 786f961

Please sign in to comment.