@doenet/v06-to-v07 0.7.23-dev.460 → 0.7.23-dev.463
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-CxDXWs0z.js → index-BBnfxjNS.js} +51 -15
- package/{index-CxDXWs0z.js.map → index-BBnfxjNS.js.map} +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{sha256-BqwaiouD-CLV-5tu5-BE715ySz.js → sha256-BqwaiouD-DJhshTQf-ClRdOHiv.js} +2 -2
- package/{sha256-BqwaiouD-CLV-5tu5-BE715ySz.js.map → sha256-BqwaiouD-DJhshTQf-ClRdOHiv.js.map} +1 -1
|
@@ -45337,7 +45337,7 @@ async function cidFromArrayBuffer(data) {
|
|
|
45337
45337
|
await crypto.subtle.digest("SHA-256", new Uint8Array());
|
|
45338
45338
|
digest = (data2) => crypto.subtle.digest("SHA-256", data2);
|
|
45339
45339
|
} catch (e22) {
|
|
45340
|
-
const sha256 = (await import("./sha256-BqwaiouD-
|
|
45340
|
+
const sha256 = (await import("./sha256-BqwaiouD-DJhshTQf-ClRdOHiv.js").then((n2) => n2.s)).default;
|
|
45341
45341
|
digest = (data2) => sha256(data2, {
|
|
45342
45342
|
asBytes: true
|
|
45343
45343
|
});
|
|
@@ -81959,6 +81959,9 @@ function childRendersSomething(child, componentInfoObjects2) {
|
|
|
81959
81959
|
componentInfoObjects2.allComponentClasses[child.componentType]?.rendererType
|
|
81960
81960
|
);
|
|
81961
81961
|
}
|
|
81962
|
+
function listItemNumberAlignmentForLead(leadAlignment) {
|
|
81963
|
+
return leadAlignment === "flex-start" ? "flex-start" : "baseline";
|
|
81964
|
+
}
|
|
81962
81965
|
function returnListItemChildStateVariableDefinitions({
|
|
81963
81966
|
checkInlineVariable = false,
|
|
81964
81967
|
listItemInlineAlignment = "baseline"
|
|
@@ -82002,6 +82005,7 @@ function returnListItemChildStateVariableDefinitions({
|
|
|
82002
82005
|
}
|
|
82003
82006
|
};
|
|
82004
82007
|
}
|
|
82008
|
+
const NAMING_CHILD_TYPES = ["label", "caption"];
|
|
82005
82009
|
function returnPassThroughListItemChildStateVariableDefinitions() {
|
|
82006
82010
|
const stateVariableDefinitions = {};
|
|
82007
82011
|
stateVariableDefinitions.renderInlineForListItem = {
|
|
@@ -82050,12 +82054,12 @@ function returnPassThroughListItemChildStateVariableDefinitions() {
|
|
|
82050
82054
|
componentIdx
|
|
82051
82055
|
});
|
|
82052
82056
|
if (shouldRenderInline) {
|
|
82053
|
-
const
|
|
82054
|
-
(child) => !(typeof child === "object" && child.componentType
|
|
82057
|
+
const firstVisibleContentChild = dependencyValues.allChildren.find(
|
|
82058
|
+
(child) => !(typeof child === "object" && NAMING_CHILD_TYPES.includes(child.componentType)) && childRendersSomething(child, componentInfoObjects2)
|
|
82055
82059
|
);
|
|
82056
|
-
if (
|
|
82060
|
+
if (firstVisibleContentChild && typeof firstVisibleContentChild === "object") {
|
|
82057
82061
|
childrenToRenderInlineForListItem = [
|
|
82058
|
-
|
|
82062
|
+
firstVisibleContentChild
|
|
82059
82063
|
];
|
|
82060
82064
|
}
|
|
82061
82065
|
}
|
|
@@ -97012,15 +97016,9 @@ class SectioningComponent extends BlockComponent {
|
|
|
97012
97016
|
return dependencies2;
|
|
97013
97017
|
},
|
|
97014
97018
|
definition({ dependencyValues }) {
|
|
97015
|
-
|
|
97016
|
-
|
|
97017
|
-
|
|
97018
|
-
if (alignmentFromFirstChild === "baseline" || alignmentFromFirstChild === "flex-start") {
|
|
97019
|
-
firstChildListItemAlignment = alignmentFromFirstChild;
|
|
97020
|
-
} else {
|
|
97021
|
-
firstChildListItemAlignment = "baseline";
|
|
97022
|
-
}
|
|
97023
|
-
}
|
|
97019
|
+
const firstChildListItemAlignment = dependencyValues.firstVisibleChildAdjustedForListItem ? listItemNumberAlignmentForLead(
|
|
97020
|
+
dependencyValues.firstVisibleChildListItemInlineAlignment
|
|
97021
|
+
) : "none";
|
|
97024
97022
|
return { setValue: { firstChildListItemAlignment } };
|
|
97025
97023
|
}
|
|
97026
97024
|
};
|
|
@@ -98348,6 +98346,40 @@ let Li$1 = class Li extends BaseComponent {
|
|
|
98348
98346
|
};
|
|
98349
98347
|
}
|
|
98350
98348
|
};
|
|
98349
|
+
stateVariableDefinitions.firstChildListItemAlignment = {
|
|
98350
|
+
forRenderer: true,
|
|
98351
|
+
stateVariablesDeterminingDependencies: [
|
|
98352
|
+
"childrenToRenderInlineForListItem"
|
|
98353
|
+
],
|
|
98354
|
+
returnDependencies: ({ stateValues }) => {
|
|
98355
|
+
const leadingChild = stateValues.childrenToRenderInlineForListItem?.[0];
|
|
98356
|
+
if (leadingChild?.componentIdx === void 0) {
|
|
98357
|
+
return {};
|
|
98358
|
+
}
|
|
98359
|
+
return {
|
|
98360
|
+
leadingChildListItemInlineAlignment: {
|
|
98361
|
+
dependencyType: "stateVariable",
|
|
98362
|
+
componentIdx: leadingChild.componentIdx,
|
|
98363
|
+
variableName: "listItemInlineAlignment",
|
|
98364
|
+
variablesOptional: true
|
|
98365
|
+
}
|
|
98366
|
+
};
|
|
98367
|
+
},
|
|
98368
|
+
definition({ dependencyValues }) {
|
|
98369
|
+
if (!("leadingChildListItemInlineAlignment" in dependencyValues)) {
|
|
98370
|
+
return {
|
|
98371
|
+
setValue: { firstChildListItemAlignment: "none" }
|
|
98372
|
+
};
|
|
98373
|
+
}
|
|
98374
|
+
return {
|
|
98375
|
+
setValue: {
|
|
98376
|
+
firstChildListItemAlignment: listItemNumberAlignmentForLead(
|
|
98377
|
+
dependencyValues.leadingChildListItemInlineAlignment
|
|
98378
|
+
)
|
|
98379
|
+
}
|
|
98380
|
+
};
|
|
98381
|
+
}
|
|
98382
|
+
};
|
|
98351
98383
|
stateVariableDefinitions.text = {
|
|
98352
98384
|
description: "The list's content rendered as plain text.",
|
|
98353
98385
|
public: true,
|
|
@@ -204884,6 +204916,10 @@ class Figure extends BlockComponent {
|
|
|
204884
204916
|
}
|
|
204885
204917
|
static returnStateVariableDefinitions() {
|
|
204886
204918
|
let stateVariableDefinitions = super.returnStateVariableDefinitions();
|
|
204919
|
+
Object.assign(
|
|
204920
|
+
stateVariableDefinitions,
|
|
204921
|
+
returnPassThroughListItemChildStateVariableDefinitions()
|
|
204922
|
+
);
|
|
204887
204923
|
stateVariableDefinitions.figureEnumeration = {
|
|
204888
204924
|
description: "Auto-generated number for this figure.",
|
|
204889
204925
|
public: true,
|
|
@@ -236383,4 +236419,4 @@ export {
|
|
|
236383
236419
|
getDefaultExportFromCjs$1 as g,
|
|
236384
236420
|
updateSyntaxFromV06toV07 as u
|
|
236385
236421
|
};
|
|
236386
|
-
//# sourceMappingURL=index-
|
|
236422
|
+
//# sourceMappingURL=index-BBnfxjNS.js.map
|