{
	"$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": "Trusted frontend JavaScript with optional external script dependencies. Use document or context.document for sibling content; element is this block wrapper. Dependencies load before code. Return an optional cleanup function.",
	"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."
		},
		"scripts": {
			"type": "array",
			"items": {
				"type": "string"
			},
			"default": [],
			"description": "Absolute HTTP/HTTPS classic script dependencies, loaded in order before code."
		}
	},
	"supports": {
		"align": [
			"wide",
			"full"
		],
		"anchor": true,
		"html": false
	}
}
