tf-checkout-react 1.6.6-beta.16 → 1.6.6-beta.18
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/components/addonsContainer/index.d.ts +1 -1
- package/dist/tf-checkout-react.cjs.development.js +7 -7
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +7 -7
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/api/index.ts +1 -1
- package/src/components/addonsContainer/index.tsx +4 -4
- package/src/components/billing-info-container/index.tsx +70 -71
- package/src/components/common/CheckboxField/index.tsx +1 -1
- package/src/components/paymentContainer/index.tsx +1 -1
|
@@ -12,7 +12,7 @@ export interface IAddonContainterProps {
|
|
|
12
12
|
onCountdownFinish?: () => void;
|
|
13
13
|
onPendingVerification?: () => void;
|
|
14
14
|
samePage?: boolean;
|
|
15
|
-
descriptionTrigger?: "click" | "hover";
|
|
15
|
+
descriptionTrigger?: "click" | "hover" | "always";
|
|
16
16
|
}
|
|
17
17
|
export interface ObjectLiteral {
|
|
18
18
|
[key: string]: any;
|
|
@@ -1709,7 +1709,7 @@ var getCustomFields = /*#__PURE__*/function () {
|
|
|
1709
1709
|
while (1) switch (_context3.prev = _context3.next) {
|
|
1710
1710
|
case 0:
|
|
1711
1711
|
_context3.next = 2;
|
|
1712
|
-
return publicRequest.get("/v1/event/" + eventId + "/
|
|
1712
|
+
return publicRequest.get("/v1/event/" + eventId + "/custom_fields");
|
|
1713
1713
|
case 2:
|
|
1714
1714
|
response = _context3.sent;
|
|
1715
1715
|
customFields = _get(response, 'data.data.attributes', []);
|
|
@@ -2530,7 +2530,7 @@ var CheckboxField = function CheckboxField(_ref) {
|
|
|
2530
2530
|
error: hasError
|
|
2531
2531
|
}, React__default.createElement(FormGroup, null, React__default.createElement(FormControlLabel, {
|
|
2532
2532
|
control: React__default.createElement(Checkbox$1, Object.assign({}, field, {
|
|
2533
|
-
checked: field.value
|
|
2533
|
+
checked: Boolean(field.value)
|
|
2534
2534
|
})),
|
|
2535
2535
|
label: label,
|
|
2536
2536
|
componentsProps: {
|
|
@@ -3588,7 +3588,7 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
3588
3588
|
className: classNamePrefix + "_product_info_block"
|
|
3589
3589
|
}, React__default.createElement("div", {
|
|
3590
3590
|
className: classNamePrefix + "_product_title"
|
|
3591
|
-
}, addon.name, addon.description && React__default.createElement(React__default.Fragment, null, React__default.createElement("span", {
|
|
3591
|
+
}, addon.name, addon.description && descriptionTrigger !== 'always' && React__default.createElement(React__default.Fragment, null, React__default.createElement("span", {
|
|
3592
3592
|
"aria-hidden": true,
|
|
3593
3593
|
className: "info-icon",
|
|
3594
3594
|
onClick: descriptionTrigger === 'click' ? function () {
|
|
@@ -3616,9 +3616,9 @@ var AddonsContainter = function AddonsContainter(_ref) {
|
|
|
3616
3616
|
className: classNamePrefix + "_product_price"
|
|
3617
3617
|
}, CONFIGS.FEES_STYLE === FEES_STYLES.TRADITIONAL ? addonNormalizedPrice : addOnNormalizedCost, !isAddonFree && CONFIGS.FEES_STYLE === FEES_STYLES.TRADITIONAL && React__default.createElement("span", {
|
|
3618
3618
|
className: classNamePrefix + "_product_fee"
|
|
3619
|
-
},
|
|
3619
|
+
}, addon.feeIncluded ? '(incl. Fees)' : '(excl. Fees)'), !isAddonFree && CONFIGS.FEES_STYLE === FEES_STYLES.DISPLAY_BOTH && React__default.createElement(React__default.Fragment, null, React__default.createElement("span", {
|
|
3620
3620
|
className: classNamePrefix + "_product_fee"
|
|
3621
|
-
}, "(" + addonNormalizedPrice + " with fees)")))), visibleDescription === addon.id && React__default.createElement("div", {
|
|
3621
|
+
}, "(" + addonNormalizedPrice + " with fees)")))), (visibleDescription === addon.id || descriptionTrigger === 'always') && React__default.createElement("div", {
|
|
3622
3622
|
className: classNamePrefix + "_product_desc",
|
|
3623
3623
|
dangerouslySetInnerHTML: createMarkup(addon.description)
|
|
3624
3624
|
}), React__default.createElement("div", {
|
|
@@ -5046,7 +5046,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
|
|
|
5046
5046
|
initialValues: getInitialValues(dataWithUniqueIds, _extends({
|
|
5047
5047
|
country: initialCountry,
|
|
5048
5048
|
state: _get(userData, 'stateId', '') || '1',
|
|
5049
|
-
brand_opt_in: optedInFieldValue,
|
|
5049
|
+
brand_opt_in: Boolean(optedInFieldValue),
|
|
5050
5050
|
ttf_opt_in: ttfOptIn,
|
|
5051
5051
|
data_capture: {
|
|
5052
5052
|
instagram: _get(extraData, 'data_capture.instagram', ''),
|
|
@@ -6233,7 +6233,7 @@ var PaymentContainer = function PaymentContainer(_ref) {
|
|
|
6233
6233
|
label: 'Add-ons',
|
|
6234
6234
|
id: 'add_ons'
|
|
6235
6235
|
}, {
|
|
6236
|
-
label: 'Total (
|
|
6236
|
+
label: 'Total (incl. fees, card processing and taxes)',
|
|
6237
6237
|
id: 'total',
|
|
6238
6238
|
normalizer: function normalizer(value, currency) {
|
|
6239
6239
|
return currencyNormalizerCreator(createFixedFloatNormalizer(2)(parseFloat(value)), currency);
|