@doenet/v06-to-v07 0.7.21-dev.400 → 0.7.21-dev.403
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-BtQ850CV.js → index-DmoaaW60.js} +24 -14
- package/{index-BtQ850CV.js.map → index-DmoaaW60.js.map} +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{sha256-AuWkkb03-B0t08K-E-DXKlqzPy.js → sha256-AuWkkb03-DXe3kQ3m-CV2S693i.js} +2 -2
- package/{sha256-AuWkkb03-B0t08K-E-DXKlqzPy.js.map → sha256-AuWkkb03-DXe3kQ3m-CV2S693i.js.map} +1 -1
|
@@ -43404,7 +43404,7 @@ async function cidFromArrayBuffer(data) {
|
|
|
43404
43404
|
await crypto.subtle.digest("SHA-256", new Uint8Array());
|
|
43405
43405
|
digest = (data2) => crypto.subtle.digest("SHA-256", data2);
|
|
43406
43406
|
} catch (e22) {
|
|
43407
|
-
const sha256 = (await import("./sha256-AuWkkb03-
|
|
43407
|
+
const sha256 = (await import("./sha256-AuWkkb03-DXe3kQ3m-CV2S693i.js").then((n2) => n2.s)).default;
|
|
43408
43408
|
digest = (data2) => sha256(data2, {
|
|
43409
43409
|
asBytes: true
|
|
43410
43410
|
});
|
|
@@ -121257,6 +121257,20 @@ class Document extends BaseComponent {
|
|
|
121257
121257
|
shadowingInstructions: {
|
|
121258
121258
|
createComponentOfType: "text"
|
|
121259
121259
|
},
|
|
121260
|
+
// `renderedLang` is the tag the section renderer writes as a
|
|
121261
|
+
// `lang` attribute, or null for no attribute at all (#1546). The
|
|
121262
|
+
// same language as `locale`, narrowed to where the DOM has
|
|
121263
|
+
// something to add: only a nested document, and only when its
|
|
121264
|
+
// language differs from the one already in effect around it.
|
|
121265
|
+
//
|
|
121266
|
+
// The viewer labels the whole activity from the outermost
|
|
121267
|
+
// document's language, on the wrapper it renders around it. So the
|
|
121268
|
+
// outermost document needs no tag of its own, a nested one that
|
|
121269
|
+
// merely restates the surrounding language would say nothing new,
|
|
121270
|
+
// and "already in effect" is known here at every depth.
|
|
121271
|
+
additionalStateVariablesDefined: [
|
|
121272
|
+
{ variableName: "renderedLang", forRenderer: true }
|
|
121273
|
+
],
|
|
121260
121274
|
returnDependencies: () => ({
|
|
121261
121275
|
lang: {
|
|
121262
121276
|
dependencyType: "attributePrimitive",
|
|
@@ -121272,20 +121286,16 @@ class Document extends BaseComponent {
|
|
|
121272
121286
|
}
|
|
121273
121287
|
}),
|
|
121274
121288
|
definition({ dependencyValues }) {
|
|
121275
|
-
const
|
|
121276
|
-
|
|
121277
|
-
|
|
121278
|
-
|
|
121279
|
-
|
|
121280
|
-
}
|
|
121281
|
-
};
|
|
121282
|
-
}
|
|
121289
|
+
const inherited = dependencyValues.documentAncestor?.stateValues.locale;
|
|
121290
|
+
const locale = resolveDocumentLocale(
|
|
121291
|
+
dependencyValues.lang,
|
|
121292
|
+
inherited ?? dependencyValues.hostLocale
|
|
121293
|
+
);
|
|
121283
121294
|
return {
|
|
121284
121295
|
setValue: {
|
|
121285
|
-
locale
|
|
121286
|
-
|
|
121287
|
-
|
|
121288
|
-
)
|
|
121296
|
+
locale,
|
|
121297
|
+
// Silent wherever the DOM already says this language.
|
|
121298
|
+
renderedLang: inherited && locale !== inherited ? locale : null
|
|
121289
121299
|
}
|
|
121290
121300
|
};
|
|
121291
121301
|
}
|
|
@@ -234225,4 +234235,4 @@ export {
|
|
|
234225
234235
|
getDefaultExportFromCjs$1 as g,
|
|
234226
234236
|
updateSyntaxFromV06toV07 as u
|
|
234227
234237
|
};
|
|
234228
|
-
//# sourceMappingURL=index-
|
|
234238
|
+
//# sourceMappingURL=index-DmoaaW60.js.map
|