@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 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
 
@@ -3,6 +3,7 @@ interface AttributesProps {
3
3
  url: string;
4
4
  target?: string;
5
5
  text: string;
6
+ className?: string;
6
7
  }
7
8
  interface RootProps {
8
9
  attributes?: AttributesProps;
@@ -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 = props => {
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" }, attributes.text));
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3RhQnV0dG9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvY3RhLWJ1dHRvbi9DdGFCdXR0b24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxNQUFNLE9BQU8sQ0FBQztBQUMxQixPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sVUFBVSxDQUFDO0FBQ2hDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBWWhGLE1BQU0sQ0FBQyxNQUFNLFNBQVMsR0FBd0IsS0FBSyxDQUFDLEVBQUU7SUFDcEQsTUFBTSxVQUFVLEdBQUcsS0FBSyxDQUFDLFVBQVUsQ0FBQztJQUVwQyxJQUFJLENBQUMsVUFBVSxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLFVBQVUsQ0FBQyxHQUFHLENBQUMsSUFBSSxFQUFFLEVBQUU7UUFD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BSSxDQUFDO0tBQ2I7SUFFRCxPQUFPLENBQ0wsb0JBQUMsSUFBSSxJQUNILElBQUksRUFBRSxVQUFVLENBQUMsR0FBRyxFQUNwQixNQUFNLEVBQUUsVUFBVSxDQUFDLE1BQU0sSUFBSSxRQUFRLEVBQ3JDLFNBQVMsRUFBRSxVQUFVLENBQUMsU0FBUyxFQUMvQixPQUFPLEVBQUUsR0FBRyxFQUFFLENBQ1osc0JBQXNCLENBQ3BCLHVCQUF1QixFQUN2QixZQUFZLEVBQ1osT0FBTyxFQUNQLFVBQVUsQ0FBQyxHQUFHLEVBQ2QsVUFBVSxDQUFDLElBQUksQ0FBQyxXQUFXLEVBQUUsQ0FDOUIsRUFFSCxHQUFHLEVBQUMsVUFBVSxFQUNkLEtBQUssRUFBRTtZQUNMLE9BQU8sRUFDTCxVQUFVLENBQUMsU0FBUztnQkFDcEIsVUFBVSxDQUFDLFNBQVMsQ0FBQyxRQUFRLENBQUMsNkJBQTZCLENBQUM7Z0JBQzFELENBQUMsQ0FBQyxNQUFNO2dCQUNSLENBQUMsQ0FBQyxPQUFPO1NBQ2QsSUFFQSxVQUFVLENBQUMsSUFBSSxDQUNYLENBQ1IsQ0FBQztBQUNKLENBQUMsQ0FBQyJ9
@@ -71,7 +71,7 @@ export const Bottom = styled.div `
71
71
  flex-direction: column;
72
72
  align-items: flex-start;
73
73
  padding: 8px 0 0;
74
- min-height: 230px;
74
+ min-height: 90px;
75
75
  justify-content: space-between;
76
76
 
77
77
  & .q-icon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@times-components/ts-components",
3
- "version": "1.126.0",
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.73",
54
- "@times-components/date-publication": "0.30.46",
55
- "@times-components/icons": "2.23.12",
56
- "@times-components/image": "6.18.14",
57
- "@times-components/link": "3.17.46",
58
- "@times-components/provider": "1.42.0",
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.29",
61
- "@times-components/ts-slices": "1.10.12",
62
- "@times-components/ts-styleguide": "1.52.1",
63
- "@times-components/utils": "6.31.3",
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.31.0",
87
- "@times-components/storybook": "4.13.0",
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": "77c3a7891e5b48cb32586d0141a1a35c30fd553c"
121
+ "gitHead": "9c9f398ccdadadb526778796cc9018678b8c6fc2"
122
122
  }