@blockprotocol/graph
Advanced tools
Comparing version
import { ServiceHandler } from "@blockprotocol/core"; | ||
import GraphServiceJson from "./graph-service.js"; | ||
console.log({ GraphServiceJson }); | ||
/** | ||
@@ -4,0 +5,0 @@ * Creates a handler for the graph service for the embedder. |
import { RefObject, VoidFunctionComponent } from "react"; | ||
import { BlockGraphProperties, GraphBlockHandler, GraphEmbedderHandler } from "./index.js"; | ||
import { BlockGraphProperties } from "./index.js"; | ||
import { GraphEmbedderHandler } from "./graph-embedder-handler.js"; | ||
import { GraphBlockHandler } from "./graph-block-handler.js"; | ||
export declare type BlockComponent<Properties extends Record<string, unknown> | null = null> = VoidFunctionComponent<BlockGraphProperties<Properties>>; | ||
@@ -4,0 +6,0 @@ /** |
import { useEffect, useRef, useState, } from "react"; | ||
import { GraphBlockHandler, GraphEmbedderHandler, } from "./index.js"; | ||
import { GraphEmbedderHandler } from "./graph-embedder-handler.js"; | ||
import { GraphBlockHandler } from "./graph-block-handler.js"; | ||
const useGraphServiceConstructor = ({ Handler, constructorArgs, ref, }) => { | ||
@@ -4,0 +5,0 @@ const previousRef = useRef(null); |
{ | ||
"name": "@blockprotocol/graph", | ||
"version": "0.0.11-canary.11", | ||
"version": "0.0.11-canary.12", | ||
"description": "Implementation of the Block Protocol Graph service specification for blocks and embedding applications", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
78211
0.35%1578
0.25%