refactor(editor): use stable stringify for snapshots (#10948)

This commit is contained in:
pengx17
2025-03-18 05:41:19 +00:00
parent 83af78d9ee
commit 99370573c8
183 changed files with 10875 additions and 10142 deletions

View File

@@ -1,29 +1,57 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "BlockSuite",
"language": "rust",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "let a: u8 = 7"
}
]
},
"wrap": true
},
"type": "block",
"version": 1
},
{
"children": [
],
"flavour": "affine:code",
"id": "4",
"props": {
"caption": "BlockSuite",
"language": "rust",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "let a: u8 = 7"
}
]
},
"wrap": true
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,50 +60,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "let a: u8 = 7"
}
]
},
"language": "rust",
"wrap": true,
"caption": "BlockSuite"
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "let a: u8 = 7"
}
]
},
"language": "rust",
"wrap": true,
"caption": "BlockSuite"
},
"children": []
}
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}