@skippr/live-agent-sdk 0.121.0 → 0.123.0

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.
@@ -7,6 +7,8 @@ interface UseAdoptionGoalsParams {
7
7
  }
8
8
  interface UseAdoptionGoalsResult {
9
9
  goals: AdoptionGoalMatch[];
10
+ deepLinkedGoal: AdoptionGoalMatch | null;
11
+ hasTipSlug: boolean;
10
12
  hasResolved: boolean;
11
13
  attendGoal: (goalId: string) => void;
12
14
  }
@@ -1,11 +1,17 @@
1
- import type { Module } from '../context/LiveAgentContext';
1
+ import type { AdoptionGoalMatch, Module } from '../context/LiveAgentContext';
2
2
  interface UseAutoStartParams {
3
3
  availableModules: Module[];
4
+ deepLinkedGoal: AdoptionGoalMatch | null;
5
+ hasTipSlug: boolean;
6
+ adoptionResolved: boolean;
4
7
  suppressed: boolean;
8
+ moduleSuppressed: boolean;
9
+ modulesResolved: boolean;
5
10
  bearerToken: string | null;
6
11
  selectModule: (id: string, opts?: {
7
12
  autoStarted?: boolean;
8
13
  }) => void;
14
+ startAdoptionSession: (goal: AdoptionGoalMatch) => void;
9
15
  }
10
- export declare function useAutoStart({ availableModules, suppressed, bearerToken, selectModule, }: UseAutoStartParams): void;
16
+ export declare function useAutoStart({ availableModules, deepLinkedGoal, hasTipSlug, adoptionResolved, suppressed, moduleSuppressed, modulesResolved, bearerToken, selectModule, startAdoptionSession, }: UseAutoStartParams): void;
11
17
  export {};
@@ -215,3 +215,4 @@ export type PendingStartKind = (typeof PENDING_START_KIND)[keyof typeof PENDING_
215
215
  export declare const PLAN_ATTR = "skippr.action-plan";
216
216
  export declare const LINK_CARD_ATTR = "skippr.link-card";
217
217
  export declare const NAME_MAX_CHARS = 80;
218
+ export declare const TIP_DEEPLINK_PARAM = "skippr";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.121.0",
3
+ "version": "0.123.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",