[dev] Monorepo: validate blocks manifests as a build step. (#52767)

In this PR, we extend the blocks library build with a new step to validate block manifests, as the bundling step does not validate the manifests.
This commit is contained in:
Vladimir Reznichenko 2024-11-14 14:30:04 +01:00 committed by GitHub
parent 0493d1ffbf
commit 7f32086ae0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 1186 additions and 18 deletions

View File

@ -14,6 +14,7 @@
}, },
"attributes": { "attributes": {
"lock": { "lock": {
"type": "object",
"default": { "default": {
"remove": true, "remove": true,
"move": true "move": true
@ -26,4 +27,4 @@
"textdomain": "woocommerce", "textdomain": "woocommerce",
"$schema": "https://schemas.wp.org/trunk/block.json", "$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3 "apiVersion": 3
} }

View File

@ -10,7 +10,11 @@
"supports": { "supports": {
"html": false, "html": false,
"multiple": false, "multiple": false,
"color": true, "color": {
"background": true,
"text": true,
"button": true
},
"inserter": false, "inserter": false,
"lock": false "lock": false
}, },
@ -43,4 +47,4 @@
"textdomain": "woocommerce", "textdomain": "woocommerce",
"apiVersion": 3, "apiVersion": 3,
"$schema": "https://schemas.wp.org/trunk/block.json" "$schema": "https://schemas.wp.org/trunk/block.json"
} }

View File

@ -10,7 +10,11 @@
"supports": { "supports": {
"html": false, "html": false,
"multiple": false, "multiple": false,
"color": true, "color": {
"background": true,
"text": true,
"button": true
},
"inserter": false, "inserter": false,
"lock": false "lock": false
}, },
@ -47,4 +51,4 @@
"textdomain": "woocommerce", "textdomain": "woocommerce",
"apiVersion": 3, "apiVersion": 3,
"$schema": "https://schemas.wp.org/trunk/block.json" "$schema": "https://schemas.wp.org/trunk/block.json"
} }

View File

