@seafile/sdoc-editor 0.1.163 → 0.1.164

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.
@@ -2,7 +2,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
2
2
  var _excluded = ["text"];
3
3
  import React from 'react';
4
4
  import Caret from './caret';
5
- import { DEFAULT_FONT, TEXT_STYLE_MAP } from '../../constants';
5
+ import { TEXT_STYLE_MAP } from '../../constants';
6
6
  import { generatorFontFamily } from '../font/helpers';
7
7
  var renderText = function renderText(props, editor) {
8
8
  var attributes = props.attributes,
@@ -18,7 +18,7 @@ var SDocViewer = function SDocViewer(_ref) {
18
18
  var slateValue = (document || generateDefaultDocContent()).children;
19
19
  var decorate = usePipDecorate(validEditor);
20
20
  return /*#__PURE__*/React.createElement(EditorContainer, {
21
- editor: editor,
21
+ editor: validEditor,
22
22
  showToolbar: showToolbar,
23
23
  readonly: true
24
24
  }, /*#__PURE__*/React.createElement(EditorContent, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.1.163",
3
+ "version": "0.1.164",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",