@newskit-render/checkout 3.10.20 → 3.10.21
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/cjs/Components/Templates/AccountCreationTemplates/DateOfBirth.d.ts +0 -1
- package/dist/cjs/Components/Templates/AccountCreationTemplates/RenderAgreementCheckboxes.d.ts +1 -2
- package/dist/cjs/Components/Templates/AccountCreationTemplates/Title.d.ts +0 -1
- package/dist/cjs/Components/Templates/LayoutTemplate.d.ts +0 -1
- package/dist/cjs/Components/Templates/types.d.ts +0 -1
- package/dist/cjs/__tests__/index.tests.js +2 -2
- package/dist/cjs/getProviderProps.js +2 -2
- package/dist/cjs/helpers/testHelpers.d.ts +4 -4
- package/dist/cjs/helpers/testHelpers.js +2 -2
- package/dist/cjs/helpers/testHelpers.js.map +1 -1
- package/dist/esm/Components/Templates/AccountCreationTemplates/DateOfBirth.d.ts +0 -1
- package/dist/esm/Components/Templates/AccountCreationTemplates/RenderAgreementCheckboxes.d.ts +1 -2
- package/dist/esm/Components/Templates/AccountCreationTemplates/Title.d.ts +0 -1
- package/dist/esm/Components/Templates/LayoutTemplate.d.ts +0 -1
- package/dist/esm/Components/Templates/types.d.ts +0 -1
- package/dist/esm/__tests__/index.tests.js +2 -2
- package/dist/esm/getProviderProps.js +2 -2
- package/dist/esm/helpers/testHelpers.d.ts +4 -4
- package/dist/esm/helpers/testHelpers.js +2 -2
- package/dist/esm/helpers/testHelpers.js.map +1 -1
- package/package.json +4 -4
package/dist/cjs/Components/Templates/AccountCreationTemplates/RenderAgreementCheckboxes.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const RenderAgreementCheckboxes: ({ tcAccepted, handleModal, handleTCAccept, opAccepted, handleOPAccept, }: {
|
|
3
|
-
tcAccepted?: boolean
|
|
2
|
+
tcAccepted?: boolean;
|
|
4
3
|
handleModal: (x: boolean) => void;
|
|
5
4
|
handleTCAccept: (x: boolean) => void;
|
|
6
5
|
opAccepted: boolean;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -20,8 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g =
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
24
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { RenderOptions } from '@testing-library/react';
|
|
3
3
|
import { UncompiledTheme } from 'newskit';
|
|
4
4
|
import { ContextOptions } from '../context';
|
|
5
|
-
export declare const renderWithThemeTsl: <T extends {}>(Component: React.ComponentType<T>, props?:
|
|
5
|
+
export declare const renderWithThemeTsl: <T extends {}>(Component: React.ComponentType<T>, props?: T & {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const renderWithContextTsl: <T extends {}>(Component: React.ComponentType<T>, props?:
|
|
7
|
+
}, theme?: UncompiledTheme, options?: Omit<RenderOptions, "wrapper">) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
8
|
+
export declare const renderWithContextTsl: <T extends {}>(Component: React.ComponentType<T>, props?: T & {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
|
-
}
|
|
10
|
+
}, context?: ContextOptions, options?: Omit<RenderOptions, "wrapper">) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
@@ -25,8 +25,8 @@ Object.defineProperty(window, 'matchMedia', {
|
|
|
25
25
|
matches: false,
|
|
26
26
|
media: query,
|
|
27
27
|
onchange: null,
|
|
28
|
-
addListener: jest.fn(),
|
|
29
|
-
removeListener: jest.fn(),
|
|
28
|
+
addListener: jest.fn(), // Deprecated
|
|
29
|
+
removeListener: jest.fn(), // Deprecated
|
|
30
30
|
addEventListener: jest.fn(),
|
|
31
31
|
removeEventListener: jest.fn(),
|
|
32
32
|
dispatchEvent: jest.fn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testHelpers.js","sourceRoot":"","sources":["../../../src/helpers/testHelpers.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oGAAoG;AACpG;;GAEG;AACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE;IAC1C,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI,CAAC,EA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F0B,CAE1B,IACD;AALF,CAKE,CAAA;AAXS,QAAA,kBAAkB,sBAW3B;AAEG,IAAM,oBAAoB,GAAG,UAClC,SAAiC,EACjC,KAA0C,EAC1C,OAA4B,EAC5B,OAAwC;IADxC,wBAAA,EAAA,YAA4B;IAG5B,OAAA,IAAA,cAAS,EAAC,8BAAC,SAAS,eAAM,KAAW,EAAI,wBACpC,OAAO,KACV,OAAO,EAAE,UAAC,EAAY;gBAAV,QAAQ,cAAA;YAAO,OAAA,CACzB,8BAAC,iCAAuB,IAAC,OAAO,EAAE,OAAO;gBACvC,8BAAC,uBAAa,IAAC,KAAK,EAAE,2BAAiB,IAAG,QAAQ,CAAiB,CAC3C,CAC3B;QAJ0B,CAI1B,IACD;AAPF,CAOE,CAAA;AAbS,QAAA,oBAAoB,wBAa7B"}
|
package/dist/esm/Components/Templates/AccountCreationTemplates/RenderAgreementCheckboxes.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const RenderAgreementCheckboxes: ({ tcAccepted, handleModal, handleTCAccept, opAccepted, handleOPAccept, }: {
|
|
3
|
-
tcAccepted?: boolean
|
|
2
|
+
tcAccepted?: boolean;
|
|
4
3
|
handleModal: (x: boolean) => void;
|
|
5
4
|
handleTCAccept: (x: boolean) => void;
|
|
6
5
|
opAccepted: boolean;
|
|
@@ -8,8 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
-
return g =
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -19,8 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
-
return g =
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
23
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { RenderOptions } from '@testing-library/react';
|
|
3
3
|
import { UncompiledTheme } from 'newskit';
|
|
4
4
|
import { ContextOptions } from '../context';
|
|
5
|
-
export declare const renderWithThemeTsl: <T extends {}>(Component: React.ComponentType<T>, props?:
|
|
5
|
+
export declare const renderWithThemeTsl: <T extends {}>(Component: React.ComponentType<T>, props?: T & {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const renderWithContextTsl: <T extends {}>(Component: React.ComponentType<T>, props?:
|
|
7
|
+
}, theme?: UncompiledTheme, options?: Omit<RenderOptions, "wrapper">) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
8
|
+
export declare const renderWithContextTsl: <T extends {}>(Component: React.ComponentType<T>, props?: T & {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
|
-
}
|
|
10
|
+
}, context?: ContextOptions, options?: Omit<RenderOptions, "wrapper">) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
@@ -19,8 +19,8 @@ Object.defineProperty(window, 'matchMedia', {
|
|
|
19
19
|
matches: false,
|
|
20
20
|
media: query,
|
|
21
21
|
onchange: null,
|
|
22
|
-
addListener: jest.fn(),
|
|
23
|
-
removeListener: jest.fn(),
|
|
22
|
+
addListener: jest.fn(), // Deprecated
|
|
23
|
+
removeListener: jest.fn(), // Deprecated
|
|
24
24
|
addEventListener: jest.fn(),
|
|
25
25
|
removeEventListener: jest.fn(),
|
|
26
26
|
dispatchEvent: jest.fn(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testHelpers.js","sourceRoot":"","sources":["../../../src/helpers/testHelpers.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,oGAAoG;AACpG;;GAEG;AACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE;IAC1C,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC;QAC9C,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"testHelpers.js","sourceRoot":"","sources":["../../../src/helpers/testHelpers.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,oGAAoG;AACpG;;GAEG;AACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE;IAC1C,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,kBAAkB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ACzB,oBAAC,uBAAuB,IAAC,OAAO,EAAE,OAAO;gBACvC,oBAAC,aAAa,IAAC,KAAK,EAAE,iBAAiB,IAAG,QAAQ,CAAiB,CAC3C,CAC3B;QAJ0B,CAI1B,IACD;AAPF,CAOE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/checkout",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.21",
|
|
4
4
|
"description": "Newskit Render - Checkout package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@emotion/react": "11.9.3",
|
|
34
34
|
"@emotion/styled": "11.9.3",
|
|
35
35
|
"@hookform/resolvers": "2.9.10",
|
|
36
|
-
"@newskit-render/shared-components": "^4.35.
|
|
37
|
-
"@newskit-render/standalone-components": "^3.23.
|
|
36
|
+
"@newskit-render/shared-components": "^4.35.1",
|
|
37
|
+
"@newskit-render/standalone-components": "^3.23.4",
|
|
38
38
|
"newskit": "7.7.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"react": "18.2.0",
|
|
65
65
|
"react-dom": "18.2.0",
|
|
66
66
|
"ts-jest": "29.1.1",
|
|
67
|
-
"typescript": "
|
|
67
|
+
"typescript": "5.6.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"next": ">= 12.1.0 <= 13.4.9",
|