cedar-embeddable-editor 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,74 +4,115 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.5.1] - - 2026-07-16
9
+
10
+ ### Added
11
+
12
+ ### Changed
13
+
14
+ ### Fixed
15
+
16
+ - Checkbox selection race condition
17
+
18
+ ## [1.5.0] - - 2025-05-30
19
+
20
+ ### Added
21
+
22
+ - Configuration option to control visibility of the preferences-menu.
23
+
24
+ ### Fixed
25
+
26
+ - Issue where the preferences menu could override the initial read-only mode configuration.
27
+ - Hide the section-break help icon when no help text is available.
28
+
29
+ ### Changed
30
+
31
+ - Text input values now detect HTML context using a DOM parser.
32
+
7
33
  ## [1.4.0]
8
34
 
9
35
  ### Added
36
+
10
37
  - ORCID and ROR fields.
11
38
  - Preferences menu and read-only mode toggle under it.
12
39
  - Version number under the logo.
13
40
 
14
41
  ### Fixed
42
+
15
43
  - Non-empty attribute key/value fields being incorrectly hidden in read-only mode.
16
44
 
17
45
  ### Changed
46
+
18
47
  - Rendering style of section breaks.
19
48
 
20
49
  ## [1.3.5]
21
50
 
22
51
  ### Fixed
52
+
23
53
  - Instance load issue that appears when instance and template passed in different times
24
54
 
25
55
  ## [1.3.4]
26
56
 
27
57
  ### Changed
58
+
28
59
  - Pagination on multi instances are not shown if the instance count is less than the page size
29
60
 
30
61
  ## [1.3.3]
31
62
 
32
63
  ### Changed
64
+
33
65
  - Removed outer border of fields for a cleaner look
34
66
  - Representation of BioPortal, ORCID and ROR iris
35
67
  - Added icons for expand and collapse all. These buttons are also repositioned to top right corner.
36
68
 
37
69
  ### Fixed
70
+
38
71
  - Some internal errors that appear in the stand-alone mode
39
72
  - Some border color to comply with accessibility requirements
40
73
 
41
74
  ## [1.3.2]
42
75
 
43
76
  ### Added
77
+
44
78
  - Link to BioPortal controlled terms
45
79
  - Link to ORCID and ROR ids
46
80
 
47
81
  ### Fixed
82
+
48
83
  - Hiding state of nested empty elements
49
84
 
50
85
  ## [1.3.1]
51
86
 
52
87
  ### Added
88
+
53
89
  - New property to set template and instance together
54
90
  - Option to hide empty fields in viewer mode
55
91
  - Configuration option to display template description
56
92
 
57
93
  ### Changed
94
+
58
95
  - Fields that have HTML as their value will be rendered in readOnlyMode
59
96
 
60
97
  ### Fixed
98
+
61
99
  - Not making terminology calls in viewer mode
62
100
 
63
101
  ## [1.2.1] - 2024-02-20
64
102
 
65
103
  ### Fixed
66
- - https://github.com/metadatacenter/cedar-embeddable-editor/issues/102 Updating required fields with value constraints does not update validation status.
104
+
105
+ - <https://github.com/metadatacenter/cedar-embeddable-editor/issues/102> Updating required fields with value constraints does not update validation status.
67
106
 
68
107
  ## [1.2.0] - 2024-02-14
69
108
 
70
109
  ### Added
110
+
71
111
  - Viewer mode
72
112
  - Configuration option to display template description
73
113
 
74
114
  ### Changed
115
+
75
116
  - Name of linked static fields are rendered
76
117
  - Better accessibility support
77
118
 
@@ -82,12 +123,15 @@ This version contains only fixes and non-breaking changes related to the languag
82
123
  However, there was a new feature introduced in 1.0.14 - the data quality report. Because of this, we are changing the minor version number.
83
124
 
84
125
  ### Added
126
+
85
127
  - `CustomEvent` with `type`:`'change'` is emitted when a multi instance operation is performed (add, copy, delete)
86
128
 
87
129
  ### Fixed
130
+
88
131
  - Load built-in `en` language map if nothing is specified in the config
89
132
 
90
133
  ### Changed
134
+
91
135
  - Better language map related logging
92
136
  - If no external or internal language map can be found based on the config, still use the built-in `en` map
93
137
  - Allow uppercase in domain names of Link components
@@ -95,19 +139,23 @@ However, there was a new feature introduced in 1.0.14 - the data quality report.
95
139
  ## [1.0.16] - 2024-02-07
96
140
 
97
141
  ### Added
142
+
98
143
  - Language map loading configuration option `languageMapPathPrefix` + docs
99
144
 
100
145
  ### Fixed
146
+
101
147
  - Data Quality Report in case of mandatory fields with 0..n cardinality
