@paypay/mini-app-js-sdk 1.18.0 → 1.22.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 (203) hide show
  1. package/dist/composition-api/dom/index.d.ts +5 -4
  2. package/dist/composition-api/dom/useCountDown.d.ts +20 -0
  3. package/dist/composition-api/dom/useEventListener.d.ts +8 -8
  4. package/dist/composition-api/dom/useHorizontalScrollDirective.d.ts +4 -4
  5. package/dist/composition-api/dom/useOnMountedOrActivated.d.ts +1 -1
  6. package/dist/composition-api/dom/useVerticalScrollDirective.d.ts +4 -4
  7. package/dist/composition-api/useErrorSheet.d.ts +3 -3
  8. package/dist/composition-api/useGetUserAddress.d.ts +2 -2
  9. package/dist/composition-api/useHeightProperties.d.ts +19 -19
  10. package/dist/composition-api/useInpuAddress.d.ts +2 -2
  11. package/dist/composition-api/useMakePayment.d.ts +3 -3
  12. package/dist/composition-api/useOpenApp.d.ts +3 -3
  13. package/dist/composition-api/useOpenMap.d.ts +3 -3
  14. package/dist/composition-api/useRegisterEmail.d.ts +2 -2
  15. package/dist/composition-api/useRenderSmartButton.d.ts +3 -3
  16. package/dist/composition-api/useShowAlert.d.ts +3 -3
  17. package/dist/composition-api/useShowUpdateWarning.d.ts +3 -3
  18. package/dist/composition-api/useTakePhoto.d.ts +3 -3
  19. package/dist/composition-api/useTopup.d.ts +3 -3
  20. package/dist/index.d.ts +3 -3
  21. package/dist/jsbridge-core/index.d.ts +4 -4
  22. package/dist/jsbridge-core/jsbridge.d.ts +62 -62
  23. package/dist/jsbridge-core/lib/browser.d.ts +3 -3
  24. package/dist/jsbridge-core/lib/logger.d.ts +9 -9
  25. package/dist/jsbridge-core/lib/reconstructParams.d.ts +2 -2
  26. package/dist/jsbridge-core/module.d.ts +15 -14
  27. package/dist/jsbridge-core/namespace.d.ts +2 -2
  28. package/dist/jsbridge-core/paypay-jsbridge.d.ts +17 -16
  29. package/dist/mini-app-api.d.ts +51 -51
  30. package/dist/mini-app-js-sdk.browser.js +1 -1
  31. package/dist/mini-app-js-sdk.d.ts +9 -9
  32. package/dist/mini-app-js-sdk.es.js +33675 -1
  33. package/dist/mini-app-js-sdk.min.css +1 -1
  34. package/dist/model/bridge/checkAccessToken.d.ts +3 -3
  35. package/dist/model/bridge/checkPaymentMethod.d.ts +2 -2
  36. package/dist/model/bridge/closeApp.d.ts +2 -2
  37. package/dist/model/bridge/copyToClipboard.d.ts +2 -2
  38. package/dist/model/bridge/debug.d.ts +3 -3
  39. package/dist/model/bridge/getAppDetail.d.ts +3 -17
  40. package/dist/model/bridge/getAuthStatus.d.ts +3 -3
  41. package/dist/model/bridge/getBalance.d.ts +2 -2
  42. package/dist/model/bridge/getConfigure.d.ts +39 -39
  43. package/dist/model/bridge/getDeviceInformation.d.ts +3 -3
  44. package/dist/model/bridge/getKycInformation.d.ts +2 -2
  45. package/dist/model/bridge/getPermissionStatus.d.ts +2 -2
  46. package/dist/model/bridge/getPlatformInformation.d.ts +3 -3
  47. package/dist/model/bridge/getSessionData.d.ts +2 -2
  48. package/dist/model/bridge/getStorageData.d.ts +2 -2
  49. package/dist/model/bridge/getTopBarHeight.d.ts +3 -3
  50. package/dist/model/bridge/getUAID.d.ts +3 -3
  51. package/dist/model/bridge/getUserAddress.d.ts +2 -2
  52. package/dist/model/bridge/getUserLocation.d.ts +2 -2
  53. package/dist/model/bridge/getUserProfile.d.ts +3 -3
  54. package/dist/model/bridge/index.d.ts +43 -43
  55. package/dist/model/bridge/init.d.ts +2 -2
  56. package/dist/model/bridge/inputAddress.d.ts +2 -2
  57. package/dist/model/bridge/logout.d.ts +3 -3
  58. package/dist/model/bridge/makePayment.d.ts +2 -2
  59. package/dist/model/bridge/openApp.d.ts +2 -2
  60. package/dist/model/bridge/openMap.d.ts +2 -2
  61. package/dist/model/bridge/openWebview.d.ts +3 -3
  62. package/dist/model/bridge/registerEmail.d.ts +2 -2
  63. package/dist/model/bridge/registerKyc.d.ts +2 -2
  64. package/dist/model/bridge/removeStorageData.d.ts +2 -2
  65. package/dist/model/bridge/render.d.ts +2 -2
  66. package/dist/model/bridge/renderLoginButton.d.ts +6 -2
  67. package/dist/model/bridge/renderPayButton.d.ts +6 -2
  68. package/dist/model/bridge/request.d.ts +2 -2
  69. package/dist/model/bridge/requestInternal.d.ts +2 -2
  70. package/dist/model/bridge/scanCode.d.ts +3 -3
  71. package/dist/model/bridge/setSessionData.d.ts +2 -2
  72. package/dist/model/bridge/setStorageData.d.ts +2 -2
  73. package/dist/model/bridge/setTitle.d.ts +2 -2
  74. package/dist/model/bridge/share.d.ts +2 -2
  75. package/dist/model/bridge/showAlert.d.ts +2 -2
  76. package/dist/model/bridge/showErrorSheet.d.ts +2 -2
  77. package/dist/model/bridge/showUpdateWarning.d.ts +2 -2
  78. package/dist/model/bridge/startMultiFactorAuth.d.ts +2 -2
  79. package/dist/model/bridge/takePhoto.d.ts +2 -2
  80. package/dist/model/bridge/topup.d.ts +2 -2
  81. package/dist/model/bridge/verifyMultiFactorAuthResult.d.ts +3 -3
  82. package/dist/model/makePayment.d.ts +334 -324
  83. package/dist/model/miniAppError.d.ts +57 -57
  84. package/dist/model/miniAppStatus.d.ts +9 -9
  85. package/dist/model/permission.d.ts +21 -21
  86. package/dist/model/uiComponents.d.ts +24 -23
  87. package/dist/package/action-sheet/index.d.ts +97 -91
  88. package/dist/package/banner-header/index.vue.d.ts +56 -56
  89. package/dist/package/button/index.d.ts +77 -69
  90. package/dist/package/charge-amount-list/index.vue.d.ts +48 -54
  91. package/dist/package/charge-amount-more-list/index.vue.d.ts +23 -19
  92. package/dist/package/date-button/index.vue.d.ts +19 -21
  93. package/dist/package/desktop-header/index.d.ts +21 -0
  94. package/dist/package/divider/index.d.ts +21 -22
  95. package/dist/package/header/index.d.ts +65 -65
  96. package/dist/package/index.d.ts +17 -16
  97. package/dist/package/input/index.d.ts +209 -170
  98. package/dist/package/input/utils.d.ts +10 -10
  99. package/dist/package/lottie/index.d.ts +58 -62
  100. package/dist/package/overlay/index.d.ts +44 -45
  101. package/dist/package/payment-method/Bank.vue.d.ts +35 -35
  102. package/dist/package/payment-method/CreditCard.vue.d.ts +42 -42
  103. package/dist/package/payment-method/SbidBank.vue.d.ts +279 -21
  104. package/dist/package/payment-method/Wallet.vue.d.ts +289 -31
  105. package/dist/package/payment-method/index.d.ts +15 -15
  106. package/dist/package/payment-method-list/index.vue.d.ts +39 -27
  107. package/dist/package/payment-type/Bank.vue.d.ts +31 -31
  108. package/dist/package/payment-type/CreditCard.vue.d.ts +32 -32
  109. package/dist/package/payment-type/Sbid.vue.d.ts +275 -17
  110. package/dist/package/payment-type/Wallet.vue.d.ts +276 -17
  111. package/dist/package/payment-type/index.d.ts +13 -15
  112. package/dist/package/select-list/Components.d.ts +77 -65
  113. package/dist/package/select-list/index.d.ts +82 -73
  114. package/dist/package/switch/index.d.ts +22 -23
  115. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +286 -0
  116. package/dist/types.d.ts +376 -344
  117. package/dist/utils/api.d.ts +168 -147
  118. package/dist/utils/common.d.ts +2 -2
  119. package/dist/utils/create/bem.d.ts +6 -6
  120. package/dist/utils/create/index.d.ts +5 -5
  121. package/dist/utils/fetch.d.ts +16 -16
  122. package/dist/utils/getImages.d.ts +36 -5
  123. package/dist/utils/getLanguage.d.ts +225 -3
  124. package/dist/utils/helper.d.ts +44 -47
  125. package/dist/utils/ip.d.ts +2 -2
  126. package/dist/utils/miniAppRequest.d.ts +9 -9
  127. package/dist/utils/popstateHandler.d.ts +4 -4
  128. package/dist/utils/secondary-list.d.ts +1 -1
  129. package/dist/utils/storage.d.ts +28 -26
  130. package/dist/utils/uiConstants.d.ts +1 -0
  131. package/dist/utils/useBreakpoints.d.ts +5 -0
  132. package/dist/utils/utils.d.ts +2 -0
  133. package/dist/views/email-registration/App.vue.d.ts +302 -79
  134. package/dist/views/email-registration/components/EmailButton.vue.d.ts +45 -45
  135. package/dist/views/email-registration/components/icons.d.ts +2 -2
  136. package/dist/views/email-registration/hooks/callback.d.ts +7 -7
  137. package/dist/views/email-registration/hooks/ui.d.ts +29 -29
  138. package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +52 -52
  139. package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +24 -24
  140. package/dist/views/error-sheet/Index.vue.d.ts +310 -52
  141. package/dist/views/get-user-address/App.vue.d.ts +52 -52
  142. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +307 -73
  143. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +281 -23
  144. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +276 -33
  145. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +258 -35
  146. package/dist/views/get-user-address/Sheet/AddSheet/constants.d.ts +4 -4
  147. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +311 -83
  148. package/dist/views/get-user-address/Sheet/App.vue.d.ts +79 -70
  149. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +264 -32
  150. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +249 -25
  151. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +332 -49
  152. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +240 -0
  153. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +259 -0
  154. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +254 -0
  155. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +246 -0
  156. package/dist/views/get-user-address/hooks/ui-hooks.d.ts +57 -14
  157. package/dist/views/get-user-address/store/error-handle.d.ts +13 -12
  158. package/dist/views/get-user-address/store/root.d.ts +18 -14
  159. package/dist/views/input-address/App.vue.d.ts +35 -36
  160. package/dist/views/input-address/hook/app.d.ts +13 -13
  161. package/dist/views/input-address/hook/error-handle.d.ts +10 -10
  162. package/dist/views/input-address/hook/root.d.ts +10 -10
  163. package/dist/views/make-payment/App.vue.d.ts +52 -60
  164. package/dist/views/make-payment/Main.vue.d.ts +197 -638
  165. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +247 -25
  166. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +244 -20
  167. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +277 -19
  168. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +274 -16
  169. package/dist/views/make-payment/Sheets/CashBackDetails/FloatingButton.vue.d.ts +24 -24
  170. package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +26 -26
  171. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +311 -53
  172. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +269 -32
  173. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +422 -80
  174. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +308 -49
  175. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +833 -522
  176. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +264 -38
  177. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +265 -0
  178. package/dist/views/make-payment/Sheets/Consult.vue.d.ts +23 -23
  179. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +250 -27
  180. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +328 -0
  181. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +428 -108
  182. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +70 -36
  183. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +354 -69
  184. package/dist/views/make-payment/hooks/app-hooks.d.ts +381 -568
  185. package/dist/views/make-payment/hooks/ui-hooks.d.ts +87 -72
  186. package/dist/views/make-payment/store/age-confirm.d.ts +9 -9
  187. package/dist/views/make-payment/store/handle-error.d.ts +36 -36
  188. package/dist/views/make-payment/store/root.d.ts +22 -22
  189. package/dist/views/make-payment/store/util-for-handle-error.d.ts +16 -16
  190. package/dist/views/make-payment/utils/paymentMethod.d.ts +5 -3
  191. package/dist/views/open-app/App.vue.d.ts +286 -28
  192. package/dist/views/open-map/App.vue.d.ts +251 -28
  193. package/dist/views/show-alert/App.vue.d.ts +36 -36
  194. package/dist/views/show-update-warning/App.vue.d.ts +286 -28
  195. package/dist/views/smart-button/App.vue.d.ts +87 -87
  196. package/dist/views/take-photo/App.vue.d.ts +248 -25
  197. package/dist/views/take-photo/helper.d.ts +2 -2
  198. package/dist/views/topup/App.vue.d.ts +378 -100
  199. package/dist/views/topup/BannerInfo.vue.d.ts +27 -23
  200. package/dist/views/topup/CashbackInfo.vue.d.ts +267 -44
  201. package/dist/views/topup/TopupCompletion.vue.d.ts +286 -26
  202. package/package.json +12 -18
  203. package/dist/utils/mock-data/mockData.d.ts +0 -64
