@kitsra/kavio-builder 0.1.0 → 0.1.2
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 +41 -0
- package/package.json +9 -3
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# @kitsra/kavio-builder
|
|
2
|
+
|
|
3
|
+
TypeScript authoring SDK for generating canonical Kavio JSON.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
corepack pnpm add @kitsra/kavio-builder
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { text, video } from "@kitsra/kavio-builder";
|
|
15
|
+
|
|
16
|
+
const composition = video({
|
|
17
|
+
width: 1080,
|
|
18
|
+
height: 1920,
|
|
19
|
+
fps: 30,
|
|
20
|
+
durationFrames: 150,
|
|
21
|
+
layers: [
|
|
22
|
+
text({
|
|
23
|
+
id: "headline",
|
|
24
|
+
text: "Hello Kavio",
|
|
25
|
+
startFrame: 0,
|
|
26
|
+
durationFrames: 150
|
|
27
|
+
})
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The builder includes layer helpers, asset helpers, prop references, keyframes,
|
|
33
|
+
native transitions, camera helpers, cinematic helpers, text motion helpers, and
|
|
34
|
+
social export presets.
|
|
35
|
+
|
|
36
|
+
## Links
|
|
37
|
+
|
|
38
|
+
- Repository: https://github.com/kitsra/kavio
|
|
39
|
+
- Builder docs: https://github.com/kitsra/kavio/blob/main/docs/builder.md
|
|
40
|
+
- Examples: https://github.com/kitsra/kavio/tree/main/examples
|
|
41
|
+
- License: Elastic-2.0
|
package/package.json
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitsra/kavio-builder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "TypeScript builder SDK for creating Kavio JSON.",
|
|
5
5
|
"license": "Elastic-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/kitsra/kavio.git"
|
|
9
|
+
},
|
|
6
10
|
"type": "module",
|
|
7
11
|
"sideEffects": false,
|
|
8
12
|
"publishConfig": {
|
|
9
13
|
"access": "public"
|
|
10
14
|
},
|
|
11
15
|
"dependencies": {
|
|
12
|
-
"@kitsra/kavio-core": "0.1.
|
|
13
|
-
"@kitsra/kavio-schema": "0.1.
|
|
16
|
+
"@kitsra/kavio-core": "0.1.2",
|
|
17
|
+
"@kitsra/kavio-schema": "0.1.2"
|
|
14
18
|
},
|
|
15
19
|
"exports": {
|
|
16
20
|
".": {
|
|
@@ -22,6 +26,8 @@
|
|
|
22
26
|
"dist",
|
|
23
27
|
"!dist/**/*.tsbuildinfo"
|
|
24
28
|
],
|
|
29
|
+
"readme": "# @kitsra/kavio-builder\n\nTypeScript authoring SDK for generating canonical Kavio JSON.\n\n## Install\n\n```bash\ncorepack pnpm add @kitsra/kavio-builder\n```\n\n## Usage\n\n```ts\nimport { text, video } from \"@kitsra/kavio-builder\";\n\nconst composition = video({\n width: 1080,\n height: 1920,\n fps: 30,\n durationFrames: 150,\n layers: [\n text({\n id: \"headline\",\n text: \"Hello Kavio\",\n startFrame: 0,\n durationFrames: 150\n })\n ]\n});\n```\n\nThe builder includes layer helpers, asset helpers, prop references, keyframes,\nnative transitions, camera helpers, cinematic helpers, text motion helpers, and\nsocial export presets.\n\n## Links\n\n- Repository: https://github.com/kitsra/kavio\n- Builder docs: https://github.com/kitsra/kavio/blob/main/docs/builder.md\n- Examples: https://github.com/kitsra/kavio/tree/main/examples\n- License: Elastic-2.0\n",
|
|
30
|
+
"readmeFilename": "README.md",
|
|
25
31
|
"scripts": {
|
|
26
32
|
"build": "tsc -p tsconfig.json",
|
|
27
33
|
"check": "tsc -p tsconfig.json --noEmit",
|