@funkit/connect-rn 8.3.0 → 9.0.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 (133) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +16 -12
  3. package/dist/{chunk-Z6IQFV5E.js → chunk-GCPIOARQ.js} +3 -3
  4. package/dist/{chunk-KDRCHYXB.js → chunk-MMXSERQM.js} +298 -81
  5. package/dist/chunk-MMXSERQM.js.map +7 -0
  6. package/dist/{chunk-BC4RXFI7.js → chunk-ZBWCG4O6.js} +2 -1
  7. package/dist/chunk-ZBWCG4O6.js.map +7 -0
  8. package/dist/{chunk-ZIT24GW5.js → chunk-ZE77GVDW.js} +94 -10
  9. package/dist/chunk-ZE77GVDW.js.map +7 -0
  10. package/dist/clients/lighter.js +2 -2
  11. package/dist/clients/nado.js +3 -3
  12. package/dist/clients/solana.js +1 -1
  13. package/dist/index.js +2750 -2009
  14. package/dist/index.js.map +4 -4
  15. package/dist/preview.js +12 -2
  16. package/dist/preview.js.map +2 -2
  17. package/dist/src/components/PillButton.d.ts.map +1 -1
  18. package/dist/src/components/v2/AccountBalanceChip.d.ts.map +1 -1
  19. package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
  20. package/dist/src/components/v2/NumPad.d.ts.map +1 -1
  21. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
  22. package/dist/src/fiat/FiatChoiceList.d.ts.map +1 -1
  23. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  24. package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
  25. package/dist/src/fiat/FiatErrorNotice.d.ts.map +1 -1
  26. package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -1
  27. package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
  28. package/dist/src/fiat/FiatFormHeading.d.ts.map +1 -1
  29. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  30. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
  31. package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
  32. package/dist/src/fiat/FiatKycOptionRow.d.ts.map +1 -1
  33. package/dist/src/fiat/FiatKycOptionsScreen.d.ts +1 -1
  34. package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
  35. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
  36. package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -1
  37. package/dist/src/fiat/FiatReceipt.d.ts.map +1 -1
  38. package/dist/src/fiat/FiatUnsupportedStep.d.ts +11 -0
  39. package/dist/src/fiat/FiatUnsupportedStep.d.ts.map +1 -0
  40. package/dist/src/fiat/SurfaceSlot.d.ts +3 -1
  41. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  42. package/dist/src/fiat/closeFailure.d.ts +19 -0
  43. package/dist/src/fiat/closeFailure.d.ts.map +1 -0
  44. package/dist/src/fiat/depositOutcome.d.ts +18 -1
  45. package/dist/src/fiat/depositOutcome.d.ts.map +1 -1
  46. package/dist/src/fiat/kycFormTheme.d.ts +2 -28
  47. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
  48. package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
  49. package/dist/src/fiat/paymentReroute.d.ts +30 -0
  50. package/dist/src/fiat/paymentReroute.d.ts.map +1 -0
  51. package/dist/src/fiat/paymentSurfaceFailure.d.ts +7 -7
  52. package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -1
  53. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
  54. package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +1 -1
  55. package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +1 -1
  56. package/dist/src/fiat/providers/TransakApplePaySurface.d.ts.map +1 -1
  57. package/dist/src/fiat/providers/adapter.d.ts +15 -5
  58. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  59. package/dist/src/fiat/providers/applePayButtonMetrics.d.ts +1 -2
  60. package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -1
  61. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +8 -2
  62. package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -1
  63. package/dist/src/fiat/providers/kycIntro.d.ts +1 -1
  64. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
  65. package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts +5 -10
  66. package/dist/src/fiat/providers/moonpayApplePayStyle.d.ts.map +1 -1
  67. package/dist/src/fiat/providers/moonpayFailureCopy.d.ts +15 -0
  68. package/dist/src/fiat/providers/moonpayFailureCopy.d.ts.map +1 -0
  69. package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -1
  70. package/dist/src/fiat/providers/stripeFailureCopy.d.ts +16 -0
  71. package/dist/src/fiat/providers/stripeFailureCopy.d.ts.map +1 -0
  72. package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -1
  73. package/dist/src/fiat/providers/stripeRoundPush.d.ts +6 -0
  74. package/dist/src/fiat/providers/stripeRoundPush.d.ts.map +1 -1
  75. package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -1
  76. package/dist/src/fiat/providers/useWebViewTermination.d.ts +15 -0
  77. package/dist/src/fiat/providers/useWebViewTermination.d.ts.map +1 -0
  78. package/dist/src/flow/DepositFlowContent.d.ts +2 -2
  79. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  80. package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -1
  81. package/dist/src/flow/FiatDepositAmountStep.d.ts +9 -3
  82. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  83. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  84. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  85. package/dist/src/flow/SheetMaterial.d.ts +5 -12
  86. package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
  87. package/dist/src/flow/depositFlowConfig.d.ts +13 -6
  88. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  89. package/dist/src/flow/flowError.d.ts +3 -1
  90. package/dist/src/flow/flowError.d.ts.map +1 -1
  91. package/dist/src/flow/guardHostCallbacks.d.ts +8 -1
  92. package/dist/src/flow/guardHostCallbacks.d.ts.map +1 -1
  93. package/dist/src/flow/useDepositReceivedToast.d.ts +10 -1
  94. package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -1
  95. package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
  96. package/dist/src/flow/validateClientMetadata.d.ts.map +1 -1
  97. package/dist/src/identity/IdentityContext.d.ts +8 -0
  98. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  99. package/dist/src/logging/datadogHttpLogTransport.d.ts +10 -3
  100. package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
  101. package/dist/src/logging/logger.d.ts.map +1 -1
  102. package/dist/src/native/glassEffect.d.ts +19 -0
  103. package/dist/src/native/glassEffect.d.ts.map +1 -1
  104. package/dist/src/preview/flowPreview.d.ts +3 -0
  105. package/dist/src/preview/flowPreview.d.ts.map +1 -1
  106. package/dist/src/preview/scenarioCatalog.d.ts +6 -0
  107. package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
  108. package/dist/src/preview/scenarios.d.ts.map +1 -1
  109. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  110. package/dist/src/screens/depositMetrics.d.ts +2 -25
  111. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  112. package/dist/src/theme/buildFunkitTheme.d.ts +14 -0
  113. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  114. package/dist/src/theme/inputTextStyle.d.ts +3 -2
  115. package/dist/src/theme/inputTextStyle.d.ts.map +1 -1
  116. package/dist/src/theme/restyle.d.ts +429 -0
  117. package/dist/src/theme/restyle.d.ts.map +1 -1
  118. package/dist/src/theme/textStyle.d.ts +1 -0
  119. package/dist/src/theme/textStyle.d.ts.map +1 -1
  120. package/dist/src/theme/toRestyleTheme.d.ts +39 -0
  121. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  122. package/dist/src/theme/typeScale.d.ts +98 -0
  123. package/dist/src/theme/typeScale.d.ts.map +1 -0
  124. package/ios/FrostedGlassView.swift +207 -0
  125. package/ios/FunkitGlassEffect.podspec +1 -1
  126. package/ios/FunkitGlassEffectModule.swift +42 -0
  127. package/package.json +7 -6
  128. package/dist/chunk-BC4RXFI7.js.map +0 -7
  129. package/dist/chunk-KDRCHYXB.js.map +0 -7
  130. package/dist/chunk-ZIT24GW5.js.map +0 -7
  131. package/dist/src/fiat/FiatGradientTitle.d.ts +0 -15
  132. package/dist/src/fiat/FiatGradientTitle.d.ts.map +0 -1
  133. /package/dist/{chunk-Z6IQFV5E.js.map → chunk-GCPIOARQ.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"restyle.d.ts","sourceRoot":"","sources":["../../../src/theme/restyle.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,cAAc,EAIpB,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4B,CAAA;AAE7C,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,OAAO,WAAW,CAAC;IACnE;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B;AAED;;;;GAIG;AACH,eAAO,MAAM,IAAI,4GAsBhB,CAAA;AAED,0EAA0E;AAC1E,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA"}
@@ -11,6 +11,7 @@ import type { FunkitFontWeight } from './tokens';
11
11
  * lives, so a fast path cannot layer them differently from the rest.
12
12
  */
13
13
  export declare function flatTextStyle(theme: FunkitTheme, options?: {
14
+ variant?: keyof FunkitTheme['textVariants'];
14
15
  weight?: FunkitFontWeight;
15
16
  }): TextStyle[];
16
17
  //# sourceMappingURL=textStyle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"textStyle.d.ts","sourceRoot":"","sources":["../../../src/theme/textStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,WAAW,EAClB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAAO,GAC1C,SAAS,EAAE,CAWb"}
1
+ {"version":3,"file":"textStyle.d.ts","sourceRoot":"","sources":["../../../src/theme/textStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,WAAW,EAClB,OAAO,GAAE;IACP,OAAO,CAAC,EAAE,MAAM,WAAW,CAAC,cAAc,CAAC,CAAA;IAC3C,MAAM,CAAC,EAAE,gBAAgB,CAAA;CACrB,GACL,SAAS,EAAE,CAab"}
@@ -143,6 +143,19 @@ export declare function toRestyleTheme(tokens: FunkitTokens): {
143
143
  tablet: number;
144
144
  };
145
145
  textVariants: {
146
+ display: import("react-native").TextStyle;
147
+ title: import("react-native").TextStyle;
148
+ lead: import("react-native").TextStyle;
149
+ bodyLarge: import("react-native").TextStyle;
150
+ link: import("react-native").TextStyle;
151
+ notice: import("react-native").TextStyle;
152
+ drawerDetail: import("react-native").TextStyle;
153
+ drawerRow: import("react-native").TextStyle;
154
+ caption: import("react-native").TextStyle;
155
+ codeDigit: import("react-native").TextStyle;
156
+ amountHero: import("react-native").TextStyle;
157
+ keypad: import("react-native").TextStyle;
158
+ keypadGlyph: import("react-native").TextStyle;
146
159
  defaults: {
147
160
  fontSize: number;
148
161
  lineHeight: number;
@@ -353,6 +366,19 @@ export declare const defaultLightTheme: {
353
366
  tablet: number;
354
367
  };
355
368
  textVariants: {
369
+ display: import("react-native").TextStyle;
370
+ title: import("react-native").TextStyle;
371
+ lead: import("react-native").TextStyle;
372
+ bodyLarge: import("react-native").TextStyle;
373
+ link: import("react-native").TextStyle;
374
+ notice: import("react-native").TextStyle;
375
+ drawerDetail: import("react-native").TextStyle;
376
+ drawerRow: import("react-native").TextStyle;
377
+ caption: import("react-native").TextStyle;
378
+ codeDigit: import("react-native").TextStyle;
379
+ amountHero: import("react-native").TextStyle;
380
+ keypad: import("react-native").TextStyle;
381
+ keypadGlyph: import("react-native").TextStyle;
356
382
  defaults: {
357
383
  fontSize: number;
358
384
  lineHeight: number;
@@ -560,6 +586,19 @@ export declare const defaultDarkTheme: {
560
586
  tablet: number;
561
587
  };
562
588
  textVariants: {
589
+ display: import("react-native").TextStyle;
590
+ title: import("react-native").TextStyle;
591
+ lead: import("react-native").TextStyle;
592
+ bodyLarge: import("react-native").TextStyle;
593
+ link: import("react-native").TextStyle;
594
+ notice: import("react-native").TextStyle;
595
+ drawerDetail: import("react-native").TextStyle;
596
+ drawerRow: import("react-native").TextStyle;
597
+ caption: import("react-native").TextStyle;
598
+ codeDigit: import("react-native").TextStyle;
599
+ amountHero: import("react-native").TextStyle;
600
+ keypad: import("react-native").TextStyle;
601
+ keypadGlyph: import("react-native").TextStyle;
563
602
  defaults: {
564
603
  fontSize: number;
565
604
  lineHeight: number;
@@ -1 +1 @@
1
- {"version":3,"file":"toRestyleTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/toRestyleTheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,UAAU,CAAA;AAErE;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AED,4EAA4E;AAC5E,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D,wFAAwF;AACxF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8B,CAAA;AAC5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAA"}
@@ -0,0 +1,98 @@
1
+ import type { FunkitFontWeight } from './tokens';
2
+ export interface TypeRole {
3
+ size: number;
4
+ /** Line height as a multiple of `size`, the way Figma states it (112% → 1.12). */
5
+ leading: number;
6
+ /** Letter spacing as a multiple of `size`, in em. */
7
+ tracking: number;
8
+ weight: FunkitFontWeight;
9
+ }
10
+ /**
11
+ * The fiat flow's type scale, read off the Fun Mobile V2 frames. Not yet part
12
+ * of Fun Variables, so it lives beside the mirrored tokens rather than in them.
13
+ *
14
+ * - Every role sets size, leading and tracking, so no role inherits the body's
15
+ * 22pt line from Restyle's `defaults` variant.
16
+ */
17
+ export declare const TYPE_SCALE: {
18
+ readonly display: {
19
+ readonly size: 40;
20
+ readonly leading: 1.12;
21
+ readonly tracking: -0.03;
22
+ readonly weight: "semibold";
23
+ };
24
+ readonly title: {
25
+ readonly size: 24;
26
+ readonly leading: 1.12;
27
+ readonly tracking: -0.02;
28
+ readonly weight: "medium";
29
+ };
30
+ readonly lead: {
31
+ readonly size: 21;
32
+ readonly leading: 1.16;
33
+ readonly tracking: -0.02;
34
+ readonly weight: "base";
35
+ };
36
+ readonly bodyLarge: {
37
+ readonly size: 17;
38
+ readonly leading: 1.15;
39
+ readonly tracking: -0.025;
40
+ readonly weight: "medium";
41
+ };
42
+ readonly link: {
43
+ readonly size: 16;
44
+ readonly leading: 1.12;
45
+ readonly tracking: -0.02;
46
+ readonly weight: "medium";
47
+ };
48
+ readonly notice: {
49
+ readonly size: 15;
50
+ readonly leading: 1.2;
51
+ readonly tracking: -0.015;
52
+ readonly weight: "medium";
53
+ };
54
+ readonly drawerDetail: {
55
+ readonly size: 14;
56
+ readonly leading: number;
57
+ readonly tracking: -0.01;
58
+ readonly weight: "base";
59
+ };
60
+ readonly drawerRow: {
61
+ readonly size: 15;
62
+ readonly leading: number;
63
+ readonly tracking: 0;
64
+ readonly weight: "base";
65
+ };
66
+ readonly caption: {
67
+ readonly size: 12;
68
+ readonly leading: 1.24;
69
+ readonly tracking: -0.02;
70
+ readonly weight: "medium";
71
+ };
72
+ readonly codeDigit: {
73
+ readonly size: 28;
74
+ readonly leading: 1.12;
75
+ readonly tracking: -0.02;
76
+ readonly weight: "medium";
77
+ };
78
+ readonly amountHero: {
79
+ readonly size: 96;
80
+ readonly leading: 1.25;
81
+ readonly tracking: -0.015;
82
+ readonly weight: "medium";
83
+ };
84
+ readonly keypad: {
85
+ readonly size: 24;
86
+ readonly leading: number;
87
+ readonly tracking: -0.015;
88
+ readonly weight: "medium";
89
+ };
90
+ readonly keypadGlyph: {
91
+ readonly size: 48;
92
+ readonly leading: number;
93
+ readonly tracking: -0.015;
94
+ readonly weight: "medium";
95
+ };
96
+ };
97
+ export type TypeRoleName = keyof typeof TYPE_SCALE;
98
+ //# sourceMappingURL=typeScale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeScale.d.ts","sourceRoot":"","sources":["../../../src/theme/typeScale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,kFAAkF;IAClF,OAAO,EAAE,MAAM,CAAA;IACf,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,gBAAgB,CAAA;CACzB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAesB,CAAA;AAE7C,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,UAAU,CAAA"}
@@ -0,0 +1,207 @@
1
+ import ExpoModulesCore
2
+ import UIKit
3
+
4
+ internal enum FrostStyle: String, Enumerable {
5
+ case regular
6
+ case light
7
+ case dark
8
+ case systemUltraThinMaterialLight
9
+ case systemUltraThinMaterialDark
10
+
11
+ func toUIBlurEffectStyle() -> UIBlurEffect.Style {
12
+ switch self {
13
+ case .regular:
14
+ return .regular
15
+ case .light:
16
+ return .light
17
+ case .dark:
18
+ return .dark
19
+ #if os(tvOS)
20
+ case .systemUltraThinMaterialLight:
21
+ return .light
22
+ case .systemUltraThinMaterialDark:
23
+ return .dark
24
+ #else
25
+ case .systemUltraThinMaterialLight:
26
+ return .systemUltraThinMaterialLight
27
+ case .systemUltraThinMaterialDark:
28
+ return .systemUltraThinMaterialDark
29
+ #endif
30
+ }
31
+ }
32
+ }
33
+
34
+ /**
35
+ A blur of what lies behind, an optional fill over it, and optional Liquid Glass on top, drawn as one
36
+ view so every layer shares a single corner.
37
+
38
+ - The blur and fill are clipped to the corner; the glass is not, so it keeps its rim.
39
+ - Below iOS 26 the glass is left out and the corner is `cornerRadius` throughout.
40
+ */
41
+ public final class FrostedGlassView: ExpoView {
42
+ private let frostView = UIView()
43
+ private let blurView = UIVisualEffectView()
44
+ private let fillView = UIView()
45
+ private let glassView = UIVisualEffectView()
46
+ // Partial blur strength is a paused animation from no effect to the blur; the system drops it when
47
+ // the view leaves its window, so it is rebuilt on every entry.
48
+ private var blurAnimator: UIViewPropertyAnimator?
49
+ // UIGlassEffect renders nothing when applied before the view is laid out in a window.
50
+ private var isGlassMounted = false
51
+
52
+ private var frostStyle: FrostStyle = .regular
53
+ private var blurIntensity: CGFloat = 1
54
+ private var glassStyle: GlassStyle = .none
55
+ private var glassTint: UIColor?
56
+ private var glassColorScheme: GlassColorScheme = .auto
57
+ private var cornerRadius: CGFloat = 0
58
+ private var concentricCorners = false
59
+ private var concentricMinimumRadius: CGFloat?
60
+
61
+ public required init(appContext: AppContext? = nil) {
62
+ super.init(appContext: appContext)
63
+ isUserInteractionEnabled = false
64
+
65
+ frostView.clipsToBounds = true
66
+ frostView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
67
+ for frostLayer in [blurView, fillView] {
68
+ frostLayer.autoresizingMask = [.flexibleWidth, .flexibleHeight]
69
+ frostView.addSubview(frostLayer)
70
+ }
71
+ glassView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
72
+ addSubview(frostView)
73
+ addSubview(glassView)
74
+ }
75
+
76
+ deinit {
77
+ blurAnimator?.stopAnimation(true)
78
+ }
79
+
80
+ public override func layoutSubviews() {
81
+ super.layoutSubviews()
82
+ frostView.frame = bounds
83
+ glassView.frame = bounds
84
+ if window != nil && !isGlassMounted {
85
+ isGlassMounted = true
86
+ applyGlass()
87
+ }
88
+ }
89
+
90
+ public override func didMoveToWindow() {
91
+ super.didMoveToWindow()
92
+ if window == nil {
93
+ isGlassMounted = false
94
+ blurAnimator?.stopAnimation(true)
95
+ blurAnimator = nil
96
+ } else {
97
+ applyBlur()
98
+ setNeedsLayout()
99
+ }
100
+ }
101
+
102
+ func setFrostStyle(_ style: FrostStyle) {
103
+ guard style != frostStyle else { return }
104
+ frostStyle = style
105
+ applyBlur()
106
+ }
107
+
108
+ func setBlurIntensity(_ intensity: Double) {
109
+ let clamped = CGFloat(min(max(intensity / 100, 0), 1))
110
+ guard clamped != blurIntensity else { return }
111
+ blurIntensity = clamped
112
+ applyBlur()
113
+ }
114
+
115
+ func setFillColor(_ color: UIColor?) {
116
+ fillView.backgroundColor = color
117
+ }
118
+
119
+ func setGlassStyle(_ style: GlassStyle) {
120
+ guard style != glassStyle else { return }
121
+ glassStyle = style
122
+ applyGlass()
123
+ }
124
+
125
+ func setGlassTint(_ color: UIColor?) {
126
+ guard color != glassTint else { return }
127
+ glassTint = color
128
+ applyGlass()
129
+ }
130
+
131
+ func setColorScheme(_ scheme: GlassColorScheme) {
132
+ guard scheme != glassColorScheme else { return }
133
+ glassColorScheme = scheme
134
+ glassView.overrideUserInterfaceStyle = scheme.toUIUserInterfaceStyle()
135
+ applyGlass()
136
+ }
137
+
138
+ func setCornerRadius(_ radius: CGFloat?) {
139
+ cornerRadius = radius ?? 0
140
+ applyCorners()
141
+ }
142
+
143
+ func setConcentricCorners(_ concentric: Bool) {
144
+ concentricCorners = concentric
145
+ applyCorners()
146
+ }
147
+
148
+ func setConcentricMinimumRadius(_ minimum: CGFloat?) {
149
+ concentricMinimumRadius = minimum
150
+ applyCorners()
151
+ }
152
+
153
+ private func applyBlur() {
154
+ blurAnimator?.stopAnimation(true)
155
+ blurAnimator = nil
156
+ let effect = UIBlurEffect(style: frostStyle.toUIBlurEffectStyle())
157
+ guard blurIntensity < 1 else {
158
+ blurView.effect = effect
159
+ return
160
+ }
161
+ blurView.effect = nil
162
+ guard window != nil, blurIntensity > 0 else { return }
163
+ let animator = UIViewPropertyAnimator(duration: 1, curve: .linear) { [weak self] in
164
+ self?.blurView.effect = effect
165
+ }
166
+ animator.fractionComplete = blurIntensity
167
+ blurAnimator = animator
168
+ }
169
+
170
+ private func applyGlass() {
171
+ guard isGlassMounted else { return }
172
+ #if compiler(>=6.2) // Xcode 26
173
+ if #available(iOS 26.0, tvOS 26.0, *), isGlassEffectAPIAvailable() {
174
+ // A glass effect assigned over another is not redrawn until the old one is torn down.
175
+ glassView.effect = UIVisualEffect()
176
+ guard let style = glassStyle.toUIGlassEffectStyle() else { return }
177
+ let effect = UIGlassEffect(style: style)
178
+ effect.tintColor = glassTint
179
+ glassView.effect = effect
180
+ applyCorners()
181
+ }
182
+ #endif
183
+ }
184
+
185
+ private func applyCorners() {
186
+ #if compiler(>=6.2) // Xcode 26
187
+ if #available(iOS 26.0, tvOS 26.0, *) {
188
+ let configuration: UICornerConfiguration = concentricCorners
189
+ ? .uniformCorners(radius: .containerConcentric(minimum: concentricMinimumRadius))
190
+ : .uniformCorners(radius: UICornerRadius(floatLiteral: cornerRadius))
191
+ frostView.cornerConfiguration = configuration
192
+ glassView.cornerConfiguration = configuration
193
+ return
194
+ }
195
+ #endif
196
+ frostView.layer.cornerRadius = cornerRadius
197
+ frostView.layer.cornerCurve = .continuous
198
+ }
199
+ }
200
+
201
+ // UIGlassEffect crashes on the iOS 26 betas that shipped the class without its factory.
202
+ private func isGlassEffectAPIAvailable() -> Bool {
203
+ guard let glassEffectClass = NSClassFromString("UIGlassEffect") as? NSObject.Type else {
204
+ return false
205
+ }
206
+ return glassEffectClass.responds(to: Selector(("effectWithStyle:")))
207
+ }
@@ -6,7 +6,7 @@ Pod::Spec.new do |s|
6
6
  s.name = 'FunkitGlassEffect'
7
7
  s.version = package['version']
8
8
  s.summary = 'Liquid Glass sheet material for @funkit/connect-rn'
9
- s.description = 'iOS 26 UIGlassEffect view with container-concentric corners, forked from expo-glass-effect.'
9
+ s.description = 'A blur + Liquid Glass material view, and an iOS 26 UIGlassEffect view with container-concentric corners forked from expo-glass-effect.'
10
10
  s.license = package['license']
11
11
  s.author = package['author']
12
12
  s.homepage = package['homepage']
@@ -109,6 +109,48 @@ public final class FunkitGlassEffectModule: Module {
109
109
  view.setConcentricMinimumRadius(minimum)
110
110
  }
111
111
  }
112
+
113
+ Constant("isFrostedGlassViewAvailable") {
114
+ true
115
+ }
116
+
117
+ View(FrostedGlassView.self) {
118
+ Prop("blurStyle", .regular) { (view, style: FrostStyle) in
119
+ view.setFrostStyle(style)
120
+ }
121
+
122
+ Prop("blurIntensity", 100.0) { (view, intensity: Double) in
123
+ view.setBlurIntensity(intensity)
124
+ }
125
+
126
+ Prop("fillColor") { (view, color: UIColor?) in
127
+ view.setFillColor(color)
128
+ }
129
+
130
+ Prop("glassStyle", .none) { (view, style: GlassStyle) in
131
+ view.setGlassStyle(style)
132
+ }
133
+
134
+ Prop("glassTint") { (view, color: UIColor?) in
135
+ view.setGlassTint(color)
136
+ }
137
+
138
+ Prop("colorScheme", .auto) { (view, scheme: GlassColorScheme) in
139
+ view.setColorScheme(scheme)
140
+ }
141
+
142
+ Prop("cornerRadius") { (view, radius: CGFloat?) in
143
+ view.setCornerRadius(radius)
144
+ }
145
+
146
+ Prop("concentricCorners", false) { (view, concentric: Bool) in
147
+ view.setConcentricCorners(concentric)
148
+ }
149
+
150
+ Prop("concentricMinimumRadius") { (view, minimum: CGFloat?) in
151
+ view.setConcentricMinimumRadius(minimum)
152
+ }
153
+ }
112
154
  }
113
155
  }
114
156
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect-rn",
3
- "version": "8.3.0",
3
+ "version": "9.0.1",
4
4
  "description": "React Native bindings for @funkit/connect. Re-exports the headless @funkit/connect-core logic; the RN platform halves (Restyle theme, WebView Swapped transport, Transfer/Swapped screens, logging) land in later releases.",
5
5
  "files": [
6
6
  "dist",
@@ -41,7 +41,8 @@
41
41
  "author": "https://fun.xyz/",
42
42
  "license": "MIT",
43
43
  "dependencies": {
44
- "@moonpay/platform-sdk-react-native": "1.18.0",
44
+ "@lifeomic/attempt": "3.1.0",
45
+ "@moonpay/platform-sdk-react-native": "1.21.0",
45
46
  "@shopify/restyle": "^2.4.5",
46
47
  "@tanstack/react-form": "1.33.5",
47
48
  "@transak/ui-components-core": "0.5.0",
@@ -49,10 +50,10 @@
49
50
  "iso-3166-2": "1.0.0",
50
51
  "libphonenumber-js": "1.13.6",
51
52
  "react-i18next": "12.3.1",
52
- "@funkit/chains": "2.4.2",
53
+ "@funkit/connect-core": "8.6.0",
54
+ "@funkit/api-base": "8.6.0",
53
55
  "@funkit/utils": "5.0.2",
54
- "@funkit/api-base": "8.5.2",
55
- "@funkit/connect-core": "8.5.0"
56
+ "@funkit/chains": "2.4.2"
56
57
  },
57
58
  "peerDependencies": {
58
59
  "@gorhom/bottom-sheet": ">=5",
@@ -74,7 +75,7 @@
74
75
  "react-native-reanimated": ">=3.0.0",
75
76
  "react-native-safe-area-context": ">=4.0.0",
76
77
  "react-native-svg": ">=15.0.0",
77
- "react-native-webview": ">=13.0.0",
78
+ "react-native-webview": ">=13.15.0",
78
79
  "viem": ">=2.22.14"
79
80
  },
80
81
  "devDependencies": {
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/preview/flowPreview.tsx", "../src/fiat/formLayout.ts", "../src/fiat/keyboardReturnKey.ts", "../src/fiat/postalCodeCountries.ts"],
4
- "sourcesContent": ["import type { FiatStepResponse } from '@funkit/connect-core'\nimport {\n type Dispatch,\n type ReactNode,\n type SetStateAction,\n createContext,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react'\n\nimport type { KycCompletion } from '../fiat/useKycCompletion'\nimport type { KycSection } from '../fiat/formLayout'\nimport type { FlowScreen } from '../flow/FunkitFlowProvider'\n\n/**\n * Where the fiat session opens. Each field seeds one piece of state a user would otherwise reach\n * by tapping through, so any screen of the rail is one seed away.\n */\nexport interface FiatPreviewSeed {\n /** The step response the session opens on, as if the backend had just sent it. */\n step?: FiatStepResponse\n /** The amount entry's value. */\n amount?: string\n /** Presses the entry CTA once it is ready: opens the contact round, or the KYC options card. */\n pressEntry?: boolean\n /** An identity round's consent intro, or its form open at a section. */\n identity?: { page: 'consent' } | { page: 'form'; section?: KycSection }\n /** Past the document-capture intro, onto the provider's own surface. */\n documentStarted?: boolean\n /** The acknowledgement a finished identity form shows before its verdict. */\n kycCompletion?: KycCompletion\n /** A provider surface that failed, as the adapter reports it. */\n surfaceFailure?: { code: string; detail?: string }\n /** Submits the seeded step's CTA with this id on open \u2014 how a failed send is reached. */\n submitOnOpen?: string\n}\n\nexport interface DepositPreviewSeed {\n /** The screen the flow opens on; defaults to the root `beginDeposit` picks. Transfer opens above it. */\n screen?: Extract<FlowScreen, 'depositAmount' | 'addMoney' | 'transfer'>\n fiat?: FiatPreviewSeed\n /** The deposit chain, by id, as if picked from the Crypto row \u2014 Transfer needs one. */\n chainId?: string\n}\n\ntype WithdrawalStackScreen = Extract<\n FlowScreen,\n | 'withdrawMethod'\n | 'withdrawAmount'\n | 'withdrawAddress'\n | 'withdrawReceiveToken'\n>\n\n/** The submitted withdrawal the completion screen reports on. */\nexport interface WithdrawalPreviewCompletion {\n txHash: `0x${string}`\n amountLabel: string\n usdLabel?: string\n tokenLabel?: string\n}\n\ninterface WithdrawalPreviewFields {\n /** The payout method picked on the list, by `WithdrawalMethodOption.id`. */\n methodId?: string\n amount?: string\n recipient?: string\n /** The retryable error that replaces every screen after a failed execution. */\n executionError?: boolean\n}\n\n/**\n * The withdrawal flow's opening state. The type rules out the stacks that render nothing: an\n * empty one, and a completion screen with no withdrawal to report.\n */\nexport type WithdrawalPreviewSeed = WithdrawalPreviewFields &\n (\n | {\n /** The screens on the stack, root first; defaults to the payout-method list. */\n stack?: [WithdrawalStackScreen, ...WithdrawalStackScreen[]]\n complete?: undefined\n }\n | { stack: ['withdrawComplete']; complete: WithdrawalPreviewCompletion }\n )\n\n/**\n * A state to open the SDK's flow at, for hosted previews and QA builds.\n * - Consumed by the next matching `begin*` only; closing and reopening starts clean.\n * - Never set in production: every read falls back to the flow's own start.\n */\nexport interface FlowPreviewSeed {\n deposit?: DepositPreviewSeed\n withdrawal?: WithdrawalPreviewSeed\n}\n\nconst HostPreviewContext = createContext<FlowPreviewSeed | undefined>(undefined)\n\n/**\n * Opens the next `beginDeposit` / `beginWithdrawal` below it at `seed`.\n * - Mount it above `<FunkitProvider>`.\n * - Memoize `seed`: a new object is a new preview, so one built inline reopens every flow seeded.\n */\nexport function FunkitFlowPreview({\n seed,\n children,\n}: {\n seed: FlowPreviewSeed | undefined\n children: ReactNode\n}) {\n return (\n <HostPreviewContext.Provider value={seed}>\n {children}\n </HostPreviewContext.Provider>\n )\n}\n\n/** The seed a host mounted; read by the flow provider when a flow opens. */\nexport function useHostFlowPreview(): FlowPreviewSeed | undefined {\n return useContext(HostPreviewContext)\n}\n\n/** The seeds of the flow session a host preview opened; empty everywhere else. */\nexport interface ActivePreview {\n deposit?: DepositPreviewSeed\n withdrawal?: WithdrawalPreviewSeed\n}\n\nconst NO_PREVIEW: ActivePreview = {}\nconst ActivePreviewContext = createContext<ActivePreview>(NO_PREVIEW)\n\n/** Scopes a consumed seed to the one flow session it opened. */\nexport function ActiveFlowPreview({\n deposit,\n withdrawal,\n children,\n}: {\n deposit?: DepositPreviewSeed\n withdrawal?: WithdrawalPreviewSeed\n children: ReactNode\n}) {\n // The value names the session: readers are tracked against it.\n const preview = useMemo(\n () =>\n deposit === undefined && withdrawal === undefined\n ? NO_PREVIEW\n : { deposit, withdrawal },\n [deposit, withdrawal],\n )\n return (\n <ActivePreviewContext.Provider value={preview}>\n {children}\n </ActivePreviewContext.Provider>\n )\n}\n\n/** Reads one seed value out of the session's preview. */\nexport type PreviewPick<T> = (preview: ActivePreview) => T | undefined\n\n/**\n * Every seed value a flow reads, one reader each. Readers are tracked by identity, so each is\n * declared once here rather than inline where it is read.\n */\nexport const SEED = {\n fiatAmount: (p) => p.deposit?.fiat?.amount,\n fiatStep: (p) => p.deposit?.fiat?.step,\n fiatPressEntry: (p) => p.deposit?.fiat?.pressEntry,\n fiatSubmitOnOpen: (p) => p.deposit?.fiat?.submitOnOpen,\n fiatSurfaceFailure: (p) => p.deposit?.fiat?.surfaceFailure,\n kycCompletion: (p) => p.deposit?.fiat?.kycCompletion,\n identityPage: (p) => p.deposit?.fiat?.identity?.page,\n identitySection: (p) => {\n const identity = p.deposit?.fiat?.identity\n return identity?.page === 'form' ? identity.section : undefined\n },\n documentStarted: (p) => p.deposit?.fiat?.documentStarted,\n depositChainId: (p) => p.deposit?.chainId,\n withdrawalMethodId: (p) => p.withdrawal?.methodId,\n withdrawalAmount: (p) => p.withdrawal?.amount,\n withdrawalRecipient: (p) => p.withdrawal?.recipient,\n withdrawalComplete: (p) => p.withdrawal?.complete,\n withdrawalExecutionError: (p) => p.withdrawal?.executionError,\n} satisfies Record<string, PreviewPick<unknown>>\n\nconst readers = new WeakMap<ActivePreview, Set<PreviewPick<unknown>>>()\n\n/**\n * The seed value for the first mount that reads it; `undefined` for every mount after.\n * - A later mount of the same reader is the user moving on (a new round, a return to the entry),\n * so a seed never re-applies after the state it describes.\n * - Marked read on commit, so Strict Mode's double render still sees it.\n */\nexport function useSeed<T>(pick: PreviewPick<T>): T | undefined {\n const preview = useContext(ActivePreviewContext)\n const [seed] = useState(() =>\n readers.get(preview)?.has(pick) === true ? undefined : pick(preview),\n )\n useEffect(() => {\n if (preview === NO_PREVIEW) {\n return\n }\n const read = readers.get(preview) ?? new Set()\n read.add(pick)\n readers.set(preview, read)\n }, [preview, pick])\n return seed\n}\n\n/**\n * `useState` whose initial value a host preview may seed; production always starts at `initial`.\n * `fromSeed` shapes a seed value into the state when the two differ.\n */\nexport function useSeededState<T>(\n pick: PreviewPick<T>,\n initial: T,\n): [T, Dispatch<SetStateAction<T>>]\nexport function useSeededState<S, T>(\n pick: PreviewPick<S>,\n initial: T,\n fromSeed: (seed: S) => T,\n): [T, Dispatch<SetStateAction<T>>]\nexport function useSeededState<S, T>(\n pick: PreviewPick<S>,\n initial: T,\n fromSeed?: (seed: S) => T,\n): [T, Dispatch<SetStateAction<T>>] {\n const seed = useSeed(pick)\n return useState<T>(() => {\n if (seed === undefined) {\n return initial\n }\n return fromSeed === undefined ? (seed as unknown as T) : fromSeed(seed)\n })\n}\n", "import type { FormField, KycFieldId } from '@funkit/connect-core'\nimport { isValueField } from '@funkit/connect-core'\nimport { Platform, type TextInputProps } from 'react-native'\n\nimport { PADS_WITHOUT_RETURN_KEY } from './keyboardReturnKey'\nimport { type PostalCodeForm, postalCodeForm } from './postalCodeCountries'\n\n/**\n * The pages the US form is drawn as, in the order the design steps them.\n *\n * Figma \"EDIT: KYC Enhancements\": 1508:2616 (name), 1844:17471 (date of\n * birth), 1631:7256 (address), 1631:7883 (SSN). `DETAILS` is not a frame \u2014 it\n * is where a field the design never drew goes, so a form the server words its\n * own way still renders.\n */\nexport type KycSection =\n | 'NAME'\n | 'DOB'\n | 'NATIONALITY'\n | 'COUNTRY'\n | 'ADDRESS'\n | 'SSN'\n | 'PHONE'\n | 'OCCUPATION'\n | 'EMPLOYMENT'\n | 'PURPOSE'\n | 'SOURCE_OF_WEALTH'\n | 'INCOME'\n | 'ACTIVITY'\n | 'DETAILS'\n\nexport interface KycSectionPage {\n section: KycSection\n /** Drawn as one card with a rule between rows, rather than loose boxes. */\n grouped: boolean\n /** Fields sharing a row sit side by side, as the design pairs them. */\n rows: FormField[][]\n}\n\n/**\n * The questionnaire the due-diligence figures arrive under. The contract types\n * a questionnaire id as a template, so these are the three this build draws\n * a page for; any other lands in `DETAILS`.\n */\nexport const GROSS_ANNUAL_INCOME =\n 'QUESTIONNAIRE_RESPONSE:customerDueDiligence:grossAnnualIncome'\nexport const EXPECTED_AMOUNT_PER_MONTH =\n 'QUESTIONNAIRE_RESPONSE:customerDueDiligence:expectedTransactionAmountPerMonth'\nexport const TRANSACTIONS_PER_MONTH =\n 'QUESTIONNAIRE_RESPONSE:customerDueDiligence:transactionFrequencyPerMonth'\n\n/**\n * Which page a field belongs to, by id.\n *\n * The contract closes the id set, so these are the canonical names and there\n * is no second spelling to carry. An id with no page here lands in `DETAILS`\n * rather than being refused: the server owns the list, and a form is not\n * undrawable just because it asks for something the frames do not group.\n */\nconst SECTION_BY_ID: Readonly<Partial<Record<KycFieldId, KycSection>>> = {\n // 1508:2616 \u2014 \"First name\", \"M.I.\", \"Last Name\".\n LEGAL_FIRST_NAME: 'NAME',\n LEGAL_MIDDLE_NAME: 'NAME',\n LEGAL_LAST_NAME: 'NAME',\n // 1844:17471 \u2014 its own page, asked for on its own over the date picker.\n DATE_OF_BIRTH: 'DOB',\n NATIONALITY: 'NATIONALITY',\n // 1631:7256 \u2014 \"Address\", \"Apartment, suite, etc.\", \"City\", \"State\", \"ZIP code\".\n RESIDENTIAL_ADDRESS_LINE_1: 'ADDRESS',\n RESIDENTIAL_ADDRESS_LINE_2: 'ADDRESS',\n RESIDENTIAL_ADDRESS_CITY: 'ADDRESS',\n RESIDENTIAL_ADDRESS_REGION: 'ADDRESS',\n RESIDENTIAL_ADDRESS_POSTAL_CODE: 'ADDRESS',\n RESIDENTIAL_ADDRESS_COUNTRY: 'COUNTRY',\n // 1631:7883 \u2014 \"SSN\".\n TAX_IDENTIFIER: 'SSN',\n TAX_RESIDENCE_COUNTRY: 'COUNTRY',\n OCCUPATION_TITLE: 'OCCUPATION',\n OCCUPATION_INDUSTRY: 'OCCUPATION',\n PURPOSE_OF_TRANSACTION: 'PURPOSE',\n PURPOSE_OF_SERVICE: 'PURPOSE',\n // MoonPay's customer due diligence round, asked after the SSN.\n PHONE_NUMBER: 'PHONE',\n EMPLOYMENT_STATUS: 'EMPLOYMENT',\n SOURCE_OF_WEALTH_DECLARATION: 'SOURCE_OF_WEALTH',\n [GROSS_ANNUAL_INCOME]: 'INCOME',\n [EXPECTED_AMOUNT_PER_MONTH]: 'ACTIVITY',\n [TRANSACTIONS_PER_MONTH]: 'ACTIVITY',\n}\n\n/**\n * The keyboard a typed field raises. The SSN page is drawn over a number pad\n * (1631:7883) and the due-diligence figures over the pads that fit them;\n * every other page in the form is drawn over letters.\n */\nconst KEYBOARD_BY_ID: Readonly<\n Partial<Record<KycFieldId, TextInputProps['keyboardType']>>\n> = {\n TAX_IDENTIFIER: 'number-pad',\n PHONE_NUMBER: 'phone-pad',\n [GROSS_ANNUAL_INCOME]: 'decimal-pad',\n [EXPECTED_AMOUNT_PER_MONTH]: 'decimal-pad',\n [TRANSACTIONS_PER_MONTH]: 'number-pad',\n}\n\n/**\n * Field types a page can draw. A date and a country are typed into the same\n * filled box as any other answer; a hosted step is an errand the user runs\n * elsewhere and a document streams to an endpoint this build has not\n * installed, so neither has a box to draw.\n */\nconst DRAWN_TYPES = new Set(['TEXT', 'SELECT', 'DATE', 'COUNTRY'])\n\n/** One card ruled between its rows (1631:7256, \"address\"). */\nconst GROUPED_SECTIONS = new Set<KycSection>(['ADDRESS'])\n\n/**\n * The order 1508:2616 \u2192 1844:17471 \u2192 1631:7256 \u2192 1631:7883 walks, anything\n * else trailing.\n */\nconst SECTION_ORDER: readonly KycSection[] = [\n 'NAME',\n 'DOB',\n 'NATIONALITY',\n 'COUNTRY',\n 'ADDRESS',\n 'SSN',\n 'PHONE',\n 'OCCUPATION',\n 'EMPLOYMENT',\n 'PURPOSE',\n 'SOURCE_OF_WEALTH',\n 'INCOME',\n 'ACTIVITY',\n 'DETAILS',\n]\n\n/**\n * The page's field a date picker can answer, when that is the whole page.\n *\n * A picker takes the keyboard's slot, so it can only be offered on a page\n * with nothing else to type: a date beside two names would leave one of the\n * two controls covering the other. Anywhere else the date is typed.\n */\nconst IDENTITY_SECTIONS: ReadonlySet<KycSection> = new Set<KycSection>([\n 'NAME',\n 'DOB',\n 'NATIONALITY',\n 'COUNTRY',\n 'ADDRESS',\n 'SSN',\n])\n\n/**\n * The server owns the field list, so an id this build does not know is not\n * identity: only the frames that collect who someone is qualify.\n */\nexport function isIdentityField(field: FormField): boolean {\n const section = SECTION_BY_ID[field.id]\n return section !== undefined && IDENTITY_SECTIONS.has(section)\n}\n\n/**\n * The pages that draw their answers on the page rather than behind a chooser\n * (2475:8992).\n *\n * Named, not inferred from the field's type: `DETAILS` also collects a\n * `SELECT`, but it holds whatever the server asks for that no frame drew, and\n * a list of unknown length is what the chooser's sheet is for.\n */\nconst INLINE_CHOICE_SECTIONS: ReadonlySet<KycSection> = new Set<KycSection>([\n 'OCCUPATION',\n 'EMPLOYMENT',\n 'PURPOSE',\n 'SOURCE_OF_WEALTH',\n])\n\nexport function isInlineChoiceSection(section: KycSection): boolean {\n return INLINE_CHOICE_SECTIONS.has(section)\n}\n\nexport function pickedDateField(page: KycSectionPage): FormField | undefined {\n const fields = page.rows.flat()\n const only = fields.length === 1 ? fields[0] : undefined\n return only?.type === 'DATE' ? only : undefined\n}\n\n/**\n * Whether the field is typed into, and so takes a turn in the return-key\n * chain. A choice is not.\n */\nexport function isFocusableField(field: FormField): boolean {\n return field.type === 'TEXT' || field.type === 'DATE'\n}\n\n/** Pages whose keyboards read \"next\" on the field that tries the page too (1950:2055, 1951:9265). */\nconst NEXT_TO_TRY_SECTIONS: ReadonlySet<KycSection> = new Set<KycSection>([\n 'NAME',\n 'ADDRESS',\n])\n\nexport interface ReturnHop {\n label: 'next' | 'done'\n /** Absent where the return key tries the page instead. */\n to?: FormField\n}\n\n/**\n * Where a typed field's return key goes: the next required typed field.\n *\n * - An optional line is stepped over (2334:7164) but still hands on when the\n * user taps into it.\n */\nexport function returnHop(\n section: KycSection,\n typedFields: readonly FormField[],\n fieldId: string,\n): ReturnHop | undefined {\n const at = typedFields.findIndex((field) => field.id === fieldId)\n if (at < 0) {\n return undefined\n }\n const to = typedFields.slice(at + 1).find((field) => field.required)\n if (to !== undefined) {\n return { label: 'next', to }\n }\n return { label: NEXT_TO_TRY_SECTIONS.has(section) ? 'next' : 'done' }\n}\n\n/**\n * - Digits alone take the number pad, whose missing return key the page\n * answers with Continue (`isDigitsField`).\n * - A hyphen or space needs iOS's digits-first keyboard, which can type it;\n * Android has none, so it keeps letters.\n */\nconst POSTAL_CODE_KEYBOARD: Readonly<\n Record<PostalCodeForm, TextInputProps['keyboardType']>\n> = {\n digits: 'number-pad',\n separated: Platform.OS === 'ios' ? 'numbers-and-punctuation' : undefined,\n}\n\n/** `country` is the address's, whose postal codes decide the postal code's keyboard. */\nexport function fieldKeyboardType(\n field: FormField,\n country?: string,\n): TextInputProps['keyboardType'] | undefined {\n if (field.type !== 'TEXT') {\n return undefined\n }\n if (field.id === 'RESIDENTIAL_ADDRESS_POSTAL_CODE') {\n const form = postalCodeForm(country)\n return form === undefined ? undefined : POSTAL_CODE_KEYBOARD[form]\n }\n return KEYBOARD_BY_ID[field.id]\n}\n\n/** Whether the field raises a pad rather than letters, and so has no return key. */\nexport function isDigitsField(field: FormField, country?: string): boolean {\n const keyboardType = fieldKeyboardType(field, country)\n return keyboardType !== undefined && PADS_WITHOUT_RETURN_KEY.has(keyboardType)\n}\n\n/** Whether the field is drawn at a fixed width rather than growing to fill. */\nexport function isFixedWidthField(field: FormField): boolean {\n return field.id === 'LEGAL_MIDDLE_NAME'\n}\n\n/**\n * The form's fields that no page draws.\n *\n * Type only: an unknown id has a page (`DETAILS`), so refusing one would\n * reject a whole form over a field the screens can draw perfectly well. A\n * form with any of these cannot be completed here, so the caller shows its\n * unsupported state rather than a form missing a field the server requires.\n */\nexport function unsupportedFields(fields: readonly FormField[]): FormField[] {\n return fields.filter((field) => !DRAWN_TYPES.has(field.type))\n}\n\n/**\n * Splits a form into the pages the design steps through.\n *\n * Pages keep the design's order; fields keep the server's, so a page that\n * gains a field it already draws renders it without a client release. A page\n * with no fields is not a page.\n */\nexport function sectionPages(fields: readonly FormField[]): KycSectionPage[] {\n const bySection = new Map<KycSection, FormField[]>()\n for (const field of fields) {\n if (!DRAWN_TYPES.has(field.type)) {\n continue\n }\n // A state the provider does not require is not asked: European\n // addresses have none, and the design draws no row for it.\n if (field.id === 'RESIDENTIAL_ADDRESS_REGION' && !field.required) {\n continue\n }\n const section = SECTION_BY_ID[field.id] ?? 'DETAILS'\n const collected = bySection.get(section) ?? []\n collected.push(field)\n bySection.set(section, collected)\n }\n\n return SECTION_ORDER.flatMap<KycSectionPage>((section) => {\n const collected = bySection.get(section)\n if (collected === undefined) {\n return []\n }\n if (isInlineChoiceSection(section) || section === 'DETAILS') {\n return collected.map((field) => ({\n section,\n grouped: false,\n rows: [[field]],\n }))\n }\n return [\n {\n section,\n grouped: GROUPED_SECTIONS.has(section),\n rows:\n section === 'ADDRESS'\n ? addressRows(collected)\n : collected.map((field) => [field]),\n },\n ]\n })\n}\n\n/**\n * The address card as the design lays it out for the country (1631:7256):\n * the street, the apartment line, then the city with the state and ZIP paired\n * under it \u2014 or, where the provider asks for no state, the postal code paired\n * before the city, as a European address reads. A field the design does not\n * place trails on its own row.\n */\nfunction addressRows(fields: readonly FormField[]): FormField[][] {\n const byId = new Map(fields.map((field) => [field.id, field]))\n const take = (id: KycFieldId) => {\n const field = byId.get(id)\n byId.delete(id)\n return field\n }\n const line1 = take('RESIDENTIAL_ADDRESS_LINE_1')\n const line2 = take('RESIDENTIAL_ADDRESS_LINE_2')\n const city = take('RESIDENTIAL_ADDRESS_CITY')\n const region = take('RESIDENTIAL_ADDRESS_REGION')\n const postal = take('RESIDENTIAL_ADDRESS_POSTAL_CODE')\n const rows: (FormField | undefined)[][] = [[line1], [line2]]\n if (region === undefined) {\n rows.push([postal, city])\n } else {\n rows.push([city], [region, postal])\n }\n return [...rows, ...[...byId.values()].map((field) => [field])]\n .map((row) => row.filter((field) => field !== undefined))\n .filter((row) => row.length > 0)\n}\n", "import type { TextInputProps } from 'react-native'\n\n/**\n * Keyboards with no return key. iOS draws a floating button of its own when\n * one of these is asked for a return key, and it lands over the screen's\n * bottom-right \u2014 where the advance control already is.\n */\nexport const PADS_WITHOUT_RETURN_KEY = new Set<TextInputProps['keyboardType']>([\n 'number-pad',\n 'numeric',\n 'decimal-pad',\n 'phone-pad',\n])\n", "/**\n * How a country writes its postal codes, where Google's address metadata\n * (libaddressinput, chromium-i18n.appspot.com/ssl-address/data) and\n * `postcode-validator` agree. Anywhere they disagree is on neither list, so\n * the keyboard stays letters (`postalCodeCountries.drift.test.ts`).\n *\n * - `digits`: codes are written as digits alone. The US ZIP+4 extension and\n * FR's space are optional, and neither is how the post office writes them.\n * - `separated`: digits the country writes split by a hyphen or space\n * (`12345-678`, `123 45`), which a number pad cannot type.\n * - A country whose codes carry any letter (GB, CA, NL, IE, AR, MT, LV\u2026), or\n * that has no postal code, is on neither list.\n */\nexport type PostalCodeForm = 'digits' | 'separated'\n\nconst codes = (list: string): ReadonlySet<string> =>\n new Set(list.trim().split(/\\s+/))\n\nconst DIGIT_COUNTRIES = codes(`\n AF AL AM AS AT AU AX AZ BA BD BE BG BH BL BT BY CC CH CL CN CO CU CV\n CX CY DE DK DO DZ EC EE EG EH ES ET FI FM FO FR GE GF GL GN GP GT GU\n GW HM HN HR HT HU ID IL IN IQ IS IT JO KE KG KH KR KW KZ LA LI LK LR\n LS LT LU MA MC MD ME MF MG MH MK MM MN MP MQ MV MX MY MZ NA NC NE NF\n NG NO NP NZ PF PG PH PK PM PR PW PY RE RO RS RU SA SD SG SI SJ SM SN\n TH TJ TM TN TR TW TZ UA UM US UY UZ VA VE VI VN WF XK YT ZA ZM\n`)\n\nconst SEPARATED_COUNTRIES = codes(`\n BR CR CZ GR IR JP LB PL PT SE SK\n`)\n\nexport function postalCodeForm(\n alpha2: string | undefined,\n): PostalCodeForm | undefined {\n const code = alpha2?.toUpperCase()\n if (code === undefined) {\n return undefined\n }\n if (DIGIT_COUNTRIES.has(code)) {\n return 'digits'\n }\n return SEPARATED_COUNTRIES.has(code) ? 'separated' : undefined\n}\n"],
5
- "mappings": ";AACA;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAqGH;AAfJ,IAAM,qBAAqB,cAA2C,MAAS;AAOxE,SAAS,kBAAkB;AAAA,EAChC;AAAA,EACA;AACF,GAGG;AACD,SACE,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,MACjC,UACH;AAEJ;AAGO,SAAS,qBAAkD;AAChE,SAAO,WAAW,kBAAkB;AACtC;AAQA,IAAM,aAA4B,CAAC;AACnC,IAAM,uBAAuB,cAA6B,UAAU;AAG7D,SAAS,kBAA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