@apps-in-toss/web-framework 0.0.0-dev.1742899149233 → 0.0.0-dev.1742971068713

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": 360,
5
- "duration": 391.0235,
6
- "size": 131203
5
+ "duration": 405.200834,
6
+ "size": 131205
7
7
  },
8
8
  {
9
9
  "platform": "android",
10
10
  "totalModuleCount": 360,
11
- "duration": 390.18612499999995,
12
- "size": 130939
11
+ "duration": 406.11729200000013,
12
+ "size": 130951
13
13
  }
14
14
  ]
package/dist-web/index.js CHANGED
@@ -10,14 +10,14 @@ var NativeWindow = class {
10
10
  * @param message 전송할 메시지(JSON 문자열)
11
11
  * @example
12
12
  * const nativeWindow = new NativeWindow();
13
- * nativeWindow.postMessage(JSON.stringify({ type: 'method', functionName: 'getDeviceId' }));
13
+ * nativeWindow.postMessage({ type: 'method', functionName: 'getDeviceId', eventId: '123', args: [] });
14
14
  */
15
15
  postMessage(message) {
16
16
  const webView = this._window.ReactNativeWebView;
17
17
  if (!webView) {
18
18
  throw new Error("ReactNativeWebView is not available in browser environment");
19
19
  }
20
- webView.postMessage(message);
20
+ webView.postMessage(JSON.stringify(message));
21
21
  }
22
22
  /**
23
23
  * __BEDROCK_NATIVE_EMITTER를 이용해 이벤트 리스너를 등록합니다.
@@ -92,14 +92,12 @@ function createAsyncBridge(method) {
92
92
  reject(deserializeError(error));
93
93
  })
94
94
  );
95
- nativeWindow.postMessage(
96
- JSON.stringify({
97
- type: "method",
98
- functionName: method,
99
- eventId,
100
- args: [args]
101
- })
102
- );
95
+ nativeWindow.postMessage({
96
+ type: "method",
97
+ functionName: method,
98
+ eventId,
99
+ args: [args]
100
+ });
103
101
  });
104
102
  };
105
103
  }
@@ -123,22 +121,18 @@ function createEventBridge(method) {
123
121
  args.onError(deserializeError(error));
124
122
  })
125
123
  ];
126
- nativeWindow.postMessage(
127
- JSON.stringify({
128
- type: "addEventListener",
129
- functionName: method,
130
- eventId,
131
- args: args.options
132
- })
133
- );
124
+ nativeWindow.postMessage({
125
+ type: "addEventListener",
126
+ functionName: method,
127
+ eventId,
128
+ args: args.options
129
+ });
134
130
  return () => {
135
- nativeWindow.postMessage(
136
- JSON.stringify({
137
- type: "removeEventListener",
138
- functionName: method,
139
- eventId
140
- })
141
- );
131
+ nativeWindow.postMessage({
132
+ type: "removeEventListener",
133
+ functionName: method,
134
+ eventId
135
+ });
142
136
  removes.forEach((remove) => remove());
143
137
  };
144
138
  };
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.1742899149233",
4
+ "version": "0.0.0-dev.1742971068713",
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.1742899149233",
53
+ "@apps-in-toss/framework": "0.0.0-dev.1742971068713",
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.1742898766908",
70
- "@react-native-bedrock/cli": "0.0.0-dev.1742898766908",
71
- "@react-native-bedrock/mpack-next": "0.0.0-dev.1742898766908",
72
- "@react-native-bedrock/native": "0.0.0-dev.1742898766908",
69
+ "@react-native-bedrock/bridgepack": "0.0.13",
70
+ "@react-native-bedrock/cli": "0.0.13",
71
+ "@react-native-bedrock/mpack-next": "0.0.13",
72
+ "@react-native-bedrock/native": "0.0.13",
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.1742898766908",
90
+ "react-native-bedrock": "0.0.13",
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.1742899149233",
98
+ "@apps-in-toss/cli": "0.0.0-dev.1742971068713",
99
99
  "@babel/core": "7.23.9"
100
100
  },
101
101
  "publishConfig": {
102
102
  "access": "public"
103
103
  },
104
- "gitHead": "2122be053a29fde2590cbdd1096d74691878770a"
104
+ "gitHead": "421bd5c0ceeb54413f32e3591661426330be98fa"
105
105
  }