@rebilly/framepay-react 13.77.0 → 13.78.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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [13.77.0](https://github.com/Rebilly/rebilly/compare/framepay-react-v13.76.0...framepay-react-v13.77.0) (2026-03-20)
1
+ ## [13.78.1](https://github.com/Rebilly/rebilly/compare/framepay-react-v13.78.0...framepay-react-v13.78.1) (2026-03-25)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#19875](https://github.com/Rebilly/rebilly/issues/19875)) ([472852d](https://github.com/Rebilly/rebilly/commit/472852d8ac9f7e9f544656798084bfd89e532f07))
6
+ * **frontend:** prettier configuration overriding quotes rule ([#19960](https://github.com/Rebilly/rebilly/issues/19960)) ([ecd36e7](https://github.com/Rebilly/rebilly/commit/ecd36e76cf3be1ffd0404566cb9cade3b18b795b))
@@ -34,7 +34,7 @@ var ApplePayElement = /** @class */ (function (_super) {
34
34
  if (!_this.elementNode) {
35
35
  throw (0, framepay_error_1.default)({
36
36
  code: framepay_error_1.default.codes.elementMountError,
37
- details: "ApplePayElement invalid elementNode",
37
+ details: 'ApplePayElement invalid elementNode',
38
38
  });
39
39
  }
40
40
  try {
@@ -43,7 +43,7 @@ var ApplePayElement = /** @class */ (function (_super) {
43
43
  catch (e) {
44
44
  throw (0, framepay_error_1.default)({
45
45
  code: framepay_error_1.default.codes.elementMountError,
46
- details: "ApplePayElement error in remote api call",
46
+ details: 'ApplePayElement error in remote api call',
47
47
  trace: e,
48
48
  });
49
49
  }
@@ -74,7 +74,7 @@ var BaseElement = /** @class */ (function (_super) {
74
74
  }
75
75
  BaseElement.prototype.componentWillUnmount = function () {
76
76
  if (this.state.mounted && !this.state.element) {
77
- console.warn("WARNING Element does not exist, please fix the setupElement method and add setState({element})");
77
+ console.warn('WARNING Element does not exist, please fix the setupElement method and add setState({element})');
78
78
  return;
79
79
  }
80
80
  if (this.state.element) {
@@ -85,7 +85,7 @@ var BaseElement = /** @class */ (function (_super) {
85
85
  this.handleSetupElement();
86
86
  };
87
87
  BaseElement.prototype.setupElement = function () {
88
- throw new Error("Please implement method setupElement");
88
+ throw new Error('Please implement method setupElement');
89
89
  };
90
90
  BaseElement.prototype.handleSetupElement = function () {
91
91
  if (!this.props.Framepay.ready) {
@@ -34,7 +34,7 @@ var GooglePayElement = /** @class */ (function (_super) {
34
34
  if (!_this.elementNode) {
35
35
  throw (0, framepay_error_1.default)({
36
36
  code: framepay_error_1.default.codes.elementMountError,
37
- details: "GooglePayElement invalid elementNode",
37
+ details: 'GooglePayElement invalid elementNode',
38
38
  });
39
39
  }
40
40
  try {
@@ -43,7 +43,7 @@ var GooglePayElement = /** @class */ (function (_super) {
43
43
  catch (e) {
44
44
  throw (0, framepay_error_1.default)({
45
45
  code: framepay_error_1.default.codes.elementMountError,
46
- details: "GooglePayElement error in remote api call",
46
+ details: 'GooglePayElement error in remote api call',
47
47
  trace: e,
48
48
  });
49
49
  }
@@ -34,7 +34,7 @@ var PaypalElement = /** @class */ (function (_super) {
34
34
  if (!_this.elementNode) {
35
35
  throw (0, framepay_error_1.default)({
36
36
  code: framepay_error_1.default.codes.elementMountError,
37
- details: "PaypalElement invalid elementNode",
37
+ details: 'PaypalElement invalid elementNode',
38
38
  });
39
39
  }
40
40
  try {
@@ -43,7 +43,7 @@ var PaypalElement = /** @class */ (function (_super) {
43
43
  catch (e) {
44
44
  throw (0, framepay_error_1.default)({
45
45
  code: framepay_error_1.default.codes.elementMountError,
46
- details: "PaypalElement error in remote api call",
46
+ details: 'PaypalElement error in remote api call',
47
47
  trace: e,
48
48
  });
49
49
  }
@@ -34,7 +34,7 @@ var SamsungPayElement = /** @class */ (function (_super) {
34
34
  if (!_this.elementNode) {
35
35
  throw (0, framepay_error_1.default)({
36
36
  code: framepay_error_1.default.codes.elementMountError,
37
- details: "SamsungPayElement invalid elementNode",
37
+ details: 'SamsungPayElement invalid elementNode',
38
38
  });
39
39
  }
40
40
  try {
@@ -43,7 +43,7 @@ var SamsungPayElement = /** @class */ (function (_super) {
43
43
  catch (e) {
44
44
  throw (0, framepay_error_1.default)({
45
45
  code: framepay_error_1.default.codes.elementMountError,
46
- details: "SamsungPayElement error in remote api call",
46
+ details: 'SamsungPayElement error in remote api call',
47
47
  trace: e,
48
48
  });
49
49
  }
@@ -291,7 +291,7 @@ var elementsFabric = function (type) {
291
291
  /**
292
292
  * Throw the error by default.
293
293
  */
294
- throw new Error("Invalid PaymentMethod type, see PaymentMethodTypes declaration");
294
+ throw new Error('Invalid PaymentMethod type, see PaymentMethodTypes declaration');
295
295
  };
296
296
  function withFramePay(WrappedComponent) {
297
297
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/framepay-react",
3
- "version": "13.77.0",
3
+ "version": "13.78.1",
4
4
  "description": "A React wrapper for Rebilly's FramePay offering out-of-the-box support for Redux and other common React features",
5
5
  "main": "build/index.js",
6
6
  "author": "Rebilly",
@@ -16,7 +16,7 @@ export default class ApplePayElement extends BaseElement<
16
16
  if (!this.elementNode) {
17
17
  throw FramePayError({
18
18
  code: FramePayError.codes.elementMountError,
19
- details: `ApplePayElement invalid elementNode`,
19
+ details: 'ApplePayElement invalid elementNode',
20
20
  });
21
21
  }
22
22
 
@@ -25,7 +25,7 @@ export default class ApplePayElement extends BaseElement<
25
25
  } catch (e) {
26
26
  throw FramePayError({
27
27
  code: FramePayError.codes.elementMountError,
28
- details: `ApplePayElement error in remote api call`,
28
+ details: 'ApplePayElement error in remote api call',
29
29
  trace: e,
30
30
  });
31
31
  }
@@ -91,7 +91,7 @@ describe('BankElement', () => {
91
91
  const { container } = render(
92
92
  <BankElement {...props} Framepay={props.Framepay} />,
93
93
  );
94
- expect(container.firstChild).toMatchInlineSnapshot(`<div />`);
94
+ expect(container.firstChild).toMatchInlineSnapshot('<div />');
95
95
  });
96
96
 
97
97
  it('should fail the element mount on remote error', () => {
@@ -19,7 +19,7 @@ export default class BaseElement<
19
19
  componentWillUnmount() {
20
20
  if (this.state.mounted && !this.state.element) {
21
21
  console.warn(
22
- `WARNING Element does not exist, please fix the setupElement method and add setState({element})`,
22
+ 'WARNING Element does not exist, please fix the setupElement method and add setState({element})',
23
23
  );
24
24
  return;
25
25
  }
@@ -33,7 +33,7 @@ export default class BaseElement<
33
33
  }
34
34
 
35
35
  setupElement() {
36
- throw new Error(`Please implement method setupElement`);
36
+ throw new Error('Please implement method setupElement');
37
37
  }
38
38
 
39
39
  handleSetupElement() {
@@ -55,7 +55,7 @@ describe('CardElement', () => {
55
55
  const { container } = render(
56
56
  <CardElement {...props} Framepay={props.Framepay} />,
57
57
  );
58
- expect(container.firstChild).toMatchInlineSnapshot(`<div />`);
58
+ expect(container.firstChild).toMatchInlineSnapshot('<div />');
59
59
  });
60
60
 
61
61
  it('should destroy the element on component unmount', (done) => {
@@ -19,7 +19,7 @@ export default class GooglePayElement extends BaseElement<
19
19
  if (!this.elementNode) {
20
20
  throw FramePayError({
21
21
  code: FramePayError.codes.elementMountError,
22
- details: `GooglePayElement invalid elementNode`,
22
+ details: 'GooglePayElement invalid elementNode',
23
23
  });
24
24
  }
25
25
 
@@ -28,7 +28,7 @@ export default class GooglePayElement extends BaseElement<
28
28
  } catch (e) {
29
29
  throw FramePayError({
30
30
  code: FramePayError.codes.elementMountError,
31
- details: `GooglePayElement error in remote api call`,
31
+ details: 'GooglePayElement error in remote api call',
32
32
  trace: e,
33
33
  });
34
34
  }
@@ -46,7 +46,7 @@ describe('IBANElement', () => {
46
46
  const { container } = render(
47
47
  <IBANElement {...props} Framepay={props.Framepay} />,
48
48
  );
49
- expect(container.firstChild).toMatchInlineSnapshot(`<div />`);
49
+ expect(container.firstChild).toMatchInlineSnapshot('<div />');
50
50
  });
51
51
 
52
52
  it('should destroy the element on component unmount', (done) => {
@@ -16,7 +16,7 @@ export default class PaypalElement extends BaseElement<
16
16
  if (!this.elementNode) {
17
17
  throw FramePayError({
18
18
  code: FramePayError.codes.elementMountError,
19
- details: `PaypalElement invalid elementNode`,
19
+ details: 'PaypalElement invalid elementNode',
20
20
  });
21
21
  }
22
22
 
@@ -25,7 +25,7 @@ export default class PaypalElement extends BaseElement<
25
25
  } catch (e) {
26
26
  throw FramePayError({
27
27
  code: FramePayError.codes.elementMountError,
28
- details: `PaypalElement error in remote api call`,
28
+ details: 'PaypalElement error in remote api call',
29
29
  trace: e,
30
30
  });
31
31
  }
@@ -19,7 +19,7 @@ export default class SamsungPayElement extends BaseElement<
19
19
  if (!this.elementNode) {
20
20
  throw FramePayError({
21
21
  code: FramePayError.codes.elementMountError,
22
- details: `SamsungPayElement invalid elementNode`,
22
+ details: 'SamsungPayElement invalid elementNode',
23
23
  });
24
24
  }
25
25
 
@@ -28,7 +28,7 @@ export default class SamsungPayElement extends BaseElement<
28
28
  } catch (e) {
29
29
  throw FramePayError({
30
30
  code: FramePayError.codes.elementMountError,
31
- details: `SamsungPayElement error in remote api call`,
31
+ details: 'SamsungPayElement error in remote api call',
32
32
  trace: e,
33
33
  });
34
34
  }
@@ -324,7 +324,7 @@ const elementsFabric = (
324
324
  * Throw the error by default.
325
325
  */
326
326
  throw new Error(
327
- `Invalid PaymentMethod type, see PaymentMethodTypes declaration`,
327
+ 'Invalid PaymentMethod type, see PaymentMethodTypes declaration',
328
328
  );
329
329
  };
330
330
 
@@ -6,7 +6,7 @@ import server from './server.mjs';
6
6
 
7
7
  (async function() {
8
8
  const { app } = await server();
9
- app.use(`/`, (req, res) => {
9
+ app.use('/', (req, res) => {
10
10
  res.redirect('/checkout-combined');
11
11
  });
12
12
  })();
@@ -47,7 +47,7 @@ function restoreFiles() {
47
47
  }
48
48
 
49
49
  if (clean) {
50
- console.log(`>>> CLEAN REACT ALIAS <<<`);
50
+ console.log('>>> CLEAN REACT ALIAS <<<');
51
51
  restoreFiles();
52
52
  runInstallCommand();
53
53
  } else {
@@ -67,7 +67,7 @@ if (clean) {
67
67
  pkg['devDependencies']['react'] = '0.14.0';
68
68
  pkg['devDependencies']['react-dom'] = '0.14.0';
69
69
  pkg['@parcel/transformer-js'] = {
70
- "jsxRuntime": "classic"
70
+ 'jsxRuntime': 'classic'
71
71
  }
72
72
  }
73
73