@apps-in-toss/web-framework 0.0.0-dev.1741675190621 → 0.0.0-dev.1741934253781

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.
@@ -2,13 +2,13 @@
2
2
  {
3
3
  "platform": "ios",
4
4
  "totalModuleCount": 359,
5
- "duration": 389.04366600000003,
6
- "size": 129837
5
+ "duration": 442.61941600000023,
6
+ "size": 130493
7
7
  },
8
8
  {
9
9
  "platform": "android",
10
10
  "totalModuleCount": 359,
11
- "duration": 389.04066699999976,
12
- "size": 129573
11
+ "duration": 442.7322499999998,
12
+ "size": 130229
13
13
  }
14
14
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/web-framework",
3
3
  "type": "module",
4
- "version": "0.0.0-dev.1741675190621",
4
+ "version": "0.0.0-dev.1741934253781",
5
5
  "description": "Web Framework for Apps In Toss",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -50,7 +50,7 @@
50
50
  "config.d.ts"
51
51
  ],
52
52
  "devDependencies": {
53
- "@apps-in-toss/framework": "0.0.0-dev.1741675190621",
53
+ "@apps-in-toss/framework": "0.0.0-dev.1741934253781",
54
54
  "@babel/plugin-proposal-class-properties": "^7.16.7",
55
55
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
56
56
  "@babel/plugin-proposal-numeric-separator": "^7.16.7",
@@ -66,10 +66,10 @@
66
66
  "@babel/types": "^7.26.9",
67
67
  "@clack/prompts": "^0.10.0",
68
68
  "@hono/node-server": "^1.13.8",
69
- "@react-native-bedrock/bridgepack": "0.0.0-dev.1741675002593",
70
- "@react-native-bedrock/cli": "0.0.0-dev.1741675002593",
71
- "@react-native-bedrock/mpack-next": "0.0.0-dev.1741675002593",
72
- "@react-native-bedrock/native": "0.0.0-dev.1741675002593",
69
+ "@react-native-bedrock/bridgepack": "0.0.12",
70
+ "@react-native-bedrock/cli": "0.0.12",
71
+ "@react-native-bedrock/mpack-next": "0.0.12",
72
+ "@react-native-bedrock/native": "0.0.12",
73
73
  "@toss-design-system/react-native": "^0",
74
74
  "@types/babel__core": "^7.20.5",
75
75
  "@types/babel__traverse": "^7",
@@ -87,7 +87,7 @@
87
87
  "picocolors": "^1.1.1",
88
88
  "react": "18.2.0",
89
89
  "react-native": "0.72.6",
90
- "react-native-bedrock": "0.0.0-dev.1741675002593",
90
+ "react-native-bedrock": "0.0.12",
91
91
  "tsup": "^8.3.5",
92
92
  "typescript": "4.9.5",
93
93
  "uuidv7": "^1.0.2",
@@ -95,11 +95,11 @@
95
95
  "zod": "^3.24.1"
96
96
  },
97
97
  "dependencies": {
98
- "@apps-in-toss/cli": "0.0.0-dev.1741675190621",
98
+ "@apps-in-toss/cli": "0.0.0-dev.1741934253781",
99
99
  "@babel/core": "7.23.9"
100
100
  },
101
101
  "publishConfig": {
102
102
  "access": "public"
103
103
  },
104
- "gitHead": "6187ae5debf7ce5f46d4c6274fac9b26df728392"
104
+ "gitHead": "c94adb1d96eb11c208051cda6b89679c19fedfc6"
105
105
  }
