@scalebun/web 1.0.0 → 1.2.1

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.
Files changed (291) hide show
  1. package/dist/bootstrap/SDKBootstrapper.d.ts +6 -6
  2. package/dist/bootstrap/SDKBootstrapper.js +8 -8
  3. package/dist/browser.d.ts +1 -1
  4. package/dist/browser.d.ts.map +1 -1
  5. package/dist/browser.js +8 -6
  6. package/dist/browser.js.map +1 -1
  7. package/dist/config/endpoints.d.ts +12 -0
  8. package/dist/config/endpoints.d.ts.map +1 -0
  9. package/dist/config/endpoints.js +12 -0
  10. package/dist/config/endpoints.js.map +1 -0
  11. package/dist/config/schema.d.ts.map +1 -1
  12. package/dist/config/schema.js +5 -3
  13. package/dist/config/schema.js.map +1 -1
  14. package/dist/core/breadcrumbs.js +1 -1
  15. package/dist/core/index.d.ts +13 -13
  16. package/dist/core/index.js +13 -13
  17. package/dist/core/observe.js +1 -1
  18. package/dist/core/pageContext.d.ts +1 -1
  19. package/dist/features/analytics/AnalyticsFeature.d.ts +2 -2
  20. package/dist/features/analytics/AnalyticsFeature.js +10 -10
  21. package/dist/features/analytics/autocapture.js +4 -4
  22. package/dist/features/analytics/sampler.js +1 -1
  23. package/dist/features/bugreport/BugReportFeature.d.ts +1 -1
  24. package/dist/features/bugreport/BugReportFeature.js +1 -1
  25. package/dist/features/bugreport/collect.js +1 -1
  26. package/dist/features/bugreport/widget.js +9 -9
  27. package/dist/features/coach/CoachmarkFeature.d.ts +1 -1
  28. package/dist/features/coach/CoachmarkFeature.js +5 -5
  29. package/dist/features/coach/anchor.d.ts +1 -1
  30. package/dist/features/coach/overlay.d.ts +1 -1
  31. package/dist/features/coach/overlay.js +21 -21
  32. package/dist/features/coach/position.d.ts +1 -1
  33. package/dist/features/coach/predicate.d.ts +1 -1
  34. package/dist/features/coach/tour.d.ts +4 -4
  35. package/dist/features/coach/tour.js +1 -1
  36. package/dist/features/coach/types.d.ts +1 -1
  37. package/dist/features/coach/wait.d.ts +2 -2
  38. package/dist/features/config/ConfigFeature.d.ts +1 -1
  39. package/dist/features/config/ConfigFeature.js +5 -5
  40. package/dist/features/config/configStore.d.ts +1 -1
  41. package/dist/features/config/targeting.d.ts +1 -1
  42. package/dist/features/console/ConsoleFeature.js +3 -3
  43. package/dist/features/console/normalize.js +2 -2
  44. package/dist/features/console/throttle.d.ts +1 -1
  45. package/dist/features/crash/CrashFeature.js +2 -2
  46. package/dist/features/engage/EngageFeature.d.ts +3 -3
  47. package/dist/features/engage/EngageFeature.js +5 -5
  48. package/dist/features/engage/attachments.d.ts +1 -1
  49. package/dist/features/engage/attachments.js +3 -3
  50. package/dist/features/engage/gameLogic.d.ts +1 -1
  51. package/dist/features/engage/gameResolver.d.ts +2 -2
  52. package/dist/features/engage/gameResolver.js +1 -1
  53. package/dist/features/engage/inappSlots.d.ts +1 -1
  54. package/dist/features/engage/inappSlots.js +1 -1
  55. package/dist/features/engage/normalize.d.ts +1 -1
  56. package/dist/features/engage/richInApp.d.ts +3 -3
  57. package/dist/features/engage/richInApp.js +6 -6
  58. package/dist/features/engage/runtime.d.ts +3 -3
  59. package/dist/features/engage/runtime.js +7 -7
  60. package/dist/features/engage/shakeDetector.js +1 -1
  61. package/dist/features/engage/throttle.d.ts +1 -1
  62. package/dist/features/engage/transport.d.ts +1 -1
  63. package/dist/features/engage/transport.js +1 -1
  64. package/dist/features/engage/triggerEngine.d.ts +1 -1
  65. package/dist/features/engage/widget/InAppWidget.d.ts +1 -1
  66. package/dist/features/engage/widget/InAppWidget.js +18 -18
  67. package/dist/features/engage/widget/SurveyWidget.d.ts +1 -1
  68. package/dist/features/engage/widget/SurveyWidget.js +66 -66
  69. package/dist/features/errors/ErrorsFeature.d.ts +1 -1
  70. package/dist/features/errors/ErrorsFeature.js +6 -6
  71. package/dist/features/errors/group/fingerprint.js +1 -1
  72. package/dist/features/errors/lazy.d.ts +3 -3
  73. package/dist/features/errors/lazy.js +3 -3
  74. package/dist/features/errors/normalize.d.ts +2 -2
  75. package/dist/features/errors/normalize.js +2 -2
  76. package/dist/features/errors/redact.js +1 -1
  77. package/dist/features/errors/sampling.js +1 -1
  78. package/dist/features/exit-intent/ExitIntentFeature.js +1 -1
  79. package/dist/features/exit-intent/engine.js +1 -1
  80. package/dist/features/forms/index.js +1 -1
  81. package/dist/features/inapp/InApp2Feature.js +1 -1
  82. package/dist/features/inapp/anchor/controller.d.ts +2 -2
  83. package/dist/features/inapp/anchor/controller.js +3 -3
  84. package/dist/features/inapp/api.d.ts +5 -5
  85. package/dist/features/inapp/api.js +3 -3
  86. package/dist/features/inapp/blocks/blocks.d.ts +1 -1
  87. package/dist/features/inapp/blocks/blocks.js +1 -1
  88. package/dist/features/inapp/blocks/feedback.d.ts +1 -1
  89. package/dist/features/inapp/blocks/heavy/carousel.d.ts +1 -1
  90. package/dist/features/inapp/blocks/heavy/chart.d.ts +1 -1
  91. package/dist/features/inapp/blocks/heavy/code.d.ts +1 -1
  92. package/dist/features/inapp/blocks/heavy/confetti.d.ts +1 -1
  93. package/dist/features/inapp/blocks/heavy/countdown.d.ts +1 -1
  94. package/dist/features/inapp/blocks/heavy/index.d.ts +1 -1
  95. package/dist/features/inapp/blocks/heavy/index.js +18 -18
  96. package/dist/features/inapp/blocks/heavy/markdown.d.ts +1 -1
  97. package/dist/features/inapp/blocks/heavy/productgrid.d.ts +1 -1
  98. package/dist/features/inapp/blocks/heavy/qr.d.ts +1 -1
  99. package/dist/features/inapp/blocks/heavy/scratch.d.ts +1 -1
  100. package/dist/features/inapp/blocks/heavy/scratch.js +1 -1
  101. package/dist/features/inapp/blocks/heavy/slot.d.ts +1 -1
  102. package/dist/features/inapp/blocks/heavy/slot.js +1 -1
  103. package/dist/features/inapp/blocks/heavy/spinwheel.d.ts +1 -1
  104. package/dist/features/inapp/blocks/heavy/spinwheel.js +1 -1
  105. package/dist/features/inapp/blocks/heavy/steps.d.ts +1 -1
  106. package/dist/features/inapp/blocks/heavy/streak.d.ts +1 -1
  107. package/dist/features/inapp/blocks/heavy/table.d.ts +1 -1
  108. package/dist/features/inapp/blocks/heavy/unavailable.d.ts +1 -1
  109. package/dist/features/inapp/blocks/heavy/video.d.ts +1 -1
  110. package/dist/features/inapp/blocks/styles.js +191 -191
  111. package/dist/features/inapp/center/bridge.d.ts +3 -3
  112. package/dist/features/inapp/center/bridge.js +1 -1
  113. package/dist/features/inapp/center/panel.d.ts +2 -2
  114. package/dist/features/inapp/center/panel.js +33 -33
  115. package/dist/features/inapp/center/store.d.ts +1 -1
  116. package/dist/features/inapp/center/sync.d.ts +1 -1
  117. package/dist/features/inapp/center/types.d.ts +1 -1
  118. package/dist/features/inapp/core/analytics.d.ts +3 -3
  119. package/dist/features/inapp/core/analytics.js +1 -1
  120. package/dist/features/inapp/core/compat.d.ts +2 -2
  121. package/dist/features/inapp/core/debugOverlay.d.ts +2 -2
  122. package/dist/features/inapp/core/debugOverlay.js +12 -12
  123. package/dist/features/inapp/core/engine.d.ts +3 -3
  124. package/dist/features/inapp/core/engine.js +10 -10
  125. package/dist/features/inapp/core/host.js +22 -22
  126. package/dist/features/inapp/core/metrics.d.ts +1 -1
  127. package/dist/features/inapp/core/migration.d.ts +2 -2
  128. package/dist/features/inapp/core/migration.js +2 -2
  129. package/dist/features/inapp/core/orchestrator.d.ts +1 -1
  130. package/dist/features/inapp/core/respect.d.ts +1 -1
  131. package/dist/features/inapp/core/targeting.d.ts +1 -1
  132. package/dist/features/inapp/core/targeting.js +1 -1
  133. package/dist/features/inapp/core/triggers.d.ts +1 -1
  134. package/dist/features/inapp/core/triggers.js +2 -2
  135. package/dist/features/inapp/inappContract.web.d.ts +1 -1
  136. package/dist/features/inapp/index.d.ts +15 -15
  137. package/dist/features/inapp/index.js +10 -10
  138. package/dist/features/inapp/registry.web.canonical.d.ts +1 -1
  139. package/dist/features/inapp/registry.web.catalog.d.ts +1 -1
  140. package/dist/features/inapp/surfaces/banner.d.ts +1 -1
  141. package/dist/features/inapp/surfaces/banner.js +1 -1
  142. package/dist/features/inapp/surfaces/checklist.d.ts +1 -1
  143. package/dist/features/inapp/surfaces/coachmark.d.ts +1 -1
  144. package/dist/features/inapp/surfaces/coachmark.js +2 -2
  145. package/dist/features/inapp/surfaces/hotspot.d.ts +1 -1
  146. package/dist/features/inapp/surfaces/hotspot.js +2 -2
  147. package/dist/features/inapp/surfaces/inline.d.ts +4 -4
  148. package/dist/features/inapp/surfaces/inline.js +11 -11
  149. package/dist/features/inapp/surfaces/launcher.d.ts +1 -1
  150. package/dist/features/inapp/surfaces/modal.d.ts +1 -1
  151. package/dist/features/inapp/surfaces/modal.js +2 -2
  152. package/dist/features/inapp/surfaces/mount.d.ts +4 -4
  153. package/dist/features/inapp/surfaces/mount.js +4 -4
  154. package/dist/features/inapp/surfaces/palette.d.ts +1 -1
  155. package/dist/features/inapp/surfaces/palette.js +1 -1
  156. package/dist/features/inapp/surfaces/panel.d.ts +1 -1
  157. package/dist/features/inapp/surfaces/popover.d.ts +1 -1
  158. package/dist/features/inapp/surfaces/popover.js +2 -2
  159. package/dist/features/inapp/surfaces/render.d.ts +4 -4
  160. package/dist/features/inapp/surfaces/render.d.ts.map +1 -1
  161. package/dist/features/inapp/surfaces/render.js +23 -19
  162. package/dist/features/inapp/surfaces/render.js.map +1 -1
  163. package/dist/features/inapp/surfaces/slideover.d.ts +1 -1
  164. package/dist/features/inapp/surfaces/slideover.js +1 -1
  165. package/dist/features/inapp/surfaces/styles.js +179 -179
  166. package/dist/features/inapp/surfaces/surface.d.ts +4 -4
  167. package/dist/features/inapp/surfaces/surface.js +2 -2
  168. package/dist/features/inapp/surfaces/takeover.d.ts +1 -1
  169. package/dist/features/inapp/surfaces/takeover.js +2 -2
  170. package/dist/features/inapp/surfaces/toast.d.ts +1 -1
  171. package/dist/features/inapp/surfaces/toast.js +1 -1
  172. package/dist/features/inapp/surfaces/toolbar.d.ts +1 -1
  173. package/dist/features/inapp/surfaces/toolbar.js +2 -2
  174. package/dist/features/inapp/surfaces/tour.d.ts +1 -1
  175. package/dist/features/inapp/surfaces/tour.js +5 -5
  176. package/dist/features/inbox/InboxFeature.d.ts +1 -1
  177. package/dist/features/inbox/InboxFeature.js +5 -5
  178. package/dist/features/inbox/runtime.d.ts +2 -2
  179. package/dist/features/inbox/runtime.js +3 -3
  180. package/dist/features/inbox/store.d.ts +1 -1
  181. package/dist/features/inbox/sync.d.ts +2 -2
  182. package/dist/features/inbox/sync.js +1 -1
  183. package/dist/features/inbox/widget/InboxWidget.d.ts +1 -1
  184. package/dist/features/inbox/widget/InboxWidget.js +85 -85
  185. package/dist/features/journey/InteractionTracker.js +1 -1
  186. package/dist/features/journey/JourneyFeature.js +3 -3
  187. package/dist/features/manifest.d.ts +1 -1
  188. package/dist/features/manifest.js +18 -18
  189. package/dist/features/network/NetworkFeature.d.ts +1 -1
  190. package/dist/features/network/NetworkFeature.js +10 -10
  191. package/dist/features/network/capture/body.d.ts +1 -1
  192. package/dist/features/network/capture/body.js +1 -1
  193. package/dist/features/network/classify.d.ts +1 -1
  194. package/dist/features/network/fetchInterceptor.d.ts +1 -1
  195. package/dist/features/network/fetchInterceptor.js +1 -1
  196. package/dist/features/network/intercept/beacon.d.ts +1 -1
  197. package/dist/features/network/intercept/sse.d.ts +1 -1
  198. package/dist/features/network/intercept/streams.d.ts +4 -4
  199. package/dist/features/network/intercept/streams.js +3 -3
  200. package/dist/features/network/intercept/websocket.d.ts +1 -1
  201. package/dist/features/network/lazy.d.ts +3 -3
  202. package/dist/features/network/lazy.js +2 -2
  203. package/dist/features/network/normalize.d.ts +1 -1
  204. package/dist/features/network/normalize.js +3 -3
  205. package/dist/features/network/parse/graphql.d.ts +1 -1
  206. package/dist/features/network/sampler.js +1 -1
  207. package/dist/features/network/timing.d.ts +1 -1
  208. package/dist/features/network/xhrInterceptor.d.ts +1 -1
  209. package/dist/features/network/xhrInterceptor.js +1 -1
  210. package/dist/features/performance/PerformanceFeature.d.ts +2 -2
  211. package/dist/features/performance/PerformanceFeature.js +11 -11
  212. package/dist/features/performance/longTasks.js +1 -1
  213. package/dist/features/performance/normalize.js +1 -1
  214. package/dist/features/performance/sampler.js +1 -1
  215. package/dist/features/performance/trace/index.d.ts +4 -4
  216. package/dist/features/performance/trace/index.js +3 -3
  217. package/dist/features/performance/trace/pageload.d.ts +1 -1
  218. package/dist/features/performance/trace/pageload.js +1 -1
  219. package/dist/features/performance/trace/transaction.d.ts +2 -2
  220. package/dist/features/performance/trace/transaction.js +2 -2
  221. package/dist/features/profiler/ProfilerFeature.js +1 -1
  222. package/dist/features/push/PushFeature.d.ts +4 -4
  223. package/dist/features/push/PushFeature.js +3 -3
  224. package/dist/features/push/softAsk.d.ts +1 -1
  225. package/dist/features/push/softAsk.js +26 -26
  226. package/dist/features/replay/ReplayFeature.d.ts +1 -1
  227. package/dist/features/replay/ReplayFeature.js +12 -12
  228. package/dist/features/replay/engine/canvas.d.ts +2 -2
  229. package/dist/features/replay/engine/crossOrigin.d.ts +1 -1
  230. package/dist/features/replay/engine/crossOrigin.js +3 -3
  231. package/dist/features/replay/engine/cssom.d.ts +2 -2
  232. package/dist/features/replay/engine/iframe.d.ts +2 -2
  233. package/dist/features/replay/engine/iframe.js +3 -3
  234. package/dist/features/replay/engine/interactions.d.ts +1 -1
  235. package/dist/features/replay/engine/interactions.js +1 -1
  236. package/dist/features/replay/engine/mutations.d.ts +3 -3
  237. package/dist/features/replay/engine/mutations.js +2 -2
  238. package/dist/features/replay/engine/player.d.ts +2 -2
  239. package/dist/features/replay/engine/player.js +1 -1
  240. package/dist/features/replay/engine/rebuild.d.ts +1 -1
  241. package/dist/features/replay/engine/replayWorker.js +16 -16
  242. package/dist/features/replay/engine/resources.d.ts +1 -1
  243. package/dist/features/replay/engine/resources.js +1 -1
  244. package/dist/features/replay/engine/snapshot.d.ts +2 -2
  245. package/dist/features/replay/engine/snapshot.js +1 -1
  246. package/dist/features/replay/engine/traverse.d.ts +1 -1
  247. package/dist/features/replay/lifecycle/recorder.d.ts +1 -1
  248. package/dist/features/replay/lifecycle/recorder.js +20 -20
  249. package/dist/features/replay/lifecycle/sampling.js +1 -1
  250. package/dist/features/replay/lifecycle/viewContext.js +1 -1
  251. package/dist/features/scroll/index.js +1 -1
  252. package/dist/features/session/sessionManager.d.ts +1 -1
  253. package/dist/features/session/sessionManager.js +2 -2
  254. package/dist/features/session/sessionStore.js +1 -1
  255. package/dist/features/watchdog/WatchdogFeature.d.ts +1 -1
  256. package/dist/features/watchdog/WatchdogFeature.js +1 -1
  257. package/dist/features/watchdog/collectors.d.ts +1 -1
  258. package/dist/features/watchdog/collectors.js +1 -1
  259. package/dist/features/watchdog/engine.js +8 -8
  260. package/dist/features/watchdog/incidents.d.ts +1 -1
  261. package/dist/features/watchdog/incidents.js +1 -1
  262. package/dist/features/watchdog/rollup.d.ts +1 -1
  263. package/dist/features/watchdog/rollup.js +1 -1
  264. package/dist/features/webVitals/WebVitalsFeature.js +4 -4
  265. package/dist/features/webVitals/observe.d.ts +1 -1
  266. package/dist/features/webVitals/observe.js +1 -1
  267. package/dist/features/webperf/WebPerfFeature.d.ts +1 -1
  268. package/dist/features/webperf/WebPerfFeature.js +3 -3
  269. package/dist/features/webperf/collectors.js +1 -1
  270. package/dist/inapp.d.ts +1 -1
  271. package/dist/inapp.js +1 -1
  272. package/dist/index.d.ts +3 -3
  273. package/dist/index.js +1 -1
  274. package/dist/pipeline/index.d.ts +1 -1
  275. package/dist/pipeline/index.js +1 -1
  276. package/dist/pipeline/pipeline.d.ts +3 -3
  277. package/dist/pipeline/pipeline.js +4 -4
  278. package/dist/public/ScaleBunFacade.d.ts +18 -18
  279. package/dist/public/ScaleBunFacade.js +11 -11
  280. package/dist/public/index.d.ts +4 -4
  281. package/dist/public/index.js +2 -2
  282. package/dist/scalebun-push-sw.js +236 -236
  283. package/dist/scalebun.min.js +17 -17
  284. package/dist/scalebun.min.js.map +4 -4
  285. package/dist/storage/index.d.ts +1 -1
  286. package/dist/storage/index.js +1 -1
  287. package/dist/transport/httpClient.d.ts +1 -1
  288. package/dist/transport/httpClient.js +3 -3
  289. package/dist/transport/index.d.ts +1 -1
  290. package/dist/transport/index.js +1 -1
  291. package/package.json +7 -7
