@monterosa/sdk-interact-kit 0.18.5-rc.2 → 0.18.5-rc.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.
@@ -22,6 +22,9 @@ export declare class EventImpl extends Emitter implements InteractEvent {
22
22
  private _internalState;
23
23
  private _initState;
24
24
  private _history;
25
+ private boundHandleState;
26
+ private boundHandleInternalState;
27
+ private boundHandleEventsUpdated;
25
28
  private unsubscribeStateHandler;
26
29
  private unsubscribeInternalStateHandler;
27
30
  private unsubscribeListingsHandler;
@@ -30,7 +33,7 @@ export declare class EventImpl extends Emitter implements InteractEvent {
30
33
  private calculateInternalState;
31
34
  private handleState;
32
35
  private handleInternalState;
33
- private handleListings;
36
+ private handleEventsUpdated;
34
37
  /** @internal */
35
38
  destroy(): void;
36
39
  get context(): EventContext;
@@ -26,7 +26,10 @@ declare function getProject(sdk?: MonterosaSdk): Promise<InteractProject>;
26
26
  */
27
27
  declare function onProjectFieldsUpdated(project: InteractProject, callback: () => void): Unsubscribe;
28
28
  /**
29
- * @internal
29
+ * Adds an observer that is called when the project listings are updated.
30
+ *
31
+ * @deprecated Use {@link onEventAdded()}, {@link onEventUpdated()} and
32
+ * {@link onEventRemoved()} instead
30
33
  */
31
34
  declare function onProjectListingsUpdated(project: InteractProject, callback: () => void): Unsubscribe;
32
35
  export { getProject, getProjectMemoized, onProjectFieldsUpdated, onProjectListingsUpdated, };
@@ -36,6 +36,11 @@ export declare class ProjectImpl extends Emitter implements InteractProject {
36
36
  * Calculates events that were created (present in new listings but not in old)
37
37
  */
38
38
  private _calculateCreatedEvents;
39
+ /**
40
+ * Calculates events that were updated (present in old listings and new,
41
+ * but with different digest)
42
+ */
43
+ private _calculateUpdatedEvents;
39
44
  /**
40
45
  * Calculates events that were deleted (present in old listings but not in new)
41
46
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monterosa/sdk-interact-kit",
3
- "version": "0.18.5-rc.2",
3
+ "version": "0.18.5-rc.3",
4
4
  "description": "Monterosa JS SDK / Interact Kit",
5
5
  "author": "Monterosa <hello@monterosa.co.uk> (https://www.monterosa.co/)",
6
6
  "main": "dist/index.cjs.js",
@@ -29,11 +29,11 @@
29
29
  "@monterosa/sdk-util": "0.x"
30
30
  },
31
31
  "dependencies": {
32
- "@monterosa/sdk-connect-kit": "^0.18.5-rc.2",
33
- "@monterosa/sdk-core": "^0.18.5-rc.2",
34
- "@monterosa/sdk-interact-interop": "^0.18.5-rc.2",
35
- "@monterosa/sdk-storage-kit": "^0.18.5-rc.2",
36
- "@monterosa/sdk-util": "^0.18.5-rc.2"
32
+ "@monterosa/sdk-connect-kit": "^0.18.5-rc.3",
33
+ "@monterosa/sdk-core": "^0.18.5-rc.3",
34
+ "@monterosa/sdk-interact-interop": "^0.18.5-rc.3",
35
+ "@monterosa/sdk-storage-kit": "^0.18.5-rc.3",
36
+ "@monterosa/sdk-util": "^0.18.5-rc.3"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@faker-js/faker": "^6.3.1",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "1ebb1213fcd40ca11d97f56001200a242e084a28"
54
+ "gitHead": "f001e5a771a72681aecf2eb2738597a5e612e4bc"
55
55
  }