@pie-lib/editable-html 12.1.1-next.1 → 12.2.0-next.2

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/CHANGELOG.md CHANGED
@@ -3,70 +3,52 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [12.1.0-next.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@12.1.0-next.2...@pie-lib/editable-html@12.1.0-next.4) (2026-01-27)
6
+ # [12.2.0-next.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@12.2.0-next.1...@pie-lib/editable-html@12.2.0-next.2) (2026-02-25)
7
7
 
8
8
  **Note:** Version bump only for package @pie-lib/editable-html
9
9
 
10
+ # [12.1.0-next.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@12.1.0-next.2...@pie-lib/editable-html@12.1.0-next.4) (2026-01-27)
10
11
 
11
-
12
-
12
+ **Note:** Version bump only for package @pie-lib/editable-html
13
13
 
14
14
  # [12.1.0-next.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@12.1.0-next.1...@pie-lib/editable-html@12.1.0-next.2) (2026-01-26)
15
15
 
16
16
  **Note:** Version bump only for package @pie-lib/editable-html
17
17
 
18
-
19
-
20
-
21
-
22
18
  # [12.1.0-next.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.21.2...@pie-lib/editable-html@12.1.0-next.1) (2026-01-26)
23
19
 
24
-
25
20
  ### Bug Fixes
26
21
 
