@theaiplatform/miniapp-sdk 0.3.2 → 0.4.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/README.md +126 -0
- package/dist/bin/tap-miniapp-test.d.ts +1 -0
- package/dist/bin/tap-miniapp-test.js +1293 -0
- package/dist/index.d.ts +50 -0
- package/dist/internal/json-schema.d.ts +10 -0
- package/dist/internal/json-schema.js +53 -0
- package/dist/rspack/index.d.ts +72 -6
- package/dist/rspack/index.js +177 -31
- package/dist/sdk.d.ts +50 -0
- package/dist/surface.d.ts +14 -0
- package/dist/testing/rstest-config.d.ts +38 -0
- package/dist/testing/rstest-config.js +59 -0
- package/dist/testing/rstest.d.ts +514 -41
- package/dist/testing/rstest.js +1734 -167
- package/dist/testing/tap.test.schema.json +361 -0
- package/dist/ui/styles.css +504 -6
- package/dist/ui/wasm.js +9231 -510
- package/dist/ui/wasm.js.LICENSE.txt +12 -0
- package/dist/ui.d.ts +14 -4
- package/dist/ui.js +9493 -540
- package/dist/ui.js.LICENSE.txt +12 -0
- package/dist/vscode-webview.d.ts +147 -0
- package/dist/vscode-webview.js +594 -0
- package/dist/web.d.ts +50 -0
- package/package.json +31 -13
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theaiplatform/miniapp-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "TypeScript SDK for building, testing, and shipping portable miniapps on The AI Platform.",
|
|
5
|
+
"tapMiniappTestAdapterProtocol": 1,
|
|
5
6
|
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"tap-miniapp-test": "./dist/bin/tap-miniapp-test.js"
|
|
9
|
+
},
|
|
6
10
|
"engines": {
|
|
7
11
|
"node": ">=20"
|
|
8
12
|
},
|
|
@@ -51,6 +55,10 @@
|
|
|
51
55
|
"types": "./dist/surface.d.ts",
|
|
52
56
|
"import": "./dist/surface.js"
|
|
53
57
|
},
|
|
58
|
+
"./vscode-webview": {
|
|
59
|
+
"types": "./dist/vscode-webview.d.ts",
|
|
60
|
+
"import": "./dist/vscode-webview.js"
|
|
61
|
+
},
|
|
54
62
|
"./config": {
|
|
55
63
|
"types": "./dist/config.d.ts",
|
|
56
64
|
"import": "./dist/config.js"
|
|
@@ -63,7 +71,12 @@
|
|
|
63
71
|
"./testing/rstest": {
|
|
64
72
|
"types": "./dist/testing/rstest.d.ts",
|
|
65
73
|
"import": "./dist/testing/rstest.js"
|
|
66
|
-
}
|
|
74
|
+
},
|
|
75
|
+
"./testing/rstest-config": {
|
|
76
|
+
"types": "./dist/testing/rstest-config.d.ts",
|
|
77
|
+
"import": "./dist/testing/rstest-config.js"
|
|
78
|
+
},
|
|
79
|
+
"./testing/tap.test.schema.json": "./dist/testing/tap.test.schema.json"
|
|
67
80
|
},
|
|
68
81
|
"main": "./dist/index.js",
|
|
69
82
|
"types": "./dist/index.d.ts",
|
|
@@ -78,9 +91,9 @@
|
|
|
78
91
|
],
|
|
79
92
|
"scripts": {
|
|
80
93
|
"prepack": "pnpm run build",
|
|
81
|
-
"build": "rm -rf dist && rslib build && node scripts/copy-rspack-loaders.mjs && node scripts/build-ui-styles.mjs",
|
|
82
|
-
"test": "rstest run",
|
|
83
|
-
"typecheck": "
|
|
94
|
+
"build": "rm -rf dist && rslib build && node scripts/copy-tap-test-schema.mjs && node scripts/copy-rspack-loaders.mjs && node scripts/build-ui-styles.mjs",
|
|
95
|
+
"test:unit": "rstest run",
|
|
96
|
+
"typecheck": "tsc6 --noEmit"
|
|
84
97
|
},
|
|
85
98
|
"publishConfig": {
|
|
86
99
|
"registry": "https://registry.npmjs.org",
|
|
@@ -120,6 +133,10 @@
|
|
|
120
133
|
"types": "./dist/surface.d.ts",
|
|
121
134
|
"import": "./dist/surface.js"
|
|
122
135
|
},
|
|
136
|
+
"./vscode-webview": {
|
|
137
|
+
"types": "./dist/vscode-webview.d.ts",
|
|
138
|
+
"import": "./dist/vscode-webview.js"
|
|
139
|
+
},
|
|
123
140
|
"./config": {
|
|
124
141
|
"types": "./dist/config.d.ts",
|
|
125
142
|
"import": "./dist/config.js"
|
|
@@ -132,7 +149,12 @@
|
|
|
132
149
|
"./testing/rstest": {
|
|
133
150
|
"types": "./dist/testing/rstest.d.ts",
|
|
134
151
|
"import": "./dist/testing/rstest.js"
|
|
135
|
-
}
|
|
152
|
+
},
|
|
153
|
+
"./testing/rstest-config": {
|
|
154
|
+
"types": "./dist/testing/rstest-config.d.ts",
|
|
155
|
+
"import": "./dist/testing/rstest-config.js"
|
|
156
|
+
},
|
|
157
|
+
"./testing/tap.test.schema.json": "./dist/testing/tap.test.schema.json"
|
|
136
158
|
}
|
|
137
159
|
},
|
|
138
160
|
"peerDependencies": {
|
|
@@ -144,9 +166,9 @@
|
|
|
144
166
|
"@rstest/playwright": "0.11.3",
|
|
145
167
|
"@tanstack/react-query": ">=5 <6",
|
|
146
168
|
"@tanstack/react-router": ">=1 <2",
|
|
169
|
+
"playwright": ">=1.61 <2",
|
|
147
170
|
"react": ">=19 <20",
|
|
148
|
-
"react-dom": ">=19 <20"
|
|
149
|
-
"playwright": ">=1.61 <2"
|
|
171
|
+
"react-dom": ">=19 <20"
|
|
150
172
|
},
|
|
151
173
|
"peerDependenciesMeta": {
|
|
152
174
|
"@module-federation/rsbuild-plugin": {
|
|
@@ -197,8 +219,8 @@
|
|
|
197
219
|
"@types/react": "catalog:react",
|
|
198
220
|
"@types/react-dom": "catalog:react",
|
|
199
221
|
"jsdom": "^29.1.1",
|
|
200
|
-
"postcss": "^8.5.6",
|
|
201
222
|
"playwright": "^1.61.0",
|
|
223
|
+
"postcss": "^8.5.6",
|
|
202
224
|
"tailwindcss": "^4.3.0",
|
|
203
225
|
"tw-animate-css": "^1.4.0",
|
|
204
226
|
"typescript": "catalog:typescript"
|
|
@@ -207,7 +229,6 @@
|
|
|
207
229
|
"@radix-ui/react-alert-dialog": "^1.1.20",
|
|
208
230
|
"@radix-ui/react-avatar": "1.2.3",
|
|
209
231
|
"@radix-ui/react-checkbox": "^1.3.8",
|
|
210
|
-
"@radix-ui/react-compose-refs": "^1.1.3",
|
|
211
232
|
"@radix-ui/react-dialog": "^1.1.20",
|
|
212
233
|
"@radix-ui/react-label": "^2.1.12",
|
|
213
234
|
"@radix-ui/react-progress": "^1.1.13",
|
|
@@ -216,7 +237,6 @@
|
|
|
216
237
|
"@radix-ui/react-select": "^2.3.4",
|
|
217
238
|
"@radix-ui/react-separator": "^1.1.12",
|
|
218
239
|
"@radix-ui/react-slider": "^1.4.4",
|
|
219
|
-
"@radix-ui/react-slot": "^1.3.0",
|
|
220
240
|
"@radix-ui/react-tabs": "^1.1.18",
|
|
221
241
|
"@radix-ui/react-toggle": "^1.1.15",
|
|
222
242
|
"@radix-ui/react-toggle-group": "^1.1.16",
|
|
@@ -225,10 +245,8 @@
|
|
|
225
245
|
"class-variance-authority": "^0.7.1",
|
|
226
246
|
"clsx": "^2.1.1",
|
|
227
247
|
"lucide-react": "^1.14.0",
|
|
228
|
-
"prism-react-renderer": "^2.4.1",
|
|
229
248
|
"react-resizable-panels": "^4.11.1",
|
|
230
249
|
"saxes": "^6.0.0",
|
|
231
|
-
"tailwind-merge": "^3.6.0",
|
|
232
250
|
"zod": "^4.4.3"
|
|
233
251
|
}
|
|
234
252
|
}
|