@syntrologie/runtime-sdk 2.5.1 → 2.6.0-canary.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.
@@ -17,8 +17,8 @@ export interface ContextManagerOptions {
17
17
  routes?: RouteFilter;
18
18
  /** Initial page history (optional) */
19
19
  initialPageHistory?: PageHistoryEntry[];
20
- /** Centralized navigation monitor (replaces direct History API patching) */
21
- navigation?: NavigationMonitor;
20
+ /** Centralized navigation monitor for History API change detection. */
21
+ navigation: NavigationMonitor;
22
22
  }
23
23
  /**
24
24
  * ContextManager class for managing runtime context.
@@ -29,9 +29,9 @@ export declare class ContextManager {
29
29
  private listeners;
30
30
  private telemetry?;
31
31
  private routes?;
32
- private navigation?;
32
+ private navigation;
33
33
  private cleanupFns;
34
- constructor(options?: ContextManagerOptions);
34
+ constructor(options: ContextManagerOptions);
35
35
  /**
36
36
  * Get the current runtime context.
37
37
  */
@@ -67,4 +67,4 @@ export declare class ContextManager {
67
67
  /**
68
68
  * Create a ContextManager instance.
69
69
  */
70
- export declare function createContextManager(options?: ContextManagerOptions): ContextManager;
70
+ export declare function createContextManager(options: ContextManagerOptions): ContextManager;
@@ -272,6 +272,8 @@ export interface EvaluationContext {
272
272
  isCooldownActive(key: string): boolean;
273
273
  getFrequencyCount(key: string): number;
274
274
  getSessionMetric(key: string): number;
275
+ /** Get an arbitrary state value by key (checks session then user store). */
276
+ getValue?(key: string): unknown;
275
277
  };
276
278
  /** Access to event bus (for event_occurred checks) */
277
279
  events?: {
package/dist/index.js CHANGED
@@ -100,7 +100,7 @@ import {
100
100
  validateAction,
101
101
  validateActions,
102
102
  widgetRegistry
103
- } from "./chunk-SH5I7ZLB.js";
103
+ } from "./chunk-FXRARX6K.js";
104
104
  import {
105
105
  AddClassZ,
106
106
  AnchorIdZ,
@@ -1,9 +1,19 @@
1
+ /**
2
+ * @deprecated This is a legacy copy used only by the tour overlay runner.
3
+ * The canonical tooltip implementation lives in:
4
+ * packages/adaptives/adaptive-overlays/src/tooltip.ts
5
+ *
6
+ * Any new tooltip features or bug fixes should go in adaptive-overlays only.
7
+ * These two copies have diverged (close button, arrow offset, sanitizer)
8
+ * and should NOT be kept in sync.
9
+ */
1
10
  import { type Placement } from '@floating-ui/dom';
2
11
  export type TooltipHandle = {
3
12
  destroy(): void;
4
13
  el: HTMLElement;
5
14
  };
6
15
  type PlacementOption = Placement | 'auto';
16
+ /** @deprecated Use adaptive-overlays tooltip instead. See file-level deprecation notice. */
7
17
  export declare function showTooltip(anchorEl: HTMLElement, overlayRoot: HTMLElement, opts: {
8
18
  html: string;
9
19
  placement?: PlacementOption;
package/dist/react.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Syntro
3
- } from "./chunk-SH5I7ZLB.js";
3
+ } from "./chunk-FXRARX6K.js";
4
4
  import "./chunk-R5DNAIRI.js";
5
5
  import "./chunk-XDYJ64IN.js";
6
6
  import "./chunk-BU4Z6PD7.js";