@pie-lib/editable-html 11.3.0-beta.0 → 11.3.0

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.
Files changed (76) hide show
  1. package/CHANGELOG.json +12 -3322
  2. package/CHANGELOG.md +120 -96
  3. package/package.json +7 -6
  4. package/src/editor.jsx +3 -3
  5. package/src/plugins/media/media-dialog.js +1 -1
  6. package/src/plugins/respArea/drag-in-the-blank/choice.jsx +1 -1
  7. package/src/plugins/toolbar/default-toolbar.jsx +6 -4
  8. package/src/plugins/toolbar/editor-and-toolbar.jsx +1 -1
  9. package/src/plugins/toolbar/toolbar.jsx +4 -4
  10. package/lib/__tests__/editor.test.js +0 -470
  11. package/lib/__tests__/serialization.test.js +0 -246
  12. package/lib/__tests__/utils.js +0 -106
  13. package/lib/block-tags.js +0 -25
  14. package/lib/constants.js +0 -16
  15. package/lib/editor.js +0 -1355
  16. package/lib/index.js +0 -269
  17. package/lib/parse-html.js +0 -16
  18. package/lib/plugins/characters/custom-popper.js +0 -73
  19. package/lib/plugins/characters/index.js +0 -305
  20. package/lib/plugins/characters/utils.js +0 -381
  21. package/lib/plugins/css/icons/index.js +0 -37
  22. package/lib/plugins/css/index.js +0 -397
  23. package/lib/plugins/customPlugin/index.js +0 -114
  24. package/lib/plugins/html/icons/index.js +0 -38
  25. package/lib/plugins/html/index.js +0 -80
  26. package/lib/plugins/image/__tests__/component.test.js +0 -51
  27. package/lib/plugins/image/__tests__/image-toolbar-logic.test.js +0 -56
  28. package/lib/plugins/image/__tests__/image-toolbar.test.js +0 -26
  29. package/lib/plugins/image/__tests__/index.test.js +0 -98
  30. package/lib/plugins/image/__tests__/insert-image-handler.test.js +0 -125
  31. package/lib/plugins/image/__tests__/mock-change.js +0 -25
  32. package/lib/plugins/image/alt-dialog.js +0 -129
  33. package/lib/plugins/image/component.js +0 -419
  34. package/lib/plugins/image/image-toolbar.js +0 -177
  35. package/lib/plugins/image/index.js +0 -263
  36. package/lib/plugins/image/insert-image-handler.js +0 -161
  37. package/lib/plugins/index.js +0 -402
  38. package/lib/plugins/list/__tests__/index.test.js +0 -79
  39. package/lib/plugins/list/index.js +0 -334
  40. package/lib/plugins/math/__tests__/index.test.js +0 -300
  41. package/lib/plugins/math/index.js +0 -454
  42. package/lib/plugins/media/__tests__/index.test.js +0 -71
  43. package/lib/plugins/media/index.js +0 -387
  44. package/lib/plugins/media/media-dialog.js +0 -709
  45. package/lib/plugins/media/media-toolbar.js +0 -101
  46. package/lib/plugins/media/media-wrapper.js +0 -93
  47. package/lib/plugins/rendering/index.js +0 -46
  48. package/lib/plugins/respArea/drag-in-the-blank/choice.js +0 -254
  49. package/lib/plugins/respArea/drag-in-the-blank/index.js +0 -97
  50. package/lib/plugins/respArea/explicit-constructed-response/index.js +0 -57
  51. package/lib/plugins/respArea/icons/index.js +0 -95
  52. package/lib/plugins/respArea/index.js +0 -341
  53. package/lib/plugins/respArea/inline-dropdown/index.js +0 -75
  54. package/lib/plugins/respArea/math-templated/index.js +0 -130
  55. package/lib/plugins/respArea/utils.js +0 -125
  56. package/lib/plugins/table/CustomTablePlugin.js +0 -133
  57. package/lib/plugins/table/__tests__/index.test.js +0 -442
  58. package/lib/plugins/table/__tests__/table-toolbar.test.js +0 -54
  59. package/lib/plugins/table/icons/index.js +0 -69
  60. package/lib/plugins/table/index.js +0 -483
  61. package/lib/plugins/table/table-toolbar.js +0 -187
  62. package/lib/plugins/textAlign/icons/index.js +0 -226
  63. package/lib/plugins/textAlign/index.js +0 -34
  64. package/lib/plugins/toolbar/__tests__/default-toolbar.test.js +0 -128
  65. package/lib/plugins/toolbar/__tests__/editor-and-toolbar.test.js +0 -51
  66. package/lib/plugins/toolbar/__tests__/toolbar-buttons.test.js +0 -54
  67. package/lib/plugins/toolbar/__tests__/toolbar.test.js +0 -120
  68. package/lib/plugins/toolbar/default-toolbar.js +0 -229
  69. package/lib/plugins/toolbar/done-button.js +0 -53
  70. package/lib/plugins/toolbar/editor-and-toolbar.js +0 -286
  71. package/lib/plugins/toolbar/index.js +0 -34
  72. package/lib/plugins/toolbar/toolbar-buttons.js +0 -194
  73. package/lib/plugins/toolbar/toolbar.js +0 -376
  74. package/lib/plugins/utils.js +0 -62
  75. package/lib/serialization.js +0 -677
  76. package/lib/theme.js +0 -9
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
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
- # [11.3.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.3.0-beta.0) (2025-07-15)
6
+ # [11.3.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.3.0) (2025-07-31)
7
7
 
