@crystaldesign/diva-backoffice 24.12.0-beta.10 → 24.12.0-beta.16

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.
@@ -73,7 +73,7 @@ import 'jsoneditor/dist/jsoneditor.css';
73
73
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
74
74
  import { MinusCircleOutlined, PlusOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, FileUnknownOutlined, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, PushpinOutlined, PushpinFilled, ReloadOutlined as ReloadOutlined$1 } from '@ant-design/icons';
75
75
  import classnames from 'classnames';
76
- import { Editor } from '@tinymce/tinymce-react';
76
+ import RTFEditor from '@crystaldesign/rtf-editor';
77
77
  import debounce from 'lodash/debounce';
78
78
  import Button$1 from 'antd/es/button';
79
79
  import Upload$1 from 'antd/es/upload';
@@ -15289,26 +15289,13 @@ var RichTextEditor = function RichTextEditor(_ref) {
15289
15289
  var initValue = _ref.initValue,
15290
15290
  onChange = _ref.onChange,
15291
15291
  name = _ref.name;
15292
- var _useDivaCore = useDivaCore(),
15293
- tinyMceApiKey = _useDivaCore.state.tinyMceApiKey;
15294
15292
  var val = useRef(initValue);
15295
- return /*#__PURE__*/jsx(Editor, {
15296
- apiKey: tinyMceApiKey,
15297
- onEditorChange: function onEditorChange(val, e) {
15298
- onChange === null || onChange === void 0 || onChange(name, val);
15299
- },
15293
+ function handleChange(val) {
15294
+ onChange(name, val);
15295
+ }
15296
+ return /*#__PURE__*/jsx(RTFEditor, {
15300
15297
  initialValue: val.current,
15301
- textareaName: "text",
15302
- init: {
15303
- height: 500,
15304
- menubar: false,
15305
- plugins: ['advlist autolink lists link table paste'],
15306
- contextmenu: '',
15307
- resize: false,
15308
- statusbar: false,
15309
- toolbar: 'undo redo | formatselect | ' + 'bold italic backcolor | alignleft aligncenter ' + 'alignright alignjustify | bullist numlist outdent indent | table ',
15310
- content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
15311
- }
15298
+ onChange: handleChange
15312
15299
  });
15313
15300
  };
15314
15301
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/RichTextEditor/index.tsx"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG;IAAE,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;CAAE,CAAC;AAEzI,QAAA,MAAM,cAAc,kCAAmC,KAAK,gBA6B3D,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/RichTextEditor/index.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IAAE,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;CAAE,CAAC;AAEzI,QAAA,MAAM,cAAc,kCAAmC,KAAK,gBAQ3D,CAAC;AAEF,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "24.12.0-beta.10",
3
+ "version": "24.12.0-beta.16",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@testing-library/jest-dom": "^5.15.0",
@@ -16,9 +16,9 @@
16
16
  "@ant-design/icons": "5.0.1",
17
17
  "@babel/runtime": "7.18.0",
18
18
  "@crystaldesign/content-item": "24.11.0-beta.10",
19
- "@crystaldesign/spreadsheet": "24.12.0-beta.10",
19
+ "@crystaldesign/rtf-editor": "24.12.0-beta.16",
20
+ "@crystaldesign/spreadsheet": "24.12.0-beta.16",
20
21
  "@google/model-viewer": "3.4.0",
21
- "@tinymce/tinymce-react": "^3.13.0",
22
22
  "ag-charts-community": "^9.3.1",
23
23
  "ag-charts-react": "^9.3.1",
24
24
  "antd": "5.0.0",
@@ -53,5 +53,5 @@
53
53
  },
54
54
  "module": "build/esm/index.js",
55
55
  "types": "./build/types/backoffice/src/index.d.ts",
56
- "gitHead": "ae2fba6651a64d9e9cc9e6f071382e8a6bb72329"
56
+ "gitHead": "c4637cc66f8e880e0a9a7f8d58ef21d7a8baf105"
57
57
  }