@urun-sh/core 0.1.41 → 0.1.43
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/chunk-PWBUBR5C.mjs +7 -0
- package/dist/index.d.mts +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js +5 -134
- package/dist/index.mjs +1 -1
- package/dist/internal.d.mts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +5 -134
- package/dist/internal.mjs +1 -1
- package/dist/{transport-CI8aVD2U.d.ts → transport-BWNRIdMX.d.mts} +4 -0
- package/dist/{transport-CI8aVD2U.d.mts → transport-BWNRIdMX.d.ts} +4 -0
- package/package.json +1 -1
- package/dist/chunk-4O3YOYT6.mjs +0 -7
- package/dist/chunk-FNR7JDXN.mjs +0 -1
- package/dist/lib-RR67JYGM.mjs +0 -130
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AppOptions, A as App$1, k as SessionDocument, p as SessionText, j as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, l as SessionPhase, o as SessionStream$1, R as RequestOptions, h as RequestStreamOptions, r as StoreOptions, q as Store, d as ChannelMultiplexer } from './transport-
|
|
2
|
-
export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, i as SceneGraph, m as SessionPhaseName, t as TransportState } from './transport-
|
|
1
|
+
import { a as AppOptions, A as App$1, k as SessionDocument, p as SessionText, j as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, l as SessionPhase, o as SessionStream$1, R as RequestOptions, h as RequestStreamOptions, r as StoreOptions, q as Store, d as ChannelMultiplexer } from './transport-BWNRIdMX.mjs';
|
|
2
|
+
export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, i as SceneGraph, m as SessionPhaseName, t as TransportState } from './transport-BWNRIdMX.mjs';
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
4
|
|
|
5
5
|
declare function App(appId: string, options: AppOptions): App$1;
|
|
@@ -74,6 +74,8 @@ declare class SessionStream implements SessionStream$1 {
|
|
|
74
74
|
private _transport;
|
|
75
75
|
|
|
76
76
|
private _laneDoc?;
|
|
77
|
+
|
|
78
|
+
private _controlDoc?;
|
|
77
79
|
private _track;
|
|
78
80
|
private _handlers;
|
|
79
81
|
private _unsubscribeTransport;
|
|
@@ -90,7 +92,9 @@ declare class SessionStream implements SessionStream$1 {
|
|
|
90
92
|
private _disposed;
|
|
91
93
|
constructor(_name: string, _transport: TransportSession,
|
|
92
94
|
|
|
93
|
-
_laneDoc?: ((key: string) => SessionDocumentImpl) | undefined
|
|
95
|
+
_laneDoc?: ((key: string) => SessionDocumentImpl) | undefined,
|
|
96
|
+
|
|
97
|
+
_controlDoc?: (() => SessionDocumentImpl) | undefined);
|
|
94
98
|
|
|
95
99
|
messages(): AsyncIterable<unknown>;
|
|
96
100
|
|
|
@@ -98,9 +102,15 @@ declare class SessionStream implements SessionStream$1 {
|
|
|
98
102
|
|
|
99
103
|
private _drainLane;
|
|
100
104
|
get track(): MediaStreamTrack | null;
|
|
105
|
+
|
|
106
|
+
private _claimBrowserProducer;
|
|
101
107
|
attach(track: MediaStreamTrack): Promise<void>;
|
|
102
108
|
|
|
103
109
|
attachVideo(track: MediaStreamTrack): Promise<void>;
|
|
110
|
+
|
|
111
|
+
emit(payload: unknown, options?: {
|
|
112
|
+
to?: string;
|
|
113
|
+
}): Promise<void>;
|
|
104
114
|
detach(): Promise<void>;
|
|
105
115
|
|
|
106
116
|
detachVideo(): Promise<void>;
|
|
@@ -182,6 +192,16 @@ declare class RequestDocSyncError extends RequestError {
|
|
|
182
192
|
constructor(timeoutMs: number, requestId?: string);
|
|
183
193
|
}
|
|
184
194
|
|
|
195
|
+
declare class StreamDirectionConflict extends Error {
|
|
196
|
+
|
|
197
|
+
readonly stream: string;
|
|
198
|
+
|
|
199
|
+
readonly owner: 'runtime' | 'browser';
|
|
200
|
+
|
|
201
|
+
readonly attempted: 'runtime' | 'browser';
|
|
202
|
+
constructor(stream: string, owner: 'runtime' | 'browser', attempted: 'runtime' | 'browser');
|
|
203
|
+
}
|
|
204
|
+
|
|
185
205
|
declare class RequestAbortError extends RequestError {
|
|
186
206
|
constructor(requestId?: string);
|
|
187
207
|
}
|
|
@@ -190,4 +210,4 @@ declare class RequestCancelledError extends RequestError {
|
|
|
190
210
|
constructor(requestId?: string);
|
|
191
211
|
}
|
|
192
212
|
|
|
193
|
-
export { App, App$1 as AppInterface, AppOptions, AttachOptions, DEFAULT_DOC_SYNC_TIMEOUT_MS, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, type VideoStreamOptions, createStore, videoStream };
|
|
213
|
+
export { App, App$1 as AppInterface, AppOptions, AttachOptions, DEFAULT_DOC_SYNC_TIMEOUT_MS, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamDirectionConflict, type VideoStreamOptions, createStore, videoStream };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AppOptions, A as App$1, k as SessionDocument, p as SessionText, j as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, l as SessionPhase, o as SessionStream$1, R as RequestOptions, h as RequestStreamOptions, r as StoreOptions, q as Store, d as ChannelMultiplexer } from './transport-
|
|
2
|
-
export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, i as SceneGraph, m as SessionPhaseName, t as TransportState } from './transport-
|
|
1
|
+
import { a as AppOptions, A as App$1, k as SessionDocument, p as SessionText, j as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, l as SessionPhase, o as SessionStream$1, R as RequestOptions, h as RequestStreamOptions, r as StoreOptions, q as Store, d as ChannelMultiplexer } from './transport-BWNRIdMX.js';
|
|
2
|
+
export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, i as SceneGraph, m as SessionPhaseName, t as TransportState } from './transport-BWNRIdMX.js';
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
4
|
|
|
5
5
|
declare function App(appId: string, options: AppOptions): App$1;
|
|
@@ -74,6 +74,8 @@ declare class SessionStream implements SessionStream$1 {
|
|
|
74
74
|
private _transport;
|
|
75
75
|
|
|
76
76
|
private _laneDoc?;
|
|
77
|
+
|
|
78
|
+
private _controlDoc?;
|
|
77
79
|
private _track;
|
|
78
80
|
private _handlers;
|
|
79
81
|
private _unsubscribeTransport;
|
|
@@ -90,7 +92,9 @@ declare class SessionStream implements SessionStream$1 {
|
|
|
90
92
|
private _disposed;
|
|
91
93
|
constructor(_name: string, _transport: TransportSession,
|
|
92
94
|
|
|
93
|
-
_laneDoc?: ((key: string) => SessionDocumentImpl) | undefined
|
|
95
|
+
_laneDoc?: ((key: string) => SessionDocumentImpl) | undefined,
|
|
96
|
+
|
|
97
|
+
_controlDoc?: (() => SessionDocumentImpl) | undefined);
|
|
94
98
|
|
|
95
99
|
messages(): AsyncIterable<unknown>;
|
|
96
100
|
|
|
@@ -98,9 +102,15 @@ declare class SessionStream implements SessionStream$1 {
|
|
|
98
102
|
|
|
99
103
|
private _drainLane;
|
|
100
104
|
get track(): MediaStreamTrack | null;
|
|
105
|
+
|
|
106
|
+
private _claimBrowserProducer;
|
|
101
107
|
attach(track: MediaStreamTrack): Promise<void>;
|
|
102
108
|
|
|
103
109
|
attachVideo(track: MediaStreamTrack): Promise<void>;
|
|
110
|
+
|
|
111
|
+
emit(payload: unknown, options?: {
|
|
112
|
+
to?: string;
|
|
113
|
+
}): Promise<void>;
|
|
104
114
|
detach(): Promise<void>;
|
|
105
115
|
|
|
106
116
|
detachVideo(): Promise<void>;
|
|
@@ -182,6 +192,16 @@ declare class RequestDocSyncError extends RequestError {
|
|
|
182
192
|
constructor(timeoutMs: number, requestId?: string);
|
|
183
193
|
}
|
|
184
194
|
|
|
195
|
+
declare class StreamDirectionConflict extends Error {
|
|
196
|
+
|
|
197
|
+
readonly stream: string;
|
|
198
|
+
|
|
199
|
+
readonly owner: 'runtime' | 'browser';
|
|
200
|
+
|
|
201
|
+
readonly attempted: 'runtime' | 'browser';
|
|
202
|
+
constructor(stream: string, owner: 'runtime' | 'browser', attempted: 'runtime' | 'browser');
|
|
203
|
+
}
|
|
204
|
+
|
|
185
205
|
declare class RequestAbortError extends RequestError {
|
|
186
206
|
constructor(requestId?: string);
|
|
187
207
|
}
|
|
@@ -190,4 +210,4 @@ declare class RequestCancelledError extends RequestError {
|
|
|
190
210
|
constructor(requestId?: string);
|
|
191
211
|
}
|
|
192
212
|
|
|
193
|
-
export { App, App$1 as AppInterface, AppOptions, AttachOptions, DEFAULT_DOC_SYNC_TIMEOUT_MS, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, type VideoStreamOptions, createStore, videoStream };
|
|
213
|
+
export { App, App$1 as AppInterface, AppOptions, AttachOptions, DEFAULT_DOC_SYNC_TIMEOUT_MS, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamDirectionConflict, type VideoStreamOptions, createStore, videoStream };
|