@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.
- package/dist/cli/index.js +16 -10
- package/dist/prebuilt/dev.android.js +361 -361
- package/dist/prebuilt/dev.ios.js +362 -362
- package/dist/prebuilt/prod.android.js +1 -1
- package/dist/prebuilt/prod.ios.js +1 -1
- package/dist/prebuilt/prod.json +4 -4
- package/dist-web/index.js +19 -25
- package/package.json +9 -9
package/dist/prebuilt/prod.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
"platform": "ios",
|
|
4
4
|
"totalModuleCount": 360,
|
|
5
|
-
"duration":
|
|
6
|
-
"size":
|
|
5
|
+
"duration": 405.200834,
|
|
6
|
+
"size": 131205
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"platform": "android",
|
|
10
10
|
"totalModuleCount": 360,
|
|
11
|
-
"duration":
|
|
12
|
-
"size":
|
|
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(
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
70
|
-
"@react-native-bedrock/cli": "0.0.
|
|
71
|
-
"@react-native-bedrock/mpack-next": "0.0.
|
|
72
|
-
"@react-native-bedrock/native": "0.0.
|
|
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.
|
|
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.
|
|
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": "
|
|
104
|
+
"gitHead": "421bd5c0ceeb54413f32e3591661426330be98fa"
|
|
105
105
|
}
|