@sprucelabs/spruce-calendar-components 24.2.14 → 24.2.16

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.
@@ -245,6 +245,7 @@ class RootSkillViewController extends AbstractSkillViewController {
245
245
  return __awaiter(this, void 0, void 0, function* () {
246
246
  const { event } = options;
247
247
  yield this.events.selectEvent(event.id);
248
+ console.log('handleClickEvent', event);
248
249
  this.toolBeltVc.open({ shouldStayOpen: true });
249
250
  try {
250
251
  if (!event.eventTypeSlug) {
@@ -71,9 +71,10 @@ export class RootToolBeltState {
71
71
  this.toolBeltVc.clearTools();
72
72
  }
73
73
  optionallyDropInScopeSelectionTool() {
74
- var _a;
75
- if (this.scopeSelectionTool) {
76
- (_a = this.toolBeltVc) === null || _a === void 0 ? void 0 : _a.addTool(this.scopeSelectionTool);
74
+ var _a, _b;
75
+ if (this.scopeSelectionTool &&
76
+ !((_a = this.toolBeltVc) === null || _a === void 0 ? void 0 : _a.getTool('scope-selection'))) {
77
+ (_b = this.toolBeltVc) === null || _b === void 0 ? void 0 : _b.addTool(this.scopeSelectionTool);
77
78
  }
78
79
  }
79
80
  setupCalendarSelectVc(stateMachine) {
@@ -216,6 +216,7 @@ class RootSkillViewController extends heartwood_view_controllers_1.AbstractSkill
216
216
  var _a, _b;
217
217
  const { event } = options;
218
218
  await this.events.selectEvent(event.id);
219
+ console.log('handleClickEvent', event);
219
220
  this.toolBeltVc.open({ shouldStayOpen: true });
220
221
  try {
221
222
  if (!event.eventTypeSlug) {
@@ -61,9 +61,10 @@ class RootToolBeltState {
61
61
  this.toolBeltVc.clearTools();
62
62
  }
63
63
  optionallyDropInScopeSelectionTool() {
64
- var _a;
65
- if (this.scopeSelectionTool) {
66
- (_a = this.toolBeltVc) === null || _a === void 0 ? void 0 : _a.addTool(this.scopeSelectionTool);
64
+ var _a, _b;
65
+ if (this.scopeSelectionTool &&
66
+ !((_a = this.toolBeltVc) === null || _a === void 0 ? void 0 : _a.getTool('scope-selection'))) {
67
+ (_b = this.toolBeltVc) === null || _b === void 0 ? void 0 : _b.addTool(this.scopeSelectionTool);
67
68
  }
68
69
  }
69
70
  setupCalendarSelectVc(stateMachine) {
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": "24.2.14",
4
+ "version": "24.2.16",
5
5
  "skill": {
6
6
  "namespace": "calendar"
7
7
  },