api_binding_ui 3.0.0 → 3.1.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 +15 -1
- package/SKILL.md +1 -1
- package/dist/app/{index-0n23yy5r.js → index-4mgcb4wd.js} +138 -138
- package/dist/app/index.html +1 -1
- package/dist/cli.js +136 -99
- package/dist/overlay.js +24 -0
- package/dist/server/handler.d.ts +18 -0
- package/dist/studio/BindingStudio.d.ts +3 -1
- package/dist/studio/index.js +7 -5
- package/dist/studio/index.js.map +3 -3
- package/dist/vite/plugin.d.ts +36 -0
- package/dist/vite.js +201 -0
- package/package.json +8 -4
- package/spec/FRAMEWORK.md +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "api_binding_ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Design-time API binding: register screen components, bind them to documented APIs in a studio, and generate plain React Query hooks over an Orval client. Nothing ships in the app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
"import": "./dist/studio/index.js"
|
|
17
17
|
},
|
|
18
18
|
"./studio.css": "./dist/studio/index.css",
|
|
19
|
-
"./package.json": "./package.json"
|
|
19
|
+
"./package.json": "./package.json",
|
|
20
|
+
"./vite": {
|
|
21
|
+
"types": "./dist/vite/plugin.d.ts",
|
|
22
|
+
"import": "./dist/vite.js"
|
|
23
|
+
}
|
|
20
24
|
},
|
|
21
25
|
"files": [
|
|
22
26
|
"dist",
|
|
@@ -30,7 +34,7 @@
|
|
|
30
34
|
"scripts": {
|
|
31
35
|
"dev": "bun run build:app && node dist/cli.js studio src/dev/sample/bindings.json",
|
|
32
36
|
"build:app": "rm -rf dist/app && bun build ./index.html --outdir dist/app --minify",
|
|
33
|
-
"build": "rm -rf dist && bun build src/index.ts src/studio/index.ts --outdir dist --root src --target browser --splitting --sourcemap=linked --external react --external react-dom --external react/jsx-runtime --external yaml && bun build src/cli/cli.ts --outfile dist/cli.js --target node --external yaml --banner '#!/usr/bin/env node' && bun run build:app && node ./node_modules/typescript/bin/tsc -p tsconfig.build.json",
|
|
37
|
+
"build": "rm -rf dist && bun build src/index.ts src/studio/index.ts --outdir dist --root src --target browser --splitting --sourcemap=linked --external react --external react-dom --external react/jsx-runtime --external yaml && bun build src/cli/cli.ts --outfile dist/cli.js --target node --external yaml --banner '#!/usr/bin/env node' && bun build src/vite/plugin.ts --outfile dist/vite.js --target node --external yaml && bun build src/overlay/main.ts --outfile dist/overlay.js --target browser --minify && bun run build:app && node ./node_modules/typescript/bin/tsc -p tsconfig.build.json",
|
|
34
38
|
"typecheck": "node ./node_modules/typescript/bin/tsc --noEmit -p tsconfig.json",
|
|
35
39
|
"test": "bun test",
|
|
36
40
|
"prepublishOnly": "bun run typecheck && bun test && bun run build"
|
|
@@ -62,4 +66,4 @@
|
|
|
62
66
|
"optional": true
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
|
-
}
|
|
69
|
+
}
|
package/spec/FRAMEWORK.md
CHANGED
|
@@ -160,7 +160,8 @@ Warnings: drafts, unconnected required body fields, and with `--src` every regis
|
|
|
160
160
|
|
|
161
161
|
## 10. Studio rules
|
|
162
162
|
|
|
163
|
-
- Runs
|
|
163
|
+
- Runs from the Vite dev plugin (`api_binding_ui/vite`, serve only) or the CLI (`api-binding studio`). Either server reads and writes `bindings.json` and fetches the docs server-side, so the browser needs no CORS access.
|
|
164
|
+
- The dev plugin's floating button opens the studio over the app on the screen shown: the screen most visible `data-component-id` values belong to, within the topmost open dialog if it has any. Alt+click opens it on one component. Nothing reaches a build.
|
|
164
165
|
- Navigation and component lists come from the ids. Icons come from kinds.
|
|
165
166
|
- Three slot editors, one per role, generated from slot schemas. A new kind never needs studio code.
|
|
166
167
|
- Shows only what validates.
|