@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.
- package/dist/analytics/index.js +46 -4
- package/dist/analytics/index.js.map +1 -1
- package/dist/analytics/index.mjs +46 -4
- package/dist/analytics/index.mjs.map +1 -1
- package/dist/coachmarks/index.js +6 -1
- package/dist/coachmarks/index.js.map +1 -1
- package/dist/coachmarks/index.mjs +6 -1
- package/dist/coachmarks/index.mjs.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +220 -151
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +221 -152
- package/dist/index.mjs.map +1 -1
- package/dist/questionnaire/index.d.mts +1 -1
- package/dist/questionnaire/index.d.ts +1 -1
- package/dist/questionnaire/index.js +29 -5
- package/dist/questionnaire/index.js.map +1 -1
- package/dist/questionnaire/index.mjs +30 -6
- package/dist/questionnaire/index.mjs.map +1 -1
- package/dist/reviews/index.d.mts +1 -1
- package/dist/reviews/index.d.ts +1 -1
- package/dist/reviews/index.js +40 -9
- package/dist/reviews/index.js.map +1 -1
- package/dist/reviews/index.mjs +42 -11
- package/dist/reviews/index.mjs.map +1 -1
- package/dist/showcase/index.d.mts +1 -14
- package/dist/showcase/index.d.ts +1 -14
- package/dist/showcase/index.js +8 -2
- package/dist/showcase/index.js.map +1 -1
- package/dist/showcase/index.mjs +8 -2
- package/dist/showcase/index.mjs.map +1 -1
- package/package.json +3 -2
- package/src/OnboardingFlow.tsx +8 -4
- package/src/WireOnboarding.tsx +8 -3
- package/src/analytics/analyticsFacade.ts +14 -1
- package/src/analytics/eventQueue.ts +5 -0
- package/src/analytics/useAnalytics.ts +7 -1
- package/src/analytics/useScreenTracking.ts +23 -1
- package/src/cards/InterstitialCard.tsx +1 -1
- package/src/cards/NumberStepperCard.tsx +12 -7
- package/src/cards/StatusCard.tsx +13 -8
- package/src/cards/TextInputCard.tsx +10 -5
- package/src/components/AnimatedSparkle.tsx +20 -3
- package/src/components/Button.tsx +10 -1
- package/src/components/CardHandoff.tsx +2 -6
- package/src/components/CardLayout.tsx +16 -10
- package/src/components/Illustration.tsx +9 -5
- package/src/components/LoadingBlock.tsx +44 -29
- package/src/components/LoadingScreen.tsx +3 -2
- package/src/components/OnboardingScaffold.tsx +21 -23
- package/src/features/WireFeaturesProvider.tsx +7 -2
- package/src/questionnaire/QuestionnaireGate.tsx +15 -3
- package/src/reviews/ReviewGate.tsx +27 -7
- package/src/reviews/ReviewModal.tsx +4 -0
- package/src/showcase/FeatureShowcase.tsx +2 -1
- 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);
|