dce-reactkit 3.2.6 → 3.2.8

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.
@@ -11,7 +11,7 @@ declare enum LogAction {
11
11
  View = "View",
12
12
  Interrupt = "Interrupt",
13
13
  Create = "Create",
14
- Edit = "Edit",
14
+ Modify = "Modify",
15
15
  Delete = "Delete",
16
16
  Add = "Add",
17
17
  Remove = "Remove",
package/dist/index.d.ts CHANGED
@@ -711,7 +711,7 @@ declare enum LogAction {
711
711
  View = "View",
712
712
  Interrupt = "Interrupt",
713
713
  Create = "Create",
714
- Edit = "Edit",
714
+ Modify = "Modify",
715
715
  Delete = "Delete",
716
716
  Add = "Add",
717
717
  Remove = "Remove",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -140,7 +140,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
140
140
  // Create month option
141
141
  monthOptions.push(
142
142
  <option
143
- key={choice.month}
143
+ key={`${choice.year}-${choice.month}`}
144
144
  value={`${choice.month}-${choice.year}`}
145
145
  aria-label={`choose ${choice.choiceName}`}
146
146
  onSelect={() => {
@@ -158,7 +158,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
158
158
  const ordinal = getOrdinal(dayChoice);
159
159
  dayOptions.push(
160
160
  <option
161
- key={dayChoice}
161
+ key={`${choice.year}-${choice.month}-${dayChoice}`}
162
162
  value={dayChoice}
163
163
  aria-label={`choose date ${dayChoice}`}
164
164
  >
@@ -19,8 +19,8 @@ enum LogAction {
19
19
  Interrupt = 'Interrupt',
20
20
  // Target was created by the user (it did not exist before)
21
21
  Create = 'Create',
22
- // Target was edited by the user (it existed and was changed)
23
- Edit = 'Edit',
22
+ // Target was modified by the user (it existed and was changed)
23
+ Modify = 'Modify',
24
24
  // Target was deleted by the user (it existed and now it doesn't)
25
25
  Delete = 'Delete',
26
26
  // Target was added by the user (it already existed and was added to another place)