@brissoto/pay-react-native 0.0.0-stage → 1.5.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 (172) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +181 -2
  3. package/assets/brand/paypal-wordmark.png +0 -0
  4. package/assets/fonts/Figtree-Bold.ttf +0 -0
  5. package/assets/fonts/Figtree-ExtraBold.ttf +0 -0
  6. package/assets/fonts/Figtree-Medium.ttf +0 -0
  7. package/assets/fonts/Figtree-Regular.ttf +0 -0
  8. package/assets/fonts/Figtree-SemiBold.ttf +0 -0
  9. package/assets/fonts/OFL.txt +93 -0
  10. package/assets/logos/airtel.png +0 -0
  11. package/assets/logos/app-store.png +0 -0
  12. package/assets/logos/apple-pay.png +0 -0
  13. package/assets/logos/at.png +0 -0
  14. package/assets/logos/bancontact.png +0 -0
  15. package/assets/logos/card.png +0 -0
  16. package/assets/logos/cb.png +0 -0
  17. package/assets/logos/celtiis.png +0 -0
  18. package/assets/logos/eps.png +0 -0
  19. package/assets/logos/feexpay.png +0 -0
  20. package/assets/logos/google-pay.png +0 -0
  21. package/assets/logos/google-play.png +0 -0
  22. package/assets/logos/iapkit.png +0 -0
  23. package/assets/logos/ideal.png +0 -0
  24. package/assets/logos/mastercard.png +0 -0
  25. package/assets/logos/mixx.png +0 -0
  26. package/assets/logos/moov.png +0 -0
  27. package/assets/logos/mtn.png +0 -0
  28. package/assets/logos/mybank.png +0 -0
  29. package/assets/logos/nexus.png +0 -0
  30. package/assets/logos/orange.png +0 -0
  31. package/assets/logos/pawapay.png +0 -0
  32. package/assets/logos/paypal.png +0 -0
  33. package/assets/logos/telecel.png +0 -0
  34. package/assets/logos/tnm.png +0 -0
  35. package/assets/logos/visa.png +0 -0
  36. package/assets/logos/vodacom.png +0 -0
  37. package/assets/logos/wave.png +0 -0
  38. package/dist/checkout-core/hooks/use-checkout-controller.d.ts +9 -0
  39. package/dist/checkout-core/hooks/use-checkout-controller.js +563 -0
  40. package/dist/checkout-core/hooks/use-checkout-payment.d.ts +9 -0
  41. package/dist/checkout-core/hooks/use-checkout-payment.js +136 -0
  42. package/dist/checkout-core/hooks/use-checkout-timers.d.ts +15 -0
  43. package/dist/checkout-core/hooks/use-checkout-timers.js +44 -0
  44. package/dist/checkout-core/hooks/use-phone-number.d.ts +7 -0
  45. package/dist/checkout-core/hooks/use-phone-number.js +82 -0
  46. package/dist/checkout-core/messages/en.d.ts +302 -0
  47. package/dist/checkout-core/messages/en.js +301 -0
  48. package/dist/checkout-core/messages/fr.d.ts +4 -0
  49. package/dist/checkout-core/messages/fr.js +302 -0
  50. package/dist/checkout-core/models/checkout.card.utils.d.ts +7 -0
  51. package/dist/checkout-core/models/checkout.card.utils.js +25 -0
  52. package/dist/checkout-core/models/checkout.constants.d.ts +101 -0
  53. package/dist/checkout-core/models/checkout.constants.js +339 -0
  54. package/dist/checkout-core/models/checkout.country.utils.d.ts +17 -0
  55. package/dist/checkout-core/models/checkout.country.utils.js +45 -0
  56. package/dist/checkout-core/models/checkout.enum.d.ts +233 -0
  57. package/dist/checkout-core/models/checkout.enum.js +259 -0
  58. package/dist/checkout-core/models/checkout.fetch.utils.d.ts +6 -0
  59. package/dist/checkout-core/models/checkout.fetch.utils.js +22 -0
  60. package/dist/checkout-core/models/checkout.interface.d.ts +698 -0
  61. package/dist/checkout-core/models/checkout.interface.js +1 -0
  62. package/dist/checkout-core/models/checkout.money.utils.d.ts +7 -0
  63. package/dist/checkout-core/models/checkout.money.utils.js +21 -0
  64. package/dist/checkout-core/models/checkout.phone.utils.d.ts +33 -0
  65. package/dist/checkout-core/models/checkout.phone.utils.js +159 -0
  66. package/dist/checkout-core/models/checkout.view.utils.d.ts +77 -0
  67. package/dist/checkout-core/models/checkout.view.utils.js +331 -0
  68. package/dist/checkout-core/models/domain.enum.d.ts +106 -0
  69. package/dist/checkout-core/models/domain.enum.js +113 -0
  70. package/dist/components/BrissotoPayProvider.d.ts +8 -0
  71. package/dist/components/BrissotoPayProvider.js +39 -0
  72. package/dist/components/PaymentSheetModal.d.ts +9 -0
  73. package/dist/components/PaymentSheetModal.js +106 -0
  74. package/dist/components/SheetBone.d.ts +3 -0
  75. package/dist/components/SheetBone.js +12 -0
  76. package/dist/components/SheetButton.d.ts +7 -0
  77. package/dist/components/SheetButton.js +47 -0
  78. package/dist/components/SheetCardFields.d.ts +10 -0
  79. package/dist/components/SheetCardFields.js +86 -0
  80. package/dist/components/SheetChosenMethod.d.ts +3 -0
  81. package/dist/components/SheetChosenMethod.js +60 -0
  82. package/dist/components/SheetCodeField.d.ts +8 -0
  83. package/dist/components/SheetCodeField.js +98 -0
  84. package/dist/components/SheetContent.d.ts +3 -0
  85. package/dist/components/SheetContent.js +133 -0
  86. package/dist/components/SheetDial.d.ts +7 -0
  87. package/dist/components/SheetDial.js +36 -0
  88. package/dist/components/SheetFailed.d.ts +3 -0
  89. package/dist/components/SheetFailed.js +44 -0
  90. package/dist/components/SheetForm.d.ts +8 -0
  91. package/dist/components/SheetForm.js +141 -0
  92. package/dist/components/SheetGrabber.d.ts +2 -0
  93. package/dist/components/SheetGrabber.js +17 -0
  94. package/dist/components/SheetHeader.d.ts +7 -0
  95. package/dist/components/SheetHeader.js +83 -0
  96. package/dist/components/SheetIcon.d.ts +3 -0
  97. package/dist/components/SheetIcon.js +78 -0
  98. package/dist/components/SheetLayout.d.ts +11 -0
  99. package/dist/components/SheetLayout.js +63 -0
  100. package/dist/components/SheetLogo.d.ts +3 -0
  101. package/dist/components/SheetLogo.js +20 -0
  102. package/dist/components/SheetMessage.d.ts +3 -0
  103. package/dist/components/SheetMessage.js +15 -0
  104. package/dist/components/SheetMethodCard.d.ts +3 -0
  105. package/dist/components/SheetMethodCard.js +71 -0
  106. package/dist/components/SheetNameField.d.ts +7 -0
  107. package/dist/components/SheetNameField.js +48 -0
  108. package/dist/components/SheetPaypalButton.d.ts +3 -0
  109. package/dist/components/SheetPaypalButton.js +23 -0
  110. package/dist/components/SheetPhoneField.d.ts +3 -0
  111. package/dist/components/SheetPhoneField.js +59 -0
  112. package/dist/components/SheetPillSelect.d.ts +7 -0
  113. package/dist/components/SheetPillSelect.js +134 -0
  114. package/dist/components/SheetRow.d.ts +3 -0
  115. package/dist/components/SheetRow.js +28 -0
  116. package/dist/components/SheetSimulator.d.ts +6 -0
  117. package/dist/components/SheetSimulator.js +40 -0
  118. package/dist/components/SheetSkeleton.d.ts +5 -0
  119. package/dist/components/SheetSkeleton.js +23 -0
  120. package/dist/components/SheetStep.d.ts +6 -0
  121. package/dist/components/SheetStep.js +21 -0
  122. package/dist/components/SheetStoreTab.d.ts +7 -0
  123. package/dist/components/SheetStoreTab.js +27 -0
  124. package/dist/components/SheetSuccess.d.ts +3 -0
  125. package/dist/components/SheetSuccess.js +51 -0
  126. package/dist/components/SheetSummary.d.ts +3 -0
  127. package/dist/components/SheetSummary.js +32 -0
  128. package/dist/components/SheetTerminal.d.ts +6 -0
  129. package/dist/components/SheetTerminal.js +31 -0
  130. package/dist/components/SheetText.d.ts +5 -0
  131. package/dist/components/SheetText.js +27 -0
  132. package/dist/components/SheetToast.d.ts +7 -0
  133. package/dist/components/SheetToast.js +71 -0
  134. package/dist/components/SheetWaiting.d.ts +7 -0
  135. package/dist/components/SheetWaiting.js +88 -0
  136. package/dist/hooks/use-native-platform.d.ts +10 -0
  137. package/dist/hooks/use-native-platform.js +71 -0
  138. package/dist/hooks/use-payment-sheet.d.ts +4 -0
  139. package/dist/hooks/use-payment-sheet.js +10 -0
  140. package/dist/hooks/use-shake.d.ts +3 -0
  141. package/dist/hooks/use-shake.js +18 -0
  142. package/dist/hooks/use-sheet-motion.d.ts +7 -0
  143. package/dist/hooks/use-sheet-motion.js +62 -0
  144. package/dist/hooks/use-sheet-resize.d.ts +6 -0
  145. package/dist/hooks/use-sheet-resize.js +15 -0
  146. package/dist/hooks/use-sheet-room.d.ts +4 -0
  147. package/dist/hooks/use-sheet-room.js +8 -0
  148. package/dist/hooks/use-sheet-theme.d.ts +4 -0
  149. package/dist/hooks/use-sheet-theme.js +12 -0
  150. package/dist/hooks/use-step-slide.d.ts +16 -0
  151. package/dist/hooks/use-step-slide.js +50 -0
  152. package/dist/hooks/use-store-recovery.d.ts +9 -0
  153. package/dist/hooks/use-store-recovery.js +50 -0
  154. package/dist/hooks/use-store-tab.d.ts +11 -0
  155. package/dist/hooks/use-store-tab.js +112 -0
  156. package/dist/index.d.ts +3 -0
  157. package/dist/index.js +2 -0
  158. package/dist/models/sheet.constants.d.ts +125 -0
  159. package/dist/models/sheet.constants.js +204 -0
  160. package/dist/models/sheet.enum.d.ts +46 -0
  161. package/dist/models/sheet.enum.js +53 -0
  162. package/dist/models/sheet.interface.d.ts +426 -0
  163. package/dist/models/sheet.interface.js +1 -0
  164. package/dist/models/sheet.utils.d.ts +68 -0
  165. package/dist/models/sheet.utils.js +214 -0
  166. package/dist/services/checkout.service.d.ts +15 -0
  167. package/dist/services/checkout.service.js +96 -0
  168. package/dist/services/provider-window.service.d.ts +13 -0
  169. package/dist/services/provider-window.service.js +53 -0
  170. package/dist/services/store.service.d.ts +36 -0
  171. package/dist/services/store.service.js +107 -0
  172. package/package.json +73 -4
