@syntrologie/runtime-sdk 0.2.11 → 0.2.13
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/SmartCanvasApp.js +57 -2
- package/dist/SmartCanvasApp.js.map +1 -1
- package/dist/hooks/useShadowCanvasConfig.d.ts +3 -1
- package/dist/hooks/useShadowCanvasConfig.js +1 -0
- package/dist/hooks/useShadowCanvasConfig.js.map +1 -1
- package/dist/smart-canvas.esm.js +11 -11
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +44 -2
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +11 -11
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/types.d.ts +8 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -310,6 +310,12 @@ export interface LauncherConfig {
|
|
|
310
310
|
/** Animation style: "pulse" (default), "bounce", "glow" */
|
|
311
311
|
animationStyle?: "pulse" | "bounce" | "glow";
|
|
312
312
|
}
|
|
313
|
+
export interface RoutesConfig {
|
|
314
|
+
/** Routes where the canvas should NOT appear (e.g., ["/login", "/signup"]) */
|
|
315
|
+
exclude?: string[];
|
|
316
|
+
/** If specified, canvas ONLY appears on these routes */
|
|
317
|
+
include?: string[];
|
|
318
|
+
}
|
|
313
319
|
export interface CanvasConfigResponse {
|
|
314
320
|
tiles: TileConfig[];
|
|
315
321
|
fetchedAt: string;
|
|
@@ -324,5 +330,7 @@ export interface CanvasConfigResponse {
|
|
|
324
330
|
theme?: CanvasThemeConfig;
|
|
325
331
|
/** Launcher button configuration */
|
|
326
332
|
launcher?: LauncherConfig;
|
|
333
|
+
/** Route filtering - control where canvas appears */
|
|
334
|
+
routes?: RoutesConfig;
|
|
327
335
|
}
|
|
328
336
|
export type CanvasConfigFetcher = () => Promise<CanvasConfigResponse>;
|