@sendbird/actionbook-core 0.10.12 → 0.10.13
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/dist/index.js +5 -25
- package/dist/index.js.map +1 -1
- package/dist/ui/index.js +4 -0
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5255,33 +5255,13 @@ function processBlocks(blocks, startBlockIndex, ctx) {
|
|
|
5255
5255
|
if (block.type === "orderedList") {
|
|
5256
5256
|
const items = block.content;
|
|
5257
5257
|
for (const li of items) {
|
|
5258
|
-
const
|
|
5259
|
-
|
|
5260
|
-
if (analysis.hasHandoff) {
|
|
5258
|
+
const sub = processBlocks(li.content, blockIndex, ctx);
|
|
5259
|
+
if (sub.firstId) {
|
|
5261
5260
|
flushContent();
|
|
5262
|
-
const
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
label: "Handoff",
|
|
5266
|
-
lines: [text2],
|
|
5267
|
-
section: ctx.currentSection,
|
|
5268
|
-
annotations: analysis.annotations,
|
|
5269
|
-
sourceBlockRange: { start: blockIndex, end: blockIndex }
|
|
5270
|
-
};
|
|
5271
|
-
ctx.nodes.push(node);
|
|
5272
|
-
for (const pid of prevLastIds) addEdge(ctx, pid, node.id, "SEQUENTIAL");
|
|
5273
|
-
if (!firstId) firstId = node.id;
|
|
5274
|
-
prevLastIds = [node.id];
|
|
5275
|
-
continue;
|
|
5261
|
+
for (const pid of prevLastIds) addEdge(ctx, pid, sub.firstId, "SEQUENTIAL");
|
|
5262
|
+
if (!firstId) firstId = sub.firstId;
|
|
5263
|
+
prevLastIds = sub.lastIds;
|
|
5276
5264
|
}
|
|
5277
|
-
if (!contentAccum) {
|
|
5278
|
-
contentAccum = { lines: [], annotations: [], startIdx: blockIndex, endIdx: blockIndex, jumpPointIds: [] };
|
|
5279
|
-
}
|
|
5280
|
-
contentAccum.lines.push(text2);
|
|
5281
|
-
contentAccum.annotations.push(...analysis.annotations);
|
|
5282
|
-
contentAccum.endIdx = blockIndex;
|
|
5283
|
-
contentAccum.jumpPointIds.push(...analysis.jumpPointIds);
|
|
5284
|
-
if (analysis.hasGoto) contentAccum.gotoTarget = analysis.gotoTarget ?? void 0;
|
|
5285
5265
|
}
|
|
5286
5266
|
continue;
|
|
5287
5267
|
}
|