@adobe/helix-md2jcr 1.0.4 → 1.0.5
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.0.5](https://github.com/adobe/helix-md2jcr/compare/v1.0.4...v1.0.5) (2025-01-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **sites-28655:** blocks that have no model are missing properties ([#42](https://github.com/adobe/helix-md2jcr/issues/42)) ([7b07416](https://github.com/adobe/helix-md2jcr/commit/7b07416bb0fb691c9cfc1213b8e87362a87980b6))
|
|
7
|
+
|
|
1
8
|
## [1.0.4](https://github.com/adobe/helix-md2jcr/compare/v1.0.3...v1.0.4) (2025-01-28)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -458,17 +458,17 @@ function gridTablePartial(context) {
|
|
|
458
458
|
if (model) {
|
|
459
459
|
fieldGroup = modelHelper.getModelFieldGroup(model.id);
|
|
460
460
|
extractProperties(mdast, model, mode, component, fieldGroup.fields, properties);
|
|
461
|
-
|
|
462
|
-
// sort all the properties so that they are in a consistent order
|
|
463
|
-
// helpful for debugging and xml readability
|
|
464
|
-
const sorted = Object.entries(properties).sort(sortJcrProperties);
|
|
465
|
-
blockProperties = sorted.map(([k, v]) => `${k}="${v}"`).join(' ');
|
|
466
461
|
} else {
|
|
467
462
|
// because we have no model we expect the block to have a filter with a component that does
|
|
468
463
|
// so that means we can remove the header row from the mdast tree
|
|
469
464
|
remove(mdast, (n) => is(n, { type: 'gtHeader' }));
|
|
470
465
|
}
|
|
471
466
|
|
|
467
|
+
// sort all the properties so that they are in a consistent order
|
|
468
|
+
// helpful for debugging and xml readability
|
|
469
|
+
const sorted = Object.entries(properties).sort(sortJcrProperties);
|
|
470
|
+
blockProperties = sorted.map(([k, v]) => `${k}="${v}"`).join(' ');
|
|
471
|
+
|
|
472
472
|
// *****************************************************
|
|
473
473
|
// Component Block Processing
|
|
474
474
|
// *****************************************************
|