@royaloperahouse/chord 1.10.1-c-chord-development → 1.10.1-e-chord-development
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 +4 -3
- package/dist/chord.cjs.development.js +18 -12
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +18 -12
- package/dist/chord.esm.js.map +1 -1
- package/dist/types/navigation.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
## [1.10.0-a]
|
|
6
6
|
- ContentSummary: make image clickable
|
|
7
7
|
|
|
8
|
+
## [1.10.0]
|
|
9
|
+
- PageHeadingImpact: Replace CSS background-image with HTML image element
|
|
10
|
+
## [1.9.0]
|
|
11
|
+
- Card: Add a new prop for the hover line color
|
|
8
12
|
## [1.9.0-c]
|
|
9
13
|
- ContentSummary: make image clickable
|
|
10
14
|
|
|
@@ -34,9 +38,6 @@
|
|
|
34
38
|
## [1.8.1-b]
|
|
35
39
|
- Card: add new prop for the line color on hover
|
|
36
40
|
|
|
37
|
-
## [1.8.1-a]
|
|
38
|
-
- ImpactHeader: replace css background image with html element
|
|
39
|
-
|
|
40
41
|
## [1.8.0]
|
|
41
42
|
- SearchBar: Disable
|
|
42
43
|
|
|
@@ -3784,8 +3784,12 @@ var SearchBar = function SearchBar(_ref) {
|
|
|
3784
3784
|
}
|
|
3785
3785
|
};
|
|
3786
3786
|
|
|
3787
|
-
var onCloseHandler = function onCloseHandler() {
|
|
3788
|
-
onClose
|
|
3787
|
+
var onCloseHandler = function onCloseHandler(e) {
|
|
3788
|
+
if (onClose) {
|
|
3789
|
+
onClose(e);
|
|
3790
|
+
}
|
|
3791
|
+
|
|
3792
|
+
setSearchValue('');
|
|
3789
3793
|
};
|
|
3790
3794
|
|
|
3791
3795
|
var onChangeHandler = function onChangeHandler(e) {
|
|
@@ -3820,7 +3824,8 @@ var SearchBar = function SearchBar(_ref) {
|
|
|
3820
3824
|
},
|
|
3821
3825
|
onKeyPress: function onKeyPress(e) {
|
|
3822
3826
|
return handleKeypress(e, searchValue);
|
|
3823
|
-
}
|
|
3827
|
+
},
|
|
3828
|
+
value: searchValue
|
|
3824
3829
|
})), showSearchLink && /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(SearchLinkContainer, {
|
|
3825
3830
|
"data-testid": "search-button"
|
|
3826
3831
|
}, /*#__PURE__*/React__default.createElement(TextLink, {
|
|
@@ -5843,7 +5848,8 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
|
5843
5848
|
scrollHref = _ref.scrollHref,
|
|
5844
5849
|
bgUrlDesktop = _ref.bgUrlDesktop,
|
|
5845
5850
|
bgUrlDevice = _ref.bgUrlDevice,
|
|
5846
|
-
bgImageAltText = _ref.bgImageAltText
|
|
5851
|
+
_ref$bgImageAltText = _ref.bgImageAltText,
|
|
5852
|
+
bgImageAltText = _ref$bgImageAltText === void 0 ? '' : _ref$bgImageAltText;
|
|
5847
5853
|
var truncatedText = text && text.substring(0, 75);
|
|
5848
5854
|
|
|
5849
5855
|
var _ref2 = link || {},
|
|
@@ -5854,7 +5860,13 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
|
5854
5860
|
bgUrlDesktop: bgUrlDesktop,
|
|
5855
5861
|
bgUrlDevice: bgUrlDevice,
|
|
5856
5862
|
"data-testid": "impact-wrapper"
|
|
5857
|
-
},
|
|
5863
|
+
}, sponsor ? /*#__PURE__*/React__default.createElement(SponsorWrapper, {
|
|
5864
|
+
"data-testid": "impact-sponsor"
|
|
5865
|
+
}, customSponsorImage ? /*#__PURE__*/React__default.createElement(Sponsorship, Object.assign({
|
|
5866
|
+
"data-testid": "impact-custom-sponsor"
|
|
5867
|
+
}, customSponsorImage, {
|
|
5868
|
+
isCustomImage: true
|
|
5869
|
+
})) : /*#__PURE__*/React__default.createElement(Sponsorship, null)) : null, /*#__PURE__*/React__default.createElement(ImpactHeaderImageWrapper, null, /*#__PURE__*/React__default.createElement("picture", {
|
|
5858
5870
|
"data-testid": "impact-picture"
|
|
5859
5871
|
}, bgUrlDevice && /*#__PURE__*/React__default.createElement("source", {
|
|
5860
5872
|
srcSet: bgUrlDevice,
|
|
@@ -5868,13 +5880,7 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
|
5868
5880
|
src: bgUrlDesktop,
|
|
5869
5881
|
alt: bgImageAltText,
|
|
5870
5882
|
"data-testid": "impact-image"
|
|
5871
|
-
}))),
|
|
5872
|
-
"data-testid": "impact-sponsor"
|
|
5873
|
-
}, customSponsorImage ? /*#__PURE__*/React__default.createElement(Sponsorship, Object.assign({
|
|
5874
|
-
"data-testid": "impact-custom-sponsor"
|
|
5875
|
-
}, customSponsorImage, {
|
|
5876
|
-
isCustomImage: true
|
|
5877
|
-
})) : /*#__PURE__*/React__default.createElement(Sponsorship, null)) : null, /*#__PURE__*/React__default.createElement(ImpactGrid, null, children ? /*#__PURE__*/React__default.createElement(LogoWrapper$2, {
|
|
5883
|
+
}))), /*#__PURE__*/React__default.createElement(ImpactGrid, null, children ? /*#__PURE__*/React__default.createElement(LogoWrapper$2, {
|
|
5878
5884
|
"data-testid": "impact-logo"
|
|
5879
5885
|
}, children) : null, text ? /*#__PURE__*/React__default.createElement(TextWrapper$1, {
|
|
5880
5886
|
"data-testid": "impact-text"
|