@okf/ootils 1.47.0 → 1.47.1

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/browser.js CHANGED
@@ -2679,6 +2679,9 @@ var _self_managed_buildDocHierarchyConfig = ({
2679
2679
  };
2680
2680
  }).filter((g) => g.filters.length > 0);
2681
2681
  const commonFilterIds = new Set(commonFilterConfigs.map((f) => f.filterId));
2682
+ const selectedContentTypes = new Set(
2683
+ selectedTpls.map((t) => t.kp_content_type)
2684
+ );
2682
2685
  const perDataset = selectedTpls.map((tpl) => {
2683
2686
  const tplBlocks = combinedDocumentBlocks.find(
2684
2687
  (b) => b.contentType === tpl.kp_content_type
@@ -2746,7 +2749,7 @@ var _self_managed_buildDocHierarchyConfig = ({
2746
2749
  }
2747
2750
  const childByParentId = {};
2748
2751
  for (const r of rollupsWithParents) {
2749
- if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType") {
2752
+ if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType" && !selectedContentTypes.has(r.source.tagType)) {
2750
2753
  childByParentId[r.parentFilterId] = r;
2751
2754
  }
2752
2755
  }
package/dist/browser.mjs CHANGED
@@ -2607,6 +2607,9 @@ var _self_managed_buildDocHierarchyConfig = ({
2607
2607
  };
2608
2608
  }).filter((g) => g.filters.length > 0);
2609
2609
  const commonFilterIds = new Set(commonFilterConfigs.map((f) => f.filterId));
2610
+ const selectedContentTypes = new Set(
2611
+ selectedTpls.map((t) => t.kp_content_type)
2612
+ );
2610
2613
  const perDataset = selectedTpls.map((tpl) => {
2611
2614
  const tplBlocks = combinedDocumentBlocks.find(
2612
2615
  (b) => b.contentType === tpl.kp_content_type
@@ -2674,7 +2677,7 @@ var _self_managed_buildDocHierarchyConfig = ({
2674
2677
  }
2675
2678
  const childByParentId = {};
2676
2679
  for (const r of rollupsWithParents) {
2677
- if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType") {
2680
+ if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType" && !selectedContentTypes.has(r.source.tagType)) {
2678
2681
  childByParentId[r.parentFilterId] = r;
2679
2682
  }
2680
2683
  }
package/dist/node.js CHANGED
@@ -4522,6 +4522,9 @@ var _self_managed_buildDocHierarchyConfig = ({
4522
4522
  };
4523
4523
  }).filter((g) => g.filters.length > 0);
4524
4524
  const commonFilterIds = new Set(commonFilterConfigs.map((f) => f.filterId));
4525
+ const selectedContentTypes = new Set(
4526
+ selectedTpls.map((t) => t.kp_content_type)
4527
+ );
4525
4528
  const perDataset = selectedTpls.map((tpl) => {
4526
4529
  const tplBlocks = combinedDocumentBlocks.find(
4527
4530
  (b) => b.contentType === tpl.kp_content_type
@@ -4589,7 +4592,7 @@ var _self_managed_buildDocHierarchyConfig = ({
4589
4592
  }
4590
4593
  const childByParentId = {};
4591
4594
  for (const r of rollupsWithParents) {
4592
- if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType") {
4595
+ if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType" && !selectedContentTypes.has(r.source.tagType)) {
4593
4596
  childByParentId[r.parentFilterId] = r;
4594
4597
  }
4595
4598
  }
package/dist/node.mjs CHANGED
@@ -4430,6 +4430,9 @@ var _self_managed_buildDocHierarchyConfig = ({
4430
4430
  };
4431
4431
  }).filter((g) => g.filters.length > 0);
4432
4432
  const commonFilterIds = new Set(commonFilterConfigs.map((f) => f.filterId));
4433
+ const selectedContentTypes = new Set(
4434
+ selectedTpls.map((t) => t.kp_content_type)
4435
+ );
4433
4436
  const perDataset = selectedTpls.map((tpl) => {
4434
4437
  const tplBlocks = combinedDocumentBlocks.find(
4435
4438
  (b) => b.contentType === tpl.kp_content_type
@@ -4497,7 +4500,7 @@ var _self_managed_buildDocHierarchyConfig = ({
4497
4500
  }
4498
4501
  const childByParentId = {};
4499
4502
  for (const r of rollupsWithParents) {
4500
- if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType") {
4503
+ if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType" && !selectedContentTypes.has(r.source.tagType)) {
4501
4504
  childByParentId[r.parentFilterId] = r;
4502
4505
  }
4503
4506
  }
package/dist/universal.js CHANGED
@@ -2679,6 +2679,9 @@ var _self_managed_buildDocHierarchyConfig = ({
2679
2679
  };
2680
2680
  }).filter((g) => g.filters.length > 0);
2681
2681
  const commonFilterIds = new Set(commonFilterConfigs.map((f) => f.filterId));
2682
+ const selectedContentTypes = new Set(
2683
+ selectedTpls.map((t) => t.kp_content_type)
2684
+ );
2682
2685
  const perDataset = selectedTpls.map((tpl) => {
2683
2686
  const tplBlocks = combinedDocumentBlocks.find(
2684
2687
  (b) => b.contentType === tpl.kp_content_type
@@ -2746,7 +2749,7 @@ var _self_managed_buildDocHierarchyConfig = ({
2746
2749
  }
2747
2750
  const childByParentId = {};
2748
2751
  for (const r of rollupsWithParents) {
2749
- if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType") {
2752
+ if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType" && !selectedContentTypes.has(r.source.tagType)) {
2750
2753
  childByParentId[r.parentFilterId] = r;
2751
2754
  }
2752
2755
  }
@@ -2607,6 +2607,9 @@ var _self_managed_buildDocHierarchyConfig = ({
2607
2607
  };
2608
2608
  }).filter((g) => g.filters.length > 0);
2609
2609
  const commonFilterIds = new Set(commonFilterConfigs.map((f) => f.filterId));
2610
+ const selectedContentTypes = new Set(
2611
+ selectedTpls.map((t) => t.kp_content_type)
2612
+ );
2610
2613
  const perDataset = selectedTpls.map((tpl) => {
2611
2614
  const tplBlocks = combinedDocumentBlocks.find(
2612
2615
  (b) => b.contentType === tpl.kp_content_type
@@ -2674,7 +2677,7 @@ var _self_managed_buildDocHierarchyConfig = ({
2674
2677
  }
2675
2678
  const childByParentId = {};
2676
2679
  for (const r of rollupsWithParents) {
2677
- if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType") {
2680
+ if (r.parentFilterId && r.isTagRollup && r.source?.filterType === "tagType" && !selectedContentTypes.has(r.source.tagType)) {
2678
2681
  childByParentId[r.parentFilterId] = r;
2679
2682
  }
2680
2683
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.47.0",
6
+ "version": "1.47.1",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",