@sprucelabs/spruce-calendar-components 20.5.8 → 20.5.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.
@@ -153,7 +153,7 @@ export default class RemoteEventStore {
153
153
  return target;
154
154
  }
155
155
  cleanPayload(payload) {
156
- const dateToUpdate = payload.dateToUpdate;
156
+ const { dateToUpdate, shouldUpdateAllEventsGoingForward } = payload;
157
157
  const normalized = normalizeSchemaValues(calendarEventSchema, payload, {
158
158
  shouldValidate: false,
159
159
  });
@@ -172,6 +172,11 @@ export default class RemoteEventStore {
172
172
  //@ts-ignore
173
173
  delete normalized[key];
174
174
  }
175
+ if (shouldUpdateAllEventsGoingForward) {
176
+ ;
177
+ normalized.shouldUpdateAllEventsGoingForward =
178
+ shouldUpdateAllEventsGoingForward;
179
+ }
175
180
  if (dateToUpdate) {
176
181
  ;
177
182
  normalized.dateToUpdate = dateToUpdate;
@@ -48,14 +48,14 @@ export default class EventDateTimeToolViewController extends AbstractViewControl
48
48
  buttons: [
49
49
  {
50
50
  id: 'move',
51
- label: `Move this event to ${formattedDestination}.`,
51
+ label: `Reschedule this event to ${formattedDestination}.`,
52
52
  onClick: () => __awaiter(this, void 0, void 0, function* () {
53
53
  yield dlg.hide();
54
54
  }),
55
55
  },
56
56
  {
57
57
  id: 'navigate',
58
- label: `Deselect event and navigate to ${formattedDestination}.`,
58
+ label: `I'm done! Let's navigate to ${formattedDestination}.`,
59
59
  onClick: () => __awaiter(this, void 0, void 0, function* () {
60
60
  shouldBail = true;
61
61
  const { calendarVc } = this.getContext();
@@ -139,7 +139,7 @@ class RemoteEventStore {
139
139
  return target;
140
140
  }
141
141
  cleanPayload(payload) {
142
- const dateToUpdate = payload.dateToUpdate;
142
+ const { dateToUpdate, shouldUpdateAllEventsGoingForward } = payload;
143
143
  const normalized = (0, schema_1.normalizeSchemaValues)(calendar_utils_1.calendarEventSchema, payload, {
144
144
  shouldValidate: false,
145
145
  });
@@ -158,6 +158,11 @@ class RemoteEventStore {
158
158
  //@ts-ignore
159
159
  delete normalized[key];
160
160
  }
161
+ if (shouldUpdateAllEventsGoingForward) {
162
+ ;
163
+ normalized.shouldUpdateAllEventsGoingForward =
164
+ shouldUpdateAllEventsGoingForward;
165
+ }
161
166
  if (dateToUpdate) {
162
167
  ;
163
168
  normalized.dateToUpdate = dateToUpdate;
@@ -40,14 +40,14 @@ class EventDateTimeToolViewController extends heartwood_view_controllers_1.Abstr
40
40
  buttons: [
41
41
  {
42
42
  id: 'move',
43
- label: `Move this event to ${formattedDestination}.`,
43
+ label: `Reschedule this event to ${formattedDestination}.`,
44
44
  onClick: async () => {
45
45
  await dlg.hide();
46
46
  },
47
47
  },
48
48
  {
49
49
  id: 'navigate',
50
- label: `Deselect event and navigate to ${formattedDestination}.`,
50
+ label: `I'm done! Let's navigate to ${formattedDestination}.`,
51
51
  onClick: async () => {
52
52
  shouldBail = true;
53
53
  const { calendarVc } = this.getContext();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-calendar-components",
3
3
  "description": "Calendar components for working with calendars and Sprucebot.",
4
- "version": "20.5.8",
4
+ "version": "20.5.11",
5
5
  "skill": {
6
6
  "namespace": "calendar"
7
7
  },