@sprucelabs/spruce-calendar-components 25.6.13 → 26.0.2

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.
Files changed (35) hide show
  1. package/build/.spruce/schemas/schemas.types.d.ts +1010 -1010
  2. package/build/__tests__/support/CalendarToolBeltStateMachineTestFactory.d.ts +8 -8
  3. package/build/__tests__/support/utilities/calendarSkillAssert.js +5 -2
  4. package/build/__tests__/support/utilities/calendarToolBeltInteractor.d.ts +3 -1
  5. package/build/__tests__/support/utilities/calendarToolBeltInteractor.js +11 -4
  6. package/build/calendar/Calendar.vc.d.ts +8 -12
  7. package/build/calendar/Calendar.vc.js +17 -52
  8. package/build/calendar/CalendarEventManager.d.ts +15 -9
  9. package/build/calendar/CalendarEventManager.js +106 -58
  10. package/build/calendar/calculateCalendarEventDifferences.js +3 -6
  11. package/build/esm/.spruce/schemas/schemas.types.d.ts +1010 -1010
  12. package/build/esm/__tests__/support/CalendarToolBeltStateMachineTestFactory.d.ts +8 -8
  13. package/build/esm/__tests__/support/utilities/calendarSkillAssert.js +5 -2
  14. package/build/esm/__tests__/support/utilities/calendarToolBeltInteractor.d.ts +3 -1
  15. package/build/esm/__tests__/support/utilities/calendarToolBeltInteractor.js +14 -5
  16. package/build/esm/calendar/Calendar.vc.d.ts +8 -12
  17. package/build/esm/calendar/Calendar.vc.js +17 -57
  18. package/build/esm/calendar/CalendarEventManager.d.ts +15 -9
  19. package/build/esm/calendar/CalendarEventManager.js +110 -58
  20. package/build/esm/calendar/calculateCalendarEventDifferences.js +1 -1
  21. package/build/esm/skillViewControllers/Root.svc.js +19 -5
  22. package/build/esm/stores/RemoteEventStore.js +2 -1
  23. package/build/esm/toolBelt/CalendarToolRegistrar.d.ts +3 -2
  24. package/build/esm/toolBelt/states/PrerequisitesToolBeltState.d.ts +1 -1
  25. package/build/esm/toolBelt/states/PrerequisitesToolBeltState.js +6 -7
  26. package/build/skillViewControllers/Root.svc.js +19 -5
  27. package/build/stores/RemoteEventStore.js +3 -2
  28. package/build/toolBelt/CalendarToolRegistrar.d.ts +3 -2
  29. package/build/toolBelt/states/PrerequisitesToolBeltState.d.ts +1 -1
  30. package/build/toolBelt/states/PrerequisitesToolBeltState.js +6 -7
  31. package/package.json +1 -5
  32. package/build/esm/stores/isEqual.d.ts +0 -1
  33. package/build/esm/stores/isEqual.js +0 -29
  34. package/build/stores/isEqual.d.ts +0 -1
  35. package/build/stores/isEqual.js +0 -32
@@ -1,29 +0,0 @@
1
- export default function isEqual(a, b) {
2
- if (a === b) {
3
- return true;
4
- }
5
- if (a instanceof Date && b instanceof Date) {
6
- return a.getTime() === b.getTime();
7
- }
8
- if (!a || !b || (typeof a !== 'object' && typeof b !== 'object')) {
9
- return a === b;
10
- }
11
- if (a.prototype !== b.prototype) {
12
- return false;
13
- }
14
- a = removeUndefinedAndNullFields(Object.assign({}, a));
15
- b = removeUndefinedAndNullFields(Object.assign({}, b));
16
- const keys = Object.keys(a);
17
- if (keys.length !== Object.keys(b).length) {
18
- return false;
19
- }
20
- return keys.every((k) => isEqual(a[k], b[k]));
21
- }
22
- function removeUndefinedAndNullFields(obj) {
23
- for (const key in obj) {
24
- if (obj[key] === undefined || obj[key] === null) {
25
- delete obj[key];
26
- }
27
- }
28
- return obj;
29
- }
@@ -1 +0,0 @@
1
- export default function isEqual(a: any, b: any): boolean;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function isEqual(a, b) {
4
- if (a === b) {
5
- return true;
6
- }
7
- if (a instanceof Date && b instanceof Date) {
8
- return a.getTime() === b.getTime();
9
- }
10
- if (!a || !b || (typeof a !== 'object' && typeof b !== 'object')) {
11
- return a === b;
12
- }
13
- if (a.prototype !== b.prototype) {
14
- return false;
15
- }
16
- a = removeUndefinedAndNullFields(Object.assign({}, a));
17
- b = removeUndefinedAndNullFields(Object.assign({}, b));
18
- const keys = Object.keys(a);
19
- if (keys.length !== Object.keys(b).length) {
20
- return false;
21
- }
22
- return keys.every((k) => isEqual(a[k], b[k]));
23
- }
24
- exports.default = isEqual;
25
- function removeUndefinedAndNullFields(obj) {
26
- for (const key in obj) {
27
- if (obj[key] === undefined || obj[key] === null) {
28
- delete obj[key];
29
- }
30
- }
31
- return obj;
32
- }