-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e284086
commit 4940acc
Showing
8 changed files
with
67 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"mode": "pre", | ||
"tag": "canary", | ||
"initialVersions": { | ||
"eslint-config-custom": "1.0.0", | ||
"tsconfig": "1.0.0", | ||
"basehub": "7.0.6", | ||
"playground": "0.0.113" | ||
}, | ||
"changesets": [ | ||
"tame-horses-protect" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"basehub": patch | ||
--- | ||
|
||
Auto alias union fields to prevent conflicts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "basehub", | ||
"description": "The first AI-native content hub.", | ||
"author": "JB <[email protected]>", | ||
"version": "7.0.6", | ||
"version": "7.0.7-canary.0", | ||
"license": "MIT", | ||
"repository": "basehub-ai/basehub", | ||
"bugs": "https://github.com/basehub-ai/basehub/issues", | ||
|
@@ -50,7 +50,7 @@ | |
"react-dom": "^18.2.0" | ||
}, | ||
"dependencies": { | ||
"@basehub/genql": "8.0.1", | ||
"@basehub/genql": "9.0.0-canary.0", | ||
"@basehub/mutation-api-helpers": "2.0.0", | ||
"@radix-ui/react-slot": "1.0.2", | ||
"arg": "5.0.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# playground | ||
|
||
## 0.0.114-canary.0 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies | ||
- [email protected] | ||
|
||
## 0.0.113 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,36 @@ | ||
import { Pump } from "basehub/react-pump"; | ||
import { BaseHubImage } from "basehub/next-image"; | ||
import Image from "next/image"; | ||
import { basehub } from "basehub"; | ||
|
||
export default async function HomePage() { | ||
return ( | ||
<Pump | ||
queries={[ | ||
{ | ||
footer: { | ||
someImage: { | ||
url: true, | ||
width: true, | ||
height: true, | ||
alt: true, | ||
const data = await basehub({ cache: "no-cache" }).query({ | ||
unionTests: { | ||
union: { | ||
on_FeaturesBigImageComponent: { | ||
__typename: true, | ||
// __scalar: true, | ||
conflict: true, | ||
}, | ||
on_AnotherCompComponent: { | ||
__typename: true, | ||
// __scalar: true, | ||
conflict: true, | ||
nested: { | ||
on_AnotherCompComponent: { | ||
conflict: true, | ||
}, | ||
on_FeaturesBigImageComponent: { | ||
conflict: true, | ||
}, | ||
}, | ||
}, | ||
]} | ||
> | ||
{async ([data]) => { | ||
"use server"; | ||
return ( | ||
<div> | ||
<BaseHubImage | ||
src={data.footer.someImage.url} | ||
alt={data.footer.someImage.alt ?? ""} | ||
width={1600 / 2} | ||
height={900 / 2} | ||
/> | ||
<Image | ||
src={data.footer.someImage.url} | ||
alt={data.footer.someImage.alt ?? ""} | ||
width={1600 / 2} | ||
height={900 / 2} | ||
/> | ||
</div> | ||
); | ||
}} | ||
</Pump> | ||
}, | ||
}, | ||
}); | ||
|
||
return ( | ||
<div> | ||
<pre> | ||
<code>{JSON.stringify(data, null, 2)}</code> | ||
</pre> | ||
</div> | ||
); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.