Skip to content

Commit 72bd170

Browse files
committed
feat(352 | typesync.v2): publish fixes
1 parent 150e58b commit 72bd170

File tree

6 files changed

+66
-120
lines changed

6 files changed

+66
-120
lines changed

packages/hypergraph/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/hypergraph",
3-
"version": "0.5.0",
3+
"version": "0.5.0-alpha.2",
44
"description": "SDK for building performant, type-safe, local-first dapps on top of The Graph ecosystem knowledge graphs.",
55
"publishConfig": {
66
"bin": {
@@ -55,23 +55,22 @@
5555
"hg": "./src/cli/bun.ts"
5656
},
5757
"devDependencies": {
58-
"@effect/cli": "^0.69.0",
59-
"@effect/platform": "^0.90.0",
60-
"@effect/platform-node": "^0.94.1",
61-
"@effect/printer": "^0.45.0",
62-
"@effect/printer-ansi": "^0.45.0",
6358
"@effect/vitest": "^0.25.0",
6459
"@types/node": "^24.2.0",
6560
"@types/uuid": "^10.0.0",
6661
"jiti": "^2.5.1",
67-
"open": "^10.2.0",
6862
"tsx": "^4.20.3",
6963
"typescript": "^5.8.3"
7064
},
7165
"dependencies": {
7266
"@automerge/automerge": "^3.1.1",
7367
"@automerge/automerge-repo": "^2.2.0",
68+
"@effect/cli": "^0.69.0",
7469
"@effect/experimental": "^0.54.3",
70+
"@effect/platform": "^0.90.0",
71+
"@effect/platform-node": "^0.94.1",
72+
"@effect/printer": "^0.45.0",
73+
"@effect/printer-ansi": "^0.45.0",
7574
"@graphprotocol/grc-20": "^0.24.1",
7675
"@noble/ciphers": "^1.3.0",
7776
"@noble/curves": "^1.9.0",
@@ -82,6 +81,7 @@
8281
"@xstate/store": "^3.5.1",
8382
"bs58check": "^4.0.0",
8483
"effect": "^3.17.6",
84+
"open": "^10.2.0",
8585
"permissionless": "^0.2.47",
8686
"siwe": "^3.0.0",
8787
"uuid": "^11.1.0",

packages/hypergraph/src/cli/Cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ const hypergraph = Command.make('hypergraph').pipe(
1111

1212
export const run = Command.run(hypergraph, {
1313
name: 'hypergraph',
14-
version: '0.4.2',
14+
version: '0.5.0-alpha.2',
1515
});

packages/hypergraph/src/cli/subcommands/typesync.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ const TypesyncStudioFileRouter = Effect.gen(function* () {
160160
Effect.orElse(() => HttpServerResponse.empty({ status: 404 })),
161161
),
162162
),
163+
// specific handler for the /authenticate-callback endpoint for auth
164+
HttpRouter.get(
165+
'/authenticate-callback',
166+
HttpServerResponse.file(path.join(typesyncStudioClientDist, 'index.html')).pipe(
167+
Effect.orElse(() => HttpServerResponse.empty({ status: 404 })),
168+
),
169+
),
163170
HttpRouter.get(
164171
'/assets/:file',
165172
Effect.gen(function* () {

packages/hypergraph/typesync-studio/src/Context/AppSchemaSpaceContext.tsx

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -50,36 +50,34 @@ export function AppSchemaSpaceProvider({ children }: Readonly<{ children: React.
5050
}}
5151
>
5252
<div>
53-
<div>
54-
<div className="sticky top-0 z-40 flex h-16 shrink-0 items-center justify-between gap-x-4 border-b border-gray-200 dark:border-slate-800 bg-white dark:bg-slate-950 shadow-sm px-4">
55-
<div className="flex w-fit items-center h-16">
56-
<Link
57-
to="/"
58-
className="flex h-16 shrink-0 items-center justify-center text-xl border-b border-gray-200 dark:border-slate-800 bg-white dark:bg-slate-950 cursor-pointer"
53+
<div className="sticky top-0 z-40 flex h-16 shrink-0 items-center justify-between gap-x-4 border-b border-gray-200 dark:border-slate-800 bg-white dark:bg-slate-950 shadow-sm px-4">
54+
<div className="flex w-fit items-center h-16">
55+
<Link
56+
to="/"
57+
className="flex h-16 shrink-0 items-center justify-center text-xl border-b border-gray-200 dark:border-slate-800 bg-white dark:bg-slate-950 cursor-pointer"
58+
>
59+
Hypergraph TypeSync
60+
</Link>
61+
</div>
62+
<div className="flex items-center justify-end self-end w-fit gap-x-6 h-16">
63+
<UserPill />
64+
<div aria-hidden="true" className="block h-6 w-px bg-gray-900/10 dark:bg-slate-300" />
65+
<div className="flex items-center w-fit h-16 gap-x-2">
66+
<a
67+
href="https://github.com/graphprotocol/hypergraph"
68+
target="_blank"
69+
rel="noreferrer"
70+
className="p-2 w-fit h-fit inline-flex items-center justify-center rounded-full bg-gray-100 dark:bg-slate-800 text-gray-900 dark:text-white"
5971
>
60-
Hypergraph TypeSync
61-
</Link>
62-
</div>
63-
<div className="flex items-center justify-end self-end w-fit gap-x-6 h-16">
64-
<UserPill />
65-
<div aria-hidden="true" className="block h-6 w-px bg-gray-900/10 dark:bg-slate-300" />
66-
<div className="flex items-center w-fit h-16 gap-x-2">
67-
<a
68-
href="https://github.com/graphprotocol/hypergraph"
69-
target="_blank"
70-
rel="noreferrer"
71-
className="p-2 w-fit h-fit inline-flex items-center justify-center rounded-full bg-gray-100 dark:bg-slate-800 text-gray-900 dark:text-white"
72-
>
73-
<GithubLogoIcon size={16} />
74-
</a>
75-
</div>
72+
<GithubLogoIcon size={16} />
73+
</a>
7674
</div>
7775
</div>
78-
79-
<main className="py-10">
80-
<div className="px-4">{children}</div>
81-
</main>
8276
</div>
77+
78+
<main className="pt-6 pb-10">
79+
<div className="px-4">{children}</div>
80+
</main>
8381
</div>
8482
</AppSchemaSpaceContext.Provider>
8583
);

packages/hypergraph/typesync-studio/src/routes/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ function SchemaBuilderComponent() {
380380
e.stopPropagation();
381381
void createSchemaForm.handleSubmit();
382382
}}
383+
className="px-4"
383384
>
384385
<createSchemaForm.AppField name="types" mode="array">
385386
{(field) => (

pnpm-lock.yaml

Lines changed: 26 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)