@@ -1,47 +1,44 @@
1
- import { MiniAppErrorType } from '../model/miniAppError';
2
- export declare function isDef<T>(val: T): val is NonNullable<T>;
3
- export declare function isFunction(val: unknown): val is Function;
4
- export declare function isNumeric(val: string | number): val is string;
5
- export declare function formatNumber(value: string, options?: {
6
- allowDot?: boolean;
7
- allowMinus?: boolean;
8
- }): string;
9
- export declare const numberWithCommas: (x?: number) => string;
10
- export declare function formatCurrency(val: number, n: number, x?: number): string;
11
- export declare function trigger(target: Element, type: string): void;
12
- export declare function isObject(val: unknown): val is Record<any, any>;
13
- export declare function isPromise<T = any>(val: unknown): val is Promise<T>;
14
- export declare function checkDuplicateTopup(amount: number): boolean;
15
- export declare const debounce: (fn: Function) => (...params: unknown[]) => void;
16
- interface PersistenceLastPayment {
17
- price: number;
18
- }
19
- export declare function savePayment(lastPayment: PersistenceLastPayment): boolean;
20
- interface PersistenceLastAddress {
21
- addressId: number;
22
- }
23
- export declare function saveAddress(lastAddress: PersistenceLastAddress): boolean;
24
- interface PersistenceLastTopup {
25
- amount: number;
26
- }
27
- export declare function saveTopup(lastTopup: PersistenceLastTopup): boolean;
28
- export declare function getLastPayment(): any;
29
- export declare function getLastAddress(): any;
30
- export declare function existDuplicatePayment(price: number): boolean;
31
- export declare enum MiniAppRuntime {
32
- android = "ANDROID",
33
- ios = "IOS",
34
- web = "WEB"
35
- }
36
- export declare function getRuntime(): MiniAppRuntime;
37
- export declare function isPayPayMiniApp(): boolean;
38
- export declare function getAppVersion(): string;
39
- export declare function semVerCompare(a: string, b: string): boolean;
40
- export declare function delay(time?: number): Promise<boolean>;
41
- export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string) => {
42
- errorCode: MiniAppErrorType;
43
- jws: string;
44
- };
45
- export declare const getSelectedAddressId: (addressList: any) => any;
46
- export declare function updateLocalisedString(data: string, target: string, value: string): string;
47
- export {};
1
+ import { MiniAppErrorType } from '../model/miniAppError';
2
+ export declare function isDef<T>(val: T): val is NonNullable<T>;
3
+ export declare function isFunction(val: unknown): val is () => void;
4
+ export declare function isNumeric(val: string | number): val is string;
5
+ export declare function formatNumber(value: string, options?: {
6
+ allowDot?: boolean;
7
+ allowMinus?: boolean;
8
+ }): string;
9
+ export declare const numberWithCommas: (x?: number) => string;
10
+ export declare function formatCurrency(val: number, n: number, x?: number): string;
11
+ export declare function trigger(target: Element, type: string): void;
12
+ export declare function isObject(val: unknown): val is Record<string, unknown>;
13
+ export declare function isPromise<T = unknown>(val: unknown): val is Promise<T>;
14
+ export declare function checkDuplicateTopup(amount: number): boolean;
15
+ export declare const debounce: (fn: (args?: unknown) => unknown) => (...params: unknown[]) => void;
16
+ interface PersistenceLastPayment {
17
+ price: number;
18
+ }
19
+ export declare function savePayment(lastPayment: PersistenceLastPayment): boolean;
20
+ interface PersistenceLastTopup {
21
+ amount: number;
22
+ }
23
+ export declare function saveTopup(lastTopup: PersistenceLastTopup): boolean;
24
+ export declare function getLastPayment(): any;
25
+ export declare function getLastPaymentMethod(): string | null;
26
+ export declare function getLastTopupPayMethod(): string | null;
27
+ export declare function existDuplicatePayment(price: number): boolean;
28
+ export declare enum MiniAppRuntime {
29
+ android = "ANDROID",
30
+ ios = "IOS",
31
+ web = "WEB"
32
+ }
33
+ export declare function getRuntime(): MiniAppRuntime;
34
+ export declare function isPayPayMiniApp(): boolean;
35
+ export declare function getAppVersion(): string | null;
36
+ export declare function semVerCompare(a: string, b: string): boolean;
37
+ export declare function delay(time?: number): Promise<boolean>;
38
+ export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string | null | undefined) => {
39
+ errorCode: MiniAppErrorType;
40
+ jws: string | null | undefined;
41
+ };
42
+ export declare function updateLocalisedString(data: string, target: string, value: string): string;
43
+ export declare function handleHeightResize(el: HTMLElement, windowHeight: number, isScrollable: boolean, offsetHeight: number): boolean;
44
+ export {};
@@ -1,2 +1,2 @@
1
- export declare function isLocalIP(str: string): boolean;
2
- export declare function isIP(str: string): boolean;
1
+ export declare function isLocalIP(str: string): boolean;
2
+ export declare function isIP(str: string): boolean;
@@ -1,9 +1,9 @@
1
- export declare const errorCodes: Map<any, any>;
2
- declare type MiniAppRequestParams = {
3
- url: string;
4
- headers: Headers;
5
- method: string;
6
- params: object;
7
- };
8
- export declare const getRequest: (params: MiniAppRequestParams) => Promise<Response>;
9
- export {};
1
+ export declare const errorCodes: Map<any, any>;
2
+ declare type MiniAppRequestParams = {
3
+ url: string;
4
+ headers: Headers;
5
+ method: string;
6
+ params: object;
7
+ };
8
+ export declare const getRequest: (params: MiniAppRequestParams) => Promise<Response>;
9
+ export {};
@@ -1,4 +1,4 @@
1
- export declare const popStateHandler: (callback: Function, inputParams?: Record<string, any>) => {
2
- mounted(): void;
3
- unmounted(): void;
4
- };
1
+ export declare const popStateHandler: (callback: () => void, inputParams?: Record<string, any> | undefined) => {
2
+ mounted(): void;
3
+ unmounted(): void;
4
+ };
@@ -1 +1 @@
1
- export declare const secondaryList: string[];
1
+ export declare const secondaryList: string[];
@@ -1,26 +1,28 @@
1
- export declare function parseDomain(str: string): string;
2
- export declare function getDomain(appDetail?: string): string;
3
- export declare function getAccessToken(): string;
4
- export declare function removeCookie(key: string): void;
5
- export declare function saveAccessToken(token: string): void;
6
- export declare function getRefreshToken(): string;
7
- export declare function saveRefreshToken(token: string): void;
8
- export declare function saveEnv(env: string): void;
9
- export declare function getEnv(): string;
10
- export declare function getClientUUID(): string;
11
- export declare function getDeviceUUID(): string;
12
- export declare function saveLastPayment(payment: string): void;
13
- export declare function saveLastAddress(addressId: string): void;
14
- export declare function getLastAddress(): string;
15
- export declare function getLastPayment(): string;
16
- export declare function saveLastTopup(topup: string): void;
17
- export declare function getLastTopup(): string;
18
- export declare function saveAppDetail(appDetail: string): void;
19
- export declare function getAppDetail(): string;
20
- export declare function removeAppDetail(): void;
21
- export declare function saveAppConfig(appConfig: string): void;
22
- export declare function getAppConfig(): string;
23
- export declare function getClientId(): string;
24
- export declare function saveClientId(id: string): void;
25
- export declare function getUserInfo(): string;
26
- export declare function saveUserInfo(userData: string): void;
1
+ export declare function parseDomain(str: string): string;
2
+ export declare function getDomain(appDetail?: string | null): string;
3
+ export declare function getAccessToken(): string | undefined;
4
+ export declare function removeCookie(key: string): void;
5
+ export declare function saveAccessToken(token: string): void;
6
+ export declare function getRefreshToken(): string;
7
+ export declare function saveRefreshToken(token: string): void;
8
+ export declare function saveEnv(env: string): void;
9
+ export declare function getEnv(): string | undefined;
10
+ export declare function getClientUUID(): string;
11
+ export declare function getDeviceUUID(): string;
12
+ export declare function saveLastPayment(payment: string): void;
13
+ export declare function saveLastPaymentMethod(methodId: string): void;
14
+ export declare function saveLastTopupPayMethod(methodId: string): void;
15
+ export declare function getLastPaymentMethod(): string | undefined;
16
+ export declare function getLastTopupPayMethod(): string | undefined;
17
+ export declare function getLastPayment(): string | undefined;
18
+ export declare function saveLastTopup(topup: string): void;
19
+ export declare function getLastTopup(): string;
20
+ export declare function saveAppDetail(appDetail: string): void;
21
+ export declare function getAppDetail(): string | undefined;
22
+ export declare function removeAppDetail(): void;
23
+ export declare function saveAppConfig(appConfig: string): void;
24
+ export declare function getAppConfig(): string | undefined;
25
+ export declare function getClientId(): string | undefined;
26
+ export declare function saveClientId(id: string): void;
27
+ export declare function getUserInfo(): string | undefined;
28
+ export declare function saveUserInfo(userData: string): void;
@@ -0,0 +1 @@
1
+ export declare const UI_BREAKPOINT = 767;
@@ -0,0 +1,5 @@
1
+ export default function (): {
2
+ isMobile: import("vue").ComputedRef<boolean>;
3
+ isDesktop: import("vue").ComputedRef<boolean>;
4
+ windowHeight: import("vue").ComputedRef<number>;
5
+ };
@@ -0,0 +1,2 @@
1
+ export declare function raf(fn: FrameRequestCallback): number;
2
+ export declare function cancelRaf(id: number): void;
@@ -1,79 +1,302 @@
1
- import { PropType } from 'vue';
2
- import { NativeParams } from '../../jsbridge-core';
3
- import { MiniAppStatusType } from '../../model/miniAppStatus';
4
- declare const _default: import("vue").DefineComponent<{
5
- show: BooleanConstructor;
6
- data: {
7
- type: ObjectConstructor;
8
- default: () => void;
9
- };
10
- params: {
11
- type: PropType<NativeParams<any, any, any>>;
12
- default: () => {};
13
- };
14
- emailRegistered: {
15
- type: BooleanConstructor;
16
- required: false;
17
- default: boolean;
18
- };
19
- email: {
20
- type: StringConstructor;
21
- required: false;
22
- default: string;
23
- };
24
- }, {
25
- style: Record<string, string>;
26
- callback: {
27
- cancel: () => void;
28
- done: (statusCode: MiniAppStatusType, email?: string) => void;
29
- };
30
- appLogo: import("vue").ComputedRef<any>;
31
- appName: import("vue").ComputedRef<any>;
32
- lg: any;
33
- actions: {
34
- openRegisterSheet: () => void;
35
- sendEmail: import("./hooks/ui").SendEmail;
36
- resendEmail: import("./hooks/ui").ResendEmail;
37
- closeRegisterSheet: () => void;
38
- closeResendSheet: () => Promise<{
39
- hasError: true;
40
- } | {
41
- hasError: false;
42
- statusCode: MiniAppStatusType;
43
- email?: string;
44
- }>;
45
- closeErrorSheet: () => void;
46
- };
47
- errorSheetOpen: import("vue").ComputedRef<boolean>;
48
- errorTitle: import("vue").ComputedRef<string>;
49
- errorDescription: import("vue").ComputedRef<string>;
50
- resendSheetOpen: import("vue").ComputedRef<boolean>;
51
- registerSheetOpen: import("vue").ComputedRef<boolean>;
52
- resendEmailTo: import("vue").ComputedRef<string>;
53
- closeRegisterSheetWrapper: () => Promise<void>;
54
- rootStyle: import("vue").ComputedRef<{
55
- paddingBottom: string;
56
- }>;
57
- emailRegisteredOnRecheck: (email: string) => void;
58
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
59
- show?: unknown;
60
- data?: unknown;
61
- params?: unknown;
62
- emailRegistered?: unknown;
63
- email?: unknown;
64
- } & {
65
- data: Record<string, any>;
66
- show: boolean;
67
- params: {};
68
- emailRegistered: boolean;
69
- email: string;
70
- } & {}> & {
71
- onClick?: (...args: any[]) => any;
72
- }, {
73
- data: Record<string, any>;
74
- show: boolean;
75
- params: {};
76
- emailRegistered: boolean;
77
- email: string;
78
- }>;
79
- export default _default;
1
+ import { PropType } from 'vue';
2
+ import { NativeParams } from '../../jsbridge-core';
3
+ import { MiniAppStatusType } from '../../model/miniAppStatus';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ show: BooleanConstructor;
6
+ data: {
7
+ type: ObjectConstructor;
8
+ default: () => void;
9
+ };
10
+ params: {
11
+ type: PropType<NativeParams<unknown, unknown, unknown>>;
12
+ default: () => {};
13
+ };
14
+ emailRegistered: {
15
+ type: BooleanConstructor;
16
+ required: false;
17
+ default: boolean;
18
+ };
19
+ email: {
20
+ type: StringConstructor;
21
+ required: false;
22
+ default: string;
23
+ };
24
+ }, {
25
+ style: Record<string, string>;
26
+ callback: {
27
+ cancel: () => void;
28
+ done: (statusCode: MiniAppStatusType, email?: string | undefined) => void;
29
+ };
30
+ appLogo: import("vue").ComputedRef<any>;
31
+ appName: import("vue").ComputedRef<any>;
32
+ lg: {
33
+ showUpdateWarning: {
34
+ closeBtn: string;
35
+ notNow: string;
36
+ update: string;
37
+ title: string;
38
+ errorText: string;
39
+ desc1: string;
40
+ desc2: string;
41
+ };
42
+ openApp: {
43
+ title: string;
44
+ body: string;
45
+ errorText: string;
46
+ openApp: string;
47
+ cancel: string;
48
+ };
49
+ openMap: {
50
+ title: string;
51
+ errorText: string;
52
+ };
53
+ topup: {
54
+ title: string;
55
+ balMoney: string;
56
+ charge: string;
57
+ minAmount: string;
58
+ maxAmount: string;
59
+ moneyLabel: string;
60
+ noMethod: string;
61
+ loading: string;
62
+ payBtn: string;
63
+ availableBalance: string;
64
+ availableBalanceAfter: string;
65
+ allBalance: string;
66
+ };
67
+ takePhoto: {
68
+ camera: string;
69
+ photo: string;
70
+ };
71
+ payment: {
72
+ title: string;
73
+ payAmount: string;
74
+ payAmountTaxExempt: string;
75
+ method: string;
76
+ address: string;
77
+ insufficientAmount: string;
78
+ paying: string;
79
+ pay: string;
80
+ charge: string;
81
+ cancel: string;
82
+ noAddress: string;
83
+ change: string;
84
+ close: string;
85
+ };
86
+ duplicate: {
87
+ header: string;
88
+ text1: string;
89
+ text2: string;
90
+ cancel: string;
91
+ agreeButtonText: string;
92
+ topHeader: string;
93
+ topText1: string;
94
+ topText2: string;
95
+ topAgreeButtonText: string;
96
+ };
97
+ birthdayConfirm: {
98
+ title: string;
99
+ title2: string;
100
+ desc: string;
101
+ desc1: string;
102
+ desc2: string;
103
+ desc3: string;
104
+ date: string;
105
+ primaryBtn: string;
106
+ cancelBtn: string;
107
+ };
108
+ birthdayConfirmError: {
109
+ title: string;
110
+ title2: string;
111
+ desc: string;
112
+ desc2: string;
113
+ helpBtn: string;
114
+ closeBtn: string;
115
+ };
116
+ cashbackDet: {
117
+ button1: string;
118
+ button2: string;
119
+ button3: string;
120
+ };
121
+ topContent: {
122
+ title: string;
123
+ chargeTitle: string;
124
+ chargeLabel: string;
125
+ loading: string;
126
+ unavailable1: string;
127
+ unavailable2: string;
128
+ amount: string;
129
+ return: string;
130
+ };
131
+ topInfo: {
132
+ sufficientRow: string;
133
+ insufficientAmount: string;
134
+ insufficientAmountText: string;
135
+ paymentAmount: string;
136
+ };
137
+ choosePayment: {
138
+ title: string;
139
+ desc1: string;
140
+ desc2: string;
141
+ title2: string;
142
+ addMethod: string;
143
+ noMethod: string;
144
+ };
145
+ topupCompletion: {
146
+ title: string;
147
+ idInfo: string;
148
+ copied: string;
149
+ };
150
+ userAddress: {
151
+ title: string;
152
+ header: string;
153
+ tagForm: string;
154
+ home: string;
155
+ work: string;
156
+ billing: string;
157
+ footer: string;
158
+ titlePre: string;
159
+ titleApp: string;
160
+ titlePlace: string;
161
+ receiverPre: string;
162
+ receiverPlace: string;
163
+ inputPre: string;
164
+ statePre: string;
165
+ statePlace: string;
166
+ cityPre: string;
167
+ cityPlace: string;
168
+ street1Pre: string;
169
+ streetPlace: string;
170
+ street2Pre: string;
171
+ street2Place: string;
172
+ footerBtn1: string;
173
+ footerBtn2: string;
174
+ displayTitle: string;
175
+ deleteTitle: string;
176
+ delete: string;
177
+ close: string;
178
+ addAddress: string;
179
+ address: string;
180
+ return: string;
181
+ change: string;
182
+ noAddress: string;
183
+ registerAddress: string;
184
+ confirmAddress: string;
185
+ returnEdit: string;
186
+ selectAddress: string;
187
+ };
188
+ errorSheet: {
189
+ title: string;
190
+ title1: string;
191
+ desc: string;
192
+ topup: string;
193
+ topupDesc: string;
194
+ pay: string;
195
+ payDesc: string;
196
+ };
197
+ paymentMethod: {
198
+ expired: string;
199
+ ordinary: string;
200
+ current: string;
201
+ checkGreen: string;
202
+ authenticated: string;
203
+ yjTitle: string;
204
+ ppCardTitle: string;
205
+ brand: string;
206
+ };
207
+ wallet: {
208
+ title: string;
209
+ desc: string;
210
+ eMoney: string;
211
+ nonUsable: string;
212
+ cashBackUsable: string;
213
+ cashBackExpirable: string;
214
+ balance: string;
215
+ };
216
+ softbank: {
217
+ desc: string;
218
+ desc1: string;
219
+ isDisable: string;
220
+ };
221
+ registerEmail: {
222
+ title: string;
223
+ warning: string;
224
+ cancelTxt: string;
225
+ errorTitleAlreadyRegistered: string;
226
+ errorDescriptionAlreadyRegistered: string;
227
+ errorTitle: string;
228
+ errorDescription: string;
229
+ };
230
+ smartLogin: {
231
+ title: string;
232
+ signIn: string;
233
+ continueAs: string;
234
+ };
235
+ smartPay: {
236
+ pay: string;
237
+ paypay: string;
238
+ cashback: string;
239
+ };
240
+ cashbackList: {
241
+ close: string;
242
+ };
243
+ desktopTitle: {
244
+ Payment: string;
245
+ addNewAddress: string;
246
+ editAddress: string;
247
+ paymentCompletion: string;
248
+ getUserAddress: string;
249
+ };
250
+ closeConfirmation: {
251
+ title: string;
252
+ confirm: string;
253
+ cancel: string;
254
+ };
255
+ };
256
+ actions: {
257
+ openRegisterSheet: () => void;
258
+ sendEmail: import("./hooks/ui").SendEmail;
259
+ resendEmail: import("./hooks/ui").ResendEmail;
260
+ closeRegisterSheet: () => void;
261
+ closeResendSheet: () => Promise<{
262
+ hasError: true;
263
+ } | {
264
+ hasError: false;
265
+ statusCode?: MiniAppStatusType | undefined;
266
+ email?: string | undefined;
267
+ }>;
268
+ closeErrorSheet: () => void;
269
+ };
270
+ errorSheetOpen: import("vue").ComputedRef<boolean>;
271
+ errorTitle: import("vue").ComputedRef<string>;
272
+ errorDescription: import("vue").ComputedRef<string>;
273
+ resendSheetOpen: import("vue").ComputedRef<boolean>;
274
+ registerSheetOpen: import("vue").ComputedRef<boolean>;
275
+ resendEmailTo: import("vue").ComputedRef<string>;
276
+ closeRegisterSheetWrapper: () => Promise<void>;
277
+ rootStyle: import("vue").ComputedRef<{
278
+ paddingBottom: string;
279
+ }>;
280
+ emailRegisteredOnRecheck: (email: string) => void;
281
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
282
+ show?: unknown;
283
+ data?: unknown;
284
+ params?: unknown;
285
+ emailRegistered?: unknown;
286
+ email?: unknown;
287
+ } & {
288
+ data: Record<string, any>;
289
+ show: boolean;
290
+ email: string;
291
+ emailRegistered: boolean;
292
+ params: NativeParams<unknown, unknown, unknown>;
293
+ } & {}> & {
294
+ onClick?: ((...args: any[]) => any) | undefined;
295
+ }, {
296
+ data: Record<string, any>;
297
+ show: boolean;
298
+ email: string;
299
+ emailRegistered: boolean;
300
+ params: NativeParams<unknown, unknown, unknown>;
301
+ }>;
302
+ export default _default;