New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@blockprotocol/hook

Package Overview
Dependencies
Maintainers
8
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockprotocol/hook - npm Package Compare versions

Comparing version 0.0.10-canary-20230209090045 to 0.0.10

3

dist/react.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc