@rocapine/react-native-onboarding 1.75.0 → 1.77.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 (117) hide show
  1. package/README.md +30 -4
  2. package/dist/OnboardingStudioClient.d.ts +18 -0
  3. package/dist/OnboardingStudioClient.d.ts.map +1 -1
  4. package/dist/OnboardingStudioClient.js +44 -17
  5. package/dist/OnboardingStudioClient.js.map +1 -1
  6. package/dist/index.d.ts +5 -3
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +16 -2
  9. package/dist/index.js.map +1 -1
  10. package/dist/onboarding-example.d.ts +140 -0
  11. package/dist/onboarding-example.d.ts.map +1 -1
  12. package/dist/onboarding-example.js +41 -1
  13. package/dist/onboarding-example.js.map +1 -1
  14. package/dist/paywalls/PaywallProvider.d.ts +71 -5
  15. package/dist/paywalls/PaywallProvider.d.ts.map +1 -1
  16. package/dist/paywalls/PaywallProvider.js +237 -57
  17. package/dist/paywalls/PaywallProvider.js.map +1 -1
  18. package/dist/paywalls/customScreens.d.ts +31 -0
  19. package/dist/paywalls/customScreens.d.ts.map +1 -1
  20. package/dist/paywalls/observer.d.ts +129 -0
  21. package/dist/paywalls/observer.d.ts.map +1 -0
  22. package/dist/paywalls/observer.js +211 -0
  23. package/dist/paywalls/observer.js.map +1 -0
  24. package/dist/paywalls/present.d.ts +19 -15
  25. package/dist/paywalls/present.d.ts.map +1 -1
  26. package/dist/paywalls/present.js +21 -17
  27. package/dist/paywalls/present.js.map +1 -1
  28. package/dist/paywalls/types.d.ts +3 -1
  29. package/dist/paywalls/types.d.ts.map +1 -1
  30. package/dist/products/adapters/expoIap.d.ts +38 -1
  31. package/dist/products/adapters/expoIap.d.ts.map +1 -1
  32. package/dist/products/adapters/expoIap.js +509 -75
  33. package/dist/products/adapters/expoIap.js.map +1 -1
  34. package/dist/products/index.d.ts +1 -0
  35. package/dist/products/index.d.ts.map +1 -1
  36. package/dist/products/index.js.map +1 -1
  37. package/dist/products/types.d.ts +13 -0
  38. package/dist/products/types.d.ts.map +1 -1
  39. package/dist/requestIdentity.d.ts +41 -0
  40. package/dist/requestIdentity.d.ts.map +1 -0
  41. package/dist/requestIdentity.js +70 -0
  42. package/dist/requestIdentity.js.map +1 -0
  43. package/dist/screens/completingActions.d.ts +55 -3
  44. package/dist/screens/completingActions.d.ts.map +1 -1
  45. package/dist/screens/completingActions.js +209 -15
  46. package/dist/screens/completingActions.js.map +1 -1
  47. package/dist/screens/elementTypeRegistry.d.ts +14 -0
  48. package/dist/screens/elementTypeRegistry.d.ts.map +1 -1
  49. package/dist/screens/elementTypeRegistry.js +38 -1
  50. package/dist/screens/elementTypeRegistry.js.map +1 -1
  51. package/dist/screens/elements/ButtonElement.d.ts +3 -2
  52. package/dist/screens/elements/ButtonElement.d.ts.map +1 -1
  53. package/dist/screens/elements/ButtonElement.js +5 -1
  54. package/dist/screens/elements/ButtonElement.js.map +1 -1
  55. package/dist/screens/types.d.ts +2 -2
  56. package/dist/screens/types.d.ts.map +1 -1
  57. package/dist/screens/types.js +5 -1
  58. package/dist/screens/types.js.map +1 -1
  59. package/dist/screens/unknownKeys.d.ts +25 -4
  60. package/dist/screens/unknownKeys.d.ts.map +1 -1
  61. package/dist/screens/unknownKeys.js +81 -2
  62. package/dist/screens/unknownKeys.js.map +1 -1
  63. package/dist/steps/common.types.d.ts +178 -6
  64. package/dist/steps/common.types.d.ts.map +1 -1
  65. package/dist/steps/common.types.js +64 -3
  66. package/dist/steps/common.types.js.map +1 -1
  67. package/dist/types.d.ts +17 -0
  68. package/dist/types.d.ts.map +1 -1
  69. package/dist/userProperties/reserved.d.ts +16 -15
  70. package/dist/userProperties/reserved.d.ts.map +1 -1
  71. package/dist/userProperties/reserved.js +18 -14
  72. package/dist/userProperties/reserved.js.map +1 -1
  73. package/dist/version.d.ts +10 -0
  74. package/dist/version.d.ts.map +1 -0
  75. package/dist/version.js +13 -0
  76. package/dist/version.js.map +1 -0
  77. package/package.json +5 -1
  78. package/src/OnboardingStudioClient.ts +47 -19
  79. package/src/__tests__/authoringDocEscapes.test.ts +59 -0
  80. package/src/__tests__/completingActions.test.ts +371 -1
  81. package/src/__tests__/customActionHooks.test.ts +224 -0
  82. package/src/__tests__/getOnboarding.query.test.ts +30 -0
  83. package/src/__tests__/onboardingExampleElements.test.ts +47 -0
  84. package/src/__tests__/requestIdentity.client.test.ts +115 -0
  85. package/src/__tests__/requestIdentity.test.ts +112 -0
  86. package/src/__tests__/requestPermissionAction.test.ts +138 -0
  87. package/src/__tests__/retryIdempotencyDocs.test.ts +57 -0
  88. package/src/__tests__/unknownKeys.test.ts +110 -0
  89. package/src/index.ts +33 -1
  90. package/src/onboarding-example.ts +41 -1
  91. package/src/paywalls/PaywallProvider.tsx +370 -66
  92. package/src/paywalls/__tests__/PaywallProvider.observer.test.tsx +866 -0
  93. package/src/paywalls/__tests__/getPaywalls.test.ts +30 -0
  94. package/src/paywalls/__tests__/observer.test.ts +401 -0
  95. package/src/paywalls/__tests__/present.test.ts +0 -18
  96. package/src/paywalls/customScreens.ts +34 -1
  97. package/src/paywalls/observer.ts +308 -0
  98. package/src/paywalls/present.ts +24 -18
  99. package/src/paywalls/types.ts +3 -1
  100. package/src/products/adapters/__tests__/expoIap.contract.test.ts +648 -0
  101. package/src/products/adapters/__tests__/expoIap.test.ts +25 -11
  102. package/src/products/adapters/__tests__/expoIap5Fake.ts +288 -0
  103. package/src/products/adapters/expoIap.ts +609 -78
  104. package/src/products/index.ts +1 -0
  105. package/src/products/types.ts +13 -0
  106. package/src/requestIdentity.ts +101 -0
  107. package/src/screens/completingActions.ts +223 -15
  108. package/src/screens/elementTypeRegistry.ts +34 -0
  109. package/src/screens/elements/ButtonElement.ts +9 -1
  110. package/src/screens/types.ts +2 -2
  111. package/src/screens/unknownKeys.ts +113 -7
  112. package/src/steps/common.types.ts +213 -6
  113. package/src/types.ts +17 -0
  114. package/src/userProperties/__tests__/effectiveParams.test.ts +2 -2
  115. package/src/userProperties/__tests__/primitives.test.ts +1 -1
  116. package/src/userProperties/reserved.ts +18 -14
  117. package/src/version.ts +9 -0
@@ -29,16 +29,100 @@ export declare const HapticStyleSchema: z.ZodEnum<{
29
29
  rigid: "rigid";
30
30
  }>;
31
31
  export type HapticStyle = z.infer<typeof HapticStyleSchema>;
32
+ /**
33
+ * Bounded retry for a `custom` action (#191). The cap is REQUIRED and small:
34
+ * an onboarding gate that keeps hammering a dead service just holds the user on
35
+ * a screen that never resolves, so there is deliberately no "retry until it
36
+ * works" spelling.
37
+ *
38
+ * **The handler must be safe to re-run.** A retry re-invokes the SAME host
39
+ * function with the SAME press-time variables, so a handler that writes is
40
+ * asked to write again: `maxAttempts: 3` over a `/create-plan` or a charge is
41
+ * three records or three charges for one press, and neither the schema, the
42
+ * runtime nor the console can tell a safe handler from an unsafe one — this
43
+ * field is the only place the hazard is stated. `timeoutMs` widens it rather
44
+ * than bounding it: a timed-out attempt is an ordinary failed attempt, so a
45
+ * request that reached the server and lost only the ANSWER to the clock is sent
46
+ * again. Retry a read, a validation, or a write carrying an idempotency key;
47
+ * for anything else leave `retry` absent and put the recovery in `onError`.
48
+ * (Same class as the `purchase` double-fire that `disabledWhen` on
49
+ * `products.purchasing` exists to prevent — one press, several writes, nothing
50
+ * reporting it.)
51
+ */
52
+ export type CustomActionRetry = {
53
+ /**
54
+ * TOTAL attempts, counting the first — `2` means "try once, retry once".
55
+ * 1..10. Absent `retry` is the default and means exactly one attempt.
56
+ */
57
+ maxAttempts: number;
58
+ /** Fixed pause between attempts, ms (0..10000). Defaults to 0. */
59
+ delayMs?: number;
60
+ /**
61
+ * How long ONE attempt may take before it counts as failed, ms
62
+ * (1000..300000). Absent means UNBOUNDED — the behaviour before this field
63
+ * existed, and the right default: a legitimate LLM call can take 60s+, and
64
+ * cutting one off by default would be a worse bug than the hang (#264).
65
+ *
66
+ * The hang it prevents is a dead screen, not a slow one. The handler is
67
+ * awaited while the runtime holds this element's single-flight claim, so a
68
+ * promise that never settles leaves `actions.pending.<elementId>` reading
69
+ * `"true"` for the life of the screen — and the payload these docs recommend
70
+ * disables the CTA on exactly that, with no back chevron on a
71
+ * `displayProgressHeader: false` step.
72
+ *
73
+ * A timed-out attempt is an ordinary failed attempt: it retries if the budget
74
+ * allows, and otherwise runs `onError` like any other failure. Declaring a
75
+ * timeout without retries is `{ maxAttempts: 1, timeoutMs: … }` — the object
76
+ * is the attempt policy, and one attempt is a policy.
77
+ */
78
+ timeoutMs?: number;
79
+ };
80
+ export declare const CustomActionRetrySchema: z.ZodObject<{
81
+ maxAttempts: z.ZodNumber;
82
+ delayMs: z.ZodOptional<z.ZodNumber>;
83
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
84
+ }, z.core.$strip>;
32
85
  export type CustomButtonAction = {
33
86
  type: "custom";
34
87
  function: string;
35
88
  variables?: string[];
89
+ /**
90
+ * Actions to run once the host handler's promise RESOLVES. Non-terminal: the
91
+ * enclosing action list carries on afterwards, exactly as it does for a
92
+ * handler with no hooks.
93
+ *
94
+ * This is where anything that must only happen ON SUCCESS belongs — writing
95
+ * the result into a variable a later screen reads, and the `"continue"` of a
96
+ * gate that must not advance on failure. A `"continue"` placed AFTER the
97
+ * `custom` action instead advances on every outcome, which is the right
98
+ * shape for "fire and move on" and the wrong one for a gate.
99
+ */
100
+ onResolve?: ButtonAction[];
101
+ /**
102
+ * Actions to run when the handler FAILS — it threw with every attempt spent,
103
+ * an attempt exceeded `retry.timeoutMs`, or the `function` name is not
104
+ * registered on the host at all. One rule for all three.
105
+ *
106
+ * NOT terminal, with or without this hook: the enclosing list carries on,
107
+ * exactly as `purchase`/`restore` do on their own `onError`. `custom` used to
108
+ * diverge here — a throw aborted the list — and that divergence is gone
109
+ * (semantics decisions 1 and 2, recorded on #191 on 2026-09-11; ticket #266).
110
+ * It cost more than it bought: two spellings of "on error" inside one action
111
+ * union behaving differently with nothing in the payload, the schema or the
112
+ * console to tell them apart, and the two `custom` failure modes disagreeing
113
+ * with each other. What the abort was protecting — a trailing `"continue"`
114
+ * walking the user onto a screen that reads variables the handler never wrote
115
+ * — is `onResolve`'s job, where the author says it rather than the runtime
116
+ * guessing it.
117
+ *
118
+ * The failure is still `console.error`ed whether or not this hook is declared
119
+ * — a declared hook is error UI, not a reason to lose the stack trace.
120
+ */
121
+ onError?: ButtonAction[];
122
+ /** Bounded retry of the handler. Absent means one attempt, no retry. */
123
+ retry?: CustomActionRetry;
36
124
  };
37
- export declare const CustomButtonActionSchema: z.ZodObject<{
38
- type: z.ZodLiteral<"custom">;
39
- function: z.ZodString;
40
- variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
- }, z.core.$strip>;
125
+ export declare const CustomButtonActionSchema: z.ZodType<CustomButtonAction>;
42
126
  export type SetVariableButtonAction = {
43
127
  type: "setVariable";
44
128
  name: string;
@@ -206,9 +290,97 @@ export declare const PresentPaywallButtonActionSchema: z.ZodObject<{
206
290
  type: z.ZodLiteral<"presentPaywall">;
207
291
  placement: z.ZodString;
208
292
  }, z.core.$strip>;
209
- export type ButtonAction = "continue" | CustomButtonAction | SetVariableButtonAction | PurchaseButtonAction | RestoreButtonAction | DismissButtonAction | PresentPaywallButtonAction;
293
+ /**
294
+ * The permissions a `requestPermission` action can ask for.
295
+ *
296
+ * Deliberately narrow, and closed. Every member here is reachable through an
297
+ * **optionally installed** Expo module that the UI package dynamic-`require`s
298
+ * at press time (the `expo-haptics` precedent), so an app that does not need a
299
+ * permission does not carry its native code:
300
+ *
301
+ * | kind | module(s) tried, in order |
302
+ * |---|---|
303
+ * | `notifications` | `expo-notifications` |
304
+ * | `appTrackingTransparency` | `expo-tracking-transparency` (iOS 14+; other platforms report `granted`) |
305
+ * | `locationWhenInUse` | `expo-location` (foreground only — background location needs its own review justification) |
306
+ * | `camera` | `expo-camera` |
307
+ * | `microphone` | `expo-audio`, then `expo-camera` |
308
+ * | `photoLibrary` | `expo-image-picker`, then `expo-media-library` |
309
+ *
310
+ * NOT members, on purpose: **HealthKit** and **Screen Time / Family Controls**.
311
+ * Both need app-owned entitlements and a config plugin neither package ships,
312
+ * so neither can be honestly requested from inside the SDK. They arrive through
313
+ * the host `requestPermission` resolver on the `ScreenHost` (the same seam as
314
+ * `products` / `presentPaywall`) once a `kind` for them is added — a
315
+ * deliberately separate decision, not a silent no-op today.
316
+ *
317
+ * READING a permission's current status is not here either: this is a press
318
+ * action, and "skip the screen when already granted" is a variable-bag
319
+ * capability with nowhere to live in this shape. Tracked separately.
320
+ */
321
+ export declare const PERMISSION_KINDS: readonly ["notifications", "appTrackingTransparency", "locationWhenInUse", "camera", "microphone", "photoLibrary"];
322
+ export type PermissionKind = (typeof PERMISSION_KINDS)[number];
323
+ export declare const PermissionKindSchema: z.ZodEnum<{
324
+ notifications: "notifications";
325
+ appTrackingTransparency: "appTrackingTransparency";
326
+ locationWhenInUse: "locationWhenInUse";
327
+ camera: "camera";
328
+ microphone: "microphone";
329
+ photoLibrary: "photoLibrary";
330
+ }>;
331
+ /**
332
+ * Ask the OS for a permission, then branch on the answer **within the same
333
+ * press**.
334
+ *
335
+ * This is what `[{type:"custom", …}, "continue"]` could not do: a custom
336
+ * handler's return value is discarded, so a host asking for notifications could
337
+ * only influence a LATER screen, through a variable it wrote. Here `onGranted`
338
+ * and `onDenied` are ordinary nested `ButtonAction[]` lists — the exact shape
339
+ * `purchase.onSuccess` / `restore.onNothingToRestore` already use, recursed
340
+ * through the same `runActions` — so one CTA can advance on a grant and, say,
341
+ * set a variable and still advance on a refusal.
342
+ *
343
+ * Asking is **idempotent from the OS's point of view, not the SDK's**: iOS shows
344
+ * its system prompt only the first time, and every later request resolves
345
+ * immediately with the standing answer. So a second press does not re-prompt —
346
+ * but it does re-run the matching hook.
347
+ *
348
+ * `onUnavailable` covers "this build cannot ask": the Expo module is not
349
+ * installed, or the platform has no such permission. It does **not** fall back
350
+ * to `onDenied` — nobody refused anything, and running the refusal branch wrote
351
+ * `att = "denied"` and fired refusal analytics for a user who was never asked
352
+ * (review round 1 of #196). Omitted, the runtime instead REUSES THIS ASK'S OWN
353
+ * completing action: if `onGranted`/`onDenied` reach a `"continue"` or a
354
+ * `{dismiss}`, the screen is completed with that same action (`{dismiss}`
355
+ * winning when both are reachable, since the SDK must not claim the more
356
+ * permissive of two answers nobody gave), and no other authored side effect
357
+ * runs. If the ask was never a way off the screen — a "turn on notifications"
358
+ * button beside its own Skip CTA — nothing happens. Either way it is reported
359
+ * with `console.error`: declare `onUnavailable` if you care which.
360
+ */
361
+ export type RequestPermissionButtonAction = {
362
+ type: "requestPermission";
363
+ kind: PermissionKind;
364
+ /** Runs when the OS reports the permission granted. */
365
+ onGranted?: ButtonAction[];
366
+ /** Runs when the OS reports it denied, restricted, or dismissed. */
367
+ onDenied?: ButtonAction[];
368
+ /**
369
+ * Runs when this build cannot ask at all — module absent, or platform has no
370
+ * such permission.
371
+ *
372
+ * Omitted, the runtime does NOT run `onDenied` (the user refused nothing). It
373
+ * completes the screen with whichever completing action this ask already
374
+ * declares, preferring `{dismiss}` over `"continue"`, and runs no other side
375
+ * effect; an ask that was never a way off the screen does nothing. Both cases
376
+ * log a `console.error`. Declare this hook to decide it yourself.
377
+ */
378
+ onUnavailable?: ButtonAction[];
379
+ };
380
+ export type ButtonAction = "continue" | CustomButtonAction | SetVariableButtonAction | PurchaseButtonAction | RestoreButtonAction | DismissButtonAction | PresentPaywallButtonAction | RequestPermissionButtonAction;
210
381
  export declare const PurchaseButtonActionSchema: z.ZodType<PurchaseButtonAction>;
211
382
  export declare const RestoreButtonActionSchema: z.ZodType<RestoreButtonAction>;
383
+ export declare const RequestPermissionButtonActionSchema: z.ZodType<RequestPermissionButtonAction>;
212
384
  export declare const ButtonActionSchema: z.ZodType<ButtonAction>;
213
385
  export declare const ConditionOperatorSchema: z.ZodEnum<{
214
386
  in: "in";
@@ -1 +1 @@
1
- {"version":3,"file":"common.types.d.ts","sourceRoot":"","sources":["../../src/steps/common.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,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;AAElE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;iBAc5B,CAAC;AACL,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,KAAK,CAAC,aAAa,GAAG,cAAc,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAO1D,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;iBAGvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;mBAMX,CAAC;AACjB,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAIhD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAa7B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseStepTypeSchema = exports.ONBOARDING_END_STEP_ID = exports.NextStepSchema = exports.BranchSchema = exports.ConditionGroupSchema = exports.LeafConditionSchema = exports.ConditionValueSchema = exports.isUnaryConditionOperator = exports.UNARY_CONDITION_OPERATORS = exports.ConditionOperatorSchema = exports.ButtonActionSchema = exports.RestoreButtonActionSchema = exports.PurchaseButtonActionSchema = exports.PresentPaywallButtonActionSchema = exports.DismissButtonActionSchema = exports.SetVariableButtonActionSchema = exports.CustomButtonActionSchema = exports.HapticStyleSchema = exports.ButtonSectionSchema = exports.InfoBoxSchema = exports.SocialProofSchema = exports.MediaSourceSchema = exports.CustomPayloadSchema = void 0;
3
+ exports.BaseStepTypeSchema = exports.ONBOARDING_END_STEP_ID = exports.NextStepSchema = exports.BranchSchema = exports.ConditionGroupSchema = exports.LeafConditionSchema = exports.ConditionValueSchema = exports.isUnaryConditionOperator = exports.UNARY_CONDITION_OPERATORS = exports.ConditionOperatorSchema = exports.ButtonActionSchema = exports.RequestPermissionButtonActionSchema = exports.RestoreButtonActionSchema = exports.PurchaseButtonActionSchema = exports.PermissionKindSchema = exports.PERMISSION_KINDS = exports.PresentPaywallButtonActionSchema = exports.DismissButtonActionSchema = exports.SetVariableButtonActionSchema = exports.CustomButtonActionSchema = exports.CustomActionRetrySchema = exports.HapticStyleSchema = exports.ButtonSectionSchema = exports.InfoBoxSchema = exports.SocialProofSchema = exports.MediaSourceSchema = exports.CustomPayloadSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.CustomPayloadSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any()).nullish();
6
6
  exports.MediaSourceSchema = zod_1.z.union([
@@ -38,11 +38,27 @@ exports.HapticStyleSchema = zod_1.z.enum([
38
38
  "soft",
39
39
  "rigid",
40
40
  ]);
41
- exports.CustomButtonActionSchema = zod_1.z.object({
41
+ exports.CustomActionRetrySchema = zod_1.z.object({
42
+ maxAttempts: zod_1.z
43
+ .number()
44
+ .int("maxAttempts must be a whole number of attempts")
45
+ .min(1, "maxAttempts must be at least 1")
46
+ .max(10, "maxAttempts must be at most 10"),
47
+ delayMs: zod_1.z.number().min(0).max(10000).optional(),
48
+ timeoutMs: zod_1.z
49
+ .number()
50
+ .min(1000, "timeoutMs must be at least 1000 (no real handler answers faster)")
51
+ .max(300000, "timeoutMs must be at most 300000 (five minutes)")
52
+ .optional(),
53
+ });
54
+ exports.CustomButtonActionSchema = zod_1.z.lazy(() => zod_1.z.object({
42
55
  type: zod_1.z.literal("custom"),
43
56
  function: zod_1.z.string().min(1, "function must not be empty"),
44
57
  variables: zod_1.z.array(zod_1.z.string()).optional(),
45
- });
58
+ onResolve: zod_1.z.array(exports.ButtonActionSchema).optional(),
59
+ onError: zod_1.z.array(exports.ButtonActionSchema).optional(),
60
+ retry: exports.CustomActionRetrySchema.optional(),
61
+ }));
46
62
  exports.SetVariableButtonActionSchema = zod_1.z.object({
47
63
  type: zod_1.z.literal("setVariable"),
48
64
  name: zod_1.z.string().min(1, "name must not be empty"),
@@ -59,6 +75,43 @@ exports.PresentPaywallButtonActionSchema = zod_1.z.object({
59
75
  type: zod_1.z.literal("presentPaywall"),
60
76
  placement: zod_1.z.string().min(1, "placement must not be empty"),
61
77
  });
78
+ /**
79
+ * The permissions a `requestPermission` action can ask for.
80
+ *
81
+ * Deliberately narrow, and closed. Every member here is reachable through an
82
+ * **optionally installed** Expo module that the UI package dynamic-`require`s
83
+ * at press time (the `expo-haptics` precedent), so an app that does not need a
84
+ * permission does not carry its native code:
85
+ *
86
+ * | kind | module(s) tried, in order |
87
+ * |---|---|
88
+ * | `notifications` | `expo-notifications` |
89
+ * | `appTrackingTransparency` | `expo-tracking-transparency` (iOS 14+; other platforms report `granted`) |
90
+ * | `locationWhenInUse` | `expo-location` (foreground only — background location needs its own review justification) |
91
+ * | `camera` | `expo-camera` |
92
+ * | `microphone` | `expo-audio`, then `expo-camera` |
93
+ * | `photoLibrary` | `expo-image-picker`, then `expo-media-library` |
94
+ *
95
+ * NOT members, on purpose: **HealthKit** and **Screen Time / Family Controls**.
96
+ * Both need app-owned entitlements and a config plugin neither package ships,
97
+ * so neither can be honestly requested from inside the SDK. They arrive through
98
+ * the host `requestPermission` resolver on the `ScreenHost` (the same seam as
99
+ * `products` / `presentPaywall`) once a `kind` for them is added — a
100
+ * deliberately separate decision, not a silent no-op today.
101
+ *
102
+ * READING a permission's current status is not here either: this is a press
103
+ * action, and "skip the screen when already granted" is a variable-bag
104
+ * capability with nowhere to live in this shape. Tracked separately.
105
+ */
106
+ exports.PERMISSION_KINDS = [
107
+ "notifications",
108
+ "appTrackingTransparency",
109
+ "locationWhenInUse",
110
+ "camera",
111
+ "microphone",
112
+ "photoLibrary",
113
+ ];
114
+ exports.PermissionKindSchema = zod_1.z.enum(exports.PERMISSION_KINDS);
62
115
  exports.PurchaseButtonActionSchema = zod_1.z.lazy(() => zod_1.z.object({
63
116
  type: zod_1.z.literal("purchase"),
64
117
  product: zod_1.z.string().min(1, "product must not be empty"),
@@ -73,6 +126,13 @@ exports.RestoreButtonActionSchema = zod_1.z.lazy(() => zod_1.z.object({
73
126
  onNothingToRestore: zod_1.z.array(exports.ButtonActionSchema).optional(),
74
127
  onError: zod_1.z.array(exports.ButtonActionSchema).optional(),
75
128
  }));
129
+ exports.RequestPermissionButtonActionSchema = zod_1.z.lazy(() => zod_1.z.object({
130
+ type: zod_1.z.literal("requestPermission"),
131
+ kind: exports.PermissionKindSchema,
132
+ onGranted: zod_1.z.array(exports.ButtonActionSchema).optional(),
133
+ onDenied: zod_1.z.array(exports.ButtonActionSchema).optional(),
134
+ onUnavailable: zod_1.z.array(exports.ButtonActionSchema).optional(),
135
+ }));
76
136
  exports.ButtonActionSchema = zod_1.z.lazy(() => zod_1.z.union([
77
137
  zod_1.z.literal("continue"),
78
138
  exports.CustomButtonActionSchema,
@@ -81,6 +141,7 @@ exports.ButtonActionSchema = zod_1.z.lazy(() => zod_1.z.union([
81
141
  exports.RestoreButtonActionSchema,
82
142
  exports.DismissButtonActionSchema,
83
143
  exports.PresentPaywallButtonActionSchema,
144
+ exports.RequestPermissionButtonActionSchema,
84
145
  ]));
85
146
  // ── Branching / nextStep schemas ─────────────────────────────────────────────
86
147
  exports.ConditionOperatorSchema = zod_1.z.enum([
@@ -1 +1 @@
1
- {"version":3,"file":"common.types.js","sourceRoot":"","sources":["../../src/steps/common.types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CA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CAAC,CAAC,CAAC;IACtC,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,oBAAY,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC5C,CAAC;KACD,QAAQ,EAAE;KACV,OAAO,CAAC,IAAI,CAAC,CAAC;AAGjB;;;;;;GAMG;AACU,QAAA,sBAAsB,GAAG,SAAS,CAAC;AAEhD,iFAAiF;AAEpE,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,2EAA2E;IAC3E,qEAAqE;IACrE,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,8BAAsB,EAAE;QACzD,OAAO,EAAE,IAAI,8BAAsB,8EAA8E;KAClH,CAAC;IACF,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,qBAAqB,EAAE,OAAC,CAAC,OAAO,EAAE;IAClC,aAAa,EAAE,2BAAmB;IAClC,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;IAC9D,aAAa,EAAE,2BAAmB,CAAC,QAAQ,EAAE;IAC7C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC9B,QAAQ,EAAE,sBAAc;CACzB,CAAC,CAAC"}
package/dist/types.d.ts CHANGED
@@ -15,7 +15,24 @@ export type BaseStepType = {
15
15
  nextStep?: NextStep;
16
16
  };
17
17
  export type OnboardingStudioClientOptions<StepType extends BaseStepType = BaseStepType> = {
18
+ /**
19
+ * The app's version, e.g. "2.3.0". Optional: when omitted the SDK reads it
20
+ * from `expo-application` if that package is installed. Pass it only to
21
+ * override what the device reports.
22
+ */
18
23
  appVersion?: string;
24
+ /**
25
+ * The app's build number, e.g. "45". Same precedence as `appVersion`: this
26
+ * option, else `expo-application`, else not sent.
27
+ */
28
+ build?: string;
29
+ /**
30
+ * Free text naming where this build runs, e.g. "staging". Defaults to
31
+ * "sandbox" when `isSandbox`, "development" under `__DEV__`, else
32
+ * "production". Lower-cased, reduced to `[a-z0-9_-]` and cut to 32
33
+ * characters before it is sent. An audience rule can target it.
34
+ */
35
+ environment?: string;
19
36
  isSandbox?: boolean;
20
37
  baseUrl?: string;
21
38
  fallbackOnboarding?: Onboarding<StepType>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,6BAA6B,CACvC,QAAQ,SAAS,YAAY,GAAG,YAAY,IAC1C;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,GAAG,EAAE,MAAM,GA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IACtC;;;;OAIG;IACH,cAAc,CAAC,EAAE,2BAA2B,CAAC;IAC7C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,QAAQ,GACR,UAAU,GACV,MAAM,GACN,WAAW,GACX,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;AAEV,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;AAExE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,aAAa,GAAG,MAAM,CAAC;IAC/B,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IACrC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAAG,gBAAgB,EAAE,CAAC;AAE9E,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAEpE,MAAM,WAAW,UAAU,CAAC,QAAQ,SAAS,YAAY,GAAG,YAAY;IACtE,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,aAAa,EAAE,uBAAuB,CAAC;IACvC,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC"}
@@ -6,27 +6,28 @@
6
6
  * `RESERVED_AUDIENCE_VARS`, which strips them because they are server-owned (a
7
7
  * client supplying `now` is self-selecting into a time-gated audience).
8
8
  *
9
- * The other six close a collision that is live today and merely unreachable,
10
- * because nobody hand-writes these names into `customAudienceParams`. The
11
- * client appends user params FIRST, then its own:
9
+ * The others are the params the client writes on every request: `projectId`,
10
+ * `platform`, the request identity (`appVersion`, `build`, `sdkVersion`,
11
+ * `environment` — see `requestIdentity.ts`), `draft`, `locale`, `omitNulls`.
12
+ * The client adds user params FIRST, then writes its own with
13
+ * `URLSearchParams.set`, which replaces any same-named user param (and removes
14
+ * a user `appVersion`/`build` when it has none of its own to send):
12
15
  *
13
16
  * Object.entries(userDefinedParams).forEach(([k, v]) => urlParams.append(k, v));
14
- * urlParams.append("projectId", this.projectId);
17
+ * urlParams.set("projectId", this.projectId);
15
18
  *
16
- * `URLSearchParams.append` permits duplicates, and the two server-side readers
17
- * disagree about which one wins: `url.searchParams.get("projectId")` returns the
18
- * FIRST occurrence (the user's value — so the request resolves the wrong
19
- * project, or 400s), while `Object.fromEntries(...)` is last-wins (so the
20
- * json-logic data still holds the real one). The result is a failed or
21
- * cross-project request with no diagnostic pointing at the property that caused
22
- * it.
19
+ * It used to `append` them, and the server's two readers disagree about which
20
+ * duplicate wins: `url.searchParams.get("projectId")` returns the FIRST
21
+ * occurrence (the user's value — so the request resolved the wrong project, or
22
+ * 400ed), while `Object.fromEntries(...)` is last-wins. `set` closes that on the
23
+ * wire, but a user property that silently loses to the SDK's value is still a
24
+ * bug in the host, so this is where it gets refused.
23
25
  *
24
26
  * A store whose whole purpose is to let a host name keys freely makes that a
25
- * plausible accident, so this is where it gets refused. Refusing — rather than
26
- * prefixing or escaping — keeps the wire format unchanged and puts the warning
27
- * at the call site responsible.
27
+ * plausible accident. Refusing — rather than prefixing or escaping — keeps the
28
+ * wire format unchanged and puts the warning at the call site responsible.
28
29
  */
29
- export declare const RESERVED_USER_PROPERTY_KEYS: readonly ["projectId", "platform", "appVersion", "draft", "locale", "omitNulls", "moment", "now"];
30
+ export declare const RESERVED_USER_PROPERTY_KEYS: readonly ["projectId", "platform", "appVersion", "build", "sdkVersion", "environment", "draft", "locale", "omitNulls", "moment", "now"];
30
31
  export type ReservedUserPropertyKey = (typeof RESERVED_USER_PROPERTY_KEYS)[number];
31
32
  /** Exact match, never a prefix — `projectIdentifier` is a perfectly good property. */
32
33
  export declare const isReservedUserPropertyKey: (key: string) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"reserved.d.ts","sourceRoot":"","sources":["../../src/userProperties/reserved.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,2BAA2B,mGAS9B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnF,sFAAsF;AACtF,eAAO,MAAM,yBAAyB,GAAI,KAAK,MAAM,KAAG,OACU,CAAC"}
1
+ {"version":3,"file":"reserved.d.ts","sourceRoot":"","sources":["../../src/userProperties/reserved.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,2BAA2B,yIAY9B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnF,sFAAsF;AACtF,eAAO,MAAM,yBAAyB,GAAI,KAAK,MAAM,KAAG,OACU,CAAC"}
@@ -9,30 +9,34 @@ exports.isReservedUserPropertyKey = exports.RESERVED_USER_PROPERTY_KEYS = void 0
9
9
  * `RESERVED_AUDIENCE_VARS`, which strips them because they are server-owned (a
10
10
  * client supplying `now` is self-selecting into a time-gated audience).
11
11
  *
12
- * The other six close a collision that is live today and merely unreachable,
13
- * because nobody hand-writes these names into `customAudienceParams`. The
14
- * client appends user params FIRST, then its own:
12
+ * The others are the params the client writes on every request: `projectId`,
13
+ * `platform`, the request identity (`appVersion`, `build`, `sdkVersion`,
14
+ * `environment` — see `requestIdentity.ts`), `draft`, `locale`, `omitNulls`.
15
+ * The client adds user params FIRST, then writes its own with
16
+ * `URLSearchParams.set`, which replaces any same-named user param (and removes
17
+ * a user `appVersion`/`build` when it has none of its own to send):
15
18
  *
16
19
  * Object.entries(userDefinedParams).forEach(([k, v]) => urlParams.append(k, v));
17
- * urlParams.append("projectId", this.projectId);
20
+ * urlParams.set("projectId", this.projectId);
18
21
  *
19
- * `URLSearchParams.append` permits duplicates, and the two server-side readers
20
- * disagree about which one wins: `url.searchParams.get("projectId")` returns the
21
- * FIRST occurrence (the user's value — so the request resolves the wrong
22
- * project, or 400s), while `Object.fromEntries(...)` is last-wins (so the
23
- * json-logic data still holds the real one). The result is a failed or
24
- * cross-project request with no diagnostic pointing at the property that caused
25
- * it.
22
+ * It used to `append` them, and the server's two readers disagree about which
23
+ * duplicate wins: `url.searchParams.get("projectId")` returns the FIRST
24
+ * occurrence (the user's value — so the request resolved the wrong project, or
25
+ * 400ed), while `Object.fromEntries(...)` is last-wins. `set` closes that on the
26
+ * wire, but a user property that silently loses to the SDK's value is still a
27
+ * bug in the host, so this is where it gets refused.
26
28
  *
27
29
  * A store whose whole purpose is to let a host name keys freely makes that a
28
- * plausible accident, so this is where it gets refused. Refusing — rather than
29
- * prefixing or escaping — keeps the wire format unchanged and puts the warning
30
- * at the call site responsible.
30
+ * plausible accident. Refusing — rather than prefixing or escaping — keeps the
31
+ * wire format unchanged and puts the warning at the call site responsible.
31
32
  */
32
33
  exports.RESERVED_USER_PROPERTY_KEYS = [
33
34
  "projectId",
34
35
  "platform",
35
36
  "appVersion",
37
+ "build",
38
+ "sdkVersion",
39
+ "environment",
36
40
  "draft",
37
41
  "locale",
38
42
  "omitNulls",
@@ -1 +1 @@
1
- {"version":3,"file":"reserved.js","sourceRoot":"","sources":["../../src/userProperties/reserved.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACU,QAAA,2BAA2B,GAAG;IACzC,WAAW;IACX,UAAU;IACV,YAAY;IACZ,OAAO;IACP,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,KAAK;CACG,CAAC;AAIX,sFAAsF;AAC/E,MAAM,yBAAyB,GAAG,CAAC,GAAW,EAAW,EAAE,CAC/D,mCAAiD,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AADtD,QAAA,yBAAyB,6BAC6B"}
1
+ {"version":3,"file":"reserved.js","sourceRoot":"","sources":["../../src/userProperties/reserved.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACU,QAAA,2BAA2B,GAAG;IACzC,WAAW;IACX,UAAU;IACV,YAAY;IACZ,OAAO;IACP,YAAY;IACZ,aAAa;IACb,OAAO;IACP,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,KAAK;CACG,CAAC;AAIX,sFAAsF;AAC/E,MAAM,yBAAyB,GAAG,CAAC,GAAW,EAAW,EAAE,CAC/D,mCAAiD,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AADtD,QAAA,yBAAyB,6BAC6B"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This package's version, sent as `sdkVersion` on every request.
3
+ *
4
+ * A committed constant rather than a read of `package.json`: `rootDir` is
5
+ * `./src`, so the build cannot import it, and reading it at runtime would ship
6
+ * the file. `npm run check:versions` fails when this disagrees with
7
+ * `package.json`, and the `bump-version` skill updates it.
8
+ */
9
+ export declare const SDK_VERSION = "1.77.0";
10
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,WAAW,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SDK_VERSION = void 0;
4
+ /**
5
+ * This package's version, sent as `sdkVersion` on every request.
6
+ *
7
+ * A committed constant rather than a read of `package.json`: `rootDir` is
8
+ * `./src`, so the build cannot import it, and reading it at runtime would ship
9
+ * the file. `npm run check:versions` fails when this disagrees with
10
+ * `package.json`, and the `bump-version` skill updates it.
11
+ */
12
+ exports.SDK_VERSION = "1.77.0";
13
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACU,QAAA,WAAW,GAAG,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocapine/react-native-onboarding",
3
- "version": "1.75.0",
3
+ "version": "1.77.0",
4
4
  "description": "Headless React Native SDK for Rocapine Onboarding Studio - Data fetching, state management, and hooks",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -39,6 +39,7 @@
39
39
  "vitest": "^4.1.5"
40
40
  },
41
41
  "peerDependencies": {
42
+ "expo-application": "*",
42
43
  "expo-font": "*",
43
44
  "expo-image": "*",
44
45
  "expo-router": ">=3.0.0",
@@ -46,6 +47,9 @@
46
47
  "react-native": "*"
47
48
  },
48
49
  "peerDependenciesMeta": {
50
+ "expo-application": {
51
+ "optional": true
52
+ },
49
53
  "expo-font": {
50
54
  "optional": true
51
55
  },