@pie-lib/mask-markup 1.13.47-next.1 → 1.14.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 (63) hide show
  1. package/CHANGELOG.md +22 -47
  2. package/NEXT.CHANGELOG.json +1 -0
  3. package/package.json +9 -5
  4. package/src/__tests__/__snapshots__/drag-in-the-blank.test.js.snap +316 -0
  5. package/src/__tests__/__snapshots__/mask.test.js.snap +55 -0
  6. package/src/__tests__/__snapshots__/with-mask.test.js.snap +62 -0
  7. package/src/__tests__/drag-in-the-blank.test.js +71 -0
  8. package/src/__tests__/index.test.js +39 -0
  9. package/src/__tests__/mask.test.js +152 -0
  10. package/src/__tests__/serialization.test.js +54 -0
  11. package/src/__tests__/utils.js +1 -0
  12. package/src/__tests__/with-mask.test.js +51 -0
  13. package/src/choices/__tests__/__snapshots__/index.test.js.snap +209 -0
  14. package/src/choices/__tests__/index.test.js +62 -0
  15. package/src/choices/choice.jsx +60 -6
  16. package/src/choices/index.jsx +2 -2
  17. package/src/components/__tests__/__snapshots__/blank.test.js.snap +111 -0
  18. package/src/components/__tests__/__snapshots__/correct-input.test.js.snap +64 -0
  19. package/src/components/__tests__/__snapshots__/dropdown.test.js.snap +133 -0
  20. package/src/components/__tests__/__snapshots__/input.test.js.snap +34 -0
  21. package/src/components/__tests__/blank.test.js +202 -0
  22. package/src/components/__tests__/correct-input.test.js +49 -0
  23. package/src/components/__tests__/dropdown.test.js +51 -0
  24. package/src/components/__tests__/input.test.js +50 -0
  25. package/src/components/blank.jsx +139 -28
  26. package/src/components/correct-input.jsx +6 -1
  27. package/src/components/dropdown.jsx +192 -71
  28. package/src/constructed-response.jsx +76 -18
  29. package/src/customizable.jsx +35 -0
  30. package/src/drag-in-the-blank.jsx +26 -3
  31. package/src/index.js +10 -1
  32. package/src/inline-dropdown.jsx +2 -0
  33. package/src/mask.jsx +30 -5
  34. package/src/with-mask.jsx +39 -2
  35. package/README.md +0 -14
  36. package/lib/choices/choice.js +0 -158
  37. package/lib/choices/choice.js.map +0 -1
  38. package/lib/choices/index.js +0 -127
  39. package/lib/choices/index.js.map +0 -1
  40. package/lib/componentize.js +0 -25
  41. package/lib/componentize.js.map +0 -1
  42. package/lib/components/blank.js +0 -303
  43. package/lib/components/blank.js.map +0 -1
  44. package/lib/components/correct-input.js +0 -113
  45. package/lib/components/correct-input.js.map +0 -1
  46. package/lib/components/dropdown.js +0 -216
  47. package/lib/components/dropdown.js.map +0 -1
  48. package/lib/components/input.js +0 -57
  49. package/lib/components/input.js.map +0 -1
  50. package/lib/constructed-response.js +0 -52
  51. package/lib/constructed-response.js.map +0 -1
  52. package/lib/drag-in-the-blank.js +0 -191
  53. package/lib/drag-in-the-blank.js.map +0 -1
  54. package/lib/index.js +0 -54
  55. package/lib/index.js.map +0 -1
  56. package/lib/inline-dropdown.js +0 -46
  57. package/lib/inline-dropdown.js.map +0 -1
  58. package/lib/mask.js +0 -215
  59. package/lib/mask.js.map +0 -1
  60. package/lib/serialization.js +0 -207
  61. package/lib/serialization.js.map +0 -1
  62. package/lib/with-mask.js +0 -93
  63. package/lib/with-mask.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,18 +3,15 @@
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.13.46](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.45...@pie-lib/mask-markup@1.13.46) (2023-10-03)
7
-
8
-
9
- ### Bug Fixes
6
+ # [1.14.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.46...@pie-lib/mask-markup@1.14.0-beta.2) (2025-07-20)
10
7
 