@@ -3,196 +3,196 @@
3
3
  * host (via `ShadowHost.addStyles`) — classes, not inline style attrs, so a strict CSP passes.
4
4
  * All colors reference the theme CSS vars set on `:host` (§P0.2), so light/dark just works.
5
5
  */
6
- export const BLOCKS_CSS = `
7
- .scalebun-h{ font-size:17px; font-weight:700; margin:0 0 6px; color:var(--scalebun-fg); }
8
- .scalebun-text{ font-size:14px; line-height:1.5; margin:0 0 6px; color:var(--scalebun-fg); }
9
- .scalebun-rich{ font-size:14px; line-height:1.5; color:var(--scalebun-fg); }
10
- .scalebun-img{ display:block; max-width:100%; height:auto; border-radius:8px; margin:0 0 10px; }
11
- .scalebun-list{ margin:0 0 8px; padding-left:18px; color:var(--scalebun-fg); font-size:14px; }
12
- .scalebun-list li{ margin:2px 0; }
13
- .scalebun-callout{ display:flex; gap:8px; align-items:flex-start; background:color-mix(in srgb, var(--scalebun-accent) 10%, transparent);
14
- border:1px solid var(--scalebun-border); border-radius:8px; padding:8px 10px; font-size:13.5px; color:var(--scalebun-fg); margin:0 0 8px; }
15
- .scalebun-badge{ display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px;
16
- background:var(--scalebun-accent); color:var(--scalebun-accent-fg); border-radius:999px; padding:2px 8px; }
17
- .scalebun-divider{ border:0; border-top:1px solid var(--scalebun-border); margin:10px 0; }
18
- .scalebun-progress{ height:8px; border-radius:4px; background:color-mix(in srgb, var(--scalebun-fg) 10%, transparent); overflow:hidden; margin:8px 0; }
19
- .scalebun-progress-fill{ height:100%; background:var(--scalebun-accent); border-radius:4px; transition:width .3s ease; }
20
- .scalebun-spacer{ height:8px; }
21
- .scalebun-cta-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
22
- .scalebun-btn{ font:inherit; font-size:13.5px; font-weight:600; border-radius:8px; padding:8px 14px; cursor:pointer;
23
- border:1px solid transparent; transition:filter .12s ease; }
24
- .scalebun-btn:hover{ filter:brightness(1.06); }
25
- .scalebun-btn:focus-visible{ outline:2px solid var(--scalebun-accent); outline-offset:2px; }
26
- .scalebun-btn-primary{ background:var(--scalebun-accent); color:var(--scalebun-accent-fg); }
27
- .scalebun-btn-secondary{ background:transparent; color:var(--scalebun-fg); border-color:var(--scalebun-border); }
28
- .scalebun-btn-ghost{ background:transparent; color:var(--scalebun-fg); }
29
- .scalebun-btn-link{ background:transparent; color:var(--scalebun-accent); border:0; padding:8px 4px; text-decoration:underline; }
30
- .scalebun-btn-dismiss{ background:transparent; color:var(--scalebun-muted); border:0; }
31
-
32
- /* Checklist — state-reflecting, never state-granting (the mark comes from the server). */
33
- .scalebun-checklist{ list-style:none; margin:8px 0; padding:0; display:flex; flex-direction:column; gap:7px; }
34
- .scalebun-checklist-item{ display:flex; align-items:flex-start; gap:9px; font-size:14px; line-height:1.45; }
35
- .scalebun-checklist-mark{ flex-shrink:0; width:18px; height:18px; border-radius:50%; margin-top:1px;
36
- border:1.5px solid var(--scalebun-border); display:grid; place-items:center;
37
- font-size:11px; font-weight:700; line-height:1; }
38
- .scalebun-checklist-item[data-done="true"] .scalebun-checklist-mark{
39
- background:var(--scalebun-accent); border-color:var(--scalebun-accent); color:var(--scalebun-accent-fg); }
40
- /* Done items recede but stay readable — struck-through text fails contrast for many readers. */
41
- .scalebun-checklist-item[data-done="true"] .scalebun-checklist-label{ color:var(--scalebun-muted); }
42
-
43
- /* The engage theme contract names titleColor and bodyColor separately while IAM carries one
44
- foreground. Headings read their own var, which FALLS BACK to --scalebun-fg — so nothing changes
45
- unless a campaign actually set a distinct title colour. */
46
- .scalebun-h{ color:var(--scalebun-title, var(--scalebun-fg)); }
47
-
48
- /* multiStepSheet wizard paging. Buttons reuse .scalebun-btn-* above rather than restyling. */
49
- .scalebun-steps{ display:flex; flex-direction:column; gap:12px; }
50
- .scalebun-steps-rail{ display:flex; gap:6px; align-items:center; }
51
- .scalebun-steps-dot{ height:4px; flex:1; border-radius:99px; background:var(--scalebun-border);
52
- transition:background .18s ease; }
53
- .scalebun-steps-dot[data-state="current"], .scalebun-steps-dot[data-state="done"]{ background:var(--scalebun-accent); }
54
- .scalebun-steps-dot[data-state="todo"]{ opacity:.55; }
55
- .scalebun-steps-title{ font-size:16px; font-weight:700; }
56
- .scalebun-steps-body{ font-size:14px; line-height:1.5; color:var(--scalebun-muted); }
57
- /* Back sits left, the primary action right; margin-left:auto on the forward button keeps that
58
- split stable when Back/Skip are hidden on the first and last steps. */
59
- .scalebun-steps-nav{ display:flex; gap:8px; align-items:center; margin-top:2px; }
60
- .scalebun-steps-nav .scalebun-btn-primary{ margin-left:auto; }
61
- @media (prefers-reduced-motion: reduce){ .scalebun-steps-dot{ transition:none; } }
62
-
63
- /* heavy blocks (P3.6) — styles live with the light sheet (adopted once); the renderers are lazy */
64
- .scalebun-md-h{ font-weight:700; margin:8px 0 6px; }
65
- .scalebun-md-p{ font-size:14px; line-height:1.5; margin:0 0 8px; }
66
- .scalebun-md-ul{ margin:0 0 8px; padding-left:18px; font-size:14px; }
67
- .scalebun-md code, .scalebun-code code{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
68
- .scalebun-md code{ background:color-mix(in srgb, var(--scalebun-fg) 8%, transparent); padding:1px 5px; border-radius:5px; font-size:12.5px; }
69
- .scalebun-code{ border:1px solid var(--scalebun-border); border-radius:10px; overflow:hidden; margin:0 0 8px; }
70
- .scalebun-code-bar{ display:flex; align-items:center; justify-content:space-between; padding:6px 10px;
71
- background:color-mix(in srgb, var(--scalebun-fg) 6%, transparent); border-bottom:1px solid var(--scalebun-border); }
72
- .scalebun-code-lang{ font-size:11px; color:var(--scalebun-muted); text-transform:uppercase; letter-spacing:.04em; }
73
- .scalebun-code-copy{ background:none; border:0; color:var(--scalebun-accent); cursor:pointer; font:inherit; font-size:11.5px; }
74
- .scalebun-code-pre{ margin:0; padding:12px; overflow-x:auto; font-size:12.5px; line-height:1.5; }
75
- .scalebun-stat{ display:inline-flex; flex-direction:column; }
76
- .scalebun-stat-value{ font-size:26px; font-weight:800; line-height:1; }
77
- .scalebun-stat-label{ font-size:12px; color:var(--scalebun-muted); margin-top:3px; }
78
- .scalebun-stat-delta{ font-size:12px; font-weight:700; margin-top:2px; }
79
- .scalebun-stat-delta.up{ color:#2fa96b; } .scalebun-stat-delta.down{ color:#e0483d; }
80
- .scalebun-table{ width:100%; border-collapse:collapse; font-size:13px; margin:0 0 8px; }
81
- .scalebun-table th, .scalebun-table td{ text-align:left; padding:7px 10px; border-bottom:1px solid var(--scalebun-border); }
82
- .scalebun-table th{ color:var(--scalebun-muted); font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.03em; }
83
- .scalebun-video{ position:relative; border-radius:10px; overflow:hidden; }
84
- .scalebun-video-poster{ display:block; position:relative; width:100%; padding:0; border:0; cursor:pointer; background:#000; }
85
- .scalebun-video-poster img{ display:block; width:100%; height:auto; opacity:.85; }
86
- .scalebun-video-play{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:34px; }
87
- .scalebun-video-el{ display:block; width:100%; height:auto; }
88
-
89
- /* mechanic blocks — countdown */
90
- .scalebun-countdown{ display:flex; gap:8px; justify-content:center; margin:10px 0; }
91
- .scalebun-cd-cell{ min-width:52px; text-align:center; background:color-mix(in srgb, var(--scalebun-fg) 8%, transparent);
92
- border:1px solid var(--scalebun-border); border-radius:10px; padding:8px 6px; }
93
- .scalebun-cd-num{ font-size:22px; font-weight:800; font-variant-numeric:tabular-nums; line-height:1; }
94
- .scalebun-cd-lab{ font-size:10px; color:var(--scalebun-muted); text-transform:uppercase; letter-spacing:.05em; margin-top:4px; }
95
- /* carousel */
96
- .scalebun-carousel{ margin:0 0 8px; }
97
- .scalebun-car-track{ display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding-bottom:4px; }
98
- .scalebun-car-track::-webkit-scrollbar{ display:none; }
99
- .scalebun-car-slide{ flex:0 0 100%; scroll-snap-align:center; }
100
- .scalebun-car-img{ width:100%; height:auto; border-radius:10px; display:block; margin-bottom:8px; }
101
- .scalebun-car-title{ font-weight:700; font-size:14px; margin-bottom:4px; }
102
- .scalebun-car-text{ font-size:13px; color:var(--scalebun-muted); }
103
- .scalebun-car-dots{ display:flex; gap:6px; justify-content:center; margin-top:8px; }
104
- .scalebun-car-dot{ width:7px; height:7px; padding:0; border:0; border-radius:50%; cursor:pointer;
105
- background:color-mix(in srgb, var(--scalebun-fg) 25%, transparent); }
106
- .scalebun-car-dot.on{ background:var(--scalebun-accent); }
107
- /* product grid */
108
- .scalebun-pgrid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:10px; margin:0 0 8px; }
109
- .scalebun-pcard{ position:relative; text-align:left; background:var(--scalebun-bg); border:1px solid var(--scalebun-border);
110
- border-radius:10px; padding:8px; cursor:pointer; font:inherit; color:var(--scalebun-fg); }
111
- .scalebun-pcard:hover{ border-color:var(--scalebun-accent); }
112
- .scalebun-pcard-img{ width:100%; height:auto; border-radius:6px; display:block; margin-bottom:6px; }
113
- .scalebun-pcard-badge{ position:absolute; top:6px; left:6px; font-size:10px; font-weight:700; background:var(--scalebun-accent);
114
- color:var(--scalebun-accent-fg); border-radius:6px; padding:1px 6px; }
115
- .scalebun-pcard-title{ font-size:12.5px; font-weight:600; }
116
- .scalebun-pcard-price{ font-size:13px; font-weight:800; color:var(--scalebun-accent); margin-top:2px; }
117
- /* confetti */
118
- .scalebun-confetti{ position:absolute; inset:0; pointer-events:none; overflow:hidden; }
119
- .scalebun-confetti-canvas{ position:absolute; inset:0; width:100%; height:100%; }
120
- .scalebun-confetti-static{ position:static; display:flex; align-items:center; justify-content:center; font-size:40px; }
121
- /* spin wheel */
122
- .scalebun-wheel{ position:relative; display:flex; flex-direction:column; align-items:center; gap:12px; margin:8px 0; }
123
- .scalebun-wheel-svg{ display:block; transform-origin:50% 50%; }
124
- .scalebun-wheel-pointer{ position:absolute; top:-2px; left:50%; transform:translateX(-50%); width:0; height:0;
125
- border-left:9px solid transparent; border-right:9px solid transparent; border-top:14px solid var(--scalebun-fg); z-index:2; }
126
- .scalebun-wheel-spin{ font:inherit; font-weight:800; font-size:13px; letter-spacing:.04em; padding:9px 20px; border-radius:999px;
127
- border:0; background:var(--scalebun-accent); color:var(--scalebun-accent-fg); cursor:pointer; }
128
- /* scratch card */
129
- .scalebun-scratch{ position:relative; width:300px; max-width:100%; height:90px; margin:8px auto; border-radius:10px; overflow:hidden;
130
- border:1px dashed var(--scalebun-border); }
131
- .scalebun-scratch-prize{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-weight:800;
132
- font-size:18px; color:var(--scalebun-accent); }
133
- .scalebun-scratch-cover{ position:absolute; inset:0; width:100%; height:100%; cursor:crosshair; touch-action:none; }
134
- /* Mystery box: a lid you TAP, not a surface you drag. Same block, same server-decided prize. */
135
- .scalebun-scratch-box{ height:120px; }
136
- .scalebun-scratch-lid{ position:absolute; inset:0; width:100%; height:100%; border:0; cursor:pointer;
137
- display:grid; place-items:center; font-size:40px; line-height:1;
138
- background:linear-gradient(160deg, var(--scalebun-accent), color-mix(in srgb, var(--scalebun-accent) 60%, #000));
139
- transition:transform .3s ease, opacity .3s ease; }
140
- .scalebun-scratch-lid:focus-visible{ outline:2px solid var(--scalebun-accent); outline-offset:2px; }
141
- .scalebun-scratch-lid[data-open="true"]{ transform:translateY(-100%) rotate(-6deg); opacity:0; pointer-events:none; }
142
- @media (prefers-reduced-motion: reduce){ .scalebun-scratch-lid{ transition:none; } }
143
- /* Gamified failure state — one presentation across every mechanic. */
144
- .scalebun-game-note{ display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap;
145
- margin:10px 0 0; padding:9px 12px; border-radius:10px; font-size:13px; line-height:1.4; text-align:center;
146
- background:color-mix(in srgb, var(--scalebun-fg) 6%, transparent); color:var(--scalebun-muted); }
147
- .scalebun-game-retry{ border:0; cursor:pointer; font:inherit; font-weight:600; padding:5px 12px; border-radius:8px;
148
- background:var(--scalebun-accent); color:var(--scalebun-accent-fg, #fff); }
149
- .scalebun-game-retry:focus-visible{ outline:2px solid var(--scalebun-accent); outline-offset:2px; }
150
- /* streak / daily check-in: a run of day cells. Wraps, so a 31-day month does not overflow. */
151
- .scalebun-streak{ display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; }
152
- .scalebun-streak-day{ flex:0 0 auto; min-width:38px; padding:7px 4px; border-radius:9px; border:0;
153
- display:flex; flex-direction:column; align-items:center; gap:3px; font:inherit;
154
- background:color-mix(in srgb, var(--scalebun-fg) 7%, transparent); color:var(--scalebun-muted); }
155
- .scalebun-streak-mark{ font-size:16px; line-height:1.1; min-height:18px; }
156
- .scalebun-streak-label{ font-size:10px; letter-spacing:.02em; text-transform:uppercase; }
157
- .scalebun-streak-day[data-done="true"]{ background:color-mix(in srgb, var(--scalebun-accent) 18%, transparent);
158
- color:var(--scalebun-accent); }
159
- /* Today is the only actionable cell, so it is the only one that looks pressable. */
160
- .scalebun-streak-day[data-today="true"]{ cursor:pointer; color:var(--scalebun-fg);
161
- box-shadow:inset 0 0 0 2px var(--scalebun-accent); }
162
- .scalebun-streak-day[data-today="true"]:focus-visible{ outline:2px solid var(--scalebun-accent); outline-offset:2px; }
163
- /* slot machine */
164
- .scalebun-slot{ display:flex; flex-direction:column; align-items:center; gap:12px; margin:8px 0; }
165
- .scalebun-slot-reels{ display:flex; gap:8px; }
166
- .scalebun-slot-reel{ width:48px; height:44px; overflow:hidden; border:1px solid var(--scalebun-border); border-radius:8px;
167
- background:color-mix(in srgb, var(--scalebun-fg) 6%, transparent); }
168
- .scalebun-slot-strip{ display:flex; flex-direction:column; transform:translateY(0); }
169
- .scalebun-slot-cell{ height:44px; display:flex; align-items:center; justify-content:center; font-size:24px; }
170
- .scalebun-slot-spin{ padding:8px 18px; }
171
- /* qr */
172
- .scalebun-qr{ display:flex; flex-direction:column; align-items:center; gap:8px; margin:8px 0; }
173
- .scalebun-qr-svg{ border-radius:8px; }
174
- .scalebun-qr-cap{ font-size:11.5px; color:var(--scalebun-muted); word-break:break-all; text-align:center; max-width:220px; }
175
-
176
- /* feedback / mechanic blocks (P4.2) */
177
- .scalebun-nps{ display:flex; gap:4px; flex-wrap:wrap; margin:6px 0; }
178
- .scalebun-nps-btn{ width:30px; height:30px; border:1px solid var(--scalebun-border); border-radius:7px; background:transparent;
179
- color:var(--scalebun-fg); cursor:pointer; font:inherit; font-size:12.5px; }
180
- .scalebun-nps-btn:hover{ background:var(--scalebun-accent); color:var(--scalebun-accent-fg); border-color:transparent; }
181
- .scalebun-rating{ display:flex; gap:2px; }
182
- .scalebun-star{ background:none; border:0; cursor:pointer; font-size:22px; color:var(--scalebun-border); padding:0 2px; }
183
- .scalebun-star.on{ color:#f5b301; }
184
- .scalebun-emoji{ display:flex; gap:8px; }
185
- .scalebun-emoji-btn{ background:none; border:0; cursor:pointer; font-size:24px; padding:2px; border-radius:8px; }
186
- .scalebun-emoji-btn:hover{ background:color-mix(in srgb, var(--scalebun-fg) 8%, transparent); }
187
- .scalebun-poll-q, .scalebun-quiz .scalebun-poll-q{ font-weight:600; font-size:13.5px; margin:0 0 8px; }
188
- .scalebun-poll-opt, .scalebun-quiz-opt{ position:relative; display:flex; align-items:center; width:100%; text-align:left;
189
- border:1px solid var(--scalebun-border); border-radius:8px; background:transparent; color:var(--scalebun-fg);
190
- padding:9px 12px; margin:0 0 6px; cursor:pointer; font:inherit; font-size:13.5px; overflow:hidden; }
191
- .scalebun-poll-opt:hover, .scalebun-quiz-opt:hover{ border-color:var(--scalebun-accent); }
192
- .scalebun-poll-label{ position:relative; z-index:1; flex:1; }
193
- .scalebun-poll-bar{ position:absolute; left:0; top:0; bottom:0; background:color-mix(in srgb, var(--scalebun-accent) 22%, transparent); }
194
- .scalebun-poll-pct{ position:relative; z-index:1; font-size:12px; color:var(--scalebun-muted); }
195
- .scalebun-quiz-opt.correct{ border-color:#2fa96b; background:color-mix(in srgb, #2fa96b 14%, transparent); }
196
- .scalebun-quiz-opt.incorrect{ border-color:#e0483d; background:color-mix(in srgb, #e0483d 14%, transparent); }
6
+ export const BLOCKS_CSS = `
7
+ .scalebun-h{ font-size:17px; font-weight:700; margin:0 0 6px; color:var(--scalebun-fg); }
8
+ .scalebun-text{ font-size:14px; line-height:1.5; margin:0 0 6px; color:var(--scalebun-fg); }
9
+ .scalebun-rich{ font-size:14px; line-height:1.5; color:var(--scalebun-fg); }
10
+ .scalebun-img{ display:block; max-width:100%; height:auto; border-radius:8px; margin:0 0 10px; }
11
+ .scalebun-list{ margin:0 0 8px; padding-left:18px; color:var(--scalebun-fg); font-size:14px; }
12
+ .scalebun-list li{ margin:2px 0; }
13
+ .scalebun-callout{ display:flex; gap:8px; align-items:flex-start; background:color-mix(in srgb, var(--scalebun-accent) 10%, transparent);
14
+ border:1px solid var(--scalebun-border); border-radius:8px; padding:8px 10px; font-size:13.5px; color:var(--scalebun-fg); margin:0 0 8px; }
15
+ .scalebun-badge{ display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px;
16
+ background:var(--scalebun-accent); color:var(--scalebun-accent-fg); border-radius:999px; padding:2px 8px; }
17
+ .scalebun-divider{ border:0; border-top:1px solid var(--scalebun-border); margin:10px 0; }
18
+ .scalebun-progress{ height:8px; border-radius:4px; background:color-mix(in srgb, var(--scalebun-fg) 10%, transparent); overflow:hidden; margin:8px 0; }
19
+ .scalebun-progress-fill{ height:100%; background:var(--scalebun-accent); border-radius:4px; transition:width .3s ease; }
20
+ .scalebun-spacer{ height:8px; }
21
+ .scalebun-cta-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
22
+ .scalebun-btn{ font:inherit; font-size:13.5px; font-weight:600; border-radius:8px; padding:8px 14px; cursor:pointer;
23
+ border:1px solid transparent; transition:filter .12s ease; }
24
+ .scalebun-btn:hover{ filter:brightness(1.06); }
25
+ .scalebun-btn:focus-visible{ outline:2px solid var(--scalebun-accent); outline-offset:2px; }
26
+ .scalebun-btn-primary{ background:var(--scalebun-accent); color:var(--scalebun-accent-fg); }
27
+ .scalebun-btn-secondary{ background:transparent; color:var(--scalebun-fg); border-color:var(--scalebun-border); }
28
+ .scalebun-btn-ghost{ background:transparent; color:var(--scalebun-fg); }
29
+ .scalebun-btn-link{ background:transparent; color:var(--scalebun-accent); border:0; padding:8px 4px; text-decoration:underline; }
30
+ .scalebun-btn-dismiss{ background:transparent; color:var(--scalebun-muted); border:0; }
31
+
32
+ /* Checklist — state-reflecting, never state-granting (the mark comes from the server). */
33
+ .scalebun-checklist{ list-style:none; margin:8px 0; padding:0; display:flex; flex-direction:column; gap:7px; }
34
+ .scalebun-checklist-item{ display:flex; align-items:flex-start; gap:9px; font-size:14px; line-height:1.45; }
35
+ .scalebun-checklist-mark{ flex-shrink:0; width:18px; height:18px; border-radius:50%; margin-top:1px;
36
+ border:1.5px solid var(--scalebun-border); display:grid; place-items:center;
37
+ font-size:11px; font-weight:700; line-height:1; }
38
+ .scalebun-checklist-item[data-done="true"] .scalebun-checklist-mark{
39
+ background:var(--scalebun-accent); border-color:var(--scalebun-accent); color:var(--scalebun-accent-fg); }
40
+ /* Done items recede but stay readable — struck-through text fails contrast for many readers. */
41
+ .scalebun-checklist-item[data-done="true"] .scalebun-checklist-label{ color:var(--scalebun-muted); }
42
+
43
+ /* The engage theme contract names titleColor and bodyColor separately while IAM carries one
44
+ foreground. Headings read their own var, which FALLS BACK to --scalebun-fg — so nothing changes
45
+ unless a campaign actually set a distinct title colour. */
46
+ .scalebun-h{ color:var(--scalebun-title, var(--scalebun-fg)); }
47
+
48
+ /* multiStepSheet wizard paging. Buttons reuse .scalebun-btn-* above rather than restyling. */
49
+ .scalebun-steps{ display:flex; flex-direction:column; gap:12px; }
50
+ .scalebun-steps-rail{ display:flex; gap:6px; align-items:center; }
51
+ .scalebun-steps-dot{ height:4px; flex:1; border-radius:99px; background:var(--scalebun-border);
52
+ transition:background .18s ease; }
53
+ .scalebun-steps-dot[data-state="current"], .scalebun-steps-dot[data-state="done"]{ background:var(--scalebun-accent); }
54
+ .scalebun-steps-dot[data-state="todo"]{ opacity:.55; }
55
+ .scalebun-steps-title{ font-size:16px; font-weight:700; }
56
+ .scalebun-steps-body{ font-size:14px; line-height:1.5; color:var(--scalebun-muted); }
57
+ /* Back sits left, the primary action right; margin-left:auto on the forward button keeps that
58
+ split stable when Back/Skip are hidden on the first and last steps. */
59
+ .scalebun-steps-nav{ display:flex; gap:8px; align-items:center; margin-top:2px; }
60
+ .scalebun-steps-nav .scalebun-btn-primary{ margin-left:auto; }
61
+ @media (prefers-reduced-motion: reduce){ .scalebun-steps-dot{ transition:none; } }
62
+
63
+ /* heavy blocks (P3.6) — styles live with the light sheet (adopted once); the renderers are lazy */
64
+ .scalebun-md-h{ font-weight:700; margin:8px 0 6px; }
65
+ .scalebun-md-p{ font-size:14px; line-height:1.5; margin:0 0 8px; }
66
+ .scalebun-md-ul{ margin:0 0 8px; padding-left:18px; font-size:14px; }
67
+ .scalebun-md code, .scalebun-code code{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
68
+ .scalebun-md code{ background:color-mix(in srgb, var(--scalebun-fg) 8%, transparent); padding:1px 5px; border-radius:5px; font-size:12.5px; }
69
+ .scalebun-code{ border:1px solid var(--scalebun-border); border-radius:10px; overflow:hidden; margin:0 0 8px; }
70
+ .scalebun-code-bar{ display:flex; align-items:center; justify-content:space-between; padding:6px 10px;
71
+ background:color-mix(in srgb, var(--scalebun-fg) 6%, transparent); border-bottom:1px solid var(--scalebun-border); }
72
+ .scalebun-code-lang{ font-size:11px; color:var(--scalebun-muted); text-transform:uppercase; letter-spacing:.04em; }
73
+ .scalebun-code-copy{ background:none; border:0; color:var(--scalebun-accent); cursor:pointer; font:inherit; font-size:11.5px; }
74
+ .scalebun-code-pre{ margin:0; padding:12px; overflow-x:auto; font-size:12.5px; line-height:1.5; }
75
+ .scalebun-stat{ display:inline-flex; flex-direction:column; }
76
+ .scalebun-stat-value{ font-size:26px; font-weight:800; line-height:1; }
77
+ .scalebun-stat-label{ font-size:12px; color:var(--scalebun-muted); margin-top:3px; }
78
+ .scalebun-stat-delta{ font-size:12px; font-weight:700; margin-top:2px; }
79
+ .scalebun-stat-delta.up{ color:#2fa96b; } .scalebun-stat-delta.down{ color:#e0483d; }
80
+ .scalebun-table{ width:100%; border-collapse:collapse; font-size:13px; margin:0 0 8px; }
81
+ .scalebun-table th, .scalebun-table td{ text-align:left; padding:7px 10px; border-bottom:1px solid var(--scalebun-border); }
82
+ .scalebun-table th{ color:var(--scalebun-muted); font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.03em; }
83
+ .scalebun-video{ position:relative; border-radius:10px; overflow:hidden; }
84
+ .scalebun-video-poster{ display:block; position:relative; width:100%; padding:0; border:0; cursor:pointer; background:#000; }
85
+ .scalebun-video-poster img{ display:block; width:100%; height:auto; opacity:.85; }
86
+ .scalebun-video-play{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:34px; }
87
+ .scalebun-video-el{ display:block; width:100%; height:auto; }
88
+
89
+ /* mechanic blocks — countdown */
90
+ .scalebun-countdown{ display:flex; gap:8px; justify-content:center; margin:10px 0; }
91
+ .scalebun-cd-cell{ min-width:52px; text-align:center; background:color-mix(in srgb, var(--scalebun-fg) 8%, transparent);
92
+ border:1px solid var(--scalebun-border); border-radius:10px; padding:8px 6px; }
93
+ .scalebun-cd-num{ font-size:22px; font-weight:800; font-variant-numeric:tabular-nums; line-height:1; }
94
+ .scalebun-cd-lab{ font-size:10px; color:var(--scalebun-muted); text-transform:uppercase; letter-spacing:.05em; margin-top:4px; }
95
+ /* carousel */
96
+ .scalebun-carousel{ margin:0 0 8px; }
97
+ .scalebun-car-track{ display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding-bottom:4px; }
98
+ .scalebun-car-track::-webkit-scrollbar{ display:none; }
99
+ .scalebun-car-slide{ flex:0 0 100%; scroll-snap-align:center; }
100
+ .scalebun-car-img{ width:100%; height:auto; border-radius:10px; display:block; margin-bottom:8px; }
101
+ .scalebun-car-title{ font-weight:700; font-size:14px; margin-bottom:4px; }
102
+ .scalebun-car-text{ font-size:13px; color:var(--scalebun-muted); }
103
+ .scalebun-car-dots{ display:flex; gap:6px; justify-content:center; margin-top:8px; }
104
+ .scalebun-car-dot{ width:7px; height:7px; padding:0; border:0; border-radius:50%; cursor:pointer;
105
+ background:color-mix(in srgb, var(--scalebun-fg) 25%, transparent); }
106
+ .scalebun-car-dot.on{ background:var(--scalebun-accent); }
107
+ /* product grid */
108
+ .scalebun-pgrid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:10px; margin:0 0 8px; }
109
+ .scalebun-pcard{ position:relative; text-align:left; background:var(--scalebun-bg); border:1px solid var(--scalebun-border);
110
+ border-radius:10px; padding:8px; cursor:pointer; font:inherit; color:var(--scalebun-fg); }
111
+ .scalebun-pcard:hover{ border-color:var(--scalebun-accent); }
112
+ .scalebun-pcard-img{ width:100%; height:auto; border-radius:6px; display:block; margin-bottom:6px; }
113
+ .scalebun-pcard-badge{ position:absolute; top:6px; left:6px; font-size:10px; font-weight:700; background:var(--scalebun-accent);
114
+ color:var(--scalebun-accent-fg); border-radius:6px; padding:1px 6px; }
115
+ .scalebun-pcard-title{ font-size:12.5px; font-weight:600; }
116
+ .scalebun-pcard-price{ font-size:13px; font-weight:800; color:var(--scalebun-accent); margin-top:2px; }
117
+ /* confetti */
118
+ .scalebun-confetti{ position:absolute; inset:0; pointer-events:none; overflow:hidden; }
119
+ .scalebun-confetti-canvas{ position:absolute; inset:0; width:100%; height:100%; }
120
+ .scalebun-confetti-static{ position:static; display:flex; align-items:center; justify-content:center; font-size:40px; }
121
+ /* spin wheel */
122
+ .scalebun-wheel{ position:relative; display:flex; flex-direction:column; align-items:center; gap:12px; margin:8px 0; }
123
+ .scalebun-wheel-svg{ display:block; transform-origin:50% 50%; }
124
+ .scalebun-wheel-pointer{ position:absolute; top:-2px; left:50%; transform:translateX(-50%); width:0; height:0;
125
+ border-left:9px solid transparent; border-right:9px solid transparent; border-top:14px solid var(--scalebun-fg); z-index:2; }
126
+ .scalebun-wheel-spin{ font:inherit; font-weight:800; font-size:13px; letter-spacing:.04em; padding:9px 20px; border-radius:999px;
127
+ border:0; background:var(--scalebun-accent); color:var(--scalebun-accent-fg); cursor:pointer; }
128
+ /* scratch card */
129
+ .scalebun-scratch{ position:relative; width:300px; max-width:100%; height:90px; margin:8px auto; border-radius:10px; overflow:hidden;
130
+ border:1px dashed var(--scalebun-border); }
131
+ .scalebun-scratch-prize{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-weight:800;
132
+ font-size:18px; color:var(--scalebun-accent); }
133
+ .scalebun-scratch-cover{ position:absolute; inset:0; width:100%; height:100%; cursor:crosshair; touch-action:none; }
134
+ /* Mystery box: a lid you TAP, not a surface you drag. Same block, same server-decided prize. */
135
+ .scalebun-scratch-box{ height:120px; }
136
+ .scalebun-scratch-lid{ position:absolute; inset:0; width:100%; height:100%; border:0; cursor:pointer;
137
+ display:grid; place-items:center; font-size:40px; line-height:1;
138
+ background:linear-gradient(160deg, var(--scalebun-accent), color-mix(in srgb, var(--scalebun-accent) 60%, #000));
139
+ transition:transform .3s ease, opacity .3s ease; }
140
+ .scalebun-scratch-lid:focus-visible{ outline:2px solid var(--scalebun-accent); outline-offset:2px; }
141
+ .scalebun-scratch-lid[data-open="true"]{ transform:translateY(-100%) rotate(-6deg); opacity:0; pointer-events:none; }
142
+ @media (prefers-reduced-motion: reduce){ .scalebun-scratch-lid{ transition:none; } }
143
+ /* Gamified failure state — one presentation across every mechanic. */
144
+ .scalebun-game-note{ display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap;
145
+ margin:10px 0 0; padding:9px 12px; border-radius:10px; font-size:13px; line-height:1.4; text-align:center;
146
+ background:color-mix(in srgb, var(--scalebun-fg) 6%, transparent); color:var(--scalebun-muted); }
147
+ .scalebun-game-retry{ border:0; cursor:pointer; font:inherit; font-weight:600; padding:5px 12px; border-radius:8px;
148
+ background:var(--scalebun-accent); color:var(--scalebun-accent-fg, #fff); }
149
+ .scalebun-game-retry:focus-visible{ outline:2px solid var(--scalebun-accent); outline-offset:2px; }
150
+ /* streak / daily check-in: a run of day cells. Wraps, so a 31-day month does not overflow. */
151
+ .scalebun-streak{ display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; }
152
+ .scalebun-streak-day{ flex:0 0 auto; min-width:38px; padding:7px 4px; border-radius:9px; border:0;
153
+ display:flex; flex-direction:column; align-items:center; gap:3px; font:inherit;
154
+ background:color-mix(in srgb, var(--scalebun-fg) 7%, transparent); color:var(--scalebun-muted); }
155
+ .scalebun-streak-mark{ font-size:16px; line-height:1.1; min-height:18px; }
156
+ .scalebun-streak-label{ font-size:10px; letter-spacing:.02em; text-transform:uppercase; }
157
+ .scalebun-streak-day[data-done="true"]{ background:color-mix(in srgb, var(--scalebun-accent) 18%, transparent);
158
+ color:var(--scalebun-accent); }
159
+ /* Today is the only actionable cell, so it is the only one that looks pressable. */
160
+ .scalebun-streak-day[data-today="true"]{ cursor:pointer; color:var(--scalebun-fg);
161
+ box-shadow:inset 0 0 0 2px var(--scalebun-accent); }
162
+ .scalebun-streak-day[data-today="true"]:focus-visible{ outline:2px solid var(--scalebun-accent); outline-offset:2px; }
163
+ /* slot machine */
164
+ .scalebun-slot{ display:flex; flex-direction:column; align-items:center; gap:12px; margin:8px 0; }
165
+ .scalebun-slot-reels{ display:flex; gap:8px; }
166
+ .scalebun-slot-reel{ width:48px; height:44px; overflow:hidden; border:1px solid var(--scalebun-border); border-radius:8px;
167
+ background:color-mix(in srgb, var(--scalebun-fg) 6%, transparent); }
168
+ .scalebun-slot-strip{ display:flex; flex-direction:column; transform:translateY(0); }
169
+ .scalebun-slot-cell{ height:44px; display:flex; align-items:center; justify-content:center; font-size:24px; }
170
+ .scalebun-slot-spin{ padding:8px 18px; }
171
+ /* qr */
172
+ .scalebun-qr{ display:flex; flex-direction:column; align-items:center; gap:8px; margin:8px 0; }
173
+ .scalebun-qr-svg{ border-radius:8px; }
174
+ .scalebun-qr-cap{ font-size:11.5px; color:var(--scalebun-muted); word-break:break-all; text-align:center; max-width:220px; }
175
+
176
+ /* feedback / mechanic blocks (P4.2) */
177
+ .scalebun-nps{ display:flex; gap:4px; flex-wrap:wrap; margin:6px 0; }
178
+ .scalebun-nps-btn{ width:30px; height:30px; border:1px solid var(--scalebun-border); border-radius:7px; background:transparent;
179
+ color:var(--scalebun-fg); cursor:pointer; font:inherit; font-size:12.5px; }
180
+ .scalebun-nps-btn:hover{ background:var(--scalebun-accent); color:var(--scalebun-accent-fg); border-color:transparent; }
181
+ .scalebun-rating{ display:flex; gap:2px; }
182
+ .scalebun-star{ background:none; border:0; cursor:pointer; font-size:22px; color:var(--scalebun-border); padding:0 2px; }
183
+ .scalebun-star.on{ color:#f5b301; }
184
+ .scalebun-emoji{ display:flex; gap:8px; }
185
+ .scalebun-emoji-btn{ background:none; border:0; cursor:pointer; font-size:24px; padding:2px; border-radius:8px; }
186
+ .scalebun-emoji-btn:hover{ background:color-mix(in srgb, var(--scalebun-fg) 8%, transparent); }
187
+ .scalebun-poll-q, .scalebun-quiz .scalebun-poll-q{ font-weight:600; font-size:13.5px; margin:0 0 8px; }
188
+ .scalebun-poll-opt, .scalebun-quiz-opt{ position:relative; display:flex; align-items:center; width:100%; text-align:left;
189
+ border:1px solid var(--scalebun-border); border-radius:8px; background:transparent; color:var(--scalebun-fg);
190
+ padding:9px 12px; margin:0 0 6px; cursor:pointer; font:inherit; font-size:13.5px; overflow:hidden; }
191
+ .scalebun-poll-opt:hover, .scalebun-quiz-opt:hover{ border-color:var(--scalebun-accent); }
192
+ .scalebun-poll-label{ position:relative; z-index:1; flex:1; }
193
+ .scalebun-poll-bar{ position:absolute; left:0; top:0; bottom:0; background:color-mix(in srgb, var(--scalebun-accent) 22%, transparent); }
194
+ .scalebun-poll-pct{ position:relative; z-index:1; font-size:12px; color:var(--scalebun-muted); }
195
+ .scalebun-quiz-opt.correct{ border-color:#2fa96b; background:color-mix(in srgb, #2fa96b 14%, transparent); }
196
+ .scalebun-quiz-opt.incorrect{ border-color:#e0483d; background:color-mix(in srgb, #e0483d 14%, transparent); }
197
197
  `;
198
198
  //# sourceMappingURL=styles.js.map
@@ -1,6 +1,6 @@
1
- import type { Variant } from '../types';
2
- import type { CenterStore } from './store';
3
- import type { CenterChannel, CenterRecord, RecordState } from './types';
1
+ import type { Variant } from '../types.js';
2
+ import type { CenterStore } from './store.js';
3
+ import type { CenterChannel, CenterRecord, RecordState } from './types.js';
4
4
  export declare function channelForVariant(v: Variant): CenterChannel;
5
5
  /** Build a durable Center record from a variant. Idempotent id (`c_<variantId>`) so re-deposits merge. */
6
6
  export declare function variantToRecord(v: Variant, now: number, state?: RecordState): CenterRecord;
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * Zero new renderer: a record carries the variant's own blocks, rendered by the same block system.
8
8
  */
9
- import { getReplayCoord } from '../../../core';
9
+ import { getReplayCoord } from '../../../core/index.js';
10
10
  const CHANNEL_OF = {
11
11
  announcement: 'announcements',
12
12
  release_notes: 'release_notes',
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * Mounts into the host's `center` zone. Returns a controller so a launcher (S12) can toggle it.
8
8
  */
9
- import type { ShadowHost } from '../core/host';
10
- import type { CenterStore } from './store';
9
+ import type { ShadowHost } from '../core/host.js';
10
+ import type { CenterStore } from './store.js';
11
11
  export declare const CENTER_CSS = "\n.scalebun-bell{ position:relative; width:44px; height:44px; border-radius:50%; border:1px solid var(--scalebun-border);\n background:var(--scalebun-bg); color:var(--scalebun-fg); cursor:pointer; box-shadow:var(--scalebun-shadow); font-size:18px; }\n.scalebun-bell-badge{ position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px; border-radius:9px;\n background:#e0483d; color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; }\n.scalebun-bell-badge[hidden]{ display:none; }\n.scalebun-center{ position:absolute; top:56px; right:0; width:380px; max-height:70vh; display:flex; flex-direction:column;\n background:var(--scalebun-bg); color:var(--scalebun-fg); border:1px solid var(--scalebun-border); border-radius:14px;\n box-shadow:var(--scalebun-shadow); overflow:hidden; animation:scalebun-pop .14s ease; }\n.scalebun-center[hidden]{ display:none; }\n.scalebun-center-head{ display:flex; align-items:center; gap:8px; padding:12px 14px; border-bottom:1px solid var(--scalebun-border); }\n.scalebun-center-title{ font-weight:700; font-size:14px; flex:1; }\n.scalebun-center-search{ width:100%; box-sizing:border-box; margin:8px 14px 0; width:calc(100% - 28px); padding:7px 10px;\n border:1px solid var(--scalebun-border); border-radius:8px; background:transparent; color:var(--scalebun-fg); font:inherit; font-size:13px; }\n.scalebun-center-tabs{ display:flex; gap:4px; overflow-x:auto; padding:8px 14px; border-bottom:1px solid var(--scalebun-border); }\n.scalebun-tab{ flex:0 0 auto; padding:4px 10px; border-radius:999px; border:1px solid var(--scalebun-border); background:transparent;\n color:var(--scalebun-muted); cursor:pointer; font:inherit; font-size:12px; white-space:nowrap; }\n.scalebun-tab.on{ background:var(--scalebun-accent); color:var(--scalebun-accent-fg); border-color:transparent; }\n.scalebun-tab .c{ margin-left:5px; font-weight:700; }\n.scalebun-center-list{ overflow-y:auto; flex:1; }\n.scalebun-center-empty{ padding:28px 14px; text-align:center; color:var(--scalebun-muted); font-size:13px; }\n.scalebun-item{ display:block; padding:11px 14px; border-bottom:1px solid var(--scalebun-border); cursor:pointer; }\n.scalebun-item:hover{ background:color-mix(in srgb, var(--scalebun-fg) 5%, transparent); }\n.scalebun-item.unread{ background:color-mix(in srgb, var(--scalebun-accent) 7%, transparent); }\n.scalebun-item-top{ display:flex; align-items:center; gap:8px; }\n.scalebun-item-dot{ width:7px; height:7px; border-radius:50%; background:var(--scalebun-accent); flex:0 0 auto; }\n.scalebun-item-title{ font-weight:600; font-size:13px; flex:1; }\n.scalebun-item-ch{ font-size:10.5px; color:var(--scalebun-muted); text-transform:uppercase; letter-spacing:.04em; }\n.scalebun-item-prev{ font-size:12px; color:var(--scalebun-muted); margin-top:3px; }\n.scalebun-item-acts{ display:flex; gap:8px; margin-top:7px; }\n.scalebun-item-acts button{ background:none; border:0; color:var(--scalebun-muted); cursor:pointer; font:inherit; font-size:11.5px; padding:0; }\n.scalebun-item-acts button:hover{ color:var(--scalebun-fg); text-decoration:underline; }\n";
12
12
  export interface CenterController {
13
13
  toggle(): void;
@@ -1,41 +1,41 @@
1
- import { CENTER_CHANNELS } from './types';
1
+ import { CENTER_CHANNELS } from './types.js';
2
2
  const CHANNEL_LABEL = {
3
3
  announcements: 'Announcements', release_notes: 'Release notes', tasks: 'Tasks', messages: 'Messages',
4
4
  coachmarks: 'Coachmarks', feedback: 'Feedback', ai: 'AI', errors: 'Errors', billing: 'Billing',
5
5
  security: 'Security', system: 'System',
6
6
  };
7
- export const CENTER_CSS = `
8
- .scalebun-bell{ position:relative; width:44px; height:44px; border-radius:50%; border:1px solid var(--scalebun-border);
9
- background:var(--scalebun-bg); color:var(--scalebun-fg); cursor:pointer; box-shadow:var(--scalebun-shadow); font-size:18px; }
10
- .scalebun-bell-badge{ position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px; border-radius:9px;
11
- background:#e0483d; color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; }
12
- .scalebun-bell-badge[hidden]{ display:none; }
13
- .scalebun-center{ position:absolute; top:56px; right:0; width:380px; max-height:70vh; display:flex; flex-direction:column;
14
- background:var(--scalebun-bg); color:var(--scalebun-fg); border:1px solid var(--scalebun-border); border-radius:14px;
15
- box-shadow:var(--scalebun-shadow); overflow:hidden; animation:scalebun-pop .14s ease; }
16
- .scalebun-center[hidden]{ display:none; }
17
- .scalebun-center-head{ display:flex; align-items:center; gap:8px; padding:12px 14px; border-bottom:1px solid var(--scalebun-border); }
18
- .scalebun-center-title{ font-weight:700; font-size:14px; flex:1; }
19
- .scalebun-center-search{ width:100%; box-sizing:border-box; margin:8px 14px 0; width:calc(100% - 28px); padding:7px 10px;
20
- border:1px solid var(--scalebun-border); border-radius:8px; background:transparent; color:var(--scalebun-fg); font:inherit; font-size:13px; }
21
- .scalebun-center-tabs{ display:flex; gap:4px; overflow-x:auto; padding:8px 14px; border-bottom:1px solid var(--scalebun-border); }
22
- .scalebun-tab{ flex:0 0 auto; padding:4px 10px; border-radius:999px; border:1px solid var(--scalebun-border); background:transparent;
23
- color:var(--scalebun-muted); cursor:pointer; font:inherit; font-size:12px; white-space:nowrap; }
24
- .scalebun-tab.on{ background:var(--scalebun-accent); color:var(--scalebun-accent-fg); border-color:transparent; }
25
- .scalebun-tab .c{ margin-left:5px; font-weight:700; }
26
- .scalebun-center-list{ overflow-y:auto; flex:1; }
27
- .scalebun-center-empty{ padding:28px 14px; text-align:center; color:var(--scalebun-muted); font-size:13px; }
28
- .scalebun-item{ display:block; padding:11px 14px; border-bottom:1px solid var(--scalebun-border); cursor:pointer; }
29
- .scalebun-item:hover{ background:color-mix(in srgb, var(--scalebun-fg) 5%, transparent); }
30
- .scalebun-item.unread{ background:color-mix(in srgb, var(--scalebun-accent) 7%, transparent); }
31
- .scalebun-item-top{ display:flex; align-items:center; gap:8px; }
32
- .scalebun-item-dot{ width:7px; height:7px; border-radius:50%; background:var(--scalebun-accent); flex:0 0 auto; }
33
- .scalebun-item-title{ font-weight:600; font-size:13px; flex:1; }
34
- .scalebun-item-ch{ font-size:10.5px; color:var(--scalebun-muted); text-transform:uppercase; letter-spacing:.04em; }
35
- .scalebun-item-prev{ font-size:12px; color:var(--scalebun-muted); margin-top:3px; }
36
- .scalebun-item-acts{ display:flex; gap:8px; margin-top:7px; }
37
- .scalebun-item-acts button{ background:none; border:0; color:var(--scalebun-muted); cursor:pointer; font:inherit; font-size:11.5px; padding:0; }
38
- .scalebun-item-acts button:hover{ color:var(--scalebun-fg); text-decoration:underline; }
7
+ export const CENTER_CSS = `
8
+ .scalebun-bell{ position:relative; width:44px; height:44px; border-radius:50%; border:1px solid var(--scalebun-border);
9
+ background:var(--scalebun-bg); color:var(--scalebun-fg); cursor:pointer; box-shadow:var(--scalebun-shadow); font-size:18px; }
10
+ .scalebun-bell-badge{ position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px; border-radius:9px;
11
+ background:#e0483d; color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; }
12
+ .scalebun-bell-badge[hidden]{ display:none; }
13
+ .scalebun-center{ position:absolute; top:56px; right:0; width:380px; max-height:70vh; display:flex; flex-direction:column;
14
+ background:var(--scalebun-bg); color:var(--scalebun-fg); border:1px solid var(--scalebun-border); border-radius:14px;
15
+ box-shadow:var(--scalebun-shadow); overflow:hidden; animation:scalebun-pop .14s ease; }
16
+ .scalebun-center[hidden]{ display:none; }
17
+ .scalebun-center-head{ display:flex; align-items:center; gap:8px; padding:12px 14px; border-bottom:1px solid var(--scalebun-border); }
18
+ .scalebun-center-title{ font-weight:700; font-size:14px; flex:1; }
19
+ .scalebun-center-search{ width:100%; box-sizing:border-box; margin:8px 14px 0; width:calc(100% - 28px); padding:7px 10px;
20
+ border:1px solid var(--scalebun-border); border-radius:8px; background:transparent; color:var(--scalebun-fg); font:inherit; font-size:13px; }
21
+ .scalebun-center-tabs{ display:flex; gap:4px; overflow-x:auto; padding:8px 14px; border-bottom:1px solid var(--scalebun-border); }
22
+ .scalebun-tab{ flex:0 0 auto; padding:4px 10px; border-radius:999px; border:1px solid var(--scalebun-border); background:transparent;
23
+ color:var(--scalebun-muted); cursor:pointer; font:inherit; font-size:12px; white-space:nowrap; }
24
+ .scalebun-tab.on{ background:var(--scalebun-accent); color:var(--scalebun-accent-fg); border-color:transparent; }
25
+ .scalebun-tab .c{ margin-left:5px; font-weight:700; }
26
+ .scalebun-center-list{ overflow-y:auto; flex:1; }
27
+ .scalebun-center-empty{ padding:28px 14px; text-align:center; color:var(--scalebun-muted); font-size:13px; }
28
+ .scalebun-item{ display:block; padding:11px 14px; border-bottom:1px solid var(--scalebun-border); cursor:pointer; }
29
+ .scalebun-item:hover{ background:color-mix(in srgb, var(--scalebun-fg) 5%, transparent); }
30
+ .scalebun-item.unread{ background:color-mix(in srgb, var(--scalebun-accent) 7%, transparent); }
31
+ .scalebun-item-top{ display:flex; align-items:center; gap:8px; }
32
+ .scalebun-item-dot{ width:7px; height:7px; border-radius:50%; background:var(--scalebun-accent); flex:0 0 auto; }
33
+ .scalebun-item-title{ font-weight:600; font-size:13px; flex:1; }
34
+ .scalebun-item-ch{ font-size:10.5px; color:var(--scalebun-muted); text-transform:uppercase; letter-spacing:.04em; }
35
+ .scalebun-item-prev{ font-size:12px; color:var(--scalebun-muted); margin-top:3px; }
36
+ .scalebun-item-acts{ display:flex; gap:8px; margin-top:7px; }
37
+ .scalebun-item-acts button{ background:none; border:0; color:var(--scalebun-muted); cursor:pointer; font:inherit; font-size:11.5px; padding:0; }
38
+ .scalebun-item-acts button:hover{ color:var(--scalebun-fg); text-decoration:underline; }
39
39
  `;
40
40
  export function mountCenterPanel(host, store) {
41
41
  host.addStyles('scalebun-center', CENTER_CSS);
@@ -1,4 +1,4 @@
1
- import type { CenterChannel, CenterRecord } from './types';
1
+ import type { CenterChannel, CenterRecord } from './types.js';
2
2
  export interface CenterSnapshot {
3
3
  unreadTotal: number;
4
4
  unreadByChannel: Record<string, number>;
@@ -6,7 +6,7 @@
6
6
  * events where BroadcastChannel is unavailable (spec §7.7). Cross-DEVICE sync rides the same records
7
7
  * to the server (the record's updatedAt gives last-write-wins) — that lane plugs in at the transport.
8
8
  */
9
- import type { CenterStore } from './store';
9
+ import type { CenterStore } from './store.js';
10
10
  type BCLike = {
11
11
  postMessage(data: unknown): void;
12
12
  close(): void;
@@ -3,7 +3,7 @@
3
3
  * just "messages". A Center item is a variant with `deliver: 'center'`, rendered by the same block
4
4
  * system (zero new renderer). This file is the record schema + channel/state vocabulary.
5
5
  */
6
- import type { ContentBlock, PriorityTier } from '../types';
6
+ import type { ContentBlock, PriorityTier } from '../types.js';
7
7
  /** The 11 Center channels (tabs / filters). Security & billing float to the top (priority surfacing). */
8
8
  export type CenterChannel = 'announcements' | 'release_notes' | 'tasks' | 'messages' | 'coachmarks' | 'feedback' | 'ai' | 'errors' | 'billing' | 'security' | 'system';
9
9
  export declare const CENTER_CHANNELS: readonly CenterChannel[];
@@ -1,6 +1,6 @@
1
- import type { Outbox } from './transport';
2
- import type { Decision } from './orchestrator';
3
- import type { MetricsSnapshot } from './metrics';
1
+ import type { Outbox } from './transport.js';
2
+ import type { Decision } from './orchestrator.js';
3
+ import type { MetricsSnapshot } from './metrics.js';
4
4
  export interface AnalyticsDeps {
5
5
  outbox: Pick<Outbox, 'enqueue'>;
6
6
  uuid: () => string;
@@ -10,7 +10,7 @@
10
10
  * It also carries the observability lane: `decision()` records every Orchestrator verdict and `self()`
11
11
  * ships the periodic self-metrics snapshot.
12
12
  */
13
- import { getReplayCoord } from '../../../core';
13
+ import { getReplayCoord } from '../../../core/index.js';
14
14
  export class InAppAnalytics {
15
15
  constructor(deps) {
16
16
  this.deps = deps;
@@ -9,8 +9,8 @@
9
9
  * Pure + zero-dependency. Every produced variant is contract-valid (validateVariant passes), so a
10
10
  * migrated campaign can never become a dead end at the render guard.
11
11
  */
12
- import type { InAppLayout, InAppMessage } from '../../engage/types';
13
- import type { Surface, SurfaceOptions, Variant } from '../types';
12
+ import type { InAppLayout, InAppMessage } from '../../engage/types.js';
13
+ import type { Surface, SurfaceOptions, Variant } from '../types.js';
14
14
  export interface CompatOptions {
15
15
  /** Optional CSS selector to anchor a legacy `tooltip` to. When absent, tooltip degrades to a
16
16
  * corner toast (nearest zero-anchor equivalent) so the produced variant is always valid. */
@@ -1,5 +1,5 @@
1
- import type { SelfMetrics } from './metrics';
2
- import type { DecisionLog } from './metrics';
1
+ import type { SelfMetrics } from './metrics.js';
2
+ import type { DecisionLog } from './metrics.js';
3
3
  export declare function debugEnabled(): boolean;
4
4
  export declare function mountDebugOverlay(metrics: SelfMetrics, log: DecisionLog): () => void;
5
5
  //# sourceMappingURL=debugOverlay.d.ts.map