@apps-in-toss/framework 0.0.0-dev.1765732023607 → 0.0.0-dev.1765878631929
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 +2 -43
- package/dist/index.js +4 -47
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -2312,9 +2312,7 @@ function WebView({ type, local, onMessage, ...props }) {
|
|
|
2312
2312
|
processProductGrant: import_native_modules18.processProductGrant,
|
|
2313
2313
|
getPendingOrders: import_native_modules18.IAP.getPendingOrders,
|
|
2314
2314
|
getCompletedOrRefundedOrders: import_native_modules18.IAP.getCompletedOrRefundedOrders,
|
|
2315
|
-
completeProductGrant: import_native_modules18.IAP.completeProductGrant
|
|
2316
|
-
/* Private */
|
|
2317
|
-
memoryDebugEventLog: webViewMemoryDebugLog
|
|
2315
|
+
completeProductGrant: import_native_modules18.IAP.completeProductGrant
|
|
2318
2316
|
}
|
|
2319
2317
|
});
|
|
2320
2318
|
const headerPropForExternalWebView = (0, import_react28.useMemo)(() => {
|
|
@@ -2392,49 +2390,10 @@ function WebView({ type, local, onMessage, ...props }) {
|
|
|
2392
2390
|
return false;
|
|
2393
2391
|
}
|
|
2394
2392
|
},
|
|
2395
|
-
originWhitelist: [
|
|
2396
|
-
"https://*",
|
|
2397
|
-
"http://*",
|
|
2398
|
-
"intoss://*",
|
|
2399
|
-
"intoss-private://*",
|
|
2400
|
-
"servicetoss://*",
|
|
2401
|
-
"supertoss://*",
|
|
2402
|
-
"intent://*"
|
|
2403
|
-
],
|
|
2404
|
-
onContentProcessDidTerminate: (event) => {
|
|
2405
|
-
webViewProcessDidTerminateEventLog(event.nativeEvent.url);
|
|
2406
|
-
webViewRef.current?.reload();
|
|
2407
|
-
},
|
|
2408
|
-
onRenderProcessGone: () => {
|
|
2409
|
-
webViewProcessDidTerminateEventLog();
|
|
2410
|
-
webViewRef.current?.reload();
|
|
2411
|
-
}
|
|
2393
|
+
originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"]
|
|
2412
2394
|
}
|
|
2413
2395
|
);
|
|
2414
2396
|
}
|
|
2415
|
-
async function webViewMemoryDebugLog(params) {
|
|
2416
|
-
webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
|
|
2417
|
-
}
|
|
2418
|
-
function webViewProcessDidTerminateEventLog(url) {
|
|
2419
|
-
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", { url });
|
|
2420
|
-
}
|
|
2421
|
-
function webViewDebugLog(logName, params) {
|
|
2422
|
-
const global2 = getAppsInTossGlobals();
|
|
2423
|
-
const event = {
|
|
2424
|
-
log_name: logName,
|
|
2425
|
-
log_type: "debug",
|
|
2426
|
-
params: {
|
|
2427
|
-
...params,
|
|
2428
|
-
app_name: import_react_native34.Granite.appName,
|
|
2429
|
-
deployment_id: global2.deploymentId
|
|
2430
|
-
}
|
|
2431
|
-
};
|
|
2432
|
-
if ((0, import_native_modules18.getOperationalEnvironment)() === "toss") {
|
|
2433
|
-
import_native_modules18.INTERNAL__module.tossCoreEventLog(event);
|
|
2434
|
-
} else {
|
|
2435
|
-
console.log("[webViewDebugLog]", event);
|
|
2436
|
-
}
|
|
2437
|
-
}
|
|
2438
2397
|
function useGlobalScripts() {
|
|
2439
2398
|
const global2 = getAppsInTossGlobals();
|
|
2440
2399
|
const disableTextSelectionCSS = `
|
package/dist/index.js
CHANGED
|
@@ -1397,15 +1397,13 @@ import {
|
|
|
1397
1397
|
appsInTossEvent,
|
|
1398
1398
|
iapCreateOneTimePurchaseOrder,
|
|
1399
1399
|
processProductGrant,
|
|
1400
|
-
requestOneTimePurchase
|
|
1401
|
-
INTERNAL__module as INTERNAL__module6,
|
|
1402
|
-
getOperationalEnvironment as getOperationalEnvironment5
|
|
1400
|
+
requestOneTimePurchase
|
|
1403
1401
|
} from "@apps-in-toss/native-modules";
|
|
1404
1402
|
import * as appsInTossAsyncBridges from "@apps-in-toss/native-modules/async-bridges";
|
|
1405
1403
|
import * as appsInTossConstantBridges from "@apps-in-toss/native-modules/constant-bridges";
|
|
1406
1404
|
import * as appsInTossEventBridges from "@apps-in-toss/native-modules/event-bridges";
|
|
1407
1405
|
import { useSafeAreaInsets as useSafeAreaInsets4 } from "@granite-js/native/react-native-safe-area-context";
|
|
1408
|
-
import { getSchemeUri as getSchemeUri6
|
|
1406
|
+
import { getSchemeUri as getSchemeUri6 } from "@granite-js/react-native";
|
|
1409
1407
|
import { ExternalWebViewScreen, tdsEvent } from "@toss/tds-react-native";
|
|
1410
1408
|
import { useSafeAreaBottom, useSafeAreaTop as useSafeAreaTop3 } from "@toss/tds-react-native/private";
|
|
1411
1409
|
import { useEffect as useEffect13, useMemo as useMemo7, useRef as useRef6, useState as useState6 } from "react";
|
|
@@ -2299,9 +2297,7 @@ function WebView({ type, local, onMessage, ...props }) {
|
|
|
2299
2297
|
processProductGrant,
|
|
2300
2298
|
getPendingOrders: IAP.getPendingOrders,
|
|
2301
2299
|
getCompletedOrRefundedOrders: IAP.getCompletedOrRefundedOrders,
|
|
2302
|
-
completeProductGrant: IAP.completeProductGrant
|
|
2303
|
-
/* Private */
|
|
2304
|
-
memoryDebugEventLog: webViewMemoryDebugLog
|
|
2300
|
+
completeProductGrant: IAP.completeProductGrant
|
|
2305
2301
|
}
|
|
2306
2302
|
});
|
|
2307
2303
|
const headerPropForExternalWebView = useMemo7(() => {
|
|
@@ -2379,49 +2375,10 @@ function WebView({ type, local, onMessage, ...props }) {
|
|
|
2379
2375
|
return false;
|
|
2380
2376
|
}
|
|
2381
2377
|
},
|
|
2382
|
-
originWhitelist: [
|
|
2383
|
-
"https://*",
|
|
2384
|
-
"http://*",
|
|
2385
|
-
"intoss://*",
|
|
2386
|
-
"intoss-private://*",
|
|
2387
|
-
"servicetoss://*",
|
|
2388
|
-
"supertoss://*",
|
|
2389
|
-
"intent://*"
|
|
2390
|
-
],
|
|
2391
|
-
onContentProcessDidTerminate: (event) => {
|
|
2392
|
-
webViewProcessDidTerminateEventLog(event.nativeEvent.url);
|
|
2393
|
-
webViewRef.current?.reload();
|
|
2394
|
-
},
|
|
2395
|
-
onRenderProcessGone: () => {
|
|
2396
|
-
webViewProcessDidTerminateEventLog();
|
|
2397
|
-
webViewRef.current?.reload();
|
|
2398
|
-
}
|
|
2378
|
+
originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"]
|
|
2399
2379
|
}
|
|
2400
2380
|
);
|
|
2401
2381
|
}
|
|
2402
|
-
async function webViewMemoryDebugLog(params) {
|
|
2403
|
-
webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
|
|
2404
|
-
}
|
|
2405
|
-
function webViewProcessDidTerminateEventLog(url) {
|
|
2406
|
-
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", { url });
|
|
2407
|
-
}
|
|
2408
|
-
function webViewDebugLog(logName, params) {
|
|
2409
|
-
const global2 = getAppsInTossGlobals();
|
|
2410
|
-
const event = {
|
|
2411
|
-
log_name: logName,
|
|
2412
|
-
log_type: "debug",
|
|
2413
|
-
params: {
|
|
2414
|
-
...params,
|
|
2415
|
-
app_name: Granite8.appName,
|
|
2416
|
-
deployment_id: global2.deploymentId
|
|
2417
|
-
}
|
|
2418
|
-
};
|
|
2419
|
-
if (getOperationalEnvironment5() === "toss") {
|
|
2420
|
-
INTERNAL__module6.tossCoreEventLog(event);
|
|
2421
|
-
} else {
|
|
2422
|
-
console.log("[webViewDebugLog]", event);
|
|
2423
|
-
}
|
|
2424
|
-
}
|
|
2425
2382
|
function useGlobalScripts() {
|
|
2426
2383
|
const global2 = getAppsInTossGlobals();
|
|
2427
2384
|
const disableTextSelectionCSS = `
|
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.1765878631929",
|
|
5
5
|
"description": "The framework for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"ait": "./bin/ait.js"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@apps-in-toss/analytics": "0.0.0-dev.
|
|
60
|
-
"@apps-in-toss/cli": "0.0.0-dev.
|
|
61
|
-
"@apps-in-toss/native-modules": "0.0.0-dev.
|
|
62
|
-
"@apps-in-toss/plugins": "0.0.0-dev.
|
|
63
|
-
"@apps-in-toss/types": "0.0.0-dev.
|
|
59
|
+
"@apps-in-toss/analytics": "0.0.0-dev.1765878631929",
|
|
60
|
+
"@apps-in-toss/cli": "0.0.0-dev.1765878631929",
|
|
61
|
+
"@apps-in-toss/native-modules": "0.0.0-dev.1765878631929",
|
|
62
|
+
"@apps-in-toss/plugins": "0.0.0-dev.1765878631929",
|
|
63
|
+
"@apps-in-toss/types": "0.0.0-dev.1765878631929",
|
|
64
64
|
"es-hangul": "^2.3.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"publishConfig": {
|
|
97
97
|
"access": "public"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "f54ad0a6526e1b4752239cb0670dedbab5170c67"
|
|
100
100
|
}
|