@xhub-short/bridge 0.0.1-beta.0
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.d.ts +30 -0
- package/dist/index.js +16 -0
- package/package.json +35 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flutter InAppWebView Bridge
|
|
3
|
+
*
|
|
4
|
+
* Provides communication channel between SDK and Flutter native layer.
|
|
5
|
+
* Uses flutter_inappwebview JavaScript handler pattern.
|
|
6
|
+
*
|
|
7
|
+
* Implementation will be added when Flutter integration is needed.
|
|
8
|
+
*/
|
|
9
|
+
declare const FlutterBridge: {};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Hybrid Storage Adapter
|
|
13
|
+
*
|
|
14
|
+
* Uses Flutter native storage via bridge for persistent storage
|
|
15
|
+
* that survives WebView destruction.
|
|
16
|
+
*
|
|
17
|
+
* Implementation will be added when Flutter integration is needed.
|
|
18
|
+
*/
|
|
19
|
+
declare const HybridStorage: {};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Event Dispatchers
|
|
23
|
+
*
|
|
24
|
+
* Dispatches events from SDK to Flutter native layer.
|
|
25
|
+
*
|
|
26
|
+
* Implementation will be added when Flutter integration is needed.
|
|
27
|
+
*/
|
|
28
|
+
declare const EventDispatchers: {};
|
|
29
|
+
|
|
30
|
+
export { EventDispatchers, FlutterBridge, HybridStorage };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/flutter/index.ts
|
|
2
|
+
var FlutterBridge = {
|
|
3
|
+
// Placeholder
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
// src/storage/index.ts
|
|
7
|
+
var HybridStorage = {
|
|
8
|
+
// Placeholder
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// src/events/index.ts
|
|
12
|
+
var EventDispatchers = {
|
|
13
|
+
// Placeholder
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { EventDispatchers, FlutterBridge, HybridStorage };
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xhub-short/bridge",
|
|
3
|
+
"version": "0.0.1-beta.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"description": "Flutter WebView communication bridge for XHub-short SDK (Optional)",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@xhub-short/contracts": "0.1.0-beta.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"tsup": "^8.3.0",
|
|
26
|
+
"typescript": "^5.7.0",
|
|
27
|
+
"@xhub-short/tsconfig": "0.0.0"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsup",
|
|
31
|
+
"dev": "tsup --watch",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"clean": "rm -rf dist"
|
|
34
|
+
}
|
|
35
|
+
}
|