@theaiplatform/miniapp-sdk 0.2.4 → 0.3.1
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/README.md +47 -5
- package/config-schema.json +1 -26
- package/dist/index.d.ts +72 -0
- package/dist/rspack/index.js +497 -10
- package/dist/sdk.d.ts +72 -0
- package/dist/testing/rstest.d.ts +131 -0
- package/dist/testing/rstest.js +241 -0
- package/dist/ui/wasm.js +5 -3
- package/dist/ui.js +5 -3
- package/dist/web.d.ts +72 -0
- package/package.json +32 -5
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theaiplatform/miniapp-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "TypeScript SDK for building, testing, and shipping portable miniapps on The AI Platform.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20"
|
|
8
8
|
},
|
|
9
9
|
"keywords": [
|
|
10
10
|
"miniapp",
|
|
11
|
+
"playwright",
|
|
12
|
+
"react",
|
|
13
|
+
"rstest",
|
|
14
|
+
"tap",
|
|
15
|
+
"typescript",
|
|
11
16
|
"module-federation",
|
|
12
17
|
"rspack",
|
|
13
18
|
"the-ai-platform"
|
|
@@ -54,7 +59,11 @@
|
|
|
54
59
|
"types": "./dist/rspack/index.d.ts",
|
|
55
60
|
"import": "./dist/rspack/index.js"
|
|
56
61
|
},
|
|
57
|
-
"./config-schema.json": "./config-schema.json"
|
|
62
|
+
"./config-schema.json": "./config-schema.json",
|
|
63
|
+
"./testing/rstest": {
|
|
64
|
+
"types": "./dist/testing/rstest.d.ts",
|
|
65
|
+
"import": "./dist/testing/rstest.js"
|
|
66
|
+
}
|
|
58
67
|
},
|
|
59
68
|
"main": "./dist/index.js",
|
|
60
69
|
"types": "./dist/index.d.ts",
|
|
@@ -119,7 +128,11 @@
|
|
|
119
128
|
"types": "./dist/rspack/index.d.ts",
|
|
120
129
|
"import": "./dist/rspack/index.js"
|
|
121
130
|
},
|
|
122
|
-
"./config-schema.json": "./config-schema.json"
|
|
131
|
+
"./config-schema.json": "./config-schema.json",
|
|
132
|
+
"./testing/rstest": {
|
|
133
|
+
"types": "./dist/testing/rstest.d.ts",
|
|
134
|
+
"import": "./dist/testing/rstest.js"
|
|
135
|
+
}
|
|
123
136
|
}
|
|
124
137
|
},
|
|
125
138
|
"peerDependencies": {
|
|
@@ -127,10 +140,13 @@
|
|
|
127
140
|
"@module-federation/runtime-tools": "2.8.0",
|
|
128
141
|
"@rsbuild/core": ">=2 <3",
|
|
129
142
|
"@rslib/core": ">=0.21 <1",
|
|
143
|
+
"@rstest/core": "0.11.3",
|
|
144
|
+
"@rstest/playwright": "0.11.3",
|
|
130
145
|
"@tanstack/react-query": ">=5 <6",
|
|
131
146
|
"@tanstack/react-router": ">=1 <2",
|
|
132
147
|
"react": ">=19 <20",
|
|
133
|
-
"react-dom": ">=19 <20"
|
|
148
|
+
"react-dom": ">=19 <20",
|
|
149
|
+
"playwright": ">=1.61 <2"
|
|
134
150
|
},
|
|
135
151
|
"peerDependenciesMeta": {
|
|
136
152
|
"@module-federation/rsbuild-plugin": {
|
|
@@ -145,6 +161,12 @@
|
|
|
145
161
|
"@rslib/core": {
|
|
146
162
|
"optional": true
|
|
147
163
|
},
|
|
164
|
+
"@rstest/core": {
|
|
165
|
+
"optional": true
|
|
166
|
+
},
|
|
167
|
+
"@rstest/playwright": {
|
|
168
|
+
"optional": true
|
|
169
|
+
},
|
|
148
170
|
"@tanstack/react-query": {
|
|
149
171
|
"optional": true
|
|
150
172
|
},
|
|
@@ -156,6 +178,9 @@
|
|
|
156
178
|
},
|
|
157
179
|
"react-dom": {
|
|
158
180
|
"optional": true
|
|
181
|
+
},
|
|
182
|
+
"playwright": {
|
|
183
|
+
"optional": true
|
|
159
184
|
}
|
|
160
185
|
},
|
|
161
186
|
"devDependencies": {
|
|
@@ -165,6 +190,7 @@
|
|
|
165
190
|
"@rsbuild/core": "^2.1.4",
|
|
166
191
|
"@rslib/core": "^0.23.2",
|
|
167
192
|
"@rstest/core": "catalog:rstest",
|
|
193
|
+
"@rstest/playwright": "catalog:rstest",
|
|
168
194
|
"@tailwindcss/postcss": "^4.3.0",
|
|
169
195
|
"@types/jsdom": "^28.0.3",
|
|
170
196
|
"@types/node": "catalog:node",
|
|
@@ -172,6 +198,7 @@
|
|
|
172
198
|
"@types/react-dom": "catalog:react",
|
|
173
199
|
"jsdom": "^29.1.1",
|
|
174
200
|
"postcss": "^8.5.6",
|
|
201
|
+
"playwright": "^1.61.0",
|
|
175
202
|
"tailwindcss": "^4.3.0",
|
|
176
203
|
"tw-animate-css": "^1.4.0",
|
|
177
204
|
"typescript": "catalog:typescript"
|