@supernova-studio/client 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -47,10 +47,12 @@ export function documentationHierarchyToYjs(doc: Y.Doc, transaction: Documentati
|
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
transaction.pages.forEach(page => {
|
|
50
|
-
// We remove
|
|
50
|
+
// We remove blocks from the payload here because it will not get parsed anyway
|
|
51
51
|
const sanitizedPage: DocumentationPageV2 = {
|
|
52
52
|
...page,
|
|
53
|
-
data: {
|
|
53
|
+
data: {
|
|
54
|
+
configuration: page.data.configuration,
|
|
55
|
+
},
|
|
54
56
|
};
|
|
55
57
|
|
|
56
58
|
pagesMap.set(page.id, JSON.parse(JSON.stringify(sanitizedPage)));
|
|
@@ -64,15 +66,7 @@ export function documentationHierarchyToYjs(doc: Y.Doc, transaction: Documentati
|
|
|
64
66
|
});
|
|
65
67
|
|
|
66
68
|
transaction.groups.forEach(group => {
|
|
67
|
-
|
|
68
|
-
const sanitizedGroup: ElementGroup = {
|
|
69
|
-
...group,
|
|
70
|
-
data: {
|
|
71
|
-
behavior: group.data?.behavior,
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
groupsMap.set(group.id, JSON.parse(JSON.stringify(sanitizedGroup)));
|
|
69
|
+
groupsMap.set(group.id, JSON.parse(JSON.stringify(group)));
|
|
76
70
|
});
|
|
77
71
|
|
|
78
72
|
// Internal settings
|