@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.
- package/dist/bootstrap.d.ts +1 -5
- package/dist/{chunk-SH5I7ZLB.js → chunk-FXRARX6K.js} +37 -39
- package/dist/chunk-FXRARX6K.js.map +7 -0
- package/dist/context/ContextManager.d.ts +5 -5
- package/dist/decisions/types.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/overlays/runtime/overlay/tooltip.d.ts +10 -0
- package/dist/react.js +1 -1
- package/dist/smart-canvas.esm.js +21 -21
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +35 -40
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +21 -21
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +7 -7
- package/dist/chunk-SH5I7ZLB.js.map +0 -7
|
@@ -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
|
|
21
|
-
navigation
|
|
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
|
|
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
|
|
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
|
@@ -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;
|