@pie-lib/editable-html 11.1.2-next.0 → 11.2.0-beta.1
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 +43 -167
- package/NEXT.CHANGELOG.json +1 -0
- package/lib/block-tags.js +25 -0
- package/lib/block-tags.js.map +1 -0
- package/lib/constants.js +16 -0
- package/lib/constants.js.map +1 -0
- package/lib/editor.js +348 -87
- package/lib/editor.js.map +1 -1
- package/lib/index.js +25 -9
- package/lib/index.js.map +1 -1
- package/lib/plugins/characters/index.js +8 -3
- package/lib/plugins/characters/index.js.map +1 -1
- package/lib/plugins/characters/utils.js +12 -12
- package/lib/plugins/characters/utils.js.map +1 -1
- package/lib/plugins/css/icons/index.js +37 -0
- package/lib/plugins/css/icons/index.js.map +1 -0
- package/lib/plugins/css/index.js +397 -0
- package/lib/plugins/css/index.js.map +1 -0
- package/lib/plugins/customPlugin/index.js +114 -0
- package/lib/plugins/customPlugin/index.js.map +1 -0
- package/lib/plugins/html/index.js +11 -7
- package/lib/plugins/html/index.js.map +1 -1
- package/lib/plugins/image/index.js +2 -1
- package/lib/plugins/image/index.js.map +1 -1
- package/lib/plugins/image/insert-image-handler.js +13 -4
- package/lib/plugins/image/insert-image-handler.js.map +1 -1
- package/lib/plugins/index.js +270 -11
- package/lib/plugins/index.js.map +1 -1
- package/lib/plugins/list/index.js +130 -0
- package/lib/plugins/list/index.js.map +1 -1
- package/lib/plugins/math/index.js +91 -56
- package/lib/plugins/math/index.js.map +1 -1
- package/lib/plugins/media/index.js +5 -2
- package/lib/plugins/media/index.js.map +1 -1
- package/lib/plugins/media/media-dialog.js +98 -57
- package/lib/plugins/media/media-dialog.js.map +1 -1
- package/lib/plugins/rendering/index.js +46 -0
- package/lib/plugins/rendering/index.js.map +1 -0
- package/lib/plugins/respArea/drag-in-the-blank/choice.js +5 -2
- package/lib/plugins/respArea/drag-in-the-blank/choice.js.map +1 -1
- package/lib/plugins/respArea/explicit-constructed-response/index.js +11 -9
- package/lib/plugins/respArea/explicit-constructed-response/index.js.map +1 -1
- package/lib/plugins/respArea/index.js +69 -21
- package/lib/plugins/respArea/index.js.map +1 -1
- package/lib/plugins/respArea/inline-dropdown/index.js +10 -5
- package/lib/plugins/respArea/inline-dropdown/index.js.map +1 -1
- package/lib/plugins/respArea/math-templated/index.js +130 -0
- package/lib/plugins/respArea/math-templated/index.js.map +1 -0
- package/lib/plugins/respArea/utils.js +16 -1
- package/lib/plugins/respArea/utils.js.map +1 -1
- package/lib/plugins/table/CustomTablePlugin.js +133 -0
- package/lib/plugins/table/CustomTablePlugin.js.map +1 -0
- package/lib/plugins/table/index.js +43 -59
- package/lib/plugins/table/index.js.map +1 -1
- package/lib/plugins/table/table-toolbar.js +33 -4
- package/lib/plugins/table/table-toolbar.js.map +1 -1
- package/lib/plugins/textAlign/icons/index.js +226 -0
- package/lib/plugins/textAlign/icons/index.js.map +1 -0
- package/lib/plugins/textAlign/index.js +34 -0
- package/lib/plugins/textAlign/index.js.map +1 -0
- package/lib/plugins/toolbar/default-toolbar.js +82 -27
- package/lib/plugins/toolbar/default-toolbar.js.map +1 -1
- package/lib/plugins/toolbar/done-button.js +5 -2
- package/lib/plugins/toolbar/done-button.js.map +1 -1
- package/lib/plugins/toolbar/editor-and-toolbar.js +18 -19
- package/lib/plugins/toolbar/editor-and-toolbar.js.map +1 -1
- package/lib/plugins/toolbar/toolbar-buttons.js +44 -11
- package/lib/plugins/toolbar/toolbar-buttons.js.map +1 -1
- package/lib/plugins/toolbar/toolbar.js +35 -11
- package/lib/plugins/toolbar/toolbar.js.map +1 -1
- package/lib/serialization.js +233 -44
- package/lib/serialization.js.map +1 -1
- package/package.json +11 -6
- package/src/__tests__/editor.test.jsx +363 -0
- package/src/__tests__/serialization.test.js +291 -0
- package/src/__tests__/utils.js +36 -0
- package/src/block-tags.js +17 -0
- package/src/constants.js +7 -0
- package/src/editor.jsx +303 -49
- package/src/index.jsx +19 -10
- package/src/plugins/characters/index.jsx +11 -3
- package/src/plugins/characters/utils.js +12 -12
- package/src/plugins/css/icons/index.jsx +17 -0
- package/src/plugins/css/index.jsx +346 -0
- package/src/plugins/customPlugin/index.jsx +85 -0
- package/src/plugins/html/index.jsx +9 -6
- package/src/plugins/image/__tests__/__snapshots__/component.test.jsx.snap +51 -0
- package/src/plugins/image/__tests__/__snapshots__/image-toolbar-logic.test.jsx.snap +27 -0
- package/src/plugins/image/__tests__/__snapshots__/image-toolbar.test.jsx.snap +44 -0
- package/src/plugins/image/__tests__/component.test.jsx +41 -0
- package/src/plugins/image/__tests__/image-toolbar-logic.test.jsx +42 -0
- package/src/plugins/image/__tests__/image-toolbar.test.jsx +11 -0
- package/src/plugins/image/__tests__/index.test.js +95 -0
- package/src/plugins/image/__tests__/insert-image-handler.test.js +113 -0
- package/src/plugins/image/__tests__/mock-change.js +15 -0
- package/src/plugins/image/index.jsx +2 -1
- package/src/plugins/image/insert-image-handler.js +13 -6
- package/src/plugins/index.jsx +248 -5
- package/src/plugins/list/__tests__/index.test.js +54 -0
- package/src/plugins/list/index.jsx +130 -0
- package/src/plugins/math/__tests__/__snapshots__/index.test.jsx.snap +48 -0
- package/src/plugins/math/__tests__/index.test.jsx +245 -0
- package/src/plugins/math/index.jsx +87 -56
- package/src/plugins/media/__tests__/index.test.js +75 -0
- package/src/plugins/media/index.jsx +3 -2
- package/src/plugins/media/media-dialog.js +106 -57
- package/src/plugins/rendering/index.js +31 -0
- package/src/plugins/respArea/drag-in-the-blank/choice.jsx +4 -1
- package/src/plugins/respArea/explicit-constructed-response/index.jsx +10 -8
- package/src/plugins/respArea/index.jsx +53 -7
- package/src/plugins/respArea/inline-dropdown/index.jsx +13 -6
- package/src/plugins/respArea/math-templated/index.jsx +104 -0
- package/src/plugins/respArea/utils.jsx +11 -0
- package/src/plugins/table/CustomTablePlugin.js +113 -0
- package/src/plugins/table/__tests__/__snapshots__/table-toolbar.test.jsx.snap +44 -0
- package/src/plugins/table/__tests__/index.test.jsx +401 -0
- package/src/plugins/table/__tests__/table-toolbar.test.jsx +42 -0
- package/src/plugins/table/index.jsx +46 -59
- package/src/plugins/table/table-toolbar.jsx +39 -2
- package/src/plugins/textAlign/icons/index.jsx +139 -0
- package/src/plugins/textAlign/index.jsx +23 -0
- package/src/plugins/toolbar/__tests__/__snapshots__/default-toolbar.test.jsx.snap +923 -0
- package/src/plugins/toolbar/__tests__/__snapshots__/editor-and-toolbar.test.jsx.snap +20 -0
- package/src/plugins/toolbar/__tests__/__snapshots__/toolbar-buttons.test.jsx.snap +36 -0
- package/src/plugins/toolbar/__tests__/__snapshots__/toolbar.test.jsx.snap +46 -0
- package/src/plugins/toolbar/__tests__/default-toolbar.test.jsx +94 -0
- package/src/plugins/toolbar/__tests__/editor-and-toolbar.test.jsx +37 -0
- package/src/plugins/toolbar/__tests__/toolbar-buttons.test.jsx +51 -0
- package/src/plugins/toolbar/__tests__/toolbar.test.jsx +106 -0
- package/src/plugins/toolbar/default-toolbar.jsx +82 -20
- package/src/plugins/toolbar/done-button.jsx +3 -1
- package/src/plugins/toolbar/editor-and-toolbar.jsx +18 -13
- package/src/plugins/toolbar/toolbar-buttons.jsx +52 -11
- package/src/plugins/toolbar/toolbar.jsx +31 -8
- package/src/serialization.jsx +213 -38
- package/README.md +0 -45
- package/deploy.sh +0 -16
- package/playground/image/data.js +0 -59
- package/playground/image/index.html +0 -22
- package/playground/image/index.jsx +0 -81
- package/playground/index.html +0 -25
- package/playground/mathquill/index.html +0 -22
- package/playground/mathquill/index.jsx +0 -155
- package/playground/package.json +0 -15
- package/playground/prod-test/index.html +0 -22
- package/playground/prod-test/index.jsx +0 -28
- package/playground/schema-override/data.js +0 -29
- package/playground/schema-override/image-plugin.jsx +0 -41
- package/playground/schema-override/index.html +0 -21
- package/playground/schema-override/index.jsx +0 -97
- package/playground/serialization/data.js +0 -29
- package/playground/serialization/image-plugin.jsx +0 -41
- package/playground/serialization/index.html +0 -22
- package/playground/serialization/index.jsx +0 -12
- package/playground/static.json +0 -3
- package/playground/table-examples.html +0 -70
- package/playground/webpack.config.js +0 -42
- package/static.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,328 +3,204 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* **editable-html:** avoid using setState multiple times PD-3221 ([c8af6af](https://github.com/pie-framework/pie-lib/commit/c8af6af081e68c634eb9dd16f6ffd016021bbb58))
|
|
12
|
-
* **editable-html:** avoid using setState multiple times PD-3221 ([6cf868b](https://github.com/pie-framework/pie-lib/commit/6cf868b549673121f60ed10530d755873d783372))
|
|
13
|
-
|
|
6
|
+
# [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)
|
|
14
7
|
|
|
8
|
+
**Note:** Version bump only for package @pie-lib/editable-html
|
|
15
9
|
|
|
16
10
|
|
|
17
11
|
|
|
18
|
-
# [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)
|
|
19
12
|
|
|
20
13
|
|
|
21
|
-
|
|
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-20)
|
|
22
15
|
|
|
23
|
-
|
|
16
|
+
**Note:** Version bump only for package @pie-lib/editable-html
|
|
24
17
|
|
|
25
18
|
|
|
26
|
-
### Features
|
|
27
19
|
|
|
28
|
-
* 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))
|
|
29
20
|
|
|
30
21
|
|
|
22
|
+
# [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)
|
|
31
23
|
|
|
24
|
+
**Note:** Version bump only for package @pie-lib/editable-html
|
|
32
25
|
|
|
26
|
+
# [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)
|
|
33
27
|
|
|
34
|
-
|
|
28
|
+
**Note:** Version bump only for package @pie-lib/editable-html
|
|
35
29
|
|
|
30
|
+
# [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)
|
|
36
31
|
|
|
37
32
|
### Bug Fixes
|
|
38
33
|
|
|
39
|
-
|
|
40
|
-
* **editable-html:** hide DoneButton on active htmlMode PD-2765 ([636a302](https://github.com/pie-framework/pie-lib/commit/636a302ab81016b2de8a16b1e6d96923d25b0592))
|
|
41
|
-
* **editable-html:** Prevent infinite loop in componentDidUpdate by refining isEdited state check PD-2765 ([e858ad0](https://github.com/pie-framework/pie-lib/commit/e858ad030e444b6be1ea57e950e6aa3462b5f60d))
|
|
42
|
-
* **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))
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
34
|
+
- 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))
|
|
46
35
|
|
|
36
|
+
### Features
|
|
47
37
|
|
|
48
|
-
|
|
38
|
+
- 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))
|
|
49
39
|
|
|
40
|
+
## [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)
|
|
50
41
|
|
|
51
42
|
### Bug Fixes
|
|
52
43
|
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
- **editable-html:** add clarifying comments for HTML mode edit tracking PD-2765 ([3870a4d](https://github.com/pie-framework/pie-lib/commit/3870a4d9b2e618ae6f32e6d20713978c4d791b14))
|
|
45
|
+
- **editable-html:** hide DoneButton on active htmlMode PD-2765 ([636a302](https://github.com/pie-framework/pie-lib/commit/636a302ab81016b2de8a16b1e6d96923d25b0592))
|
|
46
|
+
- **editable-html:** Prevent infinite loop in componentDidUpdate by refining isEdited state check PD-2765 ([e858ad0](https://github.com/pie-framework/pie-lib/commit/e858ad030e444b6be1ea57e950e6aa3462b5f60d))
|
|
47
|
+
- **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))
|
|
55
48
|
|
|
49
|
+
## [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)
|
|
56
50
|
|
|
51
|
+
### Bug Fixes
|
|
57
52
|
|
|
53
|
+
- revert to pie-lib/math-rendering that what working ([25660ea](https://github.com/pie-framework/pie-lib/commit/25660ea6595e800a71c5494bd3bb9eecd3609a5a))
|
|
58
54
|
|
|
59
55
|
## [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)
|
|
60
56
|
|
|
61
57
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
62
58
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
59
|
## [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)
|
|
68
60
|
|
|
69
61
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
70
62
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
63
|
## [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)
|
|
76
64
|
|
|
77
65
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
78
66
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
67
|
## [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)
|
|
84
68
|
|
|
85
69
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
86
70
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
71
|
## [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)
|
|
92
72
|
|
|
93
|
-
|
|
94
73
|
### Bug Fixes
|
|
95
74
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
75
|
+
- **charting:** adjust icon for the drag handle PD-2790 ([fe670d7](https://github.com/pie-framework/pie-lib/commit/fe670d7a04f44da5c93dadbeec41b753ce50f9f6))
|
|
101
76
|
|
|
102
77
|
## [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)
|
|
103
78
|
|
|
104
79
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
105
80
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
81
|
## [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)
|
|
111
82
|
|
|
112
83
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
113
84
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
85
|
# [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)
|
|
119
86
|
|
|
120
|
-
|
|
121
87
|
### Bug Fixes
|
|
122
88
|
|
|
123
|
-
|
|
124
|
-
|
|
89
|
+
- update mathml-to-latex version ([1d101d2](https://github.com/pie-framework/pie-lib/commit/1d101d22298bd480a5aec638e4c9708d5aa52ce4))
|
|
125
90
|
|
|
126
91
|
### BREAKING CHANGES
|
|
127
92
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
93
|
+
- updated mathml-to-latex version.
|
|
133
94
|
|
|
134
95
|
## [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)
|
|
135
96
|
|
|
136
|
-
|
|
137
97
|
### Bug Fixes
|
|
138
98
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
99
|
+
- 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))
|
|
100
|
+
- **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))
|
|
145
101
|
|
|
146
102
|
## [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)
|
|
147
103
|
|
|
148
104
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
149
105
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
106
|
## [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)
|
|
155
107
|
|
|
156
|
-
|
|
157
108
|
### Bug Fixes
|
|
158
109
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
110
|
+
- sanity check ([88e9afd](https://github.com/pie-framework/pie-lib/commit/88e9afd40b0aada05eb55284e00c7d918f029f08))
|
|
164
111
|
|
|
165
112
|
## [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)
|
|
166
113
|
|
|
167
|
-
|
|
168
114
|
### Bug Fixes
|
|
169
115
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
116
|
+
- import reduceMultipleBrs, add more details into console message PD-3167 ([5adcc05](https://github.com/pie-framework/pie-lib/commit/5adcc054e1bd5a71809827484d368d172a1255d3))
|
|
175
117
|
|
|
176
118
|
## [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)
|
|
177
119
|
|
|
178
|
-
|
|
179
120
|
### Bug Fixes
|
|
180
121
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
122
|
+
- make HTML disabled by default PD-2765 ([82bd362](https://github.com/pie-framework/pie-lib/commit/82bd36240205b8e0e31043cc8559267de0d5dc30))
|
|
186
123
|
|
|
187
124
|
## [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)
|
|
188
125
|
|
|
189
|
-
|
|
190
126
|
### Bug Fixes
|
|
191
127
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
128
|
+
- 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))
|
|
197
129
|
|
|
198
130
|
## [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)
|
|
199
131
|
|
|
200
|
-
|
|
201
132
|
### Bug Fixes
|
|
202
133
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
134
|
+
- 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
135
|
|
|
209
136
|
# [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)
|
|
210
137
|
|
|
211
|
-
|
|
212
138
|
### Bug Fixes
|
|
213
139
|
|
|
214
|
-
|
|
215
|
-
|
|
140
|
+
- **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))
|
|
216
141
|
|
|
217
142
|
### Features
|
|
218
143
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
144
|
+
- **editable-html:** display warning dialog conditional on edits in HTML mode PD-2765 ([58d66d5](https://github.com/pie-framework/pie-lib/commit/58d66d57668a8288f32e3e6ed78cf97a61f58b17))
|
|
145
|
+
- **editable-html:** display warning dialog upon exiting html mode PD-2765 ([8fd9fb9](https://github.com/pie-framework/pie-lib/commit/8fd9fb964f681d261e22ec09aa8b8e6def2f7744))
|
|
146
|
+
- **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))
|
|
147
|
+
- **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))
|
|
148
|
+
- **editable-html:** only show relevant toolbar buttons in HTML mode PD-2765 ([ed36dcb](https://github.com/pie-framework/pie-lib/commit/ed36dcb9a95f3d990da967f65e942922b60e42e6))
|
|
149
|
+
- **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))
|
|
150
|
+
- **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))
|
|
227
151
|
|
|
228
152
|
### BREAKING CHANGES
|
|
229
153
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
154
|
+
- **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.
|
|
235
155
|
|
|
236
156
|
## [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)
|
|
237
157
|
|
|
238
|
-
|
|
239
158
|
### Bug Fixes
|
|
240
159
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
160
|
+
- revert revert changes made for PD-3051 because they were causing PD-3119 ([371111c](https://github.com/pie-framework/pie-lib/commit/371111c26e0b0f886724f72ea67df0da3febef74))
|
|
246
161
|
|
|
247
162
|
## [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)
|
|
248
163
|
|
|
249
164
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
250
165
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
166
|
## [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)
|
|
256
167
|
|
|
257
168
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
258
169
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
170
|
## [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)
|
|
264
171
|
|
|
265
|
-
|
|
266
172
|
### Bug Fixes
|
|
267
173
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
174
|
+
- 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))
|
|
273
175
|
|
|
274
176
|
## [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)
|
|
275
177
|
|
|
276
178
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
277
179
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
180
|
## [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)
|
|
283
181
|
|
|
284
182
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
285
183
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
184
|
## [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)
|
|
291
185
|
|
|
292
186
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
293
187
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
188
|
## [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)
|
|
299
189
|
|
|
300
|
-
|
|
301
190
|
### Bug Fixes
|
|
302
191
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
192
|
+
- made sure mathMlOptions are editable live [PD-2150](<[31ce3d3](https://github.com/pie-framework/pie-lib/commit/31ce3d3536788021b912895c611f972aa87161b0)>)
|
|
308
193
|
|
|
309
194
|
# [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)
|
|
310
195
|
|
|
311
|
-
|
|
312
196
|
### Features
|
|
313
197
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
198
|
+
- **editable-html:** make error class important to avoid overwriting ([37af2fc](https://github.com/pie-framework/pie-lib/commit/37af2fc862f3e5d0dfd0b1ad42fbd462d98bac89))
|
|
319
199
|
|
|
320
200
|
## [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)
|
|
321
201
|
|
|
322
202
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
323
203
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
204
|
## [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)
|
|
329
205
|
|
|
330
206
|
**Note:** Version bump only for package @pie-lib/editable-html
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BLOCK_TAGS = void 0;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Tags to blocks.
|
|
10
|
+
*
|
|
11
|
+
* @type {Object}
|
|
12
|
+
*/
|
|
13
|
+
var BLOCK_TAGS = {
|
|
14
|
+
div: 'div',
|
|
15
|
+
// span: 'span',
|
|
16
|
+
p: 'paragraph',
|
|
17
|
+
pre: 'code',
|
|
18
|
+
h1: 'heading-one',
|
|
19
|
+
h2: 'heading-two',
|
|
20
|
+
h4: 'heading-four',
|
|
21
|
+
h5: 'heading-five',
|
|
22
|
+
h6: 'heading-six'
|
|
23
|
+
};
|
|
24
|
+
exports.BLOCK_TAGS = BLOCK_TAGS;
|
|
25
|
+
//# sourceMappingURL=block-tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/block-tags.js"],"names":["BLOCK_TAGS","div","p","pre","h1","h2","h4","h5","h6"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AAEO,IAAMA,UAAU,GAAG;AACxBC,EAAAA,GAAG,EAAE,KADmB;AAExB;AACAC,EAAAA,CAAC,EAAE,WAHqB;AAIxBC,EAAAA,GAAG,EAAE,MAJmB;AAKxBC,EAAAA,EAAE,EAAE,aALoB;AAMxBC,EAAAA,EAAE,EAAE,aANoB;AAOxBC,EAAAA,EAAE,EAAE,cAPoB;AAQxBC,EAAAA,EAAE,EAAE,cARoB;AASxBC,EAAAA,EAAE,EAAE;AAToB,CAAnB","sourcesContent":["/**\n * Tags to blocks.\n *\n * @type {Object}\n */\n\nexport const BLOCK_TAGS = {\n div: 'div',\n // span: 'span',\n p: 'paragraph',\n pre: 'code',\n h1: 'heading-one',\n h2: 'heading-two',\n h4: 'heading-four',\n h5: 'heading-five',\n h6: 'heading-six',\n};\n"],"file":"block-tags.js"}
|
package/lib/constants.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.PIE_TOOLBAR__CLASS = exports.MAIN_CONTAINER_CLASS = void 0;
|
|
7
|
+
var MAIN_CONTAINER_CLASS = 'main-container';
|
|
8
|
+
exports.MAIN_CONTAINER_CLASS = MAIN_CONTAINER_CLASS;
|
|
9
|
+
var PIE_TOOLBAR__CLASS = 'pie-toolbar';
|
|
10
|
+
exports.PIE_TOOLBAR__CLASS = PIE_TOOLBAR__CLASS;
|
|
11
|
+
var _default = {
|
|
12
|
+
MAIN_CONTAINER_CLASS: MAIN_CONTAINER_CLASS,
|
|
13
|
+
PIE_TOOLBAR__CLASS: PIE_TOOLBAR__CLASS
|
|
14
|
+
};
|
|
15
|
+
exports["default"] = _default;
|
|
16
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/constants.js"],"names":["MAIN_CONTAINER_CLASS","PIE_TOOLBAR__CLASS"],"mappings":";;;;;;AAAO,IAAMA,oBAAoB,GAAG,gBAA7B;;AACA,IAAMC,kBAAkB,GAAG,aAA3B;;eAEQ;AACbD,EAAAA,oBAAoB,EAApBA,oBADa;AAEbC,EAAAA,kBAAkB,EAAlBA;AAFa,C","sourcesContent":["export const MAIN_CONTAINER_CLASS = 'main-container';\nexport const PIE_TOOLBAR__CLASS = 'pie-toolbar';\n\nexport default {\n MAIN_CONTAINER_CLASS,\n PIE_TOOLBAR__CLASS,\n};\n"],"file":"constants.js"}
|