@sprucelabs/spruce-calendar-components 25.2.3 → 25.2.5

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.
@@ -18,7 +18,6 @@ export default class CalendarEventManager {
18
18
  private askForUpdateStrategy;
19
19
  protected dateToUpdate?: number;
20
20
  protected shouldUpdateAllEventsGoingForward?: boolean;
21
- private dates;
22
21
  protected prefs: RemotePreferencesStore;
23
22
  private calendars;
24
23
  private shouldUpdateContextOnNextSave;
@@ -35,13 +35,12 @@ class CalendarEventManager {
35
35
  this.calendars = [];
36
36
  this.shouldUpdateContextOnNextSave = true;
37
37
  this.isLoaded = false;
38
- const { calendarVc, events, remoteVc, sm, askForUpdateStrategy, dates, preferences, } = (0, schema_1.assertOptions)(options, [
38
+ const { calendarVc, events, remoteVc, sm, askForUpdateStrategy, preferences, } = (0, schema_1.assertOptions)(options, [
39
39
  'calendarVc',
40
40
  'events',
41
41
  'remoteVc',
42
42
  'sm',
43
43
  'askForUpdateStrategy',
44
- 'dates',
45
44
  'preferences',
46
45
  ]);
47
46
  this.calendarVc = calendarVc;
@@ -49,7 +48,6 @@ class CalendarEventManager {
49
48
  this.remoteVc = remoteVc;
50
49
  this.sm = sm;
51
50
  this.prefs = preferences;
52
- this.dates = dates;
53
51
  this.askForUpdateStrategy = askForUpdateStrategy;
54
52
  this.calendarVc.setRemoteStore(this.events);
55
53
  }
@@ -353,11 +351,11 @@ class CalendarEventManager {
353
351
  return false;
354
352
  }
355
353
  else if (strategy === 'only-this-one') {
356
- this.dateToUpdate = this.dates.getStartOfDay(event.startDateTimeMs);
354
+ this.dateToUpdate = event.startDateTimeMs;
357
355
  this.shouldUpdateAllEventsGoingForward = false;
358
356
  }
359
357
  else if (strategy === 'all-going-forward') {
360
- this.dateToUpdate = this.dates.getStartOfDay(event.startDateTimeMs);
358
+ this.dateToUpdate = event.startDateTimeMs;
361
359
  this.shouldUpdateAllEventsGoingForward = true;
362
360
  }
363
361
  else {