@event-calendar/core 5.1.2 → 5.1.3

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.
package/README.md CHANGED
@@ -246,8 +246,8 @@ This bundle contains a version of the calendar that includes all plugins and is
246
246
 
247
247
  The first step is to include the following lines of code in the `<head>` section of your page:
248
248
  ```html
249
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@5.1.2/dist/event-calendar.min.css">
250
- <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@5.1.2/dist/event-calendar.min.js"></script>
249
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@5.1.3/dist/event-calendar.min.css">
250
+ <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@5.1.3/dist/event-calendar.min.js"></script>
251
251
  ```
252
252
 
253
253
  <details>
package/dist/index.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * EventCalendar v5.1.2
2
+ * EventCalendar v5.1.3
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
5
  .ec {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * EventCalendar v5.1.2
2
+ * EventCalendar v5.1.3
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
5
  import { untrack, getAbortSignal, tick, getContext, setContext, onMount, mount, unmount } from "svelte";
@@ -1013,7 +1013,7 @@ function loadEvents(mainState) {
1013
1013
  }
1014
1014
  ++fetching;
1015
1015
  }
1016
- mainState.fetchedRange = activeRange2;
1016
+ assign(fetchedRange, activeRange2);
1017
1017
  }
1018
1018
  });
1019
1019
  };
@@ -1202,7 +1202,7 @@ class State {
1202
1202
  return $.get(this.#fetchedRange);
1203
1203
  }
1204
1204
  set fetchedRange(value) {
1205
- $.set(this.#fetchedRange, value, true);
1205
+ $.set(this.#fetchedRange, value);
1206
1206
  }
1207
1207
  #events;
1208
1208
  get events() {
@@ -1338,7 +1338,7 @@ class State {
1338
1338
  this.#auxComponents = $.state($.proxy([]));
1339
1339
  this.#currentRange = $.derived(currentRange(this));
1340
1340
  this.#activeRange = $.derived(activeRange(this));
1341
- this.#fetchedRange = $.state($.proxy({ start: void 0, end: void 0 }));
1341
+ this.#fetchedRange = $.state({ start: void 0, end: void 0 });
1342
1342
  this.#events = $.state([]);
1343
1343
  this.#filteredEvents = $.derived(filteredEvents(this));
1344
1344
  this.#mainEl = $.state();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@event-calendar/core",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "title": "Event Calendar Core package",
5
5
  "description": "Full-sized drag & drop event calendar with resource & timeline views",
6
6
  "keywords": [
@@ -80,7 +80,7 @@ export function loadEvents(mainState) {
80
80
  ++fetching;
81
81
  }
82
82
  // Save current range for future requests
83
- mainState.fetchedRange = activeRange;
83
+ assign(fetchedRange, activeRange);
84
84
  }
85
85
  });
86
86
  };
@@ -18,7 +18,7 @@ export default class State {
18
18
  this.auxComponents = $state([]);
19
19
  this.currentRange = $derived.by(currentRange(this));
20
20
  this.activeRange = $derived.by(activeRange(this));
21
- this.fetchedRange = $state({start: undefined, end: undefined});
21
+ this.fetchedRange = $state.raw({start: undefined, end: undefined});
22
22
  this.events = $state.raw([]);
23
23
  this.filteredEvents = $derived.by(filteredEvents(this));
24
24
  this.mainEl = $state();