@supernova-studio/client 0.52.8 → 0.52.9

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/client",
3
- "version": "0.52.8",
3
+ "version": "0.52.9",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -1,5 +1,4 @@
1
1
  import {
2
- PageBlockDefinition,
3
2
  PageBlockDefinitionMultiRichTextPropertyStyle,
4
3
  PageBlockDefinitionMutiRichTextOptions,
5
4
  PageBlockDefinitionProperty,
@@ -49,16 +48,9 @@ export class ListTreeBuilder {
49
48
 
50
49
  // Inserting at the root
51
50
  if (block.data.indentLevel <= 0) {
52
- // We are at the root
53
- if (this.rootNode.listType === list.listType) {
54
- // Merge items into the current list
55
- this.rootNode.children.push(...list.leadingChildren);
56
- return;
57
- } else {
58
- const flushed = this.flush();
59
- this.rootNode = list;
60
- return flushed;
61
- }
51
+ const flushed = this.flush();
52
+ this.rootNode = list;
53
+ return flushed;
62
54
  }
63
55
 
64
56
  // Inserting at a depth