@ubnt/store.core 9.10.0-konutis.1 → 9.10.0

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.
Files changed (95) hide show
  1. package/lib/_virtual/_virtual_multi-entry.js +2 -16
  2. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  3. package/lib/_virtual/_virtual_multi-entry.mjs +0 -2
  4. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  5. package/lib/assets/attention.svg +5 -5
  6. package/lib/assets/attention2.svg +5 -5
  7. package/lib/assets/minus4.svg +8 -8
  8. package/lib/assets/minus5.svg +8 -8
  9. package/lib/assets/plus5.svg +9 -9
  10. package/lib/assets/plus6.svg +9 -9
  11. package/lib/assets/ucgUltra.jpg +0 -0
  12. package/lib/assets/ucgUltra2.jpg +0 -0
  13. package/lib/assets/udmPro.jpg +0 -0
  14. package/lib/assets/udmPro2.jpg +0 -0
  15. package/lib/assets/udmProMax.jpg +0 -0
  16. package/lib/assets/udmProMax2.jpg +0 -0
  17. package/lib/assets/udmProSpecial.jpg +0 -0
  18. package/lib/assets/udmProSpecial2.jpg +0 -0
  19. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
  20. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
  21. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  22. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  23. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  24. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  25. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  26. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  27. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
  28. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
  29. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  30. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  31. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  32. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  33. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  34. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  35. package/lib/components/ModelCompareV3/data/CloudGateways.js +12 -12
  36. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
  37. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
  38. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
  39. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  40. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  41. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  42. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  43. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  44. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  45. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  46. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  47. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  48. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  49. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  50. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  51. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  52. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  53. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  54. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  55. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  56. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  57. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  58. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  59. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  60. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  61. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  62. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  63. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  64. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  65. package/lib/helpers/index.d.ts +0 -1
  66. package/lib/helpers/index.js +0 -12
  67. package/lib/helpers/index.js.map +1 -1
  68. package/lib/helpers/index.mjs +0 -1
  69. package/lib/helpers/index.mjs.map +1 -1
  70. package/lib/types/index.d.ts +0 -1
  71. package/lib/types/index.js +0 -2
  72. package/lib/types/index.js.map +1 -1
  73. package/lib/types/index.mjs +0 -1
  74. package/lib/types/index.mjs.map +1 -1
  75. package/lib/utils/array.d.ts +0 -4
  76. package/lib/utils/array.js +0 -10
  77. package/lib/utils/array.js.map +1 -1
  78. package/lib/utils/array.mjs +1 -10
  79. package/lib/utils/array.mjs.map +1 -1
  80. package/package.json +1 -1
  81. package/lib/helpers/product.d.ts +0 -96
  82. package/lib/helpers/product.js +0 -360
  83. package/lib/helpers/product.js.map +0 -1
  84. package/lib/helpers/product.mjs +0 -348
  85. package/lib/helpers/product.mjs.map +0 -1
  86. package/lib/types/product.d.ts +0 -87
  87. package/lib/types/product.js +0 -14
  88. package/lib/types/product.js.map +0 -1
  89. package/lib/types/product.mjs +0 -13
  90. package/lib/types/product.mjs.map +0 -1
  91. package/lib/utils/productSort.d.ts +0 -41
  92. package/lib/utils/productSort.js +0 -66
  93. package/lib/utils/productSort.js.map +0 -1
  94. package/lib/utils/productSort.mjs +0 -59
  95. package/lib/utils/productSort.mjs.map +0 -1
@@ -20,7 +20,7 @@ var unifiDevices = require('../properties/unifiDevices.js');
20
20
  var unifiPowerBackup = require('../properties/unifiPowerBackup.js');
21
21
  var wanPorts = require('../properties/wanPorts.js');
22
22
  var unifi = require('../../../../constants/proStoreCategories/mapping/unifi.js');
23
- var image = require("../../../../assets/udmPro.jpg");
23
+ var image = require("../../../../assets/udmPro2.jpg");
24
24
  var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