11
- * revert to pie-lib/math-rendering that what working ([25660ea](https://github.com/pie-framework/pie-lib/commit/25660ea6595e800a71c5494bd3bb9eecd3609a5a))
8
+ **Note:** Version bump only for package @pie-lib/mask-markup
12
9
 
13
10
 
14
11
 
15
12
 
16
13
 
17
- ## [1.13.45](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.44...@pie-lib/mask-markup@1.13.45) (2023-10-01)
14
+ # [1.14.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.46...@pie-lib/mask-markup@1.14.0-beta.1) (2025-07-20)
18
15
 
19
16
  **Note:** Version bump only for package @pie-lib/mask-markup
20
17
 
@@ -22,7 +19,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
22
19
 
23
20
 
24
21
 
25
- ## [1.13.44](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.43...@pie-lib/mask-markup@1.13.44) (2023-09-27)
22
+ # [1.14.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.46...@pie-lib/mask-markup@1.14.0-beta.1) (2025-07-20)
26
23
 
27
24
  **Note:** Version bump only for package @pie-lib/mask-markup
28
25
 
@@ -30,7 +27,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
30
27
 
31
28
 
32
29
 
33
- ## [1.13.43](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.42...@pie-lib/mask-markup@1.13.43) (2023-09-27)
30
+ # [1.14.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.46...@pie-lib/mask-markup@1.14.0-beta.0) (2025-07-20)
34
31
 
35
32
  **Note:** Version bump only for package @pie-lib/mask-markup
36
33
 
@@ -38,102 +35,80 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
38
35
 
39
36
 
40
37
 
41
- ## [1.13.42](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.41...@pie-lib/mask-markup@1.13.42) (2023-09-27)
38
+ # [1.15.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.46...@pie-lib/mask-markup@1.15.0-beta.0) (2025-07-15)
42
39
 
43
40
  **Note:** Version bump only for package @pie-lib/mask-markup
44
41
 
42
+ # [1.14.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.46...@pie-lib/mask-markup@1.14.0-beta.0) (2025-07-15)
43
+
44
+ **Note:** Version bump only for package @pie-lib/mask-markup
45
45
 
46
+ ## [1.13.46](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.45...@pie-lib/mask-markup@1.13.46) (2023-10-03)
46
47
 
48
+ ### Bug Fixes
47
49
 
50
+ - revert to pie-lib/math-rendering that what working ([25660ea](https://github.com/pie-framework/pie-lib/commit/25660ea6595e800a71c5494bd3bb9eecd3609a5a))
48
51
 
49
- ## [1.13.41](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.40...@pie-lib/mask-markup@1.13.41) (2023-09-25)
52
+ ## [1.13.45](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.44...@pie-lib/mask-markup@1.13.45) (2023-10-01)
50
53
 
51
54
  **Note:** Version bump only for package @pie-lib/mask-markup
52
55
 
56
+ ## [1.13.44](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.43...@pie-lib/mask-markup@1.13.44) (2023-09-27)
53
57
 
58
+ **Note:** Version bump only for package @pie-lib/mask-markup
54
59
 
60
+ ## [1.13.43](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.42...@pie-lib/mask-markup@1.13.43) (2023-09-27)
55
61
 
62
+ **Note:** Version bump only for package @pie-lib/mask-markup
56
63
 
57
- ## [1.13.40](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.39...@pie-lib/mask-markup@1.13.40) (2023-09-20)
64
+ ## [1.13.42](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.41...@pie-lib/mask-markup@1.13.42) (2023-09-27)
58
65
 
59
66
  **Note:** Version bump only for package @pie-lib/mask-markup
60
67
 
68
+ ## [1.13.41](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.40...@pie-lib/mask-markup@1.13.41) (2023-09-25)
61
69
 
70
+ **Note:** Version bump only for package @pie-lib/mask-markup
62
71
 
72
+ ## [1.13.40](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.39...@pie-lib/mask-markup@1.13.40) (2023-09-20)
63
73
 
74
+ **Note:** Version bump only for package @pie-lib/mask-markup
64
75
 
65
76
  ## [1.13.39](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.38...@pie-lib/mask-markup@1.13.39) (2023-09-20)
66
77
 
67
78
  **Note:** Version bump only for package @pie-lib/mask-markup
68
79
 
69
-
70
-
71
-
72
-
73
80
  ## [1.13.38](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.37...@pie-lib/mask-markup@1.13.38) (2023-09-14)
74
81
 
75
82
  **Note:** Version bump only for package @pie-lib/mask-markup
76
83
 
77
-
78
-
79
-
80
-
81
84
  ## [1.13.37](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.36...@pie-lib/mask-markup@1.13.37) (2023-08-21)
82
85
 
83
86
  **Note:** Version bump only for package @pie-lib/mask-markup
84
87
 
85
-
86
-
87
-
88
-
89
88
  ## [1.13.36](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.35...@pie-lib/mask-markup@1.13.36) (2023-08-15)
90
89
 
91
90
  **Note:** Version bump only for package @pie-lib/mask-markup
92
91
 
93
-
94
-
95
-
96
-
97
92
  ## [1.13.35](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.34...@pie-lib/mask-markup@1.13.35) (2023-08-07)
98
93
 
99
94
  **Note:** Version bump only for package @pie-lib/mask-markup
100
95
 
101
-
102
-
103
-
104
-
105
96
  ## [1.13.34](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.33...@pie-lib/mask-markup@1.13.34) (2023-07-31)
106
97
 
107
98
  **Note:** Version bump only for package @pie-lib/mask-markup
108
99
 
109
-
110
-
111
-
112
-
113
100
  ## [1.13.33](https://github.com/pie-framework/pie-lib/compare/@pie-lib/mask-markup@1.13.32...@pie-lib/mask-markup@1.13.33) (2023-07-24)
114
101
 
115
102
  **Note:** Version bump only for package @pie-lib/mask-markup
116
103
 
117
-
118
-
119
-
120
-
121
104
  ## [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)
122
105
 
123
106
  **Note:** Version bump only for package @pie-lib/mask-markup
124
107
 
125
-
126
-
127
-
128
-
129
108
  ## [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)
130
109
 
131
110
  **Note:** Version bump only for package @pie-lib/mask-markup
132
111
 
133
-
134
-
135
-
136
-
137
112
  ## [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)
138
113
 
139
114
  **Note:** Version bump only for package @pie-lib/mask-markup
@@ -0,0 +1 @@
1
+ []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/mask-markup",
3
- "version": "1.13.47-next.1+23991a09",
3
+ "version": "1.14.0-beta.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "src/index.js",
@@ -9,15 +9,19 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@material-ui/core": "^3.9.3",
12
- "@pie-lib/drag": "^2.2.10-next.1+23991a09",
13
- "@pie-lib/math-rendering": "2.5.18",
14
- "@pie-lib/render-ui": "^4.15.10-next.1+23991a09",
12
+ "@material-ui/icons": "^3.0.2",
13
+ "@pie-lib/drag": "beta",
14
+ "@pie-lib/editable-html": "beta",
15
+ "@pie-lib/math-rendering": "beta",
16
+ "@pie-lib/render-ui": "beta",
15
17
  "classnames": "^2.2.6",
16
18
  "debug": "^4.1.1",
17
19
  "immutable": ">=3.8.1",
20
+ "lodash": "^4.17.11",
18
21
  "prop-types": "^15.7.2",
19
22
  "react": "^16.8.1",
20
23
  "react-dnd-html5-backend": "^14.0.2",
24
+ "react-dom": "^16.9.0",
21
25
  "slate": "^0.36.2",
22
26
  "slate-html-serializer": "^0.6.12",
23
27
  "slate-prop-types": "^0.4.38",
@@ -27,5 +31,5 @@
27
31
  "keywords": [],
28
32
  "author": "",
29
33
  "license": "ISC",
30
- "gitHead": "23991a09b77492c24dcb5235049667cdcc211d80"
34
+ "gitHead": "e2aa3ddac60f49bcb8c2562370f496323642f453"
31
35
  }
@@ -0,0 +1,316 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`DragInTheBlank render renders correctly with default props 1`] = `
4
+ <div
5
+ style={
6
+ Object {
7
+ "alignItems": undefined,
8
+ "display": "flex",
9
+ "flexDirection": "column-reverse",
10
+ "justifyContent": undefined,
11
+ "minWidth": "100px",
12
+ }
13
+ }
14
+ >
15
+ <Choices
16
+ choicePosition="below"
17
+ choices={
18
+ Array [
19
+ Object {
20
+ "id": "0",
21
+ "value": "Jumped",
22
+ },
23
+ Object {
24
+ "id": "1",
25
+ "value": "Laughed",
26
+ },
27
+ Object {
28
+ "id": "2",
29
+ "value": "Spoon",
30
+ },
31
+ Object {
32
+ "id": "3",
33
+ "value": "Fork",
34
+ },
35
+ Object {
36
+ "id": "4",
37
+ "value": "Bumped",
38
+ },
39
+ Object {
40
+ "id": "5",
41
+ "value": "Smiled",
42
+ },
43
+ ]
44
+ }
45
+ disabled={false}
46
+ value={
47
+ Object {
48
+ "0": undefined,
49
+ }
50
+ }
51
+ />
52
+ <WithMask
53
+ choices={
54
+ Array [
55
+ Object {
56
+ "id": "0",
57
+ "value": "Jumped",
58
+ },
59
+ Object {
60
+ "id": "1",
61
+ "value": "Laughed",
62
+ },
63
+ Object {
64
+ "id": "2",
65
+ "value": "Spoon",
66
+ },
67
+ Object {
68
+ "id": "3",
69
+ "value": "Fork",
70
+ },
71
+ Object {
72
+ "id": "4",
73
+ "value": "Bumped",
74
+ },
75
+ Object {
76
+ "id": "5",
77
+ "value": "Smiled",
78
+ },
79
+ ]
80
+ }
81
+ disabled={false}
82
+ elementType="drag-in-the-blank"
83
+ feedback={Object {}}
84
+ markup="<div>
85
+ <img src=\\"https://image.shutterstock.com/image-vector/cow-jumped-over-moon-traditional-260nw-1152899330.jpg\\"></img>
86
+ <h5>Hey Diddle Diddle <i>by ?</i></h5>
87
+ <p>1: Hey, diddle, diddle,</p>
88
+ <p>2: The cat and the fiddle,</p>
89
+ <p>3: The cow {{0}} over the moon;</p>
90
+ <p>4: The little dog {{1}},</p>
91
+ <p>5: To see such sport,</p>
92
+ <p>6: And the dish ran away with the {{2}}.</p>
93
+ </div>"
94
+ value={
95
+ Object {
96
+ "0": undefined,
97
+ }
98
+ }
99
+ />
100
+ </div>
101
+ `;
102
+
103
+ exports[`DragInTheBlank render renders correctly with disabled prop as true 1`] = `
104
+ <div
105
+ style={
106
+ Object {
107
+ "alignItems": undefined,
108
+ "display": "flex",
109
+ "flexDirection": "column-reverse",
110
+ "justifyContent": undefined,
111
+ "minWidth": "100px",
112
+ }
113
+ }
114
+ >
115
+ <Choices
116
+ choicePosition="below"
117
+ choices={
118
+ Array [
119
+ Object {
120
+ "id": "0",
121
+ "value": "Jumped",
122
+ },
123
+ Object {
124
+ "id": "1",
125
+ "value": "Laughed",
126
+ },
127
+ Object {
128
+ "id": "2",
129
+ "value": "Spoon",
130
+ },
131
+ Object {
132
+ "id": "3",
133
+ "value": "Fork",
134
+ },
135
+ Object {
136
+ "id": "4",
137
+ "value": "Bumped",
138
+ },
139
+ Object {
140
+ "id": "5",
141
+ "value": "Smiled",
142
+ },
143
+ ]
144
+ }
145
+ disabled={true}
146
+ value={
147
+ Object {
148
+ "0": undefined,
149
+ }
150
+ }
151
+ />
152
+ <WithMask
153
+ choices={
154
+ Array [
155
+ Object {
156
+ "id": "0",
157
+ "value": "Jumped",
158
+ },
159
+ Object {
160
+ "id": "1",
161
+ "value": "Laughed",
162
+ },
163
+ Object {
164
+ "id": "2",
165
+ "value": "Spoon",
166
+ },
167
+ Object {
168
+ "id": "3",
169
+ "value": "Fork",
170
+ },
171
+ Object {
172
+ "id": "4",
173
+ "value": "Bumped",
174
+ },
175
+ Object {
176
+ "id": "5",
177
+ "value": "Smiled",
178
+ },
179
+ ]
180
+ }
181
+ disabled={true}
182
+ elementType="drag-in-the-blank"
183
+ feedback={Object {}}
184
+ markup="<div>
185
+ <img src=\\"https://image.shutterstock.com/image-vector/cow-jumped-over-moon-traditional-260nw-1152899330.jpg\\"></img>
186
+ <h5>Hey Diddle Diddle <i>by ?</i></h5>
187
+ <p>1: Hey, diddle, diddle,</p>
188
+ <p>2: The cat and the fiddle,</p>
189
+ <p>3: The cow {{0}} over the moon;</p>
190
+ <p>4: The little dog {{1}},</p>
191
+ <p>5: To see such sport,</p>
192
+ <p>6: And the dish ran away with the {{2}}.</p>
193
+ </div>"
194
+ value={
195
+ Object {
196
+ "0": undefined,
197
+ }
198
+ }
199
+ />
200
+ </div>
201
+ `;
202
+
203
+ exports[`DragInTheBlank render renders correctly with feedback 1`] = `
204
+ <div
205
+ style={
206
+ Object {
207
+ "alignItems": undefined,
208
+ "display": "flex",
209
+ "flexDirection": "column-reverse",
210
+ "justifyContent": undefined,
211
+ "minWidth": "100px",
212
+ }
213
+ }
214
+ >
215
+ <Choices
216
+ choicePosition="below"
217
+ choices={
218
+ Array [
219
+ Object {
220
+ "id": "0",
221
+ "value": "Jumped",
222
+ },
223
+ Object {
224
+ "id": "1",
225
+ "value": "Laughed",
226
+ },
227
+ Object {
228
+ "id": "2",
229
+ "value": "Spoon",
230
+ },
231
+ Object {
232
+ "id": "3",
233
+ "value": "Fork",
234
+ },
235
+ Object {
236
+ "id": "4",
237
+ "value": "Bumped",
238
+ },
239
+ Object {
240
+ "id": "5",
241
+ "value": "Smiled",
242
+ },
243
+ ]
244
+ }
245
+ disabled={false}
246
+ value={
247
+ Object {
248
+ "0": undefined,
249
+ }
250
+ }
251
+ />
252
+ <WithMask
253
+ choices={
254
+ Array [
255
+ Object {
256
+ "id": "0",
257
+ "value": "Jumped",
258
+ },
259
+ Object {
260
+ "id": "1",
261
+ "value": "Laughed",
262
+ },
263
+ Object {
264
+ "id": "2",
265
+ "value": "Spoon",
266
+ },
267
+ Object {
268
+ "id": "3",
269
+ "value": "Fork",
270
+ },
271
+ Object {
272
+ "id": "4",
273
+ "value": "Bumped",
274
+ },
275
+ Object {
276
+ "id": "5",
277
+ "value": "Smiled",
278
+ },
279
+ ]
280
+ }
281
+ disabled={false}
282
+ elementType="drag-in-the-blank"
283
+ feedback={
284
+ Object {
285
+ "0": Object {
286
+ "correct": "Jumped",
287
+ "value": "Jumped",
288
+ },
289
+ "1": Object {
290
+ "correct": "Laughed",
291
+ "value": "Laughed",
292
+ },
293
+ "2": Object {
294
+ "correct": "Spoon",
295
+ "value": "Spoon",
296
+ },
297
+ }
298
+ }
299
+ markup="<div>
300
+ <img src=\\"https://image.shutterstock.com/image-vector/cow-jumped-over-moon-traditional-260nw-1152899330.jpg\\"></img>
301
+ <h5>Hey Diddle Diddle <i>by ?</i></h5>
302
+ <p>1: Hey, diddle, diddle,</p>
303
+ <p>2: The cat and the fiddle,</p>
304
+ <p>3: The cow {{0}} over the moon;</p>
305
+ <p>4: The little dog {{1}},</p>
306
+ <p>5: To see such sport,</p>
307
+ <p>6: And the dish ran away with the {{2}}.</p>
308
+ </div>"
309
+ value={
310
+ Object {
311
+ "0": undefined,
312
+ }
313
+ }
314
+ />
315
+ </div>
316
+ `;
@@ -0,0 +1,55 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Mask render renders correctly a div 1`] = `
4
+ <div>
5
+ <div
6
+ key="div-0"
7
+ >
8
+ <WithStyles(Component)
9
+ key="p-0"
10
+ >
11
+ Foo
12
+ </WithStyles(Component)>
13
+ </div>
14
+ </div>
15
+ `;
16
+
17
+ exports[`Mask render renders correctly a em 1`] = `
18
+ <WithStyles(Component)>
19
+ Foo
20
+ <em
21
+ key="1"
22
+ >
23
+ x
24
+ </em>
25
+ bar
26
+ </WithStyles(Component)>
27
+ `;
28
+
29
+ exports[`Mask render renders correctly a paragraph 1`] = `
30
+ <div>
31
+ <WithStyles(Component)
32
+ key="p-0"
33
+ >
34
+ Foo
35
+ </WithStyles(Component)>
36
+ </div>
37
+ `;
38
+
39
+ exports[`Mask render renders correctly with default props 1`] = `
40
+ <div>
41
+ Foo
42
+ </div>
43
+ `;
44
+
45
+ exports[`Mask render renders without space under tbody 1`] = `
46
+ <div>
47
+ <tbody
48
+ key="tbody-0"
49
+ >
50
+ <tr
51
+ key="tr-1"
52
+ />
53
+ </tbody>
54
+ </div>
55
+ `;
@@ -0,0 +1,62 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`WithMask render renders correctly with default props 1`] = `
4
+ <Mask
5
+ layout={
6
+ Object {
7
+ "data": Object {},
8
+ "nodes": Array [
9
+ Object {
10
+ "data": Object {
11
+ "attributes": Object {},
12
+ "dataset": Object {},
13
+ },
14
+ "nodes": Array [
15
+ Object {
16
+ "leaves": Array [
17
+ Object {
18
+ "text": "Foo bar ",
19
+ },
20
+ ],
21
+ "object": "text",
22
+ },
23
+ Object {
24
+ "data": Object {
25
+ "attributes": Object {
26
+ "data-component": "foo",
27
+ "data-id": "0",
28
+ },
29
+ "dataset": Object {
30
+ "component": "foo",
31
+ "id": "0",
32
+ },
33
+ },
34
+ "nodes": Array [],
35
+ "object": "inline",
36
+ "type": "span",
37
+ },
38
+ Object {
39
+ "leaves": Array [
40
+ Object {
41
+ "text": " over the moon;",
42
+ },
43
+ ],
44
+ "object": "text",
45
+ },
46
+ ],
47
+ "object": "block",
48
+ "type": "p",
49
+ },
50
+ ],
51
+ "object": "document",
52
+ }
53
+ }
54
+ onChange={[MockFunction]}
55
+ renderChildren={[Function]}
56
+ value={
57
+ Object {
58
+ "0": "blank",
59
+ }
60
+ }
61
+ />
62
+ `;