@newskit-render/checkout 0.4.2 → 0.5.2
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 +38 -0
- package/dist/__tests__/index.tests.js +7 -2
- package/dist/__tests__/index.tests.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +28 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/types.js +2 -1
- package/index.js +1 -0
- package/package.json +14 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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
|
+
## [0.5.2](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/checkout@0.5.1...@newskit-render/checkout@0.5.2) (2021-11-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @newskit-render/checkout
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.5.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/checkout@0.5.0...@newskit-render/checkout@0.5.1) (2021-11-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @newskit-render/checkout
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [0.5.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/checkout@0.4.3...@newskit-render/checkout@0.5.0) (2021-11-22)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **PPDSR-0:** fix broken dependecy ([#521](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/521)) ([2690dd3](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/2690dd3bc6cf61a88740a0ff935adf461be02416))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [0.4.3](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/checkout@0.4.2...@newskit-render/checkout@0.4.3) (2021-11-18)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Reverts
|
|
37
|
+
|
|
38
|
+
* Revert "fix(PPDSR-541): switch packages to es modules (#512)" (#516) ([fd719ba](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/fd719badac7578473e2bb991530277bb09ec2057)), closes [#512](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/512) [#516](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/516)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## [0.4.2](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/checkout@0.4.1...@newskit-render/checkout@0.4.2) (2021-11-18)
|
|
7
45
|
|
|
8
46
|
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var index_1 = __importDefault(require("../index"));
|
|
2
7
|
describe('Checkout', function () {
|
|
3
8
|
it('Logs Welocome to Checkout to the console', function () {
|
|
4
9
|
var spy = jest.spyOn(console, 'log');
|
|
5
|
-
|
|
10
|
+
(0, index_1.default)();
|
|
6
11
|
expect(spy).toHaveBeenCalledWith('Welcome to checkout!');
|
|
7
12
|
});
|
|
8
13
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.tests.js","sourceRoot":"","sources":["../../src/__tests__/index.tests.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.tests.js","sourceRoot":"","sources":["../../src/__tests__/index.tests.ts"],"names":[],"mappings":";;;;;AAAA,mDAA4B;AAE5B,QAAQ,CAAC,UAAU,EAAE;IACnB,EAAE,CAAC,0CAA0C,EAAE;QAC7C,IAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QACtC,IAAA,eAAK,GAAE,CAAA;QACP,MAAM,CAAC,GAAG,CAAC,CAAC,oBAAoB,CAAC,sBAAsB,CAAC,CAAA;IAC1D,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,IAAM,KAAK,GAAG;IACZ,OAAO,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;AAC5C,CAAC,CAAA;AAED,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,IAAM,KAAK,GAAG;IACZ,OAAO,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;AAC5C,CAAC,CAAA;AAED,kBAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const checkoutTheme: import("newskit").UncompiledTheme;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkoutTheme = void 0;
|
|
4
|
+
var newskit_1 = require("newskit");
|
|
5
|
+
exports.checkoutTheme = (0, newskit_1.createTheme)({
|
|
6
|
+
name: 'checkout-theme',
|
|
7
|
+
overrides: {
|
|
8
|
+
stylePresets: {
|
|
9
|
+
buttonGroupXs: {
|
|
10
|
+
base: {
|
|
11
|
+
backgroundColor: '{{colors.interface020}}',
|
|
12
|
+
borderColor: '{{colors.interface040}}',
|
|
13
|
+
borderStyle: 'solid',
|
|
14
|
+
borderWidth: '{{borders.borderWidth010}} {{borders.borderWidth000}} {{borders.borderWidth000}} {{borders.borderWidth000}}',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
buttonGroupSm: {
|
|
18
|
+
base: {
|
|
19
|
+
backgroundColor: '{{colors.transparent}}',
|
|
20
|
+
borderColor: '{{colors.interface030}}',
|
|
21
|
+
borderStyle: 'solid',
|
|
22
|
+
borderWidth: '{{borders.borderWidth010}} {{borders.borderWidth000}} {{borders.borderWidth000}} {{borders.borderWidth000}}',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":";;;AAAA,mCAAqC;AAExB,QAAA,aAAa,GAAG,IAAA,qBAAW,EAAC;IACvC,IAAI,EAAE,gBAAgB;IACtB,SAAS,EAAE;QACT,YAAY,EAAE;YACZ,aAAa,EAAE;gBACb,IAAI,EAAE;oBACJ,eAAe,EAAE,yBAAyB;oBAC1C,WAAW,EAAE,yBAAyB;oBACtC,WAAW,EAAE,OAAO;oBACpB,WAAW,EACT,6GAA6G;iBAChH;aACF;YACD,aAAa,EAAE;gBACb,IAAI,EAAE;oBACJ,eAAe,EAAE,wBAAwB;oBACzC,WAAW,EAAE,yBAAyB;oBACtC,WAAW,EAAE,OAAO;oBACpB,WAAW,EACT,6GAA6G;iBAChH;aACF;SACF;KACF;CACF,CAAC,CAAA"}
|
package/dist/types.js
CHANGED
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/index').default
|
package/package.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/checkout",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Newskit Render - Checkout package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"keywords": [],
|
|
8
|
-
"main": "
|
|
9
|
-
"type": "module",
|
|
10
|
-
"sideEffects": false,
|
|
8
|
+
"main": "index.js",
|
|
11
9
|
"scripts": {
|
|
12
10
|
"build": "rm -rf dist && tsc -b tsconfig.build.json",
|
|
13
11
|
"build:watch": "tsc -b tsconfig.build.json -w",
|
|
14
|
-
"test:unit:watch": "
|
|
15
|
-
"test:unit": "
|
|
16
|
-
"test:unit:ci": "JEST_JUNIT_OUTPUT_NAME=checkout.xml node --experimental-vm-modules ./node_modules/.bin/jest --ci --coverage --reporters=default --reporters=jest-junit",
|
|
12
|
+
"test:unit:watch": "jest --watch",
|
|
13
|
+
"test:unit": "jest --coverage",
|
|
17
14
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx . --color",
|
|
18
15
|
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx . --color --fix && prettier --write './**/*.{js,jsx,ts,tsx,json}'",
|
|
19
|
-
"clean": "rm -rf node_modules & rm -f package-lock.json & rm -f yarn.lock"
|
|
16
|
+
"clean": "rm -rf node_modules & rm -f package-lock.json & rm -f yarn.lock",
|
|
17
|
+
"test:unit:ci": "JEST_JUNIT_OUTPUT_NAME=checkout.xml jest --ci --coverage --reporters=default --reporters=jest-junit"
|
|
20
18
|
},
|
|
21
19
|
"peerDependencies": {
|
|
22
20
|
"react": "17.0.2",
|
|
23
|
-
"react-dom": "^17.0.
|
|
21
|
+
"react-dom": "^17.0.2"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"newskit": "4.0.1"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@babel/polyfill": "^7.10.1",
|
|
@@ -39,10 +40,14 @@
|
|
|
39
40
|
"next": "^11.1.2",
|
|
40
41
|
"preact": "^10.5.12",
|
|
41
42
|
"prettier": "^2.2.1",
|
|
43
|
+
"react": "17.0.2",
|
|
42
44
|
"react-dom": "^17.0.2",
|
|
43
45
|
"ts-jest": "^27.0.5",
|
|
44
46
|
"typescript": "4.4.3"
|
|
45
47
|
},
|
|
48
|
+
"resolutions": {
|
|
49
|
+
"newskit/react-hook-form": "7.8.4"
|
|
50
|
+
},
|
|
46
51
|
"files": [
|
|
47
52
|
"dist"
|
|
48
53
|
],
|