feat: bump more deps (#14079)

This commit is contained in:
DarkSky
2025-12-10 16:02:28 +08:00
committed by GitHub
parent 40f3337d45
commit cb0ff04efa
194 changed files with 2155 additions and 2297 deletions

View File

@@ -37,13 +37,13 @@ The type of the value stored in the Boxed.
### getValue()
> **getValue**(): `undefined` \| `Value`
> **getValue**(): `Value` \| `undefined`
Get the current value of the Boxed.
#### Returns
`undefined` \| `Value`
`Value` \| `undefined`
***

View File

@@ -35,7 +35,7 @@ Returns an object mapping each registered flavour to its version number.
### get()
> **get**(`flavour`): `undefined` \| \{ `model`: \{ `children?`: `string`[]; `flavour`: `string`; `isFlatData?`: `boolean`; `parent?`: `string`[]; `props?`: (...`args`) => `Record`\<`string`, `any`\>; `role`: `string`; `toModel?`: (...`args`) => `BlockModel`\<`object`\>; \}; `transformer?`: (...`args`) => `BaseBlockTransformer`\<`object`\>; `version`: `number`; \}
> **get**(`flavour`): \{ `model`: \{ `children?`: `string`[]; `flavour`: `string`; `isFlatData?`: `boolean`; `parent?`: `string`[]; `props?`: (...`args`) => `Record`\<`string`, `any`\>; `role`: `string`; `toModel?`: (...`args`) => `BlockModel`\<`object`\>; \}; `transformer?`: (...`args`) => `BaseBlockTransformer`\<`object`\>; `version`: `number`; \} \| `undefined`
Retrieves the schema for a given block flavour.
@@ -49,7 +49,7 @@ The block flavour name.
#### Returns
`undefined` \| \{ `model`: \{ `children?`: `string`[]; `flavour`: `string`; `isFlatData?`: `boolean`; `parent?`: `string`[]; `props?`: (...`args`) => `Record`\<`string`, `any`\>; `role`: `string`; `toModel?`: (...`args`) => `BlockModel`\<`object`\>; \}; `transformer?`: (...`args`) => `BaseBlockTransformer`\<`object`\>; `version`: `number`; \}
\{ `model`: \{ `children?`: `string`[]; `flavour`: `string`; `isFlatData?`: `boolean`; `parent?`: `string`[]; `props?`: (...`args`) => `Record`\<`string`, `any`\>; `role`: `string`; `toModel?`: (...`args`) => `BlockModel`\<`object`\>; \}; `transformer?`: (...`args`) => `BaseBlockTransformer`\<`object`\>; `version`: `number`; \} \| `undefined`
The corresponding BlockSchemaType or undefined if not found.

View File

@@ -106,13 +106,13 @@ Get the signal for the readonly state of the store.
#### Get Signature
> **get** **root**(): `null` \| `BlockModel`\<`object`\>
> **get** **root**(): `BlockModel`\<`object`\> \| `null`
Get the root block of the store.
##### Returns
`null` \| `BlockModel`\<`object`\>
`BlockModel`\<`object`\> \| `null`
***
@@ -146,7 +146,7 @@ Optional properties for the new block
Optional parent block or parent block ID
`null` | `string` | `BlockModel`\<`object`\>
`string` | `BlockModel`\<`object`\> | `null`
##### parentIndex?
@@ -184,7 +184,7 @@ Array of blocks to add
Optional parent block or parent block ID
`null` | `string` | `BlockModel`\<`object`\>
`string` | `BlockModel`\<`object`\> | `null`
##### parentIndex?
@@ -286,7 +286,7 @@ Array of all models
### getBlock()
> **getBlock**(`id`): `undefined` \| `Block`
> **getBlock**(`id`): `Block` \| `undefined`
Gets a block by its ID
@@ -300,7 +300,7 @@ The block's ID
#### Returns
`undefined` \| `Block`
`Block` \| `undefined`
The block instance if found, undefined otherwise
@@ -308,7 +308,7 @@ The block instance if found, undefined otherwise
### getBlock$()
> **getBlock$**(`id`): `undefined` \| `Block`
> **getBlock$**(`id`): `Block` \| `undefined`
Gets a block by its ID
@@ -322,7 +322,7 @@ The block's ID
#### Returns
`undefined` \| `Block`
`Block` \| `undefined`
The block instance in signal if found, undefined otherwise
@@ -352,7 +352,7 @@ Array of matching blocks
### getModelById()
> **getModelById**\<`Model`\>(`id`): `null` \| `Model`
> **getModelById**\<`Model`\>(`id`): `Model` \| `null`
Get a model by its ID
@@ -372,7 +372,7 @@ The model's ID
#### Returns
`null` \| `Model`
`Model` \| `null`
The model instance if found, null otherwise
@@ -402,7 +402,7 @@ Array of matching models
### getNext()
> **getNext**(`block`): `null` \| `BlockModel`\<`object`\>
> **getNext**(`block`): `BlockModel`\<`object`\> \| `null`
Get the next sibling block of a given block
@@ -416,7 +416,7 @@ Block model or block ID to find next sibling for
#### Returns
`null` \| `BlockModel`\<`object`\>
`BlockModel`\<`object`\> \| `null`
The next sibling block model if found, null otherwise
@@ -446,7 +446,7 @@ Array of next sibling blocks if found, empty array otherwise
### getParent()
> **getParent**(`target`): `null` \| `BlockModel`\<`object`\>
> **getParent**(`target`): `BlockModel`\<`object`\> \| `null`
Gets the parent block of a given block
@@ -460,7 +460,7 @@ Block model or block ID to find parent for
#### Returns
`null` \| `BlockModel`\<`object`\>
`BlockModel`\<`object`\> \| `null`
The parent block model if found, null otherwise
@@ -468,7 +468,7 @@ The parent block model if found, null otherwise
### getPrev()
> **getPrev**(`block`): `null` \| `BlockModel`\<`object`\>
> **getPrev**(`block`): `BlockModel`\<`object`\> \| `null`
Get the previous sibling block of a given block
@@ -482,7 +482,7 @@ Block model or block ID to find previous sibling for
#### Returns
`null` \| `BlockModel`\<`object`\>
`BlockModel`\<`object`\> \| `null`
The previous sibling block model if found, null otherwise
@@ -556,7 +556,7 @@ The new parent block model
Optional target sibling block model
`null` | `BlockModel`\<`object`\>
`BlockModel`\<`object`\> | `null`
##### shouldInsertBeforeSibling
@@ -652,7 +652,7 @@ The extension instance
#### Get Signature
> **get** **getOptional**(): \<`T`\>(`identifier`, `options?`) => `null` \| `T`
> **get** **getOptional**(): \<`T`\>(`identifier`, `options?`) => `T` \| `null`
Optional get an extension instance from the store.
The major difference between `get` and `getOptional` is that `getOptional` will not throw an error if the extension is not found.
@@ -667,7 +667,7 @@ const extension = store.getOptional(SomeExtension);
The extension instance
> \<`T`\>(`identifier`, `options?`): `null` \| `T`
> \<`T`\>(`identifier`, `options?`): `T` \| `null`
###### Type Parameters
@@ -687,7 +687,7 @@ The extension instance
###### Returns
`null` \| `T`
`T` \| `null`
***

View File

@@ -103,13 +103,13 @@ Clear the text content.
### clone()
> **clone**(): `Text`\<\{ `bold?`: `null` \| `true`; `code?`: `null` \| `true`; `italic?`: `null` \| `true`; `link?`: `null` \| `string`; `strike?`: `null` \| `true`; `underline?`: `null` \| `true`; \}\>
> **clone**(): `Text`\<\{ `bold?`: `true` \| `null`; `code?`: `true` \| `null`; `italic?`: `true` \| `null`; `link?`: `string` \| `null`; `strike?`: `true` \| `null`; `underline?`: `true` \| `null`; \}\>
Clone the text to a new Text instance.
#### Returns
`Text`\<\{ `bold?`: `null` \| `true`; `code?`: `null` \| `true`; `italic?`: `null` \| `true`; `link?`: `null` \| `string`; `strike?`: `null` \| `true`; `underline?`: `null` \| `true`; \}\>
`Text`\<\{ `bold?`: `true` \| `null`; `code?`: `true` \| `null`; `italic?`: `true` \| `null`; `link?`: `string` \| `null`; `strike?`: `true` \| `null`; `underline?`: `true` \| `null`; \}\>
A new Text instance.