@mengine/medeo-client 2.1.1-dsl.9 → 3.0.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.
- package/README.md +9 -9
- package/dist/{dsl-COyzz7Fp.js → dsl-Cpk8WxcZ.js} +2275 -143
- package/dist/dsl.d.ts +1 -2
- package/dist/dsl.js +1 -2
- package/dist/{index-DAfOkcnZ.d.ts → index-Dldi944U.d.ts} +199 -3
- package/dist/{index-C5wDKYqC.d.ts → index-DuM7I4Ku.d.ts} +912 -10
- package/dist/index.d.ts +2 -4
- package/dist/index.js +815 -7
- package/dist/testing.d.ts +1 -2
- package/dist/testing.js +4 -4
- package/package.json +9 -12
- package/dist/index-CHiPztZr.d.ts +0 -194
- package/dist/legacy.d.ts +0 -1044
- package/dist/legacy.js +0 -4349
- package/dist/schemas.d.ts +0 -606
- package/dist/schemas.js +0 -442
- package/dist/shared-iWnU2osE.js +0 -39
- package/dist/storage-BW3tI_ER.js +0 -801
- package/dist/video-draft-types-BnbfWrBx.js +0 -1486
- package/dist/video-draft-types-GqXnsOzA.d.ts +0 -869
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as MedeoDsl } from "./index-C5wDKYqC.js";
|
|
1
|
+
import { M as MedeoDsl, d as VideoDraft } from "./index-DuM7I4Ku.js";
|
|
3
2
|
import { LoroDoc } from "loro-crdt";
|
|
4
3
|
|
|
5
4
|
//#region src/testing/in-memory-mengine-server.d.ts
|
package/dist/testing.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { n as bytesToBase64, t as base64ToBytes } from "./base64-D-jd-dr5.js";
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as DslEditor, i as createInitialMedeoDsl, n as toVideoDraft, o as MedeoDsl } from "./dsl-COyzz7Fp.js";
|
|
2
|
+
import { a as DslEditor, i as createInitialMedeoDsl, l as assertDslDocument, n as toVideoDraft, s as MedeoDsl, u as documentFormat } from "./dsl-Cpk8WxcZ.js";
|
|
4
3
|
import { t as classifyUpdate } from "./loro-relay-doc-Bi6JKqtQ.js";
|
|
5
4
|
import { LoroDoc, VersionVector, encodeFrontiers } from "loro-crdt";
|
|
6
5
|
//#region src/testing/in-memory-mengine-server.ts
|
|
@@ -167,10 +166,11 @@ var InMemoryMengineServer = class {
|
|
|
167
166
|
try {
|
|
168
167
|
probe.import(this.doc.export({ mode: "snapshot" }));
|
|
169
168
|
probe.import(data);
|
|
170
|
-
|
|
169
|
+
const format = documentFormat(probe);
|
|
170
|
+
if (format === "legacy" || format === "mixed") return Response.json({
|
|
171
171
|
kind: "rejected",
|
|
172
172
|
code: "unsupported_document_format",
|
|
173
|
-
message: "
|
|
173
|
+
message: "Retired document content roots are not supported",
|
|
174
174
|
server_version: serverVersion
|
|
175
175
|
}, { status: 422 });
|
|
176
176
|
} finally {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mengine/medeo-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
"exports": {
|
|
16
16
|
".": "./dist/index.js",
|
|
17
17
|
"./dsl": "./dist/dsl.js",
|
|
18
|
-
"./legacy": "./dist/legacy.js",
|
|
19
18
|
"./relay": "./dist/relay.js",
|
|
20
|
-
"./schemas": "./dist/schemas.js",
|
|
21
19
|
"./testing": "./dist/testing.js",
|
|
22
20
|
"./package.json": "./package.json"
|
|
23
21
|
},
|
|
@@ -27,28 +25,27 @@
|
|
|
27
25
|
},
|
|
28
26
|
"dependencies": {
|
|
29
27
|
"@noble/hashes": "^2.4.0",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"@mengine/
|
|
33
|
-
"@mengine/sync": "2.1.1-dsl.9",
|
|
34
|
-
"@mengine/utils": "2.1.1-dsl.9"
|
|
28
|
+
"@mengine/storage": "3.0.0",
|
|
29
|
+
"@mengine/sync": "3.0.0",
|
|
30
|
+
"@mengine/utils": "3.0.0"
|
|
35
31
|
},
|
|
36
32
|
"devDependencies": {
|
|
37
33
|
"@types/node": "^25.9.1",
|
|
38
34
|
"@typescript/native-preview": "7.0.0-dev.20260521.1",
|
|
39
|
-
"loro-crdt": "^1.16.
|
|
35
|
+
"loro-crdt": "^1.16.4",
|
|
40
36
|
"loro-mirror": "2.3.3",
|
|
41
37
|
"tsx": "^4.22.3",
|
|
42
38
|
"typescript": "^6.0.3",
|
|
43
39
|
"vite-plugin-wasm": "^3.6.0",
|
|
44
40
|
"vite-plus": "^0.1.23",
|
|
45
|
-
"@mengine/
|
|
46
|
-
"@mengine/
|
|
41
|
+
"@mengine/medeo-dsl": "0.0.0",
|
|
42
|
+
"@mengine/idl-codegen": "0.0.0"
|
|
47
43
|
},
|
|
48
44
|
"peerDependencies": {
|
|
49
|
-
"loro-crdt": "^1.16.
|
|
45
|
+
"loro-crdt": "^1.16.4"
|
|
50
46
|
},
|
|
51
47
|
"inlinedDependencies": {
|
|
48
|
+
"immer": "10.2.0",
|
|
52
49
|
"loro-mirror": "2.3.3"
|
|
53
50
|
},
|
|
54
51
|
"scripts": {
|
package/dist/index-CHiPztZr.d.ts
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { G as ResourceSystem, R as MedeoDslSnapshot, rt as TrackRole } from "./video-draft-types-GqXnsOzA.js";
|
|
2
|
-
import { b as MedeoDsl, h as UploadText, i as AudioScriptView, m as DslEditor, o as VideoDraftProjection } from "./index-C5wDKYqC.js";
|
|
3
|
-
import { _ as ManualSyncTransport, a as MengineDocSessionOptions, g as ManualSyncDocOptions, n as DocumentSession, r as DocumentSessionUpdateEvent } from "./index-DAfOkcnZ.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
|
-
}[];
|
|
73
|
-
readonly defaultLanguage?: string | undefined;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
readonly "phonetic-script-entities": {
|
|
77
|
-
readonly [x: string]: {
|
|
78
|
-
readonly phoneme: {
|
|
79
|
-
readonly phonemeScript?: string | undefined;
|
|
80
|
-
readonly audioScriptId: string;
|
|
81
|
-
readonly segmentId: string;
|
|
82
|
-
readonly start?: import("loro-crdt").Cursor | undefined;
|
|
83
|
-
readonly end?: import("loro-crdt").Cursor | undefined;
|
|
84
|
-
};
|
|
85
|
-
readonly system?: "memota" | undefined;
|
|
86
|
-
readonly key?: string | undefined;
|
|
87
|
-
readonly storageKey?: string | undefined;
|
|
88
|
-
readonly digest?: string | undefined;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
readonly "caption-entities": {
|
|
92
|
-
readonly [x: string]: {
|
|
93
|
-
readonly selection?: {
|
|
94
|
-
readonly audioScriptId: string;
|
|
95
|
-
readonly segmentId: string;
|
|
96
|
-
readonly start?: import("loro-crdt").Cursor | undefined;
|
|
97
|
-
readonly end?: import("loro-crdt").Cursor | undefined;
|
|
98
|
-
} | undefined;
|
|
99
|
-
readonly text?: string | undefined;
|
|
100
|
-
readonly style?: {
|
|
101
|
-
readonly font?: {
|
|
102
|
-
readonly system: "font-library";
|
|
103
|
-
readonly key: string;
|
|
104
|
-
} | undefined;
|
|
105
|
-
readonly fontSize?: number | undefined;
|
|
106
|
-
readonly fontColor?: string | undefined;
|
|
107
|
-
readonly fontWeight?: number | undefined;
|
|
108
|
-
readonly entranceAnimation?: string | undefined;
|
|
109
|
-
readonly entranceAnimationDurationMs?: number | undefined;
|
|
110
|
-
readonly strokeColor?: string | undefined;
|
|
111
|
-
readonly strokeWidth?: number | undefined;
|
|
112
|
-
readonly positionX?: number | undefined;
|
|
113
|
-
readonly positionY?: number | undefined;
|
|
114
|
-
} | undefined;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
readonly "voice-entities": {
|
|
118
|
-
readonly [x: string]: {
|
|
119
|
-
readonly system: "voice-library";
|
|
120
|
-
readonly key: string;
|
|
121
|
-
readonly name?: string | undefined;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
readonly "voice-timbre-relations": {
|
|
125
|
-
readonly [x: string]: {
|
|
126
|
-
readonly recordingId: string;
|
|
127
|
-
readonly voiceId: string;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
readonly "derived-from-relations": {
|
|
131
|
-
readonly [x: string]: {
|
|
132
|
-
readonly entityId: string;
|
|
133
|
-
readonly sourceId: string;
|
|
134
|
-
readonly sourceDigest?: string | undefined;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
readonly 'contain-relations': readonly {
|
|
138
|
-
readonly treeId: import("loro-crdt").TreeID;
|
|
139
|
-
readonly entityId: string;
|
|
140
|
-
readonly children: readonly /*elided*/any[];
|
|
141
|
-
}[];
|
|
142
|
-
readonly richText: {
|
|
143
|
-
readonly [x: string]: {
|
|
144
|
-
readonly bodyId: string;
|
|
145
|
-
readonly plainText: string;
|
|
146
|
-
readonly delta: readonly {
|
|
147
|
-
readonly insert: string;
|
|
148
|
-
readonly attributes?: {
|
|
149
|
-
readonly [x: string]: unknown;
|
|
150
|
-
} | undefined;
|
|
151
|
-
}[];
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
readonly captionText: {
|
|
155
|
-
readonly [x: string]: {
|
|
156
|
-
readonly text: string;
|
|
157
|
-
readonly start: number;
|
|
158
|
-
readonly end: number;
|
|
159
|
-
readonly bodyId: string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
readonly phoneticText: {
|
|
163
|
-
readonly [x: string]: {
|
|
164
|
-
readonly text: string;
|
|
165
|
-
readonly start: number;
|
|
166
|
-
readonly end: number;
|
|
167
|
-
readonly bodyId: string;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
readonly diagnostics: readonly {
|
|
171
|
-
readonly code: string;
|
|
172
|
-
readonly path: string;
|
|
173
|
-
readonly message: string;
|
|
174
|
-
}[];
|
|
175
|
-
};
|
|
176
|
-
projectVideoDraft(): VideoDraftProjection;
|
|
177
|
-
dispose(): void;
|
|
178
|
-
}
|
|
179
|
-
//#endregion
|
|
180
|
-
//#region src/session/mengine-doc-session.d.ts
|
|
181
|
-
type MengineDocSessionUpdateEvent = DocumentSessionUpdateEvent<MedeoDslSnapshot>;
|
|
182
|
-
/** Default collaborative session: one DSL handle and one editor over the synchronized LoroDoc. */
|
|
183
|
-
declare class MengineDocSession extends DocumentSession<MedeoDslSnapshot, DslEditor, MedeoDsl> {
|
|
184
|
-
/** `uploadText` stores raw content the editor writes, such as a PhoneticScript's text, in Memota. */
|
|
185
|
-
constructor(options: MengineDocSessionOptions & {
|
|
186
|
-
uploadText?: UploadText;
|
|
187
|
-
});
|
|
188
|
-
get dsl(): MedeoDsl;
|
|
189
|
-
projectVideoDraft(): VideoDraftProjection;
|
|
190
|
-
/** The document's AudioScripts with what says and shows them; read from the same snapshot as the VideoDraft. */
|
|
191
|
-
projectAudioScripts(): AudioScriptView[];
|
|
192
|
-
}
|
|
193
|
-
//#endregion
|
|
194
|
-
export { MengineDocSessionUpdateEvent as n, ManualSyncDoc as r, MengineDocSession as t };
|