{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"version": "1.0.0",
	"name": "advanced-addons/custom-javascript",
	"title": "Custom JavaScript",
	"category": "design",
	"icon": "editor-code",
	"description": "A trusted container for interfaces that need JavaScript. Put blocks inside it and supply browser JavaScript in the code attribute. The runtime calls the code with element (this block wrapper) and motion (the complete Motion library); return a cleanup function when listeners or observers are created. Do not use imports or script tags.",
	"keywords": [ "javascript", "motion", "interactive" ],
	"textdomain": "advanced-animation",
	"editorStyle": "file:../../build/custom-javascript-block.css",
	"attributes": {
		"code": {
			"type": "string",
			"default": "",
			"description": "Browser JavaScript function body. Available variables: element, motion, context. Return an optional cleanup function."
		},
		"label": {
			"type": "string",
			"default": "Custom JavaScript"
		},
		"signature": {
			"type": "string",
			"default": "",
			"description": "Server-managed integrity signature. Always omit this attribute when creating or editing the block."
		}
	},
	"supports": {
		"align": [ "wide", "full" ],
		"anchor": true,
		"html": false
	}
}
