@apps-in-toss/framework 0.0.0-dev.1742352748804 → 0.0.0-dev.1742356516217
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/index.cjs +16 -7
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -7
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -265,6 +265,11 @@ __export(constant_bridges_exports, {
|
|
|
265
265
|
getOperationalEnvironment: () => getOperationalEnvironment
|
|
266
266
|
});
|
|
267
267
|
|
|
268
|
+
// src/env.ts
|
|
269
|
+
var env = {
|
|
270
|
+
getDeploymentId: () => __DEV__ ? "local" : global.__appsInToss?.deploymentId
|
|
271
|
+
};
|
|
272
|
+
|
|
268
273
|
// src/event-bridges.ts
|
|
269
274
|
var event_bridges_exports = {};
|
|
270
275
|
__export(event_bridges_exports, {
|
|
@@ -278,7 +283,12 @@ function WebView({ local, onMessage, ...props }) {
|
|
|
278
283
|
if (__DEV__) {
|
|
279
284
|
return `http://${local.host}:${local.port}`;
|
|
280
285
|
}
|
|
281
|
-
|
|
286
|
+
const url = new URL(AppsInTossModule.getWebBundleURL({}).url);
|
|
287
|
+
const deploymentId = env.getDeploymentId();
|
|
288
|
+
if (deploymentId) {
|
|
289
|
+
url.searchParams.set("_deploymentId", deploymentId);
|
|
290
|
+
}
|
|
291
|
+
return url.toString();
|
|
282
292
|
}, [local]);
|
|
283
293
|
const handler = (0, import_react_native_bedrock4.useBridgeHandler)({
|
|
284
294
|
onMessage,
|
|
@@ -302,9 +312,13 @@ function WebView({ local, onMessage, ...props }) {
|
|
|
302
312
|
{
|
|
303
313
|
ref: handler.ref,
|
|
304
314
|
...props,
|
|
305
|
-
source: {
|
|
315
|
+
source: {
|
|
316
|
+
uri
|
|
317
|
+
},
|
|
306
318
|
sharedCookiesEnabled: true,
|
|
307
319
|
thirdPartyCookiesEnabled: true,
|
|
320
|
+
cacheEnabled: false,
|
|
321
|
+
cacheMode: "LOAD_NO_CACHE",
|
|
308
322
|
onMessage: handler.onMessage,
|
|
309
323
|
injectedJavaScript: handler.injectedJavaScript,
|
|
310
324
|
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript
|
|
@@ -335,11 +349,6 @@ function useGeolocation({ accuracy, distanceInterval, timeInterval }) {
|
|
|
335
349
|
return location;
|
|
336
350
|
}
|
|
337
351
|
|
|
338
|
-
// src/env.ts
|
|
339
|
-
var env = {
|
|
340
|
-
getDeploymentId: () => __DEV__ ? "local" : global.__appsInToss?.deploymentId
|
|
341
|
-
};
|
|
342
|
-
|
|
343
352
|
// src/types.ts
|
|
344
353
|
var Accuracy2 = /* @__PURE__ */ ((Accuracy3) => {
|
|
345
354
|
Accuracy3[Accuracy3["Lowest"] = 1] = "Lowest";
|
package/dist/index.d.cts
CHANGED
|
@@ -608,7 +608,7 @@ declare function appLogin(): Promise<{
|
|
|
608
608
|
*/
|
|
609
609
|
declare function getOperationalEnvironment(): 'toss' | 'sandbox';
|
|
610
610
|
|
|
611
|
-
interface WebViewProps extends Omit<WebViewProps$1, 'source' | 'sharedCookiesEnabled' | 'thirdPartyCookiesEnabled' | 'injectedJavaScriptBeforeContentLoaded'> {
|
|
611
|
+
interface WebViewProps extends Omit<WebViewProps$1, 'cacheEnabled' | 'source' | 'sharedCookiesEnabled' | 'thirdPartyCookiesEnabled' | 'injectedJavaScriptBeforeContentLoaded'> {
|
|
612
612
|
local: {
|
|
613
613
|
port: number;
|
|
614
614
|
host: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -608,7 +608,7 @@ declare function appLogin(): Promise<{
|
|
|
608
608
|
*/
|
|
609
609
|
declare function getOperationalEnvironment(): 'toss' | 'sandbox';
|
|
610
610
|
|
|
611
|
-
interface WebViewProps extends Omit<WebViewProps$1, 'source' | 'sharedCookiesEnabled' | 'thirdPartyCookiesEnabled' | 'injectedJavaScriptBeforeContentLoaded'> {
|
|
611
|
+
interface WebViewProps extends Omit<WebViewProps$1, 'cacheEnabled' | 'source' | 'sharedCookiesEnabled' | 'thirdPartyCookiesEnabled' | 'injectedJavaScriptBeforeContentLoaded'> {
|
|
612
612
|
local: {
|
|
613
613
|
port: number;
|
|
614
614
|
host: number;
|
package/dist/index.js
CHANGED
|
@@ -224,6 +224,11 @@ __export(constant_bridges_exports, {
|
|
|
224
224
|
getOperationalEnvironment: () => getOperationalEnvironment
|
|
225
225
|
});
|
|
226
226
|
|
|
227
|
+
// src/env.ts
|
|
228
|
+
var env = {
|
|
229
|
+
getDeploymentId: () => __DEV__ ? "local" : global.__appsInToss?.deploymentId
|
|
230
|
+
};
|
|
231
|
+
|
|
227
232
|
// src/event-bridges.ts
|
|
228
233
|
var event_bridges_exports = {};
|
|
229
234
|
__export(event_bridges_exports, {
|
|
@@ -237,7 +242,12 @@ function WebView({ local, onMessage, ...props }) {
|
|
|
237
242
|
if (__DEV__) {
|
|
238
243
|
return `http://${local.host}:${local.port}`;
|
|
239
244
|
}
|
|
240
|
-
|
|
245
|
+
const url = new URL(AppsInTossModule.getWebBundleURL({}).url);
|
|
246
|
+
const deploymentId = env.getDeploymentId();
|
|
247
|
+
if (deploymentId) {
|
|
248
|
+
url.searchParams.set("_deploymentId", deploymentId);
|
|
249
|
+
}
|
|
250
|
+
return url.toString();
|
|
241
251
|
}, [local]);
|
|
242
252
|
const handler = useBridgeHandler({
|
|
243
253
|
onMessage,
|
|
@@ -261,9 +271,13 @@ function WebView({ local, onMessage, ...props }) {
|
|
|
261
271
|
{
|
|
262
272
|
ref: handler.ref,
|
|
263
273
|
...props,
|
|
264
|
-
source: {
|
|
274
|
+
source: {
|
|
275
|
+
uri
|
|
276
|
+
},
|
|
265
277
|
sharedCookiesEnabled: true,
|
|
266
278
|
thirdPartyCookiesEnabled: true,
|
|
279
|
+
cacheEnabled: false,
|
|
280
|
+
cacheMode: "LOAD_NO_CACHE",
|
|
267
281
|
onMessage: handler.onMessage,
|
|
268
282
|
injectedJavaScript: handler.injectedJavaScript,
|
|
269
283
|
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript
|
|
@@ -294,11 +308,6 @@ function useGeolocation({ accuracy, distanceInterval, timeInterval }) {
|
|
|
294
308
|
return location;
|
|
295
309
|
}
|
|
296
310
|
|
|
297
|
-
// src/env.ts
|
|
298
|
-
var env = {
|
|
299
|
-
getDeploymentId: () => __DEV__ ? "local" : global.__appsInToss?.deploymentId
|
|
300
|
-
};
|
|
301
|
-
|
|
302
311
|
// src/types.ts
|
|
303
312
|
var Accuracy2 = /* @__PURE__ */ ((Accuracy3) => {
|
|
304
313
|
Accuracy3[Accuracy3["Lowest"] = 1] = "Lowest";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/framework",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-dev.
|
|
4
|
+
"version": "0.0.0-dev.1742356516217",
|
|
5
5
|
"description": "The framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"ait": "./bin/ait.js"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@apps-in-toss/cli": "0.0.0-dev.
|
|
58
|
+
"@apps-in-toss/cli": "0.0.0-dev.1742356516217"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@react-native-bedrock/mpack-next": "0.0.0-dev.
|
|
62
|
-
"@react-native-bedrock/native": "0.0.0-dev.
|
|
61
|
+
"@react-native-bedrock/mpack-next": "0.0.0-dev.1742356297662",
|
|
62
|
+
"@react-native-bedrock/native": "0.0.0-dev.1742356297662",
|
|
63
63
|
"@ryoppippi/unplugin-typia": "^2.0.3",
|
|
64
64
|
"@toss-design-system/react-native": "^0",
|
|
65
65
|
"@types/archiver": "^6.0.3",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"picocolors": "^1.1.1",
|
|
73
73
|
"react": "18.2.0",
|
|
74
74
|
"react-native": "0.72.6",
|
|
75
|
-
"react-native-bedrock": "0.0.0-dev.
|
|
75
|
+
"react-native-bedrock": "0.0.0-dev.1742356297662",
|
|
76
76
|
"tsup": "^8.3.5",
|
|
77
77
|
"typescript": "4.9.5",
|
|
78
78
|
"typia": "^8.0.1",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"access": "public"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "d6fa75da12f2a0d221f0a268b49054e415450c1f"
|
|
94
94
|
}
|