@paypay/mini-app-js-sdk 1.31.0 → 1.32.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 (27) hide show
  1. package/dist/mini-app-js-sdk.browser.js +1 -1
  2. package/dist/mini-app-js-sdk.es.js +18 -12
  3. package/dist/package/payment-method/PayLaterCC.vue.d.ts +1 -0
  4. package/dist/package/payment-method/SbidBank.vue.d.ts +1 -0
  5. package/dist/package/payment-method/Wallet.vue.d.ts +1 -0
  6. package/dist/package/payment-type/PayLaterCC.vue.d.ts +1 -0
  7. package/dist/package/payment-type/Sbid.vue.d.ts +1 -0
  8. package/dist/package/payment-type/Wallet.vue.d.ts +1 -0
  9. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +1 -0
  10. package/dist/utils/getImages.d.ts +1 -0
  11. package/dist/views/error-sheet/Index.vue.d.ts +1 -0
  12. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +1 -0
  13. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +1 -0
  14. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +1 -0
  15. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +3 -0
  16. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +1 -0
  17. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +1 -0
  18. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +1 -0
  19. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +1 -0
  20. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +1 -0
  21. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +1 -0
  22. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +1 -0
  23. package/dist/views/open-app/App.vue.d.ts +1 -0
  24. package/dist/views/show-update-warning/App.vue.d.ts +1 -0
  25. package/dist/views/topup/App.vue.d.ts +1 -0
  26. package/dist/views/topup/TopupCompletion.vue.d.ts +1 -0
  27. package/package.json +1 -1
@@ -65,8 +65,8 @@ function normalizeNativeResponseData(data2) {
65
65
  }
