@guidelytech/react-native 0.10.0 → 0.12.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.
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { SelectorStrategy, MessengerConfig, MessengerMessage, MessengerConversation, SdkArticlesResponse, ResourceCenterArticle, PublishedGuide, ProjectTheme, GuideStep, SdkConfigResponse, ChecklistTask, SdkEvent, TargetingContext, StepButton, ResourceCenterConfig, Placement } from '@guidelytech/shared';
4
- export { GuideStep, PublishedGuide, SdkConfigResponse } from '@guidelytech/shared';
3
+ import { SelectorStrategy, Placement, AutocaptureSettings, HeatmapPoint, MessengerConfig, MessengerMessage, MessengerConversation, SdkArticlesResponse, ResourceCenterArticle, PublishedGuide, ProjectTheme, GuideStep, SdkConfigResponse, ChecklistTask, SdkEvent, TargetingContext, StepButton, ResourceCenterConfig, RuleGroup, ResourceCenterAnnouncement } from '@guidelytech/shared';
4
+ export { AutocaptureSettings, GuideStep, HeatmapPoint, PublishedGuide, SdkConfigResponse } from '@guidelytech/shared';
5
5
  import { FlagsClientOptions, FlagsClient, JsonValue, FlagValue, FlagDetails, FlagsBootstrap, Attributes } from '@guidelytech/flags';
6
6
  export { Attributes, EvaluationResult, FlagDetails, FlagsBootstrap, FlagsClient, FlagsClientOptions, FlagsPayload, InMemoryStickyBucketStore, JsonValue, createFlagsClient } from '@guidelytech/flags';
7
+ import { ResourceCenterModuleId } from '@guidelytech/shared/runtime';
7
8
  import { KeyValueStore, ServerHealth, ChecklistProgressState, GuidelyEnvironment, ConsentState, GuidelyUser, GuidelyAccount, GuideLocalState, SessionState } from '@guidelytech/sdk-core/headless';
8
9
  export { ChecklistProgressState, ConsentState, GuidelyAccount, GuidelyEnvironment, GuidelyUser } from '@guidelytech/sdk-core/headless';
9
10
  import { ViewProps, StyleProp, ViewStyle, View, GestureResponderEvent } from 'react-native';
