@paypay/mini-app-js-sdk 2.33.0 → 2.37.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.
@@ -1,3 +1,4 @@
1
+ import { Window } from '../types';
1
2
  import { PPEnvType } from '../types/init';
2
3
  export declare function getAccessToken(): string | null;
3
4
  export declare function saveClaimCouponImmediately(couponId: string): void;
@@ -22,8 +23,19 @@ export declare function getLastTopupPayMethod(): string | null;
22
23
  export declare function getLastPayment(): string | null;
23
24
  export declare function saveLastTopup(topup: string): void;
24
25
  export declare function getLastTopup(): string;
25
- export declare function saveAppDetail(appDetail: string): void;
26
- export declare function getAppDetail(clientId?: string): string | null;
26
+ export declare type SerializedAppDetail = {
27
+ appLogo: string | null;
28
+ appName: string | null;
29
+ englishName: string | null;
30
+ openUrl: string | null;
31
+ whiteListDomains: string[];
32
+ isInternal: boolean;
33
+ window: Window;
34
+ subdomainCookieSharing: boolean;
35
+ externalUserId?: string;
36
+ };
37
+ export declare function saveAppDetail(appDetail: SerializedAppDetail): void;
38
+ export declare function getAppDetail(clientId?: string): SerializedAppDetail | null;
27
39
  export declare function removeAppDetail(): void;
28
40
  export declare function saveAppConfig(appConfig: string): void;
29
41
  export declare function getAppConfig(): string | null;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "2.33.0",
3
+ "version": "2.37.0",
4
4
  "private": false,
5
5
  "scripts": {
6
- "build": "yarn build:client && yarn build:core && yarn build:init",
6
+ "build": "yarn build:client && yarn build:core",
7
7
  "build:miniApp": "SDK_TYPE=miniApp yarn build",
8
8
  "build:smartPayment": "SDK_TYPE=smartPayment yarn build",
9
9
  "build:client": "vite build",
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { PayPayJsBridge } from './mini-app-js-sdk';
2
- declare const paypayJsBridge: PayPayJsBridge;
3
- export default paypayJsBridge;
@@ -1,3 +0,0 @@
1
- import { JsBridge } from '../jsbridge';
2
- export declare function exposeJsBridge(jsBridge: JsBridge): boolean;
3
- export declare function exposePayPayJsBridge(paypayJsBridge: unknown): boolean;
@@ -1,13 +0,0 @@
1
- import { JsBridge, NativeParams } from './jsbridge';
2
- export declare abstract class JsBridgeModule {
3
- jsBridge: JsBridge;
4
- instances: Record<string, JsBridgeModule>;
5
- state: {
6
- executing: boolean;
7
- };
8
- isExecutableService: (params: NativeParams<never>) => boolean;
9
- }
10
- export interface JsBridgeModuleConstructor<M extends JsBridgeModule = JsBridgeModule> {
11
- new (jsBridge: JsBridge): M;
12
- readonly prototype: M;
13
- }
@@ -1,16 +0,0 @@
1
- import { JsBridge, NativeParams } from './jsbridge';
2
- import { JsBridgeModule, JsBridgeModuleConstructor } from './module';
3
- export declare class PayPayJsBridgeBase {
4
- jsBridge: JsBridge;
5
- instances: Record<string, JsBridgeModule>;
6
- state: {
7
- executing: boolean;
8
- };
9
- constructor(jsBridge: JsBridge);
10
- isExecutableService(params: NativeParams<never>): boolean;
11
- }
12
- export interface PayPayJsBridgeBaseConstructor {
13
- new (jsBridge: JsBridge): PayPayJsBridgeBase;
14
- readonly prototype: PayPayJsBridgeBase;
15
- }
16
- export declare function composePayPayJsBridge(bridgeConstructor: PayPayJsBridgeBaseConstructor, ...moduleConstructors: JsBridgeModuleConstructor[]): void;
@@ -1,10 +0,0 @@
1
- import { PayPayJsBridgeBase } from './jsbridge-core/paypay-jsbridge';
2
- import { JsBridge } from './jsbridge-core/jsbridge';
3
- import { MiniAppModule } from './mini-app-api';
4
- export declare class PayPayJsBridge extends PayPayJsBridgeBase {
5
- }
6
- export interface PayPayJsBridge extends MiniAppModule {
7
- }
8
- export declare const jsBridge: JsBridge;
9
- export declare const pp: PayPayJsBridge;
10
- export default pp;
@@ -1,3 +0,0 @@
1
- import { AppDetail } from '../../types';
2
- export declare function initAppDetail(accessToken: string): Promise<boolean>;
3
- export declare function getAppDetail(clientId?: string): AppDetail | null;