@apps-in-toss/web-framework 1.0.1 → 1.0.3
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/cli/chunk-AZQN2M6D.js +63 -0
- package/dist/cli/chunk-PT6B3KQJ.js +209904 -0
- package/dist/cli/index.js +28 -136
- package/dist/cli/lib-GNFDOQZX.js +1007 -0
- package/dist/cli/typescript-WPGJO2BO.js +6 -0
- package/dist/config/index.d.ts +4 -40
- package/dist/config/index.js +5 -5
- package/dist/prebuilt/dev.android.js +3306 -2704
- package/dist/prebuilt/dev.ios.js +3304 -2702
- package/dist/prebuilt/prod.android.js +10559 -8527
- package/dist/prebuilt/prod.ios.js +10562 -8530
- package/dist/prebuilt/prod.json +14 -0
- package/package.json +9 -9
package/dist/config/index.d.ts
CHANGED
|
@@ -5,20 +5,6 @@ type DeepRequiredKeysOnly<T> = {
|
|
|
5
5
|
[K in keyof T]-?: T[K] extends object ? (T[K] extends F ? T[K] : DeepRequiredKeysOnly<T[K]>) : T[K];
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
type Icon = {
|
|
9
|
-
source: {
|
|
10
|
-
uri: string;
|
|
11
|
-
};
|
|
12
|
-
name?: never;
|
|
13
|
-
} | {
|
|
14
|
-
name: string;
|
|
15
|
-
source?: never;
|
|
16
|
-
};
|
|
17
|
-
interface InitialAccessoryButton {
|
|
18
|
-
id: string;
|
|
19
|
-
title: string;
|
|
20
|
-
icon: Icon;
|
|
21
|
-
}
|
|
22
8
|
interface AppsInTossWebConfig extends AppsInTossPluginOptions {
|
|
23
9
|
appName: string;
|
|
24
10
|
web: {
|
|
@@ -38,33 +24,11 @@ interface AppsInTossWebConfig extends AppsInTossPluginOptions {
|
|
|
38
24
|
*
|
|
39
25
|
* @default 'partner'
|
|
40
26
|
*/
|
|
41
|
-
type?: 'partner'
|
|
27
|
+
type?: 'partner'
|
|
42
28
|
/**
|
|
43
|
-
*
|
|
29
|
+
* @deprecated Use 'partner' instead.
|
|
44
30
|
*/
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Defaults to `true` when type is 'partner', `false` when type is 'external'
|
|
48
|
-
*/
|
|
49
|
-
withBackButton?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* @default []
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```ts
|
|
55
|
-
* [
|
|
56
|
-
* {
|
|
57
|
-
* title: '버튼 이름',
|
|
58
|
-
* icon: {
|
|
59
|
-
* name: 'icon-name',
|
|
60
|
-
* source: 'icon-source',
|
|
61
|
-
* },
|
|
62
|
-
* },
|
|
63
|
-
* ]
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
initialAccessoryButtons?: InitialAccessoryButton[];
|
|
67
|
-
};
|
|
31
|
+
| 'external' | 'game';
|
|
68
32
|
/**
|
|
69
33
|
*
|
|
70
34
|
* @default false
|
|
@@ -118,4 +82,4 @@ interface AppsInTossWebConfig extends AppsInTossPluginOptions {
|
|
|
118
82
|
type AppsInTossWebConfigResponse = DeepRequiredKeysOnly<AppsInTossWebConfig>;
|
|
119
83
|
declare const defineConfig: (config: AppsInTossWebConfig) => AppsInTossWebConfigResponse;
|
|
120
84
|
|
|
121
|
-
export { type AppsInTossWebConfig, type AppsInTossWebConfigResponse,
|
|
85
|
+
export { type AppsInTossWebConfig, type AppsInTossWebConfigResponse, defineConfig };
|
package/dist/config/index.js
CHANGED
|
@@ -52,11 +52,11 @@ var defineConfig = (config) => {
|
|
|
52
52
|
bounces: true,
|
|
53
53
|
allowsBackForwardNavigationGestures: true,
|
|
54
54
|
pullToRefreshEnabled: true,
|
|
55
|
-
overScrollMode: "always"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
overScrollMode: "always"
|
|
56
|
+
},
|
|
57
|
+
navigationBar: {
|
|
58
|
+
withBackButton: true,
|
|
59
|
+
withHomeButton: false
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
return merge(defaultConfig, config);
|