@theaiplatform/miniapp-sdk 0.0.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/LICENSE.md +528 -0
- package/README.md +39 -0
- package/THIRD_PARTY_NOTICES.md +257 -0
- package/config-schema.json +3192 -0
- package/dist/config.d.ts +35 -0
- package/dist/config.js +4 -0
- package/dist/index.d.ts +475 -0
- package/dist/index.js +2 -0
- package/dist/rspack/css-entry-loader.cjs +27 -0
- package/dist/rspack/html-loader.cjs +150 -0
- package/dist/rspack/index.d.ts +53 -0
- package/dist/rspack/index.js +2655 -0
- package/dist/sdk.d.ts +441 -0
- package/dist/sdk.js +27 -0
- package/dist/surface.d.ts +49 -0
- package/dist/surface.js +28 -0
- package/dist/web.d.ts +507 -0
- package/dist/web.js +146 -0
- package/package.json +113 -0
package/package.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@theaiplatform/miniapp-sdk",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Public SDK for building portable miniapps that run in The AI Platform.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=20"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"miniapp",
|
|
11
|
+
"module-federation",
|
|
12
|
+
"rspack",
|
|
13
|
+
"the-ai-platform"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://docs.theaiplatform.app/miniapps/",
|
|
16
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./sdk": {
|
|
23
|
+
"types": "./dist/sdk.d.ts",
|
|
24
|
+
"import": "./dist/sdk.js"
|
|
25
|
+
},
|
|
26
|
+
"./web": {
|
|
27
|
+
"types": "./dist/web.d.ts",
|
|
28
|
+
"import": "./dist/web.js"
|
|
29
|
+
},
|
|
30
|
+
"./surface": {
|
|
31
|
+
"types": "./dist/surface.d.ts",
|
|
32
|
+
"import": "./dist/surface.js"
|
|
33
|
+
},
|
|
34
|
+
"./config": {
|
|
35
|
+
"types": "./dist/config.d.ts",
|
|
36
|
+
"import": "./dist/config.js"
|
|
37
|
+
},
|
|
38
|
+
"./rspack": {
|
|
39
|
+
"types": "./dist/rspack/index.d.ts",
|
|
40
|
+
"import": "./dist/rspack/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./config-schema.json": "./config-schema.json"
|
|
43
|
+
},
|
|
44
|
+
"main": "./dist/index.js",
|
|
45
|
+
"types": "./dist/index.d.ts",
|
|
46
|
+
"files": [
|
|
47
|
+
"dist",
|
|
48
|
+
"config-schema.json",
|
|
49
|
+
"README.md",
|
|
50
|
+
"LICENSE.md",
|
|
51
|
+
"THIRD_PARTY_NOTICES.md"
|
|
52
|
+
],
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"registry": "https://registry.npmjs.org",
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"@module-federation/rsbuild-plugin": "2.8.0",
|
|
59
|
+
"@module-federation/runtime-tools": "2.8.0",
|
|
60
|
+
"@rsbuild/core": ">=2 <3",
|
|
61
|
+
"@rslib/core": ">=0.21 <1",
|
|
62
|
+
"@tanstack/react-query": ">=5 <6",
|
|
63
|
+
"@tanstack/react-router": ">=1 <2",
|
|
64
|
+
"react": ">=19 <20",
|
|
65
|
+
"react-dom": ">=19 <20"
|
|
66
|
+
},
|
|
67
|
+
"peerDependenciesMeta": {
|
|
68
|
+
"@module-federation/rsbuild-plugin": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"@module-federation/runtime-tools": {
|
|
72
|
+
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"@rsbuild/core": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"@rslib/core": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"@tanstack/react-query": {
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"@tanstack/react-router": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
"react": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"react-dom": {
|
|
90
|
+
"optional": true
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"devDependencies": {
|
|
94
|
+
"@emoji-mart/data": "^1.2.1",
|
|
95
|
+
"@module-federation/rsbuild-plugin": "2.8.0",
|
|
96
|
+
"@module-federation/runtime-tools": "2.8.0",
|
|
97
|
+
"@rsbuild/core": "^2.1.4",
|
|
98
|
+
"@rslib/core": "^0.23.2",
|
|
99
|
+
"@rstest/core": "^0.9.10",
|
|
100
|
+
"@types/node": "^25.7.0",
|
|
101
|
+
"typescript": "npm:@typescript/typescript6@6.0.2"
|
|
102
|
+
},
|
|
103
|
+
"dependencies": {
|
|
104
|
+
"ajv": "^8.20.0",
|
|
105
|
+
"saxes": "^6.0.0"
|
|
106
|
+
},
|
|
107
|
+
"scripts": {
|
|
108
|
+
"build": "rm -rf dist && rslib build && node scripts/copy-rspack-loaders.mjs",
|
|
109
|
+
"test": "rstest run",
|
|
110
|
+
"typecheck": "tsc --noEmit"
|
|
111
|
+
},
|
|
112
|
+
"module": "./dist/index.js"
|
|
113
|
+
}
|