@zohodesk/dot 1.0.0-beta.197 → 1.0.0-beta.198

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
@@ -2,6 +2,10 @@
2
2
 
3
3
  In this Library we Provide Some Basic Components to Build Your Application
4
4
 
5
+ # 1.0.0-beta.198
6
+
7
+ - TextEditor => default font changed to Lato
8
+
5
9
  # 1.0.0-beta.196, 197
6
10
 
7
11
  - TextEditor => default font changed to Arial
@@ -83,8 +83,7 @@ export default class TextEditor extends Component {
83
83
  hookOnInsertHTML: validateEditorContentOnInsertHtml,
84
84
  needCustomPaste: function (event, editorObj) {
85
85
  return true; // By default reply editor needs customPaste, so returning true.
86
- },
87
- defaultfontfamily: "Arial"
86
+ }
88
87
  };
89
88
 
90
89
  if (!ZohoDeskEditor_Init.init) {
@@ -402,7 +401,7 @@ TextEditor.defaultProps = {
402
401
  border: 'borderTop',
403
402
  type: 'large',
404
403
  changeEditorContent: false,
405
- fontFamily: 'Arial',
404
+ fontFamily: 'Lato',
406
405
  shouldUpdateContent: true,
407
406
  i18nKeys: {},
408
407
  needInlineAttachment: false,
@@ -418,7 +417,7 @@ TextEditor.propTypes = {
418
417
  editorCallback: PropTypes.func,
419
418
  editorMode: PropTypes.string,
420
419
  editorOptions: PropTypes.object,
421
- fontFamily: PropTypes.oneOf(['Arial', 'Lato', 'Roboto', 'Puvi']),
420
+ fontFamily: PropTypes.oneOf(['Lato', 'Roboto', 'Puvi']),
422
421
  getRef: PropTypes.func,
423
422
  handleAlertMessage: PropTypes.func,
424
423
  handleDropUpload: PropTypes.func,
@@ -136,7 +136,7 @@ var TextEditor = /*#__PURE__*/function (_Component) {
136
136
  imgAspect: true
137
137
  }, _defineProperty(_defaultObj, "handleInlineDropImage", needInlineAttachment ? this.handleInlineUpload : null), _defineProperty(_defaultObj, "needInlineAttachHandling", needInlineAttachment), _defineProperty(_defaultObj, "hookOnInsertHTML", _editorUtils.validateEditorContentOnInsertHtml), _defineProperty(_defaultObj, "needCustomPaste", function needCustomPaste(event, editorObj) {
138
138
  return true; // By default reply editor needs customPaste, so returning true.
139
- }), _defineProperty(_defaultObj, "defaultfontfamily", "Arial"), _defaultObj);
139
+ }), _defaultObj);
140
140
 
141
141
  if (!ZohoDeskEditor_Init.init) {
142
142
  global.editorInitialize && global.editorInitialize();
@@ -445,7 +445,7 @@ TextEditor.defaultProps = {
445
445
  border: 'borderTop',
446
446
  type: 'large',
447
447
  changeEditorContent: false,
448
- fontFamily: 'Arial',
448
+ fontFamily: 'Lato',
449
449
  shouldUpdateContent: true,
450
450
  i18nKeys: {},
451
451
  needInlineAttachment: false,
@@ -461,7 +461,7 @@ TextEditor.propTypes = {
461
461
  editorCallback: _propTypes["default"].func,
462
462
  editorMode: _propTypes["default"].string,
463
463
  editorOptions: _propTypes["default"].object,
464
- fontFamily: _propTypes["default"].oneOf(['Arial', 'Lato', 'Roboto', 'Puvi']),
464
+ fontFamily: _propTypes["default"].oneOf(['Lato', 'Roboto', 'Puvi']),
465
465
  getRef: _propTypes["default"].func,
466
466
  handleAlertMessage: _propTypes["default"].func,
467
467
  handleDropUpload: _propTypes["default"].func,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-beta.197",
3
+ "version": "1.0.0-beta.198",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",
@@ -101,8 +101,7 @@ export default class TextEditor extends Component {
101
101
  hookOnInsertHTML: validateEditorContentOnInsertHtml,
102
102
  needCustomPaste: function (event, editorObj) {
103
103
  return true; // By default reply editor needs customPaste, so returning true.
104
- },
105
- defaultfontfamily: "Arial"
104
+ }
106
105
  };
107
106
  if (!ZohoDeskEditor_Init.init) {
108
107
  global.editorInitialize && global.editorInitialize();
@@ -380,7 +379,7 @@ TextEditor.defaultProps = {
380
379
  border: 'borderTop',
381
380
  type: 'large',
382
381
  changeEditorContent: false,
383
- fontFamily: 'Arial',
382
+ fontFamily: 'Lato',
384
383
  shouldUpdateContent: true,
385
384
  i18nKeys: {},
386
385
  needInlineAttachment: false,
@@ -397,7 +396,7 @@ TextEditor.propTypes = {
397
396
  editorCallback: PropTypes.func,
398
397
  editorMode: PropTypes.string,
399
398
  editorOptions: PropTypes.object,
400
- fontFamily: PropTypes.oneOf(['Arial', 'Lato', 'Roboto', 'Puvi']),
399
+ fontFamily: PropTypes.oneOf(['Lato', 'Roboto', 'Puvi']),
401
400
  getRef: PropTypes.func,
402
401
  handleAlertMessage: PropTypes.func,
403
402
  handleDropUpload: PropTypes.func,