8
8
  **Note:** Version bump only for package @pie-lib/editable-html
9
9
 
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [11.2.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.0) (2025-07-15)
14
+ # [11.4.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.4.0) (2025-07-31)
15
15
 
16
16
  **Note:** Version bump only for package @pie-lib/editable-html
17
17
 
@@ -19,48 +19,39 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
19
19
 
20
20
 
21
21
 
22
- # [11.1.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.9...@pie-lib/editable-html@11.1.0) (2023-10-16)
23
-
24
-
25
- ### Bug Fixes
26
-
27
- * made sure editor is waiting for image and sound upload before finishes editing PD-2950 ([41b9407](https://github.com/pie-framework/pie-lib/commit/41b94078da7c50ce8d36fdc67bda83a44e0bff9b))
22
+ # [11.3.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.3.0) (2025-07-31)
28
23
 
24
+ **Note:** Version bump only for package @pie-lib/editable-html
29
25
 
30
- ### Features
31
26
 
32
- * made sure editor is waiting for image and sound upload before finishes editing PD-2950 ([#948](https://github.com/pie-framework/pie-lib/issues/948)) ([bd16707](https://github.com/pie-framework/pie-lib/commit/bd16707f13f824dfe2c2db7f395e58fa25eb2ffb))
33
27
 
34
28
 
35
29
 
30
+ # [11.2.0-beta.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.8) (2025-07-25)
36
31
 
32
+ **Note:** Version bump only for package @pie-lib/editable-html
37
33
 
38
- ## [11.0.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.8...@pie-lib/editable-html@11.0.9) (2023-10-16)
39
34
 
40
35
 
41
- ### Bug Fixes
42
36
 
43
- * **editable-html:** add clarifying comments for HTML mode edit tracking PD-2765 ([3870a4d](https://github.com/pie-framework/pie-lib/commit/3870a4d9b2e618ae6f32e6d20713978c4d791b14))
44
- * **editable-html:** hide DoneButton on active htmlMode PD-2765 ([636a302](https://github.com/pie-framework/pie-lib/commit/636a302ab81016b2de8a16b1e6d96923d25b0592))
45
- * **editable-html:** Prevent infinite loop in componentDidUpdate by refining isEdited state check PD-2765 ([e858ad0](https://github.com/pie-framework/pie-lib/commit/e858ad030e444b6be1ea57e950e6aa3462b5f60d))
46
- * **editable-html:** Remove body overflow set by Material-UI and disable dialog scroll lock PD-3233 ([8ab4bde](https://github.com/pie-framework/pie-lib/commit/8ab4bde07fa411ef3cb31794309213bde541b6eb))
47
37
 
38
+ # [11.2.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.7) (2025-07-25)
48
39
 
40
+ **Note:** Version bump only for package @pie-lib/editable-html
49
41
 
50
42
 
51
43
 
52
- ## [11.0.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.7...@pie-lib/editable-html@11.0.8) (2023-10-03)
53
44
 
54
45
 
55
- ### Bug Fixes
46
+ # [11.2.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.7) (2025-07-25)
56
47
 
57
- * revert to pie-lib/math-rendering that what working ([25660ea](https://github.com/pie-framework/pie-lib/commit/25660ea6595e800a71c5494bd3bb9eecd3609a5a))
48
+ **Note:** Version bump only for package @pie-lib/editable-html
58
49
 
59
50
 
60
51
 
61
52
 
62
53
 
63
- ## [11.0.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.6...@pie-lib/editable-html@11.0.7) (2023-10-01)
54
+ # [11.2.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.6) (2025-07-25)
64
55
 
65
56
  **Note:** Version bump only for package @pie-lib/editable-html
66
57
 
@@ -68,7 +59,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
68
59
 
69
60
 
70
61
 
71
- ## [11.0.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.5...@pie-lib/editable-html@11.0.6) (2023-09-27)
62
+ # [11.2.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.6) (2025-07-25)
72
63
 
73
64
  **Note:** Version bump only for package @pie-lib/editable-html
74
65
 
@@ -76,7 +67,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
76
67
 
77
68
 
78
69
 
79
- ## [11.0.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.4...@pie-lib/editable-html@11.0.5) (2023-09-27)
70
+ # [11.2.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.5) (2025-07-25)
80
71
 
81
72
  **Note:** Version bump only for package @pie-lib/editable-html
82
73
 
@@ -84,7 +75,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
84
75
 
85
76
 
86
77
 
87
- ## [11.0.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.3...@pie-lib/editable-html@11.0.4) (2023-09-27)
78
+ # [11.2.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.5) (2025-07-25)
88
79
 
89
80
  **Note:** Version bump only for package @pie-lib/editable-html
90
81
 
@@ -92,18 +83,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
92
83
 
93
84
 
94
85
 
95
- ## [11.0.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.2...@pie-lib/editable-html@11.0.3) (2023-09-26)
96
-
86
+ # [11.2.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.4) (2025-07-25)
97
87
 
98
- ### Bug Fixes
99
-
100
- * **charting:** adjust icon for the drag handle PD-2790 ([fe670d7](https://github.com/pie-framework/pie-lib/commit/fe670d7a04f44da5c93dadbeec41b753ce50f9f6))
88
+ **Note:** Version bump only for package @pie-lib/editable-html
101
89
 
102
90
 
103
91
 
104
92
 
105
93
 
106
- ## [11.0.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.1...@pie-lib/editable-html@11.0.2) (2023-09-25)
94
+ # [11.2.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.3) (2025-07-25)
107
95
 
108
96
  **Note:** Version bump only for package @pie-lib/editable-html
109
97
 
@@ -111,7 +99,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
111
99
 
112
100
 
113
101
 
114
- ## [11.0.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.0...@pie-lib/editable-html@11.0.1) (2023-09-20)
102
+ # [11.2.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.4) (2025-07-23)
115
103
 
116
104
  **Note:** Version bump only for package @pie-lib/editable-html
117
105
 
@@ -119,35 +107,31 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
119
107
 
120
108
 
121
109
 
122
- # [11.0.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.7...@pie-lib/editable-html@11.0.0) (2023-09-20)
123
-
110
+ # [11.2.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.3) (2025-07-23)
124
111
 
125
- ### Bug Fixes
112
+ **Note:** Version bump only for package @pie-lib/editable-html
126
113
 
127
- * update mathml-to-latex version ([1d101d2](https://github.com/pie-framework/pie-lib/commit/1d101d22298bd480a5aec638e4c9708d5aa52ce4))
128
114
 
129
115
 
130
- ### BREAKING CHANGES
131
116
 
132
- * updated mathml-to-latex version.
133
117
 
118
+ # [11.2.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.3) (2025-07-20)
134
119
 
120
+ **Note:** Version bump only for package @pie-lib/editable-html
135
121
 
136
122
 
137
123
 
138
- ## [10.0.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.6...@pie-lib/editable-html@10.0.7) (2023-09-18)
139
124
 
140
125
 
141
- ### Bug Fixes
126
+ # [11.2.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.2) (2025-07-20)
142
127
 
143
- * use the mathMl resulted no matter if new latex is not identical; added a function to fix the round branckets issue ([61eeaed](https://github.com/pie-framework/pie-lib/commit/61eeaedc240bc247842a0164c07e58a8d8d792c9))
144
- * **editable-html:** Disable HTML mode in player & retain html mode on alert dialog cancel PD-2765 ([4c56092](https://github.com/pie-framework/pie-lib/commit/4c56092bc66ebde1571b42419c563c580c68b927))
128
+ **Note:** Version bump only for package @pie-lib/editable-html
145
129
 
146
130
 
147
131
 
148
132
 
149
133
 
150
- ## [10.0.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.5...@pie-lib/editable-html@10.0.6) (2023-09-14)
134
+ # [11.2.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.1) (2025-07-20)
151
135
 
152
136
  **Note:** Version bump only for package @pie-lib/editable-html
153
137
 
@@ -155,180 +139,220 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
155
139
 
156
140
 
157
141
 
158
- ## [10.0.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.4...@pie-lib/editable-html@10.0.5) (2023-09-14)
142
+ # [11.2.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.2) (2025-07-20)
159
143
 
144
+ **Note:** Version bump only for package @pie-lib/editable-html
160
145
 
161
- ### Bug Fixes
162
146
 
163
- * sanity check ([88e9afd](https://github.com/pie-framework/pie-lib/commit/88e9afd40b0aada05eb55284e00c7d918f029f08))
164
147
 
165
148
 
166
149
 
150
+ # [11.2.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.1) (2025-07-20)
167
151
 
152
+ **Note:** Version bump only for package @pie-lib/editable-html
168
153
 
169
- ## [10.0.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.3...@pie-lib/editable-html@10.0.4) (2023-09-14)
170
154
 
171
155
 
172
- ### Bug Fixes
173
156
 
174
- * import reduceMultipleBrs, add more details into console message PD-3167 ([5adcc05](https://github.com/pie-framework/pie-lib/commit/5adcc054e1bd5a71809827484d368d172a1255d3))
175
157
 
158
+ # [11.2.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.1) (2025-07-20)
176
159
 
160
+ **Note:** Version bump only for package @pie-lib/editable-html
177
161
 
178
162
 
179
163
 
180
- ## [10.0.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.2...@pie-lib/editable-html@10.0.3) (2023-09-05)
181
164
 
182
165
 
183
- ### Bug Fixes
166
+ # [11.2.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.0) (2025-07-20)
184
167
 
185
- * make HTML disabled by default PD-2765 ([82bd362](https://github.com/pie-framework/pie-lib/commit/82bd36240205b8e0e31043cc8559267de0d5dc30))
168
+ **Note:** Version bump only for package @pie-lib/editable-html
186
169
 
187
170
 
188
171
 
189
172
 
190
173
 
191
- ## [10.0.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.1...@pie-lib/editable-html@10.0.2) (2023-09-02)
174
+ # [11.3.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.3.0-beta.0) (2025-07-15)
192
175
 
176
+ **Note:** Version bump only for package @pie-lib/editable-html
193
177
 
194
- ### Bug Fixes
178
+ # [11.2.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.1.1...@pie-lib/editable-html@11.2.0-beta.0) (2025-07-15)
195
179
 
196
- * made sure div blocks are not present at the same level as paragraph ones PD-3051 ([f597969](https://github.com/pie-framework/pie-lib/commit/f59796980ad87323b401543fb3963edcea3775c6))
180
+ **Note:** Version bump only for package @pie-lib/editable-html
197
181
 
182
+ # [11.1.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.9...@pie-lib/editable-html@11.1.0) (2023-10-16)
198
183
 
184
+ ### Bug Fixes
199
185
 
186
+ - made sure editor is waiting for image and sound upload before finishes editing PD-2950 ([41b9407](https://github.com/pie-framework/pie-lib/commit/41b94078da7c50ce8d36fdc67bda83a44e0bff9b))
200
187
 
188
+ ### Features
201
189
 
202
- ## [10.0.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.0...@pie-lib/editable-html@10.0.1) (2023-09-02)
190
+ - made sure editor is waiting for image and sound upload before finishes editing PD-2950 ([#948](https://github.com/pie-framework/pie-lib/issues/948)) ([bd16707](https://github.com/pie-framework/pie-lib/commit/bd16707f13f824dfe2c2db7f395e58fa25eb2ffb))
203
191
 
192
+ ## [11.0.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.8...@pie-lib/editable-html@11.0.9) (2023-10-16)
204
193
 
205
194
  ### Bug Fixes
206
195
 
207
- * made sure multiple nodes are wrapped in a block, in order for slate to handle it properly PD-3051 ([fd6ed48](https://github.com/pie-framework/pie-lib/commit/fd6ed48070979cd34bc64403228b728394a8afed))
208
-
196
+ - **editable-html:** add clarifying comments for HTML mode edit tracking PD-2765 ([3870a4d](https://github.com/pie-framework/pie-lib/commit/3870a4d9b2e618ae6f32e6d20713978c4d791b14))
197
+ - **editable-html:** hide DoneButton on active htmlMode PD-2765 ([636a302](https://github.com/pie-framework/pie-lib/commit/636a302ab81016b2de8a16b1e6d96923d25b0592))
198
+ - **editable-html:** Prevent infinite loop in componentDidUpdate by refining isEdited state check PD-2765 ([e858ad0](https://github.com/pie-framework/pie-lib/commit/e858ad030e444b6be1ea57e950e6aa3462b5f60d))
199
+ - **editable-html:** Remove body overflow set by Material-UI and disable dialog scroll lock PD-3233 ([8ab4bde](https://github.com/pie-framework/pie-lib/commit/8ab4bde07fa411ef3cb31794309213bde541b6eb))
209
200
 
201
+ ## [11.0.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.7...@pie-lib/editable-html@11.0.8) (2023-10-03)
210
202
 
203
+ ### Bug Fixes
211
204
 
205
+ - revert to pie-lib/math-rendering that what working ([25660ea](https://github.com/pie-framework/pie-lib/commit/25660ea6595e800a71c5494bd3bb9eecd3609a5a))
212
206
 
213
- # [10.0.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.8...@pie-lib/editable-html@10.0.0) (2023-08-30)
207
+ ## [11.0.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.6...@pie-lib/editable-html@11.0.7) (2023-10-01)
214
208
 
209
+ **Note:** Version bump only for package @pie-lib/editable-html
215
210
 
216
- ### Bug Fixes
211
+ ## [11.0.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.5...@pie-lib/editable-html@11.0.6) (2023-09-27)
217
212
 
218
- * **editable-html:** Update 'isEdited' state to accurately track changes made in HTML mode PD-2765 ([913543e](https://github.com/pie-framework/pie-lib/commit/913543ec75302da3de0b86efc48c62bb06f92515))
213
+ **Note:** Version bump only for package @pie-lib/editable-html
219
214
 
215
+ ## [11.0.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.4...@pie-lib/editable-html@11.0.5) (2023-09-27)
220
216
 
221
- ### Features
217
+ **Note:** Version bump only for package @pie-lib/editable-html
222
218
 
223
- * **editable-html:** display warning dialog conditional on edits in HTML mode PD-2765 ([58d66d5](https://github.com/pie-framework/pie-lib/commit/58d66d57668a8288f32e3e6ed78cf97a61f58b17))
224
- * **editable-html:** display warning dialog upon exiting html mode PD-2765 ([8fd9fb9](https://github.com/pie-framework/pie-lib/commit/8fd9fb964f681d261e22ec09aa8b8e6def2f7744))
225
- * **editable-html:** implement toggle functionality for for switching between WYSIWYG and plain text HTML editors PD-2765 ([d44a549](https://github.com/pie-framework/pie-lib/commit/d44a549dcd4bb117c71a1f90bd7bc8eeb6a82a5e))
226
- * **editable-html:** implement toggle functionality for switching between WYSIWYG and plain text HTML editors PD-2765 ([6541a85](https://github.com/pie-framework/pie-lib/commit/6541a85dd430d4d7c81fe3960a37e597f29a0ec2))
227
- * **editable-html:** only show relevant toolbar buttons in HTML mode PD-2765 ([ed36dcb](https://github.com/pie-framework/pie-lib/commit/ed36dcb9a95f3d990da967f65e942922b60e42e6))
228
- * **editable-html:** revise state handling for isHtmlMode and isEdited to accurately display choices in response area when toggling between html mode and rich text editor ([c800a22](https://github.com/pie-framework/pie-lib/commit/c800a22e323e863bae691e07b2b80774997ba0ea))
229
- * **editable-html:** revise state handling for isHtmlMode and isEdited to accurately display choices in response area when toggling between html mode and rich text editor ([6daf84e](https://github.com/pie-framework/pie-lib/commit/6daf84e9692df368f7aa6866a33368941312872e))
219
+ ## [11.0.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.3...@pie-lib/editable-html@11.0.4) (2023-09-27)
230
220
 
221
+ **Note:** Version bump only for package @pie-lib/editable-html
231
222
 
232
- ### BREAKING CHANGES
223
+ ## [11.0.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.2...@pie-lib/editable-html@11.0.3) (2023-09-26)
233
224
 
234
- * **editable-html:** add a button to the editable-html editor that changes the field from using a WYSIWYG editor to using a plaintext editor that displays the raw HTML and allows it to be edited.
225
+ ### Bug Fixes
235
226
 
227
+ - **charting:** adjust icon for the drag handle PD-2790 ([fe670d7](https://github.com/pie-framework/pie-lib/commit/fe670d7a04f44da5c93dadbeec41b753ce50f9f6))
236
228
 
229
+ ## [11.0.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.1...@pie-lib/editable-html@11.0.2) (2023-09-25)
237
230
 
231
+ **Note:** Version bump only for package @pie-lib/editable-html
238
232
 
233
+ ## [11.0.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@11.0.0...@pie-lib/editable-html@11.0.1) (2023-09-20)
239
234
 
240
- ## [9.7.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.7...@pie-lib/editable-html@9.7.8) (2023-08-21)
235
+ **Note:** Version bump only for package @pie-lib/editable-html
241
236
 
237
+ # [11.0.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.7...@pie-lib/editable-html@11.0.0) (2023-09-20)
242
238
 
243
239
  ### Bug Fixes
244
240
 
245
- * revert revert changes made for PD-3051 because they were causing PD-3119 ([371111c](https://github.com/pie-framework/pie-lib/commit/371111c26e0b0f886724f72ea67df0da3febef74))
241
+ - update mathml-to-latex version ([1d101d2](https://github.com/pie-framework/pie-lib/commit/1d101d22298bd480a5aec638e4c9708d5aa52ce4))
246
242
 
243
+ ### BREAKING CHANGES
247
244
 
245
+ - updated mathml-to-latex version.
248
246
 
247
+ ## [10.0.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.6...@pie-lib/editable-html@10.0.7) (2023-09-18)
249
248
 
249
+ ### Bug Fixes
250
250
 
251
- ## [9.7.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.6...@pie-lib/editable-html@9.7.7) (2023-08-21)
251
+ - use the mathMl resulted no matter if new latex is not identical; added a function to fix the round branckets issue ([61eeaed](https://github.com/pie-framework/pie-lib/commit/61eeaedc240bc247842a0164c07e58a8d8d792c9))
252
+ - **editable-html:** Disable HTML mode in player & retain html mode on alert dialog cancel PD-2765 ([4c56092](https://github.com/pie-framework/pie-lib/commit/4c56092bc66ebde1571b42419c563c580c68b927))
253
+
254
+ ## [10.0.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.5...@pie-lib/editable-html@10.0.6) (2023-09-14)
252
255
 
253
256
  **Note:** Version bump only for package @pie-lib/editable-html
254
257
 
258
+ ## [10.0.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.4...@pie-lib/editable-html@10.0.5) (2023-09-14)
255
259
 
260
+ ### Bug Fixes
256
261
 
262
+ - sanity check ([88e9afd](https://github.com/pie-framework/pie-lib/commit/88e9afd40b0aada05eb55284e00c7d918f029f08))
257
263
 
264
+ ## [10.0.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.3...@pie-lib/editable-html@10.0.4) (2023-09-14)
258
265
 
259
- ## [9.7.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.5...@pie-lib/editable-html@9.7.6) (2023-08-15)
266
+ ### Bug Fixes
260
267
 
261
- **Note:** Version bump only for package @pie-lib/editable-html
268
+ - import reduceMultipleBrs, add more details into console message PD-3167 ([5adcc05](https://github.com/pie-framework/pie-lib/commit/5adcc054e1bd5a71809827484d368d172a1255d3))
262
269
 
270
+ ## [10.0.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.2...@pie-lib/editable-html@10.0.3) (2023-09-05)
263
271
 
272
+ ### Bug Fixes
264
273
 
274
+ - make HTML disabled by default PD-2765 ([82bd362](https://github.com/pie-framework/pie-lib/commit/82bd36240205b8e0e31043cc8559267de0d5dc30))
265
275
 
276
+ ## [10.0.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.1...@pie-lib/editable-html@10.0.2) (2023-09-02)
266
277
 
267
- ## [9.7.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.4...@pie-lib/editable-html@9.7.5) (2023-08-07)
278
+ ### Bug Fixes
268
279
 
280
+ - made sure div blocks are not present at the same level as paragraph ones PD-3051 ([f597969](https://github.com/pie-framework/pie-lib/commit/f59796980ad87323b401543fb3963edcea3775c6))
281
+
282
+ ## [10.0.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@10.0.0...@pie-lib/editable-html@10.0.1) (2023-09-02)
269
283
 
270
284
  ### Bug Fixes
271
285
 
272
- * made sure content is wrapped in a paragraph in order for slate to handle it properly PD-3051 ([4e3f756](https://github.com/pie-framework/pie-lib/commit/4e3f756bc783cae3b67762cacfacc09d32828918))
286
+ - made sure multiple nodes are wrapped in a block, in order for slate to handle it properly PD-3051 ([fd6ed48](https://github.com/pie-framework/pie-lib/commit/fd6ed48070979cd34bc64403228b728394a8afed))
273
287
 
288
+ # [10.0.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.8...@pie-lib/editable-html@10.0.0) (2023-08-30)
274
289
 
290
+ ### Bug Fixes
275
291
 
292
+ - **editable-html:** Update 'isEdited' state to accurately track changes made in HTML mode PD-2765 ([913543e](https://github.com/pie-framework/pie-lib/commit/913543ec75302da3de0b86efc48c62bb06f92515))
276
293
 
294
+ ### Features
277
295
 
278
- ## [9.7.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.3...@pie-lib/editable-html@9.7.4) (2023-07-31)
296
+ - **editable-html:** display warning dialog conditional on edits in HTML mode PD-2765 ([58d66d5](https://github.com/pie-framework/pie-lib/commit/58d66d57668a8288f32e3e6ed78cf97a61f58b17))
297
+ - **editable-html:** display warning dialog upon exiting html mode PD-2765 ([8fd9fb9](https://github.com/pie-framework/pie-lib/commit/8fd9fb964f681d261e22ec09aa8b8e6def2f7744))
298
+ - **editable-html:** implement toggle functionality for for switching between WYSIWYG and plain text HTML editors PD-2765 ([d44a549](https://github.com/pie-framework/pie-lib/commit/d44a549dcd4bb117c71a1f90bd7bc8eeb6a82a5e))
299
+ - **editable-html:** implement toggle functionality for switching between WYSIWYG and plain text HTML editors PD-2765 ([6541a85](https://github.com/pie-framework/pie-lib/commit/6541a85dd430d4d7c81fe3960a37e597f29a0ec2))
300
+ - **editable-html:** only show relevant toolbar buttons in HTML mode PD-2765 ([ed36dcb](https://github.com/pie-framework/pie-lib/commit/ed36dcb9a95f3d990da967f65e942922b60e42e6))
301
+ - **editable-html:** revise state handling for isHtmlMode and isEdited to accurately display choices in response area when toggling between html mode and rich text editor ([c800a22](https://github.com/pie-framework/pie-lib/commit/c800a22e323e863bae691e07b2b80774997ba0ea))
302
+ - **editable-html:** revise state handling for isHtmlMode and isEdited to accurately display choices in response area when toggling between html mode and rich text editor ([6daf84e](https://github.com/pie-framework/pie-lib/commit/6daf84e9692df368f7aa6866a33368941312872e))
279
303
 
280
- **Note:** Version bump only for package @pie-lib/editable-html
304
+ ### BREAKING CHANGES
281
305
 
306
+ - **editable-html:** add a button to the editable-html editor that changes the field from using a WYSIWYG editor to using a plaintext editor that displays the raw HTML and allows it to be edited.
282
307
 
308
+ ## [9.7.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.7...@pie-lib/editable-html@9.7.8) (2023-08-21)
283
309
 
310
+ ### Bug Fixes
284
311
 
312
+ - revert revert changes made for PD-3051 because they were causing PD-3119 ([371111c](https://github.com/pie-framework/pie-lib/commit/371111c26e0b0f886724f72ea67df0da3febef74))
285
313
 
286
- ## [9.7.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.2...@pie-lib/editable-html@9.7.3) (2023-07-24)
314
+ ## [9.7.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.6...@pie-lib/editable-html@9.7.7) (2023-08-21)
287
315
 
288
316
  **Note:** Version bump only for package @pie-lib/editable-html
289
317
 
318
+ ## [9.7.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.5...@pie-lib/editable-html@9.7.6) (2023-08-15)
290
319
 
320
+ **Note:** Version bump only for package @pie-lib/editable-html
291
321
 
322
+ ## [9.7.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.4...@pie-lib/editable-html@9.7.5) (2023-08-07)
292
323
 
324
+ ### Bug Fixes
293
325
 
294
- ## [9.7.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.1...@pie-lib/editable-html@9.7.2) (2023-07-04)
326
+ - made sure content is wrapped in a paragraph in order for slate to handle it properly PD-3051 ([4e3f756](https://github.com/pie-framework/pie-lib/commit/4e3f756bc783cae3b67762cacfacc09d32828918))
327
+
328
+ ## [9.7.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.3...@pie-lib/editable-html@9.7.4) (2023-07-31)
295
329
 
296
330
  **Note:** Version bump only for package @pie-lib/editable-html
297
331
 
332
+ ## [9.7.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.2...@pie-lib/editable-html@9.7.3) (2023-07-24)
298
333
 
334
+ **Note:** Version bump only for package @pie-lib/editable-html
299
335
 
336
+ ## [9.7.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.1...@pie-lib/editable-html@9.7.2) (2023-07-04)
300
337
 
338
+ **Note:** Version bump only for package @pie-lib/editable-html
301
339
 
302
340
  ## [9.7.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.7.0...@pie-lib/editable-html@9.7.1) (2023-06-24)
303
341
 
304
-
305
342
  ### Bug Fixes
306
343
 
307
- * made sure mathMlOptions are editable live [PD-2150] ([31ce3d3](https://github.com/pie-framework/pie-lib/commit/31ce3d3536788021b912895c611f972aa87161b0))
308
-
309
-
310
-
311
-
344
+ - made sure mathMlOptions are editable live [PD-2150](<[31ce3d3](https://github.com/pie-framework/pie-lib/commit/31ce3d3536788021b912895c611f972aa87161b0)>)
312
345
 
313
346
  # [9.7.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.6.6...@pie-lib/editable-html@9.7.0) (2023-06-23)
314
347
 
315
-
316
348
  ### Features
317
349
 
318
- * **editable-html:** make error class important to avoid overwriting ([37af2fc](https://github.com/pie-framework/pie-lib/commit/37af2fc862f3e5d0dfd0b1ad42fbd462d98bac89))
319
-
320
-
321
-
322
-
350
+ - **editable-html:** make error class important to avoid overwriting ([37af2fc](https://github.com/pie-framework/pie-lib/commit/37af2fc862f3e5d0dfd0b1ad42fbd462d98bac89))
323
351
 
324
352
  ## [9.6.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.6.5...@pie-lib/editable-html@9.6.6) (2023-06-13)
325
353
 
326
354
  **Note:** Version bump only for package @pie-lib/editable-html
327
355
 
328
-
329
-
330
-
331
-
332
356
  ## [9.6.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/editable-html@9.6.4...@pie-lib/editable-html@9.6.5) (2023-06-12)
333
357
 
334
358
  **Note:** Version bump only for package @pie-lib/editable-html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/editable-html",
3
- "version": "11.3.0-beta.0",
3
+ "version": "11.3.0",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "main": "lib/index.js",
@@ -10,10 +10,11 @@
10
10
  "@material-ui/core": "^3.8.3",
11
11
  "@material-ui/icons": "^3.0.2",
12
12
  "@material-ui/styles": "^3.0.0-alpha.10",
13
- "@pie-lib/drag": "^2.4.0-beta.0",
14
- "@pie-lib/math-rendering": "^3.4.0-beta.0",
15
- "@pie-lib/math-toolbar": "^1.13.0-beta.0",
16
- "@pie-lib/render-ui": "^4.17.0-beta.0",
13
+ "@pie-lib/drag": "^2.5.0",
14
+ "@pie-lib/icons": "^2.7.0",
15
+ "@pie-lib/math-input": "^6.14.0",
16
+ "@pie-lib/math-rendering": "^3.5.0",
17
+ "@pie-lib/math-toolbar": "^1.14.0",
17
18
  "change-case": "^3.0.2",
18
19
  "classnames": "^2.2.6",
19
20
  "debug": "^4.1.1",
@@ -47,6 +48,6 @@
47
48
  "publishConfig": {
48
49
  "access": "public"
49
50
  },
50
- "gitHead": "3818c24530f62b5bb9be7a2c6aa5428f13a17e0a",
51
+ "gitHead": "889a13bfea2c768b8a3a6eabfc6fe7b7725aa832",
51
52
  "scripts": {}
52
53
  }
package/src/editor.jsx CHANGED
@@ -9,9 +9,9 @@ import classNames from 'classnames';
9
9
  import debug from 'debug';
10
10
  import { withStyles } from '@material-ui/core/styles';
11
11
 
12
- import { color } from '@pie-lib/render-ui';
13
- import { AlertDialog } from '@pie-lib/config-ui';
14
- import { PreviewPrompt } from '@pie-lib/render-ui';
12
+ import { color } from '../../render-ui/src/index';
13
+ import AlertDialog from '../../config-ui/src/alert-dialog';
14
+ import { PreviewPrompt } from '../../render-ui/src/index';
15
15
 
16
16
  import { getBase64, htmlToValue } from './serialization';
17
17
  import InsertImageHandler from './plugins/image/insert-image-handler';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import debug from 'debug';
4
- import { color } from '@pie-lib/render-ui';
4
+ import { color } from '../../../../render-ui/src/index';
5
5
  import { withStyles } from '@material-ui/core/styles';
6
6
  import Button from '@material-ui/core/Button';
7
7
  import Dialog from '@material-ui/core/Dialog';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import isUndefined from 'lodash/isUndefined';
4
4
  import { DragSource, DropTarget } from '@pie-lib/drag';
5
- import { color } from '@pie-lib/render-ui';
5
+ import { color } from '../../../../../render-ui/src/index';
6
6
  import { renderMath } from '@pie-lib/math-rendering';
7
7
  import { withStyles } from '@material-ui/core/styles';
8
8
  import classnames from 'classnames';
@@ -123,18 +123,20 @@ export const DefaultToolbar = ({
123
123
  filtered = plugins.filter(isActiveToolbarPlugin(pluginProps)).map((p) => p.toolbar);
124
124
  }
125
125
 
126
- const isListActive = plugins.some((plugin) =>
126
+ const isListActive = plugins.some(
127
+ (plugin) =>
127
128
  isActiveToolbarPlugin(pluginProps)(plugin) &&
128
129
  ['ul_list', 'ol_list'].includes(plugin.name) &&
129
- plugin.toolbar.isActive(value, plugin.name)
130
+ plugin.toolbar.isActive(value, plugin.name),
130
131
  );
131
132
 
132
- const isTableActive = plugins.some((plugin) =>
133
+ const isTableActive = plugins.some(
134
+ (plugin) =>
133
135
  isActiveToolbarPlugin(pluginProps)(plugin) &&
134
136
  plugin.name === 'table' &&
135
137
  plugin.utils &&
136
138
  plugin.utils.isSelectionInTable &&
137
- plugin.utils.isSelectionInTable(value)
139
+ plugin.utils.isSelectionInTable(value),
138
140
  );
139
141
 
140
142
  const isToolbarButtonDisabled = (plugin) => {
@@ -6,7 +6,7 @@ import { primary } from '../../theme';
6
6
  import { withStyles } from '@material-ui/core/styles';
7
7
  import PropTypes from 'prop-types';
8
8
  import SlatePropTypes from 'slate-prop-types';
9
- import { color } from '@pie-lib/render-ui';
9
+ import { color } from '../../../../render-ui/src/index';
10
10
 
11
11
  const log = debug('@pie-lib:editable-html:plugins:toolbar:editor-and-toolbar');
12
12
 
@@ -231,7 +231,7 @@ export class Toolbar extends React.Component {
231
231
  [classes.focused]: toolbarOpts.alwaysVisible || isFocused,
232
232
  [classes.autoWidth]: autoWidth,
233
233
  [classes.fullWidth]: !autoWidth,
234
- [classes.hidden]: toolbarOpts.isHidden === true
234
+ [classes.hidden]: toolbarOpts.isHidden === true,
235
235
  });
236
236
  const customStyles = toolbarOpts.minWidth !== undefined ? { minWidth: toolbarOpts.minWidth } : {};
237
237
 
@@ -298,7 +298,7 @@ const style = {
298
298
  boxSizing: 'border-box',
299
299
  display: 'flex',
300
300
  opacity: 0,
301
- pointerEvents: 'none'
301
+ pointerEvents: 'none',
302
302
  },
303
303
  toolbarWithNoDone: {
304
304
  minWidth: '265px',
@@ -313,14 +313,14 @@ const style = {
313
313
  width: '100%',
314
314
  },
315
315
  hidden: {
316
- visibility: 'hidden'
316
+ visibility: 'hidden',
317
317
  },
318
318
  autoWidth: {
319
319
  width: 'auto',
320
320
  },
321
321
  focused: {
322
322
  opacity: 1,
323
- pointerEvents: 'auto'
323
+ pointerEvents: 'auto',
324
324
  },
325
325
  iconRoot: {
326
326
  width: '28px',