ochre-sdk 0.20.17 → 0.20.18
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/index.d.mts +1 -0
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1146,6 +1146,7 @@ type WebBlock<T extends WebBlockLayout = WebBlockLayout> = {
|
|
|
1146
1146
|
properties: {
|
|
1147
1147
|
default: {
|
|
1148
1148
|
layout: T;
|
|
1149
|
+
wrap: "nowrap" | "wrap" | "wrap-reverse";
|
|
1149
1150
|
/**
|
|
1150
1151
|
* valid `gridTemplateColumns` or `gridTemplateRows` CSS property value
|
|
1151
1152
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -4008,6 +4008,7 @@ function parseWebBlock(blockResource) {
|
|
|
4008
4008
|
properties: {
|
|
4009
4009
|
default: {
|
|
4010
4010
|
layout: "vertical",
|
|
4011
|
+
wrap: "nowrap",
|
|
4011
4012
|
spacing: null,
|
|
4012
4013
|
gap: null
|
|
4013
4014
|
},
|
|
@@ -4023,6 +4024,7 @@ function parseWebBlock(blockResource) {
|
|
|
4023
4024
|
const blockMainProperties = getPropertyByLabelAndValue(blockProperties, "presentation", "block")?.properties ?? [];
|
|
4024
4025
|
if (blockMainProperties.length > 0) {
|
|
4025
4026
|
returnBlock.properties.default.layout = getPropertyValueByLabel(blockMainProperties, "layout") ?? "vertical";
|
|
4027
|
+
returnBlock.properties.default.wrap = getPropertyValueByLabel(blockMainProperties, "wrap") ?? "nowrap";
|
|
4026
4028
|
if (returnBlock.properties.default.layout === "accordion") {
|
|
4027
4029
|
returnBlock.properties.default.isAccordionEnabled = getPropertyValueByLabel(blockMainProperties, "accordion-enabled") ?? true;
|
|
4028
4030
|
returnBlock.properties.default.isAccordionExpandedByDefault = getPropertyValueByLabel(blockMainProperties, "accordion-expanded") ?? true;
|
|
@@ -4035,6 +4037,7 @@ function parseWebBlock(blockResource) {
|
|
|
4035
4037
|
const tabletOverwriteProperties = tabletOverwriteProperty.properties;
|
|
4036
4038
|
const propertiesTablet = {
|
|
4037
4039
|
layout: getPropertyValueByLabel(tabletOverwriteProperties, "layout") ?? void 0,
|
|
4040
|
+
wrap: getPropertyValueByLabel(tabletOverwriteProperties, "wrap") ?? void 0,
|
|
4038
4041
|
spacing: getPropertyValueByLabel(tabletOverwriteProperties, "spacing") ?? void 0,
|
|
4039
4042
|
gap: getPropertyValueByLabel(tabletOverwriteProperties, "gap") ?? void 0,
|
|
4040
4043
|
isAccordionEnabled: void 0,
|
|
@@ -4054,6 +4057,7 @@ function parseWebBlock(blockResource) {
|
|
|
4054
4057
|
const mobileOverwriteProperties = mobileOverwriteProperty.properties;
|
|
4055
4058
|
const propertiesMobile = {
|
|
4056
4059
|
layout: getPropertyValueByLabel(mobileOverwriteProperties, "layout") ?? void 0,
|
|
4060
|
+
wrap: getPropertyValueByLabel(mobileOverwriteProperties, "wrap") ?? void 0,
|
|
4057
4061
|
spacing: getPropertyValueByLabel(mobileOverwriteProperties, "spacing") ?? void 0,
|
|
4058
4062
|
gap: getPropertyValueByLabel(mobileOverwriteProperties, "gap") ?? void 0,
|
|
4059
4063
|
isAccordionEnabled: void 0,
|