@syntrologie/runtime-sdk 2.4.0-canary.21 → 2.4.0-canary.22
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/{chunk-IPU3WVPY.js → chunk-WCQCVPJ7.js} +11 -3
- package/dist/{chunk-IPU3WVPY.js.map → chunk-WCQCVPJ7.js.map} +2 -2
- package/dist/hooks/useShadowCanvasConfig.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/dist/smart-canvas.esm.js +8 -8
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +11 -3
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +10 -10
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +7 -7
|
@@ -10,6 +10,8 @@ export interface UseShadowCanvasConfigOptions {
|
|
|
10
10
|
/** Current page URL — triggers re-filter when URL changes (route-based activation).
|
|
11
11
|
* Full URL (not just pathname) so hash-based routing also triggers re-filter. */
|
|
12
12
|
pageUrl?: string;
|
|
13
|
+
/** Polling interval in milliseconds. Set to 0 or omit to disable polling. */
|
|
14
|
+
pollIntervalMs?: number;
|
|
13
15
|
}
|
|
14
16
|
export interface ShadowCanvasConfigState {
|
|
15
17
|
tiles: TileConfig[];
|
|
@@ -26,4 +28,4 @@ export interface ShadowCanvasConfigState {
|
|
|
26
28
|
/** Launcher button configuration */
|
|
27
29
|
launcher?: LauncherConfig;
|
|
28
30
|
}
|
|
29
|
-
export declare function useShadowCanvasConfig({ fetcher, experiments, runtime, pageUrl, }: UseShadowCanvasConfigOptions): ShadowCanvasConfigState;
|
|
31
|
+
export declare function useShadowCanvasConfig({ fetcher, experiments, runtime, pageUrl, pollIntervalMs, }: UseShadowCanvasConfigOptions): ShadowCanvasConfigState;
|
package/dist/index.js
CHANGED