@doenet/v06-to-v07 0.7.23-dev.453 → 0.7.23-dev.455

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.
@@ -45107,7 +45107,7 @@ async function cidFromArrayBuffer(data) {
45107
45107
  await crypto.subtle.digest("SHA-256", new Uint8Array());
45108
45108
  digest = (data2) => crypto.subtle.digest("SHA-256", data2);
45109
45109
  } catch (e22) {
45110
- const sha256 = (await import("./sha256-BqwaiouD-CAiE9sGF-hVvo3zOK.js").then((n2) => n2.s)).default;
45110
+ const sha256 = (await import("./sha256-BqwaiouD-BmHTa12e-J4g4SZ-x.js").then((n2) => n2.s)).default;
45111
45111
  digest = (data2) => sha256(data2, {
45112
45112
  asBytes: true
45113
45113
  });
@@ -81707,6 +81707,14 @@ async function submitAllAnswers({
81707
81707
  skipRendererUpdate
81708
81708
  });
81709
81709
  }
81710
+ function childRendersSomething(child, componentInfoObjects2) {
81711
+ if (typeof child !== "object") {
81712
+ return child.trim() !== "";
81713
+ }
81714
+ return Boolean(
81715
+ componentInfoObjects2.allComponentClasses[child.componentType]?.rendererType
81716
+ );
81717
+ }
81710
81718
  function returnListItemChildStateVariableDefinitions({
81711
81719
  checkInlineVariable = false,
81712
81720
  listItemInlineAlignment = "baseline"
@@ -96181,14 +96189,6 @@ function nonConfigurationChildEntries(dependencyValues) {
96181
96189
  ([, child]) => !configurationChildIndices.has(child.componentIdx)
96182
96190
  );
96183
96191
  }
96184
- function childRendersSomething(child, componentInfoObjects2) {
96185
- if (typeof child !== "object") {
96186
- return child.trim() !== "";
96187
- }
96188
- return Boolean(
96189
- componentInfoObjects2.allComponentClasses[child.componentType]?.rendererType
96190
- );
96191
- }
96192
96192
  class SectioningComponent extends BlockComponent {
96193
96193
  constructor(args) {
96194
96194
  super(args);
@@ -98048,6 +98048,24 @@ let Li$1 = class Li extends BaseComponent {
98048
98048
  returnDependencies: () => ({}),
98049
98049
  definition: () => ({ setValue: { item: true } })
98050
98050
  };
98051
+ stateVariableDefinitions.childrenToRenderInlineForListItem = {
98052
+ returnDependencies: () => ({
98053
+ children: {
98054
+ dependencyType: "child",
98055
+ childGroups: ["anything"]
98056
+ }
98057
+ }),
98058
+ definition({ dependencyValues, componentInfoObjects: componentInfoObjects2 }) {
98059
+ const firstVisibleChild = dependencyValues.children.find(
98060
+ (child) => childRendersSomething(child, componentInfoObjects2)
98061
+ );
98062
+ return {
98063
+ setValue: {
98064
+ childrenToRenderInlineForListItem: firstVisibleChild && typeof firstVisibleChild === "object" ? [firstVisibleChild] : []
98065
+ }
98066
+ };
98067
+ }
98068
+ };
98051
98069
  stateVariableDefinitions.text = {
98052
98070
  description: "The list's content rendered as plain text.",
98053
98071
  public: true,
@@ -147790,6 +147808,22 @@ class Choiceinput extends Input {
147790
147808
  listItemInlineAlignment: "flex-start"
147791
147809
  })
147792
147810
  );
147811
+ stateVariableDefinitions.insideNativeListItem = {
147812
+ forRenderer: true,
147813
+ returnDependencies: () => ({
147814
+ listItemAncestor: {
147815
+ dependencyType: "ancestor",
147816
+ componentType: "li"
147817
+ }
147818
+ }),
147819
+ definition: ({ dependencyValues }) => ({
147820
+ setValue: {
147821
+ insideNativeListItem: Boolean(
147822
+ dependencyValues.listItemAncestor
147823
+ )
147824
+ }
147825
+ })
147826
+ };
147793
147827
  stateVariableDefinitions.inline = {
147794
147828
  description: "Whether the input is rendered inline (as a dropdown).",
147795
147829
  public: true,
@@ -236073,4 +236107,4 @@ export {
236073
236107
  getDefaultExportFromCjs$1 as g,
236074
236108
  updateSyntaxFromV06toV07 as u
236075
236109
  };
236076
- //# sourceMappingURL=index-CiQvV-e1.js.map
236110
+ //# sourceMappingURL=index-DuSsrwhZ.js.map