@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.
@@ -0,0 +1,6 @@
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+ import {
3
+ require_typescript
4
+ } from "./chunk-PT6B3KQJ.js";
5
+ import "./chunk-AZQN2M6D.js";
6
+ export default require_typescript();
@@ -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' | 'external' | 'game';
27
+ type?: 'partner'
42
28
  /**
43
- * WebView header props
29
+ * @deprecated Use 'partner' instead.
44
30
  */
45
- header?: {
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, type InitialAccessoryButton, defineConfig };
85
+ export { type AppsInTossWebConfig, type AppsInTossWebConfigResponse, defineConfig };
@@ -52,11 +52,11 @@ var defineConfig = (config) => {
52
52
  bounces: true,
53
53
  allowsBackForwardNavigationGestures: true,
54
54
  pullToRefreshEnabled: true,
55
- overScrollMode: "always",
56
- header: {
57
- withBackButton: true,
58
- initialAccessoryButtons: []
59
- }
55
+ overScrollMode: "always"
56
+ },
57
+ navigationBar: {
58
+ withBackButton: true,
59
+ withHomeButton: false
60
60
  }
61
61
  };
62
62
  return merge(defaultConfig, config);