66
66
  class JsBridge {
67
67
  constructor(global2) {
68
- this.version = "1.31.0";
69
- this.revision = "af22aa7";
68
+ this.version = "1.32.0";
69
+ this.revision = "19afd4b";
70
70
  this.messageHandlers = new Map();
71
71
  this.responseCallbacks = new Map();
72
72
  this.global = global2;
@@ -1657,7 +1657,7 @@ const opaUrl = () => {
1657
1657
  const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
1658
1658
  let headers = new Headers(__spreadValues({
1659
1659
  "Content-Type": "application/json",
1660
- "Client-Version": "1.31.0",
1660
+ "Client-Version": "1.32.0",
1661
1661
  "Client-OS-Type": getRuntime()
1662
1662
  }, customHeaders));
1663
1663
  if (urlEndpoint === "web-api/app/v2/payment/methods" || urlEndpoint === "web-api/app/v2/payment/consult" || urlEndpoint === "web-api/app/v1/payment/cashbackDetail" || urlEndpoint === "web-api/app/v1/confirmAgeForCashback" || urlEndpoint === "web-api/app/v1/internal/request" || urlEndpoint === "web-api/app/v1/addressbyzip" || urlEndpoint === "/web-api/app/platform/v1/balance") {
@@ -20099,6 +20099,7 @@ const softbank$1 = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/payment/sof
20099
20099
  const iconBirthday = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-birthday.svg";
20100
20100
  const iconMinorAge = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-minor-age.svg";
20101
20101
  const iconClose = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-close.svg";
20102
+ const whiteIconClose = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-close-white.svg";
20102
20103
  const myOffer = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-myoffer-multi.svg";
20103
20104
  const lightBlue = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-more-lightblue.svg";
20104
20105
  const iconBalanceIcon = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-balance-icon.svg";
@@ -20135,6 +20136,7 @@ var images = {
20135
20136
  iconBirthday,
20136
20137
  iconMinorAge,
20137
20138
  iconClose,
20139
+ whiteIconClose,
20138
20140
  myOffer,
20139
20141
  lightBlue,
20140
20142
  iconBalanceIcon,
@@ -27146,11 +27148,12 @@ const _sfc_main$l = defineComponent({
27146
27148
  },
27147
27149
  emits: ["close"],
27148
27150
  setup(props, { emit }) {
27151
+ const cashback2 = ref();
27149
27152
  const { animation, uiState, type } = useData$1(props);
27150
27153
  const { postAgeConfirm } = getAgeConfirm();
27151
27154
  const lg2 = getLanguage();
27152
27155
  const images2 = getImages();
27153
- const { isDesktop } = useBreakpoints();
27156
+ const { isDesktop, isMobile } = useBreakpoints();
27154
27157
  const isCountDown = ref(false);
27155
27158
  const countDown = useCountDown({
27156
27159
  time: 5e3,
@@ -27252,10 +27255,10 @@ const _sfc_main$l = defineComponent({
27252
27255
  };
27253
27256
  const style = useCssModule();
27254
27257
  const headerFix = computed(() => {
27255
- var _a;
27256
- const { headerHeight } = useGetHeightProperties();
27258
+ var _a, _b, _c;
27259
+ const offsetTop = (_b = (_a = cashback2 == null ? void 0 : cashback2.value) == null ? void 0 : _a.offsetTop) != null ? _b : 0;
27257
27260
  return {
27258
- top: `${16 + (((_a = type.value) == null ? void 0 : _a.tierCampaignBottom) ? 0 : headerHeight)}px`
27261
+ top: `${16 + (((_c = type.value) == null ? void 0 : _c.tierCampaignBottom) ? 0 : Math.abs(offsetTop))}px`
27259
27262
  };
27260
27263
  });
27261
27264
  return {
@@ -27286,8 +27289,10 @@ const _sfc_main$l = defineComponent({
27286
27289
  close: close2,
27287
27290
  loaded: computed(() => uiState.animationLoaded),
27288
27291
  headerFix,
27292
+ isMobile: isMobile.value,
27289
27293
  images: images2,
27290
- lg: lg2
27294
+ lg: lg2,
27295
+ cashback: cashback2
27291
27296
  };
27292
27297
  }
27293
27298
  });
@@ -27298,7 +27303,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
27298
27303
  const _component_BirthdayConfirm = resolveComponent("BirthdayConfirm");
27299
27304
  const _component_BirthdayConfirmError = resolveComponent("BirthdayConfirmError");
27300
27305
  return withDirectives((openBlock(), createElementBlock("div", {
27301
- class: normalizeClass(["ppmna-default-font", {
27306
+ ref: "cashback",
27307
+ class: normalizeClass(["pp-cashback-lottie-container", {
27302
27308
  [_ctx.style.cashBackAnimationLottie]: _ctx.type.lottie,
27303
27309
  [_ctx.style.cashBackAnimationBottom]: _ctx.type.tierCampaignBottom,
27304
27310
  [_ctx.style.cashBackAnimationFull]: _ctx.type.tierCampaignFull,
@@ -27317,8 +27323,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
27317
27323
  _ctx.showContent && !_ctx.showAgeConfirm ? (openBlock(), createElementBlock("img", {
27318
27324
  key: 0,
27319
27325
  class: normalizeClass(_ctx.style.closeImage),
27320
- src: _ctx.images.iconClose,
27321
- style: normalizeStyle(_ctx.headerFix),
27326
+ src: _ctx.images.whiteIconClose,
27327
+ style: normalizeStyle([_ctx.isMobile ? _ctx.headerFix : {}]),
27322
27328
  "data-test": "cash-back-detail-close-button",
27323
27329
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.close && _ctx.close(...args))
27324
27330
  }, null, 14, _hoisted_1$f)) : createCommentVNode("", true),
@@ -32305,7 +32311,7 @@ function debug(params) {
32305
32311
  function execute$5(params) {
32306
32312
  var _a;
32307
32313
  (_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
32308
- v: "1.31.0"
32314
+ v: "1.32.0"
32309
32315
  });
32310
32316
  }
32311
32317
  function useCallBack(props, ctx) {
@@ -32,6 +32,7 @@ declare const _default: import("vue").DefineComponent<{
32
32
  iconBirthday: string;
33
33
  iconMinorAge: string;
34
34
  iconClose: string;
35
+ whiteIconClose: string;
35
36
  myOffer: string;
36
37
  lightBlue: string;
37
38
  iconBalanceIcon: string;
@@ -31,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
31
31
  iconBirthday: string;
32
32
  iconMinorAge: string;
33
33
  iconClose: string;
34
+ whiteIconClose: string;
34
35
  myOffer: string;
35
36
  lightBlue: string;
36
37
  iconBalanceIcon: string;
@@ -44,6 +44,7 @@ declare const _default: import("vue").DefineComponent<{
44
44
  iconBirthday: string;
45
45
  iconMinorAge: string;
46
46
  iconClose: string;
47
+ whiteIconClose: string;
47
48
  myOffer: string;
48
49
  lightBlue: string;
49
50
  iconBalanceIcon: string;
@@ -31,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
31
31
  iconBirthday: string;
32
32
  iconMinorAge: string;
33
33
  iconClose: string;
34
+ whiteIconClose: string;
34
35
  myOffer: string;
35
36
  lightBlue: string;
36
37
  iconBalanceIcon: string;
@@ -31,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
31
31
  iconBirthday: string;
32
32
  iconMinorAge: string;
33
33
  iconClose: string;
34
+ whiteIconClose: string;
34
35
  myOffer: string;
35
36
  lightBlue: string;
36
37
  iconBalanceIcon: string;
@@ -31,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
31
31
  iconBirthday: string;
32
32
  iconMinorAge: string;
33
33
  iconClose: string;
34
+ whiteIconClose: string;
34
35
  myOffer: string;
35
36
  lightBlue: string;
36
37
  iconBalanceIcon: string;
@@ -41,6 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  iconBirthday: string;
42
42
  iconMinorAge: string;
43
43
  iconClose: string;
44
+ whiteIconClose: string;
44
45
  myOffer: string;
45
46
  lightBlue: string;
46
47
  iconBalanceIcon: string;
@@ -22,6 +22,7 @@ export declare function getImages(): {
22
22
  iconBirthday: string;
23
23
  iconMinorAge: string;
24
24
  iconClose: string;
25
+ whiteIconClose: string;
25
26
  myOffer: string;
26
27
  lightBlue: string;
27
28
  iconBalanceIcon: string;
@@ -48,6 +48,7 @@ declare const _default: import("vue").DefineComponent<{
48
48
  iconBirthday: string;
49
49
  iconMinorAge: string;
50
50
  iconClose: string;
51
+ whiteIconClose: string;
51
52
  myOffer: string;
52
53
  lightBlue: string;
53
54
  iconBalanceIcon: string;
@@ -270,6 +270,7 @@ declare const _default: import("vue").DefineComponent<{
270
270
  iconBirthday: string;
271
271
  iconMinorAge: string;
272
272
  iconClose: string;
273
+ whiteIconClose: string;
273
274
  myOffer: string;
274
275
  lightBlue: string;
275
276
  iconBalanceIcon: string;
@@ -33,6 +33,7 @@ declare const _default: import("vue").DefineComponent<{
33
33
  iconBirthday: string;
34
34
  iconMinorAge: string;
35
35
  iconClose: string;
36
+ whiteIconClose: string;
36
37
  myOffer: string;
37
38
  lightBlue: string;
38
39
  iconBalanceIcon: string;
@@ -30,6 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  iconBirthday: string;
31
31
  iconMinorAge: string;
32
32
  iconClose: string;
33
+ whiteIconClose: string;
33
34
  myOffer: string;
34
35
  lightBlue: string;
35
36
  iconBalanceIcon: string;
@@ -39,6 +39,7 @@ declare const _default: import("vue").DefineComponent<{
39
39
  headerFix: import("vue").ComputedRef<{
40
40
  top: string;
41
41
  }>;
42
+ isMobile: boolean;
42
43
  images: {
43
44
  iconBalanceError: string;
44
45
  animationDone: string;
@@ -63,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{
63
64
  iconBirthday: string;
64
65
  iconMinorAge: string;
65
66
  iconClose: string;
67
+ whiteIconClose: string;
66
68
  myOffer: string;
67
69
  lightBlue: string;
68
70
  iconBalanceIcon: string;
@@ -314,6 +316,7 @@ declare const _default: import("vue").DefineComponent<{
314
316
  cancel: string;
315
317
  };
316
318
  };
319
+ cashback: import("vue").Ref<HTMLElement | undefined>;
317
320
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
318
321
  cashBackDetail?: unknown;
319
322
  paymentId?: unknown;
@@ -110,6 +110,7 @@ declare const _default: import("vue").DefineComponent<{
110
110
  iconBirthday: string;
111
111
  iconMinorAge: string;
112
112
  iconClose: string;
113
+ whiteIconClose: string;
113
114
  myOffer: string;
114
115
  lightBlue: string;
115
116
  iconBalanceIcon: string;
@@ -52,6 +52,7 @@ declare const _default: import("vue").DefineComponent<{
52
52
  iconBirthday: string;
53
53
  iconMinorAge: string;
54
54
  iconClose: string;
55
+ whiteIconClose: string;
55
56
  myOffer: string;
56
57
  lightBlue: string;
57
58
  iconBalanceIcon: string;
@@ -23,6 +23,7 @@ declare const _default: import("vue").DefineComponent<{}, {
23
23
  iconBirthday: string;
24
24
  iconMinorAge: string;
25
25
  iconClose: string;
26
+ whiteIconClose: string;
26
27
  myOffer: string;
27
28
  lightBlue: string;
28
29
  iconBalanceIcon: string;
@@ -302,6 +302,7 @@ declare const _default: import("vue").DefineComponent<{
302
302
  iconBirthday: string;
303
303
  iconMinorAge: string;
304
304
  iconClose: string;
305
+ whiteIconClose: string;
305
306
  myOffer: string;
306
307
  lightBlue: string;
307
308
  iconBalanceIcon: string;
@@ -105,6 +105,7 @@ declare const _default: import("vue").DefineComponent<{
105
105
  iconBirthday: string;
106
106
  iconMinorAge: string;
107
107
  iconClose: string;
108
+ whiteIconClose: string;
108
109
  myOffer: string;
109
110
  lightBlue: string;
110
111
  iconBalanceIcon: string;
@@ -45,6 +45,7 @@ declare const _default: import("vue").DefineComponent<{
45
45
  iconBirthday: string;
46
46
  iconMinorAge: string;
47
47
  iconClose: string;
48
+ whiteIconClose: string;
48
49
  myOffer: string;
49
50
  lightBlue: string;
50
51
  iconBalanceIcon: string;
@@ -84,6 +84,7 @@ declare const _default: import("vue").DefineComponent<{
84
84
  iconBirthday: string;
85
85
  iconMinorAge: string;
86
86
  iconClose: string;
87
+ whiteIconClose: string;
87
88
  myOffer: string;
88
89
  lightBlue: string;
89
90
  iconBalanceIcon: string;
@@ -36,6 +36,7 @@ declare const _default: import("vue").DefineComponent<{
36
36
  iconBirthday: string;
37
37
  iconMinorAge: string;
38
38
  iconClose: string;
39
+ whiteIconClose: string;
39
40
  myOffer: string;
40
41
  lightBlue: string;
41
42
  iconBalanceIcon: string;
@@ -270,6 +270,7 @@ declare const _default: import("vue").DefineComponent<{
270
270
  iconBirthday: string;
271
271
  iconMinorAge: string;
272
272
  iconClose: string;
273
+ whiteIconClose: string;
273
274
  myOffer: string;
274
275
  lightBlue: string;
275
276
  iconBalanceIcon: string;
@@ -316,6 +316,7 @@ declare const _default: import("vue").DefineComponent<{
316
316
  iconBirthday: string;
317
317
  iconMinorAge: string;
318
318
  iconClose: string;
319
+ whiteIconClose: string;
319
320
  myOffer: string;
320
321
  lightBlue: string;
321
322
  iconBalanceIcon: string;
@@ -30,6 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  iconBirthday: string;
31
31
  iconMinorAge: string;
32
32
  iconClose: string;
33
+ whiteIconClose: string;
33
34
  myOffer: string;
34
35
  lightBlue: string;
35
36
  iconBalanceIcon: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "1.31.0",
3
+ "version": "1.32.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vite build",