@syntrologie/runtime-sdk 2.4.0-canary.16 → 2.4.0-canary.17

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/CAPABILITIES.md CHANGED
@@ -855,7 +855,7 @@ Navigates to a URL.
855
855
 
856
856
  # @syntrologie/adapt-overlays
857
857
 
858
- Visual overlay capabilities including highlights, tooltips, badges, and pulse animations.
858
+ Visual overlay capabilities including highlights, tooltips, badges, pulse animations, and celebrations.
859
859
 
860
860
  ## Actions
861
861
 
@@ -1029,6 +1029,71 @@ Shows a centered modal dialog with optional CTA buttons.
1029
1029
  }
1030
1030
  ```
1031
1031
 
1032
+ ### celebrate
1033
+
1034
+ Renders a fullscreen Canvas 2D celebration effect. One action kind with a pluggable `effect` parameter supporting multiple visual presets.
1035
+
1036
+ | Property | Type | Required | Default | Description |
1037
+ | ----------- | ---------------------------------- | -------- | -------------------------- | --------------------------------------------- |
1038
+ | `kind` | `"overlays:celebrate"` | Yes | | Action type |
1039
+ | `effect` | string | Yes | | Effect name (see presets below) |
1040
+ | `duration` | number | No | `3000` | Animation duration in ms |
1041
+ | `intensity` | `"light"` \| `"medium"` \| `"heavy"` | No | `"medium"` | Particle density |
1042
+ | `colors` | string[] | No | Rainbow palette | Color palette for particles |
1043
+ | `props` | object | No | | Effect-specific properties (see presets below) |
1044
+
1045
+ **Available effect presets:**
1046
+
1047
+ - **`confetti`** — Falling rectangular/circular confetti pieces with gravity, air resistance, and rotation
1048
+ - **`fireworks`** — Multiple burst centers with radiating particles, deceleration, and glow effect
1049
+ - **`sparkles`** — Diamond shapes that twinkle via sine-wave opacity oscillation and float gently upward
1050
+ - **`emoji-rain`** — Emoji characters falling from the top with horizontal sine-wave wobble. Use `props.emoji` to set the character (default: `"🎉"`)
1051
+
1052
+ **Confetti:**
1053
+
1054
+ ```json
1055
+ {
1056
+ "kind": "overlays:celebrate",
1057
+ "effect": "confetti",
1058
+ "duration": 4000,
1059
+ "intensity": "heavy",
1060
+ "colors": ["#ff0000", "#00ff00", "#0000ff", "#ffff00"]
1061
+ }
1062
+ ```
1063
+
1064
+ **Fireworks:**
1065
+
1066
+ ```json
1067
+ {
1068
+ "kind": "overlays:celebrate",
1069
+ "effect": "fireworks",
1070
+ "duration": 3000,
1071
+ "intensity": "medium"
1072
+ }
1073
+ ```
1074
+
1075
+ **Sparkles:**
1076
+
1077
+ ```json
1078
+ {
1079
+ "kind": "overlays:celebrate",
1080
+ "effect": "sparkles",
1081
+ "duration": 5000,
1082
+ "colors": ["#ffd700", "#ffffff", "#fffacd"]
1083
+ }
1084
+ ```
1085
+
1086
+ **Emoji rain:**
1087
+
1088
+ ```json
1089
+ {
1090
+ "kind": "overlays:celebrate",
1091
+ "effect": "emoji-rain",
1092
+ "duration": 3000,
1093
+ "props": { "emoji": "🔥" }
1094
+ }
1095
+ ```
1096
+
1032
1097
 
1033
1098
  ---
1034
1099
 
@@ -13,6 +13,7 @@ export interface SmartCanvasAppProps {
13
13
  configUriFeatureKey?: string;
14
14
  configFeatureKey?: string;
15
15
  fetchCredentials?: RequestCredentials;
16
+ /** @deprecated No longer used — config updates are event-driven via ExperimentClient.onFeaturesChanged */
16
17
  pollIntervalMs?: number;
17
18
  experiments?: ExperimentClient;
18
19
  telemetry?: TelemetryClient;