27
- * add missing dependencies for dnd-kit ([c50ec8e](https://github.com/pie-framework/pie-lib/commit/c50ec8e0a839e574aa61db78ecd121c6fdbc70c9))
28
- * choice render for both img and math ([39bc638](https://github.com/pie-framework/pie-lib/commit/39bc638070fc5e9c5f2b50d0d70698f80a32ecb9))
29
- * fix math rendering issues after React, mui and drag upgrade for drag-in-the-blank ([6dc3c95](https://github.com/pie-framework/pie-lib/commit/6dc3c95c041be02015a9005133fe750e1ff78842))
30
- * fixed circular dependencies and bumped versions, plus image upload handling [PD-5141] ([7b5fbc9](https://github.com/pie-framework/pie-lib/commit/7b5fbc9126446916d42d6b3597232a231567b2d8))
31
- * implemented image, responseArea, math, and some custom toolbars [PD-5141] ([d1dd966](https://github.com/pie-framework/pie-lib/commit/d1dd966188d14f3e4a9c6e4c7dbc4a92da727fd5))
32
- * prevent math re-rendering issues when dragging choices over blanks ([b316544](https://github.com/pie-framework/pie-lib/commit/b316544f0d574f7f57b70e2de4d8bab2086a4151))
33
- * remove carets from [@pie-lib](https://github.com/pie-lib) dependencies and configure lerna to use exact versions ([c9cd800](https://github.com/pie-framework/pie-lib/commit/c9cd800844abca09e7acf1fd35b2ddf51a6d86df))
34
- * remove carret, point to specific libs version ([09939a5](https://github.com/pie-framework/pie-lib/commit/09939a5aca19d7dda03d62c93d4d524f98dd69da))
35
- * remove exports and publish ([#2068](https://github.com/pie-framework/pie-lib/issues/2068)) ([60a96cd](https://github.com/pie-framework/pie-lib/commit/60a96cde0ec65f6b1cac0ae329aa33a0abc50d05))
36
- * use fixed lib deps ([de7c64d](https://github.com/pie-framework/pie-lib/commit/de7c64d14f13259fe44d47405e4421baef21e24e))
37
- * **editable-html:** add slateEditorExtraStyles prop ([0b71f34](https://github.com/pie-framework/pie-lib/commit/0b71f3412aeb90d613d41a9afe93b9ccd13f09c4))
38
- * **editable-html:** replace ReactDOM.render() with createRoot() for React 18 compatibility ([e9618b5](https://github.com/pie-framework/pie-lib/commit/e9618b5d892ee98d08f4440934eec9be58ee170a))
39
-
22
+ - add missing dependencies for dnd-kit ([c50ec8e](https://github.com/pie-framework/pie-lib/commit/c50ec8e0a839e574aa61db78ecd121c6fdbc70c9))
23
+ - choice render for both img and math ([39bc638](https://github.com/pie-framework/pie-lib/commit/39bc638070fc5e9c5f2b50d0d70698f80a32ecb9))
24
+ - fix math rendering issues after React, mui and drag upgrade for drag-in-the-blank ([6dc3c95](https://github.com/pie-framework/pie-lib/commit/6dc3c95c041be02015a9005133fe750e1ff78842))
25
+ - fixed circular dependencies and bumped versions, plus image upload handling [PD-5141] ([7b5fbc9](https://github.com/pie-framework/pie-lib/commit/7b5fbc9126446916d42d6b3597232a231567b2d8))
26
+ - implemented image, responseArea, math, and some custom toolbars [PD-5141] ([d1dd966](https://github.com/pie-framework/pie-lib/commit/d1dd966188d14f3e4a9c6e4c7dbc4a92da727fd5))
27
+ - prevent math re-rendering issues when dragging choices over blanks ([b316544](https://github.com/pie-framework/pie-lib/commit/b316544f0d574f7f57b70e2de4d8bab2086a4151))
28
+ - remove carets from [@pie-lib](https://github.com/pie-lib) dependencies and configure lerna to use exact versions ([c9cd800](https://github.com/pie-framework/pie-lib/commit/c9cd800844abca09e7acf1fd35b2ddf51a6d86df))
29
+ - remove carret, point to specific libs version ([09939a5](https://github.com/pie-framework/pie-lib/commit/09939a5aca19d7dda03d62c93d4d524f98dd69da))
30
+ - remove exports and publish ([#2068](https://github.com/pie-framework/pie-lib/issues/2068)) ([60a96cd](https://github.com/pie-framework/pie-lib/commit/60a96cde0ec65f6b1cac0ae329aa33a0abc50d05))
31
+ - use fixed lib deps ([de7c64d](https://github.com/pie-framework/pie-lib/commit/de7c64d14f13259fe44d47405e4421baef21e24e))
32
+ - **editable-html:** add slateEditorExtraStyles prop ([0b71f34](https://github.com/pie-framework/pie-lib/commit/0b71f3412aeb90d613d41a9afe93b9ccd13f09c4))
33
+ - **editable-html:** replace ReactDOM.render() with createRoot() for React 18 compatibility ([e9618b5](https://github.com/pie-framework/pie-lib/commit/e9618b5d892ee98d08f4440934eec9be58ee170a))
40
34
 
41
35
  ### Features
42
36
 
43
- * bump react and react-dom ([01dc19e](https://github.com/pie-framework/pie-lib/commit/01dc19e88bbc8d372c561d1511df1a82937d45af))
44
- * drag library update ([fb7a4d0](https://github.com/pie-framework/pie-lib/commit/fb7a4d0ce761f2f4c1a122854cfa306abb8ea7c8))
45
- * initial work for tiptap changes [PD-5141] ([d73e617](https://github.com/pie-framework/pie-lib/commit/d73e6179c01e1497688c630da98213b31e9f4938))
46
- * packages/editable-html mui update PD-5268 ([6b8d201](https://github.com/pie-framework/pie-lib/commit/6b8d201cfc0bf7e26eea58e296109c463544075f))
47
- * sync latest changes from dev ([c936e9c](https://github.com/pie-framework/pie-lib/commit/c936e9c7f9e095e7d9b9805ac2bf72bd271e05f1))
48
- * updates for drag-in-the-blank ([0c096d8](https://github.com/pie-framework/pie-lib/commit/0c096d887f97edecd2dac68cda136b2d265dc7d5))
49
-
50
-
51
-
52
-
37
+ - bump react and react-dom ([01dc19e](https://github.com/pie-framework/pie-lib/commit/01dc19e88bbc8d372c561d1511df1a82937d45af))
38
+ - drag library update ([fb7a4d0](https://github.com/pie-framework/pie-lib/commit/fb7a4d0ce761f2f4c1a122854cfa306abb8ea7c8))
39
+ - initial work for tiptap changes [PD-5141] ([d73e617](https://github.com/pie-framework/pie-lib/commit/d73e6179c01e1497688c630da98213b31e9f4938))
40
+ - packages/editable-html mui update PD-5268 ([6b8d201](https://github.com/pie-framework/pie-lib/commit/6b8d201cfc0bf7e26eea58e296109c463544075f))
41
+ - sync latest changes from dev ([c936e9c](https://github.com/pie-framework/pie-lib/commit/c936e9c7f9e095e7d9b9805ac2bf72bd271e05f1))
42
+ - updates for drag-in-the-blank ([0c096d8](https://github.com/pie-framework/pie-lib/commit/0c096d887f97edecd2dac68cda136b2d265dc7d5))
53
43
 
54
44
  # [12.0.0-next.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.21.3-next.0...@pie-lib/editable-html@12.0.0-next.0) (2026-01-19)
55
45
 
56
46
  **Note:** Version bump only for package @pie-lib/editable-html
57
47
 
58
-
59
-
60
-
61
-
62
48
  ## [11.21.3-next.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.35.0-mui-update.0...@pie-lib/editable-html@11.21.3-next.0) (2026-01-19)
63
49
 
64
50
  **Note:** Version bump only for package @pie-lib/editable-html
65
51
 
66
-
67
-
68
-
69
-
70
52
  ## [11.21.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.21.1...@pie-lib/editable-html@11.21.2) (2025-11-27)
71
53
 
72
54
  **Note:** Version bump only for package @pie-lib/editable-html
package/lib/editor.js CHANGED
@@ -39,7 +39,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
39
39
  var _debug = _interopRequireDefault(require("debug"));
40
40
  var _styles = require("@mui/material/styles");
41
41
  var _renderUi = require("@pie-lib/render-ui");
42
- var _alertDialog = _interopRequireDefault(require("./shared/alert-dialog"));
42
+ var _alertDialog = _interopRequireDefault(require("../../config-ui/src/alert-dialog"));
43
43
  var _serialization = _interopRequireWildcard(require("./serialization"));
44
44
  var serialization = _serialization;
45
45
  exports.serialization = _serialization;
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@pie-lib/editable-html",
3
- "version": "12.1.1-next.1",
3
+ "version": "12.2.0-next.2",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.jsx",
8
8
  "author": "pie-framework developers",
9
+ "repository": "pie-framework/pie-lib",
9
10
  "dependencies": {
10
11
  "@dnd-kit/core": "6.3.1",
11
12
  "@dnd-kit/modifiers": "9.0.0",
@@ -14,11 +15,11 @@
14
15
  "@emotion/style": "^0.8.0",
15
16
  "@mui/icons-material": "^7.3.4",
16
17
  "@mui/material": "^7.3.4",
17
- "@pie-lib/drag": "^3.1.1-next.1",
18
- "@pie-lib/math-input": "^7.1.1-next.1",
19
- "@pie-lib/math-rendering": "^4.1.1-next.1",
20
- "@pie-lib/math-toolbar": "^2.1.1-next.1",
21
- "@pie-lib/render-ui": "^5.1.1-next.1",
18
+ "@pie-lib/drag": "^3.2.0-next.1",
19
+ "@pie-lib/math-input": "^7.2.0-next.2",
20
+ "@pie-lib/math-rendering": "^4.2.0-next.1",
21
+ "@pie-lib/math-toolbar": "^2.2.0-next.2",
22
+ "@pie-lib/render-ui": "^5.2.0-next.1",
22
23
  "change-case": "^3.0.2",
23
24
  "classnames": "^2.2.6",
24
25
  "debug": "^4.1.1",
@@ -50,6 +51,6 @@
50
51
  "publishConfig": {
51
52
  "access": "public"
52
53
  },
53
- "gitHead": "3bd6fd50a65d60fc94a893e87babf027c1144ed6",
54
+ "gitHead": "c295b634efeb1a84357378d9fc414f07b88798bd",
54
55
  "scripts": {}
55
56
  }
@@ -124,7 +124,6 @@ describe('htmlToValue', () => {
124
124
  const html = `<div><p>foo<img src="blah.jpg"/>bar</p></div>`;
125
125
  const v = htmlToValue(html);
126
126
 
127
- console.log(JSON.stringify(v.toJSON()));
128
127
  expect(v.toJSON()).toEqual(expected);
129
128
  });
130
129
 
@@ -1 +0,0 @@
1
- []
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _material = require("@mui/material");
11
- var _styles = require("@mui/material/styles");
12
- var StyledDialogTitle = (0, _styles.styled)(_material.DialogTitle)(function () {
13
- return {
14
- fontSize: 'max(1.25rem, 18px)'
15
- };
16
- });
17
- var StyledDialogContentText = (0, _styles.styled)(_material.DialogContentText)(function () {
18
- return {
19
- fontSize: 'max(1rem, 14px)'
20
- };
21
- });
22
- var AlertDialog = function AlertDialog(_ref) {
23
- var text = _ref.text,
24
- title = _ref.title,
25
- onClose = _ref.onClose,
26
- onConfirm = _ref.onConfirm,
27
- open = _ref.open,
28
- onCloseText = _ref.onCloseText,
29
- onConfirmText = _ref.onConfirmText,
30
- disableAutoFocus = _ref.disableAutoFocus,
31
- disableEnforceFocus = _ref.disableEnforceFocus,
32
- disableRestoreFocus = _ref.disableRestoreFocus;
33
- return /*#__PURE__*/_react["default"].createElement(_material.Dialog, {
34
- open: open,
35
- disableAutoFocus: disableAutoFocus,
36
- disableEnforceFocus: disableEnforceFocus,
37
- disableRestoreFocus: disableRestoreFocus,
38
- onClose: onClose
39
- }, title && /*#__PURE__*/_react["default"].createElement(StyledDialogTitle, null, title), text && /*#__PURE__*/_react["default"].createElement(_material.DialogContent, null, /*#__PURE__*/_react["default"].createElement(StyledDialogContentText, null, text)), /*#__PURE__*/_react["default"].createElement(_material.DialogActions, null, onClose && /*#__PURE__*/_react["default"].createElement(_material.Button, {
40
- onClick: onClose,
41
- color: "primary"
42
- }, onCloseText), onConfirm && /*#__PURE__*/_react["default"].createElement(_material.Button, {
43
- autoFocus: true,
44
- onClick: onConfirm,
45
- color: "primary"
46
- }, onConfirmText)));
47
- };
48
- AlertDialog.defaultProps = {
49
- onCloseText: 'CANCEL',
50
- onConfirmText: 'OK',
51
- disableAutoFocus: false,
52
- disableEnforceFocus: false,
53
- disableRestoreFocus: false
54
- };
55
- AlertDialog.propTypes = {
56
- text: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].object]),
57
- title: _propTypes["default"].string,
58
- onClose: _propTypes["default"].func,
59
- onConfirm: _propTypes["default"].func,
60
- open: _propTypes["default"].bool,
61
- onConfirmText: _propTypes["default"].string,
62
- onCloseText: _propTypes["default"].string,
63
- disableAutoFocus: _propTypes["default"].bool,
64
- disableEnforceFocus: _propTypes["default"].bool,
65
- disableRestoreFocus: _propTypes["default"].bool
66
- };
67
- var _default = exports["default"] = AlertDialog;
68
- //# sourceMappingURL=alert-dialog.js.map