@apps-in-toss/web-bridge 0.0.29 → 0.0.31
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/build/index.d.ts +10 -1
- package/build/index.js +18 -0
- package/package.json +5 -5
package/build/index.d.ts
CHANGED
|
@@ -530,4 +530,13 @@ declare const env: {
|
|
|
530
530
|
getDeploymentId: () => string;
|
|
531
531
|
};
|
|
532
532
|
|
|
533
|
-
|
|
533
|
+
interface AppsInTossGlobals {
|
|
534
|
+
deploymentId: string;
|
|
535
|
+
brandDisplayName: string;
|
|
536
|
+
brandIcon: string;
|
|
537
|
+
brandPrimaryColor: string;
|
|
538
|
+
brandBridgeColorMode: 'basic' | 'inverted';
|
|
539
|
+
}
|
|
540
|
+
declare const getAppsInTossGlobals: () => AppsInTossGlobals;
|
|
541
|
+
|
|
542
|
+
export { type AppsInTossEvent, type AppsInTossGlobals, type BedrockEvent, GoogleAdMob, IAP, type IapCreateOneTimePurchaseOrderResult, type IapProductListItem, Storage, appsInTossEvent, bedrockEvent, env, getAppsInTossGlobals, getSafeAreaInsets, isMinVersionSupported };
|
package/build/index.js
CHANGED
|
@@ -525,6 +525,23 @@ import { createConstantBridge as createConstantBridge4 } from "@apps-in-toss/bri
|
|
|
525
525
|
var env = {
|
|
526
526
|
getDeploymentId: createConstantBridge4("getDeploymentId")
|
|
527
527
|
};
|
|
528
|
+
|
|
529
|
+
// src/global.ts
|
|
530
|
+
import { createConstantBridge as createConstantBridge5 } from "@apps-in-toss/bridge-core";
|
|
531
|
+
var deploymentId = createConstantBridge5("deploymentId");
|
|
532
|
+
var brandDisplayName = createConstantBridge5("brandDisplayName");
|
|
533
|
+
var brandIcon = createConstantBridge5("brandIcon");
|
|
534
|
+
var brandPrimaryColor = createConstantBridge5("brandPrimaryColor");
|
|
535
|
+
var brandBridgeColorMode = createConstantBridge5("brandBridgeColorMode");
|
|
536
|
+
var getAppsInTossGlobals = () => {
|
|
537
|
+
return {
|
|
538
|
+
deploymentId: deploymentId(),
|
|
539
|
+
brandDisplayName: brandDisplayName(),
|
|
540
|
+
brandIcon: brandIcon(),
|
|
541
|
+
brandPrimaryColor: brandPrimaryColor(),
|
|
542
|
+
brandBridgeColorMode: brandBridgeColorMode()
|
|
543
|
+
};
|
|
544
|
+
};
|
|
528
545
|
export {
|
|
529
546
|
GoogleAdMob,
|
|
530
547
|
IAP,
|
|
@@ -532,6 +549,7 @@ export {
|
|
|
532
549
|
appsInTossEvent,
|
|
533
550
|
bedrockEvent,
|
|
534
551
|
env,
|
|
552
|
+
getAppsInTossGlobals,
|
|
535
553
|
getSafeAreaInsets,
|
|
536
554
|
isMinVersionSupported
|
|
537
555
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/web-bridge",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.31",
|
|
5
5
|
"description": "Web Bridge for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"build"
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@apps-in-toss-internal/bridgepack": "0.0.
|
|
27
|
-
"@apps-in-toss/bridge-core": "0.0.
|
|
28
|
-
"@apps-in-toss/framework": "0.0.
|
|
26
|
+
"@apps-in-toss-internal/bridgepack": "0.0.31",
|
|
27
|
+
"@apps-in-toss/bridge-core": "0.0.31",
|
|
28
|
+
"@apps-in-toss/framework": "0.0.31",
|
|
29
29
|
"react-native-bedrock": "0.0.25",
|
|
30
30
|
"tsup": "^8.3.5",
|
|
31
31
|
"typescript": "4.9.5",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "d4fa62f4014162182181b9911e0a2912fdec318d"
|
|
41
41
|
}
|