@laplace.live/persona-sdk 1.8.0 → 1.8.1
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/dist/values/labels.d.ts +5 -0
- package/dist/values/labels.js +4 -0
- package/dist/wire/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/values/labels.d.ts
CHANGED
|
@@ -7,6 +7,11 @@ export declare function fileBasename(path: string): string;
|
|
|
7
7
|
* so the basename is the only identifier there is.
|
|
8
8
|
*/
|
|
9
9
|
export declare function motionLabel(file: string): string;
|
|
10
|
+
/** Playable entries of a `MotionGroup` with their authored indices; an empty string is a missing file and keeps its slot. */
|
|
11
|
+
export declare function motionSlots(files: readonly string[]): {
|
|
12
|
+
file: string;
|
|
13
|
+
index: number;
|
|
14
|
+
}[];
|
|
10
15
|
/** English label for one automation action kind; kinds newer than this SDK read `Action`. */
|
|
11
16
|
export declare function automationActionLabel(kind: string): string;
|
|
12
17
|
/** True for an action that prepares the scene before playback. */
|
package/dist/values/labels.js
CHANGED
|
@@ -13,6 +13,10 @@ export function motionLabel(file) {
|
|
|
13
13
|
const base = fileBasename(file);
|
|
14
14
|
return base.replace(/\.motion3\.json$|\.exp3\.json$|\.vrma$|\.json$/i, '') || base;
|
|
15
15
|
}
|
|
16
|
+
/** Playable entries of a `MotionGroup` with their authored indices; an empty string is a missing file and keeps its slot. */
|
|
17
|
+
export function motionSlots(files) {
|
|
18
|
+
return files.flatMap((file, index) => (file === '' ? [] : [{ file, index }]));
|
|
19
|
+
}
|
|
16
20
|
// English fallbacks; localizing clients keep their own map and use these for unknown kinds.
|
|
17
21
|
const AUTOMATION_ACTION_KIND_LABELS = {
|
|
18
22
|
'effect-toggle': 'Toggle Effect',
|
package/dist/wire/types.d.ts
CHANGED
|
@@ -937,6 +937,7 @@ export interface MotionGroup {
|
|
|
937
937
|
/** Whether this group loops; absent on older hosts. */
|
|
938
938
|
looping?: boolean;
|
|
939
939
|
group: string;
|
|
940
|
+
/** Indexed by authored motion index; an empty string marks a missing file — read through `motionSlots`. */
|
|
940
941
|
files: string[];
|
|
941
942
|
}
|
|
942
943
|
export interface Expression {
|