@@ -50,6 +51,15 @@ declare class TargetRegistry {
50
51
  /** Frame of a visible target (the most recently mounted visible one when an id is used twice), else null. */
51
52
  measure(id: string): Promise<Rect | null>;
52
53
  private measureHandle;
54
+ /**
55
+ * The registered target on the current screen whose visible frame contains the point (window
56
+ * coordinates); the smallest one when targets are nested. Frames that do not answer within
57
+ * `timeoutMs` are skipped.
58
+ */
59
+ hitTest(x: number, y: number, timeoutMs?: number): Promise<{
60
+ id: string;
61
+ rect: Rect;
62
+ } | null>;
53
63
  /** First of `ids` that is mounted and visible. */
54
64
  resolve(ids: string[]): Promise<{
55
65
  id: string;
@@ -67,6 +77,123 @@ declare class TargetRegistry {
67
77
 
68
78
  type GuideStatus = "idle" | "running" | "waiting_url" | "waiting_target" | "ended";
69
79
 
80
+ type Side = "top" | "bottom" | "left" | "right";
81
+ interface Insets {
82
+ top: number;
83
+ bottom: number;
84
+ left: number;
85
+ right: number;
86
+ }
87
+ interface CardPosition {
88
+ x: number;
89
+ y: number;
90
+ side: Side;
91
+ /** Arrow centre along the card edge facing the target (px from the card's left/top). */
92
+ arrow: number;
93
+ }
94
+ /**
95
+ * Places a card of `size` next to `target` inside `viewport` minus `insets`, honouring the step's
96
+ * placement when it fits and flipping (then falling back to below/above) when it does not.
97
+ */
98
+ declare function positionCard(target: Rect, size: {
99
+ width: number;
100
+ height: number;
101
+ }, viewport: {
102
+ width: number;
103
+ height: number;
104
+ }, insets: Insets, placement: Placement, offset: number): CardPosition;
105
+
106
+ /**
107
+ * Where the visitor dragged the Scout bubble on this device: the side edge it snapped to and how
108
+ * high it sits, as a fraction of the allowed range (0 = the default bottom position, 1 = highest).
109
+ */
110
+ interface LauncherPlacement {
111
+ side: "left" | "right";
112
+ fraction: number;
113
+ }
114
+
115
+ /** `autocapture` option: `false` turns every capability off, an object turns single ones off. */
116
+ type AutocaptureOption = boolean | Partial<AutocaptureSettings>;
117
+ /** The element a tap resolved to (or the view it hit), as `click` properties need it. */
118
+ interface TapElement {
119
+ selector: string;
120
+ /** Component / host name (`Pressable`, `TouchableOpacity`, `Text`, `View`). */
121
+ tag: string;
122
+ /** Visible label; already empty for text fields and masked content. */
123
+ text?: string;
124
+ /** Window frame of the element, for the position inside it (heatmaps). */
125
+ measure?: () => Promise<Rect | null>;
126
+ }
127
+ /** One observed tap, reported by the provider's touch observer. */
128
+ interface TapInfo {
129
+ /** Window coordinates in points. */
130
+ x: number;
131
+ y: number;
132
+ /** When the tap ended (ms since epoch); defaults to now. */
133
+ t?: number;
134
+ /** Innermost interactive element under the tap (touchable, `Pressable`, `accessibilityRole="button"`…), if found. */
135
+ element?: TapElement | null;
136
+ /** The view the tap hit, used for rage taps and heatmaps when there is no interactive element. */
137
+ hit?: TapElement | null;
138
+ }
139
+ /** `click` / `rage_click` properties on mobile (`ClickProperties` on the web plus `platform`). */
140
+ interface TapProperties {
141
+ selector: string;
142
+ tag: string;
143
+ text?: string;
144
+ x: number;
145
+ y: number;
146
+ platform: string;
147
+ count?: number;
148
+ }
149
+ /**
150
+ * Detects rage taps: 3+ taps within 1s (each within 1s of the previous) and 30pt of the burst's
151
+ * first tap, reported once per burst. Same semantics as the web SDK's `RageClickDetector`
152
+ * (conformance vectors: `rageClicks` in `mobile/conformance/vectors.json`).
153
+ */
154
+ declare class RageClickDetector {
155
+ private readonly threshold;
156
+ private readonly windowMs;
157
+ private readonly radius;
158
+ private clicks;
159
+ private fired;
160
+ constructor(threshold?: number, windowMs?: number, radius?: number);
161
+ /** Taps in the current burst once it has fired (rage), otherwise 0. */
162
+ get burst(): number;
163
+ /** Records a tap; returns the tap count when it completes a burst, otherwise 0. */
164
+ add(x: number, y: number, t: number): number;
165
+ }
166
+ /** Tap positions on the current screen, sent as one `heatmap` event per batch (40 points, screen change, background). */
167
+ declare class HeatmapBuffer {
168
+ /** Screen path the buffered points belong to. */
169
+ url: string;
170
+ points: HeatmapPoint[];
171
+ /** Adds a tap (`burst` > 0 marks it and the burst's previous taps as rage); true when the batch is full. */
172
+ add(url: string, point: HeatmapPoint, burst: number): boolean;
173
+ /** Empties the buffer, returning what was in it. */
174
+ take(): {
175
+ url: string;
176
+ points: HeatmapPoint[];
177
+ } | null;
178
+ }
179
+ /**
180
+ * Tracks one primary-pointer touch and decides whether it was a tap. Feed it the touch events the
181
+ * provider observes; `end` returns the tap position (window points) or null.
182
+ */
183
+ declare class TapTracker {
184
+ private start;
185
+ private moved;
186
+ /** A finger went down. A second finger while one is tracked cancels the gesture (not a tap). */
187
+ begin(x: number, y: number, t: number, touches: number, id?: unknown): void;
188
+ move(x: number, y: number, id?: unknown): void;
189
+ /** The finger lifted: the tap position when it moved ≤ 10pt and lasted < 1s, else null. */
190
+ end(x: number, y: number, t: number, id?: unknown): {
191
+ x: number;
192
+ y: number;
193
+ } | null;
194
+ cancel(): void;
195
+ }
196
+
70
197
  /**
71
198
  * Scout messenger for React Native: the transport of `@guidelytech/sdk-core`'s messenger-api plus
72
199
  * the conversation state the web widget keeps, as a headless store the overlay renders.
@@ -137,6 +264,8 @@ interface MessengerDeps {
137
264
  onError: (err: unknown) => void;
138
265
  /** The SDK API's circuit breaker, told how each reply stream went. */
139
266
  health?: ServerHealth;
267
+ /** The help center's language when it isn't the default; translated articles are fetched with `?locale=`. */
268
+ locale?: () => string | undefined;
140
269
  /** Poll intervals (ms): open thread, and unread badge otherwise. */
141
270
  pollMs?: {
142
271
  thread: number;
@@ -227,14 +356,29 @@ interface GuidelyOptions {
227
356
  /** Send analytics events (default `true`). Guides still render when disabled. */
228
357
  analytics?: boolean;
229
358
  consent?: ConsentState;
230
- /** Host app version for `app.version` targeting rules. */
359
+ /** Host app version for `app.version` targeting rules and `app_install` / `app_update` events (e.g. from `expo-application`). */
231
360
  appVersion?: string;
361
+ /** Host app build number (`CFBundleVersion` / `versionCode`), sent as `build` with app lifecycle events. */
362
+ appBuild?: string;
363
+ /**
364
+ * Product analytics autocapture: taps (`click`), rage taps, heatmaps, time on screen
365
+ * (`page_leave`) and app lifecycle events. Each capability runs when the project enables it in
366
+ * Settings → Product analytics; this option can only turn things off: `false` for everything,
367
+ * or `{ clicks: false, heatmaps: false, … }` per capability. `false` also removes the provider's
368
+ * touch-observing wrapper view.
369
+ */
370
+ autocapture?: boolean | Partial<AutocaptureSettings>;
232
371
  /** How often to refresh the published config (default 5 minutes). */
233
372
  configRefreshMs?: number;
234
373
  /** Overrides for the project theme. */
235
374
  theme?: Partial<ProjectTheme>;
236
375
  /** Identify this user as soon as the client initialises. */
237
376
  user?: GuidelyUser;
377
+ /**
378
+ * Language for guides and the resource center (BCP 47, e.g. `fr` or `pt-BR`). Defaults to the
379
+ * user's `language` / `locale` trait, then the device language. Change it later with `setLocale()`.
380
+ */
381
+ locale?: string;
238
382
  /** Handles relative and custom-scheme URLs from buttons, links and tasks (deep links, in-app routes). Return `true` when handled. */
239
383
  onNavigate?: (url: string) => boolean | void;
240
384
  onError?: (error: Error) => void;
@@ -334,13 +478,18 @@ interface UiState {
334
478
  }
335
479
 
336
480
  declare const SDK_NAME = "@guidelytech/react-native";
337
- declare const SDK_VERSION = "0.10.0";
481
+ declare const SDK_VERSION = "0.12.0";
338
482
  declare const DEFAULT_API_URL = "https://guidelytech.com";
339
483
  /** Host-platform services the engine needs; the provider supplies React Native implementations. */
340
484
  interface PlatformBridge {
341
485
  device: DeviceEnvironment;
342
486
  /** Opens an external URL (React Native `Linking.openURL`). */
343
487
  openExternal(url: string): void;
488
+ /** Window size in points (React Native `Dimensions.get("window")`), for heatmaps. */
489
+ windowSize?(): {
490
+ width: number;
491
+ height: number;
492
+ };
344
493
  }
345
494
  /** Mobile sessions persist across launches and expire after the configured inactivity timeout. */
346
495
  interface MobileSession extends SessionState {
@@ -384,6 +533,7 @@ declare class GuidelyClient {
384
533
  private activeSurvey;
385
534
  private queued;
386
535
  private flows;
536
+ /** Checklists on screen, with the guide as rendered (in the visitor's language). */
387
537
  private checklists;
388
538
  private expanded;
389
539
  private surveyView;
@@ -403,6 +553,26 @@ declare class GuidelyClient {
403
553
  readonly flags: FlagsClient;
404
554
  /** Experiments already reported this session (`experiment_viewed` is sent once per session). */
405
555
  private exposures;
556
+ private readonly rage;
557
+ private readonly heatmap;
558
+ /** Taps are processed in order (target frames are measured asynchronously). */
559
+ private tapChain;
560
+ /** When the current screen's foreground measurement started; `screenLeft` once it has been reported. */
561
+ private screenStartedAt;
562
+ private screenLeft;
563
+ /** Last `app_open` (cold start or return to the foreground), for `app_background.foregroundMs`. */
564
+ private openedAt;
565
+ private launchChecked;
566
+ /** An identity was stored before this launch (an existing install adopting lifecycle events). */
567
+ private hadIdentity;
568
+ /** Language set with `setLocale()` (or the `locale` option). */
569
+ private locale;
570
+ /** Language each shown guide was rendered in; added to its events as `locale`. */
571
+ private guideLocales;
572
+ /** The resource center in the visitor's language, recomputed when the config or language changes. */
573
+ private localizedRc;
574
+ /** "What's new" last-seen time when the resource center opened (entries after it read as new). */
575
+ private announcementsSeenAtOpen;
406
576
  private readonly customListeners;
407
577
  private readonly eventBus;
408
578
  constructor(options: GuidelyOptions, bridge: PlatformBridge);
@@ -449,10 +619,54 @@ declare class GuidelyClient {
449
619
  /** The current screen name (last value passed to `screen()`). */
450
620
  getScreen(): string;
451
621
  private handleTap;
622
+ private captureAllowed;
623
+ /** A capability runs when the project enables it (absent on old servers → off), no option turns it off and analytics are allowed. */
624
+ private autocaptureOn;
625
+ /** `page_view` from `screen()` predates autocapture: only an explicit opt-out stops it. */
626
+ private pageviewsOn;
627
+ /** True when taps are worth observing (clicks, rage taps or heatmaps are on); the provider skips resolving views otherwise. */
628
+ isTapCaptureOn(): boolean;
629
+ /**
630
+ * Records a tap observed by the provider: `click` for an interactive element, `rage_click` for
631
+ * bursts and a heatmap point. A registered `<GuidelyTarget>` whose frame contains the point
632
+ * (smallest wins) takes precedence over the resolved element and is reported as `#<id>`.
633
+ */
634
+ recordTap(tap: TapInfo): void;
635
+ private processTap;
636
+ /** Sends the buffered heatmap taps as one `heatmap` event attributed to the screen they happened on. */
637
+ private flushHeatmap;
638
+ private windowSize;
639
+ /** Ends the foreground measurement of the current screen with a `page_leave` (once per measurement). */
640
+ private leaveScreen;
641
+ /** `{ appVersion, build }` of this launch, without unknown keys. */
642
+ private appInfo;
643
+ /**
644
+ * Once per launch, as soon as a config is known: `app_install` / `app_update` from the stored
645
+ * version (when the app passes `appVersion` and `storage`), then `app_open` with `coldStart: true`.
646
+ */
647
+ private checkLaunch;
648
+ private wentToBackground;
649
+ private cameToForeground;
452
650
  /** Builds the targeting context for the current moment. */
453
651
  getContext(): TargetingContext;
454
652
  private isTargeted;
455
653
  private isEligible;
654
+ /** Guide throttling: may this guide launch automatically now? */
655
+ private throttleAllows;
656
+ private recordLaunch;
657
+ /** Guides and A/B test control groups, which are evaluated the same way but never render. */
658
+ private candidates;
659
+ private holdoutFor;
660
+ /** The visitor's language candidates, most preferred first: `setLocale()` / `locale` option, traits, device. */
661
+ private locales;
662
+ private defaultLocale;
663
+ /** The guide in the visitor's language (remembered so its events carry `locale`). */
664
+ private localize;
665
+ /**
666
+ * Sets the language for guides and the resource center (`null` = back to the user's traits and
667
+ * the device language). Guides already on screen keep their language; the resource center re-renders.
668
+ */
669
+ setLocale(locale: string | null): void;
456
670
  private triggerFires;
457
671
  private evaluate;
458
672
  private armVisibility;
@@ -502,8 +716,28 @@ declare class GuidelyClient {
502
716
  closeSurvey(guideId: string): void;
503
717
  /** The visitor's audiences (from the last identify), for audience-targeted help articles. */
504
718
  getAudienceIds(): readonly string[];
719
+ /** The published resource center in the visitor's language, or null when it is off. */
505
720
  getResourceCenter(): ResourceCenterConfig | null;
721
+ /** The resource center in the visitor's language (cached until the config or language changes). */
722
+ private localizedResourceCenter;
723
+ /** Evaluates targeting rules (e.g. a resource-center section's) for the current visitor and screen. */
724
+ matchesTargeting(rules: RuleGroup | null | undefined): boolean;
725
+ /** Resource-center sections this visitor sees, in order (disabled and non-matching ones left out). */
726
+ getResourceCenterModules(): ResourceCenterModuleId[];
727
+ /**
728
+ * Sections of the messenger's Help tab, in order: the resource center's modules without "What's
729
+ * new" (the messenger has its own News tab); every section when no resource center is published.
730
+ */
731
+ getHelpModules(): ResourceCenterModuleId[];
732
+ /** "What's new" entries this visitor sees (newest first); empty when the section is off. */
733
+ getAnnouncements(): ResourceCenterAnnouncement[];
734
+ /** "What's new" entries published since the visitor last opened the resource center. */
735
+ getUnreadAnnouncements(): number;
736
+ /** Whether an entry is new to the visitor in the resource center that is open now. */
737
+ isAnnouncementNew(a: ResourceCenterAnnouncement): boolean;
506
738
  searchResourceCenter(q: string): Promise<ResourceCenterArticle[]>;
739
+ /** The language of the resource center as shown, when it isn't the default (sent with article fetches). */
740
+ private articleLocale;
507
741
  articleViewed(article: ResourceCenterArticle): void;
508
742
  getChecklistProgress(idOrKey: string): ChecklistProgressState;
509
743
  completeChecklistTask(idOrKey: string, taskId: string): void;
@@ -530,6 +764,10 @@ declare class GuidelyClient {
530
764
  private syncMessenger;
531
765
  /** The Scout messenger store when Scout is on for this platform (rendered by the overlay). */
532
766
  getMessenger(): Messenger | null;
767
+ /** Where the visitor dragged the messenger bubble on this device, or null to use the configured spot. */
768
+ getMessengerLauncherPlacement(): LauncherPlacement | null;
769
+ /** Remembers the bubble's spot on this device (in memory only when no `storage` was passed). */
770
+ setMessengerLauncherPlacement(placement: LauncherPlacement): void;
533
771
  /** Opens the Scout messenger, optionally on a tab. No-op when Scout is off for this platform. */
534
772
  openMessenger(tab?: MessengerTab): void;
535
773
  closeMessenger(): void;
@@ -543,6 +781,8 @@ declare class GuidelyClient {
543
781
  getFeatureDetails<T extends JsonValue>(key: string, fallback: T): FlagDetails<FlagValue<T>>;
544
782
  /** Calls `cb` whenever flag values may have changed. Returns an unsubscribe function. */
545
783
  onFlagsChange(cb: () => void): () => void;
784
+ /** Device facts on every screen view, read by the Pages devices / browsers breakdowns. */
785
+ private deviceProperties;
546
786
  /** Attributes flags are evaluated with: identity, traits, account, audiences, screen and device. */
547
787
  private flagContext;
548
788
  private syncFlagAttributes;
@@ -563,7 +803,7 @@ declare class GuidelyClient {
563
803
  guides: {
564
804
  id: string;
565
805
  key: string;
566
- kind: "tooltip" | "modal" | "banner" | "checklist" | "survey" | "flow" | "announcement";
806
+ kind: "banner" | "tooltip" | "modal" | "checklist" | "survey" | "flow" | "announcement";
567
807
  }[];
568
808
  activeGuide: {
569
809
  status: GuideStatus;
@@ -593,32 +833,6 @@ declare class GuidelyClient {
593
833
  private log;
594
834
  }
595
835
 
596
- type Side = "top" | "bottom" | "left" | "right";
597
- interface Insets {
598
- top: number;
599
- bottom: number;
600
- left: number;
601
- right: number;
602
- }
603
- interface CardPosition {
604
- x: number;
605
- y: number;
606
- side: Side;
607
- /** Arrow centre along the card edge facing the target (px from the card's left/top). */
608
- arrow: number;
609
- }
610
- /**
611
- * Places a card of `size` next to `target` inside `viewport` minus `insets`, honouring the step's
612
- * placement when it fits and flipping (then falling back to below/above) when it does not.
613
- */
614
- declare function positionCard(target: Rect, size: {
615
- width: number;
616
- height: number;
617
- }, viewport: {
618
- width: number;
619
- height: number;
620
- }, insets: Insets, placement: Placement, offset: number): CardPosition;
621
-
622
836
  /**
623
837
  * Declares which screen its children are on, so targets on screens that are mounted but not
624
838
  * visible (inactive tabs, screens under a stack) are never used. `name` must match what you pass
@@ -674,6 +888,15 @@ interface OverlayProps {
674
888
  */
675
889
  declare function GuidelyOverlay({ client, insets: insetsProp, launcherOffset }: OverlayProps): react.JSX.Element;
676
890
 
891
+ interface GuidelyMaskProps extends ViewProps {
892
+ children?: ReactNode;
893
+ }
894
+ /**
895
+ * Keeps the text of its children out of product analytics: taps inside it (or on an element that
896
+ * contains it) are captured without `text`. Renders a plain `View`.
897
+ */
898
+ declare function GuidelyMask({ children, ...rest }: GuidelyMaskProps): react.JSX.Element;
899
+
677
900
  /**
678
901
  * Tiny, tolerant HTML → rich-text converter for guide bodies (already sanitized server-side).
679
902
  * Supports p, div, br, strong/b, em/i, u, a, code, ul/ol/li, h1–h6 and blockquote; every other tag
@@ -827,4 +1050,4 @@ declare function useGuideState(idOrKey: string): {
827
1050
  /** The guide currently running exclusively (flow, modal, survey…), or null. */
828
1051
  declare function useActiveGuide(): PublishedGuide | null;
829
1052
 
830
- export { type ChecklistView, DEFAULT_API_URL, type DeviceEnvironment, Feature, FeatureFlag, type FeatureProps, FeatureValue, type FeatureValueProps, FlagsProvider, type FlagsProviderProps, type GuideStepInfo, GuidelyClient, type GuidelyEventName, type GuidelyEvents, type GuidelyOptions, GuidelyOverlay, GuidelyProvider, type GuidelyProviderProps, GuidelyScreenScope, type GuidelyStorage, GuidelyTarget, type GuidelyTargetProps, type Insets, Messenger, type MessengerSnapshot, type MessengerTab, type MessengerThread, type MessengerView, type PlatformBridge, SDK_NAME, SDK_VERSION, type StepView, type SurveyView, TargetRegistry, type UiState, createSseParser, guidelyScreenLayout, htmlToText, noopClient, parseHtml, positionCard, targetIdsFor, useActiveGuide, useChecklistProgress, useFeatureValue, useFlag, useFlagDetails, useFlags, useFlagsClient, useFlagsReady, useGuideState, useGuidely, useGuidelyEvent, useGuidelyIdentify, useGuidelyNavigation, useGuidelyReady, useGuidelyScreen, useGuidelyTarget };
1053
+ export { type AutocaptureOption, type ChecklistView, DEFAULT_API_URL, type DeviceEnvironment, Feature, FeatureFlag, type FeatureProps, FeatureValue, type FeatureValueProps, FlagsProvider, type FlagsProviderProps, type GuideStepInfo, GuidelyClient, type GuidelyEventName, type GuidelyEvents, GuidelyMask, type GuidelyMaskProps, type GuidelyOptions, GuidelyOverlay, GuidelyProvider, type GuidelyProviderProps, GuidelyScreenScope, type GuidelyStorage, GuidelyTarget, type GuidelyTargetProps, HeatmapBuffer, type Insets, Messenger, type MessengerSnapshot, type MessengerTab, type MessengerThread, type MessengerView, type PlatformBridge, RageClickDetector, SDK_NAME, SDK_VERSION, type StepView, type SurveyView, type TapElement, type TapInfo, type TapProperties, TapTracker, TargetRegistry, type UiState, createSseParser, guidelyScreenLayout, htmlToText, noopClient, parseHtml, positionCard, targetIdsFor, useActiveGuide, useChecklistProgress, useFeatureValue, useFlag, useFlagDetails, useFlags, useFlagsClient, useFlagsReady, useGuideState, useGuidely, useGuidelyEvent, useGuidelyIdentify, useGuidelyNavigation, useGuidelyReady, useGuidelyScreen, useGuidelyTarget };