@simplybusiness/mobius 6.5.4 → 6.6.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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/index.js +8 -1
- package/dist/esm/index.js +8 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/components/Trust/constants.d.ts +4 -0
- package/package.json +23 -23
- package/src/components/Trust/Trust.tsx +4 -1
- package/src/components/Trust/constants.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 6.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9f8eaf1: Display hotel specific stop page when hotel trade customers complete their quote journey
|
|
8
|
+
|
|
9
|
+
## 6.5.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- c488680: Upgrade dependencies to latest versions
|
|
14
|
+
|
|
3
15
|
## 6.5.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -4476,6 +4476,12 @@ var import_react81 = require("react");
|
|
|
4476
4476
|
// src/components/Trust/constants.ts
|
|
4477
4477
|
var REQUIRED_TRUSTPILOT_CLASS_NAME = "trustpilot-widget";
|
|
4478
4478
|
var SIMPLYBUSINESS_UNIT_ID = "5ca35a3da72b330001954cef";
|
|
4479
|
+
var SIMPLYBUSINESS_UNIT_IDS = {
|
|
4480
|
+
"en-US": "5ca35a3da72b330001954cef",
|
|
4481
|
+
// US business unit ID
|
|
4482
|
+
"en-GB": "56b1db010000ff0005887125"
|
|
4483
|
+
// UK business unit ID
|
|
4484
|
+
};
|
|
4479
4485
|
var TRUSTPILOT_LINKS = {
|
|
4480
4486
|
"en-US": "https://www.trustpilot.com/review/simplybusiness.com",
|
|
4481
4487
|
"en-GB": "https://www.trustpilot.com/review/simplybusiness.co.uk"
|
|
@@ -4549,8 +4555,9 @@ var Trust = (0, import_react81.forwardRef)((props, ref) => {
|
|
|
4549
4555
|
styles
|
|
4550
4556
|
} = TRUSTPILOT_WIDGET[variant];
|
|
4551
4557
|
const link = TRUSTPILOT_LINKS[locale];
|
|
4558
|
+
const businessUnitId = SIMPLYBUSINESS_UNIT_IDS[locale] || SIMPLYBUSINESS_UNIT_ID;
|
|
4552
4559
|
const dataProps = {
|
|
4553
|
-
"data-businessunit-id":
|
|
4560
|
+
"data-businessunit-id": businessUnitId,
|
|
4554
4561
|
"data-locale": locale,
|
|
4555
4562
|
"data-template-id": templateId,
|
|
4556
4563
|
"data-theme": theme,
|
package/dist/esm/index.js
CHANGED
|
@@ -4407,6 +4407,12 @@ import { forwardRef as forwardRef55, useEffect as useEffect24, useRef as useRef1
|
|
|
4407
4407
|
// src/components/Trust/constants.ts
|
|
4408
4408
|
var REQUIRED_TRUSTPILOT_CLASS_NAME = "trustpilot-widget";
|
|
4409
4409
|
var SIMPLYBUSINESS_UNIT_ID = "5ca35a3da72b330001954cef";
|
|
4410
|
+
var SIMPLYBUSINESS_UNIT_IDS = {
|
|
4411
|
+
"en-US": "5ca35a3da72b330001954cef",
|
|
4412
|
+
// US business unit ID
|
|
4413
|
+
"en-GB": "56b1db010000ff0005887125"
|
|
4414
|
+
// UK business unit ID
|
|
4415
|
+
};
|
|
4410
4416
|
var TRUSTPILOT_LINKS = {
|
|
4411
4417
|
"en-US": "https://www.trustpilot.com/review/simplybusiness.com",
|
|
4412
4418
|
"en-GB": "https://www.trustpilot.com/review/simplybusiness.co.uk"
|
|
@@ -4480,8 +4486,9 @@ var Trust = forwardRef55((props, ref) => {
|
|
|
4480
4486
|
styles
|
|
4481
4487
|
} = TRUSTPILOT_WIDGET[variant];
|
|
4482
4488
|
const link = TRUSTPILOT_LINKS[locale];
|
|
4489
|
+
const businessUnitId = SIMPLYBUSINESS_UNIT_IDS[locale] || SIMPLYBUSINESS_UNIT_ID;
|
|
4483
4490
|
const dataProps = {
|
|
4484
|
-
"data-businessunit-id":
|
|
4491
|
+
"data-businessunit-id": businessUnitId,
|
|
4485
4492
|
"data-locale": locale,
|
|
4486
4493
|
"data-template-id": templateId,
|
|
4487
4494
|
"data-theme": theme,
|