@blockprotocol/hook
Advanced tools
Comparing version 0.0.10-canary-20230209090045 to 0.0.10
@@ -1,2 +0,1 @@ | ||
import { EntityId } from "@blockprotocol/graph"; | ||
import { RefObject } from "react"; | ||
@@ -41,2 +40,2 @@ import { HookBlockHandler, HookEmbedderHandler } from "./index.js"; | ||
*/ | ||
export declare const useHook: <T extends HTMLElement>(service: HookBlockHandler, ref: RefObject<void | T | null>, type: string, entityId: EntityId, path: string, fallback: (node: T) => void | (() => void)) => void; | ||
export declare const useHook: <T extends HTMLElement>(service: HookBlockHandler, ref: RefObject<void | T | null>, type: string, entityId: string, path: string, fallback: (node: T) => void | (() => void)) => void; |
@@ -1,3 +0,2 @@ | ||
import { MessageCallback, MessageReturn } from "@blockprotocol/core"; | ||
import { EntityId } from "@blockprotocol/graph"; | ||
import { MessageCallback } from "@blockprotocol/core"; | ||
export type HookResponse = { | ||
@@ -11,3 +10,3 @@ hookId: string; | ||
hookId: string | null; | ||
entityId: EntityId; | ||
entityId: string; | ||
}; | ||
@@ -21,3 +20,3 @@ export type BlockHookMessageCallbacks = {}; | ||
export type EmbedderHookMessageCallbacks = { | ||
hook: MessageCallback<HookData, null, MessageReturn<HookResponse>, HookError>; | ||
hook: MessageCallback<HookData, null, HookResponse, HookError>; | ||
}; | ||
@@ -24,0 +23,0 @@ export type BlockHookMessages<Key extends keyof EmbedderHookMessageCallbacks = keyof EmbedderHookMessageCallbacks> = { |
{ | ||
"name": "@blockprotocol/hook", | ||
"version": "0.0.10-canary-20230209090045", | ||
"version": "0.0.10", | ||
"description": "Implementation of the Block Protocol Hook service specification for blocks and embedding applications", | ||
@@ -55,4 +55,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@blockprotocol/core": "0.0.14-canary-20230209090045", | ||
"@blockprotocol/graph": "0.0.20-canary-20230209090045" | ||
"@blockprotocol/core": "0.0.14" | ||
}, | ||
@@ -59,0 +58,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2
83975
474
+ Added@blockprotocol/core@0.0.14(transitive)
- Removed@bcherny/json-schema-ref-parser@10.0.5-fork(transitive)
- Removed@blockprotocol/core@0.0.14-canary-20230209090045(transitive)
- Removed@blockprotocol/graph@0.0.20-canary-20230209090045(transitive)
- Removed@blockprotocol/type-system@0.0.4-canary-20230209090045(transitive)
- Removed@jsdevtools/ono@7.1.3(transitive)
- Removed@lit-labs/ssr-dom-shim@1.3.0(transitive)
- Removed@lit/reactive-element@1.6.3(transitive)
- Removed@types/glob@7.2.0(transitive)
- Removed@types/json-schema@7.0.15(transitive)
- Removed@types/lodash@4.17.15(transitive)
- Removed@types/minimatch@5.1.2(transitive)
- Removed@types/node@22.13.5(transitive)
- Removed@types/prettier@2.7.3(transitive)
- Removed@types/trusted-types@2.0.7(transitive)
- Removedajv@8.17.1(transitive)
- Removedajv-formats@2.1.1(transitive)
- Removedany-promise@1.3.0(transitive)
- Removedargparse@2.0.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcall-me-maybe@1.0.2(transitive)
- Removedcli-color@2.0.4(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedd@1.0.2(transitive)
- Removeddata-uri-to-buffer@4.0.1(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedes6-weak-map@2.0.3(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedext@1.7.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-uri@3.0.6(transitive)
- Removedfetch-blob@3.2.0(transitive)
- Removedformdata-polyfill@4.0.10(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedget-stdin@8.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedglob-promise@4.2.2(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-promise@2.2.2(transitive)
- Removedjs-yaml@4.1.0(transitive)
- Removedjson-schema-to-typescript@11.0.5(transitive)
- Removedjson-schema-traverse@1.0.0(transitive)
- Removedlit@2.8.0(transitive)
- Removedlit-element@3.3.3(transitive)
- Removedlit-html@2.8.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlru-queue@0.1.0(transitive)
- Removedmemoizee@0.4.17(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removedmz@2.7.0(transitive)
- Removednext-tick@1.1.0(transitive)
- Removednode-domexception@1.0.0(transitive)
- Removednode-fetch@3.3.2(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprettier@2.8.8(transitive)
- Removedrequire-from-string@2.0.2(transitive)
- Removedthenify@3.3.1(transitive)
- Removedthenify-all@1.6.0(transitive)
- Removedtimers-ext@0.1.8(transitive)
- Removedtype@2.7.3(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedweb-streams-polyfill@3.3.3(transitive)
- Removedwrappy@1.0.2(transitive)
Updated@blockprotocol/core@0.0.14