@ -0,0 +1,996 @@
{
"title": "JSON schema for WordPress blocks",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"//": {
"reference": "https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/",
"attributesReference": "https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/",
"contextReference": "https://developer.wordpress.org/block-editor/reference-guides/block-api/block-context/",
"supportsReference": "https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/",
"registerReference": "https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/#example-optional"
}
},
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"apiVersion": {
"description": "The version of the Block API used by the block. The most recent version is 3 and it was introduced in WordPress 6.3.\n\n See the API versions documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/ for more details.",
"type": "integer",
"enum": [ 1, 2, 3 ],
"default": 1
},
"name": {
"description": "The name for a block is a unique string that identifies a block. Names have to be structured as `namespace/block-name`, where namespace is the name of your plugin or theme.",
"type": "string",
"pattern": "^[a-z][a-z0-9-]*/[a-z][a-z0-9-]*$"
},
"__experimental": {
"description": "The name of the experiment this block is a part of, or boolean true if there is no specific experiment name.",
"anyOf": [
{
"type": "string"
},
{
"type": "boolean"
}
]
},
"title": {
"description": "This is the display title for your block, which can be translated with our translation functions. The block inserter will show this name.",
"type": "string"
},
"category": {
"description": "Blocks are grouped into categories to help users browse and discover them.\n Core provided categories are: text, media, design, widgets, theme, embed\n\nPlugins and Themes can also register custom block categories.\n\nhttps://developer.wordpress.org/block-editor/reference-guides/filters/block-filters/#managing-block-categories",
"anyOf": [
{
"type": "string"
},
{
"type": "string",
"enum": [
"text",
"media",
"design",
"widgets",
"theme",
"embed"
]
}
]
},
"parent": {
"description": "Setting parent lets a block require that it is only available when nested within the specified blocks. For example, you might want to allow an Add to Cart block to only be available within a Product block.",
"type": "array",
"items": {
"type": "string"
}
},
"ancestor": {
"description": "The `ancestor` property makes a block available inside the specified block types at any position of the ancestor block subtree. That allows, for example, to place a Comment Content block inside a Column block, as long as Column is somewhere within a Comment Template block.",
"type": "array",
"items": {
"type": "string"
}
},
"allowedBlocks": {
"description": "The `allowedBlocks` property specifies that only the listed block types can be the children of this block. For example, a List block allows only List Item blocks as direct children.",
"type": "array",
"items": {
"type": "string"
}
},
"icon": {
"description": "An icon property should be specified to make it easier to identify a block. These can be any of WordPress Dashicons (slug serving also as a fallback in non-js contexts).",
"type": "string"
},
"description": {
"description": "This is a short description for your block, which can be translated with our translation functions. This will be shown in the block inspector.",
"type": "string"
},
"keywords": {
"description": "Sometimes a block could have aliases that help users discover it while searching. For example, an image block could also want to be discovered by photo. You can do so by providing an array of unlimited terms (which are translated).",
"type": "array",
"items": {
"type": "string"
}
},
"version": {
"description": "The current version number of the block, such as 1.0 or 1.0.3. Its similar to how plugins are versioned. This field might be used with block assets to control cache invalidation, and when the block author omits it, then the installed version of WordPress is used instead.",
"type": "string"
},
"textdomain": {
"description": "The gettext text domain of the plugin/block. More information can be found in the Text Domain section of the How to Internationalize your Plugin page.\n\nhttps://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/",
"type": "string"
},
"attributes": {
"description": "Attributes provide the structured data needs of a block. They can exist in different forms when they are serialized, but they are declared together under a common interface.\n\nSee the attributes documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/ for more details.",
"type": "object",
"patternProperties": {
"[a-zA-Z]": {
"type": "object",
"properties": {
"type": {
"description": "The type indicates the type of data that is stored by the attribute. It does not indicate where the data is stored, which is defined by the source field.\n\nA type is required, unless an enum is provided. A type can be used with an enum.\n\nNote that the validity of an object is determined by your source. For an example, see the query details below.",
"oneOf": [
{
"type": "string",
"enum": [
"null",
"boolean",
"object",
"array",
"string",
"rich-text",
"integer",
"number"
]
},
{
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"null",
"boolean",
"object",
"array",
"string",
"integer",
"number"
]
}
}
]
},
"enum": {
"description": "An attribute can be defined as one of a fixed set of values. This is specified by an enum, which contains an array of allowed values:",
"type": "array",
"items": {
"oneOf": [
{ "type": "boolean" },
{ "type": "number" },
{ "type": "string" }
]
}
},
"source": {
"description": "Attribute sources are used to define how the attribute values are extracted from saved post content. They provide a mechanism to map from the saved markup to a JavaScript representation of a block.",
"type": "string",
"enum": [
"attribute",
"text",
"rich-text",
"html",
"raw",
"query",
"meta"
]
},
"selector": {
"description": "The selector can be an HTML tag, or anything queryable with querySelector, such as a class or id attribute. Examples are given below.\n\nFor example, a selector of img will match an img element, and img.class will match an img element that has a class of class.",
"type": "string"
},
"attribute": {
"description": "Use an attribute source to extract the value from an attribute in the markup. The attribute is specified by the attribute field, which must be supplied.\n\nExample: Extract the src attribute from an image found in the blocks markup.",
"type": "string"
},
"query": {
"description": "Use query to extract an array of values from markup. Entries of the array are determined by the selector argument, where each matched element within the block will have an entry structured corresponding to the second argument, an object of attribute sources.",
"type": "object"
},
"meta": {
"description": "Although attributes may be obtained from a posts meta, meta attribute sources are considered deprecated; EntityProvider and related hook APIs should be used instead, as shown in the Create Meta Block how-to here:\n\nhttps://developer.wordpress.org/block-editor/how-to-guides/metabox/#step-2-add-meta-block",
"type": "string"
},
"default": {
"description": "A block attribute can contain a default value, which will be used if the type and source do not match anything within the block content.\n\nThe value is provided by the default field, and the value should match the expected format of the attribute."
}
},
"anyOf": [
{ "required": [ "type" ] },
{ "required": [ "enum" ] }
]
}
},
"additionalProperties": false
},
"providesContext": {
"description": "Context provided for available access by descendants of blocks of this type, in the form of an object which maps a context name to one of the blocks own attribute.\n\nSee the block context documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-context/ for more details.",
"type": "object",
"patternProperties": {
"[a-zA-Z]": {
"type": "string"
}
}
},
"usesContext": {
"description": "Array of the names of context values to inherit from an ancestor provider.\n\nSee the block context documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-context/ for more details.",
"type": "array",
"items": {
"type": "string"
}
},
"supports": {
"description": "It contains as set of options to control features used in the editor. See the supports documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/ for more details.",
"type": "object",
"properties": {
"anchor": {
"description": "Anchors let you link directly to a specific block on a page. This property adds a field to define an id for the block and a button to copy the direct link.",
"type": "boolean",
"default": false
},
"align": {
"description": "This property adds block controls which allow to change blocks alignment.",
"oneOf": [
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string",
"enum": [
"wide",
"full",
"left",
"center",
"right"
]
}
}
],
"default": false
},
"alignWide": {
"description": "This property allows to enable wide alignment for your theme. To disable this behavior for a single block, set this flag to false.",
"type": "boolean",
"default": true
},
"ariaLabel": {
"description": "ARIA-labels let you define an accessible label for elements. This property allows enabling the definition of an aria-label for the block, without exposing a UI field.",
"type": "boolean",
"default": false
},
"className": {
"description": "By default, the class .wp-block-your-block-name is added to the root element of your saved markup. This helps having a consistent mechanism for styling blocks that themes and plugins can rely on. If, for whatever reason, a class is not desired on the markup, this functionality can be disabled.",
"type": "boolean",
"default": true
},
"color": {
"description": "This value signals that a block supports some of the properties related to color. When it does, the block editor will show UI controls for the user to set their values.\n\nNote that the background and text keys have a default value of true, so if the color property is present theyll also be considered enabled",
"type": "object",
"properties": {
"background": {
"description": "This property adds UI controls which allow the user to apply a solid background color to a block.\n\nWhen color support is declared, this property is enabled by default (along with text), so simply setting color will enable background color.\n\nTo disable background support while keeping other color supports enabled, set to false.\n\nWhen the block declares support for color.background, its attributes definition is extended to include two new attributes: backgroundColor and style",
"type": "boolean",
"default": true
},
"gradients": {
"description": "This property adds UI controls which allow the user to apply a gradient background to a block.\n\nGradient presets are sourced from editor-gradient-presets theme support.\n\nWhen the block declares support for color.gradient, its attributes definition is extended to include two new attributes: gradient and style",
"type": "boolean",
"default": false
},
"link": {
"description": "This property adds block controls which allow the user to set link color in a block, link color is disabled by default.\n\nLink color presets are sourced from the editor-color-palette theme support.\n\nWhen the block declares support for color.link, its attributes definition is extended to include the style attribute",
"type": "boolean",
"default": false
},
"text": {
"description": "This property adds block controls which allow the user to set text color in a block.\n\nWhen color support is declared, this property is enabled by default (along with background), so simply setting color will enable text color.\n\nText color presets are sourced from the editor-color-palette theme support.\n\nWhen the block declares support for color.text, its attributes definition is extended to include two new attributes: textColor and style",
"type": "boolean",
"default": true
},
"heading": {
"description": "This property adds block controls which allow the user to set heading colors in a block. Heading color is disabled by default.\n\nHeading color presets are sourced from the editor-color-palette theme support.\n\nWhen the block declares support for color.heading, its attributes definition is extended to include the style attribute",
"type": "boolean",
"default": false
},
"button": {
"description": "This property adds block controls which allow the user to set button colors in a block. Button color is disabled by default.\n\nButton color presets are sourced from the editor-color-palette theme support.\n\nWhen the block declares support for color.button, its attributes definition is extended to include the style attribute",
"type": "boolean",
"default": false
},
"enableContrastChecker": {
"description": "Determines whether the contrast checker widget displays in the block editor UI.\n\nThe contrast checker appears only if the block declares support for color. It tests the readability of color combinations and warns if there is a potential issue. The property is enabled by default.\n\nSet to `false` to explicitly disable.",
"type": "boolean",
"default": true
}
}
},
"customClassName": {
"description": "This property adds a field to define a custom className for the blocks wrapper.",
"type": "boolean",
"default": true
},
"dimensions": {
"description": "This value signals that a block supports some of the CSS style properties related to dimensions. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific dimensions property, its attributes definition is extended to include the style attribute.",
"type": "object",
"properties": {
"aspectRatio": {
"description": "Allow blocks to define an aspect ratio value.",
"type": "boolean",
"default": false
},
"minHeight": {
"description": "Allow blocks to define a minimum height value.",
"type": "boolean",
"default": false
}
}
},
"filter": {
"description": "This value signals that a block supports some of the properties related to filters. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific filter property, its attributes definition is extended to include the style attribute.",
"type": "object",
"properties": {
"duotone": {
"description": "Allow blocks to define a duotone filter.",
"type": "boolean",
"default": false
}
}
},
"background": {
"description": "This value signals that a block supports some of the CSS style properties related to background. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific background property, its attributes definition is extended to include the style attribute.",
"type": "object",
"properties": {
"backgroundImage": {
"description": "Allow blocks to define a background image.",
"type": "boolean",
"default": false
},
"backgroundSize": {
"description": "Allow blocks to define values related to the size of a background image, including size, position, and repeat controls",
"type": "boolean",
"default": false
}
}
},
"html": {
"description": "By default, a blocks markup can be edited individually. To disable this behavior, set html to false.",
"type": "boolean",
"default": true
},
"inserter": {
"description": "By default, all blocks will appear in the inserter, block transforms menu, Style Book, etc. To hide a block from all parts of the user interface so that it can only be inserted programmatically, set inserter to false.",
"type": "boolean",
"default": true
},
"renaming": {
"description": "By default, a block can be renamed by a user from the block 'Options' dropdown or the 'Advanced' panel. To disable this behavior, set renaming to false.",
"type": "boolean",
"default": true
},
"layout": {
"description": "This value only applies to blocks that are containers for inner blocks. If set to `true` the layout type will be `flow`. For other layout types it's necessary to set the `type` explicitly inside the `default` object.",
"oneOf": [
{ "type": "boolean" },
{
"type": "object",
"properties": {
"default": {
"description": "Allows setting the `type` property to define what layout type is default for the block, and also default values for any properties inherent to that layout type, e.g., for a `flex` layout, a default value can be set for `flexWrap`.",
"type": "object",
"properties": {
"type": {
"description": "The layout type.",
"type": "string",
"enum": [
"constrained",
"grid",
"flex"
]
},
"contentSize": {
"description": "The content size used on all children.",
"type": "string"
},
"wideSize": {
"description": "The wide size used on alignwide children.",
"type": "string"
},
"justifyContent": {
"description": "Content justification value.",
"type": "string",
"enum": [
"right",
"center",
"space-between",
"left",
"stretch"
]
},
"orientation": {
"description": "The orientation of the layout.",
"type": "string",
"enum": [ "horizontal", "vertical" ]
},
"flexWrap": {
"description": "The flex wrap value.",
"type": "string",
"enum": [ "wrap", "nowrap" ]
},
"verticalAlignment": {
"description": "The vertical alignment value.",
"type": "string",
"enum": [
"top",
"center",
"bottom",
"space-between",
"stretch"
]
},
"minimumColumnWidth": {
"description": "The minimum column width value.",
"type": "string"
},
"columnCount": {
"description": "The column count value.",
"type": "number"
}
}
},
"allowSwitching": {
"description": "Exposes a switcher control that allows toggling between all existing layout types.",
"type": "boolean",
"default": false
},
"allowEditing": {
"description": "Determines display of layout controls in the block sidebar. If set to false, layout controls will be hidden.",
"type": "boolean",
"default": true
},
"allowInheriting": {
"description": "For the `flow` layout type only, determines display of the `Inner blocks use content width` toggle.",
"type": "boolean",
"default": true
},
"allowSizingOnChildren": {
"description": "For the `flex` layout type only, determines display of sizing controls (Fit/Fill/Fixed) on all child blocks of the flex block.",
"type": "boolean",
"default": false
},
"allowVerticalAlignment": {
"description": "For the `flex` layout type only, determines display of vertical alignment controls in the block toolbar.",
"type": "boolean",
"default": true
},
"allowJustification": {
"description": "For the `flex` layout type, determines display of justification controls in the block toolbar and block sidebar. For the `constrained` layout type, determines display of justification control in the block sidebar.",
"type": "boolean",
"default": true
},
"allowOrientation": {
"description": "For the `flex` layout type only, determines display of the orientation control in the block toolbar.",
"type": "boolean",
"default": true
},
"allowCustomContentAndWideSize": {
"description": "For the `constrained` layout type only, determines display of the custom content and wide size controls in the block sidebar.",
"type": "boolean",
"default": true
}
}
}
],
"default": false
},
"multiple": {
"description": "A non-multiple block can be inserted into each post, one time only. For example, the built-in More block cannot be inserted again if it already exists in the post being edited. A non-multiple blocks icon is automatically dimmed (unclickable) to prevent multiple instances.",
"type": "boolean",
"default": true
},
"reusable": {
"description": "A block may want to disable the ability of being converted into a reusable block. By default all blocks can be converted to a reusable block. If supports reusable is set to false, the option to convert the block into a reusable block will not appear.",
"type": "boolean",
"default": true
},
"lock": {
"description": "A block may want to disable the ability to toggle the lock state. It can be locked/unlocked by a user from the block 'Options' dropdown by default. To disable this behavior, set lock to false.",
"type": "boolean",
"default": true
},
"position": {
"description": "This value signals that a block supports some of the CSS style properties related to position. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific position property, its attributes definition is extended to include the style attribute.",
"type": "object",
"properties": {
"sticky": {
"description": "Allow blocks to stick to their immediate parent when scrolling the page.",
"type": "boolean",
"default": false
}
}
},
"spacing": {
"description": "This value signals that a block supports some of the CSS style properties related to spacing. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific spacing property, its attributes definition is extended to include the style attribute.",
"type": "object",
"properties": {
"margin": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string",
"enum": [
"top",
"right",
"left",
"bottom"
]
}
},
{
"type": "array",
"items": {
"type": "string",
"enum": [ "vertical", "horizontal" ]
}
}
]
},
"padding": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string",
"enum": [
"top",
"right",
"left",
"bottom"
]
}
},
{
"type": "array",
"items": {
"type": "string",
"enum": [ "vertical", "horizontal" ]
}
}
]
}
}
},
"shadow": {
"description": "Allow blocks to define a box shadow.",
"oneOf": [
{
"description": "Defines whether a box shadow is enabled or not.",
"type": "boolean"
},
{
"type": "object"
}
],
"default": false
},
"typography": {
"description": "This value signals that a block supports some of the CSS style properties related to typography. When it does, the block editor will show UI controls for the user to set their values if the theme declares support.\n\nWhen the block declares support for a specific typography property, its attributes definition is extended to include the style attribute.",
"type": "object",
"properties": {
"fontSize": {
"description": "This value signals that a block supports the font-size CSS style property. When it does, the block editor will show an UI control for the user to set its value.\n\nThe values shown in this control are the ones declared by the theme via the editor-font-sizes theme support, or the default ones if none is provided.\n\nWhen the block declares support for fontSize, its attributes definition is extended to include two new attributes: fontSize and style",
"type": "boolean",
"default": false
},
"lineHeight": {
"description": "This value signals that a block supports the line-height CSS style property. When it does, the block editor will show an UI control for the user to set its value if the theme declares support.\n\nWhen the block declares support for lineHeight, its attributes definition is extended to include a new attribute style of object type with no default assigned. It stores the custom value set by the user. The block can apply a default style by specifying its own style attribute with a default",
"type": "boolean",
"default": false
},
"textAlign": {
"description": "This property adds block toolbar controls which allow to change block's text alignment.",
"oneOf": [
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string",
"enum": [ "left", "center", "right" ]
}
}
],
"default": false
}
}
},
"interactivity": {
"description": "Indicates if the block is using Interactivity API features.",
"oneOf": [
{
"description": "Indicates whether the block is using the Interactivity API directives.",
"type": "boolean",
"default": false
},
{
"type": "object",
"properties": {
"clientNavigation": {
"description": "Indicates whether a block is compatible with the Interactivity API client-side navigation.\n\nSet it to true only if the block is not interactive or if it is interactive using the Interactivity API. Set it to false if the block is interactive but uses vanilla JS, jQuery or another JS framework/library other than the Interactivity API.",
"type": "boolean",
"default": false
},
"interactive": {
"description": "Indicates whether the block is using the Interactivity API directives.",
"type": "boolean",
"default": false
}
}
}
]
},
"splitting": {
"description": "This property indicates whether the block can split when the Enter key is pressed or when blocks are pasted.",
"type": "boolean",
"default": false
}
},
"additionalProperties": true
},
"selectors": {
"description": "Provides custom CSS selectors and mappings for the block. Selectors may be set for the block itself or per-feature e.g. typography. Custom selectors per feature or sub-feature, allow different block styles to be applied to different elements within the block.",
"type": "object",
"properties": {
"root": {
"description": "The primary CSS class to apply to the block. This replaces the `.wp-block-name` class if set.",
"type": "string"
},
"border": {
"description": "Custom CSS selector used to generate rules for the block's theme.json border styles.",
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"root": { "type": "string" },
"color": { "type": "string" },
"radius": { "type": "string" },
"style": { "type": "string" },
"width": { "type": "string" }
}
}
]
},
"color": {
"description": "Custom CSS selector used to generate rules for the block's theme.json color styles.",
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"root": { "type": "string" },
"text": { "type": "string" },
"background": { "type": "string" }
}
}
]
},
"dimensions": {
"description": "Custom CSS selector used to generate rules for the block's theme.json dimensions styles.",
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"root": { "type": "string" },
"aspectRatio": { "type": "string" },
"minHeight": { "type": "string" }
}
}
]
},
"spacing": {
"description": "Custom CSS selector used to generate rules for the block's theme.json spacing styles.",
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"root": { "type": "string" },
"blockGap": { "type": "string" },
"padding": { "type": "string" },
"margin": { "type": "string" }
}
}
]
},
"typography": {
"description": "Custom CSS selector used to generate rules for the block's theme.json typography styles.",
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"root": { "type": "string" },
"fontFamily": { "type": "string" },
"fontSize": { "type": "string" },
"fontStyle": { "type": "string" },
"fontWeight": { "type": "string" },
"lineHeight": { "type": "string" },
"letterSpacing": { "type": "string" },
"textDecoration": { "type": "string" },
"textTransform": { "type": "string" }
}
}
]
}
}
},
"styles": {
"description": "Block styles can be used to provide alternative styles to block. It works by adding a class name to the blocks wrapper. Using CSS, a theme developer can target the class name for the block style if it is selected.\n\nPlugins and Themes can also register custom block style for existing blocks.\n\nhttps://developer.wordpress.org/block-editor/reference-guides/block-api/block-styles",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"label": {
"type": "string"
},
"isDefault": {
"type": "boolean",
"default": false
}
},
"required": [ "name", "label" ],
"additionalProperties": false
}
},
"example": {
"description": "It provides structured example data for the block. This data is used to construct a preview for the block to be shown in the Inspector Help Panel when the user mouses over the block.\n\nSee the example documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/#example-optional for more details.",
"type": "object",
"properties": {
"viewportWidth": {
"description": "The viewportWidth controls the width of the iFrame container in which the block preview will get rendered",
"type": "number",
"default": 1200
},
"attributes": {
"description": "Set the attributes for the block example",
"type": "object"
},
"innerBlocks": {
"description": "Set the inner blocks that should be used within the block example. The blocks should be defined as a nested array like this:\n\n[ { \"name\": \"core/heading\", \"attributes\": { \"content\": \"This is an Example\" } } ]\n\nWhere each block itself is an object that contains the block name, the block attributes, and the blocks inner blocks.",
"type": "array"
}
}
},
"blockHooks": {
"description": "Block Hooks allow a block to automatically insert itself next to all instances of a given block type.\n\nSee the Block Hooks documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/#block-hooks-optional for more details.",
"type": "object",
"patternProperties": {
"^[a-z][a-z0-9-]*/[a-z][a-z0-9-]*$": {
"type": "string",
"enum": [ "before", "after", "firstChild", "lastChild" ]
}
},
"additionalProperties": false
},
"editorScript": {
"description": "Block type editor script definition. It will only be enqueued in the context of the editor.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"script": {
"description": "Block type frontend and editor script definition. It will be enqueued both in the editor and when viewing the content on the front of the site.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"viewScript": {
"description": "Block type frontend script definition. It will be enqueued only when viewing the content on the front of the site.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"viewScriptModule": {
"description": "Block type frontend script module definition. It will be enqueued only when viewing the content on the front of the site.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"editorStyle": {
"description": "Block type editor style definition. It will only be enqueued in the context of the editor.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"style": {
"description": "Block type frontend style definition. It will be enqueued both in the editor and when viewing the content on the front of the site.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"viewStyle": {
"description": "Block type frontend style definition. It will be enqueued only when viewing the content on the front of the site.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"variations": {
"description": "Block Variations is the API that allows a block to have similar versions of it, but all these versions share some common functionality.",
"oneOf": [
{
"description": "The path to a PHP file that returns an array of block variations.",
"type": "string"
},
{
"description": "An array of block variations.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "The unique and machine-readable name.",
"type": "string"
},
"title": {
"description": "A human-readable variation title.",
"type": "string"
},
"description": {
"description": "A detailed variation description.",
"type": "string"
},
"category": {
"description": "A category classification, used in search interfaces to arrange block types by category.",
"anyOf": [
{
"type": "string"
},
{
"type": "string",
"enum": [
"text",
"media",
"design",
"widgets",
"theme",
"embed"
]
}
]
},
"icon": {
"description": "An icon helping to visualize the variation. It can have the same shape as the block type.",
"type": "string"
},
"isDefault": {
"description": "Indicates whether the current variation is the default one.",
"type": "boolean",
"default": false
},
"attributes": {
"description": "Values that override block attributes.",
"type": "object"
},
"innerBlocks": {
"description": "Initial configuration of nested blocks.",
"type": "array",
"items": {
"type": "array"
}
},
"example": {
"description": "Example provides structured data for the block preview. You can set to undefined to disable the preview shown for the block type.",
"type": "object"
},
"scope": {
"description": "The list of scopes where the variation is applicable.",
"type": "array",
"items": {
"type": "string",
"enum": [ "inserter", "block", "transform" ]
},
"default": [ "inserter", "block" ]
},
"keywords": {
"description": "An array of terms (which can be translated) that help users discover the variation while searching.",
"type": "array",
"items": {
"type": "string"
}
},
"isActive": {
"description": "The list of attributes that should be compared. Each attributes will be matched and the variation will be active if all of them are matching.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [ "name", "title" ],
"additionalProperties": false
}
}
]
},
"render": {
"description": "Template file loaded on the server when rendering a block.",
"type": "string"
}
},
"required": [ "name", "title" ],
"additionalProperties": false
}

