@pie-lib/mask-markup 2.0.0-beta.1 → 2.0.0-beta.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +143 -35
  2. package/lib/choices/choice.js +22 -31
  3. package/lib/choices/choice.js.map +1 -1
  4. package/lib/choices/index.js +9 -33
  5. package/lib/choices/index.js.map +1 -1
  6. package/lib/componentize.js +1 -4
  7. package/lib/componentize.js.map +1 -1
  8. package/lib/components/blank.js +61 -86
  9. package/lib/components/blank.js.map +1 -1
  10. package/lib/components/correct-input.js +9 -25
  11. package/lib/components/correct-input.js.map +1 -1
  12. package/lib/components/dropdown.js +11 -37
  13. package/lib/components/dropdown.js.map +1 -1
  14. package/lib/components/input.js +14 -17
  15. package/lib/components/input.js.map +1 -1
  16. package/lib/constructed-response.js +11 -14
  17. package/lib/constructed-response.js.map +1 -1
  18. package/lib/drag-in-the-blank.js +21 -50
  19. package/lib/drag-in-the-blank.js.map +1 -1
  20. package/lib/index.js +1 -7
  21. package/lib/index.js.map +1 -1
  22. package/lib/inline-dropdown.js +6 -11
  23. package/lib/inline-dropdown.js.map +1 -1
  24. package/lib/mask.js +8 -49
  25. package/lib/mask.js.map +1 -1
  26. package/lib/new-serialization.js +6 -59
  27. package/lib/new-serialization.js.map +1 -0
  28. package/lib/parse-html.js +7 -6
  29. package/lib/parse-html.js.map +1 -0
  30. package/lib/serialization.js +9 -42
  31. package/lib/serialization.js.map +1 -1
  32. package/lib/test-serializer.js +4 -55
  33. package/lib/test-serializer.js.map +1 -0
  34. package/lib/with-mask.js +6 -30
  35. package/lib/with-mask.js.map +1 -1
  36. package/package.json +7 -7
  37. package/src/choices/choice.jsx +27 -13
  38. package/src/choices/index.jsx +17 -13
  39. package/src/components/blank.jsx +43 -31
  40. package/src/components/correct-input.jsx +18 -18
  41. package/src/components/dropdown.jsx +27 -38
  42. package/src/components/input.jsx +6 -3
  43. package/src/constructed-response.jsx +5 -4
  44. package/src/drag-in-the-blank.jsx +12 -12
  45. package/src/index.js +1 -8
  46. package/src/inline-dropdown.jsx +4 -3
  47. package/src/mask.jsx +13 -14
  48. package/src/new-serialization.jsx +19 -19
  49. package/src/parse-html.js +1 -1
  50. package/src/serialization.js +19 -14
  51. package/src/test-serializer.js +9 -9
  52. package/src/with-mask.jsx +2 -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
- ## [1.12.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.8...@pie-lib/mask-markup@1.12.9) (2022-07-18)
6
+ ## [1.13.32](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.31...@pie-lib/mask-markup@1.13.32) (2023-06-24)
7
7
 
8
8
  **Note:** Version bump only for package @pie-lib/mask-markup
9
9
 
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- ## [1.12.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.7...@pie-lib/mask-markup@1.12.8) (2022-07-18)
14
+ ## [1.13.31](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.30...@pie-lib/mask-markup@1.13.31) (2023-06-13)
15
15
 
16
16
  **Note:** Version bump only for package @pie-lib/mask-markup
17
17
 
@@ -19,166 +19,274 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
19
19
 
20
20
 
21
21
 
22
- ## [1.12.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.6...@pie-lib/mask-markup@1.12.7) (2022-06-13)
22
+ ## [1.13.30](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.29...@pie-lib/mask-markup@1.13.30) (2023-06-12)
23
23
 
24
24
  **Note:** Version bump only for package @pie-lib/mask-markup
25
25
 
26
+ ## [1.13.29](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.28...@pie-lib/mask-markup@1.13.29) (2023-06-12)
26
27
 
28
+ **Note:** Version bump only for package @pie-lib/mask-markup
27
29
 
30
+ ## [1.13.28](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.27...@pie-lib/mask-markup@1.13.28) (2023-06-05)
28
31
 
32
+ **Note:** Version bump only for package @pie-lib/mask-markup
29
33
 