102
148
  - Fixed bug regarding required value of multi-instance fields
103
149
 
104
150
  ## [1.0.15] - 2024-02-05
105
151
 
106
152
  ### Added
153
+
107
154
  - Added naive throttling prevention to the `/integrated-search` calls (random delay < 2000 ms)
108
155
  - Added validation error message for links
109
156
 
110
157
  ### Fixed
158
+
111
159
  - Fixed null reference in Data Quality Report builder
112
160
  - Fixed required symbol for multi instance fields
113
161
 
@@ -124,7 +172,6 @@ However, there was a new feature introduced in 1.0.14 - the data quality report.
124
172
  - showAllMultiInstanceValues flag is added.
125
173
  Now it's possible to hide "All Values" section of multi instance fields by adding showAllMultiInstanceValues : false to config.
126
174
 
127
-
128
175
  ## [1.0.12] - 2024-01-19
129
176
 
130
177
  ### Changed
@@ -140,6 +187,7 @@ However, there was a new feature introduced in 1.0.14 - the data quality report.
140
187
  ## [1.0.10] - 2024-01-11
141
188
 
142
189
  ### Added
190
+
143
191
  - A randomly generated UUID together with the trailing path is assigned as to @id is to nested element instances for model validation
144
192
 
145
193
  ## [1.0.9] - UNPUBLISHED
@@ -147,71 +195,86 @@ However, there was a new feature introduced in 1.0.14 - the data quality report.
147
195
  ## [1.0.8] - 2023-11-20
148
196
 
149
197
  ### Changed
198
+
150
199
  - Added some error-tolerance to instances that don't align with the template
151
200
 
152
201
  ## [1.0.7] - 2023-11-20
153
202
 
154
203
  ### Fixed
204
+
155
205
  - Fixed null reference
156
206
 
157
207
  ### Changed
208
+
158
209
  - Language map loading logging
159
210
 
160
211
  ## [1.0.6] - 2023-11-17
161
212
 
162
213
  ### Fixed
214
+
163
215
  - Fixed empty link value handling in the model
164
216
 
165
217
  ## [1.0.5] - 2023-11-16
166
218
 
167
219
  ### Fixed
220
+
168
221
  - Fixed null/undefined references
169
222
  - Added prettier as dev dependency
170
223
 
171
224
  ## [1.0.4] - 2023-11-08
172
225
 
173
226
  ### Fixed
227
+
174
228
  - Fixed same density style multiple generation
175
229
  - Removed `console.log` debug messages
176
230
 
177
231
  ## [1.0.3] - 2023-11-07
178
232
 
179
233
  ### Fixed
234
+
180
235
  - Default `en` and `hu` language maps embedded in production build
181
236
  - Removed `console.log` debug messages
182
237
 
183
238
  ### Added
239
+
184
240
  - `Load metadata` checkbox added to the sample template loader
185
241
 
186
242
  ### Changed
243
+
187
244
  - Dev mode config changed to compact initial view (hidden sample template links, hidden core metadata)
188
245
  - Dependency version updates
189
246
 
190
247
  ## [1.0.2] - 2023-11-03
191
248
 
192
249
  ### Fixed
250
+
193
251
  - Stylesheet not properly rendering
194
252
  - Multi-instance field add bug
195
253
 
196
254
  ### Changed
255
+
197
256
  - Refactoring: eslint + prettier added
198
257
 
199
258
  ## [1.0.1] - 2023-11-03
200
259
 
201
260
  ### Added
261
+
202
262
  - Changelog
203
263
  - Code of conduct
204
264
 
205
265
  ### Fixed
266
+
206
267
  - Controlled term field UI update on invalid data
207
268
  - Model update when date is entered from input (see 'Changed' below)
208
269
  - Default value selection for dropdowns
209
270
 
210
271
  ### Changed
272
+
211
273
  - Date can only be selected with date picker (no keyboard input)
212
274
  - Refactored component initialization
213
275
 
214
276
  ### Removed
277
+
215
278
  - Removed extra style inclusion causing duplicate style generation
216
279
 
217
280
  ## [1.0.0] - 2023-09-08
package/README.md CHANGED
@@ -145,10 +145,12 @@ There are other optional configuration parameters available for controlling vari
145
145
  "collapseStaticComponents": false,
146
146
  "showStaticText": true,
147
147
 
148
- "readOnlyMode": false
148
+ "readOnlyMode": false,
149
+ "hideEmptyFields": false,
150
+ "showPreferencesMenu": true
149
151
  }
150
152
  ```
151
-
153
+ Enabling of hiding empty fields is only possible in read-only mode.
152
154
  ## Metadata API
153
155
 
154
156
  CEE Webcomponent includes APIs for exporting metadata externally and importing metadata into CEE.