@doenet/v06-to-v07 0.7.21-dev.383 → 0.7.21-dev.384
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/{index-DYJxinsx.js → index-CINa3RRM.js} +28 -16
- package/{index-DYJxinsx.js.map → index-CINa3RRM.js.map} +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{sha256-AuWkkb03-CsqRV36K-C-5mFBZo.js → sha256-AuWkkb03-CMunoRDy-DVISCgeV.js} +2 -2
- package/{sha256-AuWkkb03-CsqRV36K-C-5mFBZo.js.map → sha256-AuWkkb03-CMunoRDy-DVISCgeV.js.map} +1 -1
|
@@ -43370,7 +43370,7 @@ async function cidFromArrayBuffer(data) {
|
|
|
43370
43370
|
await crypto.subtle.digest("SHA-256", new Uint8Array());
|
|
43371
43371
|
digest = (data2) => crypto.subtle.digest("SHA-256", data2);
|
|
43372
43372
|
} catch (e22) {
|
|
43373
|
-
const sha256 = (await import("./sha256-AuWkkb03-
|
|
43373
|
+
const sha256 = (await import("./sha256-AuWkkb03-CMunoRDy-DVISCgeV.js").then((n2) => n2.s)).default;
|
|
43374
43374
|
digest = (data2) => sha256(data2, {
|
|
43375
43375
|
asBytes: true
|
|
43376
43376
|
});
|
|
@@ -94345,7 +94345,9 @@ function returnSectionChildDependencies() {
|
|
|
94345
94345
|
childGroups: [
|
|
94346
94346
|
"styleDefinitions",
|
|
94347
94347
|
"stylePalettes",
|
|
94348
|
-
"feedbackDefinitions"
|
|
94348
|
+
"feedbackDefinitions",
|
|
94349
|
+
"setups",
|
|
94350
|
+
"variantControls"
|
|
94349
94351
|
]
|
|
94350
94352
|
}
|
|
94351
94353
|
};
|
|
@@ -94360,6 +94362,14 @@ function nonConfigurationChildEntries(dependencyValues) {
|
|
|
94360
94362
|
([, child]) => !configurationChildIndices.has(child.componentIdx)
|
|
94361
94363
|
);
|
|
94362
94364
|
}
|
|
94365
|
+
function childRendersSomething(child, componentInfoObjects2) {
|
|
94366
|
+
if (typeof child !== "object") {
|
|
94367
|
+
return child.trim() !== "";
|
|
94368
|
+
}
|
|
94369
|
+
return Boolean(
|
|
94370
|
+
componentInfoObjects2.allComponentClasses[child.componentType]?.rendererType
|
|
94371
|
+
);
|
|
94372
|
+
}
|
|
94363
94373
|
class SectioningComponent extends BlockComponent {
|
|
94364
94374
|
constructor(args) {
|
|
94365
94375
|
super(args);
|
|
@@ -94725,23 +94735,25 @@ class SectioningComponent extends BlockComponent {
|
|
|
94725
94735
|
if (dependencyValues.hideChildren && typeof child === "string") {
|
|
94726
94736
|
continue;
|
|
94727
94737
|
}
|
|
94728
|
-
|
|
94729
|
-
if
|
|
94738
|
+
const renderChild = dependencyValues.asList ? (
|
|
94739
|
+
// if asList, then only include titleChild, sections, introduction, and conclusion
|
|
94740
|
+
child.componentIdx === dependencyValues.titleChildName || componentInfoObjects2.isInheritedComponentType({
|
|
94730
94741
|
inheritedComponentType: child.componentType,
|
|
94731
94742
|
baseComponentType: "_sectioningComponent"
|
|
94732
94743
|
}) || ["introduction", "conclusion"].includes(
|
|
94733
94744
|
child.componentType
|
|
94734
|
-
)
|
|
94735
|
-
|
|
94736
|
-
|
|
94737
|
-
|
|
94738
|
-
|
|
94739
|
-
|
|
94740
|
-
|
|
94741
|
-
|
|
94742
|
-
|
|
94743
|
-
|
|
94744
|
-
|
|
94745
|
+
)
|
|
94746
|
+
) : (
|
|
94747
|
+
// otherwise, include everything but the title children
|
|
94748
|
+
// that lost out to `titleChildName`
|
|
94749
|
+
typeof child !== "object" || !allTitleChildNames.includes(child.componentIdx) || child.componentIdx === dependencyValues.titleChildName
|
|
94750
|
+
);
|
|
94751
|
+
if (!renderChild) {
|
|
94752
|
+
continue;
|
|
94753
|
+
}
|
|
94754
|
+
childIndicesToRender.push(ind);
|
|
94755
|
+
if (firstVisibleChild === null && !dependencyValues.hideChildren && childRendersSomething(child, componentInfoObjects2)) {
|
|
94756
|
+
firstVisibleChild = child;
|
|
94745
94757
|
}
|
|
94746
94758
|
}
|
|
94747
94759
|
return {
|
|
@@ -233876,4 +233888,4 @@ export {
|
|
|
233876
233888
|
getDefaultExportFromCjs$1 as g,
|
|
233877
233889
|
updateSyntaxFromV06toV07 as u
|
|
233878
233890
|
};
|
|
233879
|
-
//# sourceMappingURL=index-
|
|
233891
|
+
//# sourceMappingURL=index-CINa3RRM.js.map
|