@mengine/medeo-client 2.1.1-dsl.25 → 2.1.1-dsl.26
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 +5 -5
- package/dist/{dsl-DrQOG0a6.js → dsl-SmWJTQWV.js} +2117 -4
- package/dist/dsl.d.ts +1 -2
- package/dist/dsl.js +1 -2
- package/dist/{index-CmuDB_Gm.d.ts → index-B1Lqm_Z1.d.ts} +883 -5
- package/dist/{index-BOgr8p8C.d.ts → index-pULoWyd9.d.ts} +199 -2
- package/dist/index.d.ts +2 -4
- package/dist/index.js +803 -4
- package/dist/schemas.d.ts +21 -21
- package/dist/schemas.js +57 -21
- package/dist/testing.d.ts +1 -4
- package/dist/testing.js +27 -40
- package/package.json +5 -6
- package/dist/index-BGEcTwoD.d.ts +0 -202
- package/dist/legacy.d.ts +0 -1044
- package/dist/legacy.js +0 -4349
- package/dist/shared-iWnU2osE.js +0 -39
- package/dist/storage-evqvKS4B.js +0 -805
- package/dist/video-draft-types-DRGBN0we.js +0 -1551
- package/dist/video-draft-types-slnHaNs9.d.ts +0 -882
package/dist/index-BGEcTwoD.d.ts
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { K as ResourceSystem, R as MedeoDslSnapshot, it as TrackRole } from "./video-draft-types-slnHaNs9.js";
|
|
2
|
-
import { b as MedeoDsl, h as UploadText, i as AudioScriptView, m as DslEditor, o as VideoDraftProjection } from "./index-CmuDB_Gm.js";
|
|
3
|
-
import { P as MengineDraftResponse, _ as ManualSyncTransport, a as MengineDocSessionOptions, g as ManualSyncDocOptions, n as DocumentSession, r as DocumentSessionUpdateEvent } from "./index-BOgr8p8C.js";
|
|
4
|
-
|
|
5
|
-
//#region src/manual-sync/manual-sync-doc.d.ts
|
|
6
|
-
/** Explicit synchronization over the same DSL/editor used by the live Session. */
|
|
7
|
-
declare class ManualSyncDoc extends ManualSyncTransport {
|
|
8
|
-
readonly dsl: MedeoDsl;
|
|
9
|
-
readonly editor: DslEditor;
|
|
10
|
-
private constructor();
|
|
11
|
-
/** `uploadText` stores raw content the editor writes, such as a PhoneticScript's text, in Memota. */
|
|
12
|
-
static open(options: ManualSyncDocOptions & {
|
|
13
|
-
uploadText?: UploadText;
|
|
14
|
-
}): Promise<ManualSyncDoc>;
|
|
15
|
-
snapshot(): {
|
|
16
|
-
readonly "timeline-entities": {
|
|
17
|
-
readonly [x: string]: {
|
|
18
|
-
readonly [x: string]: never;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
readonly "track-entities": {
|
|
22
|
-
readonly [x: string]: {
|
|
23
|
-
readonly role: TrackRole;
|
|
24
|
-
readonly hidden?: boolean | undefined;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
readonly "clip-entities": {
|
|
28
|
-
readonly [x: string]: {
|
|
29
|
-
readonly seqMarker: {
|
|
30
|
-
readonly inMs: number;
|
|
31
|
-
readonly outMs: number;
|
|
32
|
-
readonly rate?: number | undefined;
|
|
33
|
-
readonly fillTimeline?: true | undefined;
|
|
34
|
-
};
|
|
35
|
-
readonly volume?: number | undefined;
|
|
36
|
-
readonly source: string;
|
|
37
|
-
readonly anchor?: {
|
|
38
|
-
readonly to: string;
|
|
39
|
-
readonly offsetMs: number;
|
|
40
|
-
readonly fallback_abs_ms: number;
|
|
41
|
-
} | undefined;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
readonly "media-entities": {
|
|
45
|
-
readonly [x: string]: {
|
|
46
|
-
readonly system: ResourceSystem;
|
|
47
|
-
readonly key: string;
|
|
48
|
-
readonly digest?: string | undefined;
|
|
49
|
-
readonly kind: "video";
|
|
50
|
-
readonly durationMs: number;
|
|
51
|
-
readonly storageKey?: string | undefined;
|
|
52
|
-
} | {
|
|
53
|
-
readonly system: ResourceSystem;
|
|
54
|
-
readonly key: string;
|
|
55
|
-
readonly digest?: string | undefined;
|
|
56
|
-
readonly kind: "audio" | "voiceover-recording";
|
|
57
|
-
readonly durationMs: number;
|
|
58
|
-
readonly storageKey: string;
|
|
59
|
-
} | {
|
|
60
|
-
readonly system: ResourceSystem;
|
|
61
|
-
readonly key: string;
|
|
62
|
-
readonly digest?: string | undefined;
|
|
63
|
-
readonly kind: "image";
|
|
64
|
-
readonly storageKey?: string | undefined;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
readonly "audio-script-entities": {
|
|
68
|
-
readonly [x: string]: {
|
|
69
|
-
readonly segments: readonly {
|
|
70
|
-
readonly id: string;
|
|
71
|
-
readonly text: string;
|
|
72
|
-
readonly startMs?: number | undefined;
|
|
73
|
-
readonly endMs?: number | undefined;
|
|
74
|
-
}[];
|
|
75
|
-
readonly defaultLanguage?: string | undefined;
|
|
76
|
-
readonly system?: "memota" | undefined;
|
|
77
|
-
readonly key?: string | undefined;
|
|
78
|
-
readonly storageKey?: string | undefined;
|
|
79
|
-
readonly digest?: string | undefined;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
readonly "phonetic-script-entities": {
|
|
83
|
-
readonly [x: string]: {
|
|
84
|
-
readonly phoneme: {
|
|
85
|
-
readonly phonemeScript?: string | undefined;
|
|
86
|
-
readonly audioScriptId: string;
|
|
87
|
-
readonly segmentId: string;
|
|
88
|
-
readonly start?: import("loro-crdt").Cursor | undefined;
|
|
89
|
-
readonly end?: import("loro-crdt").Cursor | undefined;
|
|
90
|
-
};
|
|
91
|
-
readonly system?: "memota" | undefined;
|
|
92
|
-
readonly key?: string | undefined;
|
|
93
|
-
readonly storageKey?: string | undefined;
|
|
94
|
-
readonly digest?: string | undefined;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
readonly "caption-entities": {
|
|
98
|
-
readonly [x: string]: {
|
|
99
|
-
readonly selection?: {
|
|
100
|
-
readonly audioScriptId: string;
|
|
101
|
-
readonly segmentId: string;
|
|
102
|
-
readonly start?: import("loro-crdt").Cursor | undefined;
|
|
103
|
-
readonly end?: import("loro-crdt").Cursor | undefined;
|
|
104
|
-
} | undefined;
|
|
105
|
-
readonly text?: string | undefined;
|
|
106
|
-
readonly style?: {
|
|
107
|
-
readonly font?: {
|
|
108
|
-
readonly system: "font-library";
|
|
109
|
-
readonly key: string;
|
|
110
|
-
} | undefined;
|
|
111
|
-
readonly fontSize?: number | undefined;
|
|
112
|
-
readonly fontColor?: string | undefined;
|
|
113
|
-
readonly fontWeight?: number | undefined;
|
|
114
|
-
readonly entranceAnimation?: string | undefined;
|
|
115
|
-
readonly entranceAnimationDurationMs?: number | undefined;
|
|
116
|
-
readonly strokeColor?: string | undefined;
|
|
117
|
-
readonly strokeWidth?: number | undefined;
|
|
118
|
-
readonly positionX?: number | undefined;
|
|
119
|
-
readonly positionY?: number | undefined;
|
|
120
|
-
} | undefined;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
readonly "voice-entities": {
|
|
124
|
-
readonly [x: string]: {
|
|
125
|
-
readonly system: "voice-library";
|
|
126
|
-
readonly key: string;
|
|
127
|
-
readonly name?: string | undefined;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
readonly "voice-timbre-relations": {
|
|
131
|
-
readonly [x: string]: {
|
|
132
|
-
readonly recordingId: string;
|
|
133
|
-
readonly voiceId: string;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
readonly "derived-from-relations": {
|
|
137
|
-
readonly [x: string]: {
|
|
138
|
-
readonly entityId: string;
|
|
139
|
-
readonly sourceId: string;
|
|
140
|
-
readonly sourceDigest?: string | undefined;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
readonly 'contain-relations': readonly {
|
|
144
|
-
readonly treeId: import("loro-crdt").TreeID;
|
|
145
|
-
readonly entityId: string;
|
|
146
|
-
readonly children: readonly /*elided*/any[];
|
|
147
|
-
}[];
|
|
148
|
-
readonly richText: {
|
|
149
|
-
readonly [x: string]: {
|
|
150
|
-
readonly bodyId: string;
|
|
151
|
-
readonly plainText: string;
|
|
152
|
-
readonly delta: readonly {
|
|
153
|
-
readonly insert: string;
|
|
154
|
-
readonly attributes?: {
|
|
155
|
-
readonly [x: string]: unknown;
|
|
156
|
-
} | undefined;
|
|
157
|
-
}[];
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
readonly captionText: {
|
|
161
|
-
readonly [x: string]: {
|
|
162
|
-
readonly text: string;
|
|
163
|
-
readonly start: number;
|
|
164
|
-
readonly end: number;
|
|
165
|
-
readonly bodyId: string;
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
readonly phoneticText: {
|
|
169
|
-
readonly [x: string]: {
|
|
170
|
-
readonly text: string;
|
|
171
|
-
readonly start: number;
|
|
172
|
-
readonly end: number;
|
|
173
|
-
readonly bodyId: string;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
readonly diagnostics: readonly {
|
|
177
|
-
readonly code: string;
|
|
178
|
-
readonly path: string;
|
|
179
|
-
readonly message: string;
|
|
180
|
-
}[];
|
|
181
|
-
};
|
|
182
|
-
projectVideoDraft(): VideoDraftProjection;
|
|
183
|
-
/** Read the acknowledged server revision; without a new push, confirm against the current server view. */
|
|
184
|
-
readPersistedDraft(updateSeq?: number): Promise<MengineDraftResponse>;
|
|
185
|
-
dispose(): void;
|
|
186
|
-
}
|
|
187
|
-
//#endregion
|
|
188
|
-
//#region src/session/mengine-doc-session.d.ts
|
|
189
|
-
type MengineDocSessionUpdateEvent = DocumentSessionUpdateEvent<MedeoDslSnapshot>;
|
|
190
|
-
/** Default collaborative session: one DSL handle and one editor over the synchronized LoroDoc. */
|
|
191
|
-
declare class MengineDocSession extends DocumentSession<MedeoDslSnapshot, DslEditor, MedeoDsl> {
|
|
192
|
-
/** `uploadText` stores raw content the editor writes, such as a PhoneticScript's text, in Memota. */
|
|
193
|
-
constructor(options: MengineDocSessionOptions & {
|
|
194
|
-
uploadText?: UploadText;
|
|
195
|
-
});
|
|
196
|
-
get dsl(): MedeoDsl;
|
|
197
|
-
projectVideoDraft(): VideoDraftProjection;
|
|
198
|
-
/** The document's AudioScripts with what says and shows them; read from the same snapshot as the VideoDraft. */
|
|
199
|
-
projectAudioScripts(): AudioScriptView[];
|
|
200
|
-
}
|
|
201
|
-
//#endregion
|
|
202
|
-
export { MengineDocSessionUpdateEvent as n, ManualSyncDoc as r, MengineDocSession as t };
|