@@ -32,7 +32,7 @@ export interface FetchAlbumPhotosOptions {
32
32
  * @param {number} [options.maxCount=10] 가져올 사진의 최대 개수를 설정해요. 숫자로 입력하며 기본값은 10이에요.
33
33
  * @param {number} [options.maxWidth=1024] 사진의 최대 폭을 제한해요. 단위는 픽셀이며 기본값은 `1024`이에요.
34
34
  * @param {boolean} [options.base64=false] 이미지를 base64 형식으로 반환할지 설정해요. 기본값은 `false`예요.
35
- * @returns {Promise<AlbumResponse[]>}
35
+ * @returns {Promise<ImageResponse[]>}
36
36
  * 앨범 사진의 고유 ID와 데이터 URI를 포함한 배열을 반환해요.
37
37
  *
38
38
  * @example
@@ -1,5 +1,8 @@
1
1
  /**
2
- * 위치 정확도 옵션이에요.
2
+ * @public
3
+ * @category Types
4
+ * @name Accuracy
5
+ * @description 위치 정확도 옵션이에요.
3
6
  */
4
7
  export enum Accuracy {
5
8
  /**
@@ -27,6 +30,12 @@ export enum Accuracy {
27
30
  */
28
31
  BestForNavigation
29
32
  }
33
+ /**
34
+ * @public
35
+ * @category Types
36
+ * @name Location
37
+ * @description 위치 정보를 나타내는 객체예요.
38
+ */
30
39
  export interface Location {
31
40
  /**
32
41
  * Android에서만 지원하는 옵션이에요.
@@ -41,14 +50,42 @@ export interface Location {
41
50
  * 위치가 업데이트된 시점의 유닉스 타임스탬프예요.
42
51
  */
43
52
  timestamp: number;
44
- coords: {
45
- latitude: number; // 위도
46
- longitude: number; // 경도
47
- altitude: number; // 높이
48
- accuracy: number; // 위치 정확도 (미터)
49
- altitudeAccuracy: number; // 고도 정확도 (미터)
50
- heading: number; // 방향 (북: 0°, 동: 90°, 남: 180°, 서: 270°)
51
- };
53
+ /**
54
+ * @description 위치 정보를 나타내는 객체예요. 자세한 내용은 [LocationCoords](/reference/framework/Types/LocationCoords.html)을 참고해주세요.
55
+ */
56
+ coords: LocationCoords;
57
+ }
58
+ /**
59
+ * @public
60
+ * @category Types
61
+ * @name LocationCoords
62
+ * @description 세부 위치 정보를 나타내는 객체예요.
63
+ */
64
+ export interface LocationCoords {
65
+ /**
66
+ * 위도
67
+ */
68
+ latitude: number;
69
+ /**
70
+ * 경도
71
+ */
72
+ longitude: number;
73
+ /**
74
+ * 높이
75
+ */
76
+ altitude: number;
77
+ /**
78
+ * 위치 정확도
79
+ */
80
+ accuracy: number;
81
+ /**
82
+ * 고도 정확도
83
+ */
84
+ altitudeAccuracy: number;
85
+ /**
86
+ * 방향
87
+ */
88
+ heading: number;
52
89
  }
53
90
  export interface GetCurrentLocationOptions {
54
91
  /**
@@ -68,7 +105,7 @@ export interface GetCurrentLocationOptions {
68
105
  *
69
106
  * @param {GetCurrentLocationOptions} options 위치 정보를 가져올 때 사용하는 옵션 객체예요.
70
107
  * @param {Accuracy} [options.accuracy] 위치 정보의 정확도 수준이에요. 정확도는 `Accuracy` 타입으로 설정돼요.
71
- * @returns {Promise<Location>} 디바이스의 위치 정보가 담긴 객체를 반환해요.
108
+ * @returns {Promise<Location>} 디바이스의 위치 정보가 담긴 객체를 반환해요. 자세한 내용은 [Location](/reference/framework/Types/Location.html)을 참고해주세요.
72
109
  *
73
110
  * @example
74
111
  * ### 디바이스의 현재 위치 정보 가져오기
@@ -30,6 +30,12 @@ declare enum Accuracy {
30
30
  */
31
31
  BestForNavigation
32
32
  }
33
+ /**
34
+ * @public
35
+ * @category Types
36
+ * @name Location
37
+ * @description 위치 정보를 나타내는 객체예요.
38
+ */
33
39
  export interface Location {
34
40
  /**
35
41
  * Android에서만 지원하는 옵션이에요.
@@ -44,14 +50,42 @@ export interface Location {
44
50
  * 위치가 업데이트된 시점의 유닉스 타임스탬프예요.
45
51
  */
46
52
  timestamp: number;
47
- coords: {
48
- latitude: number; // 위도
49
- longitude: number; // 경도
50
- altitude: number; // 높이
51
- accuracy: number; // 위치 정확도 (미터)
52
- altitudeAccuracy: number; // 고도 정확도 (미터)
53
- heading: number; // 방향 (북: 0°, 동: 90°, 남: 180°, 서: 270°)
54
- };
53
+ /**
54
+ * @description 위치 정보를 나타내는 객체예요. 자세한 내용은 [LocationCoords](/reference/framework/Types/LocationCoords.html)을 참고해주세요.
55
+ */
56
+ coords: LocationCoords;
57
+ }
58
+ /**
59
+ * @public
60
+ * @category Types
61
+ * @name LocationCoords
62
+ * @description 세부 위치 정보를 나타내는 객체예요.
63
+ */
64
+ export interface LocationCoords {
65
+ /**
66
+ * 위도
67
+ */
68
+ latitude: number;
69
+ /**
70
+ * 경도
71
+ */
72
+ longitude: number;
73
+ /**
74
+ * 높이
75
+ */
76
+ altitude: number;
77
+ /**
78
+ * 위치 정확도
79
+ */
80
+ accuracy: number;
81
+ /**
82
+ * 고도 정확도
83
+ */
84
+ altitudeAccuracy: number;
85
+ /**
86
+ * 방향
87
+ */
88
+ heading: number;
55
89
  }
56
90
  export interface StartUpdateLocationOptions {
57
91
  /**
@@ -95,7 +129,7 @@ export interface UpdateLocationEventEmitter extends EventEmitterSchema<"updateLo
95
129
  * @param {number} [options.accuracy] 위치 정확도를 설정해요.
96
130
  * @param {number} [options.timeInterval] 위치 정보를 업데이트하는 최소 주기로, 단위는 밀리초(ms)예요. 이 값은 위치 업데이트가 발생하는 가장 짧은 간격을 설정하지만, 시스템이나 환경의 영향을 받아 지정한 주기보다 더 긴 간격으로 업데이트될 수 있어요.
97
131
  * @param {number} [options.distanceInterval] 위치 변경 거리를 미터(m) 단위로 설정해요.
98
- * @param {(location: Location) => void} [options.callback] 위치 정보가 변경될 때 호출되는 콜백 함수예요.
132
+ * @param {(location: Location) => void} [options.callback] 위치 정보가 변경될 때 호출되는 콜백 함수예요. 자세한 내용은 [Location](/reference/framework/Types/Location.html)을 참고해주세요.
99
133
  *
100
134
  * @example
101
135
  * ### 위치 정보 변경 감지하기
@@ -112,7 +146,7 @@ export interface UpdateLocationEventEmitter extends EventEmitterSchema<"updateLo
112
146
  * useEffect(() => {
113
147
  * return startUpdateLocation({
114
148
  * options: {
115
- * accuracy: Accuracy.Default,
149
+ * accuracy: Accuracy.Balanced,
116
150
  * timeInterval: 3000,
117
151
  * distanceInterval: 10,
118
152
  * },