@@ -0,0 +1,204 @@
1
+ import figtreeBold from '../../assets/fonts/Figtree-Bold.ttf';
2
+ import figtreeExtraBold from '../../assets/fonts/Figtree-ExtraBold.ttf';
3
+ import figtreeMedium from '../../assets/fonts/Figtree-Medium.ttf';
4
+ import figtreeRegular from '../../assets/fonts/Figtree-Regular.ttf';
5
+ import figtreeSemiBold from '../../assets/fonts/Figtree-SemiBold.ttf';
6
+ import logoApplePay from '../../assets/logos/apple-pay.png';
7
+ import logoBancontact from '../../assets/logos/bancontact.png';
8
+ import logoCard from '../../assets/logos/card.png';
9
+ import logoCb from '../../assets/logos/cb.png';
10
+ import logoEps from '../../assets/logos/eps.png';
11
+ import logoIdeal from '../../assets/logos/ideal.png';
12
+ import logoMybank from '../../assets/logos/mybank.png';
13
+ import logoGooglePay from '../../assets/logos/google-pay.png';
14
+ import logoMastercard from '../../assets/logos/mastercard.png';
15
+ import logoMixx from '../../assets/logos/mixx.png';
16
+ import logoMoov from '../../assets/logos/moov.png';
17
+ import logoAirtel from '../../assets/logos/airtel.png';
18
+ import logoAt from '../../assets/logos/at.png';
19
+ import logoCeltiis from '../../assets/logos/celtiis.png';
20
+ import logoFeexpay from '../../assets/logos/feexpay.png';
21
+ import logoIapkit from '../../assets/logos/iapkit.png';
22
+ import logoAppStore from '../../assets/logos/app-store.png';
23
+ import logoGooglePlay from '../../assets/logos/google-play.png';
24
+ import logoNexus from '../../assets/logos/nexus.png';
25
+ import logoPawapay from '../../assets/logos/pawapay.png';
26
+ import logoTelecel from '../../assets/logos/telecel.png';
27
+ import logoTnm from '../../assets/logos/tnm.png';
28
+ import logoVodacom from '../../assets/logos/vodacom.png';
29
+ import logoMtn from '../../assets/logos/mtn.png';
30
+ import logoOrange from '../../assets/logos/orange.png';
31
+ import logoPaypal from '../../assets/logos/paypal.png';
32
+ import paypalWordmark from '../../assets/brand/paypal-wordmark.png';
33
+ import logoVisa from '../../assets/logos/visa.png';
34
+ import logoWave from '../../assets/logos/wave.png';
35
+ import { LayoutAnimation } from 'react-native';
36
+ import en from "../checkout-core/messages/en.js";
37
+ import { PhoneStoreEnum } from "../checkout-core/models/checkout.enum.js";
38
+ import fr from "../checkout-core/messages/fr.js";
39
+ import { LangEnum, ProviderLogoEnum, } from "../checkout-core/models/domain.enum.js";
40
+ import { FigtreeEnum } from "./sheet.enum.js";
41
+ /** The production backend: Live and Test payments alike. */
42
+ export const DEFAULT_URL = 'https://api-pay.brissoto.com';
43
+ /** Each store as its tab shows it: its own name (a brand, in every language) and tile. */
44
+ export const STORE_TABS = {
45
+ [PhoneStoreEnum.APP_STORE]: {
46
+ name: 'App Store',
47
+ logo: ProviderLogoEnum.APP_STORE,
48
+ },
49
+ [PhoneStoreEnum.GOOGLE_PLAY]: {
50
+ name: 'Google Play',
51
+ logo: ProviderLogoEnum.GOOGLE_PLAY,
52
+ },
53
+ };
54
+ /** How long the sheet waits for the store's country before it opens without one. */
55
+ export const STORE_COUNTRY_TIMEOUT_MS = 3000;
56
+ /**
57
+ * Where the gateway answers the payer's country from Cloudflare's header:
58
+ * its HTTP action `/checkout/country`, which the gateway's own address
59
+ * serves under `/http`.
60
+ */
61
+ export const IP_COUNTRY_PATH = '/http/checkout/country';
62
+ /** How long the sheet waits for the payer's country before it opens without it. */
63
+ export const IP_COUNTRY_TIMEOUT_MS = 3000;
64
+ /** How long a start waits for the gateway to pay a recovered purchase; unpaid, it comes back next start. */
65
+ export const STORE_RECOVERY_MS = 60_000;
66
+ /** The token the sheet has a store purchase carry: a UUID, as the gateway makes it. */
67
+ export const STORE_TOKEN_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
68
+ /** The public Convex functions the web checkout calls, by path. */
69
+ export const CHECKOUT_FUNCTIONS = {
70
+ get: 'checkout/queries:get',
71
+ pay: 'checkout/mutations:pay',
72
+ payWithCode: 'checkout/actions:payWithCode',
73
+ checkNow: 'checkout/mutations:checkNow',
74
+ open: 'checkout/mutations:open',
75
+ cancel: 'checkout/mutations:cancel',
76
+ resend: 'checkout/mutations:resend',
77
+ simulate: 'simulator/mutations:decide',
78
+ startPaypal: 'checkout/actions:startPaypal',
79
+ paypalClosed: 'checkout/mutations:paypalClosed',
80
+ paypalReturned: 'checkout/mutations:paypalReturned',
81
+ startBankRedirect: 'checkout/actions:startBankRedirect',
82
+ payWithStore: 'checkout/mutations:payWithStore',
83
+ sendStorePurchase: 'checkout/mutations:sendStorePurchase',
84
+ storeSheet: 'checkout/mutations:storeSheet',
85
+ recoverStorePurchase: 'checkout/mutations:recoverStorePurchase',
86
+ storePurchase: 'checkout/queries:storePurchase',
87
+ };
88
+ /** Figtree ships inside the package: `expo-font` loads it when a sheet opens. */
89
+ export const FIGTREE_FILES = {
90
+ [FigtreeEnum.REGULAR]: figtreeRegular,
91
+ [FigtreeEnum.MEDIUM]: figtreeMedium,
92
+ [FigtreeEnum.SEMI_BOLD]: figtreeSemiBold,
93
+ [FigtreeEnum.BOLD]: figtreeBold,
94
+ [FigtreeEnum.EXTRA_BOLD]: figtreeExtraBold,
95
+ };
96
+ /** The sheet's timezone for dates, as the web checkout's. */
97
+ export const TIME_ZONE = 'Africa/Douala';
98
+ /** The payer copy the web checkout shows, by language. */
99
+ export const MESSAGES = {
100
+ [LangEnum.EN]: { checkout: en },
101
+ [LangEnum.FR]: { checkout: fr },
102
+ };
103
+ /** Brand tiles, the web's `public/logo/` PNGs bundled with the package. */
104
+ export const PROVIDER_LOGOS = {
105
+ [ProviderLogoEnum.ORANGE]: logoOrange,
106
+ [ProviderLogoEnum.MTN]: logoMtn,
107
+ [ProviderLogoEnum.MOOV]: logoMoov,
108
+ [ProviderLogoEnum.WAVE]: logoWave,
109
+ [ProviderLogoEnum.MIXX]: logoMixx,
110
+ [ProviderLogoEnum.AIRTEL]: logoAirtel,
111
+ [ProviderLogoEnum.AT]: logoAt,
112
+ [ProviderLogoEnum.TELECEL]: logoTelecel,
113
+ [ProviderLogoEnum.TNM]: logoTnm,
114
+ [ProviderLogoEnum.CELTIIS]: logoCeltiis,
115
+ [ProviderLogoEnum.NEXUS]: logoNexus,
116
+ [ProviderLogoEnum.PAWAPAY]: logoPawapay,
117
+ [ProviderLogoEnum.FEEXPAY]: logoFeexpay,
118
+ [ProviderLogoEnum.IAPKIT]: logoIapkit,
119
+ [ProviderLogoEnum.APP_STORE]: logoAppStore,
120
+ [ProviderLogoEnum.GOOGLE_PLAY]: logoGooglePlay,
121
+ [ProviderLogoEnum.VODACOM]: logoVodacom,
122
+ [ProviderLogoEnum.VISA]: logoVisa,
123
+ [ProviderLogoEnum.MASTERCARD]: logoMastercard,
124
+ [ProviderLogoEnum.PAYPAL]: logoPaypal,
125
+ [ProviderLogoEnum.CARD]: logoCard,
126
+ [ProviderLogoEnum.CB]: logoCb,
127
+ [ProviderLogoEnum.BANCONTACT]: logoBancontact,
128
+ [ProviderLogoEnum.IDEAL]: logoIdeal,
129
+ [ProviderLogoEnum.EPS]: logoEps,
130
+ [ProviderLogoEnum.MYBANK]: logoMybank,
131
+ [ProviderLogoEnum.APPLE_PAY]: logoApplePay,
132
+ [ProviderLogoEnum.GOOGLE_PAY]: logoGooglePay,
133
+ };
134
+ /** At its tallest, the sheet leaves this share of the screen above it, clear of the status bar. */
135
+ export const SHEET_TOP_GAP = 0.1;
136
+ /** How dark the app gets behind the sheet. */
137
+ export const SHEET_DIM_OPACITY = 0.4;
138
+ /** How long the sheet takes to slide up or away, in ms. */
139
+ export const SHEET_SLIDE_MS = 280;
140
+ /** Points down that close the sheet when the finger lets go. */
141
+ export const SHEET_SWIPE_DISTANCE = 120;
142
+ /** A flick down this fast (points per ms) closes it, however short. */
143
+ export const SHEET_FLICK_SPEED = 0.8;
144
+ /** How the sheet's height eases from one screen to the next. */
145
+ export const SHEET_RESIZE = {
146
+ duration: 220,
147
+ update: { type: LayoutAnimation.Types.easeInEaseOut },
148
+ };
149
+ /** Room under what scrolls in the sheet, below its last part. */
150
+ export const SHEET_BODY_BOTTOM = 16;
151
+ /** The card fields page's own viewport, as the web app's root sets it. */
152
+ export const PAGE_VIEWPORT = 'width=device-width, initial-scale=1';
153
+ /** The card fields page's viewport while a bank's page shows in it: no zoom on its small field's focus (iOS). */
154
+ export const BANK_PAGE_VIEWPORT = `${PAGE_VIEWPORT}, maximum-scale=1`;
155
+ /** A paragraph's line height, as a share of its size: the web checkout's 1.5, a touch tighter for Figtree on phones. */
156
+ export const PARAGRAPH_LINE_HEIGHT = 1.45;
157
+ /** How long a step of the form takes to slide in, and from how far. */
158
+ export const STEP_SLIDE_MS = 260;
159
+ export const STEP_SLIDE_DISTANCE = 32;
160
+ /** A field the payer still has to fill, shaken once when Pay is pressed: its offsets, then back. */
161
+ export const SHAKE_MS = 300;
162
+ export const SHAKE_OFFSETS = [-6, 6, -3, 0];
163
+ /** The form's one row height and one corner, Pay's: the tabs, the method picked, the fields and the buttons line up. */
164
+ export const FIELD_HEIGHT = 50;
165
+ export const FIELD_RADIUS = 14;
166
+ /** The tabs' inset around the tab on: its corner follows the bar's. */
167
+ export const TABS_INSET = 3;
168
+ /** The web's h-9 pill: its height, and a corner of half of it. */
169
+ export const PILL_HEIGHT = 36;
170
+ /** A row of the pill's list, and the share of the screen the list takes at most: the payment sheet's top stays in sight. */
171
+ export const PILL_ROW_HEIGHT = 52;
172
+ export const PILL_LIST_MAX_SHARE = 0.5;
173
+ /** The current row's disc and the tick drawn in it, two strokes of a turned box. */
174
+ export const CHECK_DISC_SIZE = 22;
175
+ export const TICK_WIDTH = 5.5;
176
+ export const TICK_HEIGHT = 10;
177
+ /** The pill's chevron: a turned box of two strokes in a 12-point box, as the web's size-3 icon. */
178
+ export const CHEVRON_BOX = 12;
179
+ export const CHEVRON_SIZE = 6.5;
180
+ /** Every stroke drawn with borders: chevrons and ticks. */
181
+ export const STROKE_WIDTH = 2;
182
+ /** How see-through a row or a pill turns while pressed. */
183
+ export const PRESSED_OPACITY = 0.7;
184
+ /** The rounded top of the payment sheet and of the sheets over it. */
185
+ export const SHEET_TOP_RADIUS = 14;
186
+ /** Room under a sheet's last line, over the home indicator or the navigation bar. */
187
+ export const SHEET_FOOT_BOTTOM = 28;
188
+ /**
189
+ * Over and under the secured line, between the foot's separator and Pay.
190
+ * Figtree leaves 2pt more room over its letters than under them at this
191
+ * size, so the space over is 2 less: the letters sit in the middle.
192
+ */
193
+ export const SHEET_FOOT_TOP = 11;
194
+ export const SHEET_FOOT_GAP = 13;
195
+ /**
196
+ * The app's logo in the header and a screen's disc under it (failed, closed)
197
+ * share one size: one under the other, their centres line up.
198
+ */
199
+ export const SHEET_BADGE_SIZE = 44;
200
+ export const SHEET_BADGE_RADIUS = 12;
201
+ /** PayPal's wordmark on its gold button (3x, 24 points high in the file). */
202
+ export const PAYPAL_WORDMARK = paypalWordmark;
203
+ /** The wordmark's height on the button, and its width for that height. */
204
+ export const PAYPAL_WORDMARK_SIZE = { height: 20, width: 71 };
@@ -0,0 +1,46 @@
1
+ /** Figtree's weights the sheet uses. Values are the font family names `expo-font` registers. */
2
+ export declare enum FigtreeEnum {
3
+ REGULAR = "Figtree-Regular",
4
+ MEDIUM = "Figtree-Medium",
5
+ SEMI_BOLD = "Figtree-SemiBold",
6
+ BOLD = "Figtree-Bold",
7
+ EXTRA_BOLD = "Figtree-ExtraBold"
8
+ }
9
+ /** The signs the sheet draws, in a disc. */
10
+ export declare enum SheetIconEnum {
11
+ BAN = "ban",
12
+ CLOCK = "clock",
13
+ LOCK = "lock",
14
+ CROSS = "cross",
15
+ CHECK = "check"
16
+ }
17
+ /** What expo-iap is asked for: one-time products only. Values are expo-iap's. */
18
+ export declare enum StoreProductTypeEnum {
19
+ IN_APP = "in-app"
20
+ }
21
+ /**
22
+ * Google Play's answer for one asked product, as expo-iap says it. Anything
23
+ * but `ok` (`not-found`, `no-offers-available`) comes with no price: it does
24
+ * not sell. Values are expo-iap's.
25
+ */
26
+ export declare enum StoreProductStatusEnum {
27
+ OK = "ok"
28
+ }
29
+ /** Where a store purchase stands, as expo-iap says it. Values are expo-iap's. */
30
+ export declare enum StorePurchaseStateEnum {
31
+ PURCHASED = "purchased",
32
+ /** Someone must approve it first (Ask to Buy, cash at a shop). */
33
+ PENDING = "pending"
34
+ }
35
+ /** The store errors the sheet tells apart. Values are expo-iap's `ErrorCode`. */
36
+ export declare enum StoreErrorCodeEnum {
37
+ USER_CANCELLED = "user-cancelled",
38
+ /** iOS: Ask to Buy, waiting for a parent. */
39
+ DEFERRED_PAYMENT = "deferred-payment"
40
+ }
41
+ /** How expo-web-browser says its browser ended; `opened` on Android, at once. */
42
+ export declare enum WebBrowserResultEnum {
43
+ OPENED = "opened",
44
+ CANCEL = "cancel",
45
+ DISMISS = "dismiss"
46
+ }
@@ -0,0 +1,53 @@
1
+ /** Figtree's weights the sheet uses. Values are the font family names `expo-font` registers. */
2
+ export var FigtreeEnum;
3
+ (function (FigtreeEnum) {
4
+ FigtreeEnum["REGULAR"] = "Figtree-Regular";
5
+ FigtreeEnum["MEDIUM"] = "Figtree-Medium";
6
+ FigtreeEnum["SEMI_BOLD"] = "Figtree-SemiBold";
7
+ FigtreeEnum["BOLD"] = "Figtree-Bold";
8
+ FigtreeEnum["EXTRA_BOLD"] = "Figtree-ExtraBold";
9
+ })(FigtreeEnum || (FigtreeEnum = {}));
10
+ /** The signs the sheet draws, in a disc. */
11
+ export var SheetIconEnum;
12
+ (function (SheetIconEnum) {
13
+ SheetIconEnum["BAN"] = "ban";
14
+ SheetIconEnum["CLOCK"] = "clock";
15
+ SheetIconEnum["LOCK"] = "lock";
16
+ SheetIconEnum["CROSS"] = "cross";
17
+ SheetIconEnum["CHECK"] = "check";
18
+ })(SheetIconEnum || (SheetIconEnum = {}));
19
+ /** What expo-iap is asked for: one-time products only. Values are expo-iap's. */
20
+ export var StoreProductTypeEnum;
21
+ (function (StoreProductTypeEnum) {
22
+ StoreProductTypeEnum["IN_APP"] = "in-app";
23
+ })(StoreProductTypeEnum || (StoreProductTypeEnum = {}));
24
+ /**
25
+ * Google Play's answer for one asked product, as expo-iap says it. Anything
26
+ * but `ok` (`not-found`, `no-offers-available`) comes with no price: it does
27
+ * not sell. Values are expo-iap's.
28
+ */
29
+ export var StoreProductStatusEnum;
30
+ (function (StoreProductStatusEnum) {
31
+ StoreProductStatusEnum["OK"] = "ok";
32
+ })(StoreProductStatusEnum || (StoreProductStatusEnum = {}));
33
+ /** Where a store purchase stands, as expo-iap says it. Values are expo-iap's. */
34
+ export var StorePurchaseStateEnum;
35
+ (function (StorePurchaseStateEnum) {
36
+ StorePurchaseStateEnum["PURCHASED"] = "purchased";
37
+ /** Someone must approve it first (Ask to Buy, cash at a shop). */
38
+ StorePurchaseStateEnum["PENDING"] = "pending";
39
+ })(StorePurchaseStateEnum || (StorePurchaseStateEnum = {}));
40
+ /** The store errors the sheet tells apart. Values are expo-iap's `ErrorCode`. */
41
+ export var StoreErrorCodeEnum;
42
+ (function (StoreErrorCodeEnum) {
43
+ StoreErrorCodeEnum["USER_CANCELLED"] = "user-cancelled";
44
+ /** iOS: Ask to Buy, waiting for a parent. */
45
+ StoreErrorCodeEnum["DEFERRED_PAYMENT"] = "deferred-payment";
46
+ })(StoreErrorCodeEnum || (StoreErrorCodeEnum = {}));
47
+ /** How expo-web-browser says its browser ended; `opened` on Android, at once. */
48
+ export var WebBrowserResultEnum;
49
+ (function (WebBrowserResultEnum) {
50
+ WebBrowserResultEnum["OPENED"] = "opened";
51
+ WebBrowserResultEnum["CANCEL"] = "cancel";
52
+ WebBrowserResultEnum["DISMISS"] = "dismiss";
53
+ })(WebBrowserResultEnum || (WebBrowserResultEnum = {}));