@repobit/dex-store-elements 1.4.5 → 1.4.7
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
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.4.7](https://github.com/bitdefender/dex-core/compare/@repobit/dex-store-elements@1.4.6...@repobit/dex-store-elements@1.4.7) (2026-05-04)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **DEX-27259:** move peer dep to dependecies
|
|
11
|
+
* **DEX-27259:** sync all packages
|
|
12
|
+
* **DEX-27259:** update internal workspace dependencies
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [1.4.6](https://github.com/bitdefender/dex-core/compare/@repobit/dex-store-elements@1.4.5...@repobit/dex-store-elements@1.4.6) (2026-03-20)
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **DEX-26811:** display full price as fallback for discounted price
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.4.5](https://github.com/bitdefender/dex-core/compare/@repobit/dex-store-elements@1.4.4...@repobit/dex-store-elements@1.4.5) (2026-03-19)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @repobit/dex-store-elements
|
|
@@ -14,8 +14,8 @@ export const handleBuyLink = (el, ctx) => {
|
|
|
14
14
|
const fullPrice = option.getPrice({ currency: false });
|
|
15
15
|
link.href = option.getBuyLink();
|
|
16
16
|
link.dataset.product = product.getId();
|
|
17
|
-
link.dataset.buyPrice = discountedPrice
|
|
18
|
-
link.dataset.oldPrice =
|
|
17
|
+
link.dataset.buyPrice = discountedPrice ? String(discountedPrice) : String(fullPrice);
|
|
18
|
+
link.dataset.oldPrice = String(fullPrice);
|
|
19
19
|
link.dataset.currency = product.getCurrency();
|
|
20
20
|
link.dataset.variation = `${option.getDevices()}u-${option.getSubscription()}m`;
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buyLink.js","sourceRoot":"","sources":["../../../../src/renders/attributes/buyLink.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAe,EAAE,GAAmB,EAAE,EAAE;IACpE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC;IACpC,IAAI,YAAY,KAAK,SAAS;QAAE,OAAO;IACvC,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAC1B,IAAI,CAAC,MAAM;QAAE,OAAO;IAEpB,MAAM,IAAI,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAC/B,IAAI,CAAC,IAAI;QAAE,OAAO;IAElB,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;IACpC,MAAM,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IACvE,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAEvD,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;IAChC,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IACvC,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,eAAe,
|
|
1
|
+
{"version":3,"file":"buyLink.js","sourceRoot":"","sources":["../../../../src/renders/attributes/buyLink.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAe,EAAE,GAAmB,EAAE,EAAE;IACpE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC;IACpC,IAAI,YAAY,KAAK,SAAS;QAAE,OAAO;IACvC,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAC1B,IAAI,CAAC,MAAM;QAAE,OAAO;IAEpB,MAAM,IAAI,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAC/B,IAAI,CAAC,IAAI;QAAE,OAAO;IAElB,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;IACpC,MAAM,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IACvE,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAEvD,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;IAChC,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IACvC,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACtF,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IAC1C,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAC9C,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,GAAG,MAAM,CAAC,UAAU,EAAE,KAAK,MAAM,CAAC,eAAe,EAAE,GAAG,CAAC;AAClF,CAAC,CAAC","sourcesContent":["import type { UnifiedContext } from '../context';\nimport { resolveAnchor } from './utilty';\n\nexport const handleBuyLink = (el: HTMLElement, ctx: UnifiedContext) => {\n const { storeBuyLink } = el.dataset;\n if (storeBuyLink === undefined) return;\n const option = ctx.option;\n if (!option) return;\n\n const link = resolveAnchor(el);\n if (!link) return;\n\n const product = option.getProduct();\n const discountedPrice = option.getDiscountedPrice({ currency: false });\n const fullPrice = option.getPrice({ currency: false });\n\n link.href = option.getBuyLink();\n link.dataset.product = product.getId();\n link.dataset.buyPrice = discountedPrice ? String(discountedPrice) : String(fullPrice);\n link.dataset.oldPrice = String(fullPrice);\n link.dataset.currency = product.getCurrency();\n link.dataset.variation = `${option.getDevices()}u-${option.getSubscription()}m`;\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobit/dex-store-elements",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"description": "HTML elements layer for pricings",
|
|
5
5
|
"author": "Buga Adrian Alexandru <abuga@bitdefender.com>",
|
|
6
6
|
"homepage": "https://github.com/bitdefender/dex-core#readme",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"lit": "^3.3.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@repobit/dex-store": "^1.3.10",
|
|
50
49
|
"deepmerge": "^4.3.1",
|
|
51
50
|
"lit": "^3.0.0"
|
|
52
51
|
},
|
|
53
52
|
"dependencies": {
|
|
54
53
|
"@lit/context": "^1.1.6",
|
|
55
54
|
"@lit/task": "^1.0.3",
|
|
55
|
+
"@repobit/dex-store": "1.3.15",
|
|
56
56
|
"eta": "^4.5.1",
|
|
57
57
|
"nanomorph": "^5.4.3"
|
|
58
58
|
},
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "1de08b3f76a15755f3776728a8305dda06ec3173"
|
|
67
67
|
}
|