@microsoft/omnichannel-chat-components 1.1.17-main.4d513c2 → 1.1.17-main.5b3f077
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.
|
@@ -71,22 +71,6 @@ function PreChatSurveyPane(props) {
|
|
|
71
71
|
// Render the card
|
|
72
72
|
const renderedCard = adaptiveCard.render();
|
|
73
73
|
(0, _utils.addNoreferrerNoopenerTag)(renderedCard);
|
|
74
|
-
|
|
75
|
-
// Fix iOS Safari blank space in <select> dropdowns
|
|
76
|
-
if (renderedCard) {
|
|
77
|
-
const selectElements = renderedCard.querySelectorAll("select.ac-choiceSetInput-compact");
|
|
78
|
-
selectElements.forEach(select => {
|
|
79
|
-
// Remove hidden placeholder option that causes blank space on iOS
|
|
80
|
-
const firstOption = select.options[0];
|
|
81
|
-
if (firstOption && firstOption.disabled && firstOption.hidden && firstOption.value === "") {
|
|
82
|
-
select.removeChild(firstOption);
|
|
83
|
-
}
|
|
84
|
-
// Override iOS native select rendering
|
|
85
|
-
select.style.webkitAppearance = "none";
|
|
86
|
-
select.style.height = "auto";
|
|
87
|
-
select.style.minHeight = "31px";
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
74
|
return /*#__PURE__*/_react2.default.createElement(_react2.default.Fragment, null, /*#__PURE__*/_react2.default.createElement("style", null, `
|
|
91
75
|
.ac-textBlock {
|
|
92
76
|
font-size: ${(_props$styleProps3 = props.styleProps) === null || _props$styleProps3 === void 0 || (_props$styleProps3 = _props$styleProps3.customTextStyleProps) === null || _props$styleProps3 === void 0 ? void 0 : _props$styleProps3.fontSize} !important;
|
|
@@ -121,19 +105,6 @@ function PreChatSurveyPane(props) {
|
|
|
121
105
|
padding: 3px;
|
|
122
106
|
padding-top: 7px;
|
|
123
107
|
padding-bottom: 7px;
|
|
124
|
-
box-sizing: border-box;
|
|
125
|
-
}
|
|
126
|
-
.ac-input.ac-multichoiceInput.ac-choiceSetInput-compact {
|
|
127
|
-
height: auto;
|
|
128
|
-
min-height: 31px;
|
|
129
|
-
max-height: 45px;
|
|
130
|
-
-webkit-appearance: none;
|
|
131
|
-
appearance: none;
|
|
132
|
-
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
|
|
133
|
-
background-repeat: no-repeat;
|
|
134
|
-
background-position: right 8px center;
|
|
135
|
-
background-size: 16px;
|
|
136
|
-
padding-right: 30px;
|
|
137
108
|
}
|
|
138
109
|
.ac-input.ac-toggleInput {
|
|
139
110
|
align-items: ${((_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 || (_props$styleProps15 = _props$styleProps15.customToggleInputStyleProps) === null || _props$styleProps15 === void 0 ? void 0 : _props$styleProps15.alignItems) ?? ((_defaultPreChatSurvey9 = _defaultPreChatSurveyPaneStyles.defaultPreChatSurveyPaneStyles.customToggleInputStyleProps) === null || _defaultPreChatSurvey9 === void 0 ? void 0 : _defaultPreChatSurvey9.alignItems)} !important;
|
|
@@ -64,22 +64,6 @@ function PreChatSurveyPane(props) {
|
|
|
64
64
|
// Render the card
|
|
65
65
|
const renderedCard = adaptiveCard.render();
|
|
66
66
|
addNoreferrerNoopenerTag(renderedCard);
|
|
67
|
-
|
|
68
|
-
// Fix iOS Safari blank space in <select> dropdowns
|
|
69
|
-
if (renderedCard) {
|
|
70
|
-
const selectElements = renderedCard.querySelectorAll("select.ac-choiceSetInput-compact");
|
|
71
|
-
selectElements.forEach(select => {
|
|
72
|
-
// Remove hidden placeholder option that causes blank space on iOS
|
|
73
|
-
const firstOption = select.options[0];
|
|
74
|
-
if (firstOption && firstOption.disabled && firstOption.hidden && firstOption.value === "") {
|
|
75
|
-
select.removeChild(firstOption);
|
|
76
|
-
}
|
|
77
|
-
// Override iOS native select rendering
|
|
78
|
-
select.style.webkitAppearance = "none";
|
|
79
|
-
select.style.height = "auto";
|
|
80
|
-
select.style.minHeight = "31px";
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
67
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("style", null, `
|
|
84
68
|
.ac-textBlock {
|
|
85
69
|
font-size: ${(_props$styleProps3 = props.styleProps) === null || _props$styleProps3 === void 0 || (_props$styleProps3 = _props$styleProps3.customTextStyleProps) === null || _props$styleProps3 === void 0 ? void 0 : _props$styleProps3.fontSize} !important;
|
|
@@ -114,19 +98,6 @@ function PreChatSurveyPane(props) {
|
|
|
114
98
|
padding: 3px;
|
|
115
99
|
padding-top: 7px;
|
|
116
100
|
padding-bottom: 7px;
|
|
117
|
-
box-sizing: border-box;
|
|
118
|
-
}
|
|
119
|
-
.ac-input.ac-multichoiceInput.ac-choiceSetInput-compact {
|
|
120
|
-
height: auto;
|
|
121
|
-
min-height: 31px;
|
|
122
|
-
max-height: 45px;
|
|
123
|
-
-webkit-appearance: none;
|
|
124
|
-
appearance: none;
|
|
125
|
-
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
|
|
126
|
-
background-repeat: no-repeat;
|
|
127
|
-
background-position: right 8px center;
|
|
128
|
-
background-size: 16px;
|
|
129
|
-
padding-right: 30px;
|
|
130
101
|
}
|
|
131
102
|
.ac-input.ac-toggleInput {
|
|
132
103
|
align-items: ${((_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 || (_props$styleProps15 = _props$styleProps15.customToggleInputStyleProps) === null || _props$styleProps15 === void 0 ? void 0 : _props$styleProps15.alignItems) ?? ((_defaultPreChatSurvey9 = defaultPreChatSurveyPaneStyles.customToggleInputStyleProps) === null || _defaultPreChatSurvey9 === void 0 ? void 0 : _defaultPreChatSurvey9.alignItems)} !important;
|
package/package.json
CHANGED