@doenet/v06-to-v07 0.7.21-dev.382 → 0.7.21-dev.383
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-CWT152hP.js → index-DYJxinsx.js} +42 -34
- package/{index-CWT152hP.js.map → index-DYJxinsx.js.map} +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{sha256-AuWkkb03-Cx3VZc-P-D8XEbJdS.js → sha256-AuWkkb03-CsqRV36K-C-5mFBZo.js} +2 -2
- package/{sha256-AuWkkb03-Cx3VZc-P-D8XEbJdS.js.map → sha256-AuWkkb03-CsqRV36K-C-5mFBZo.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-CsqRV36K-C-5mFBZo.js").then((n2) => n2.s)).default;
|
|
43374
43374
|
digest = (data2) => sha256(data2, {
|
|
43375
43375
|
asBytes: true
|
|
43376
43376
|
});
|
|
@@ -94334,6 +94334,32 @@ function addSectionTitleColorContrastDiagnostic({
|
|
|
94334
94334
|
);
|
|
94335
94335
|
}
|
|
94336
94336
|
}
|
|
94337
|
+
function returnSectionChildDependencies() {
|
|
94338
|
+
return {
|
|
94339
|
+
allChildren: {
|
|
94340
|
+
dependencyType: "child",
|
|
94341
|
+
includeAllChildren: true
|
|
94342
|
+
},
|
|
94343
|
+
configurationChildren: {
|
|
94344
|
+
dependencyType: "child",
|
|
94345
|
+
childGroups: [
|
|
94346
|
+
"styleDefinitions",
|
|
94347
|
+
"stylePalettes",
|
|
94348
|
+
"feedbackDefinitions"
|
|
94349
|
+
]
|
|
94350
|
+
}
|
|
94351
|
+
};
|
|
94352
|
+
}
|
|
94353
|
+
function nonConfigurationChildEntries(dependencyValues) {
|
|
94354
|
+
const configurationChildIndices = new Set(
|
|
94355
|
+
dependencyValues.configurationChildren.map(
|
|
94356
|
+
(child) => child.componentIdx
|
|
94357
|
+
)
|
|
94358
|
+
);
|
|
94359
|
+
return [...dependencyValues.allChildren.entries()].filter(
|
|
94360
|
+
([, child]) => !configurationChildIndices.has(child.componentIdx)
|
|
94361
|
+
);
|
|
94362
|
+
}
|
|
94337
94363
|
class SectioningComponent extends BlockComponent {
|
|
94338
94364
|
constructor(args) {
|
|
94339
94365
|
super(args);
|
|
@@ -94673,16 +94699,7 @@ class SectioningComponent extends BlockComponent {
|
|
|
94673
94699
|
dependencyType: "child",
|
|
94674
94700
|
childGroups: ["titles"]
|
|
94675
94701
|
},
|
|
94676
|
-
|
|
94677
|
-
dependencyType: "child",
|
|
94678
|
-
childGroups: [
|
|
94679
|
-
"anything",
|
|
94680
|
-
"variantControls",
|
|
94681
|
-
"titles",
|
|
94682
|
-
"setups",
|
|
94683
|
-
"cascadeMessages"
|
|
94684
|
-
]
|
|
94685
|
-
},
|
|
94702
|
+
...returnSectionChildDependencies(),
|
|
94686
94703
|
titleChildName: {
|
|
94687
94704
|
dependencyType: "stateVariable",
|
|
94688
94705
|
variableName: "titleChildName"
|
|
@@ -94702,10 +94719,9 @@ class SectioningComponent extends BlockComponent {
|
|
|
94702
94719
|
let allTitleChildNames = dependencyValues.titleChildren.map(
|
|
94703
94720
|
(x2) => x2.componentIdx
|
|
94704
94721
|
);
|
|
94705
|
-
for (let [
|
|
94706
|
-
|
|
94707
|
-
|
|
94708
|
-
] of dependencyValues.allChildren.entries()) {
|
|
94722
|
+
for (let [ind, child] of nonConfigurationChildEntries(
|
|
94723
|
+
dependencyValues
|
|
94724
|
+
)) {
|
|
94709
94725
|
if (dependencyValues.hideChildren && typeof child === "string") {
|
|
94710
94726
|
continue;
|
|
94711
94727
|
}
|
|
@@ -94736,16 +94752,7 @@ class SectioningComponent extends BlockComponent {
|
|
|
94736
94752
|
};
|
|
94737
94753
|
stateVariableDefinitions.childrenToHide = {
|
|
94738
94754
|
returnDependencies: () => ({
|
|
94739
|
-
|
|
94740
|
-
dependencyType: "child",
|
|
94741
|
-
childGroups: [
|
|
94742
|
-
"anything",
|
|
94743
|
-
"variantControls",
|
|
94744
|
-
"titles",
|
|
94745
|
-
"setups",
|
|
94746
|
-
"cascadeMessages"
|
|
94747
|
-
]
|
|
94748
|
-
},
|
|
94755
|
+
...returnSectionChildDependencies(),
|
|
94749
94756
|
titleChildName: {
|
|
94750
94757
|
dependencyType: "stateVariable",
|
|
94751
94758
|
variableName: "titleChildName"
|
|
@@ -94757,7 +94764,9 @@ class SectioningComponent extends BlockComponent {
|
|
|
94757
94764
|
}),
|
|
94758
94765
|
definition({ dependencyValues }) {
|
|
94759
94766
|
const childrenToHide = [];
|
|
94760
|
-
for (let child of
|
|
94767
|
+
for (let [, child] of nonConfigurationChildEntries(
|
|
94768
|
+
dependencyValues
|
|
94769
|
+
)) {
|
|
94761
94770
|
if (child.componentType === "cascadeMessage") {
|
|
94762
94771
|
if (!dependencyValues.hideChildren && typeof child === "object") {
|
|
94763
94772
|
childrenToHide.push(child.componentIdx);
|
|
@@ -94898,15 +94907,14 @@ class SectioningComponent extends BlockComponent {
|
|
|
94898
94907
|
],
|
|
94899
94908
|
forRenderer: true,
|
|
94900
94909
|
returnDependencies: () => ({
|
|
94910
|
+
// `childIndicesToRender` is looked up in this list below, so it
|
|
94911
|
+
// must be the same complete child list that produced those
|
|
94912
|
+
// positions (see `returnSectionChildDependencies`). The
|
|
94913
|
+
// configuration children are already excluded from
|
|
94914
|
+
// `childIndicesToRender`, so they need not be identified here.
|
|
94901
94915
|
allChildren: {
|
|
94902
94916
|
dependencyType: "child",
|
|
94903
|
-
|
|
94904
|
-
"anything",
|
|
94905
|
-
"variantControls",
|
|
94906
|
-
"titles",
|
|
94907
|
-
"setups",
|
|
94908
|
-
"cascadeMessages"
|
|
94909
|
-
]
|
|
94917
|
+
includeAllChildren: true
|
|
94910
94918
|
},
|
|
94911
94919
|
asList: {
|
|
94912
94920
|
dependencyType: "stateVariable",
|
|
@@ -233868,4 +233876,4 @@ export {
|
|
|
233868
233876
|
getDefaultExportFromCjs$1 as g,
|
|
233869
233877
|
updateSyntaxFromV06toV07 as u
|
|
233870
233878
|
};
|
|
233871
|
-
//# sourceMappingURL=index-
|
|
233879
|
+
//# sourceMappingURL=index-DYJxinsx.js.map
|