@sprucelabs/spruce-calendar-components 26.0.19 → 26.0.20

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.
@@ -112,10 +112,10 @@ class CalendarEventManager {
112
112
  }
113
113
  async addDraftEvent(event, shouldSelectEvent = true) {
114
114
  this.allEvents.push(event);
115
+ if (!this.calendarVc.hasEvent(event.id)) {
116
+ this.calendarVc.addEvent(event);
117
+ }
115
118
  if (shouldSelectEvent) {
116
- if (!this.calendarVc.hasEvent(event.id)) {
117
- this.calendarVc.addEvent(event);
118
- }
119
119
  await this.calendarVc.selectEvent(event.id);
120
120
  await this.updateEventInContext(event);
121
121
  }
@@ -119,10 +119,10 @@ export default class CalendarEventManager {
119
119
  addDraftEvent(event, shouldSelectEvent = true) {
120
120
  return __awaiter(this, void 0, void 0, function* () {
121
121
  this.allEvents.push(event);
122
+ if (!this.calendarVc.hasEvent(event.id)) {
123
+ this.calendarVc.addEvent(event);
124
+ }
122
125
  if (shouldSelectEvent) {
123
- if (!this.calendarVc.hasEvent(event.id)) {
124
- this.calendarVc.addEvent(event);
125
- }
126
126
  yield this.calendarVc.selectEvent(event.id);
127
127
  yield this.updateEventInContext(event);
128
128
  }
@@ -235,6 +235,7 @@ class RootSkillViewController extends AbstractSkillViewController {
235
235
  if (this.transitionPromise) {
236
236
  return;
237
237
  }
238
+ console.log('reset to root state');
238
239
  this.toolBeltVc.close();
239
240
  this.transitionPromise = this.transitionToRoot();
240
241
  this.makeDateSelectMatchSelectedDateFromCalendar();
@@ -208,6 +208,7 @@ class RootSkillViewController extends heartwood_view_controllers_1.AbstractSkill
208
208
  if (this.transitionPromise) {
209
209
  return;
210
210
  }
211
+ console.log('reset to root state');
211
212
  this.toolBeltVc.close();
212
213
  this.transitionPromise = this.transitionToRoot();
213
214
  this.makeDateSelectMatchSelectedDateFromCalendar();
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": "26.0.19",
4
+ "version": "26.0.20",
5
5
  "skill": {
6
6
  "namespace": "calendar"
7
7
  },