@paypay/mini-app-js-sdk 1.26.0 → 1.27.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.
@@ -65,7 +65,8 @@ function normalizeNativeResponseData(data2) {
65
65
  }
66
66
  class JsBridge {
67
67
  constructor(global2) {
68
- this.version = "1.26.0";
68
+ this.version = "1.27.0";
69
+ this.revision = "bf7b138";
69
70
  this.messageHandlers = new Map();
70
71
  this.responseCallbacks = new Map();
71
72
  this.global = global2;
@@ -1518,7 +1519,7 @@ const opaUrl = () => {
1518
1519
  const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
1519
1520
  let headers = new Headers(__spreadValues({
1520
1521
  "Content-Type": "application/json",
1521
- "Client-Version": "1.26.0",
1522
+ "Client-Version": "1.27.0",
1522
1523
  "Client-OS-Type": getRuntime()
1523
1524
  }, customHeaders));
1524
1525
  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") {
@@ -26881,6 +26882,7 @@ const _sfc_main$l = defineComponent({
26881
26882
  const { postAgeConfirm } = getAgeConfirm();
26882
26883
  const lg2 = getLanguage();
26883
26884
  const images2 = getImages();
26885
+ const { isDesktop } = useBreakpoints();
26884
26886
  const isCountDown = ref(false);
26885
26887
  const countDown = useCountDown({
26886
26888
  time: 5e3,
@@ -26907,7 +26909,8 @@ const _sfc_main$l = defineComponent({
26907
26909
  s.addEventListener("data_ready", (_) => {
26908
26910
  var _a;
26909
26911
  uiState.animationLoaded = true;
26910
- makeSound((_a = animation.value) == null ? void 0 : _a.soundUrl);
26912
+ if (isPayPayMiniApp())
26913
+ makeSound((_a = animation.value) == null ? void 0 : _a.soundUrl);
26911
26914
  });
26912
26915
  s.addEventListener("complete", uiState.animationListener);
26913
26916
  };
@@ -26993,6 +26996,10 @@ const _sfc_main$l = defineComponent({
26993
26996
  var _a;
26994
26997
  return (_a = animation.value) != null ? _a : { optionalText: "", url: "" };
26995
26998
  }),
26999
+ animationUrl: computed(() => {
27000
+ var _a;
27001
+ return animation.value ? isDesktop.value ? (_a = animation.value.largeUrl) != null ? _a : animation.value.url : animation.value.url : "";
27002
+ }),
26996
27003
  type,
26997
27004
  showContent: computed(() => uiState.showContent),
26998
27005
  showFullScreenContent: computed(() => uiState.showFullscreenContent),
@@ -27032,7 +27039,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
27032
27039
  }, [
27033
27040
  createVNode(_component_Lottie, {
27034
27041
  loop: false,
27035
- path: _ctx.animation.url,
27042
+ path: _ctx.animationUrl,
27036
27043
  autoplay: false,
27037
27044
  styles: { width: "auto", height: "auto" },
27038
27045
  "class-name": _ctx.style.lottieContainer,
@@ -32042,7 +32049,7 @@ function debug(params) {
32042
32049
  function execute$5(params) {
32043
32050
  var _a;
32044
32051
  (_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
32045
- v: "1.26.0"
32052
+ v: "1.27.0"
32046
32053
  });
32047
32054
  }
32048
32055
  function useCallBack(props, ctx) {
@@ -291,6 +291,7 @@ export declare type CashBackDetailAnimation = {
291
291
  optionalText: string;
292
292
  campaignId: string;
293
293
  url: string;
294
+ largeUrl?: string;
294
295
  };
295
296
  declare type CashBackDetailInfo = {
296
297
  amountText: string;
@@ -117,6 +117,7 @@ declare const _default: import("vue").DefineComponent<{
117
117
  optionalText: string;
118
118
  campaignId: string;
119
119
  url: string;
120
+ largeUrl?: string | undefined;
120
121
  }[];
121
122
  optionalText: string;
122
123
  animationUrl: string;
@@ -13,6 +13,7 @@ declare const _default: import("vue").DefineComponent<{
13
13
  }, {
14
14
  createAnime: (s: AnimationItem) => void;
15
15
  animation: import("vue").ComputedRef<import("../../../../model/makePayment").CashBackDetailAnimation>;
16
+ animationUrl: import("vue").ComputedRef<string>;
16
17
  type: import("vue").ComputedRef<{
17
18
  lottie: boolean;
18
19
  tierCampaignBottom: boolean;
@@ -346,6 +346,7 @@ export declare function useCashBackDetail(props: Props): {
346
346
  optionalText: string;
347
347
  campaignId: string;
348
348
  url: string;
349
+ largeUrl?: string | undefined;
349
350
  }[];
350
351
  optionalText: string;
351
352
  animationUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vite build",