mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-02 02:00:49 +08:00
chore: bump deps (#15151)
This commit is contained in:
@@ -295,7 +295,7 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3",
|
||||
"version": "0.27.0",
|
||||
"devDependencies": {
|
||||
"@vanilla-extract/vite-plugin": "^5.0.0",
|
||||
"msw": "^2.13.2",
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -44,5 +44,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -44,5 +44,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"@preact/signals-core": "^1.8.0",
|
||||
"@toeverything/theme": "^1.1.23",
|
||||
"@types/mdast": "^4.0.4",
|
||||
"date-fns": "^4.0.0",
|
||||
"date-fns": "^4.4.0",
|
||||
"lit": "^3.2.0",
|
||||
"yjs": "^13.6.27",
|
||||
"zod": "^3.25.76"
|
||||
@@ -45,5 +45,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -31,5 +31,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -34,5 +34,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -41,5 +41,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -38,5 +38,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -39,5 +39,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -47,5 +47,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -38,5 +38,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -61,5 +61,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -41,5 +41,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -38,5 +38,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"@preact/signals-core": "^1.8.0",
|
||||
"@toeverything/theme": "^1.1.23",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"date-fns": "^4.0.0",
|
||||
"date-fns": "^4.4.0",
|
||||
"lit": "^3.2.0",
|
||||
"lit-html": "^3.2.1",
|
||||
"lodash-es": "^4.17.23",
|
||||
@@ -74,5 +74,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"@toeverything/theme": "^1.1.23",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"clsx": "^2.1.1",
|
||||
"date-fns": "^4.0.0",
|
||||
"date-fns": "^4.4.0",
|
||||
"lit": "^3.2.0",
|
||||
"lodash-es": "^4.17.23",
|
||||
"yjs": "^13.6.27",
|
||||
@@ -46,5 +46,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -26,5 +26,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -31,5 +31,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -30,5 +30,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -40,5 +40,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -39,5 +39,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -30,5 +30,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -45,5 +45,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -34,5 +34,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -41,5 +41,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -26,5 +26,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -40,5 +40,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -38,5 +38,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -28,5 +28,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -40,5 +40,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -29,5 +29,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -76,5 +76,5 @@
|
||||
"@types/pdfmake": "^0.2.12",
|
||||
"vitest": "^4.1.8"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -40,5 +40,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -30,5 +30,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -27,5 +27,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -48,5 +48,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -44,5 +44,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -31,5 +31,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -26,5 +26,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -31,5 +31,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -29,5 +29,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -34,5 +34,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -25,5 +25,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -17,17 +17,17 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@blocksuite/affine": "workspace:*",
|
||||
"date-fns": "^4.0.0",
|
||||
"date-fns": "^4.4.0",
|
||||
"markdown-it-container": "^4.0.0",
|
||||
"vitepress-plugin-sandpack": "^1.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/markdown-it-container": "^4.0.0",
|
||||
"typedoc": "^0.28.0",
|
||||
"typedoc-plugin-markdown": "^4.5.0",
|
||||
"vite-plugin-wasm": "^3.3.0",
|
||||
"vitepress": "^1.6.3",
|
||||
"typedoc": "^0.28.19",
|
||||
"typedoc-plugin-markdown": "^4.12.0",
|
||||
"vite-plugin-wasm": "^3.6.0",
|
||||
"vitepress": "^1.6.4",
|
||||
"vue": "^3.4.38"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ For (un)locking the element, use `(un)lock` instead.
|
||||
|
||||
###### lockedBySelf
|
||||
|
||||
`boolean` | `undefined`
|
||||
`boolean` \| `undefined`
|
||||
|
||||
##### Returns
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ Toggle the selection state of single element
|
||||
|
||||
##### element
|
||||
|
||||
`string` | `GfxModel`
|
||||
`string` \| `GfxModel`
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ SortOrder.AFTER means a should be rendered after b and so on.
|
||||
|
||||
### a
|
||||
|
||||
`GfxModel` | `GfxLocalElementModel`
|
||||
`GfxModel` \| `GfxLocalElementModel`
|
||||
|
||||
### b
|
||||
|
||||
`GfxModel` | `GfxLocalElementModel`
|
||||
`GfxModel` \| `GfxLocalElementModel`
|
||||
|
||||
## Returns
|
||||
|
||||
|
||||
@@ -32,18 +32,4 @@ Note:
|
||||
|
||||
## Returns
|
||||
|
||||
> (`_`, `context`): `ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
|
||||
### Parameters
|
||||
|
||||
#### \_
|
||||
|
||||
`unknown`
|
||||
|
||||
#### context
|
||||
|
||||
`ClassAccessorDecoratorContext`
|
||||
|
||||
### Returns
|
||||
|
||||
`ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
(`_`, `context`) => `ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
|
||||
@@ -37,18 +37,4 @@ Note:
|
||||
|
||||
## Returns
|
||||
|
||||
> (`_`, `context`): `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
### Parameters
|
||||
|
||||
#### \_
|
||||
|
||||
`unknown`
|
||||
|
||||
#### context
|
||||
|
||||
`ClassAccessorDecoratorContext`
|
||||
|
||||
### Returns
|
||||
|
||||
`ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
(`_`, `context`) => `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
### a
|
||||
|
||||
`string` | `null` | `undefined`
|
||||
`string` \| `null` \| `undefined`
|
||||
|
||||
### b
|
||||
|
||||
`string` | `null` | `undefined`
|
||||
`string` \| `null` \| `undefined`
|
||||
|
||||
### digits?
|
||||
|
||||
|
||||
@@ -17,11 +17,11 @@ make sure a and b are generated by this function.
|
||||
|
||||
### a
|
||||
|
||||
`string` | `null`
|
||||
`string` \| `null`
|
||||
|
||||
### b
|
||||
|
||||
`string` | `null`
|
||||
`string` \| `null`
|
||||
|
||||
## Returns
|
||||
|
||||
|
||||
@@ -20,11 +20,11 @@ a and b.
|
||||
|
||||
### a
|
||||
|
||||
`string` | `null` | `undefined`
|
||||
`string` \| `null` \| `undefined`
|
||||
|
||||
### b
|
||||
|
||||
`string` | `null` | `undefined`
|
||||
`string` \| `null` \| `undefined`
|
||||
|
||||
### n
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Function: getEffectiveDpr()
|
||||
|
||||
> **getEffectiveDpr**(`zoom`, `rawDpr`): `number`
|
||||
> **getEffectiveDpr**(`zoom`, `rawDpr?`): `number`
|
||||
|
||||
Resolves the effective device-pixel-ratio for canvas backing stores at the
|
||||
given zoom, honoring [viewportRuntimeConfig.CANVAS\_DPR\_CAP\_BY\_ZOOM](../variables/viewportRuntimeConfig.md#canvas_dpr_cap_by_zoom).
|
||||
@@ -19,7 +19,7 @@ Returns the raw `window.devicePixelRatio` when no cap applies.
|
||||
|
||||
`number`
|
||||
|
||||
### rawDpr
|
||||
### rawDpr?
|
||||
|
||||
`number` = `window.devicePixelRatio`
|
||||
|
||||
|
||||
@@ -25,18 +25,4 @@ Updating local property will also trigger the `elementUpdated` slot of the surfa
|
||||
|
||||
## Returns
|
||||
|
||||
> (`_target`, `context`): `ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
|
||||
### Parameters
|
||||
|
||||
#### \_target
|
||||
|
||||
`ClassAccessorDecoratorTarget`\<`T`, `V`\>
|
||||
|
||||
#### context
|
||||
|
||||
`ClassAccessorDecoratorContext`
|
||||
|
||||
### Returns
|
||||
|
||||
`ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
(`_target`, `context`) => `ClassAccessorDecoratorResult`\<`T`, `V`\>
|
||||
|
||||
@@ -36,18 +36,4 @@ re-observe the property automatically when the value is altered.
|
||||
|
||||
## Returns
|
||||
|
||||
> (`_`, `context`): `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
### Parameters
|
||||
|
||||
#### \_
|
||||
|
||||
`unknown`
|
||||
|
||||
#### context
|
||||
|
||||
`ClassAccessorDecoratorContext`
|
||||
|
||||
### Returns
|
||||
|
||||
`ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
(`_`, `context`) => `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
@@ -29,18 +29,4 @@ You can thinks of it as a decorator version of `elementUpdated` slot of the surf
|
||||
|
||||
## Returns
|
||||
|
||||
> (`_`, `context`): `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
### Parameters
|
||||
|
||||
#### \_
|
||||
|
||||
`unknown`
|
||||
|
||||
#### context
|
||||
|
||||
`ClassAccessorDecoratorContext`
|
||||
|
||||
### Returns
|
||||
|
||||
`ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
(`_`, `context`) => `ClassAccessorDecoratorResult`\<`GfxPrimitiveElementModel`\<`BaseElementProps`\>, `V`\>
|
||||
|
||||
@@ -28,7 +28,7 @@ The bound of the element without considering the response extension.
|
||||
|
||||
### forceFullRender?
|
||||
|
||||
> `optional` **forceFullRender**: `boolean`
|
||||
> `optional` **forceFullRender?**: `boolean`
|
||||
|
||||
Whether to disable fallback rendering for this element, e.g., during zooming.
|
||||
Defaults to false (fallback to placeholder rendering is enabled).
|
||||
@@ -37,7 +37,7 @@ Defaults to false (fallback to placeholder rendering is enabled).
|
||||
|
||||
### lockedBySelf?
|
||||
|
||||
> `optional` **lockedBySelf**: `boolean`
|
||||
> `optional` **lockedBySelf?**: `boolean`
|
||||
|
||||
Indicates whether the current block is explicitly locked by self.
|
||||
For checking the lock status of the element, use `isLocked` instead.
|
||||
|
||||
@@ -47,7 +47,7 @@ The bound of the element without considering the response extension.
|
||||
|
||||
### forceFullRender?
|
||||
|
||||
> `optional` **forceFullRender**: `boolean`
|
||||
> `optional` **forceFullRender?**: `boolean`
|
||||
|
||||
Whether to disable fallback rendering for this element, e.g., during zooming.
|
||||
Defaults to false (fallback to placeholder rendering is enabled).
|
||||
@@ -60,7 +60,7 @@ Defaults to false (fallback to placeholder rendering is enabled).
|
||||
|
||||
### lockedBySelf?
|
||||
|
||||
> `optional` **lockedBySelf**: `boolean`
|
||||
> `optional` **lockedBySelf?**: `boolean`
|
||||
|
||||
Indicates whether the current block is explicitly locked by self.
|
||||
For checking the lock status of the element, use `isLocked` instead.
|
||||
|
||||
@@ -12,7 +12,7 @@ The options for the hit testing of a point.
|
||||
|
||||
### hitThreshold?
|
||||
|
||||
> `optional` **hitThreshold**: `number`
|
||||
> `optional` **hitThreshold?**: `number`
|
||||
|
||||
The threshold of the hit test. The unit is pixel.
|
||||
|
||||
@@ -20,7 +20,7 @@ The threshold of the hit test. The unit is pixel.
|
||||
|
||||
### ignoreTransparent?
|
||||
|
||||
> `optional` **ignoreTransparent**: `boolean`
|
||||
> `optional` **ignoreTransparent?**: `boolean`
|
||||
|
||||
If true, the transparent area of the element will be ignored during the point inclusion test.
|
||||
Otherwise, the transparent area will be considered as filled area.
|
||||
@@ -31,7 +31,7 @@ Default is true.
|
||||
|
||||
### responsePadding?
|
||||
|
||||
> `optional` **responsePadding**: \[`number`, `number`\]
|
||||
> `optional` **responsePadding?**: \[`number`, `number`\]
|
||||
|
||||
The padding of the response area for each element when do the hit testing. The unit is pixel.
|
||||
The first value is the padding for the x-axis, and the second value is the padding for the y-axis.
|
||||
@@ -40,7 +40,7 @@ The first value is the padding for the x-axis, and the second value is the paddi
|
||||
|
||||
### useElementBound?
|
||||
|
||||
> `optional` **useElementBound**: `boolean`
|
||||
> `optional` **useElementBound?**: `boolean`
|
||||
|
||||
If true, the element bound will be used for the hit testing.
|
||||
By default, the response bound will be used.
|
||||
@@ -49,6 +49,6 @@ By default, the response bound will be used.
|
||||
|
||||
### zoom?
|
||||
|
||||
> `optional` **zoom**: `number`
|
||||
> `optional` **zoom?**: `number`
|
||||
|
||||
The zoom level of current view when do the hit testing.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[BlockSuite API Documentation](../../../../README.md) / [@blocksuite/std](../../README.md) / [index](../README.md) / BlockService
|
||||
|
||||
# Class: ~~`abstract` BlockService~~
|
||||
# ~~Abstract Class: BlockService~~
|
||||
|
||||
## Deprecated
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[BlockSuite API Documentation](../../../../README.md) / [@blocksuite/std](../../README.md) / [index](../README.md) / LifeCycleWatcher
|
||||
|
||||
# Class: `abstract` LifeCycleWatcher
|
||||
# Abstract Class: LifeCycleWatcher
|
||||
|
||||
A life cycle watcher is an extension that watches the life cycle of the editor.
|
||||
It is used to perform actions when the editor is created, mounted, rendered, or unmounted.
|
||||
|
||||
@@ -25,6 +25,8 @@ boxedObject.setValue({ foo: 'bar' });
|
||||
|
||||
## Type Param
|
||||
|
||||
**T**
|
||||
|
||||
The type of the value stored in the Boxed.
|
||||
|
||||
## Type Parameters
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[BlockSuite API Documentation](../../../README.md) / [@blocksuite/store](../README.md) / Extension
|
||||
|
||||
# Class: `abstract` Extension
|
||||
# Abstract Class: Extension
|
||||
|
||||
# Understanding Extensions
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ Get the root block of the store.
|
||||
|
||||
### addBlock()
|
||||
|
||||
> **addBlock**\<`T`\>(`flavour`, `blockProps`, `parent?`, `parentIndex?`): `string`
|
||||
> **addBlock**\<`T`\>(`flavour`, `blockProps?`, `parent?`, `parentIndex?`): `string`
|
||||
|
||||
Creates and adds a new block to the store
|
||||
|
||||
@@ -136,7 +136,7 @@ Creates and adds a new block to the store
|
||||
|
||||
The block's flavour (type)
|
||||
|
||||
##### blockProps
|
||||
##### blockProps?
|
||||
|
||||
`Partial`\<`BlockProps` \| `PropsOfModel`\<`T`\> & `BlockSysProps`\> = `{}`
|
||||
|
||||
@@ -144,9 +144,9 @@ Optional properties for the new block
|
||||
|
||||
##### parent?
|
||||
|
||||
Optional parent block or parent block ID
|
||||
`string` \| `BlockModel`\<`object`\> \| `null`
|
||||
|
||||
`string` | `BlockModel`\<`object`\> | `null`
|
||||
Optional parent block or parent block ID
|
||||
|
||||
##### parentIndex?
|
||||
|
||||
@@ -182,9 +182,9 @@ Array of blocks to add
|
||||
|
||||
##### parent?
|
||||
|
||||
Optional parent block or parent block ID
|
||||
`string` \| `BlockModel`\<`object`\> \| `null`
|
||||
|
||||
`string` | `BlockModel`\<`object`\> | `null`
|
||||
Optional parent block or parent block ID
|
||||
|
||||
##### parentIndex?
|
||||
|
||||
@@ -202,7 +202,7 @@ Array of IDs of the newly created blocks
|
||||
|
||||
### addSiblingBlocks()
|
||||
|
||||
> **addSiblingBlocks**(`targetModel`, `props`, `placement`): `string`[]
|
||||
> **addSiblingBlocks**(`targetModel`, `props`, `placement?`): `string`[]
|
||||
|
||||
Add sibling blocks to the store
|
||||
|
||||
@@ -220,12 +220,12 @@ The target block model
|
||||
|
||||
Array of block properties
|
||||
|
||||
##### placement
|
||||
##### placement?
|
||||
|
||||
`"after"` \| `"before"`
|
||||
|
||||
Optional position to place the new blocks ('after' or 'before')
|
||||
|
||||
`"after"` | `"before"`
|
||||
|
||||
#### Returns
|
||||
|
||||
`string`[]
|
||||
@@ -236,7 +236,7 @@ Array of IDs of the newly created blocks
|
||||
|
||||
### deleteBlock()
|
||||
|
||||
> **deleteBlock**(`model`, `options`): `void`
|
||||
> **deleteBlock**(`model`, `options?`): `void`
|
||||
|
||||
Delete a block from the store
|
||||
|
||||
@@ -244,11 +244,11 @@ Delete a block from the store
|
||||
|
||||
##### model
|
||||
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
The block model or block ID to delete
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
|
||||
##### options
|
||||
##### options?
|
||||
|
||||
Optional options for the deletion
|
||||
|
||||
@@ -338,9 +338,9 @@ Gets all blocks of specified flavour(s)
|
||||
|
||||
##### blockFlavour
|
||||
|
||||
Single flavour or array of flavours to filter by
|
||||
`string` \| `string`[]
|
||||
|
||||
`string` | `string`[]
|
||||
Single flavour or array of flavours to filter by
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -388,9 +388,9 @@ Get all models of specified flavour(s)
|
||||
|
||||
##### blockFlavour
|
||||
|
||||
Single flavour or array of flavours to filter by
|
||||
`string` \| `string`[]
|
||||
|
||||
`string` | `string`[]
|
||||
Single flavour or array of flavours to filter by
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -410,9 +410,9 @@ Get the next sibling block of a given block
|
||||
|
||||
##### block
|
||||
|
||||
Block model or block ID to find next sibling for
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
Block model or block ID to find next sibling for
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -432,9 +432,9 @@ Get all next sibling blocks of a given block
|
||||
|
||||
##### block
|
||||
|
||||
Block model or block ID to find next siblings for
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
Block model or block ID to find next siblings for
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -454,9 +454,9 @@ Gets the parent block of a given block
|
||||
|
||||
##### target
|
||||
|
||||
Block model or block ID to find parent for
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
Block model or block ID to find parent for
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -476,9 +476,9 @@ Get the previous sibling block of a given block
|
||||
|
||||
##### block
|
||||
|
||||
Block model or block ID to find previous sibling for
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
Block model or block ID to find previous sibling for
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -498,9 +498,9 @@ Get all previous sibling blocks of a given block
|
||||
|
||||
##### block
|
||||
|
||||
Block model or block ID to find previous siblings for
|
||||
`string` \| `BlockModel`\<`object`\>
|
||||
|
||||
`string` | `BlockModel`\<`object`\>
|
||||
Block model or block ID to find previous siblings for
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -534,7 +534,7 @@ True if the block exists, false otherwise
|
||||
|
||||
### moveBlocks()
|
||||
|
||||
> **moveBlocks**(`blocksToMove`, `newParent`, `targetSibling`, `shouldInsertBeforeSibling`): `void`
|
||||
> **moveBlocks**(`blocksToMove`, `newParent`, `targetSibling?`, `shouldInsertBeforeSibling?`): `void`
|
||||
|
||||
Move blocks to a new parent block
|
||||
|
||||
@@ -552,13 +552,13 @@ Array of block models to move
|
||||
|
||||
The new parent block model
|
||||
|
||||
##### targetSibling
|
||||
##### targetSibling?
|
||||
|
||||
`BlockModel`\<`object`\> \| `null`
|
||||
|
||||
Optional target sibling block model
|
||||
|
||||
`BlockModel`\<`object`\> | `null`
|
||||
|
||||
##### shouldInsertBeforeSibling
|
||||
##### shouldInsertBeforeSibling?
|
||||
|
||||
`boolean` = `true`
|
||||
|
||||
@@ -586,15 +586,15 @@ Updates a block's properties or executes a callback in a transaction
|
||||
|
||||
##### modelOrId
|
||||
|
||||
The block model or block ID to update
|
||||
`string` \| `T`
|
||||
|
||||
`string` | `T`
|
||||
The block model or block ID to update
|
||||
|
||||
##### callBackOrProps
|
||||
|
||||
Either a callback function to execute or properties to update
|
||||
(() => `void`) \| `Partial`\<`BlockProps` \| `PropsOfModel`\<`T`\> & `BlockSysProps`\>
|
||||
|
||||
() => `void` | `Partial`\<`BlockProps` \| `PropsOfModel`\<`T`\> & `BlockSysProps`\>
|
||||
Either a callback function to execute or properties to update
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -624,27 +624,7 @@ const extension = store.get(SomeExtension);
|
||||
|
||||
The extension instance
|
||||
|
||||
> \<`T`\>(`identifier`, `options?`): `T`
|
||||
|
||||
###### Type Parameters
|
||||
|
||||
###### T
|
||||
|
||||
`T`
|
||||
|
||||
###### Parameters
|
||||
|
||||
###### identifier
|
||||
|
||||
`GeneralServiceIdentifier`\<`T`\>
|
||||
|
||||
###### options?
|
||||
|
||||
`ResolveOptions`
|
||||
|
||||
###### Returns
|
||||
|
||||
`T`
|
||||
\<`T`\>(`identifier`, `options?`) => `T`
|
||||
|
||||
***
|
||||
|
||||
@@ -667,27 +647,7 @@ const extension = store.getOptional(SomeExtension);
|
||||
|
||||
The extension instance
|
||||
|
||||
> \<`T`\>(`identifier`, `options?`): `T` \| `null`
|
||||
|
||||
###### Type Parameters
|
||||
|
||||
###### T
|
||||
|
||||
`T`
|
||||
|
||||
###### Parameters
|
||||
|
||||
###### identifier
|
||||
|
||||
`GeneralServiceIdentifier`\<`T`\>
|
||||
|
||||
###### options?
|
||||
|
||||
`ResolveOptions`
|
||||
|
||||
###### Returns
|
||||
|
||||
`T` \| `null`
|
||||
\<`T`\>(`identifier`, `options?`) => `T` \| `null`
|
||||
|
||||
***
|
||||
|
||||
@@ -797,7 +757,7 @@ Reset the history of the store.
|
||||
|
||||
### transact()
|
||||
|
||||
> **transact**(`fn`, `shouldTransact`): `void`
|
||||
> **transact**(`fn`, `shouldTransact?`): `void`
|
||||
|
||||
Execute a transaction.
|
||||
|
||||
@@ -807,7 +767,7 @@ Execute a transaction.
|
||||
|
||||
() => `void`
|
||||
|
||||
##### shouldTransact
|
||||
##### shouldTransact?
|
||||
|
||||
`boolean` = `...`
|
||||
|
||||
@@ -969,13 +929,13 @@ The store instance
|
||||
|
||||
### getTransformer()
|
||||
|
||||
> **getTransformer**(`middlewares`): `Transformer`
|
||||
> **getTransformer**(`middlewares?`): `Transformer`
|
||||
|
||||
Creates a new transformer instance for the store
|
||||
|
||||
#### Parameters
|
||||
|
||||
##### middlewares
|
||||
##### middlewares?
|
||||
|
||||
`TransformerMiddleware`[] = `[]`
|
||||
|
||||
|
||||
@@ -38,9 +38,9 @@ Text [delta](https://docs.yjs.dev/api/delta-format) is a format from Y.js.
|
||||
|
||||
##### input?
|
||||
|
||||
The input can be a string, a Y.Text instance, or an array of DeltaInsert.
|
||||
`string` \| `YText` \| `DeltaInsert`\<`TextAttributes`\>[]
|
||||
|
||||
`string` | `YText` | `DeltaInsert`\<`TextAttributes`\>[]
|
||||
The input can be a string, a Y.Text instance, or an array of DeltaInsert.
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -320,7 +320,7 @@ The delta of the sliced text.
|
||||
|
||||
### split()
|
||||
|
||||
> **split**(`index`, `length`): `Text`
|
||||
> **split**(`index`, `length?`): `Text`
|
||||
|
||||
Split the text into another Text.
|
||||
|
||||
@@ -332,7 +332,7 @@ Split the text into another Text.
|
||||
|
||||
The index to split.
|
||||
|
||||
##### length
|
||||
##### length?
|
||||
|
||||
`number` = `0`
|
||||
|
||||
|
||||
@@ -14,5 +14,5 @@
|
||||
"scripts": {
|
||||
"build": "typedoc"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -63,5 +63,5 @@
|
||||
"devDependencies": {
|
||||
"vitest": "^4.1.8"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -49,5 +49,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -38,5 +38,5 @@
|
||||
"!dist/__tests__",
|
||||
"shim.d.ts"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -33,5 +33,5 @@
|
||||
"!src/__tests__",
|
||||
"!dist/__tests__"
|
||||
],
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -41,5 +41,5 @@
|
||||
"vite-plugin-wasm": "^3.5.0",
|
||||
"vitest": "^4.1.8"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
@@ -39,5 +39,5 @@
|
||||
"vite-plugin-wasm": "^3.5.0",
|
||||
"vite-plugin-web-components-hmr": "^0.1.3"
|
||||
},
|
||||
"version": "0.26.3"
|
||||
"version": "0.27.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user