Skip to content

Commit

Permalink
Revert "Block Bindings: Add @since tag in bindings apis JSDocs (Wor…
Browse files Browse the repository at this point in the history
…dPress#65796)"

This reverts commit a9350e2.
  • Loading branch information
huubl authored Oct 2, 2024
1 parent 5ce07dd commit 2fa4551
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 30 deletions.
4 changes: 0 additions & 4 deletions packages/block-editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -881,10 +881,6 @@ _Returns_

- `?WPBlockBindingsUtils`: Object containing the block bindings utils.

_Changelog_

`6.7.0` Introduced in WordPress core.

### useBlockCommands

Undocumented declaration.
Expand Down
2 changes: 0 additions & 2 deletions packages/block-editor/src/utils/block-bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ function isObjectEmpty( object ) {
* - `updateBlockBindings`: Updates the value of the bindings connected to block attributes. It can be used to remove a specific binding by setting the value to `undefined`.
* - `removeAllBlockBindings`: Removes the bindings property of the `metadata` attribute.
*
* @since 6.7.0 Introduced in WordPress core.
*
* @return {?WPBlockBindingsUtils} Object containing the block bindings utils.
*
* @example
Expand Down
16 changes: 0 additions & 16 deletions packages/blocks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ _Returns_

- `?Object`: Block bindings source.

_Changelog_

`6.7.0` Introduced in WordPress core.

### getBlockBindingsSources

Returns all registered block bindings sources.
Expand All @@ -139,10 +135,6 @@ _Returns_

- `Array`: Block bindings sources.

_Changelog_

`6.7.0` Introduced in WordPress core.

### getBlockContent

Given a block object, returns the Block's Inner HTML markup.
Expand Down Expand Up @@ -550,10 +542,6 @@ _Parameters_
- _source.setValues_ `[Function]`: Optional function to update multiple values connected to the source.
- _source.canUserEditValue_ `[Function]`: Optional function to determine if the user can edit the value.

_Changelog_

`6.7.0` Introduced in WordPress core.

### registerBlockCollection

Registers a new block collection to group blocks in the same namespace in the inserter.
Expand Down Expand Up @@ -871,10 +859,6 @@ _Parameters_

- _name_ `string`: The name of the block bindings source to unregister.

_Changelog_

`6.7.0` Introduced in WordPress core.

### unregisterBlockStyle

Unregisters a block style for the given block.
Expand Down
8 changes: 0 additions & 8 deletions packages/blocks/src/api/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,6 @@ export const unregisterBlockVariation = ( blockName, variationName ) => {
* behavior. Once registered, the source is available to be connected
* to the supported block attributes.
*
* @since 6.7.0 Introduced in WordPress core.
*
* @param {Object} source Properties of the source to be registered.
* @param {string} source.name The unique and machine-readable name.
* @param {string} [source.label] Human-readable label. Optional when it is defined in the server.
Expand Down Expand Up @@ -907,8 +905,6 @@ export const registerBlockBindingsSource = ( source ) => {
/**
* Unregisters a block bindings source by providing its name.
*
* @since 6.7.0 Introduced in WordPress core.
*
* @param {string} name The name of the block bindings source to unregister.
*
* @example
Expand All @@ -930,8 +926,6 @@ export function unregisterBlockBindingsSource( name ) {
/**
* Returns a registered block bindings source by its name.
*
* @since 6.7.0 Introduced in WordPress core.
*
* @param {string} name Block bindings source name.
*
* @return {?Object} Block bindings source.
Expand All @@ -943,8 +937,6 @@ export function getBlockBindingsSource( name ) {
/**
* Returns all registered block bindings sources.
*
* @since 6.7.0 Introduced in WordPress core.
*
* @return {Array} Block bindings sources.
*/
export function getBlockBindingsSources() {
Expand Down

0 comments on commit 2fa4551

Please sign in to comment.