25
25
  var applications = require("../../../../assets/applications.svg");
26
26
  var nextAiInspection = require('../properties/nextAiInspection.js');
@@ -18,7 +18,7 @@ import { unifiDevices } from '../properties/unifiDevices.mjs';
18
18
  import { unifiPowerBackup } from '../properties/unifiPowerBackup.mjs';
19
19
  import { wanPorts } from '../properties/wanPorts.mjs';
20
20
  import { UniFiCategoryId } from '../../../../constants/proStoreCategories/mapping/unifi.mjs';
21
- import image__default from "../../../../assets/udmPro.jpg";
21
+ import image__default from "../../../../assets/udmPro2.jpg";
22
22
  import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
23
23
  import applications__default from "../../../../assets/applications.svg";
24
24
  import { nextAiInspection } from '../properties/nextAiInspection.mjs';
@@ -8,7 +8,7 @@ require('../../assets/applications.svg.js');
8
8
  require('../../assets/Consoles/udmProMax.jpg.js');
9
9
  require('../properties/index.js');
10
10
  var unifi = require('../../../../constants/proStoreCategories/mapping/unifi.js');
11
- var image = require("../../../../assets/udmProMax.jpg");
11
+ var image = require("../../../../assets/udmProMax2.jpg");
12
12
  var unifiAppSuite = require('../properties/unifiAppSuite.js');
13
13
  var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
14
14
  var applications = require("../../../../assets/applications.svg");
@@ -6,7 +6,7 @@ import '../../assets/applications.svg.mjs';
6
6
  import '../../assets/Consoles/udmProMax.jpg.mjs';
7
7
  import '../properties/index.mjs';
8
8
  import { UniFiCategoryId } from '../../../../constants/proStoreCategories/mapping/unifi.mjs';
9
- import image__default from "../../../../assets/udmProMax.jpg";
9
+ import image__default from "../../../../assets/udmProMax2.jpg";
10
10
  import { unifiAppSuite } from '../properties/unifiAppSuite.mjs';
11
11
  import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
12
12
  import applications__default from "../../../../assets/applications.svg";
@@ -20,7 +20,7 @@ var unifiDevices = require('../properties/unifiDevices.js');
20
20
  var unifiPowerBackup = require('../properties/unifiPowerBackup.js');
21
21
  var wanPorts = require('../properties/wanPorts.js');
22
22
  var unifi = require('../../../../constants/proStoreCategories/mapping/unifi.js');
23
- var image = require("../../../../assets/udmProSpecial.jpg");
23
+ var image = require("../../../../assets/udmProSpecial2.jpg");
24
24
  var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
25
25
  var applications = require("../../../../assets/applications.svg");
26
26
  var nextAiInspection = require('../properties/nextAiInspection.js');
@@ -18,7 +18,7 @@ import { unifiDevices } from '../properties/unifiDevices.mjs';
18
18
  import { unifiPowerBackup } from '../properties/unifiPowerBackup.mjs';
19
19
  import { wanPorts } from '../properties/wanPorts.mjs';
20
20
  import { UniFiCategoryId } from '../../../../constants/proStoreCategories/mapping/unifi.mjs';
21
- import image__default from "../../../../assets/udmProSpecial.jpg";
21
+ import image__default from "../../../../assets/udmProSpecial2.jpg";
22
22
  import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
23
23
  import applications__default from "../../../../assets/applications.svg";
24
24
  import { nextAiInspection } from '../properties/nextAiInspection.mjs';
@@ -12,7 +12,7 @@ require('./assets/attention.svg.js');
12
12
  var InputCard_styles = require('./InputCard.styles.js');
13
13
  require('./InputSections/index.js');
14
14
  var CustomImage = require('../../../../CustomImage/CustomImage.js');
15
- var attentionIcon = require("../../../../../assets/attention.svg");
15
+ var attentionIcon = require("../../../../../assets/attention2.svg");
16
16
  var OptionSelectSection = require('./InputSections/OptionSelectSection.js');
