@zohodesk/dot 1.0.0-beta.257 → 1.0.0-beta.258
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/README.md
CHANGED
|
@@ -630,7 +630,7 @@ export class ToggleDropDown extends Component {
|
|
|
630
630
|
},
|
|
631
631
|
palette: palette,
|
|
632
632
|
isResponsivePadding: true
|
|
633
|
-
}, DropBoxProps), /*#__PURE__*/React.createElement(Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
633
|
+
}, DropBoxProps), /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
634
634
|
className: style.search
|
|
635
635
|
}, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
|
|
636
636
|
placeHolder: placeHolderText,
|
|
@@ -670,7 +670,7 @@ export class ToggleDropDown extends Component {
|
|
|
670
670
|
onScroll: this.handleScroll,
|
|
671
671
|
role: isSearch ? 'listbox' : undefined,
|
|
672
672
|
"aria-labelledby": isSearch ? ariaTitleId : undefined
|
|
673
|
-
}, isDataLoaded ? options && options.length != 0 ? isGroupDropDown ? /*#__PURE__*/React.createElement(Fragment, null, options.map(group => {
|
|
673
|
+
}, isDataLoaded ? options && options.length != 0 ? isGroupDropDown ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map(group => {
|
|
674
674
|
const groupName = group[groupNameKey];
|
|
675
675
|
const groupOptions = group[groupOptionsKey];
|
|
676
676
|
const {
|
|
@@ -752,7 +752,7 @@ export class ToggleDropDown extends Component {
|
|
|
752
752
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
753
753
|
isCover: false,
|
|
754
754
|
align: "both"
|
|
755
|
-
}, /*#__PURE__*/React.createElement(Loader, null))) : /*#__PURE__*/React.createElement(Fragment, null, options.map((item, i) => {
|
|
755
|
+
}, /*#__PURE__*/React.createElement(Loader, null))) : /*#__PURE__*/React.createElement(React.Fragment, null, options.map((item, i) => {
|
|
756
756
|
const {
|
|
757
757
|
iconName,
|
|
758
758
|
iconSize,
|
|
@@ -188,16 +188,17 @@ export default class TextEditor extends Component {
|
|
|
188
188
|
if (!global.editor[id]) {
|
|
189
189
|
global.editor[id] = editorObj;
|
|
190
190
|
}
|
|
191
|
-
const css = 'blockquote {margin:0 0 0 4px; }',
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
style.type = 'text/css';
|
|
195
|
-
if (style.styleSheet) {
|
|
196
|
-
|
|
197
|
-
} else {
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
head.appendChild(style);
|
|
191
|
+
// const css = 'blockquote {margin:0 0 0 4px; }',
|
|
192
|
+
// head = editorObj.doc.head || editorObj.doc.getElementsByTagName('head')[0],
|
|
193
|
+
// style = document.createElement('style');
|
|
194
|
+
// style.type = 'text/css';
|
|
195
|
+
// if (style.styleSheet) {
|
|
196
|
+
// style.styleSheet.cssText = css;
|
|
197
|
+
// } else {
|
|
198
|
+
// style.appendChild(editorObj.doc.createTextNode(css));
|
|
199
|
+
// }
|
|
200
|
+
// head.appendChild(style);
|
|
201
|
+
|
|
201
202
|
editorCallback && editorCallback(editorObj);
|
|
202
203
|
const iframe = selectn('iframe.contentDocument.body', editorObj) || null;
|
|
203
204
|
const iframeHead = selectn('iframe.contentDocument.head', editorObj) || null;
|
|
@@ -678,7 +678,7 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
678
678
|
},
|
|
679
679
|
palette: palette,
|
|
680
680
|
isResponsivePadding: true
|
|
681
|
-
}, DropBoxProps), /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, isSearch ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
681
|
+
}, DropBoxProps), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isSearch ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
682
682
|
className: _ToggleDropDownModule["default"].search
|
|
683
683
|
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], _extends({
|
|
684
684
|
placeHolder: placeHolderText,
|
|
@@ -718,7 +718,7 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
718
718
|
onScroll: _this6.handleScroll,
|
|
719
719
|
role: isSearch ? 'listbox' : undefined,
|
|
720
720
|
"aria-labelledby": isSearch ? ariaTitleId : undefined
|
|
721
|
-
}, isDataLoaded ? options && options.length != 0 ? isGroupDropDown ? /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, options.map(function (group) {
|
|
721
|
+
}, isDataLoaded ? options && options.length != 0 ? isGroupDropDown ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, options.map(function (group) {
|
|
722
722
|
var groupName = group[groupNameKey];
|
|
723
723
|
var groupOptions = group[groupOptionsKey];
|
|
724
724
|
var needDivider = group.needDivider;
|
|
@@ -798,7 +798,7 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
798
798
|
}), isFetchingOptions && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
799
799
|
isCover: false,
|
|
800
800
|
align: "both"
|
|
801
|
-
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null))) : /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, options.map(function (item, i) {
|
|
801
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null))) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, options.map(function (item, i) {
|
|
802
802
|
var iconName = item.iconName,
|
|
803
803
|
iconSize = item.iconSize,
|
|
804
804
|
iconClass = item.iconClass,
|
|
@@ -215,16 +215,17 @@ var TextEditor = /*#__PURE__*/function (_Component) {
|
|
|
215
215
|
if (!global.editor[id]) {
|
|
216
216
|
global.editor[id] = editorObj;
|
|
217
217
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
style.type = 'text/css';
|
|
222
|
-
if (style.styleSheet) {
|
|
223
|
-
|
|
224
|
-
} else {
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
head.appendChild(style);
|
|
218
|
+
// const css = 'blockquote {margin:0 0 0 4px; }',
|
|
219
|
+
// head = editorObj.doc.head || editorObj.doc.getElementsByTagName('head')[0],
|
|
220
|
+
// style = document.createElement('style');
|
|
221
|
+
// style.type = 'text/css';
|
|
222
|
+
// if (style.styleSheet) {
|
|
223
|
+
// style.styleSheet.cssText = css;
|
|
224
|
+
// } else {
|
|
225
|
+
// style.appendChild(editorObj.doc.createTextNode(css));
|
|
226
|
+
// }
|
|
227
|
+
// head.appendChild(style);
|
|
228
|
+
|
|
228
229
|
editorCallback && editorCallback(editorObj);
|
|
229
230
|
var iframe = (0, _selectn["default"])('iframe.contentDocument.body', editorObj) || null;
|
|
230
231
|
var iframeHead = (0, _selectn["default"])('iframe.contentDocument.head', editorObj) || null;
|