@blocksuite/affine-model
Advanced tools
Comparing version 0.0.0-canary-20241220001425 to 0.0.0-canary-20241221001402
# @blocksuite/affine-model | ||
## 0.0.0-canary-20241220001425 | ||
## 0.0.0-canary-20241221001402 | ||
@@ -9,6 +9,6 @@ ### Patch Changes | ||
- Updated dependencies | ||
- @blocksuite/block-std@0.0.0-canary-20241220001425 | ||
- @blocksuite/global@0.0.0-canary-20241220001425 | ||
- @blocksuite/inline@0.0.0-canary-20241220001425 | ||
- @blocksuite/store@0.0.0-canary-20241220001425 | ||
- @blocksuite/block-std@0.0.0-canary-20241221001402 | ||
- @blocksuite/global@0.0.0-canary-20241221001402 | ||
- @blocksuite/inline@0.0.0-canary-20241221001402 | ||
- @blocksuite/store@0.0.0-canary-20241221001402 | ||
@@ -15,0 +15,0 @@ ## 0.19.5 |
@@ -23,3 +23,2 @@ import { BlockModel, type Text } from '@blocksuite/store'; | ||
text: Text; | ||
constructor(); | ||
} | ||
@@ -26,0 +25,0 @@ declare global { |
@@ -23,13 +23,3 @@ import { BlockModel, defineBlockSchema } from '@blocksuite/store'; | ||
export class ParagraphBlockModel extends BlockModel { | ||
constructor() { | ||
super(); | ||
this.propsUpdated.on(({ key }) => { | ||
if (key === 'type') { | ||
if (!this.type.startsWith('h')) { | ||
this.collapsed = false; | ||
} | ||
} | ||
}); | ||
} | ||
} | ||
//# sourceMappingURL=paragraph-model.js.map |
{ | ||
"name": "@blocksuite/affine-model", | ||
"version": "0.0.0-canary-20241220001425", | ||
"version": "0.0.0-canary-20241221001402", | ||
"description": "Models for BlockSuite in Affine.", | ||
@@ -22,6 +22,6 @@ "type": "module", | ||
"dependencies": { | ||
"@blocksuite/block-std": "0.0.0-canary-20241220001425", | ||
"@blocksuite/global": "0.0.0-canary-20241220001425", | ||
"@blocksuite/inline": "0.0.0-canary-20241220001425", | ||
"@blocksuite/store": "0.0.0-canary-20241220001425", | ||
"@blocksuite/block-std": "0.0.0-canary-20241221001402", | ||
"@blocksuite/global": "0.0.0-canary-20241221001402", | ||
"@blocksuite/inline": "0.0.0-canary-20241221001402", | ||
"@blocksuite/store": "0.0.0-canary-20241221001402", | ||
"fractional-indexing": "^3.2.0", | ||
@@ -28,0 +28,0 @@ "zod": "^3.23.8" |
@@ -44,14 +44,2 @@ import { BlockModel, defineBlockSchema, type Text } from '@blocksuite/store'; | ||
override text!: Text; | ||
constructor() { | ||
super(); | ||
this.propsUpdated.on(({ key }) => { | ||
if (key === 'type') { | ||
if (!this.type.startsWith('h')) { | ||
this.collapsed = false; | ||
} | ||
} | ||
}); | ||
} | ||
} | ||
@@ -58,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
790999
11078
+ Added@blocksuite/block-std@0.0.0-canary-20241221001402(transitive)
+ Added@blocksuite/global@0.0.0-canary-20241221001402(transitive)
+ Added@blocksuite/inline@0.0.0-canary-20241221001402(transitive)
+ Added@blocksuite/store@0.0.0-canary-20241221001402(transitive)
+ Added@blocksuite/sync@0.0.0-canary-20241221001402(transitive)
- Removed@blocksuite/block-std@0.0.0-canary-20241220001425(transitive)
- Removed@blocksuite/global@0.0.0-canary-20241220001425(transitive)
- Removed@blocksuite/inline@0.0.0-canary-20241220001425(transitive)
- Removed@blocksuite/store@0.0.0-canary-20241220001425(transitive)
- Removed@blocksuite/sync@0.0.0-canary-20241220001425(transitive)