@pixerate/editor-svelte 0.53.0 → 0.54.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { fitMotionSceneEdits, formatMotionNarration, parseMotionNarration, type AnimationEditorController, type MotionEdit } from '@pixerate/editor/animation-editor';
|
|
2
|
+
import { fitMotionSceneEdits, formatMotionNarration, parseMotionNarration, type AnimationEditorController, type MotionEdit, type MotionTrigger } from '@pixerate/editor/animation-editor';
|
|
3
3
|
import { animationEditorStateOf } from './createAnimationEditor.svelte.js';
|
|
4
4
|
|
|
5
5
|
interface Props {
|
|
@@ -90,6 +90,14 @@
|
|
|
90
90
|
<option value="loop">Loop</option>
|
|
91
91
|
<option value="ping-pong">Ping-pong</option>
|
|
92
92
|
</select>
|
|
93
|
+
<span class="text-muted-foreground">Plays on</span>
|
|
94
|
+
<select class={input} aria-label="Scene trigger" title="How a viewer plays it when exported to Flair" disabled={editor.readOnly} value={scene.trigger ?? ''} onchange={(e) => settings({ trigger: (e.currentTarget.value || null) as MotionTrigger | null }, 'Change trigger')}>
|
|
95
|
+
<option value="">Its own (autoplay)</option>
|
|
96
|
+
<option value="click">Click (a shot per click)</option>
|
|
97
|
+
<option value="hover">Hover</option>
|
|
98
|
+
<option value="press">Press</option>
|
|
99
|
+
<option value="scroll">Scroll</option>
|
|
100
|
+
</select>
|
|
93
101
|
<span class="text-muted-foreground">Frame rate</span>
|
|
94
102
|
<div class="flex items-center gap-1">
|
|
95
103
|
<input class={input} type="number" min="1" max="120" aria-label="Frame rate" placeholder="30" disabled={editor.readOnly} value={scene.fps ?? ''}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SceneSettings.svelte.d.ts","sourceRoot":"","sources":["../../src/animation-editor/SceneSettings.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAoE,KAAK,yBAAyB,
|
|
1
|
+
{"version":3,"file":"SceneSettings.svelte.d.ts","sourceRoot":"","sources":["../../src/animation-editor/SceneSettings.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAoE,KAAK,yBAAyB,EAAuC,MAAM,mCAAmC,CAAC;AAIxL,UAAU,KAAK;IACb,UAAU,EAAE,yBAAyB,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAuIH,QAAA,MAAM,aAAa,2CAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "Svelte bindings and prompt/rich-text components for @pixerate/editor",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"@tiptap/extension-bubble-menu": "^2.11.5",
|
|
124
124
|
"@tiptap/extension-placeholder": "^2.11.5",
|
|
125
125
|
"@tiptap/starter-kit": "^2.11.5",
|
|
126
|
-
"@pixerate/editor": "0.
|
|
126
|
+
"@pixerate/editor": "0.67.0"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
129
|
"@dagrejs/dagre": "^1.1.4",
|