17
17
  var SliderSection = require('./InputSections/SliderSection.js');
18
18
  var CounterSection = require('./InputSections/CounterSection.js');
@@ -10,7 +10,7 @@ import './assets/attention.svg.mjs';
10
10
  import { Card, Header, HeaderHeadingSection, HeadingIcon, HeadingTitle, HeaderActionSection, SubduedInfo, OverlayFilter, NotAvailableNoteWrap, NotAvailableNoteIcon, InputBody, InputSectionSpacing, Footer, FooterContent, FooterNote } from './InputCard.styles.mjs';
11
11
  import './InputSections/index.mjs';
12
12
  import { CustomImage } from '../../../../CustomImage/CustomImage.mjs';
13
- import attentionIcon__default from "../../../../../assets/attention.svg";
13
+ import attentionIcon__default from "../../../../../assets/attention2.svg";
14
14
  import { OptionSelectSection } from './InputSections/OptionSelectSection.mjs';
15
15
  import { SliderSection } from './InputSections/SliderSection.mjs';
16
16
  import { CounterSection } from './InputSections/CounterSection.mjs';
@@ -11,8 +11,8 @@ require('../assets/plus.svg.js');
11
11
  var Layout_styles = require('./Layout.styles.js');
12
12
  var CustomImage = require('../../../../../CustomImage/CustomImage.js');
13
13
  var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
