@okf/ootils 1.41.0 → 1.41.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
@@ -1769,6 +1769,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
1769
1769
  scope: section.filterScope
1770
1770
  };
1771
1771
  };
1772
+ const isSelfTerminalTag = element.rollupPath.length === 1 && !isLastTagProfile && !isTerminalValuePath;
1772
1773
  return {
1773
1774
  filterId: `ROLLUP_${section.filterScope}_${element.rollupPath.join(
1774
1775
  "_"
@@ -1782,9 +1783,14 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
1782
1783
  scope: section.filterScope
1783
1784
  }),
1784
1785
  contentType: element.rollupPath[0],
1785
- path: `tags.${element.rollupPath[1]}`,
1786
+ path: `tags.${isSelfTerminalTag ? element.rollupPath[0] : element.rollupPath[1]}`,
1786
1787
  source: getSourceConfig(),
1787
- target: {
1788
+ target: isSelfTerminalTag ? {
1789
+ filterType: "tagType",
1790
+ tagType: element.rollupPath[0],
1791
+ rollupPath: element.rollupPath,
1792
+ ...isAnno && { isAnno: true }
1793
+ } : {
1788
1794
  filterType: "nestedRollupTagType",
1789
1795
  rollupPath: element.rollupPath,
1790
1796
  ...isAnno && { isAnno: true }
package/dist/browser.mjs CHANGED
@@ -1699,6 +1699,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
1699
1699
  scope: section.filterScope
1700
1700
  };
1701
1701
  };
1702
+ const isSelfTerminalTag = element.rollupPath.length === 1 && !isLastTagProfile && !isTerminalValuePath;
1702
1703
  return {
1703
1704
  filterId: `ROLLUP_${section.filterScope}_${element.rollupPath.join(
1704
1705
  "_"
@@ -1712,9 +1713,14 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
1712
1713
  scope: section.filterScope
1713
1714
  }),
1714
1715
  contentType: element.rollupPath[0],
1715
- path: `tags.${element.rollupPath[1]}`,
1716
+ path: `tags.${isSelfTerminalTag ? element.rollupPath[0] : element.rollupPath[1]}`,
1716
1717
  source: getSourceConfig(),
1717
- target: {
1718
+ target: isSelfTerminalTag ? {
1719
+ filterType: "tagType",
1720
+ tagType: element.rollupPath[0],
1721
+ rollupPath: element.rollupPath,
1722
+ ...isAnno && { isAnno: true }
1723
+ } : {
1718
1724
  filterType: "nestedRollupTagType",
1719
1725
  rollupPath: element.rollupPath,
1720
1726
  ...isAnno && { isAnno: true }
package/dist/node.js CHANGED
@@ -3509,6 +3509,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
3509
3509
  scope: section.filterScope
3510
3510
  };
3511
3511
  };
3512
+ const isSelfTerminalTag = element.rollupPath.length === 1 && !isLastTagProfile && !isTerminalValuePath;
3512
3513
  return {
3513
3514
  filterId: `ROLLUP_${section.filterScope}_${element.rollupPath.join(
3514
3515
  "_"
@@ -3522,9 +3523,14 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
3522
3523
  scope: section.filterScope
3523
3524
  }),
3524
3525
  contentType: element.rollupPath[0],
3525
- path: `tags.${element.rollupPath[1]}`,
3526
+ path: `tags.${isSelfTerminalTag ? element.rollupPath[0] : element.rollupPath[1]}`,
3526
3527
  source: getSourceConfig(),
3527
- target: {
3528
+ target: isSelfTerminalTag ? {
3529
+ filterType: "tagType",
3530
+ tagType: element.rollupPath[0],
3531
+ rollupPath: element.rollupPath,
3532
+ ...isAnno && { isAnno: true }
3533
+ } : {
3528
3534
  filterType: "nestedRollupTagType",
3529
3535
  rollupPath: element.rollupPath,
3530
3536
  ...isAnno && { isAnno: true }
package/dist/node.mjs CHANGED
@@ -3437,6 +3437,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
3437
3437
  scope: section.filterScope
3438
3438
  };
3439
3439
  };
3440
+ const isSelfTerminalTag = element.rollupPath.length === 1 && !isLastTagProfile && !isTerminalValuePath;
3440
3441
  return {
3441
3442
  filterId: `ROLLUP_${section.filterScope}_${element.rollupPath.join(
3442
3443
  "_"
@@ -3450,9 +3451,14 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
3450
3451
  scope: section.filterScope
3451
3452
  }),
3452
3453
  contentType: element.rollupPath[0],
3453
- path: `tags.${element.rollupPath[1]}`,
3454
+ path: `tags.${isSelfTerminalTag ? element.rollupPath[0] : element.rollupPath[1]}`,
3454
3455
  source: getSourceConfig(),
3455
- target: {
3456
+ target: isSelfTerminalTag ? {
3457
+ filterType: "tagType",
3458
+ tagType: element.rollupPath[0],
3459
+ rollupPath: element.rollupPath,
3460
+ ...isAnno && { isAnno: true }
3461
+ } : {
3456
3462
  filterType: "nestedRollupTagType",
3457
3463
  rollupPath: element.rollupPath,
3458
3464
  ...isAnno && { isAnno: true }
package/dist/universal.js CHANGED
@@ -1769,6 +1769,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
1769
1769
  scope: section.filterScope
1770
1770
  };
1771
1771
  };
1772
+ const isSelfTerminalTag = element.rollupPath.length === 1 && !isLastTagProfile && !isTerminalValuePath;
1772
1773
  return {
1773
1774
  filterId: `ROLLUP_${section.filterScope}_${element.rollupPath.join(
1774
1775
  "_"
@@ -1782,9 +1783,14 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
1782
1783
  scope: section.filterScope
1783
1784
  }),
1784
1785
  contentType: element.rollupPath[0],
1785
- path: `tags.${element.rollupPath[1]}`,
1786
+ path: `tags.${isSelfTerminalTag ? element.rollupPath[0] : element.rollupPath[1]}`,
1786
1787
  source: getSourceConfig(),
1787
- target: {
1788
+ target: isSelfTerminalTag ? {
1789
+ filterType: "tagType",
1790
+ tagType: element.rollupPath[0],
1791
+ rollupPath: element.rollupPath,
1792
+ ...isAnno && { isAnno: true }
1793
+ } : {
1788
1794
  filterType: "nestedRollupTagType",
1789
1795
  rollupPath: element.rollupPath,
1790
1796
  ...isAnno && { isAnno: true }
@@ -1699,6 +1699,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
1699
1699
  scope: section.filterScope
1700
1700
  };
1701
1701
  };
1702
+ const isSelfTerminalTag = element.rollupPath.length === 1 && !isLastTagProfile && !isTerminalValuePath;
1702
1703
  return {
1703
1704
  filterId: `ROLLUP_${section.filterScope}_${element.rollupPath.join(
1704
1705
  "_"
@@ -1712,9 +1713,14 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
1712
1713
  scope: section.filterScope
1713
1714
  }),
1714
1715
  contentType: element.rollupPath[0],
1715
- path: `tags.${element.rollupPath[1]}`,
1716
+ path: `tags.${isSelfTerminalTag ? element.rollupPath[0] : element.rollupPath[1]}`,
1716
1717
  source: getSourceConfig(),
1717
- target: {
1718
+ target: isSelfTerminalTag ? {
1719
+ filterType: "tagType",
1720
+ tagType: element.rollupPath[0],
1721
+ rollupPath: element.rollupPath,
1722
+ ...isAnno && { isAnno: true }
1723
+ } : {
1718
1724
  filterType: "nestedRollupTagType",
1719
1725
  rollupPath: element.rollupPath,
1720
1726
  ...isAnno && { isAnno: true }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.41.0",
6
+ "version": "1.41.1",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",