View File

@ -48,6 +48,7 @@
"changelog": "XDEBUG_MODE=off composer install --quiet && composer exec -- changelogger", "changelog": "XDEBUG_MODE=off composer install --quiet && composer exec -- changelogger",
"build": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" '/^build:project:.*$/'", "build": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" '/^build:project:.*$/'",
"build:project": "pnpm --if-present '/^build:project:.*$/'", "build:project": "pnpm --if-present '/^build:project:.*$/'",
"build:project:validate-blocks-manifests": "wireit",
"build:project:bundle": "wireit", "build:project:bundle": "wireit",
"build:check-assets": "rimraf build/* && cross-env ASSET_CHECK=true BABEL_ENV=default NODE_ENV=production webpack", "build:check-assets": "rimraf build/* && cross-env ASSET_CHECK=true BABEL_ENV=default NODE_ENV=production webpack",
"prebuild:docs": "rimraf docs/extensibility/actions.md & rimraf docs/extensibility/filters.md", "prebuild:docs": "rimraf docs/extensibility/actions.md & rimraf docs/extensibility/filters.md",
@ -187,6 +188,7 @@
"@wordpress/prettier-config": "1.4.0", "@wordpress/prettier-config": "1.4.0",
"@wordpress/scripts": "24.6.0", "@wordpress/scripts": "24.6.0",
"@wordpress/stylelint-config": "^21.36.0", "@wordpress/stylelint-config": "^21.36.0",
"ajv-cli": "3.3.x",
"allure-playwright": "^2.9.2", "allure-playwright": "^2.9.2",
"autoprefixer": "10.4.14", "autoprefixer": "10.4.14",
"babel-jest": "^29.7.0", "babel-jest": "^29.7.0",
@ -394,6 +396,14 @@
"dependencyOutputs" "dependencyOutputs"
] ]
}, },
"build:project:validate-blocks-manifests": {
"command": "npx ajv validate -s bin/block.json-validation-schema.json -d assets/js/**/block.json",
"clean": "if-file-deleted",
"files": [
"assets/js/**/block.json"
],
"output": []
},
"build:storybook": { "build:storybook": {
"command": "storybook build -c ./storybook -o ./storybook/dist", "command": "storybook build -c ./storybook -o ./storybook/dist",
"env": { "env": {

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Monorepo: validate block.json files as part of build process.

View File

@ -3992,6 +3992,9 @@ importers:
'@wordpress/stylelint-config': '@wordpress/stylelint-config':
specifier: ^21.36.0 specifier: ^21.36.0
version: 21.36.0(postcss@8.4.32)(stylelint@14.16.1) version: 21.36.0(postcss@8.4.32)(stylelint@14.16.1)
ajv-cli:
specifier: 3.3.x
version: 3.3.0
allure-playwright: allure-playwright:
specifier: ^2.9.2 specifier: ^2.9.2
version: 2.9.2 version: 2.9.2
@ -7911,6 +7914,9 @@ packages:
resolution: {integrity: sha512-CyuLJ0/P7bKZ+kIYw+fnkeVdhUzNuDKgNSI7pU/m7Nod0T7kP+s4s2f0pNmG9HL8/RZN1S0ZWTDll3VTMrFLAw==} resolution: {integrity: sha512-CyuLJ0/P7bKZ+kIYw+fnkeVdhUzNuDKgNSI7pU/m7Nod0T7kP+s4s2f0pNmG9HL8/RZN1S0ZWTDll3VTMrFLAw==}
engines: {node: '>= 18'} engines: {node: '>= 18'}
'@one-ini/wasm@0.1.1':
resolution: {integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==}
'@pkgjs/parseargs@0.11.0': '@pkgjs/parseargs@0.11.0':
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node: '>=14'} engines: {node: '>=14'}
@ -12966,6 +12972,10 @@ packages:
abbrev@1.1.1: abbrev@1.1.1:
resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
abbrev@2.0.0:
resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
abort-controller@3.0.0: abort-controller@3.0.0:
resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==}
engines: {node: '>=6.5'} engines: {node: '>=6.5'}
@ -13067,6 +13077,10 @@ packages:
peerDependencies: peerDependencies:
react: ^0.14 || ^15.0.0 || ^16.0.0-alpha react: ^0.14 || ^15.0.0 || ^16.0.0-alpha
ajv-cli@3.3.0:
resolution: {integrity: sha512-4eiNNjDlainn5Rm+rU3egxLUUxzevcB+gviBLs9sm6etHNrE7l2JSQ3yoz5hE+eqrth3pTygELOafhSIO8Hiig==}
hasBin: true
ajv-errors@1.0.1: ajv-errors@1.0.1:
resolution: {integrity: sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==} resolution: {integrity: sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==}
peerDependencies: peerDependencies:
@ -13090,11 +13104,17 @@ packages:
peerDependencies: peerDependencies:
ajv: ^8.8.2 ajv: ^8.8.2
ajv-pack@0.3.1:
resolution: {integrity: sha512-psFkqg+ItqBXjQ0kbdP/Y72Jmz+wHt8MD7bVGdzdxjKsp988QTK5YMQoBsPUotbhnYO8VKPU3vPALYlhO/2gtg==}
ajv@5.5.2:
resolution: {integrity: sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==}
ajv@6.12.6: ajv@6.12.6:
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
ajv@8.12.0: ajv@8.17.1:
resolution: {integrity: sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==} resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==}
allure-commandline@2.25.0: allure-commandline@2.25.0:
resolution: {integrity: sha512-HYMQwuX/8ySTrXqgr6ZY830c6xgRbSusxVwZIBbDyNTCDb3mqK2b1ENjsD8yhl/7/8S02NZCDAwJFxt3f8qL9Q==} resolution: {integrity: sha512-HYMQwuX/8ySTrXqgr6ZY830c6xgRbSusxVwZIBbDyNTCDb3mqK2b1ENjsD8yhl/7/8S02NZCDAwJFxt3f8qL9Q==}
@ -14704,6 +14724,9 @@ packages:
engines: {node: ^12.20.0 || ^14.13.0 || >=16.0.0} engines: {node: ^12.20.0 || ^14.13.0 || >=16.0.0}
hasBin: true hasBin: true
config-chain@1.1.13:
resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==}
config@3.3.3: config@3.3.3:
resolution: {integrity: sha512-T3RmZQEAji5KYqUQpziWtyGJFli6Khz7h0rpxDwYNjSkr5ynyTWwO7WpfjHzTXclNCDfSWQRcwMb+NwxJesCKw==} resolution: {integrity: sha512-T3RmZQEAji5KYqUQpziWtyGJFli6Khz7h0rpxDwYNjSkr5ynyTWwO7WpfjHzTXclNCDfSWQRcwMb+NwxJesCKw==}
engines: {node: '>= 6.0.0'} engines: {node: '>= 6.0.0'}
@ -15722,6 +15745,11 @@ packages:
ecdsa-sig-formatter@1.0.11: ecdsa-sig-formatter@1.0.11:
resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==} resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}
editorconfig@1.0.4:
resolution: {integrity: sha512-L9Qe08KWTlqYMVvMcTIvMAdl1cDUubzRNYL+WfA4bLDMHe4nemKkpmYzkznE1FwLKu0EEmy6obgQKzMJrg4x9Q==}
engines: {node: '>=14'}
hasBin: true
ee-first@1.1.1: ee-first@1.1.1:
resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
@ -16519,6 +16547,12 @@ packages:
resolution: {integrity: sha512-9Z0zqASzDNjXBox/ileV/fd+4P+V/f3o4shM6QawvcdLFh8yjPG4h5BrHUZ8yzY6amKGDTAmRMyb/JZqe+dCgw==} resolution: {integrity: sha512-9Z0zqASzDNjXBox/ileV/fd+4P+V/f3o4shM6QawvcdLFh8yjPG4h5BrHUZ8yzY6amKGDTAmRMyb/JZqe+dCgw==}
engines: {node: '>=8.0.0'} engines: {node: '>=8.0.0'}
fast-deep-equal@1.1.0:
resolution: {integrity: sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==}
fast-deep-equal@2.0.1:
resolution: {integrity: sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==}
fast-deep-equal@3.1.3: fast-deep-equal@3.1.3:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
@ -16539,6 +16573,10 @@ packages:
fast-json-parse@1.0.3: fast-json-parse@1.0.3:
resolution: {integrity: sha512-FRWsaZRWEJ1ESVNbDWmsAlqDk96gPQezzLghafp5J4GUKjbCz3OkAHuZs5TuPEtkbVQERysLp9xv6c24fBm8Aw==} resolution: {integrity: sha512-FRWsaZRWEJ1ESVNbDWmsAlqDk96gPQezzLghafp5J4GUKjbCz3OkAHuZs5TuPEtkbVQERysLp9xv6c24fBm8Aw==}
fast-json-patch@2.2.1:
resolution: {integrity: sha512-4j5uBaTnsYAV5ebkidvxiLUYOwjQ+JSFljeqfTxCrH9bDmlCQaOJFS84oDJ2rAXZq2yskmk3ORfoP9DCwqFNig==}
engines: {node: '>= 0.4.0'}
fast-json-stable-stringify@2.1.0: fast-json-stable-stringify@2.1.0:
resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
@ -16554,6 +16592,9 @@ packages:
fast-sort@3.4.0: fast-sort@3.4.0:
resolution: {integrity: sha512-c/cMBGA5mH3OYjaXedtLIM3hQjv+KuZuiD2QEH5GofNOZeQVDIYIN7Okc2AW1KPhk44g5PTZnXp8t2lOMl8qhQ==} resolution: {integrity: sha512-c/cMBGA5mH3OYjaXedtLIM3hQjv+KuZuiD2QEH5GofNOZeQVDIYIN7Okc2AW1KPhk44g5PTZnXp8t2lOMl8qhQ==}
fast-uri@3.0.3:
resolution: {integrity: sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==}
fast-xml-parser@4.4.1: fast-xml-parser@4.4.1:
resolution: {integrity: sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==} resolution: {integrity: sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==}
hasBin: true hasBin: true
@ -19365,6 +19406,15 @@ packages:
js-base64@2.6.4: js-base64@2.6.4:
resolution: {integrity: sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==} resolution: {integrity: sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==}
js-beautify@1.15.1:
resolution: {integrity: sha512-ESjNzSlt/sWE8sciZH8kBF8BPlwXPwhR6pWKAw8bw4Bwj+iZcnKW6ONWUutJ7eObuBZQpiIb8S7OYspWrKt7rA==}
engines: {node: '>=14'}
hasBin: true
js-cookie@3.0.5:
resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==}
engines: {node: '>=14'}
js-library-detector@6.7.0: js-library-detector@6.7.0:
resolution: {integrity: sha512-c80Qupofp43y4cJ7+8TTDN/AsDwLi5oOm/plBrWI+iQt485vKXCco+yVmOwEgdo9VOdsYTuV0UlTeetVPTriXA==} resolution: {integrity: sha512-c80Qupofp43y4cJ7+8TTDN/AsDwLi5oOm/plBrWI+iQt485vKXCco+yVmOwEgdo9VOdsYTuV0UlTeetVPTriXA==}
engines: {node: '>=12'} engines: {node: '>=12'}
@ -19507,6 +19557,12 @@ packages:
engines: {node: '>=0.8'} engines: {node: '>=0.8'}
hasBin: true hasBin: true
json-schema-migrate@0.2.0:
resolution: {integrity: sha512-dq4/oHWmtw/+0ytnXsDqVn+VsVweTEmzm5jLgguPn9BjSzn6/q58ZiZx3BHiQyJs612f0T5Z+MrUEUUY5DHsRg==}
json-schema-traverse@0.3.1:
resolution: {integrity: sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==}
json-schema-traverse@0.4.1: json-schema-traverse@0.4.1:
resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
@ -20467,6 +20523,10 @@ packages:
resolution: {integrity: sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==} resolution: {integrity: sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==}
engines: {node: '>=10'} engines: {node: '>=10'}
minimatch@9.0.1:
resolution: {integrity: sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==}
engines: {node: '>=16 || 14 >=14.17'}
minimatch@9.0.3: minimatch@9.0.3:
resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}
engines: {node: '>=16 || 14 >=14.17'} engines: {node: '>=16 || 14 >=14.17'}
@ -20808,6 +20868,11 @@ packages:
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
hasBin: true hasBin: true
nopt@7.2.1:
resolution: {integrity: sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
hasBin: true
normalize-package-data@2.5.0: normalize-package-data@2.5.0:
resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==}
@ -22223,6 +22288,9 @@ packages:
property-information@5.6.0: property-information@5.6.0:
resolution: {integrity: sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==} resolution: {integrity: sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==}
proto-list@1.2.4:
resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==}
proxy-addr@2.0.7: proxy-addr@2.0.7:
resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==}
engines: {node: '>= 0.10'} engines: {node: '>= 0.10'}
@ -23178,6 +23246,10 @@ packages:
resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
require-from-string@1.2.1:
resolution: {integrity: sha512-H7AkJWMobeskkttHyhTVtS0fxpFLjxhbfMa6Bk3wimP7sdPRGL3EyCg3sAQenFfAe+xQ+oAc85Nmtvq0ROM83Q==}
engines: {node: '>=0.10.0'}
require-from-string@2.0.2: require-from-string@2.0.2:
resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
@ -32847,6 +32919,8 @@ snapshots:
'@octokit/webhooks-types': 7.4.0 '@octokit/webhooks-types': 7.4.0
aggregate-error: 3.1.0 aggregate-error: 3.1.0
'@one-ini/wasm@0.1.1': {}
'@pkgjs/parseargs@0.11.0': '@pkgjs/parseargs@0.11.0':
optional: true optional: true
@ -46596,6 +46670,8 @@ snapshots:
abbrev@1.1.1: {} abbrev@1.1.1: {}
abbrev@2.0.0: {}
abort-controller@3.0.0: abort-controller@3.0.0:
dependencies: dependencies:
event-target-shim: 5.0.1 event-target-shim: 5.0.1
@ -46728,23 +46804,46 @@ snapshots:
react: 18.3.1 react: 18.3.1
react-is: 16.13.1 react-is: 16.13.1
ajv-cli@3.3.0:
dependencies:
ajv: 6.12.6
ajv-pack: 0.3.1
fast-json-patch: 2.2.1
glob: 7.2.3
js-yaml: 3.14.1
json-schema-migrate: 0.2.0
json5: 2.2.3
minimist: 1.2.8
ajv-errors@1.0.1(ajv@6.12.6): ajv-errors@1.0.1(ajv@6.12.6):
dependencies: dependencies:
ajv: 6.12.6 ajv: 6.12.6
ajv-formats@2.1.1(ajv@8.12.0): ajv-formats@2.1.1(ajv@8.17.1):
optionalDependencies: optionalDependencies:
ajv: 8.12.0 ajv: 8.17.1
ajv-keywords@3.5.2(ajv@6.12.6): ajv-keywords@3.5.2(ajv@6.12.6):
dependencies: dependencies:
ajv: 6.12.6 ajv: 6.12.6
ajv-keywords@5.1.0(ajv@8.12.0): ajv-keywords@5.1.0(ajv@8.17.1):
dependencies: dependencies:
ajv: 8.12.0 ajv: 8.17.1
fast-deep-equal: 3.1.3 fast-deep-equal: 3.1.3
ajv-pack@0.3.1:
dependencies:
js-beautify: 1.15.1
require-from-string: 1.2.1
ajv@5.5.2:
dependencies:
co: 4.6.0
fast-deep-equal: 1.1.0
fast-json-stable-stringify: 2.1.0
json-schema-traverse: 0.3.1
ajv@6.12.6: ajv@6.12.6:
dependencies: dependencies:
fast-deep-equal: 3.1.3 fast-deep-equal: 3.1.3
@ -46752,12 +46851,12 @@ snapshots:
json-schema-traverse: 0.4.1 json-schema-traverse: 0.4.1
uri-js: 4.4.1 uri-js: 4.4.1
ajv@8.12.0: ajv@8.17.1:
dependencies: dependencies:
fast-deep-equal: 3.1.3 fast-deep-equal: 3.1.3
fast-uri: 3.0.3
json-schema-traverse: 1.0.0 json-schema-traverse: 1.0.0
require-from-string: 2.0.2 require-from-string: 2.0.2
uri-js: 4.4.1
allure-commandline@2.25.0: {} allure-commandline@2.25.0: {}
@ -49241,6 +49340,11 @@ snapshots:
tree-kill: 1.2.2 tree-kill: 1.2.2
yargs: 17.7.2 yargs: 17.7.2
config-chain@1.1.13:
dependencies:
ini: 1.3.8
proto-list: 1.2.4
config@3.3.3: config@3.3.3:
dependencies: dependencies:
json5: 2.2.3 json5: 2.2.3
@ -50575,6 +50679,13 @@ snapshots:
dependencies: dependencies:
safe-buffer: 5.2.1 safe-buffer: 5.2.1
editorconfig@1.0.4:
dependencies:
'@one-ini/wasm': 0.1.1
commander: 10.0.1
minimatch: 9.0.1
semver: 7.6.3
ee-first@1.1.1: {} ee-first@1.1.1: {}
ejs@2.7.4: {} ejs@2.7.4: {}
@ -52039,6 +52150,10 @@ snapshots:
dependencies: dependencies:
pure-rand: 6.0.4 pure-rand: 6.0.4
fast-deep-equal@1.1.0: {}
fast-deep-equal@2.0.1: {}
fast-deep-equal@3.1.3: {} fast-deep-equal@3.1.3: {}
fast-diff@1.3.0: {} fast-diff@1.3.0: {}
@ -52066,6 +52181,10 @@ snapshots:
fast-json-parse@1.0.3: {} fast-json-parse@1.0.3: {}
fast-json-patch@2.2.1:
dependencies:
fast-deep-equal: 2.0.1
fast-json-stable-stringify@2.1.0: {} fast-json-stable-stringify@2.1.0: {}
fast-levenshtein@2.0.6: {} fast-levenshtein@2.0.6: {}
@ -52078,6 +52197,8 @@ snapshots:
fast-sort@3.4.0: {} fast-sort@3.4.0: {}
fast-uri@3.0.3: {}
fast-xml-parser@4.4.1: fast-xml-parser@4.4.1:
dependencies: dependencies:
strnum: 1.0.5 strnum: 1.0.5
@ -52887,7 +53008,7 @@ snapshots:
github-label-sync@2.3.1: github-label-sync@2.3.1:
dependencies: dependencies:
'@financial-times/origami-service-makefile': 7.0.3 '@financial-times/origami-service-makefile': 7.0.3
ajv: 8.12.0 ajv: 8.17.1
chalk: 4.1.2 chalk: 4.1.2
commander: 6.2.1 commander: 6.2.1
got: 12.6.1 got: 12.6.1
@ -56603,6 +56724,16 @@ snapshots:
js-base64@2.6.4: {} js-base64@2.6.4: {}
js-beautify@1.15.1:
dependencies:
config-chain: 1.1.13
editorconfig: 1.0.4
glob: 10.3.10
js-cookie: 3.0.5
nopt: 7.2.1
js-cookie@3.0.5: {}
js-library-detector@6.7.0: {} js-library-detector@6.7.0: {}
js-sha3@0.8.0: {} js-sha3@0.8.0: {}
@ -56881,6 +57012,12 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
json-schema-migrate@0.2.0:
dependencies:
ajv: 5.5.2
json-schema-traverse@0.3.1: {}
json-schema-traverse@0.4.1: {} json-schema-traverse@0.4.1: {}
json-schema-traverse@1.0.0: {} json-schema-traverse@1.0.0: {}
@ -58220,6 +58357,10 @@ snapshots:
dependencies: dependencies:
brace-expansion: 2.0.1 brace-expansion: 2.0.1
minimatch@9.0.1:
dependencies:
brace-expansion: 2.0.1
minimatch@9.0.3: minimatch@9.0.3:
dependencies: dependencies:
brace-expansion: 2.0.1 brace-expansion: 2.0.1
@ -58673,6 +58814,10 @@ snapshots:
dependencies: dependencies:
abbrev: 1.1.1 abbrev: 1.1.1
nopt@7.2.1:
dependencies:
abbrev: 2.0.0
normalize-package-data@2.5.0: normalize-package-data@2.5.0:
dependencies: dependencies:
hosted-git-info: 2.8.9 hosted-git-info: 2.8.9
@ -60402,6 +60547,8 @@ snapshots:
dependencies: dependencies:
xtend: 4.0.2 xtend: 4.0.2
proto-list@1.2.4: {}
proxy-addr@2.0.7: proxy-addr@2.0.7:
dependencies: dependencies:
forwarded: 0.2.0 forwarded: 0.2.0
@ -62236,6 +62383,8 @@ snapshots:
require-directory@2.1.1: {} require-directory@2.1.1: {}
require-from-string@1.2.1: {}
require-from-string@2.0.2: {} require-from-string@2.0.2: {}
require-main-filename@1.0.1: {} require-main-filename@1.0.1: {}
@ -62617,9 +62766,9 @@ snapshots:
schema-utils@4.2.0: schema-utils@4.2.0:
dependencies: dependencies:
'@types/json-schema': 7.0.15 '@types/json-schema': 7.0.15
ajv: 8.12.0 ajv: 8.17.1
ajv-formats: 2.1.1(ajv@8.12.0) ajv-formats: 2.1.1(ajv@8.17.1)
ajv-keywords: 5.1.0(ajv@8.12.0) ajv-keywords: 5.1.0(ajv@8.17.1)
scoped-regex@2.1.0: {} scoped-regex@2.1.0: {}
@ -63798,7 +63947,7 @@ snapshots:
table@6.8.1: table@6.8.1:
dependencies: dependencies:
ajv: 8.12.0 ajv: 8.17.1
lodash.truncate: 4.4.2 lodash.truncate: 4.4.2
slice-ansi: 4.0.0 slice-ansi: 4.0.0
string-width: 4.2.3 string-width: 4.2.3