@royaloperahouse/chord 0.7.41 → 0.7.43
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 +8 -0
- package/dist/chord.cjs.development.js +11 -10
- 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 +11 -10
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/organisms/{AnchorTapBar/AnchorTapBar.d.ts → AnchorTabBar/AnchorTabBar.d.ts} +2 -2
- package/dist/components/organisms/{AnchorTapBar/AnchorTapBar.style.d.ts → AnchorTabBar/AnchorTabBar.style.d.ts} +0 -0
- package/dist/components/organisms/AnchorTabBar/index.d.ts +2 -0
- package/dist/components/organisms/index.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/types/editorial.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/organisms/AnchorTapBar/index.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [0.7.43]
|
|
4
|
+
- AnchorTabBar: fix the typo in the name of the component
|
|
5
|
+
- PromoWithTags: increase spacing between tags and body text
|
|
6
|
+
- PromoWithTags: change prop name for subtags
|
|
7
|
+
|
|
8
|
+
## [0.7.42]
|
|
9
|
+
- Livechat: Add more branded fields
|
|
10
|
+
|
|
3
11
|
## [0.7.41]
|
|
4
12
|
- PromoWithTags: convert the checks value to boolean
|
|
5
13
|
|
|
@@ -4042,7 +4042,7 @@ var ArrowWrapper = /*#__PURE__*/styled__default.div(_templateObject6$4 || (_temp
|
|
|
4042
4042
|
|
|
4043
4043
|
var _excluded$7 = ["id", "text"];
|
|
4044
4044
|
|
|
4045
|
-
var
|
|
4045
|
+
var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
4046
4046
|
var tabs = _ref.tabs,
|
|
4047
4047
|
onTabClick = _ref.onTabClick,
|
|
4048
4048
|
activeTab = _ref.activeTab;
|
|
@@ -4688,11 +4688,12 @@ var DIV_ID = 'tdWebchat';
|
|
|
4688
4688
|
var THEME_ICON = 'https://static.roh.org.uk/logos/crest.svg';
|
|
4689
4689
|
var THEME_FONT_BODY = fontFamilies.sansSerifFallback;
|
|
4690
4690
|
var THEME_COLOR = core.colors.core;
|
|
4691
|
-
var THEME_COLOR_LIGHT = core.colors.core + '
|
|
4692
|
-
var
|
|
4691
|
+
var THEME_COLOR_LIGHT = core.colors.core + '80';
|
|
4692
|
+
var THEME_COLOR_BLACK = core.colors.black;
|
|
4693
|
+
var THEME_COLOR_LIGHTGREY = core.colors.lightgrey;
|
|
4693
4694
|
var THEME_COLOR_WHITE = core.colors.white;
|
|
4694
|
-
|
|
4695
|
-
var SCRIPT_CONTENT = "var webchat;\n((window, document, node, props, configs) => {\n if (window.TalkdeskChatSDK) {\n console.error(\"TalkdeskChatSDK already included\");\n return;\n }\n var divContainer = document.createElement(\"div\");\n divContainer.id = node;\n document.body.appendChild(divContainer);\n var currentDate = new Date().getTime();\n var src = \"" + SCRIPT_SRC + "\" + currentDate;\n var script = document.createElement(\"script\");\n var firstScriptTag = document.getElementsByTagName(\"script\")[0];\n script.type = \"text/javascript\";\n script.charset = \"UTF-8\";\n script.id = \"tdwebchatscript\";\n script.src = src;\n script.async = true;\n firstScriptTag.parentNode.insertBefore(script, firstScriptTag);\n script.onload = () => {\n webchat = TalkdeskChatSDK(node, props);\n webchat.init(configs);\n };\n})(\n window,\n document,\n \"" + DIV_ID + "\",\n { flowId: \"cd19d348b5fb4a0ab0d3277686f28d1e\", accountId: \"\", region: \"td-us-1\" },\n { enableEmoji: true, enableUserInput: true, styles :{\n \"botIcon\": \"" + THEME_ICON + "\",\n \"chatTitle\": \"Royal Opera House\",\n \"chatThemeColor\": \"" + THEME_COLOR + "\",\n \"chatTitleIcon\": \"" + THEME_ICON + "\",\n \"
|
|
4695
|
+
var THEME_COLOR_MIDGREY = core.colors.midgrey;
|
|
4696
|
+
var SCRIPT_CONTENT = "var webchat;\n((window, document, node, props, configs) => {\n if (window.TalkdeskChatSDK) {\n console.error(\"TalkdeskChatSDK already included\");\n return;\n }\n var divContainer = document.createElement(\"div\");\n divContainer.id = node;\n document.body.appendChild(divContainer);\n var currentDate = new Date().getTime();\n var src = \"" + SCRIPT_SRC + "\" + currentDate;\n var script = document.createElement(\"script\");\n var firstScriptTag = document.getElementsByTagName(\"script\")[0];\n script.type = \"text/javascript\";\n script.charset = \"UTF-8\";\n script.id = \"tdwebchatscript\";\n script.src = src;\n script.async = true;\n firstScriptTag.parentNode.insertBefore(script, firstScriptTag);\n script.onload = () => {\n webchat = TalkdeskChatSDK(node, props);\n webchat.init(configs);\n };\n})(\n window,\n document,\n \"" + DIV_ID + "\",\n { flowId: \"cd19d348b5fb4a0ab0d3277686f28d1e\", accountId: \"\", region: \"td-us-1\" },\n { enableEmoji: true, enableUserInput: true, styles :{\n \"botIcon\": \"" + THEME_ICON + "\",\n \"botBackgroundColor\":\"" + THEME_COLOR_LIGHTGREY + "\",\n \"botTextColor\": \"" + THEME_COLOR_BLACK + "\",\n \"chatTitle\": \"Royal Opera House\",\n \"chatThemeColor\": \"" + THEME_COLOR + "\",\n \"chatTitleIcon\": \"" + THEME_ICON + "\",\n \"customButtonBackgroundColor\": \"" + THEME_COLOR + "\",\n \"customButtonBorderColor\": \"" + THEME_COLOR + "\",\n \"customButtonColor\": \"" + THEME_COLOR_WHITE + "\",\n \"userBackgroundColor\":\"" + THEME_COLOR_LIGHTGREY + "\",\n \"userTextColor\": \"" + THEME_COLOR_BLACK + "\",\n \"userBackgroundColor\":\"" + THEME_COLOR_MIDGREY + "\",\n \"userTextColor\": \"" + THEME_COLOR_BLACK + "\",\n \"welcomeMessageBackgroundColor\": \"" + THEME_COLOR_LIGHT + "\",\n \"welcomeMessageContentFontSize\": \"18px\",\n \"welcomeMessageTitleFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"welcomeMessageContentFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customMessageFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customMessageNoBubbleFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customButtonFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customFieldLabelFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customFieldInputFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customDropdownLabelFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"customDropdownInputFontFamily\": \"" + THEME_FONT_BODY + "\",\n \"startChatButtonBackgroundColor\": \"" + THEME_COLOR + "\",\n \"startChatButtonBorderColor\": \"" + THEME_COLOR + "\",\n \"startChatButtonTextColor\": \"" + THEME_COLOR_WHITE + "\",\n \"startChatButtonHoverBackgroundColor\": \"" + THEME_COLOR + "\",\n \"startChatButtonHoverBorderColor\": \"" + THEME_COLOR + "\",\n \"startChatButtonHoverTextColor\": \"" + THEME_COLOR_WHITE + "\",\n \"startChatButtonFontFamily\": \"" + THEME_FONT_BODY + "\",\n }}\n);";
|
|
4696
4697
|
|
|
4697
4698
|
var loadLiveChatScript = function loadLiveChatScript(callback) {
|
|
4698
4699
|
var existingScript = document.getElementById(DIV_ID);
|
|
@@ -5529,7 +5530,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
5529
5530
|
links = _ref.links,
|
|
5530
5531
|
children = _ref.children,
|
|
5531
5532
|
aboveTitleTags = _ref.aboveTitleTags,
|
|
5532
|
-
|
|
5533
|
+
belowTitleTags = _ref.belowTitleTags,
|
|
5533
5534
|
middleText = _ref.middleText,
|
|
5534
5535
|
bottomText = _ref.bottomText;
|
|
5535
5536
|
|
|
@@ -5578,10 +5579,10 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
5578
5579
|
list: aboveTitleTags
|
|
5579
5580
|
})), /*#__PURE__*/React__default.createElement(Header, {
|
|
5580
5581
|
level: titleLevel
|
|
5581
|
-
}, title)), subtitle && /*#__PURE__*/React__default.createElement(PromoWithTagsSubtitle, null, subtitle), !!(
|
|
5582
|
-
marginBottom:
|
|
5582
|
+
}, title)), subtitle && /*#__PURE__*/React__default.createElement(PromoWithTagsSubtitle, null, subtitle), !!(belowTitleTags != null && belowTitleTags.length) && /*#__PURE__*/React__default.createElement(PromoWithTagsTagWrapper, {
|
|
5583
|
+
marginBottom: 8
|
|
5583
5584
|
}, /*#__PURE__*/React__default.createElement(TypeTags, {
|
|
5584
|
-
list:
|
|
5585
|
+
list: belowTitleTags
|
|
5585
5586
|
})), /*#__PURE__*/React__default.createElement(PromoWithTagsText, {
|
|
5586
5587
|
dangerouslySetInnerHTML: {
|
|
5587
5588
|
__html: text
|
|
@@ -6751,7 +6752,7 @@ var GlobalStyles = /*#__PURE__*/styled.createGlobalStyle(_templateObject$U || (_
|
|
|
6751
6752
|
exports.Accordion = Accordion;
|
|
6752
6753
|
exports.Accordions = Accordions;
|
|
6753
6754
|
exports.AltHeader = AltHeader;
|
|
6754
|
-
exports.
|
|
6755
|
+
exports.AnchorTabBar = AnchorTabBar;
|
|
6755
6756
|
exports.AnnouncementBanner = AnnouncementBanner;
|
|
6756
6757
|
exports.BodyText = BodyText;
|
|
6757
6758
|
exports.Card = Card;
|