30
- ## [1.12.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.5...@pie-lib/mask-markup@1.12.6) (2022-05-30)
34
+ ## [1.13.27](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.26...@pie-lib/mask-markup@1.13.27) (2023-05-22)
35
+
36
+ ### Bug Fixes
37
+
38
+ - **mask-markup:** update tokens design to support color contrast PD-2066 ([8e8022e](https://github.com/pie-framework/pie-lib/commit/8e8022e8ef1466d5328a2c4a5befe991e2726ad5))
31
39
 
40
+ ## [1.13.26](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.25...@pie-lib/mask-markup@1.13.26) (2023-05-12)
41
+
42
+ **Note:** Version bump only for package @pie-lib/mask-markup
43
+
44
+ ## [1.13.25](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.24...@pie-lib/mask-markup@1.13.25) (2023-05-01)
32
45
 
33
46
  ### Bug Fixes
34
47
 
35
- * unable to load items locally ([17ab686](https://github.com/pie-framework/pie-lib/commit/17ab6864557288aef6ec1d9a130cb508e2591562))
48
+ - **drag-in-the-blank:** prevent image interaction in choice - this is creating difficulties for drag choices on touch devices PD-2770 ([aea5536](https://github.com/pie-framework/pie-lib/commit/aea5536c46b96b4c89f294d4cc3337c833bf87ee))
36
49
 
50
+ ## [1.13.24](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.23...@pie-lib/mask-markup@1.13.24) (2023-04-25)
37
51
 
52
+ **Note:** Version bump only for package @pie-lib/mask-markup
38
53
 
54
+ ## [1.13.23](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.22...@pie-lib/mask-markup@1.13.23) (2023-04-19)
39
55
 
56
+ ### Bug Fixes
40
57
 
41
- ## [1.12.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.4...@pie-lib/mask-markup@1.12.5) (2022-05-24)
58
+ - **eslint:** fix eslint problems-PD-2732 ([9eb9976](https://github.com/pie-framework/pie-lib/commit/9eb9976749753da86e1057a07bd2cfc65bf64ae4))
59
+
60
+ ## [1.13.22](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.21...@pie-lib/mask-markup@1.13.22) (2023-04-14)
42
61
 
43
62
  **Note:** Version bump only for package @pie-lib/mask-markup
44
63
 
64
+ ## [1.13.21](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.20...@pie-lib/mask-markup@1.13.21) (2023-04-14)
45
65
 
66
+ **Note:** Version bump only for package @pie-lib/mask-markup
46
67
 
68
+ ## [1.13.20](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.19...@pie-lib/mask-markup@1.13.20) (2023-04-07)
47
69
 
70
+ **Note:** Version bump only for package @pie-lib/mask-markup
48
71
 
49
- ## [1.12.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.3...@pie-lib/mask-markup@1.12.4) (2022-04-28)
72
+ ## [1.13.19](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.18...@pie-lib/mask-markup@1.13.19) (2023-04-03)
50
73
 
51
74
  **Note:** Version bump only for package @pie-lib/mask-markup
52
75
 
76
+ ## [1.13.18](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.17...@pie-lib/mask-markup@1.13.18) (2023-03-27)
53
77
 
78
+ **Note:** Version bump only for package @pie-lib/mask-markup
54
79
 
80
+ ## [1.13.17](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.16...@pie-lib/mask-markup@1.13.17) (2023-03-20)
55
81
 
82
+ **Note:** Version bump only for package @pie-lib/mask-markup
56
83
 
57
- ## [1.12.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.2...@pie-lib/mask-markup@1.12.3) (2022-03-28)
84
+ ## [1.13.16](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.15...@pie-lib/mask-markup@1.13.16) (2023-03-13)
58
85
 
59
86
  **Note:** Version bump only for package @pie-lib/mask-markup
60
87
 
88
+ ## [1.13.15](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.13...@pie-lib/mask-markup@1.13.15) (2023-02-28)
61
89
 
90
+ ### Bug Fixes
62
91
 
92
+ - version bump ([d9280a9](https://github.com/pie-framework/pie-lib/commit/d9280a9aeddab459b6d84ecdbeb62814e1eee965))
63
93
 
94
+ ## [1.13.13](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.12...@pie-lib/mask-markup@1.13.13) (2023-02-28)
64
95
 
65
- ## [1.12.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.1...@pie-lib/mask-markup@1.12.2) (2022-03-21)
96
+ ### Bug Fixes
97
+
98
+ - **drag-in-the-blank:** dragging on touch device wip ([bde4003](https://github.com/pie-framework/pie-lib/commit/bde4003539001d7eaace804ab275b9ec675b5cca))
99
+ - **drag-in-the-blank:** prevent scroll of the page when dragging the choices, try to improve removing selected choices on touch devices ([ae485e3](https://github.com/pie-framework/pie-lib/commit/ae485e342ccc542dbd91765980bbf5588bfe4726))
100
+
101
+ ## [1.13.12](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.10...@pie-lib/mask-markup@1.13.12) (2023-01-31)
66
102
 
67
103
  **Note:** Version bump only for package @pie-lib/mask-markup
68
104
 
105
+ ## [1.13.10](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.9...@pie-lib/mask-markup@1.13.10) (2023-01-31)
69
106
 
107
+ **Note:** Version bump only for package @pie-lib/mask-markup
70
108
 
109
+ ## [1.13.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.8...@pie-lib/mask-markup@1.13.9) (2023-01-31)
71
110
 
111
+ **Note:** Version bump only for package @pie-lib/mask-markup
72
112
 
73
- ## [1.12.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.0...@pie-lib/mask-markup@1.12.1) (2022-03-21)
113
+ ## [1.13.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.7...@pie-lib/mask-markup@1.13.8) (2023-01-31)
74
114
 
115
+ **Note:** Version bump only for package @pie-lib/mask-markup
75
116
 
76
- ### Bug Fixes
117
+ ## [1.13.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.5...@pie-lib/mask-markup@1.13.7) (2023-01-31)
77
118
 
78
- * **blank:** made sure height is auto to adapt to content, until it is calculated [PD-1652] ([9c3032f](https://github.com/pie-framework/pie-lib/commit/9c3032fb2adff3a06e94bcea63ea6c3de520b9d4))
79
- * **mask:** made sure display inherit is not messing up div blocks ([8ae905c](https://github.com/pie-framework/pie-lib/commit/8ae905c48fb12002c007f0a62db2f1ead92fa881))
119
+ **Note:** Version bump only for package @pie-lib/mask-markup
80
120
 
121
+ ## [1.13.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.3...@pie-lib/mask-markup@1.13.5) (2023-01-31)
81
122
 
123
+ **Note:** Version bump only for package @pie-lib/mask-markup
82
124
 
125
+ ## [1.13.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.1...@pie-lib/mask-markup@1.13.3) (2023-01-31)
83
126
 
127
+ **Note:** Version bump only for package @pie-lib/mask-markup
84
128
 
85
- # [1.12.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.11.4...@pie-lib/mask-markup@1.12.0) (2022-03-07)
129
+ ## [1.13.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.0...@pie-lib/mask-markup@1.13.1) (2023-01-31)
130
+
131
+ **Note:** Version bump only for package @pie-lib/mask-markup
132
+
133
+ # [1.13.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.22...@pie-lib/mask-markup@1.13.0) (2023-01-16)
134
+
135
+ ### Features
136
+
137
+ - added theme naming support + cleanup ([72d562d](https://github.com/pie-framework/pie-lib/commit/72d562d509e5d31d883690eb455a9afea6bf54fc))
86
138
 
139
+ ## [1.12.22](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.21...@pie-lib/mask-markup@1.12.22) (2023-01-04)
87
140
 
88
141
  ### Bug Fixes
89
142
 
90
- * **mask-markup:** fix style for drag-in-the-blank image tokens PD-1351 ([3302de1](https://github.com/pie-framework/pie-lib/commit/3302de16d94ad4dce3aa81c25a0b939bf0f19bc6))
91
- * **mask-markup:** render mathml correctly PD-397 ([c89862b](https://github.com/pie-framework/pie-lib/commit/c89862b8c0f4ec7f1394f966d85a68a9bf6ffc12))
92
- * **mask-markup:** Separated input width and characters limit PD-1395 PD-1396 ([c78ba6a](https://github.com/pie-framework/pie-lib/commit/c78ba6ad9325a6671d26eee14e855cb7ff979c91))
93
- * **serialization:** made sure units are not added to mask-markup elements [PD-722] ([b855b27](https://github.com/pie-framework/pie-lib/commit/b855b27803965528968d5d2165fa4fd342414685))
143
+ - **drag:** refactor the droppable placeholder for match-list and drag-in-the-blank PD-1954 PD-1956 ([8696d61](https://github.com/pie-framework/pie-lib/commit/8696d61a0762835186ceb876e03100e2e9c820fc))
94
144
 
145
+ ## [1.12.21](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.20...@pie-lib/mask-markup@1.12.21) (2023-01-03)
95
146
 
96
- ### Features
147
+ **Note:** Version bump only for package @pie-lib/mask-markup
97
148
 
98
- * **design:** masked markup inherits the container display property [PD-1418] ([3095d29](https://github.com/pie-framework/pie-lib/commit/3095d29c9ad1ae70f5f669abb5fb62abb5f8d955))
149
+ ## [1.12.20](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.19...@pie-lib/mask-markup@1.12.20) (2022-12-19)
99
150
 
151
+ **Note:** Version bump only for package @pie-lib/mask-markup
100
152
 
153
+ ## [1.12.19](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.18...@pie-lib/mask-markup@1.12.19) (2022-12-06)
101
154
 
155
+ **Note:** Version bump only for package @pie-lib/mask-markup
102
156
 
157
+ ## [1.12.18](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.17...@pie-lib/mask-markup@1.12.18) (2022-11-29)
103
158
 
104
- ## [1.11.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.11.3...@pie-lib/mask-markup@1.11.4) (2021-12-13)
159
+ **Note:** Version bump only for package @pie-lib/mask-markup
160
+
161
+ ## [1.12.17](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.16...@pie-lib/mask-markup@1.12.17) (2022-11-23)
105
162
 
106
163
  **Note:** Version bump only for package @pie-lib/mask-markup
107
164
 
165
+ ## [1.12.16](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.15...@pie-lib/mask-markup@1.12.16) (2022-11-23)
166
+
167
+ **Note:** Version bump only for package @pie-lib/mask-markup
108
168
 
169
+ ## [1.12.15](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.14...@pie-lib/mask-markup@1.12.15) (2022-10-31)
109
170
 
171
+ ### Bug Fixes
110
172
 
173
+ - **drag-in-the-blank:** refactor and cleanup ([582f104](https://github.com/pie-framework/pie-lib/commit/582f104f1f40c6214d70c2938ecfd81f6ac5c51b))
174
+ - **drag-in-the-blank:** render audio content in define temlpate ([366d400](https://github.com/pie-framework/pie-lib/commit/366d400cd4fddf6804ef76a6fc5841c5ac3fd705))
111
175
 
112
- ## [1.11.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.11.2...@pie-lib/mask-markup@1.11.3) (2021-11-29)
176
+ ## [1.12.14](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.13...@pie-lib/mask-markup@1.12.14) (2022-09-28)
113
177
 
114
178
  **Note:** Version bump only for package @pie-lib/mask-markup
115
179
 
180
+ ## [1.12.13](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.12...@pie-lib/mask-markup@1.12.13) (2022-09-14)
116
181
 
182
+ **Note:** Version bump only for package @pie-lib/mask-markup
117
183
 
184
+ ## [1.12.12](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.11...@pie-lib/mask-markup@1.12.12) (2022-08-29)
118
185
 
186
+ **Note:** Version bump only for package @pie-lib/mask-markup
119
187
 
120
- ## [1.11.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.11.1...@pie-lib/mask-markup@1.11.2) (2021-11-10)
188
+ ## [1.12.11](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.10...@pie-lib/mask-markup@1.12.11) (2022-08-15)
121
189
 
122
190
  **Note:** Version bump only for package @pie-lib/mask-markup
123
191
 
192
+ ## [1.12.10](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.9...@pie-lib/mask-markup@1.12.10) (2022-08-08)
124
193
 
194
+ **Note:** Version bump only for package @pie-lib/mask-markup
125
195
 
196
+ ## [1.12.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.8...@pie-lib/mask-markup@1.12.9) (2022-07-18)
126
197
 
198
+ **Note:** Version bump only for package @pie-lib/mask-markup
127
199
 
128
- ## [1.11.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.11.0...@pie-lib/mask-markup@1.11.1) (2021-10-18)
200
+ ## [1.12.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.7...@pie-lib/mask-markup@1.12.8) (2022-07-18)
201
+
202
+ **Note:** Version bump only for package @pie-lib/mask-markup
203
+
204
+ ## [1.12.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.6...@pie-lib/mask-markup@1.12.7) (2022-06-13)
205
+
206
+ **Note:** Version bump only for package @pie-lib/mask-markup
129
207
 
208
+ ## [1.12.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.5...@pie-lib/mask-markup@1.12.6) (2022-05-30)
130
209
 
131
210
  ### Bug Fixes
132
211
 
133
- * **mask-markup:** Fixed border radius in pits ([41c0acd](https://github.com/pie-framework/pie-lib/commit/41c0acd))
212
+ - unable to load items locally ([17ab686](https://github.com/pie-framework/pie-lib/commit/17ab6864557288aef6ec1d9a130cb508e2591562))
134
213
 
214
+ ## [1.12.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.4...@pie-lib/mask-markup@1.12.5) (2022-05-24)
135
215
 
216
+ **Note:** Version bump only for package @pie-lib/mask-markup
136
217
 
218
+ ## [1.12.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.3...@pie-lib/mask-markup@1.12.4) (2022-04-28)
137
219
 
220
+ **Note:** Version bump only for package @pie-lib/mask-markup
138
221
 
139
- # [1.11.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.10.22...@pie-lib/mask-markup@1.11.0) (2021-10-18)
222
+ ## [1.12.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.2...@pie-lib/mask-markup@1.12.3) (2022-03-28)
140
223
 
224
+ **Note:** Version bump only for package @pie-lib/mask-markup
141
225
 
142
- ### Features
226
+ ## [1.12.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.1...@pie-lib/mask-markup@1.12.2) (2022-03-21)
143
227
 
144
- * **mask-markup:** Added a max limit of characters, adjusted the width and updated design PD-794 ([f46d544](https://github.com/pie-framework/pie-lib/commit/f46d544))
145
- * **mask-markup:** Made sure that the changes do not affect other components ([e3c5f8c](https://github.com/pie-framework/pie-lib/commit/e3c5f8c))
228
+ **Note:** Version bump only for package @pie-lib/mask-markup
146
229
 
230
+ ## [1.12.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.12.0...@pie-lib/mask-markup@1.12.1) (2022-03-21)
147
231
 
232
+ ### Bug Fixes
148
233
 
234
+ - **blank:** made sure height is auto to adapt to content, until it is calculated [PD-1652](<[9c3032f](https://github.com/pie-framework/pie-lib/commit/9c3032fb2adff3a06e94bcea63ea6c3de520b9d4)>)
235
+ - **mask:** made sure display inherit is not messing up div blocks ([8ae905c](https://github.com/pie-framework/pie-lib/commit/8ae905c48fb12002c007f0a62db2f1ead92fa881))
149
236
 
237
+ # [1.12.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.11.4...@pie-lib/mask-markup@1.12.0) (2022-03-07)
150
238
 
151
- ## [1.10.22](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.10.21...@pie-lib/mask-markup@1.10.22) (2021-09-08)
239
+ ### Bug Fixes
152
240
 
153
- **Note:** Version bump only for package @pie-lib/mask-markup
241
+ - **mask-markup:** fix style for drag-in-the-blank image tokens PD-1351 ([3302de1](https://github.com/pie-framework/pie-lib/commit/3302de16d94ad4dce3aa81c25a0b939bf0f19bc6))
242
+ - **mask-markup:** render mathml correctly PD-397 ([c89862b](https://github.com/pie-framework/pie-lib/commit/c89862b8c0f4ec7f1394f966d85a68a9bf6ffc12))
243
+ - **mask-markup:** Separated input width and characters limit PD-1395 PD-1396 ([c78ba6a](https://github.com/pie-framework/pie-lib/commit/c78ba6ad9325a6671d26eee14e855cb7ff979c91))
244
+ - **serialization:** made sure units are not added to mask-markup elements [PD-722](<[b855b27](https://github.com/pie-framework/pie-lib/commit/b855b27803965528968d5d2165fa4fd342414685)>)
154
245
 
246
+ ### Features
155
247
 
248
+ - **design:** masked markup inherits the container display property [PD-1418](<[3095d29](https://github.com/pie-framework/pie-lib/commit/3095d29c9ad1ae70f5f669abb5fb62abb5f8d955)>)
156
249
 
250
+ ## [1.11.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.11.3...@pie-lib/mask-markup@1.11.4) (2021-12-13)
157
251
 
252
+ **Note:** Version bump only for package @pie-lib/mask-markup
158
253
 
159
- ## [1.10.21](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.10.20...@pie-lib/mask-markup@1.10.21) (2021-09-08)
254
+ ## [1.11.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.11.2...@pie-lib/mask-markup@1.11.3) (2021-11-29)
160
255
 
161
256
  **Note:** Version bump only for package @pie-lib/mask-markup
162
257
 
258
+ ## [1.11.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.11.1...@pie-lib/mask-markup@1.11.2) (2021-11-10)
163
259
 
260
+ **Note:** Version bump only for package @pie-lib/mask-markup
164
261
 
262
+ ## [1.11.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.11.0...@pie-lib/mask-markup@1.11.1) (2021-10-18)
165
263
 
264
+ ### Bug Fixes
166
265
 
167
- ## [1.10.20](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.10.19...@pie-lib/mask-markup@1.10.20) (2021-08-30)
266
+ - **mask-markup:** Fixed border radius in pits ([41c0acd](https://github.com/pie-framework/pie-lib/commit/41c0acd))
168
267
 
169
- **Note:** Version bump only for package @pie-lib/mask-markup
268
+ # [1.11.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.10.22...@pie-lib/mask-markup@1.11.0) (2021-10-18)
170
269
 
270
+ ### Features
171
271
 
272
+ - **mask-markup:** Added a max limit of characters, adjusted the width and updated design PD-794 ([f46d544](https://github.com/pie-framework/pie-lib/commit/f46d544))
273
+ - **mask-markup:** Made sure that the changes do not affect other components ([e3c5f8c](https://github.com/pie-framework/pie-lib/commit/e3c5f8c))
172
274
 
275
+ ## [1.10.22](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.10.21...@pie-lib/mask-markup@1.10.22) (2021-09-08)
173
276
 
277
+ **Note:** Version bump only for package @pie-lib/mask-markup
174
278
 
175
- ## [1.10.19](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.10.18...@pie-lib/mask-markup@1.10.19) (2021-08-04)
279
+ ## [1.10.21](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.10.20...@pie-lib/mask-markup@1.10.21) (2021-09-08)
176
280
 
177
281
  **Note:** Version bump only for package @pie-lib/mask-markup
178
282
 
283
+ ## [1.10.20](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.10.19...@pie-lib/mask-markup@1.10.20) (2021-08-30)
179
284
 
285
+ **Note:** Version bump only for package @pie-lib/mask-markup
180
286
 
287
+ ## [1.10.19](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.10.18...@pie-lib/mask-markup@1.10.19) (2021-08-04)
181
288
 
289
+ **Note:** Version bump only for package @pie-lib/mask-markup
182
290
 
183
291
  ## [1.10.18](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.10.17...@pie-lib/mask-markup@1.10.18) (2021-07-23)
184
292
 
@@ -1,57 +1,36 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = exports.DRAG_TYPE = exports.BlankContent = void 0;
9
-
10
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
-
12
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
-
14
10
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
-
16
11
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
17
-
18
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
19
-
20
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
21
-
22
14
  var _react = _interopRequireDefault(require("react"));
23
-
24
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
25
-
26
16
  var _drag = require("@pie-lib/drag");
27
-
28
17
  var _styles = require("@material-ui/core/styles");
29
-
30
18
  var _Chip = _interopRequireDefault(require("@material-ui/core/Chip"));
31
-
32
19
  var _classnames = _interopRequireDefault(require("classnames"));
33
-
34
20
  var _reactDom = _interopRequireDefault(require("react-dom"));
35
-
36
21
  var _mathRendering = require("@pie-lib/math-rendering");
37
-
22
+ var _renderUi = require("@pie-lib/render-ui");
38
23
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
39
-
40
24
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
-
42
25
  var DRAG_TYPE = 'MaskBlank';
43
26
  exports.DRAG_TYPE = DRAG_TYPE;
44
-
45
27
  var BlankContentComp = /*#__PURE__*/function (_React$Component) {
46
28
  (0, _inherits2["default"])(BlankContentComp, _React$Component);
47
-
48
29
  var _super = _createSuper(BlankContentComp);
49
-
50
30
  function BlankContentComp() {
51
31
  (0, _classCallCheck2["default"])(this, BlankContentComp);
52
32
  return _super.apply(this, arguments);
53
33
  }
54
-
55
34
  (0, _createClass2["default"])(BlankContentComp, [{
56
35
  key: "componentDidUpdate",
57
36
  value: function componentDidUpdate() {
@@ -61,15 +40,19 @@ var BlankContentComp = /*#__PURE__*/function (_React$Component) {
61
40
  key: "render",
62
41
  value: function render() {
63
42
  var _this = this;
64
-
65
43
  var _this$props = this.props,
66
- connectDragSource = _this$props.connectDragSource,
67
- choice = _this$props.choice,
68
- classes = _this$props.classes,
69
- disabled = _this$props.disabled;
44
+ connectDragSource = _this$props.connectDragSource,
45
+ choice = _this$props.choice,
46
+ classes = _this$props.classes,
47
+ disabled = _this$props.disabled;
48
+
49
+ // TODO the Chip element is causing drag problems on touch devices. Avoid using Chip and consider refactoring the code. Keep in mind that Chip is a span with a button role, which interferes with seamless touch device dragging.
50
+
70
51
  return connectDragSource( /*#__PURE__*/_react["default"].createElement("span", {
71
52
  className: (0, _classnames["default"])(classes.choice, disabled && classes.disabled)
72
53
  }, /*#__PURE__*/_react["default"].createElement(_Chip["default"], {
54
+ clickable: false,
55
+ disabled: true,
73
56
  ref: function ref(_ref2) {
74
57
  //eslint-disable-next-line
75
58
  _this.rootRef = _reactDom["default"].findDOMNode(_ref2);
@@ -89,7 +72,6 @@ var BlankContentComp = /*#__PURE__*/function (_React$Component) {
89
72
  }]);
90
73
  return BlankContentComp;
91
74
  }(_react["default"].Component);
92
-
93
75
  (0, _defineProperty2["default"])(BlankContentComp, "propTypes", {
94
76
  disabled: _propTypes["default"].bool,
95
77
  choice: _propTypes["default"].object,
@@ -99,9 +81,15 @@ var BlankContentComp = /*#__PURE__*/function (_React$Component) {
99
81
  var BlankContent = (0, _styles.withStyles)(function (theme) {
100
82
  return {
101
83
  choice: {
102
- border: "solid 0px ".concat(theme.palette.primary.main)
84
+ border: "solid 0px ".concat(theme.palette.primary.main),
85
+ borderRadius: theme.spacing.unit * 2,
86
+ margin: theme.spacing.unit / 2,
87
+ transform: 'translate(0, 0)'
103
88
  },
104
89
  chip: {
90
+ backgroundColor: _renderUi.color.background(),
91
+ border: "1px solid ".concat(_renderUi.color.text()),
92
+ color: _renderUi.color.text(),
105
93
  alignItems: 'center',
106
94
  display: 'inline-flex',
107
95
  height: 'initial',
@@ -109,7 +97,10 @@ var BlankContent = (0, _styles.withStyles)(function (theme) {
109
97
  fontSize: 'inherit',
110
98
  whiteSpace: 'pre-wrap',
111
99
  maxWidth: '374px',
112
- margin: '4px'
100
+ // Added for touch devices, for image content.
101
+ // This will prevent the context menu from appearing and not allowing other interactions with the image.
102
+ // If interactions with the image in the token will be requested we should handle only the context Menu.
103
+ pointerEvents: 'none'
113
104
  },
114
105
  chipLabel: {
115
106
  whiteSpace: 'pre-wrap',
@@ -141,4 +132,4 @@ var DragDropTile = (0, _drag.DragSource)(DRAG_TYPE, tileSource, function (connec
141
132
  })(BlankContent);
142
133
  var _default = DragDropTile;
143
134
  exports["default"] = _default;
144
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJEUkFHX1RZUEUiLCJCbGFua0NvbnRlbnRDb21wIiwicmVuZGVyTWF0aCIsInJvb3RSZWYiLCJwcm9wcyIsImNvbm5lY3REcmFnU291cmNlIiwiY2hvaWNlIiwiY2xhc3NlcyIsImRpc2FibGVkIiwiY2xhc3NuYW1lcyIsInJlZiIsIlJlYWN0RE9NIiwiZmluZERPTU5vZGUiLCJjaGlwIiwiY2hpcExhYmVsIiwiaW5uZXJIVE1MIiwidmFsdWUiLCJ1bmRlZmluZWQiLCJSZWFjdCIsIkNvbXBvbmVudCIsIlByb3BUeXBlcyIsImJvb2wiLCJvYmplY3QiLCJmdW5jIiwiQmxhbmtDb250ZW50Iiwid2l0aFN0eWxlcyIsInRoZW1lIiwiYm9yZGVyIiwicGFsZXR0ZSIsInByaW1hcnkiLCJtYWluIiwiYWxpZ25JdGVtcyIsImRpc3BsYXkiLCJoZWlnaHQiLCJtaW5IZWlnaHQiLCJmb250U2l6ZSIsIndoaXRlU3BhY2UiLCJtYXhXaWR0aCIsIm1hcmdpbiIsInBhZGRpbmciLCJ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W5kZXJNYXRoKHRoaXMucm9vdFJlZik7XG4gIH1cblxuICByZW5kZXIoKSB7XG4gICAgY29uc3QgeyBjb25uZWN0RHJhZ1NvdXJjZSwgY2hvaWNlLCBjbGFzc2VzLCBkaXNhYmxlZCB9ID0gdGhpcy5wcm9wcztcblxuICAgIHJldHVybiBjb25uZWN0RHJhZ1NvdXJjZShcbiAgICAgIDxzcGFuIGNsYXNzTmFtZT17Y2xhc3NuYW1lcyhjbGFzc2VzLmNob2ljZSwgZGlzYWJsZWQgJiYgY2xhc3Nlcy5kaXNhYmxlZCl9PlxuICAgICAgICA8Q2hpcFxuICAgICAgICAgIHJlZj17cmVmID0+IHtcbiAgICAgICAgICAgIC8vZXNsaW50LWRpc2FibGUtbmV4dC1saW5lXG4gICAgICAgICAgICB0aGlzLnJvb3RSZWYgPSBSZWFjdERPTS5maW5kRE9NTm9kZShyZWYpO1xuICAgICAgICAgIH19XG4gICAgICAgICAgY2xhc3NOYW1lPXtjbGFzc2VzLmNoaXB9XG4gICAgICAgICAgbGFiZWw9e1xuICAgICAgICAgICAgPHNwYW5cbiAgICAgICAgICAgICAgY2xhc3NOYW1lPXtjbGFzc2VzLmNoaXBMYWJlbH1cbiAgICAgICAgICAgICAgcmVmPXtyZWYgPT4ge1xuICAgICAgICAgICAgICAgIGlmIChyZWYpIHtcbiAgICAgICAgICAgICAgICAgIHJlZi5pbm5lckhUTUwgPSBjaG9pY2UudmFsdWUgfHwgJyAnO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgeycgJ31cbiAgICAgICAgICAgIDwvc3Bhbj5cbiAgICAgICAgICB9XG4gICAgICAgICAgdmFyaWFudD17ZGlzYWJsZWQgPyAnb3V0bGluZWQnIDogdW5kZWZpbmVkfVxuICAgICAgICAvPlxuICAgICAgPC9zcGFuPixcbiAgICAgIHt9XG4gICAgKTtcbiAgfVxufVxuXG5leHBvcnQgY29uc3QgQm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7TUFFVCxTQUFTO1FBQ1BKLE9BQU8sRUFBRSxPQURGO1FBRVBPLE9BQU8sRUFBRTtNQUZGO0lBRkEsQ0Fkb0M7SUFxQi9DL0IsUUFBUSxFQUFFO0VBckJxQyxDQUFMO0FBQUEsQ0FBaEIsRUFzQnhCUCxnQkF0QndCLENBQXJCOztBQXdCUCxJQUFNdUMsVUFBVSxHQUFHO0VBQ2pCQyxPQURpQixtQkFDVHJDLEtBRFMsRUFDRjtJQUNiLE9BQU8sQ0FBQ0EsS0FBSyxDQUFDSSxRQUFkO0VBQ0QsQ0FIZ0I7RUFJakJrQyxTQUppQixxQkFJUHRDLEtBSk8sRUFJQTtJQUNmLE9BQU87TUFDTEUsTUFBTSxFQUFFRixLQUFLLENBQUNFLE1BRFQ7TUFFTHFDLFVBQVUsRUFBRXZDLEtBQUssQ0FBQ3VDO0lBRmIsQ0FBUDtFQUlEO0FBVGdCLENBQW5CO0FBWUEsSUFBTUMsWUFBWSxHQUFHLElBQUFDLGdCQUFBLEVBQVc3QyxTQUFYLEVBQXNCd0MsVUFBdEIsRUFBa0MsVUFBQ00sT0FBRCxFQUFVQyxPQUFWO0VBQUEsT0FBdUI7SUFDNUUxQyxpQkFBaUIsRUFBRXlDLE9BQU8sQ0FBQ0UsVUFBUixFQUR5RDtJQUU1RUMsVUFBVSxFQUFFRixPQUFPLENBQUNFLFVBQVI7RUFGZ0UsQ0FBdkI7QUFBQSxDQUFsQyxFQUdqQnpCLFlBSGlCLENBQXJCO2VBS2VvQixZIn0=
135
+ //# sourceMappingURL=choice.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"choice.js","names":["DRAG_TYPE","BlankContentComp","renderMath","rootRef","props","connectDragSource","choice","classes","disabled","classnames","ref","ReactDOM","findDOMNode","chip","chipLabel","innerHTML","value","undefined","React","Component","PropTypes","bool","object","func","BlankContent","withStyles","theme","border","palette","primary","main","alignItems","display","height","minHeight","fontSize","whiteSpace","maxWidth","margin","padding","tileSource","canDrag","beginDrag","instanceId","DragDropTile","DragSource","connect","monitor","dragSource","isDragging"],"sources":["../../src/choices/choice.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DragSource } from '@pie-lib/drag';\nimport { withStyles } from '@material-ui/core/styles';\nimport Chip from '@material-ui/core/Chip';\nimport classnames from 'classnames';\nimport ReactDOM from 'react-dom';\nimport { renderMath } from '@pie-lib/math-rendering';\n\nexport const DRAG_TYPE = 'MaskBlank';\n\nclass BlankContentComp extends React.Component {\n static propTypes = {\n disabled: PropTypes.bool,\n choice: PropTypes.object,\n classes: PropTypes.object,\n connectDragSource: PropTypes.func\n };\n\n componentDidUpdate() {\n renderMath(this.rootRef);\n }\n\n render() {\n const { connectDragSource, choice, classes, disabled } = this.props;\n\n return connectDragSource(\n <span className={classnames(classes.choice, disabled && classes.disabled)}>\n <Chip\n ref={ref => {\n //eslint-disable-next-line\n this.rootRef = ReactDOM.findDOMNode(ref);\n }}\n className={classes.chip}\n label={\n <span\n className={classes.chipLabel}\n ref={ref => {\n if (ref) {\n ref.innerHTML = choice.value || ' ';\n }\n }}\n >\n {' '}\n </span>\n }\n variant={disabled ? 'outlined' : undefined}\n />\n </span>,\n {}\n );\n }\n}\n\nexport const BlankContent = withStyles(theme => ({\n choice: {\n border: `solid 0px ${theme.palette.primary.main}`\n },\n chip: {\n alignItems: 'center',\n display: 'inline-flex',\n height: 'initial',\n minHeight: '32px',\n fontSize: 'inherit',\n whiteSpace: 'pre-wrap',\n maxWidth: '374px',\n margin: '4px'\n },\n chipLabel: {\n whiteSpace: 'pre-wrap',\n '& img': {\n display: 'block',\n padding: '2px 0'\n }\n },\n disabled: {}\n}))(BlankContentComp);\n\nconst tileSource = {\n canDrag(props) {\n return !props.disabled;\n },\n beginDrag(props) {\n return {\n choice: props.choice,\n instanceId: props.instanceId\n };\n }\n};\n\nconst DragDropTile = DragSource(DRAG_TYPE, tileSource, (connect, monitor) => ({\n connectDragSource: connect.dragSource(),\n isDragging: monitor.isDragging()\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es","_drag","_styles","_Chip","_classnames","_reactDom","_mathRendering","_renderUi","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","DRAG_TYPE","exports","BlankContentComp","_React$Component","_inherits2","_super","_classCallCheck2","_createClass2","key","value","componentDidUpdate","renderMath","rootRef","render","_this","_this$props","props","connectDragSource","choice","classes","disabled","createElement","className","classnames","clickable","ref","ReactDOM","findDOMNode","chip","label","chipLabel","innerHTML","variant","undefined","React","Component","_defineProperty2","PropTypes","bool","object","func","BlankContent","withStyles","theme","border","concat","palette","primary","main","borderRadius","spacing","unit","margin","transform","backgroundColor","color","background","text","alignItems","display","height","minHeight","fontSize","whiteSpace","maxWidth","pointerEvents","padding","tileSource","canDrag","beginDrag","instanceId","DragDropTile","DragSource","connect","monitor","dragSource","isDragging","_default"],"sources":["../../src/choices/choice.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DragSource } from '@pie-lib/drag';\nimport { withStyles } from '@material-ui/core/styles';\nimport Chip from '@material-ui/core/Chip';\nimport classnames from 'classnames';\nimport ReactDOM from 'react-dom';\nimport { renderMath } from '@pie-lib/math-rendering';\nimport { color } from '@pie-lib/render-ui';\n\nexport const DRAG_TYPE = 'MaskBlank';\n\nclass BlankContentComp extends React.Component {\n static propTypes = {\n disabled: PropTypes.bool,\n choice: PropTypes.object,\n classes: PropTypes.object,\n connectDragSource: PropTypes.func,\n };\n\n componentDidUpdate() {\n renderMath(this.rootRef);\n }\n\n render() {\n const { connectDragSource, choice, classes, disabled } = this.props;\n\n // TODO the Chip element is causing drag problems on touch devices. Avoid using Chip and consider refactoring the code. Keep in mind that Chip is a span with a button role, which interferes with seamless touch device dragging.\n\n return connectDragSource(\n <span className={classnames(classes.choice, disabled && classes.disabled)}>\n <Chip\n clickable={false}\n disabled={true}\n ref={(ref) => {\n //eslint-disable-next-line\n this.rootRef = ReactDOM.findDOMNode(ref);\n }}\n className={classes.chip}\n label={\n <span\n className={classes.chipLabel}\n ref={(ref) => {\n if (ref) {\n ref.innerHTML = choice.value || ' ';\n }\n }}\n >\n {' '}\n </span>\n }\n variant={disabled ? 'outlined' : undefined}\n />\n </span>,\n {},\n );\n }\n}\n\nexport const BlankContent = withStyles((theme) => ({\n choice: {\n border: `solid 0px ${theme.palette.primary.main}`,\n borderRadius: theme.spacing.unit * 2,\n margin: theme.spacing.unit / 2,\n transform: 'translate(0, 0)',\n },\n chip: {\n backgroundColor: color.background(),\n border: `1px solid ${color.text()}`,\n color: color.text(),\n alignItems: 'center',\n display: 'inline-flex',\n height: 'initial',\n minHeight: '32px',\n fontSize: 'inherit',\n whiteSpace: 'pre-wrap',\n maxWidth: '374px',\n // Added for touch devices, for image content.\n // This will prevent the context menu from appearing and not allowing other interactions with the image.\n // If interactions with the image in the token will be requested we should handle only the context Menu.\n pointerEvents: 'none',\n },\n chipLabel: {\n whiteSpace: 'pre-wrap',\n '& img': {\n display: 'block',\n padding: '2px 0',\n },\n },\n disabled: {},\n}))(BlankContentComp);\n\nconst tileSource = {\n canDrag(props) {\n return !props.disabled;\n },\n beginDrag(props) {\n return {\n choice: props.choice,\n instanceId: props.instanceId,\n };\n },\n};\n\nconst DragDropTile = DragSource(DRAG_TYPE, tileSource, (connect, monitor) => ({\n connectDragSource: connect.dragSource(),\n isDragging: monitor.isDragging(),\n}))(BlankContent);\n\nexport default DragDropTile;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM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