@synerise/ds-code-area 1.1.9 → 1.1.11
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 +18 -304
- package/README.md +18 -22
- package/dist/CodeArea.d.ts +1 -1
- package/dist/CodeArea.styles.d.ts +1 -1
- package/dist/CodeArea.styles.js +1 -1
- package/dist/CodeArea.types.d.ts +5 -6
- package/dist/components/BottomBar.d.ts +2 -2
- package/dist/components/CodeAreaEditor.d.ts +1 -1
- package/dist/components/CodeAreaEditor.js +6 -4
- package/dist/components/CodeAreaEditorRaw.d.ts +1 -1
- package/dist/components/CodeAreaEditorRaw.js +3 -4
- package/dist/components/ContentAbove.d.ts +1 -1
- package/dist/components/ContentBelow.d.ts +2 -2
- package/dist/components/FullscreenHeader.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/utils/getCharCount.js +3 -1
- package/dist/utils/getDefaultTexts.d.ts +1 -1
- package/package.json +11 -11
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.1.
|
|
6
|
+
## [1.1.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.1.10...@synerise/ds-code-area@1.1.11) (2025-07-01)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
## [1.1.
|
|
14
|
+
## [1.1.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.1.9...@synerise/ds-code-area@1.1.10) (2025-06-26)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
## [1.1.
|
|
22
|
+
## [1.1.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.1.8...@synerise/ds-code-area@1.1.9) (2025-06-24)
|
|
23
23
|
|
|
24
24
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
25
25
|
|
|
@@ -27,604 +27,318 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
## [1.1.
|
|
30
|
+
## [1.1.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.1.7...@synerise/ds-code-area@1.1.8) (2025-06-12)
|
|
31
31
|
|
|
32
32
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
33
33
|
|
|
34
|
+
## [1.1.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.1.6...@synerise/ds-code-area@1.1.7) (2025-06-11)
|
|
34
35
|
|
|
36
|
+
**Note:** Version bump only for package @synerise/ds-code-area
|
|
35
37
|
|
|
38
|
+
## [1.1.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.1.5...@synerise/ds-code-area@1.1.6) (2025-06-05)
|
|
36
39
|
|
|
40
|
+
**Note:** Version bump only for package @synerise/ds-code-area
|
|
37
41
|
|
|
38
42
|
## [1.1.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.1.4...@synerise/ds-code-area@1.1.5) (2025-06-03)
|
|
39
43
|
|
|
40
44
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
41
45
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
46
|
## [1.1.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.1.3...@synerise/ds-code-area@1.1.4) (2025-05-26)
|
|
47
47
|
|
|
48
48
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
50
|
## [1.1.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.1.2...@synerise/ds-code-area@1.1.3) (2025-05-19)
|
|
55
51
|
|
|
56
52
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
57
53
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
54
|
## [1.1.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.1.1...@synerise/ds-code-area@1.1.2) (2025-05-07)
|
|
63
55
|
|
|
64
56
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
65
57
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
58
|
## [1.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.1.0...@synerise/ds-code-area@1.1.1) (2025-04-24)
|
|
71
59
|
|
|
72
60
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
73
61
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
62
|
# [1.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.0.7...@synerise/ds-code-area@1.1.0) (2025-04-16)
|
|
79
63
|
|
|
80
|
-
|
|
81
64
|
### Features
|
|
82
65
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
66
|
+
- **form-field:** add form-field component ([7f6b191](https://github.com/Synerise/synerise-design/commit/7f6b191132a3b0d694c21fb4d649f4deea6acb89))
|
|
88
67
|
|
|
89
68
|
## [1.0.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.0.6...@synerise/ds-code-area@1.0.7) (2025-04-08)
|
|
90
69
|
|
|
91
|
-
|
|
92
70
|
### Bug Fixes
|
|
93
71
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
72
|
+
- **code-area:** allow component wrapper to have variable height ([7a15e3b](https://github.com/Synerise/synerise-design/commit/7a15e3b8622af0eb625e866fda8a7a3f041a2e40))
|
|
99
73
|
|
|
100
74
|
## [1.0.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.0.5...@synerise/ds-code-area@1.0.6) (2025-04-04)
|
|
101
75
|
|
|
102
76
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
103
77
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
78
|
## [1.0.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.0.4...@synerise/ds-code-area@1.0.5) (2025-04-02)
|
|
109
79
|
|
|
110
80
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
111
81
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
82
|
## [1.0.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.0.3...@synerise/ds-code-area@1.0.4) (2025-04-01)
|
|
117
83
|
|
|
118
84
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
119
85
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
86
|
## [1.0.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.0.2...@synerise/ds-code-area@1.0.3) (2025-03-31)
|
|
125
87
|
|
|
126
88
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
127
89
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
90
|
## [1.0.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.0.1...@synerise/ds-code-area@1.0.2) (2025-03-26)
|
|
133
91
|
|
|
134
92
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
135
93
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
94
|
## [1.0.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.0.0...@synerise/ds-code-area@1.0.1) (2025-03-18)
|
|
141
95
|
|
|
142
96
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
143
97
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
98
|
## [0.6.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.6.2...@synerise/ds-code-area@0.6.3) (2025-03-13)
|
|
149
99
|
|
|
150
|
-
|
|
151
100
|
### Bug Fixes
|
|
152
101
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
102
|
+
- **code-area:** test colorize ([e52a589](https://github.com/Synerise/synerise-design/commit/e52a5898b6ca86da350445002e8e77aaa92b68ac))
|
|
158
103
|
|
|
159
104
|
## [0.6.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.6.1...@synerise/ds-code-area@0.6.2) (2025-03-10)
|
|
160
105
|
|
|
161
106
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
162
107
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
108
|
## [0.6.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.6.0...@synerise/ds-code-area@0.6.1) (2025-03-04)
|
|
168
109
|
|
|
169
110
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
170
111
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
112
|
# [0.6.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.5.9...@synerise/ds-code-area@0.6.0) (2025-03-03)
|
|
176
113
|
|
|
177
|
-
|
|
178
114
|
### Features
|
|
179
115
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
116
|
+
- **code-area:** pass loader config via prop ([20d5bd2](https://github.com/Synerise/synerise-design/commit/20d5bd2e624a67c1a00111730b56819317970b0e))
|
|
185
117
|
|
|
186
118
|
## [0.5.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.5.8...@synerise/ds-code-area@0.5.9) (2025-02-27)
|
|
187
119
|
|
|
188
120
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
189
121
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
122
|
## [0.5.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.5.7...@synerise/ds-code-area@0.5.8) (2025-02-27)
|
|
195
123
|
|
|
196
124
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
197
125
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
126
|
## [0.5.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.5.6...@synerise/ds-code-area@0.5.7) (2025-02-20)
|
|
203
127
|
|
|
204
128
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
205
129
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
130
|
## [0.5.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.5.5...@synerise/ds-code-area@0.5.6) (2025-02-18)
|
|
211
131
|
|
|
212
132
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
213
133
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
134
|
## [0.5.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.5.4...@synerise/ds-code-area@0.5.5) (2025-02-17)
|
|
219
135
|
|
|
220
136
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
221
137
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
138
|
## [0.5.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.5.3...@synerise/ds-code-area@0.5.4) (2025-02-14)
|
|
227
139
|
|
|
228
140
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
229
141
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
142
|
## [0.5.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.5.2...@synerise/ds-code-area@0.5.3) (2025-02-14)
|
|
235
143
|
|
|
236
144
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
237
145
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
146
|
## [0.5.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.5.1...@synerise/ds-code-area@0.5.2) (2025-02-07)
|
|
243
147
|
|
|
244
148
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
245
149
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
150
|
## [0.5.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.5.0...@synerise/ds-code-area@0.5.1) (2025-02-04)
|
|
251
151
|
|
|
252
152
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
253
153
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
154
|
# [0.5.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.4.4...@synerise/ds-code-area@0.5.0) (2025-01-29)
|
|
259
155
|
|
|
260
|
-
|
|
261
156
|
### Features
|
|
262
157
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
158
|
+
- antd@4.24 react@18 ([d97a667](https://github.com/Synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
|
|
268
159
|
|
|
269
160
|
## [0.4.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.4.3...@synerise/ds-code-area@0.4.4) (2025-01-21)
|
|
270
161
|
|
|
271
162
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
272
163
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
164
|
## [0.4.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.4.2...@synerise/ds-code-area@0.4.3) (2025-01-15)
|
|
278
165
|
|
|
279
166
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
280
167
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
168
|
## [0.4.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.4.1...@synerise/ds-code-area@0.4.2) (2024-12-16)
|
|
286
169
|
|
|
287
170
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
288
171
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
172
|
## [0.4.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.4.0...@synerise/ds-code-area@0.4.1) (2024-12-13)
|
|
294
173
|
|
|
295
174
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
296
175
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
176
|
# [0.4.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.3.4...@synerise/ds-code-area@0.4.0) (2024-12-11)
|
|
302
177
|
|
|
303
|
-
|
|
304
178
|
### Features
|
|
305
179
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
180
|
+
- **code-area:** switch monaco library ([c0d4ef6](https://github.com/Synerise/synerise-design/commit/c0d4ef68e26e791e99b4086b9847cbb524505af1))
|
|
311
181
|
|
|
312
182
|
## [0.3.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.3.3...@synerise/ds-code-area@0.3.4) (2024-12-04)
|
|
313
183
|
|
|
314
184
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
315
185
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
186
|
## [0.3.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.3.2...@synerise/ds-code-area@0.3.3) (2024-11-29)
|
|
321
187
|
|
|
322
188
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
323
189
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
190
|
## [0.3.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.3.1...@synerise/ds-code-area@0.3.2) (2024-11-28)
|
|
329
191
|
|
|
330
192
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
331
193
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
194
|
## [0.3.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.3.0...@synerise/ds-code-area@0.3.1) (2024-11-21)
|
|
337
195
|
|
|
338
|
-
|
|
339
196
|
### Bug Fixes
|
|
340
197
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
198
|
+
- **core:** onError fn types ([c34bdfe](https://github.com/Synerise/synerise-design/commit/c34bdfe9da898d7999c605f9fbcbba4716dfb6d4))
|
|
346
199
|
|
|
347
200
|
# [0.3.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.2.0...@synerise/ds-code-area@0.3.0) (2024-11-12)
|
|
348
201
|
|
|
349
|
-
|
|
350
202
|
### Features
|
|
351
203
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
204
|
+
- **code-area:** readonly and fullscreenlabel prop support ([553b36c](https://github.com/Synerise/synerise-design/commit/553b36c2e3efe4037d67eeb08d106318cd2d8b08))
|
|
357
205
|
|
|
358
206
|
# [0.2.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.32...@synerise/ds-code-area@0.2.0) (2024-11-12)
|
|
359
207
|
|
|
360
|
-
|
|
361
208
|
### Features
|
|
362
209
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
210
|
+
- **core:** reactintl bumped and onerror intlprovider ([08f4558](https://github.com/Synerise/synerise-design/commit/08f4558757a55c63db55767fff9fc6714728d26b))
|
|
368
211
|
|
|
369
212
|
## [0.1.32](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.31...@synerise/ds-code-area@0.1.32) (2024-10-29)
|
|
370
213
|
|
|
371
214
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
372
215
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
216
|
## [0.1.31](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.30...@synerise/ds-code-area@0.1.31) (2024-10-28)
|
|
378
217
|
|
|
379
218
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
380
219
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
220
|
## [0.1.30](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.29...@synerise/ds-code-area@0.1.30) (2024-10-23)
|
|
386
221
|
|
|
387
222
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
388
223
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
224
|
## [0.1.29](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.28...@synerise/ds-code-area@0.1.29) (2024-10-14)
|
|
394
225
|
|
|
395
226
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
396
227
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
228
|
## [0.1.28](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.27...@synerise/ds-code-area@0.1.28) (2024-10-01)
|
|
402
229
|
|
|
403
230
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
404
231
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
232
|
## [0.1.27](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.26...@synerise/ds-code-area@0.1.27) (2024-09-26)
|
|
410
233
|
|
|
411
234
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
412
235
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
236
|
## [0.1.26](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.25...@synerise/ds-code-area@0.1.26) (2024-09-17)
|
|
418
237
|
|
|
419
238
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
420
239
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
240
|
## [0.1.25](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.24...@synerise/ds-code-area@0.1.25) (2024-09-13)
|
|
426
241
|
|
|
427
242
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
428
243
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
244
|
## [0.1.24](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.23...@synerise/ds-code-area@0.1.24) (2024-09-11)
|
|
434
245
|
|
|
435
246
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
436
247
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
248
|
## [0.1.23](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.22...@synerise/ds-code-area@0.1.23) (2024-09-03)
|
|
442
249
|
|
|
443
250
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
444
251
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
252
|
## [0.1.22](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.21...@synerise/ds-code-area@0.1.22) (2024-08-30)
|
|
450
253
|
|
|
451
254
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
452
255
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
256
|
## [0.1.21](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.20...@synerise/ds-code-area@0.1.21) (2024-08-27)
|
|
458
257
|
|
|
459
258
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
460
259
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
260
|
## [0.1.20](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.19...@synerise/ds-code-area@0.1.20) (2024-08-19)
|
|
466
261
|
|
|
467
262
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
468
263
|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
264
|
## [0.1.19](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.18...@synerise/ds-code-area@0.1.19) (2024-08-06)
|
|
474
265
|
|
|
475
266
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
476
267
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
268
|
## [0.1.18](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.17...@synerise/ds-code-area@0.1.18) (2024-07-31)
|
|
482
269
|
|
|
483
270
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
484
271
|
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
272
|
## [0.1.17](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.16...@synerise/ds-code-area@0.1.17) (2024-07-26)
|
|
490
273
|
|
|
491
274
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
492
275
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
276
|
## [0.1.16](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.15...@synerise/ds-code-area@0.1.16) (2024-07-15)
|
|
498
277
|
|
|
499
278
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
500
279
|
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
280
|
## [0.1.15](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.14...@synerise/ds-code-area@0.1.15) (2024-07-05)
|
|
506
281
|
|
|
507
282
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
508
283
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
284
|
## [0.1.14](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.13...@synerise/ds-code-area@0.1.14) (2024-07-02)
|
|
514
285
|
|
|
515
286
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
516
287
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
288
|
## [0.1.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.12...@synerise/ds-code-area@0.1.13) (2024-06-27)
|
|
522
289
|
|
|
523
290
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
524
291
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
292
|
## [0.1.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.11...@synerise/ds-code-area@0.1.12) (2024-06-24)
|
|
530
293
|
|
|
531
294
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
532
295
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
296
|
## [0.1.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.10...@synerise/ds-code-area@0.1.11) (2024-06-21)
|
|
538
297
|
|
|
539
298
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
540
299
|
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
300
|
## [0.1.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.9...@synerise/ds-code-area@0.1.10) (2024-06-05)
|
|
546
301
|
|
|
547
302
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
548
303
|
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
304
|
## [0.1.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.8...@synerise/ds-code-area@0.1.9) (2024-05-29)
|
|
554
305
|
|
|
555
306
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
556
307
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
308
|
## [0.1.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.7...@synerise/ds-code-area@0.1.8) (2024-05-23)
|
|
562
309
|
|
|
563
310
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
564
311
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
312
|
## [0.1.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.6...@synerise/ds-code-area@0.1.7) (2024-05-23)
|
|
570
313
|
|
|
571
314
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
572
315
|
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
316
|
## [0.1.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.5...@synerise/ds-code-area@0.1.6) (2024-05-16)
|
|
578
317
|
|
|
579
318
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
580
319
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
320
|
## [0.1.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.4...@synerise/ds-code-area@0.1.5) (2024-05-10)
|
|
586
321
|
|
|
587
322
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
588
323
|
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
324
|
## [0.1.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.3...@synerise/ds-code-area@0.1.4) (2024-05-08)
|
|
594
325
|
|
|
595
326
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
596
327
|
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
328
|
## [0.1.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.2...@synerise/ds-code-area@0.1.3) (2024-05-08)
|
|
602
329
|
|
|
603
330
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
604
331
|
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
332
|
## [0.1.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.1...@synerise/ds-code-area@0.1.2) (2024-04-29)
|
|
610
333
|
|
|
611
334
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
612
335
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
336
|
## [0.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.1.0...@synerise/ds-code-area@0.1.1) (2024-04-25)
|
|
618
337
|
|
|
619
338
|
**Note:** Version bump only for package @synerise/ds-code-area
|
|
620
339
|
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
340
|
# 0.1.0 (2024-04-17)
|
|
626
341
|
|
|
627
|
-
|
|
628
342
|
### Features
|
|
629
343
|
|
|
630
|
-
|
|
344
|
+
- **code-area:** new component ([2a94d6e](https://github.com/Synerise/synerise-design/commit/2a94d6ea3c830f803fbd10b00ae009d5e20575e2))
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ yarn add @synerise/ds-code-area
|
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
To have syntax validation you need to follow the integration instructions here:
|
|
17
|
-
https://github.com/microsoft/monaco-editor/blob/main/docs/integrate-esm.md
|
|
17
|
+
https://github.com/microsoft/monaco-editor/blob/main/docs/integrate-esm.md
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
|
@@ -41,16 +41,15 @@ const syntaxOptions = [
|
|
|
41
41
|
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
|
|
45
44
|
## API
|
|
46
45
|
|
|
47
46
|
| Property | Description | Type | Default |
|
|
48
|
-
|
|
47
|
+
| --------------------------- | -------------------------------------------------------------- | ------------------------------------------------------- | ------- |
|
|
49
48
|
| label | label above editor | `ReactNode` | - |
|
|
50
49
|
| fullscreenLabel | label above editor in fullscreen mode (defaults to label prop) | `ReactNode` | - |
|
|
51
50
|
| description | description below editor | `ReactNode` | - |
|
|
52
51
|
| counter | limit character count | `{ limit: number; placement?: 'bottom' | 'top'; }` | - |
|
|
53
|
-
| errorText | error message to show below editor
|
|
52
|
+
| errorText | error message to show below editor (also adds "error styles") | `ReactNode` | - |
|
|
54
53
|
| syntaxOptions | array of available syntaxes | `CodeAreaSyntaxOption[]` | - |
|
|
55
54
|
| currentSyntax | current syntax of editor value | `CodeAreaSyntax` | - |
|
|
56
55
|
| allowFullscreen | renders fullscreen mode button | `boolean` | - |
|
|
@@ -66,31 +65,28 @@ const syntaxOptions = [
|
|
|
66
65
|
| texts | customise displayed texts | `CodeAreaTexts` | - |
|
|
67
66
|
| getPopupContainer | customise where fullscreen layer is rendered into | getPopupContainer (@synerise/ds-utils) | - |
|
|
68
67
|
|
|
69
|
-
|
|
70
68
|
### CodeAreaTexts
|
|
71
69
|
|
|
72
70
|
Customisable user-facing labels
|
|
73
71
|
|
|
74
|
-
| Property
|
|
75
|
-
|
|
|
76
|
-
| fullscreen
|
|
77
|
-
| closeFullscreen
|
|
78
|
-
| fullscreenTitle
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
| Property | Description | Type | Default |
|
|
73
|
+
| --------------- | --------------------------------------------------- | ----------- | ------- |
|
|
74
|
+
| fullscreen | fullscreen button label | `ReactNode` | - |
|
|
75
|
+
| closeFullscreen | close fullscreen button label | `ReactNode` | - |
|
|
76
|
+
| fullscreenTitle | used in fullscreen mode if no `label` prop provided | `ReactNode` | - |
|
|
81
77
|
|
|
82
78
|
### CodeAreaSyntaxOption
|
|
83
79
|
|
|
84
80
|
At least one syntax option must be provided.
|
|
85
81
|
|
|
86
|
-
| Property
|
|
87
|
-
|
|
|
88
|
-
| language
|
|
89
|
-
| label
|
|
82
|
+
| Property | Description | Type | Default |
|
|
83
|
+
| -------- | ----------------------------------- | ---------------- | ------- |
|
|
84
|
+
| language | language of editor `value` | `CodeAreaSyntax` | - |
|
|
85
|
+
| label | optional user-friendly display name | `string` | - |
|
|
90
86
|
|
|
91
87
|
### CodeAreaSyntax
|
|
92
88
|
|
|
93
|
-
See list of languages supported by monaco here: https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages.
|
|
89
|
+
See list of languages supported by monaco here: https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages.
|
|
94
90
|
|
|
95
91
|
```js
|
|
96
92
|
CodeAreaSyntax = 'json' | 'html' | 'css' | 'typescript' | 'javascript' | string;
|
|
@@ -100,8 +96,8 @@ CodeAreaSyntax = 'json' | 'html' | 'css' | 'typescript' | 'javascript' | string;
|
|
|
100
96
|
|
|
101
97
|
Props passed to `renderAdditionalDescription()` and `renderFooterContent()`.
|
|
102
98
|
|
|
103
|
-
| Property
|
|
104
|
-
|
|
|
105
|
-
| isFullscreen
|
|
106
|
-
| count
|
|
107
|
-
| isValid
|
|
99
|
+
| Property | Description | Type | Default |
|
|
100
|
+
| ------------ | ---------------------------- | --------- | ------- |
|
|
101
|
+
| isFullscreen | is fullscreen mode on or off | `boolean` | - |
|
|
102
|
+
| count | current character count | `number` | - |
|
|
103
|
+
| isValid | is editor value valid | `boolean` | - |
|
package/dist/CodeArea.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CodeAreaProps } from './CodeArea.types';
|
|
2
|
+
import { type CodeAreaProps } from './CodeArea.types';
|
|
3
3
|
declare const CodeArea: ({ getPopupContainer, onFullscreenChange, ...codeAreaProps }: CodeAreaProps) => React.JSX.Element;
|
|
4
4
|
export default CodeArea;
|
|
@@ -19,7 +19,7 @@ export declare const ContentBelow: import("styled-components").StyledComponent<"
|
|
|
19
19
|
isEmpty?: boolean | undefined;
|
|
20
20
|
}, never>;
|
|
21
21
|
export declare const ContentAbove: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
22
|
-
export declare const SyntaxTitle: import("styled-components").StyledComponent<({ size, className, children, ellipsis }: {
|
|
22
|
+
export declare const SyntaxTitle: import("styled-components").StyledComponent<({ size, className, children, ellipsis, }: {
|
|
23
23
|
size?: import("@synerise/ds-typography").TextSize | undefined;
|
|
24
24
|
ellipsis?: import("@synerise/ds-typography/dist/Ellipsis").EllipsisProps | undefined;
|
|
25
25
|
children?: import("react").ReactNode;
|
package/dist/CodeArea.styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import {
|
|
2
|
+
import { Text, Title } from '@synerise/ds-typography';
|
|
3
3
|
var FlexRow = styled.div.withConfig({
|
|
4
4
|
displayName: "CodeAreastyles__FlexRow",
|
|
5
5
|
componentId: "sc-svoej2-0"
|
package/dist/CodeArea.types.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { editor } from 'monaco-editor/esm/vs/editor/editor.api';
|
|
2
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
3
|
import type { EditorProps, loader } from '@monaco-editor/react';
|
|
3
|
-
import type {
|
|
4
|
-
import type { TooltipProps } from 'antd/lib/tooltip';
|
|
5
|
-
import TooltipExtendedProps from '@synerise/ds-tooltip/dist/Tooltip.types';
|
|
4
|
+
import type { TooltipProps } from '@synerise/ds-tooltip';
|
|
6
5
|
export type CodeAreaSyntax = 'json' | 'html' | 'css' | 'typescript' | 'javascript' | string;
|
|
7
6
|
export type CodeAreaSyntaxOption<SyntaxName extends CodeAreaSyntax = CodeAreaSyntax> = {
|
|
8
7
|
language: SyntaxName;
|
|
@@ -31,7 +30,7 @@ export type CodeAreaCommonProps<SyntaxName extends CodeAreaSyntax = CodeAreaSynt
|
|
|
31
30
|
defaultValue?: string;
|
|
32
31
|
readOnly?: boolean;
|
|
33
32
|
tooltip?: ReactNode;
|
|
34
|
-
tooltipProps?:
|
|
33
|
+
tooltipProps?: TooltipProps;
|
|
35
34
|
style?: CSSProperties;
|
|
36
35
|
zIndex?: string | number;
|
|
37
36
|
/**
|
|
@@ -62,7 +61,7 @@ export type CodeAreaProps<SyntaxName extends CodeAreaSyntax = CodeAreaSyntax> =
|
|
|
62
61
|
export type CodeAreaEditorRawProps<SyntaxName extends CodeAreaSyntax = CodeAreaSyntax> = CodeAreaCommonProps<SyntaxName> & {
|
|
63
62
|
isValid: boolean;
|
|
64
63
|
isSyntaxSelectVisible?: boolean;
|
|
65
|
-
onDidChangeMarkers?: (markers:
|
|
64
|
+
onDidChangeMarkers?: (markers: editor.IMarker[]) => void;
|
|
66
65
|
counterLimit?: number;
|
|
67
66
|
count?: number;
|
|
68
67
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { CodeAreaTexts } from '../CodeArea.types';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type CodeAreaTexts } from '../CodeArea.types';
|
|
3
3
|
type BottomBarProps = {
|
|
4
4
|
texts: CodeAreaTexts;
|
|
5
5
|
allowFullscreen?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CodeAreaEditorProps } from '../CodeArea.types';
|
|
2
|
+
import { type CodeAreaEditorProps } from '../CodeArea.types';
|
|
3
3
|
export declare const CodeAreaEditor: ({ renderAdditionalDescription, description, errorText, style, zIndex, className, counter, fullscreenLabel, tooltip, label, tooltipProps, height, ...props }: CodeAreaEditorProps) => React.JSX.Element;
|
|
4
4
|
export default CodeAreaEditor;
|
|
@@ -4,12 +4,14 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { FormFieldLabel } from '@synerise/ds-form-field';
|
|
6
6
|
import { useResizeObserver } from '@synerise/ds-utils';
|
|
7
|
-
import { getCharCount } from '../utils/getCharCount';
|
|
8
|
-
import { ContentAbove, ContentBelow, FullscreenHeader } from './index';
|
|
9
|
-
import { CodeAreaEditorRaw } from './CodeAreaEditorRaw';
|
|
10
7
|
import * as S from '../CodeArea.styles';
|
|
11
|
-
import { getDefaultTexts } from '../utils/getDefaultTexts';
|
|
12
8
|
import { calculateRequiredSpace } from '../utils/calculateRequiredSpace';
|
|
9
|
+
import { getCharCount } from '../utils/getCharCount';
|
|
10
|
+
import { getDefaultTexts } from '../utils/getDefaultTexts';
|
|
11
|
+
import { CodeAreaEditorRaw } from './CodeAreaEditorRaw';
|
|
12
|
+
import { ContentAbove } from './ContentAbove';
|
|
13
|
+
import { ContentBelow } from './ContentBelow';
|
|
14
|
+
import { FullscreenHeader } from './FullscreenHeader';
|
|
13
15
|
export var CodeAreaEditor = function CodeAreaEditor(_ref) {
|
|
14
16
|
var renderAdditionalDescription = _ref.renderAdditionalDescription,
|
|
15
17
|
description = _ref.description,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CodeAreaEditorRawProps } from '../CodeArea.types';
|
|
2
|
+
import { type CodeAreaEditorRawProps } from '../CodeArea.types';
|
|
3
3
|
export declare const CodeAreaEditorRaw: ({ onMount, beforeMount, options, errorText, texts, allowFullscreen, toggleFullscreen, renderFooterContent, isFullscreen, count, counterLimit, onChange, isValid, onDidChangeMarkers, isSyntaxSelectVisible, syntaxOptions, currentSyntax, readOnly, onSyntaxChange, loaderConfig, ...props }: CodeAreaEditorRawProps) => React.JSX.Element;
|
|
4
4
|
export default CodeAreaEditorRaw;
|
|
@@ -3,13 +3,13 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
5
5
|
import Editor, { loader } from '@monaco-editor/react';
|
|
6
|
-
import Loader from '@synerise/ds-loader';
|
|
7
6
|
import { InlineSelect } from '@synerise/ds-inline-edit';
|
|
7
|
+
import Loader from '@synerise/ds-loader';
|
|
8
8
|
import { NOOP, useResizeObserver } from '@synerise/ds-utils';
|
|
9
|
-
import
|
|
9
|
+
import * as S from '../CodeArea.styles';
|
|
10
10
|
import { DS_MONACO_THEME, DS_MONACO_THEME_NAME, MONACO_DEFAULT_OPTIONS, TRIGGER_SOURCE } from '../constants';
|
|
11
|
+
import { getDefaultTexts } from '../utils/getDefaultTexts';
|
|
11
12
|
import { AriaContainer } from './AriaContainer';
|
|
12
|
-
import * as S from '../CodeArea.styles';
|
|
13
13
|
import { BottomBar } from './BottomBar';
|
|
14
14
|
export var CodeAreaEditorRaw = function CodeAreaEditorRaw(_ref) {
|
|
15
15
|
var onMount = _ref.onMount,
|
|
@@ -132,7 +132,6 @@ export var CodeAreaEditorRaw = function CodeAreaEditorRaw(_ref) {
|
|
|
132
132
|
if (editorRef.current) {
|
|
133
133
|
var _editorRef$current, _monacoRef$current;
|
|
134
134
|
var currentModel = (_editorRef$current = editorRef.current) == null ? void 0 : _editorRef$current.getModel();
|
|
135
|
-
// eslint-disable-next-line no-unused-expressions
|
|
136
135
|
currentModel && ((_monacoRef$current = monacoRef.current) == null ? void 0 : _monacoRef$current.editor.setModelLanguage(currentModel, currentSyntax));
|
|
137
136
|
}
|
|
138
137
|
}, [currentSyntax]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { CodeAreaProps } from '../CodeArea.types';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type CodeAreaProps } from '../CodeArea.types';
|
|
3
3
|
export declare const ContentBelow: React.ForwardRefExoticComponent<Pick<CodeAreaProps<string>, "description" | "errorText"> & {
|
|
4
4
|
additionalDescription?: ReactNode;
|
|
5
5
|
counter?: ReactNode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { CodeAreaTexts } from '../CodeArea.types';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type CodeAreaTexts } from '../CodeArea.types';
|
|
3
3
|
type FullscreenHeaderProps = {
|
|
4
4
|
label?: ReactNode;
|
|
5
5
|
texts: CodeAreaTexts;
|
|
6
6
|
onClick: () => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const FullscreenHeader: ({ label, texts, onClick }: FullscreenHeaderProps) => React.JSX.Element;
|
|
8
|
+
export declare const FullscreenHeader: ({ label, texts, onClick, }: FullscreenHeaderProps) => React.JSX.Element;
|
|
9
9
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default } from './CodeArea';
|
|
2
|
-
export type { CodeAreaProps, CodeAreaTexts, CodeAreaSyntaxOption, CodeAreaSyntax } from './CodeArea.types';
|
|
2
|
+
export type { CodeAreaProps, CodeAreaTexts, CodeAreaSyntaxOption, CodeAreaSyntax, } from './CodeArea.types';
|
|
3
3
|
export * from './CodeArea.styles';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export var getCharCount = function getCharCount(value, limit) {
|
|
2
|
-
if (limit && value && value.toString().length > limit)
|
|
2
|
+
if (limit && value && value.toString().length > limit) {
|
|
3
|
+
return undefined;
|
|
4
|
+
}
|
|
3
5
|
return value ? value.toString().length : 0;
|
|
4
6
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CodeAreaTexts } from '../CodeArea.types';
|
|
1
|
+
import { type CodeAreaTexts } from '../CodeArea.types';
|
|
2
2
|
export declare const getDefaultTexts: (texts?: Partial<CodeAreaTexts>) => CodeAreaTexts;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-code-area",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "CodeArea UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@monaco-editor/react": "4.4.6",
|
|
38
|
-
"@synerise/ds-button": "^1.4.
|
|
39
|
-
"@synerise/ds-core": "^1.4.
|
|
40
|
-
"@synerise/ds-form-field": "^1.1.
|
|
41
|
-
"@synerise/ds-icon": "^1.5.
|
|
42
|
-
"@synerise/ds-inline-edit": "^1.0.
|
|
43
|
-
"@synerise/ds-loader": "^1.0.
|
|
44
|
-
"@synerise/ds-tooltip": "^1.1.
|
|
45
|
-
"@synerise/ds-typography": "^1.0.
|
|
46
|
-
"@synerise/ds-utils": "^1.3.
|
|
38
|
+
"@synerise/ds-button": "^1.4.2",
|
|
39
|
+
"@synerise/ds-core": "^1.4.1",
|
|
40
|
+
"@synerise/ds-form-field": "^1.1.8",
|
|
41
|
+
"@synerise/ds-icon": "^1.5.4",
|
|
42
|
+
"@synerise/ds-inline-edit": "^1.0.17",
|
|
43
|
+
"@synerise/ds-loader": "^1.0.6",
|
|
44
|
+
"@synerise/ds-tooltip": "^1.1.12",
|
|
45
|
+
"@synerise/ds-typography": "^1.0.13",
|
|
46
|
+
"@synerise/ds-utils": "^1.3.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@synerise/ds-core": "*",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"monaco-editor": "0.34.1"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "4512641033ba3581a3df208143c547fcfed45895"
|
|
59
59
|
}
|