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,77 +1,82 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:surface",
"version": 5,
"props": {
"elements": {}
},
"children": [
{
"type": "block",
"id": "4",
"children": [
{
"children": [
],
"flavour": "affine:embed-linked-doc",
"id": "11",
"props": {
"caption": null,
"index": "a0",
"lockedBySelf": false,
"pageId": "6",
"rotate": 0,
"style": "horizontal",
"xywh": "[0,0,0,0]"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:edgeless-text",
"version": 1,
"id": "4",
"props": {
"xywh": "[-25,-25,497,154]",
"index": "a1",
"lockedBySelf": false,
"color": "#84cfff",
"fontFamily": "blocksuite:surface:Inter",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "left",
"scale": 1,
"hasMaxWidth": true,
"index": "a1",
"lockedBySelf": false,
"rotate": 0,
"hasMaxWidth": true
"scale": 1,
"textAlign": "left",
"xywh": "[-25,-25,497,154]"
},
"children": [
{
"type": "block",
"id": "11",
"flavour": "affine:embed-linked-doc",
"version": 1,
"props": {
"index": "a0",
"xywh": "[0,0,0,0]",
"lockedBySelf": false,
"rotate": 0,
"pageId": "6",
"style": "horizontal",
"caption": null
},
"children": []
}
]
"type": "block",
"version": 1
}
]
],
"flavour": "affine:surface",
"id": "1",
"props": {
"elements": {
}
},
"type": "block",
"version": 5
},
{
"type": "block",
"id": "2",
"children": [
{
"children": [
],
"flavour": "affine:paragraph",
"id": "3",
"props": {
"collapsed": false,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"type": "text"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "2",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -80,25 +85,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}