@avis-studio/mini-app 0.1.0-beta.2 → 0.1.0-beta.3
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 +11 -1
- package/dist/{apps-dWIWlsgx.js → apps-Igq7CNCO.js} +467 -278
- package/dist/index.js +8 -8
- package/dist/react.js +12012 -11853
- package/dist/style.css +1 -1
- package/dist/types/packages/mini-app/src/apps.d.ts +7 -0
- package/dist/types/packages/mini-app/src/index.d.ts +2 -1
- package/dist/types/packages/mini-app/src/react.d.ts +0 -1
- package/dist/types/src/components/illustrations/fly-coins.d.ts +32 -0
- package/dist/types/src/components/ui/scroll-area.d.ts +5 -3
- package/dist/types/src/components/ui/tooltip.d.ts +5 -1
- package/dist/types/src/features/studio/model/app-draft.d.ts +21 -1
- package/dist/types/src/features/studio/model/app-json-schema.d.ts +27 -0
- package/dist/types/src/i18n/en-studio.d.ts +2 -0
- package/dist/types/src/i18n/en.d.ts +2 -0
- package/dist/types/src/i18n/index.d.ts +2 -0
- package/dist/types/src/rules/hover-waits-for-scroll.d.ts +10 -0
- package/dist/types/src/rules/index.d.ts +1 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Build AVIS mini apps as **property controls**, the way a Framer component declares its props: say what can be set, and what a run does with it on the AVIS API. The SDK draws the form with the AVIS kit (one look per `ControlType`), so an app can't break its layout. The mini apps AVIS ships (Recast, Character builder, Marketing ads) come ready to run.
|
|
4
4
|
|
|
5
|
-
> Beta (0.1.0-beta.
|
|
5
|
+
> Beta (0.1.0-beta.3): controls, client, runs, built-in apps, JSON Schema, and the React form.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -131,6 +131,16 @@ npm run example # http://localhost:5173/?app=poster-maker (or ?app=character-s
|
|
|
131
131
|
| `Editor` | A row that opens a visual editor (framing, trim…) | – |
|
|
132
132
|
| `Button` | The run button's words | – |
|
|
133
133
|
|
|
134
|
+
## JSON Schema
|
|
135
|
+
|
|
136
|
+
```ts
|
|
137
|
+
import { toJsonSchema } from "@avis-studio/mini-app"
|
|
138
|
+
|
|
139
|
+
const schema = toJsonSchema(PosterMaker) // JSON Schema 2020-12 of the values runMiniApp takes
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Groups (output settings, Customise) add no level: their controls are properties under their own keys. What JSON Schema has no word for stays under `x-avis-*` (the control type and look, `x-avis-hidden` / `x-avis-disabled` conditions, `x-avis-required` for a field required only while it shows).
|
|
143
|
+
|
|
134
144
|
## Built-in mini apps
|
|
135
145
|
|
|
136
146
|
`miniApps`: `motion-transfer` (Copy motion), `object-swap`, `character-swap`, `commercial-talent`, `ai-influencer`, `product-ads`, `reels-remake`, `ads-remake`, `ugc-ads`, `ad-templates`. Each is a `MiniApp` with its controls, defaults and run; their art is on the AVIS CDN.
|