ochre-sdk 1.0.44 → 1.0.45
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/dist/parsers/string.mjs
CHANGED
|
@@ -280,7 +280,6 @@ function parseNestedStringItems(items, contentItem, options) {
|
|
|
280
280
|
nextItem: rawIndex + 1 < index ? items[rawIndex + 1] : void 0
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
-
if (rawMDXBlock !== "" && !rawMDXBlock.endsWith("\n") && item.whitespace?.split(" ").includes("newline") === true) rawMDXBlock += "\n";
|
|
284
283
|
if (options.rendering === "rich" && options.rawMDXBlocks != null) {
|
|
285
284
|
const placeholder = `${RAW_MDX_BLOCK_PLACEHOLDER_PREFIX}${options.rawMDXBlocks.length}${RAW_MDX_BLOCK_PLACEHOLDER_SUFFIX}`;
|
|
286
285
|
options.rawMDXBlocks.push(rawMDXBlock);
|
|
@@ -971,6 +971,7 @@ function parseWebBlock(blockResource, options, context) {
|
|
|
971
971
|
const blockProperties = blockResource.properties ? parseSimplifiedProperties(blockResource.properties, options) : [];
|
|
972
972
|
const returnBlock = {
|
|
973
973
|
uuid: blockResource.uuid,
|
|
974
|
+
language: blockResource.lang ?? null,
|
|
974
975
|
type: "block",
|
|
975
976
|
title: parseWebTitle(blockProperties, parseIdentification(blockResource.identification, options)),
|
|
976
977
|
items: [],
|
package/dist/types/website.d.mts
CHANGED
|
@@ -477,6 +477,7 @@ type WebAccordionItem<T extends LanguageCodes = LanguageCodes> = {
|
|
|
477
477
|
*/
|
|
478
478
|
type WebBlock<T extends LanguageCodes = LanguageCodes, U extends WebBlockLayout = WebBlockLayout> = {
|
|
479
479
|
uuid: string;
|
|
480
|
+
language: string | null;
|
|
480
481
|
type: "block";
|
|
481
482
|
title: WebTitle<T>;
|
|
482
483
|
items: U extends "accordion" ? Array<WebAccordionItem<T> | WebBlockItem<T>> : Array<WebBlockItem<T>>;
|