@paypay/mini-app-js-sdk 1.68.0 → 1.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composition-api/dom/useEventListener.d.ts +1 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +63 -47
- package/dist/package/lottie/index.d.ts +1 -1
- package/dist/types.d.ts +4 -4
- package/dist/utils/helper.d.ts +3 -0
- package/dist/views/get-kyc-passport/types.d.ts +1 -1
- package/dist/views/register-user-info/types.d.ts +2 -2
- package/dist/views/registerPaymentFeatures/types.d.ts +1 -1
- package/package.json +9 -8
|
@@ -50,8 +50,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
50
50
|
}
|
|
51
51
|
class JsBridge {
|
|
52
52
|
constructor(global2) {
|
|
53
|
-
this.version = "1.
|
|
54
|
-
this.revision = "
|
|
53
|
+
this.version = "1.70.0";
|
|
54
|
+
this.revision = "77b6db0";
|
|
55
55
|
this.messageHandlers = /* @__PURE__ */ new Map();
|
|
56
56
|
this.responseCallbacks = /* @__PURE__ */ new Map();
|
|
57
57
|
this.global = global2;
|
|
@@ -79,7 +79,7 @@ class JsBridge {
|
|
|
79
79
|
methodParams,
|
|
80
80
|
(data2) => {
|
|
81
81
|
var _a2, _b, _c;
|
|
82
|
-
|
|
82
|
+
const returnData = ((_c = (_b = (_a2 = this.global) == null ? void 0 : _a2.webkit) == null ? void 0 : _b.messageHandlers) == null ? void 0 : _c[methodName]) ? JSON.parse(data2 == null ? void 0 : data2.data) : data2 == null ? void 0 : data2.data;
|
|
83
83
|
switch (data2.status) {
|
|
84
84
|
case "complete":
|
|
85
85
|
complete && complete(returnData);
|
|
@@ -843,7 +843,8 @@ function saveDeviceUUID(uuid) {
|
|
|
843
843
|
saveCookie(PpLocalStorageKey.deviceUUID, uuid, CookieDuration.oneYear);
|
|
844
844
|
}
|
|
845
845
|
function getDeviceUUIDFromNative() {
|
|
846
|
-
|
|
846
|
+
var _a2;
|
|
847
|
+
return (_a2 = getValueFromUA("PayPayMiniAppDeviceId")) != null ? _a2 : "";
|
|
847
848
|
}
|
|
848
849
|
function getDeviceUUID() {
|
|
849
850
|
let uuid = api.get(PpLocalStorageKey.deviceUUID) || "";
|
|
@@ -1822,7 +1823,7 @@ function trigger$1(target, type) {
|
|
|
1822
1823
|
function checkDuplicateTopup(amount2) {
|
|
1823
1824
|
try {
|
|
1824
1825
|
if (getLastTopup()) {
|
|
1825
|
-
|
|
1826
|
+
const lastTopUpVal = JSON.parse(getLastTopup());
|
|
1826
1827
|
return lastTopUpVal.amount === amount2 && Date.now() - lastTopUpVal.topupAt <= 15 * 60 * 1e3;
|
|
1827
1828
|
} else {
|
|
1828
1829
|
return false;
|
|
@@ -1960,6 +1961,14 @@ function checkVersion(minVersion) {
|
|
|
1960
1961
|
}
|
|
1961
1962
|
return semVerCompare(appVersion, minVersion);
|
|
1962
1963
|
}
|
|
1964
|
+
function getPlatformFontSize() {
|
|
1965
|
+
const fontSize = getValueFromUA("FontSize");
|
|
1966
|
+
if (fontSize === "LARGE" || fontSize === "EXTRA_LARGE") {
|
|
1967
|
+
return fontSize;
|
|
1968
|
+
} else {
|
|
1969
|
+
return "REGULAR";
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1963
1972
|
function delay(time2 = 100) {
|
|
1964
1973
|
return new Promise((resolve2) => {
|
|
1965
1974
|
setTimeout(() => {
|
|
@@ -2080,6 +2089,13 @@ function reconstructKycPassportCallbackUrl(url2, type) {
|
|
|
2080
2089
|
callbackUrl.searchParams.set(KycPassportUrlParam.authType, type);
|
|
2081
2090
|
return callbackUrl.href;
|
|
2082
2091
|
}
|
|
2092
|
+
function getValueFromUA(paramName) {
|
|
2093
|
+
const pattern = `\\s?${paramName}/(.*?)(\\s|$)`;
|
|
2094
|
+
const match = navigator.userAgent.match(pattern);
|
|
2095
|
+
if (match == null ? void 0 : match[1]) {
|
|
2096
|
+
return match == null ? void 0 : match[1];
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2083
2099
|
const opaUrl = () => {
|
|
2084
2100
|
switch (getEnv()) {
|
|
2085
2101
|
case "staging":
|
|
@@ -2098,9 +2114,9 @@ const opaUrl = () => {
|
|
|
2098
2114
|
}
|
|
2099
2115
|
};
|
|
2100
2116
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
2101
|
-
|
|
2117
|
+
const headers = new Headers({
|
|
2102
2118
|
"Content-Type": "application/json",
|
|
2103
|
-
"Client-Version": "1.
|
|
2119
|
+
"Client-Version": "1.70.0",
|
|
2104
2120
|
"Client-OS-Type": getRuntime(),
|
|
2105
2121
|
...customHeaders
|
|
2106
2122
|
});
|
|
@@ -2137,13 +2153,13 @@ function ppFetchPrepare(options) {
|
|
|
2137
2153
|
options.params.payPayLang = "ja";
|
|
2138
2154
|
const requestInfo = `${opaUrl()}${options.url}${addParams(options.params)}`;
|
|
2139
2155
|
const { timeout = 3e4 } = options;
|
|
2140
|
-
|
|
2156
|
+
const controller = new AbortController();
|
|
2141
2157
|
window.setTimeout(() => controller.abort(), timeout);
|
|
2142
2158
|
const headers = createHeaderMiniAppApi(options.url, options.headers);
|
|
2143
2159
|
if (!headers) {
|
|
2144
2160
|
return null;
|
|
2145
2161
|
}
|
|
2146
|
-
|
|
2162
|
+
const requestInit = {
|
|
2147
2163
|
method: options.method,
|
|
2148
2164
|
headers,
|
|
2149
2165
|
signal: controller == null ? void 0 : controller.signal
|
|
@@ -8003,7 +8019,7 @@ function saveUserData() {
|
|
|
8003
8019
|
function copyToClipboard(copyTextParams) {
|
|
8004
8020
|
var _a2, _b;
|
|
8005
8021
|
const params = reconstructParams(copyTextParams);
|
|
8006
|
-
|
|
8022
|
+
const textarea = document.createElement("textarea");
|
|
8007
8023
|
textarea.setAttribute("readonly", "true");
|
|
8008
8024
|
textarea.setAttribute("contenteditable", "true");
|
|
8009
8025
|
textarea.value = params.value;
|
|
@@ -9476,8 +9492,8 @@ function useEventListener(type, listener, options = {}) {
|
|
|
9476
9492
|
}
|
|
9477
9493
|
const UI_BREAKPOINT = 767;
|
|
9478
9494
|
function useBreakpoints() {
|
|
9479
|
-
|
|
9480
|
-
|
|
9495
|
+
const windowWidth = ref(window.innerWidth);
|
|
9496
|
+
const windowHeight = ref(window.innerHeight);
|
|
9481
9497
|
const onResize = () => {
|
|
9482
9498
|
windowWidth.value = window.innerWidth;
|
|
9483
9499
|
windowHeight.value = window.innerHeight;
|
|
@@ -25283,7 +25299,7 @@ function initRoot(props, { emit }) {
|
|
|
25283
25299
|
const updateAddress = (data2) => {
|
|
25284
25300
|
emit("updateAddress", data2);
|
|
25285
25301
|
};
|
|
25286
|
-
|
|
25302
|
+
const savedMakepayAddressid = ((_a2 = props == null ? void 0 : props.selectedAddress) == null ? void 0 : _a2.id) || 0;
|
|
25287
25303
|
const store = {
|
|
25288
25304
|
cancel: cancel2,
|
|
25289
25305
|
success: success2,
|
|
@@ -27839,9 +27855,9 @@ function initErrorHandling() {
|
|
|
27839
27855
|
});
|
|
27840
27856
|
const handleError2 = () => {
|
|
27841
27857
|
const lg2 = getLanguage();
|
|
27842
|
-
|
|
27843
|
-
|
|
27844
|
-
|
|
27858
|
+
const errorTitle2 = lg2.errorSheet.title1;
|
|
27859
|
+
const errorDescription = lg2.errorSheet.desc;
|
|
27860
|
+
const errorIcon2 = String(img_iconError);
|
|
27845
27861
|
state.errorShow = true;
|
|
27846
27862
|
state.errorTitle = errorTitle2;
|
|
27847
27863
|
state.errorDescription = errorDescription;
|
|
@@ -29482,7 +29498,7 @@ const _sfc_main$18 = defineComponent({
|
|
|
29482
29498
|
setup(props, context) {
|
|
29483
29499
|
var _a2;
|
|
29484
29500
|
const { isMobile, isDesktop } = useBreakpoints();
|
|
29485
|
-
const { width: screenWidth } = window
|
|
29501
|
+
const { width: screenWidth } = window.screen;
|
|
29486
29502
|
const timeout = screenWidth <= 767 ? 320 : 0;
|
|
29487
29503
|
const showCashBackDetailRow = computed(() => {
|
|
29488
29504
|
var _a3;
|
|
@@ -31399,9 +31415,9 @@ const useMakePaymentStore = defineStore("makePayment", {
|
|
|
31399
31415
|
return true;
|
|
31400
31416
|
},
|
|
31401
31417
|
private_openLogicError(params = {}, jws) {
|
|
31402
|
-
|
|
31403
|
-
|
|
31404
|
-
|
|
31418
|
+
const errorTitle2 = "\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F";
|
|
31419
|
+
const errorDescription = "\u6642\u9593\u3092\u304A\u3044\u3066\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044";
|
|
31420
|
+
const errorIcon2 = img_iconError;
|
|
31405
31421
|
let errorCode = MiniAppErrorType.serverError;
|
|
31406
31422
|
if (params.type === "topupSuccessButNotAddToBalance") {
|
|
31407
31423
|
errorCode = MiniAppErrorType.topupSuccessButNotAddToBalance;
|
|
@@ -34096,7 +34112,6 @@ const initMakePayment = async (initMakePayment2) => {
|
|
|
34096
34112
|
(_a3 = initMakePayment2 == null ? void 0 : initMakePayment2.complete) == null ? void 0 : _a3.call(initMakePayment2);
|
|
34097
34113
|
}, 350);
|
|
34098
34114
|
};
|
|
34099
|
-
let app;
|
|
34100
34115
|
let addresses;
|
|
34101
34116
|
let showUserAddress;
|
|
34102
34117
|
if ((_d = (_c = initMakePayment2 == null ? void 0 : initMakePayment2.additionalUserInfo) == null ? void 0 : _c.userAddress) == null ? void 0 : _d.visible) {
|
|
@@ -34113,7 +34128,7 @@ const initMakePayment = async (initMakePayment2) => {
|
|
|
34113
34128
|
} else {
|
|
34114
34129
|
showUserAddress = false;
|
|
34115
34130
|
}
|
|
34116
|
-
app = createApp({
|
|
34131
|
+
const app = createApp({
|
|
34117
34132
|
setup() {
|
|
34118
34133
|
return () => h(AppVue$8, {
|
|
34119
34134
|
show: show2.value,
|
|
@@ -34865,7 +34880,7 @@ const _sfc_main$P = defineComponent({
|
|
|
34865
34880
|
methods: {
|
|
34866
34881
|
numberWithCommas,
|
|
34867
34882
|
async init() {
|
|
34868
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j
|
|
34883
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
34869
34884
|
this.loading = true;
|
|
34870
34885
|
this.isFirstLoad = true;
|
|
34871
34886
|
const paymentIDParams = {
|
|
@@ -34895,15 +34910,15 @@ const _sfc_main$P = defineComponent({
|
|
|
34895
34910
|
this.errorShow = true;
|
|
34896
34911
|
return;
|
|
34897
34912
|
}
|
|
34898
|
-
const { paymentMethodList, appealDescription } =
|
|
34913
|
+
const { paymentMethodList, appealDescription } = paymentIdResponse.body.unsigned.data.payload;
|
|
34899
34914
|
this.paymentMethodList = paymentMethodList;
|
|
34900
34915
|
this.appealDescription = appealDescription;
|
|
34901
34916
|
this.findFirstValidMethodTopup();
|
|
34902
34917
|
const config2 = getAppConfig();
|
|
34903
34918
|
if (config2) {
|
|
34904
|
-
this.topupHalfSheetAmount = (
|
|
34905
|
-
this.topupButtonsAmount = (
|
|
34906
|
-
this.topupMinAmount = (
|
|
34919
|
+
this.topupHalfSheetAmount = (_f = config2 == null ? void 0 : config2.topupHalfSheetAmount[0]) == null ? void 0 : _f.value;
|
|
34920
|
+
this.topupButtonsAmount = (_g = config2 == null ? void 0 : config2.topupButtonsAmount[0]) == null ? void 0 : _g.value;
|
|
34921
|
+
this.topupMinAmount = (_j = (_i = (_h = config2 == null ? void 0 : config2.topupMinAmount) == null ? void 0 : _h[0]) == null ? void 0 : _i.value) != null ? _j : this.topupMinAmount;
|
|
34907
34922
|
}
|
|
34908
34923
|
this.loading = false;
|
|
34909
34924
|
this.isFirstLoad = false;
|
|
@@ -36019,7 +36034,7 @@ async function getPlatformInformation(params) {
|
|
|
36019
36034
|
async function execute$d(params) {
|
|
36020
36035
|
var _a2, _b;
|
|
36021
36036
|
let sdkVersion = null;
|
|
36022
|
-
|
|
36037
|
+
const preferredLanguage = getPayPayLanguage();
|
|
36023
36038
|
const appVersion = getAppVersion();
|
|
36024
36039
|
if (appVersion) {
|
|
36025
36040
|
try {
|
|
@@ -36042,7 +36057,8 @@ async function execute$d(params) {
|
|
|
36042
36057
|
(_b = params == null ? void 0 : params.success) == null ? void 0 : _b.call(params, {
|
|
36043
36058
|
appVersion,
|
|
36044
36059
|
sdkVersion,
|
|
36045
|
-
preferredLanguage
|
|
36060
|
+
preferredLanguage,
|
|
36061
|
+
fontSize: getPlatformFontSize()
|
|
36046
36062
|
});
|
|
36047
36063
|
}
|
|
36048
36064
|
function getDeviceInformation(params) {
|
|
@@ -36288,7 +36304,7 @@ async function execute$b(params) {
|
|
|
36288
36304
|
return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, { errorCode: getFailErrorCode(res.ppFetchResult) });
|
|
36289
36305
|
}
|
|
36290
36306
|
if ((_d = res.body.unsigned) == null ? void 0 : _d.data) {
|
|
36291
|
-
|
|
36307
|
+
const response = res.body.unsigned.data;
|
|
36292
36308
|
response.jws = (_e = res.body.signed) == null ? void 0 : _e.jws;
|
|
36293
36309
|
return (_f = params == null ? void 0 : params.success) == null ? void 0 : _f.call(params, response);
|
|
36294
36310
|
} else {
|
|
@@ -36399,9 +36415,9 @@ function useErrorHandling() {
|
|
|
36399
36415
|
});
|
|
36400
36416
|
const handleError2 = () => {
|
|
36401
36417
|
const lg2 = getLanguage();
|
|
36402
|
-
|
|
36403
|
-
|
|
36404
|
-
|
|
36418
|
+
const errorTitle2 = lg2.errorSheet.title1;
|
|
36419
|
+
const errorDescription = lg2.errorSheet.desc;
|
|
36420
|
+
const errorIcon2 = String(img_iconError);
|
|
36405
36421
|
state.errorShow = true;
|
|
36406
36422
|
state.errorTitle = errorTitle2;
|
|
36407
36423
|
state.errorDescription = errorDescription;
|
|
@@ -36665,7 +36681,7 @@ async function checkPaymentMethod(checkPayMethodParams) {
|
|
|
36665
36681
|
if (grantStatus !== PermissionStatus.granted) {
|
|
36666
36682
|
return (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.insufficientScope });
|
|
36667
36683
|
}
|
|
36668
|
-
|
|
36684
|
+
const result2 = await ppFetch2({
|
|
36669
36685
|
method: "GET",
|
|
36670
36686
|
url: "web-api/app/v2/payment/methods",
|
|
36671
36687
|
params: {
|
|
@@ -36682,7 +36698,7 @@ async function checkPaymentMethod(checkPayMethodParams) {
|
|
|
36682
36698
|
errorCode: getFailErrorCode(result2.ppFetchResult)
|
|
36683
36699
|
});
|
|
36684
36700
|
}
|
|
36685
|
-
|
|
36701
|
+
const paymentMethodList = (_e = (_d = (_c = result2 == null ? void 0 : result2.body.unsigned) == null ? void 0 : _c.data) == null ? void 0 : _d.payload) == null ? void 0 : _e.paymentMethodList;
|
|
36686
36702
|
if (!paymentMethodList) {
|
|
36687
36703
|
return (_f = params == null ? void 0 : params.fail) == null ? void 0 : _f.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
36688
36704
|
} else if (paymentMethodList.length > 0) {
|
|
@@ -36701,7 +36717,7 @@ function debug(params) {
|
|
|
36701
36717
|
function execute$a(params) {
|
|
36702
36718
|
var _a2;
|
|
36703
36719
|
(_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params, {
|
|
36704
|
-
v: "1.
|
|
36720
|
+
v: "1.70.0"
|
|
36705
36721
|
});
|
|
36706
36722
|
}
|
|
36707
36723
|
function useCallBack(props, ctx) {
|
|
@@ -36958,7 +36974,7 @@ const Email = defineComponent({
|
|
|
36958
36974
|
if (state.validateFailed) {
|
|
36959
36975
|
return;
|
|
36960
36976
|
}
|
|
36961
|
-
|
|
36977
|
+
const value2 = String(props.modelValue);
|
|
36962
36978
|
if (!runSyncRule(value2, rule) && value2) {
|
|
36963
36979
|
state.validateFailed = true;
|
|
36964
36980
|
state.validateMessage = getRuleMessage(value2, rule);
|
|
@@ -38519,7 +38535,7 @@ const en = {
|
|
|
38519
38535
|
};
|
|
38520
38536
|
function getRenderLoginInfo(params) {
|
|
38521
38537
|
var _a2;
|
|
38522
|
-
|
|
38538
|
+
const preferredLanguage = (params == null ? void 0 : params.locale) || getPayPayLanguage();
|
|
38523
38539
|
const { smartLogin } = preferredLanguage === "en" ? en : ja$1;
|
|
38524
38540
|
const userInfo = getUserInfo();
|
|
38525
38541
|
const loggedinUser = userInfo ? JSON.parse(userInfo) : void 0;
|
|
@@ -38811,7 +38827,7 @@ const initSmartButton = (params, data2, preferredLanguage, isLoggedIn) => {
|
|
|
38811
38827
|
};
|
|
38812
38828
|
async function getRenderPayInfo(params) {
|
|
38813
38829
|
var _a2;
|
|
38814
|
-
|
|
38830
|
+
const preferredLanguage = (params == null ? void 0 : params.locale) || getPayPayLanguage();
|
|
38815
38831
|
const { smartPay } = preferredLanguage === "en" ? en : ja$1;
|
|
38816
38832
|
const loggedIn = await getIsLoggedIn();
|
|
38817
38833
|
const renderParams = loggedIn ? {
|
|
@@ -38825,7 +38841,7 @@ async function getRenderPayInfo(params) {
|
|
|
38825
38841
|
(_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: getFailErrorCode(res.ppFetchResult) });
|
|
38826
38842
|
return null;
|
|
38827
38843
|
}
|
|
38828
|
-
|
|
38844
|
+
const cashbackInfo2 = createCashbackInfo(res.body);
|
|
38829
38845
|
const data2 = getRenderPayButtonInfo(params, smartPay, cashbackInfo2);
|
|
38830
38846
|
return {
|
|
38831
38847
|
renderParams,
|
|
@@ -38865,11 +38881,11 @@ async function getExpectedCashbackInfo(orderInfo) {
|
|
|
38865
38881
|
return resp;
|
|
38866
38882
|
}
|
|
38867
38883
|
function createCashbackInfo(cashbackResponse) {
|
|
38868
|
-
var _a2
|
|
38884
|
+
var _a2;
|
|
38869
38885
|
if ((_a2 = cashbackResponse.unsigned) == null ? void 0 : _a2.data) {
|
|
38870
|
-
const { normalCashbackPercentage, lotteryCashbackPercentage } =
|
|
38886
|
+
const { normalCashbackPercentage, lotteryCashbackPercentage } = cashbackResponse.unsigned.data;
|
|
38871
38887
|
if (normalCashbackPercentage || lotteryCashbackPercentage) {
|
|
38872
|
-
|
|
38888
|
+
const tempCashback = Number(
|
|
38873
38889
|
(parseFloat(normalCashbackPercentage != null ? normalCashbackPercentage : "0") + parseFloat(lotteryCashbackPercentage != null ? lotteryCashbackPercentage : "0")).toFixed(1)
|
|
38874
38890
|
);
|
|
38875
38891
|
return tempCashback ? tempCashback.toString() : "";
|
|
@@ -39042,8 +39058,8 @@ const validators = {
|
|
|
39042
39058
|
reason: lg.registerUserInfo.validation.alphabetLength32Error
|
|
39043
39059
|
};
|
|
39044
39060
|
}
|
|
39045
|
-
|
|
39046
|
-
|
|
39061
|
+
const spaceFullWidth = "\u3000";
|
|
39062
|
+
const spaceHalfWidth = " ";
|
|
39047
39063
|
if (isAlphabet(value2)) {
|
|
39048
39064
|
let newValue = getStringConvertedHalfWidth(
|
|
39049
39065
|
value2,
|
|
@@ -44052,7 +44068,7 @@ async function initKycPassport(params) {
|
|
|
44052
44068
|
return initKycPassportError(params, status2);
|
|
44053
44069
|
}
|
|
44054
44070
|
}
|
|
44055
|
-
|
|
44071
|
+
const callbackUrl = new URL(params.callbackUrl);
|
|
44056
44072
|
callbackUrl.searchParams.set("ppFunction", "kycPassport");
|
|
44057
44073
|
callbackUrl.searchParams.set(
|
|
44058
44074
|
"ppEkycDocuments",
|
|
@@ -44553,7 +44569,7 @@ async function execute(params) {
|
|
|
44553
44569
|
return;
|
|
44554
44570
|
}
|
|
44555
44571
|
const userPaymentFeatureSettings = res.body.unsigned.data;
|
|
44556
|
-
|
|
44572
|
+
const paymentFeatures = {};
|
|
44557
44573
|
(_c = Object.entries(userPaymentFeatureSettings)) == null ? void 0 : _c.forEach(([key2, value2]) => {
|
|
44558
44574
|
paymentFeatures[key2.toUpperCase()] = value2 ? "AVAILABLE" : "UNAVAILABLE";
|
|
44559
44575
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { AnimationItem } from 'lottie-web/build/player/lottie_svg';
|
|
3
3
|
import { RenderType } from '../../types';
|
|
4
|
-
declare type TRenderType = typeof RenderType[keyof typeof RenderType];
|
|
4
|
+
declare type TRenderType = (typeof RenderType)[keyof typeof RenderType];
|
|
5
5
|
export declare const Lottie: import("vue").DefineComponent<{
|
|
6
6
|
loop: {
|
|
7
7
|
type: BooleanConstructor;
|
package/dist/types.d.ts
CHANGED
|
@@ -423,13 +423,13 @@ export declare const PaymentFeatureTypes: {
|
|
|
423
423
|
readonly FALLBACK_PAYMENT_METHOD: "FALLBACK_PAYMENT_METHOD";
|
|
424
424
|
readonly RECOMMEND: "RECOMMEND";
|
|
425
425
|
};
|
|
426
|
-
export declare type PaymentFeatureType = typeof PaymentFeatureTypes[keyof typeof PaymentFeatureTypes];
|
|
426
|
+
export declare type PaymentFeatureType = (typeof PaymentFeatureTypes)[keyof typeof PaymentFeatureTypes];
|
|
427
427
|
export declare const ConsultPaymentFeatureTypes: {
|
|
428
428
|
readonly PRE_TRANSACTION_AUTO_CHARGE: "PRE_TRANSACTION_AUTO_CHARGE";
|
|
429
429
|
readonly FALLBACK_PAYMENT_METHOD: "FALLBACK_PAYMENT_METHOD";
|
|
430
430
|
readonly NONE: "NONE";
|
|
431
431
|
};
|
|
432
|
-
export declare type ConsultPaymentFeatureType = typeof ConsultPaymentFeatureTypes[keyof typeof ConsultPaymentFeatureTypes];
|
|
432
|
+
export declare type ConsultPaymentFeatureType = (typeof ConsultPaymentFeatureTypes)[keyof typeof ConsultPaymentFeatureTypes];
|
|
433
433
|
export interface RegisterPaymentFeaturesParams extends NativeParams<void> {
|
|
434
434
|
paymentFeatureType: PaymentFeatureType;
|
|
435
435
|
redirectUrl?: string;
|
|
@@ -492,14 +492,14 @@ export declare const AddShortcutTypes: {
|
|
|
492
492
|
readonly FAVORITE: "FAVORITE";
|
|
493
493
|
readonly OS_HOME_SCREEN_ICON: "OS_HOME_SCREEN_ICON";
|
|
494
494
|
};
|
|
495
|
-
export declare type AddShortcutType = typeof AddShortcutTypes[keyof typeof AddShortcutTypes];
|
|
495
|
+
export declare type AddShortcutType = (typeof AddShortcutTypes)[keyof typeof AddShortcutTypes];
|
|
496
496
|
export interface AddShortcutParams extends NativeParams<void> {
|
|
497
497
|
type: AddShortcutType;
|
|
498
498
|
}
|
|
499
499
|
export declare const ShortcutExistsTypes: {
|
|
500
500
|
readonly FAVORITE: "FAVORITE";
|
|
501
501
|
};
|
|
502
|
-
export declare type ShortcutExistsType = typeof ShortcutExistsTypes[keyof typeof ShortcutExistsTypes];
|
|
502
|
+
export declare type ShortcutExistsType = (typeof ShortcutExistsTypes)[keyof typeof ShortcutExistsTypes];
|
|
503
503
|
export interface ShortcutExistsParams extends NativeParams<MiniAppResult> {
|
|
504
504
|
type: ShortcutExistsType;
|
|
505
505
|
}
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -42,6 +42,8 @@ export declare function isPayPayMiniApp(): boolean;
|
|
|
42
42
|
export declare function getAppVersion(): string | null;
|
|
43
43
|
export declare function semVerCompare(a: string, b: string): boolean;
|
|
44
44
|
export declare function checkVersion(minVersion: string): boolean;
|
|
45
|
+
declare type FontSize = 'REGULAR' | 'LARGE' | 'EXTRA_LARGE';
|
|
46
|
+
export declare function getPlatformFontSize(): FontSize;
|
|
45
47
|
export declare function delay(time?: number): Promise<boolean>;
|
|
46
48
|
export declare const createErrorCode: (errorCode: MiniAppErrorType, jws?: string | null | undefined) => {
|
|
47
49
|
errorCode: MiniAppErrorType;
|
|
@@ -59,4 +61,5 @@ export declare function openUrl(linkUrl: string): void;
|
|
|
59
61
|
export declare function getButtonType(button: UIComponentsErrorButton | ErrorSheetButton, onlyButton?: boolean): "success" | "default" | "primary" | "warning" | "danger" | "link" | "outLined";
|
|
60
62
|
export declare function isAlphabet(value: string): boolean;
|
|
61
63
|
export declare function reconstructKycPassportCallbackUrl(url: string, type: string): string;
|
|
64
|
+
export declare function getValueFromUA(paramName: string): string | undefined;
|
|
62
65
|
export {};
|
|
@@ -3,4 +3,4 @@ export declare const GetKycPassportErrorSheet: {
|
|
|
3
3
|
readonly VERIFY_EXPIRED: "verifyExpired";
|
|
4
4
|
readonly FALLBACK_SMS: "fallbackSMS";
|
|
5
5
|
};
|
|
6
|
-
export declare type GetKycPassportErrorSheetType = typeof GetKycPassportErrorSheet[keyof typeof GetKycPassportErrorSheet];
|
|
6
|
+
export declare type GetKycPassportErrorSheetType = (typeof GetKycPassportErrorSheet)[keyof typeof GetKycPassportErrorSheet];
|
|
@@ -26,7 +26,7 @@ export declare type UserProfileFormDataPoint = {
|
|
|
26
26
|
selectionItems?: string[];
|
|
27
27
|
};
|
|
28
28
|
declare const userProfileFormDataPointTypes: readonly ["NAME", "EMAIL", "MOBILE_NUMBER", "NUMBER", "TEXT", "DATE", "SINGLE_SELECTION_LIST", "SINGLE_SELECTION_BUTTON", "MULTIPLE_SELECTION_BUTTON"];
|
|
29
|
-
declare type UserProfileFormDataPointType = typeof userProfileFormDataPointTypes[number];
|
|
29
|
+
declare type UserProfileFormDataPointType = (typeof userProfileFormDataPointTypes)[number];
|
|
30
30
|
export declare const userProfileFormValidationTypes: readonly ["KATA_KANA", "ROMAN", "MOBILE", "TEXT", "NUMBER"];
|
|
31
|
-
export declare type UserProfileFormValidationType = typeof userProfileFormValidationTypes[number];
|
|
31
|
+
export declare type UserProfileFormValidationType = (typeof userProfileFormValidationTypes)[number];
|
|
32
32
|
export {};
|
|
@@ -5,7 +5,7 @@ export declare const AutoTopupModeType: {
|
|
|
5
5
|
readonly PRE_AUTO_TOPUP: "PreAutoTopup";
|
|
6
6
|
readonly UNREGISTERED: "Unregistered";
|
|
7
7
|
};
|
|
8
|
-
export declare type AutoTopupMode = typeof AutoTopupModeType[keyof typeof AutoTopupModeType];
|
|
8
|
+
export declare type AutoTopupMode = (typeof AutoTopupModeType)[keyof typeof AutoTopupModeType];
|
|
9
9
|
export declare type GetTopupConfigurationParams = {
|
|
10
10
|
includePaymentMethodList: boolean;
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paypay/mini-app-js-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.70.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "vite build",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@types/jest": "^26.0.24",
|
|
42
42
|
"@types/js-cookie": "^2.2.7",
|
|
43
43
|
"@types/uuid": "^8.3.1",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
45
|
-
"@typescript-eslint/parser": "^
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
45
|
+
"@typescript-eslint/parser": "^5.58.0",
|
|
46
46
|
"@vitejs/plugin-vue": "^1.10.2",
|
|
47
47
|
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
|
48
48
|
"@vue/babel-plugin-jsx": "^1.0.7",
|
|
@@ -50,9 +50,10 @@
|
|
|
50
50
|
"@vue/test-utils": "^2.0.0-rc.21",
|
|
51
51
|
"acorn-jsx": "^5.3.2",
|
|
52
52
|
"babel-jest": "^26.6.3",
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"eslint-config-prettier": "^8.
|
|
55
|
-
"eslint-plugin-
|
|
53
|
+
"eslint": "^8.38.0",
|
|
54
|
+
"eslint-config-prettier": "^8.8.0",
|
|
55
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
56
|
+
"eslint-plugin-vue": "^9.10.0",
|
|
56
57
|
"husky": "^7.0.2",
|
|
57
58
|
"identity-obj-proxy": "^3.0.0",
|
|
58
59
|
"isomorphic-fetch": "^3.0.0",
|
|
@@ -64,13 +65,13 @@
|
|
|
64
65
|
"lint-staged": "^11.1.2",
|
|
65
66
|
"postcss-html": "^1.4.1",
|
|
66
67
|
"postcss-less": "^6.0.0",
|
|
67
|
-
"prettier": "^2.
|
|
68
|
+
"prettier": "^2.8.7",
|
|
68
69
|
"stylelint": "^14.9.1",
|
|
69
70
|
"ts-jest": "^26.5.6",
|
|
70
71
|
"typescript": "~4.4.2",
|
|
71
72
|
"vite": "^2.9.15",
|
|
72
73
|
"vite-plugin-dts": "^0.9.10",
|
|
73
|
-
"vue-eslint-parser": "^
|
|
74
|
+
"vue-eslint-parser": "^9.1.1",
|
|
74
75
|
"vue-jest": "5.0.0-alpha.9",
|
|
75
76
|
"vue-tsc": "^1.0.24"
|
|
76
77
|
},
|