@wireai/activation 0.3.0 → 0.4.0

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 (57) hide show
  1. package/dist/analytics/index.js +46 -4
  2. package/dist/analytics/index.js.map +1 -1
  3. package/dist/analytics/index.mjs +46 -4
  4. package/dist/analytics/index.mjs.map +1 -1
  5. package/dist/coachmarks/index.js +6 -1
  6. package/dist/coachmarks/index.js.map +1 -1
  7. package/dist/coachmarks/index.mjs +6 -1
  8. package/dist/coachmarks/index.mjs.map +1 -1
  9. package/dist/index.d.mts +3 -2
  10. package/dist/index.d.ts +3 -2
  11. package/dist/index.js +220 -151
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.mjs +221 -152
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/questionnaire/index.d.mts +1 -1
  16. package/dist/questionnaire/index.d.ts +1 -1
  17. package/dist/questionnaire/index.js +29 -5
  18. package/dist/questionnaire/index.js.map +1 -1
  19. package/dist/questionnaire/index.mjs +30 -6
  20. package/dist/questionnaire/index.mjs.map +1 -1
  21. package/dist/reviews/index.d.mts +1 -1
  22. package/dist/reviews/index.d.ts +1 -1
  23. package/dist/reviews/index.js +40 -9
  24. package/dist/reviews/index.js.map +1 -1
  25. package/dist/reviews/index.mjs +42 -11
  26. package/dist/reviews/index.mjs.map +1 -1
  27. package/dist/showcase/index.d.mts +1 -14
  28. package/dist/showcase/index.d.ts +1 -14
  29. package/dist/showcase/index.js +8 -2
  30. package/dist/showcase/index.js.map +1 -1
  31. package/dist/showcase/index.mjs +8 -2
  32. package/dist/showcase/index.mjs.map +1 -1
  33. package/package.json +3 -2
  34. package/src/OnboardingFlow.tsx +8 -4
  35. package/src/WireOnboarding.tsx +8 -3
  36. package/src/analytics/analyticsFacade.ts +14 -1
  37. package/src/analytics/eventQueue.ts +5 -0
  38. package/src/analytics/useAnalytics.ts +7 -1
  39. package/src/analytics/useScreenTracking.ts +23 -1
  40. package/src/cards/InterstitialCard.tsx +1 -1
  41. package/src/cards/NumberStepperCard.tsx +12 -7
  42. package/src/cards/StatusCard.tsx +13 -8
  43. package/src/cards/TextInputCard.tsx +10 -5
  44. package/src/components/AnimatedSparkle.tsx +20 -3
  45. package/src/components/Button.tsx +10 -1
  46. package/src/components/CardHandoff.tsx +2 -6
  47. package/src/components/CardLayout.tsx +16 -10
  48. package/src/components/Illustration.tsx +9 -5
  49. package/src/components/LoadingBlock.tsx +44 -29
  50. package/src/components/LoadingScreen.tsx +3 -2
  51. package/src/components/OnboardingScaffold.tsx +21 -23
  52. package/src/features/WireFeaturesProvider.tsx +7 -2
  53. package/src/questionnaire/QuestionnaireGate.tsx +15 -3
  54. package/src/reviews/ReviewGate.tsx +27 -7
  55. package/src/reviews/ReviewModal.tsx +4 -0
  56. package/src/showcase/FeatureShowcase.tsx +2 -1
  57. package/src/components/loaderChrome.ts +0 -28
@@ -1,28 +0,0 @@
1
- /**
2
- * loaderChrome — the seam that lets a loader center in the FULL flow area instead of
3
- * the header-offset body it happens to render into.
4
- *
5
- * The between-turns loader lives inside the OnboardingScaffold body (so the card↔loader
6
- * handoff stays one coordinated CardHandoff — see OnboardingFlow). But the body sits
7
- * BELOW the header (the StepProgress bar), so a loader that only fills the body centers
8
- * a little low — the "not centralized in the screen" device finding. The scaffold knows
9
- * its own top chrome, so it publishes a vertical offset here; LoadingBlock reads it and
10
- * shifts its centered content up by that much, landing it at the true screen center
11
- * WITHOUT moving the body (the card underneath is untouched, so the handoff never jumps).
12
- *
13
- * Default 0: a LoadingBlock rendered OUTSIDE a scaffold (the standalone LoadingScreen used
14
- * for cold-start / restoring / error) has no header above it, so it already centers in the
15
- * full area and needs no shift.
16
- */
17
- import { createContext, useContext } from "react";
18
-
19
- export type LoaderChrome = {
20
- /** Vertical shift (px, usually negative = up) that re-centers a loader against the full flow area. */
21
- offsetY: number;
22
- };
23
-
24
- const LoaderChromeContext = createContext<LoaderChrome>({ offsetY: 0 });
25
-
26
- export const LoaderChromeProvider = LoaderChromeContext.Provider;
27
-
28
- export const useLoaderChrome = (): LoaderChrome => useContext(LoaderChromeContext);