14
- var MinusIcon = require("../../../../../../assets/minus4.svg");
15
- var PlusIcon = require("../../../../../../assets/plus5.svg");
14
+ var MinusIcon = require("../../../../../../assets/minus5.svg");
15
+ var PlusIcon = require("../../../../../../assets/plus6.svg");
16
16
  function _interopDefault(e) {
17
17
  return e && e.__esModule ? e : {
18
18
  default: e
@@ -9,8 +9,8 @@ import '../assets/plus.svg.mjs';
9
9
  import { InputWrapper, Label, InputFlexWrapper } from './Layout.styles.mjs';
10
10
  import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
11
11
  import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
12
- import MinusIcon__default from "../../../../../../assets/minus4.svg";
13
- import PlusIcon__default from "../../../../../../assets/plus5.svg";
12
+ import MinusIcon__default from "../../../../../../assets/minus5.svg";
13
+ import PlusIcon__default from "../../../../../../assets/plus6.svg";
14
14
  "use strict";
15
15
  const CounterSection = ({
16
16
  value,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var attentionIcon = require("../../../../../../assets/attention.svg");
6
+ var attentionIcon = require("../../../../../../assets/attention2.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/attention.svg";
2
- export { default } from "../../../../../../assets/attention.svg";
1
+ export * from "../../../../../../assets/attention2.svg";
2
+ export { default } from "../../../../../../assets/attention2.svg";
3
3
  //# sourceMappingURL=attention.svg.mjs.map
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var MinusIcon = require("../../../../../../assets/minus4.svg");
6
+ var MinusIcon = require("../../../../../../assets/minus5.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/minus4.svg";
2
- export { default } from "../../../../../../assets/minus4.svg";
1
+ export * from "../../../../../../assets/minus5.svg";
2
+ export { default } from "../../../../../../assets/minus5.svg";
3
3
  //# sourceMappingURL=minus.svg.mjs.map
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var PlusIcon = require("../../../../../../assets/plus5.svg");
6
+ var PlusIcon = require("../../../../../../assets/plus6.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/plus5.svg";
2
- export { default } from "../../../../../../assets/plus5.svg";
1
+ export * from "../../../../../../assets/plus6.svg";
2
+ export { default } from "../../../../../../assets/plus6.svg";
3
3
  //# sourceMappingURL=plus.svg.mjs.map
@@ -6,7 +6,7 @@ var asset = require('../../../../../utils/asset.js');
6
6
  require('./assets/attention.svg.js');
7
7
  var Part = require('./Part.js');
8
8
  var ProgressBarChart_styles = require('./ProgressBarChart.styles.js');
9
- var attentionIcon = require("../../../../../assets/attention2.svg");
9
+ var attentionIcon = require("../../../../../assets/attention.svg");
10
10
  function _interopDefault(e) {
11
11
  return e && e.__esModule ? e : {
12
12
  default: e
@@ -4,7 +4,7 @@ import { imageSrc } from '../../../../../utils/asset.mjs';
4
4
  import './assets/attention.svg.mjs';
5
5
  import { PART_GAP_PX, PART_WIDTH_PX, Part } from './Part.mjs';
6
6
  import { ProgressBarChartContainer, ProgressBarChartHeader, ProgressBarChartTitle, ProgressBarWrapper, ProgressBarPartsContainer, ProgressBarAttentionLabel, ProgressBarAttentionLabelIcon } from './ProgressBarChart.styles.mjs';
7
- import attentionIcon__default from "../../../../../assets/attention2.svg";
7
+ import attentionIcon__default from "../../../../../assets/attention.svg";
8
8
  "use strict";
9
9
  const ProgressBarChart = ({
10
10
  title,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var attentionIcon = require("../../../../../../assets/attention2.svg");
6
+ var attentionIcon = require("../../../../../../assets/attention.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/attention2.svg";
2
- export { default } from "../../../../../../assets/attention2.svg";
1
+ export * from "../../../../../../assets/attention.svg";
2
+ export { default } from "../../../../../../assets/attention.svg";
3
3
  //# sourceMappingURL=attention.svg.mjs.map
@@ -19,8 +19,8 @@ var ComputeResourceCalculator_types = require('../../../../ComputeResourceCalcul
19
19
  var CustomImage = require('../../../../../CustomImage/CustomImage.js');
20
20
  var SearchIcon = require("../../../../../../assets/search2.svg");
21
21
  var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
22
- var MinusIcon = require("../../../../../../assets/minus5.svg");
23
- var PlusIcon = require("../../../../../../assets/plus6.svg");
22
+ var MinusIcon = require("../../../../../../assets/minus4.svg");
23
+ var PlusIcon = require("../../../../../../assets/plus5.svg");
24
24
  function _interopDefault(e) {
25
25
  return e && e.__esModule ? e : {
26
26
  default: e
@@ -17,8 +17,8 @@ import { isMessageFormatted } from '../../../../ComputeResourceCalculator/Comput
17
17
  import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
18
18
  import SearchIcon__default from "../../../../../../assets/search2.svg";
19
19
  import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
20
- import MinusIcon__default from "../../../../../../assets/minus5.svg";
21
- import PlusIcon__default from "../../../../../../assets/plus6.svg";
20
+ import MinusIcon__default from "../../../../../../assets/minus4.svg";
21
+ import PlusIcon__default from "../../../../../../assets/plus5.svg";
22
22
  "use strict";
23
23
  const PoeConsumerSelectModal = ({
24
24
  isOpen,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var MinusIcon = require("../../../../../../assets/minus5.svg");
6
+ var MinusIcon = require("../../../../../../assets/minus4.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/minus5.svg";
2
- export { default } from "../../../../../../assets/minus5.svg";
1
+ export * from "../../../../../../assets/minus4.svg";
2
+ export { default } from "../../../../../../assets/minus4.svg";
3
3
  //# sourceMappingURL=minus.svg.mjs.map
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var PlusIcon = require("../../../../../../assets/plus6.svg");
6
+ var PlusIcon = require("../../../../../../assets/plus5.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/plus6.svg";
2
- export { default } from "../../../../../../assets/plus6.svg";
1
+ export * from "../../../../../../assets/plus5.svg";
2
+ export { default } from "../../../../../../assets/plus5.svg";
3
3
  //# sourceMappingURL=plus.svg.mjs.map
@@ -1,2 +1 @@
1
1
  export * from "./proStoreCategories";
2
- export * from "./product";
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var proStoreCategories = require('./proStoreCategories.js');
4
- var product = require('./product.js');
5
4
  "use strict";
6
5
  exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
7
6
  exports.getLocalizedCategories = proStoreCategories.getLocalizedCategories;
@@ -11,15 +10,4 @@ exports.getSubCategoryIdByCollectionSlug = proStoreCategories.getSubCategoryIdBy
11
10
  exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
12
11
  exports.parseCategories = proStoreCategories.parseCategories;
13
12
  exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
14
- exports.COLLECTION_SECTION_OTHER_ID = product.COLLECTION_SECTION_OTHER_ID;
15
- exports.HDDProductSlugs = product.HDDProductSlugs;
16
- exports.MagicCollectionTags = product.MagicCollectionTags;
17
- exports.ProductOptions = product.ProductOptions;
18
- exports.createSectionHierarchy = product.createSectionHierarchy;
19
- exports.getProStoreCategory = product.getProStoreCategory;
20
- exports.getProductGroups = product.getProductGroups;
21
- exports.getStoreProducts = product.getStoreProducts;
22
- exports.isNonNullish = product.isNonNullish;
23
- exports.removeExcludedProducts = product.removeExcludedProducts;
24
- exports.sortCollections = product.sortCollections;
25
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1,4 +1,3 @@
1
1
  export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from './proStoreCategories.mjs';
2
- export { COLLECTION_SECTION_OTHER_ID, HDDProductSlugs, MagicCollectionTags, ProductOptions, createSectionHierarchy, getProStoreCategory, getProductGroups, getStoreProducts, isNonNullish, removeExcludedProducts, sortCollections } from './product.mjs';
3
2
  "use strict";
4
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -3,4 +3,3 @@ export * from "./constants";
3
3
  export * from "./generated";
4
4
  export * from "./object";
5
5
  export * from "./utils";
6
- export * from "./product";
@@ -5,7 +5,6 @@ var constants = require('./constants.js');
5
5
  var generated = require('./generated.js');
6
6
  require('./object.js');
7
7
  require('./utils.js');
8
- var product = require('./product.js');
9
8
  "use strict";
10
9
  exports.AddressUsageType = constants.AddressUsageType;
11
10
  exports.Language = constants.Language;
@@ -19,5 +18,4 @@ exports.Unit = generated.Unit;
19
18
  exports.UnitSystem = generated.UnitSystem;
20
19
  exports.UserAssignedCountryCode = generated.UserAssignedCountryCode;
21
20
  exports.ValidateTaxStatus = generated.ValidateTaxStatus;
22
- exports.DisplayProductStatus = product.DisplayProductStatus;
23
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -3,6 +3,5 @@ export { AddressUsageType, Language } from './constants.mjs';
3
3
  export { AddressType, CountryCode, Currency, GlobalStoreId, ProductLine, StoreId, Unit, UnitSystem, UserAssignedCountryCode, ValidateTaxStatus } from './generated.mjs';
4
4
  import './object.mjs';
5
5
  import './utils.mjs';
6
- export { DisplayProductStatus } from './product.mjs';
7
6
  "use strict";
8
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -28,7 +28,3 @@ export declare const arraySafeIndexFind: <T>(array: T[], index: number) => T | u
28
28
  * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts
29
29
  */
30
30
  export declare const normalizeSortResult: (sortResult: number) => number;
31
- /**
32
- * Combine multiple sort functions into one
33
- */
34
- export declare const combineSorts: <T>(sorts: ((a: T, b: T) => number)[]) => ((a: T, b: T) => number);
@@ -24,19 +24,9 @@ const arraySafeIndexFind = (array, index) => {
24
24
  return array[safeIndex];
25
25
  };
26
26
  const normalizeSortResult = sortResult => number.clamp(sortResult, -1, 1);
27
- const combineSorts = sorts => (a, b) => {
28
- for (const sort of sorts) {
29
- const result = sort(a, b);
30
- if (result !== 0) {
31
- return result;
32
- }
33
- }
34
- return 0;
35
- };
36
27
  exports.areEqualArrays = areEqualArrays;
37
28
  exports.arraySafeIndex = arraySafeIndex;
38
29
  exports.arraySafeIndexFind = arraySafeIndexFind;
39
- exports.combineSorts = combineSorts;
40
30
  exports.dedupe = dedupe;
41
31
  exports.ensureArray = ensureArray;
42
32
  exports.normalizeSortResult = normalizeSortResult;
@@ -1 +1 @@
1
- {"version":3,"file":"array.js","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n\n/**\n * Combine multiple sort functions into one\n */\nexport const combineSorts =\n <T>(sorts: ((a: T, b: T) => number)[]): ((a: T, b: T) => number) =>\n (a, b) => {\n for (const sort of sorts) {\n const result = sort(a, b);\n\n if (result !== 0) {\n return result;\n }\n }\n\n return 0;\n };\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp","combineSorts","sorts","sort","result"],"mappings":";;;;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,MAAAA,CAAAA,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA;AAKlB,MAAME,YACX,GAAIC,KACJ,IAAA,CAAChB,GAAGC,CAAM,KAAA;EACR,KAAA,MAAWgB,QAAQD,KAAO,EAAA;IAClB,MAAAE,MAAA,GAASD,IAAK,CAAAjB,CAAA,EAAGC,CAAC,CAAA;IAExB,IAAIiB,WAAW,CAAG,EAAA;MACT,OAAAA,MAAA;IACT;EACF;EAEO,OAAA,CAAA;AACT,CAAA;;;;;;;"}
1
+ {"version":3,"file":"array.js","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp"],"mappings":";;;;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,MAAAA,CAAAA,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA;;;;;;"}
@@ -22,14 +22,5 @@ const arraySafeIndexFind = (array, index) => {
22
22
  return array[safeIndex];
23
23
  };
24
24
  const normalizeSortResult = sortResult => clamp(sortResult, -1, 1);
25
- const combineSorts = sorts => (a, b) => {
26
- for (const sort of sorts) {
27
- const result = sort(a, b);
28
- if (result !== 0) {
29
- return result;
30
- }
31
- }
32
- return 0;
33
- };
34
- export { areEqualArrays, arraySafeIndex, arraySafeIndexFind, combineSorts, dedupe, ensureArray, normalizeSortResult };
25
+ export { areEqualArrays, arraySafeIndex, arraySafeIndexFind, dedupe, ensureArray, normalizeSortResult };
35
26
  //# sourceMappingURL=array.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"array.mjs","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n\n/**\n * Combine multiple sort functions into one\n */\nexport const combineSorts =\n <T>(sorts: ((a: T, b: T) => number)[]): ((a: T, b: T) => number) =>\n (a, b) => {\n for (const sort of sorts) {\n const result = sort(a, b);\n\n if (result !== 0) {\n return result;\n }\n }\n\n return 0;\n };\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp","combineSorts","sorts","sort","result"],"mappings":";;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA;AAKlB,MAAME,YACX,GAAIC,KACJ,IAAA,CAAChB,GAAGC,CAAM,KAAA;EACR,KAAA,MAAWgB,QAAQD,KAAO,EAAA;IAClB,MAAAE,MAAA,GAASD,IAAK,CAAAjB,CAAA,EAAGC,CAAC,CAAA;IAExB,IAAIiB,WAAW,CAAG,EAAA;MACT,OAAAA,MAAA;IACT;EACF;EAEO,OAAA,CAAA;AACT,CAAA;"}
1
+ {"version":3,"file":"array.mjs","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp"],"mappings":";;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubnt/store.core",
3
- "version": "9.10.0-konutis.1",
3
+ "version": "9.10.0",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "scripts": {
@@ -1,96 +0,0 @@
1
- import type { ParsedCategoryItem } from "../constants/proStoreCategories";
2
- import type { CollectionSection, MappedProductSection, Nullish, ProductTagFragment, Section, StorefrontOption, StorefrontProduct, StoreId } from "../types";
3
- export declare const isNonNullish: <T>(entry: T | null | undefined) => entry is T;
4
- /**
5
- * Sorts collections based on the mapping.
6
- * @param currentSort - mapping of collection slugs to their sort order
7
- */
8
- export declare const sortCollections: (collectionSlugs: string[]) => (a: {
9
- slug: string;
10
- }, b: {
11
- slug: string;
12
- }) => number;
13
- /**
14
- * Removes products that have tag starting with `EXCLUDE_PRODUCT_FROM_STORE_GRID_TAG_PREFIX`
15
- * and ends with `storeId`, e.g. `"exclude-from-store-grid:us`
16
- *
17
- * @warning Use this function only on grid and breadcrumbs products
18
- */
19
- export declare const removeExcludedProducts: <T extends {
20
- tags: ProductTagFragment[];
21
- }>(products: T[], storeId: StoreId) => T[];
22
- export declare enum HDDProductSlugs {
23
- HDD_1TB = "uacc-hdd-s-1tb",
24
- HDD_8TB_Enterprise = "uacc-hdd-e-8tb",
25
- HDD_16TB_Enterprise = "uacc-hdd-e-16tb"
26
- }
27
- /**
28
- * Recursively create section hierarchy
29
- */
30
- export declare const createSectionHierarchy: (sections: CollectionSection[], level?: number) => Section[];
31
- export declare enum MagicCollectionTags {
32
- /**
33
- * Used to determine if collection should be shown in an accessory
34
- * layout style where sections are placed inside variant cards
35
- */
36
- LayoutAccessories = "layout-accessories",
37
- /**
38
- * Used to determine if collection is pro-store specific and should
39
- * be redirected to pro-store's appropriate category
40
- */
41
- ProStore = "pro-store",
42
- /**
43
- * Used to disable length options (disable product splitting by "length")
44
- */
45
- DisableLengthOptions = "disable-length-options",
46
- /**
47
- * Used to disable speed options (disable product splitting by "speed")
48
- */
49
- DisableSpeedOptions = "disable-speed-options"
50
- }
51
- export declare enum ProductOptions {
52
- Length = "length",
53
- Speed = "speed",
54
- Color = "color"
55
- }
56
- export declare const COLLECTION_SECTION_OTHER_ID = "other";
57
- /**
58
- * Create product groups
59
- */
60
- export declare const getProductGroups: <T extends StorefrontProduct & {
61
- options: StorefrontOption[];
62
- }>(products?: T[], sectionHierarchy?: Nullish<Section[]>, tags?: Array<{
63
- id: string;
64
- name: string;
65
- }>) => MappedProductSection<T>[] | undefined;
66
- export declare const getProStoreCategory: ({ queryCategory, product, ignoreQuery, }: {
67
- queryCategory?: string;
68
- product: Pick<StorefrontProduct, "collectionSlug" | "organizationalCollectionSlug" | "proCollectionSlug">;
69
- ignoreQuery?: boolean;
70
- }) => string | null;
71
- type StoreProductsData = {
72
- category: {
73
- id: string;
74
- label: string | null;
75
- } | undefined;
76
- } & {
77
- products: StorefrontProduct[];
78
- } | {
79
- productGroups: MappedProductSection<StorefrontProduct>[];
80
- };
81
- export declare const getStoreProducts: ({ storeId, queryCategory, currentProduct, collections, allCategoryItems, }: {
82
- storeId: StoreId;
83
- queryCategory: string | undefined;
84
- currentProduct: Pick<StorefrontProduct, "id" | "slug" | "collectionSlug" | "organizationalCollectionSlug" | "proCollectionSlug">;
85
- collections: Array<{
86
- slug: string;
87
- sections: Array<{
88
- id: string;
89
- title: string;
90
- productTags: Array<string>;
91
- }>;
92
- products: Array<Pick<StorefrontProduct, "id" | "slug" | "tags" | "variants" | "options" | "title" | "status" | "minDisplayPrice">>;
93
- }>;
94
- allCategoryItems: ParsedCategoryItem[];
95
- }) => StoreProductsData;
96
- export {};