@times-components/ts-components 1.126.0 → 1.128.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 +30 -0
- package/dist/components/cta-button/CtaButton.d.ts +1 -0
- package/dist/components/cta-button/CtaButton.js +8 -4
- package/dist/components/quizle-sidebar/styles.js +1 -1
- package/package.json +14 -14
- package/rnw.js +1 -1
- package/src/components/cta-button/CtaButton.tsx +10 -3
- package/src/components/quizle-sidebar/__tests__/__snapshots__/index.test.tsx.snap +1 -1
- package/src/components/quizle-sidebar/styles.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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
|
+
## [1.128.1](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.128.0...@times-components/ts-components@1.128.1) (2025-04-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @times-components/ts-components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [1.128.0](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.127.0...@times-components/ts-components@1.128.0) (2025-04-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **TMRP-284:** adjust Quizle min size ([#4118](https://github.com/newsuk/times-components/issues/4118)) ([f16c16e](https://github.com/newsuk/times-components/commit/f16c16ec7bdeaa9101accc5564d7605302ee5fac))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [1.127.0](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.126.0...@times-components/ts-components@1.127.0) (2025-04-10)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **TMC-422:** Add className prop to CTA button ([#4120](https://github.com/newsuk/times-components/issues/4120)) ([b313f41](https://github.com/newsuk/times-components/commit/b313f41453d50ed246fccd28c42a6b6418784482))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [1.126.0](https://github.com/newsuk/times-components/compare/@times-components/ts-components@1.125.1...@times-components/ts-components@1.126.0) (2025-04-08)
|
|
7
37
|
|
|
8
38
|
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Link } from './styles';
|
|
3
3
|
import { tealiumTrackingHandler } from '../../helpers/tracking/TrackingHandler';
|
|
4
|
-
export const CtaButton =
|
|
5
|
-
const attributes = props.attributes;
|
|
4
|
+
export const CtaButton = ({ attributes }) => {
|
|
6
5
|
if (!attributes || !attributes.text.trim() || !attributes.url.trim()) {
|
|
7
6
|
return null;
|
|
8
7
|
}
|
|
9
|
-
return (React.createElement(Link, { href: attributes.url, target: attributes.target || '_blank', onClick: () => tealiumTrackingHandler('affiliate cta clicked', 'navigation', 'click', attributes.url, attributes.text.toLowerCase()), rel: "nofollow"
|
|
8
|
+
return (React.createElement(Link, { href: attributes.url, target: attributes.target || '_blank', className: attributes.className, onClick: () => tealiumTrackingHandler('affiliate cta clicked', 'navigation', 'click', attributes.url, attributes.text.toLowerCase()), rel: "nofollow", style: {
|
|
9
|
+
display: attributes.className &&
|
|
10
|
+
attributes.className.includes('js-cta-experiment-variation')
|
|
11
|
+
? 'none'
|
|
12
|
+
: 'block'
|
|
13
|
+
} }, attributes.text));
|
|
10
14
|
};
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3RhQnV0dG9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvY3RhLWJ1dHRvbi9DdGFCd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BQUMsSUFBSSxDQUNYLENBQ1IsQ0FBQztBQUNKLENBQUMsQ0FBQyJ9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/ts-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.128.1",
|
|
4
4
|
"description": "Reuseable Typescript React Components ",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"dev": "dist/index.js",
|
|
@@ -50,17 +50,17 @@
|
|
|
50
50
|
"node": ">=8.9"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@times-components/button": "2.10.
|
|
54
|
-
"@times-components/date-publication": "0.30.
|
|
55
|
-
"@times-components/icons": "2.23.
|
|
56
|
-
"@times-components/image": "6.18.
|
|
57
|
-
"@times-components/link": "3.17.
|
|
58
|
-
"@times-components/provider": "1.42.
|
|
53
|
+
"@times-components/button": "2.10.74",
|
|
54
|
+
"@times-components/date-publication": "0.30.47",
|
|
55
|
+
"@times-components/icons": "2.23.13",
|
|
56
|
+
"@times-components/image": "6.18.15",
|
|
57
|
+
"@times-components/link": "3.17.47",
|
|
58
|
+
"@times-components/provider": "1.42.1",
|
|
59
59
|
"@times-components/provider-queries": "2.25.0",
|
|
60
|
-
"@times-components/related-articles": "6.19.
|
|
61
|
-
"@times-components/ts-slices": "1.10.
|
|
62
|
-
"@times-components/ts-styleguide": "1.52.
|
|
63
|
-
"@times-components/utils": "6.31.
|
|
60
|
+
"@times-components/related-articles": "6.19.32",
|
|
61
|
+
"@times-components/ts-slices": "1.10.13",
|
|
62
|
+
"@times-components/ts-styleguide": "1.52.2",
|
|
63
|
+
"@times-components/utils": "6.31.4",
|
|
64
64
|
"algoliasearch": "4.9.0",
|
|
65
65
|
"date-fns": "2.28.0",
|
|
66
66
|
"date-fns-tz": "1.3.3",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"@testing-library/jest-dom": "^5.12.0",
|
|
84
84
|
"@testing-library/react": "^12.1.2",
|
|
85
85
|
"@testing-library/react-hooks": "8.0.1",
|
|
86
|
-
"@times-components/provider-test-tools": "1.
|
|
87
|
-
"@times-components/storybook": "4.13.
|
|
86
|
+
"@times-components/provider-test-tools": "1.32.0",
|
|
87
|
+
"@times-components/storybook": "4.13.1",
|
|
88
88
|
"@times-components/test-utils": "2.4.2",
|
|
89
89
|
"@types/lodash.get": "4.4.6",
|
|
90
90
|
"@types/lodash.keyby": "4.6.6",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"@testing-library/jest-dom/extend-expect"
|
|
119
119
|
]
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "9c9f398ccdadadb526778796cc9018678b8c6fc2"
|
|
122
122
|
}
|