@urun-sh/core 0.2.11 → 0.2.14
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/CHANGELOG.md +5 -0
- package/dist/{chunk-4CEMGU66.mjs → chunk-ESLF63FX.mjs} +1 -1
- package/dist/{chunk-BSQZXFHN.mjs → chunk-SHMKV7WG.mjs} +1 -1
- package/dist/index.browser.d.mts +90 -4
- package/dist/index.browser.d.ts +90 -4
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +90 -4
- package/dist/index.d.ts +90 -4
- package/dist/index.js +5 -5
- package/dist/index.mjs +1 -1
- package/dist/internal.browser.d.mts +1 -1
- package/dist/internal.browser.d.ts +1 -1
- package/dist/internal.browser.js +2 -2
- package/dist/internal.browser.mjs +1 -1
- package/dist/internal.d.mts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/{stream-data-DWu57atL.d.mts → stream-data-GIyoXg7t.d.mts} +9 -9
- package/dist/{stream-data-DWu57atL.d.ts → stream-data-GIyoXg7t.d.ts} +9 -9
- package/package.json +1 -1
package/dist/index.browser.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as AppOptions, a as App$1, K as SessionPhase, T as SessionStatus, O as SessionPhaseName, A as AccessTokenOptions$1, y as RuntimeArtifact, z as RuntimeArtifactDownload, R as Recording, G as Session$1, C as ChannelEndpoint, _ as TransportSession, c as AttachOptions, v as RecordingsAccessor, B as RuntimeArtifactsAccessor, U as SessionStream$1, Z as StreamDataTransport, I as SessionDocumentImpl, Y as StreamChunkOptions, g as ChunkReadable, P as Presence, k as DocConnector, w as RequestOptions, x as RequestStreamOptions, X as StoreOptions, W as Store, e as ChannelMultiplexer, J as SessionFailureKind } from './stream-data-
|
|
2
|
-
export { L as Layer, l as LayoutConfig, m as LayoutContext, M as MediaChunkBinding, o as MediaChunkSource, p as MediaChunkSourceFactory, q as MediaRecorderChunkSourceOptions, r as PresenceState, s as RecordingBucket, t as RecordingLifecycle, u as RecordingStatus, E as RuntimeAvailability, S as SceneContext, F as SceneGraph, H as SessionDocument, N as SessionPhaseError, V as SessionText, a0 as TransportState, a4 as isPendingRecording, a5 as mediaRecorderChunkSource } from './stream-data-
|
|
1
|
+
import { b as AppOptions, a as App$1, K as SessionPhase, T as SessionStatus, O as SessionPhaseName, A as AccessTokenOptions$1, y as RuntimeArtifact, z as RuntimeArtifactDownload, R as Recording, G as Session$1, C as ChannelEndpoint, _ as TransportSession, c as AttachOptions, v as RecordingsAccessor, B as RuntimeArtifactsAccessor, U as SessionStream$1, Z as StreamDataTransport, I as SessionDocumentImpl, Y as StreamChunkOptions, g as ChunkReadable, P as Presence, k as DocConnector, w as RequestOptions, x as RequestStreamOptions, X as StoreOptions, W as Store, e as ChannelMultiplexer, J as SessionFailureKind } from './stream-data-GIyoXg7t.mjs';
|
|
2
|
+
export { L as Layer, l as LayoutConfig, m as LayoutContext, M as MediaChunkBinding, o as MediaChunkSource, p as MediaChunkSourceFactory, q as MediaRecorderChunkSourceOptions, r as PresenceState, s as RecordingBucket, t as RecordingLifecycle, u as RecordingStatus, E as RuntimeAvailability, S as SceneContext, F as SceneGraph, H as SessionDocument, N as SessionPhaseError, V as SessionText, a0 as TransportState, a4 as isPendingRecording, a5 as mediaRecorderChunkSource } from './stream-data-GIyoXg7t.mjs';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
5
|
|
|
@@ -188,6 +188,8 @@ declare class SessionStream implements SessionStream$1 {
|
|
|
188
188
|
private _streamData?;
|
|
189
189
|
|
|
190
190
|
private _controlDoc?;
|
|
191
|
+
|
|
192
|
+
private _onActivity?;
|
|
191
193
|
private _track;
|
|
192
194
|
private _handlers;
|
|
193
195
|
private _unsubscribeTransport;
|
|
@@ -204,7 +206,9 @@ declare class SessionStream implements SessionStream$1 {
|
|
|
204
206
|
|
|
205
207
|
_streamData?: StreamDataTransport | undefined,
|
|
206
208
|
|
|
207
|
-
_controlDoc?: (() => SessionDocumentImpl) | undefined
|
|
209
|
+
_controlDoc?: (() => SessionDocumentImpl) | undefined,
|
|
210
|
+
|
|
211
|
+
_onActivity?: (() => void) | undefined);
|
|
208
212
|
|
|
209
213
|
messages(): AsyncIterable<unknown>;
|
|
210
214
|
|
|
@@ -247,6 +251,8 @@ declare class Session implements Session$1 {
|
|
|
247
251
|
|
|
248
252
|
private _presence;
|
|
249
253
|
|
|
254
|
+
private _activity;
|
|
255
|
+
|
|
250
256
|
private _activeRequests;
|
|
251
257
|
|
|
252
258
|
private _recordingsAuth?;
|
|
@@ -287,6 +293,8 @@ declare class Session implements Session$1 {
|
|
|
287
293
|
|
|
288
294
|
get presence(): Presence;
|
|
289
295
|
|
|
296
|
+
touch(): void;
|
|
297
|
+
|
|
290
298
|
connectDocs(connector: DocConnector): void;
|
|
291
299
|
|
|
292
300
|
setDocTransport(opts: {
|
|
@@ -447,4 +455,82 @@ declare class CaptureController {
|
|
|
447
455
|
|
|
448
456
|
declare function sharedCaptureController(): CaptureController;
|
|
449
457
|
|
|
450
|
-
|
|
458
|
+
declare const ACTIVITY_FIELD = "activity";
|
|
459
|
+
|
|
460
|
+
declare const ACTIVITY_STAMP_MIN_INTERVAL_MS = 15000;
|
|
461
|
+
|
|
462
|
+
declare const ACTIVITY_DOM_EVENTS: readonly ["pointerdown", "pointermove", "keydown", "wheel", "touchstart"];
|
|
463
|
+
|
|
464
|
+
interface ActivityAwareness {
|
|
465
|
+
setLocalStateField(field: string, value: unknown): void;
|
|
466
|
+
}
|
|
467
|
+
interface ActivityTrackerOptions {
|
|
468
|
+
|
|
469
|
+
awareness: ActivityAwareness;
|
|
470
|
+
|
|
471
|
+
isProducing?: () => boolean;
|
|
472
|
+
|
|
473
|
+
now?: () => number;
|
|
474
|
+
|
|
475
|
+
windowTarget?: Pick<Window, 'addEventListener' | 'removeEventListener'> | null;
|
|
476
|
+
documentTarget?: (Pick<Document, 'addEventListener' | 'removeEventListener'> & {
|
|
477
|
+
visibilityState?: string;
|
|
478
|
+
}) | null;
|
|
479
|
+
}
|
|
480
|
+
interface ActivityTracker {
|
|
481
|
+
|
|
482
|
+
touch(): void;
|
|
483
|
+
|
|
484
|
+
dispose(): void;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
declare function createActivityTracker(options: ActivityTrackerOptions): ActivityTracker;
|
|
488
|
+
|
|
489
|
+
declare const INPUT_PRESENCE_FIELD = "input";
|
|
490
|
+
|
|
491
|
+
declare const INPUT_PRESENCE_DEFAULT_HZ = 30;
|
|
492
|
+
|
|
493
|
+
interface InputPresenceState {
|
|
494
|
+
keys: string[];
|
|
495
|
+
buttons: number;
|
|
496
|
+
pointer: {
|
|
497
|
+
x: number;
|
|
498
|
+
y: number;
|
|
499
|
+
};
|
|
500
|
+
seq: number;
|
|
501
|
+
at: number;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
interface InputPresenceAwareness {
|
|
505
|
+
setLocalStateField(field: string, value: unknown): void;
|
|
506
|
+
}
|
|
507
|
+
interface InputPresencePublisherOptions {
|
|
508
|
+
|
|
509
|
+
awareness: InputPresenceAwareness;
|
|
510
|
+
|
|
511
|
+
field?: string;
|
|
512
|
+
|
|
513
|
+
hz?: number;
|
|
514
|
+
|
|
515
|
+
now?: () => number;
|
|
516
|
+
}
|
|
517
|
+
interface InputPresencePublisher {
|
|
518
|
+
|
|
519
|
+
keyDown(key: string): void;
|
|
520
|
+
|
|
521
|
+
keyUp(key: string): void;
|
|
522
|
+
|
|
523
|
+
setButtons(buttons: number): void;
|
|
524
|
+
|
|
525
|
+
movePointer(dx: number, dy: number): void;
|
|
526
|
+
|
|
527
|
+
heldKeys(): string[];
|
|
528
|
+
|
|
529
|
+
clear(): void;
|
|
530
|
+
|
|
531
|
+
dispose(): void;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
declare function createInputPresencePublisher(options: InputPresencePublisherOptions): InputPresencePublisher;
|
|
535
|
+
|
|
536
|
+
export { ACTIVITY_DOM_EVENTS, ACTIVITY_FIELD, ACTIVITY_STAMP_MIN_INTERVAL_MS, type ActivityAwareness, type ActivityTracker, type ActivityTrackerOptions, App, App$1 as AppInterface, AppOptions, AttachOptions, type CaptureClaim, CaptureController, type CaptureControllerOptions, type CaptureKind, CaptureUnavailableError, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, FOREGROUND_COALESCE_MS, INPUT_PRESENCE_DEFAULT_HZ, INPUT_PRESENCE_FIELD, type InputPresenceAwareness, type InputPresencePublisher, type InputPresencePublisherOptions, type InputPresenceState, InvalidDurationError, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, type PrewakeOptions, type PrewakeResult, type PrewakeStatus, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, RuntimeArtifact, RuntimeArtifactDownload, RuntimeArtifactNotFoundError, RuntimeArtifactsAccessor, RuntimeArtifactsClient, type RuntimeArtifactsClientOptions, RuntimeArtifactsError, RuntimeArtifactsUnauthorizedError, Session, SessionAllocationError, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionPhase, SessionPhaseName, SessionStatus, SessionStream$1 as SessionStream, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, type WhenLiveOptions, createActivityTracker, createInputPresencePublisher, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, isDurationString, isWakingPhase, normalizeRetention, observePageLifecycle, prewake, sessionFailureFromMediaError, sharedCaptureController, videoStream, whenLive };
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as AppOptions, a as App$1, K as SessionPhase, T as SessionStatus, O as SessionPhaseName, A as AccessTokenOptions$1, y as RuntimeArtifact, z as RuntimeArtifactDownload, R as Recording, G as Session$1, C as ChannelEndpoint, _ as TransportSession, c as AttachOptions, v as RecordingsAccessor, B as RuntimeArtifactsAccessor, U as SessionStream$1, Z as StreamDataTransport, I as SessionDocumentImpl, Y as StreamChunkOptions, g as ChunkReadable, P as Presence, k as DocConnector, w as RequestOptions, x as RequestStreamOptions, X as StoreOptions, W as Store, e as ChannelMultiplexer, J as SessionFailureKind } from './stream-data-
|
|
2
|
-
export { L as Layer, l as LayoutConfig, m as LayoutContext, M as MediaChunkBinding, o as MediaChunkSource, p as MediaChunkSourceFactory, q as MediaRecorderChunkSourceOptions, r as PresenceState, s as RecordingBucket, t as RecordingLifecycle, u as RecordingStatus, E as RuntimeAvailability, S as SceneContext, F as SceneGraph, H as SessionDocument, N as SessionPhaseError, V as SessionText, a0 as TransportState, a4 as isPendingRecording, a5 as mediaRecorderChunkSource } from './stream-data-
|
|
1
|
+
import { b as AppOptions, a as App$1, K as SessionPhase, T as SessionStatus, O as SessionPhaseName, A as AccessTokenOptions$1, y as RuntimeArtifact, z as RuntimeArtifactDownload, R as Recording, G as Session$1, C as ChannelEndpoint, _ as TransportSession, c as AttachOptions, v as RecordingsAccessor, B as RuntimeArtifactsAccessor, U as SessionStream$1, Z as StreamDataTransport, I as SessionDocumentImpl, Y as StreamChunkOptions, g as ChunkReadable, P as Presence, k as DocConnector, w as RequestOptions, x as RequestStreamOptions, X as StoreOptions, W as Store, e as ChannelMultiplexer, J as SessionFailureKind } from './stream-data-GIyoXg7t.js';
|
|
2
|
+
export { L as Layer, l as LayoutConfig, m as LayoutContext, M as MediaChunkBinding, o as MediaChunkSource, p as MediaChunkSourceFactory, q as MediaRecorderChunkSourceOptions, r as PresenceState, s as RecordingBucket, t as RecordingLifecycle, u as RecordingStatus, E as RuntimeAvailability, S as SceneContext, F as SceneGraph, H as SessionDocument, N as SessionPhaseError, V as SessionText, a0 as TransportState, a4 as isPendingRecording, a5 as mediaRecorderChunkSource } from './stream-data-GIyoXg7t.js';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
5
|
|
|
@@ -188,6 +188,8 @@ declare class SessionStream implements SessionStream$1 {
|
|
|
188
188
|
private _streamData?;
|
|
189
189
|
|
|
190
190
|
private _controlDoc?;
|
|
191
|
+
|
|
192
|
+
private _onActivity?;
|
|
191
193
|
private _track;
|
|
192
194
|
private _handlers;
|
|
193
195
|
private _unsubscribeTransport;
|
|
@@ -204,7 +206,9 @@ declare class SessionStream implements SessionStream$1 {
|
|
|
204
206
|
|
|
205
207
|
_streamData?: StreamDataTransport | undefined,
|
|
206
208
|
|
|
207
|
-
_controlDoc?: (() => SessionDocumentImpl) | undefined
|
|
209
|
+
_controlDoc?: (() => SessionDocumentImpl) | undefined,
|
|
210
|
+
|
|
211
|
+
_onActivity?: (() => void) | undefined);
|
|
208
212
|
|
|
209
213
|
messages(): AsyncIterable<unknown>;
|
|
210
214
|
|
|
@@ -247,6 +251,8 @@ declare class Session implements Session$1 {
|
|
|
247
251
|
|
|
248
252
|
private _presence;
|
|
249
253
|
|
|
254
|
+
private _activity;
|
|
255
|
+
|
|
250
256
|
private _activeRequests;
|
|
251
257
|
|
|
252
258
|
private _recordingsAuth?;
|
|
@@ -287,6 +293,8 @@ declare class Session implements Session$1 {
|
|
|
287
293
|
|
|
288
294
|
get presence(): Presence;
|
|
289
295
|
|
|
296
|
+
touch(): void;
|
|
297
|
+
|
|
290
298
|
connectDocs(connector: DocConnector): void;
|
|
291
299
|
|
|
292
300
|
setDocTransport(opts: {
|
|
@@ -447,4 +455,82 @@ declare class CaptureController {
|
|
|
447
455
|
|
|
448
456
|
declare function sharedCaptureController(): CaptureController;
|
|
449
457
|
|
|
450
|
-
|
|
458
|
+
declare const ACTIVITY_FIELD = "activity";
|
|
459
|
+
|
|
460
|
+
declare const ACTIVITY_STAMP_MIN_INTERVAL_MS = 15000;
|
|
461
|
+
|
|
462
|
+
declare const ACTIVITY_DOM_EVENTS: readonly ["pointerdown", "pointermove", "keydown", "wheel", "touchstart"];
|
|
463
|
+
|
|
464
|
+
interface ActivityAwareness {
|
|
465
|
+
setLocalStateField(field: string, value: unknown): void;
|
|
466
|
+
}
|
|
467
|
+
interface ActivityTrackerOptions {
|
|
468
|
+
|
|
469
|
+
awareness: ActivityAwareness;
|
|
470
|
+
|
|
471
|
+
isProducing?: () => boolean;
|
|
472
|
+
|
|
473
|
+
now?: () => number;
|
|
474
|
+
|
|
475
|
+
windowTarget?: Pick<Window, 'addEventListener' | 'removeEventListener'> | null;
|
|
476
|
+
documentTarget?: (Pick<Document, 'addEventListener' | 'removeEventListener'> & {
|
|
477
|
+
visibilityState?: string;
|
|
478
|
+
}) | null;
|
|
479
|
+
}
|
|
480
|
+
interface ActivityTracker {
|
|
481
|
+
|
|
482
|
+
touch(): void;
|
|
483
|
+
|
|
484
|
+
dispose(): void;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
declare function createActivityTracker(options: ActivityTrackerOptions): ActivityTracker;
|
|
488
|
+
|
|
489
|
+
declare const INPUT_PRESENCE_FIELD = "input";
|
|
490
|
+
|
|
491
|
+
declare const INPUT_PRESENCE_DEFAULT_HZ = 30;
|
|
492
|
+
|
|
493
|
+
interface InputPresenceState {
|
|
494
|
+
keys: string[];
|
|
495
|
+
buttons: number;
|
|
496
|
+
pointer: {
|
|
497
|
+
x: number;
|
|
498
|
+
y: number;
|
|
499
|
+
};
|
|
500
|
+
seq: number;
|
|
501
|
+
at: number;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
interface InputPresenceAwareness {
|
|
505
|
+
setLocalStateField(field: string, value: unknown): void;
|
|
506
|
+
}
|
|
507
|
+
interface InputPresencePublisherOptions {
|
|
508
|
+
|
|
509
|
+
awareness: InputPresenceAwareness;
|
|
510
|
+
|
|
511
|
+
field?: string;
|
|
512
|
+
|
|
513
|
+
hz?: number;
|
|
514
|
+
|
|
515
|
+
now?: () => number;
|
|
516
|
+
}
|
|
517
|
+
interface InputPresencePublisher {
|
|
518
|
+
|
|
519
|
+
keyDown(key: string): void;
|
|
520
|
+
|
|
521
|
+
keyUp(key: string): void;
|
|
522
|
+
|
|
523
|
+
setButtons(buttons: number): void;
|
|
524
|
+
|
|
525
|
+
movePointer(dx: number, dy: number): void;
|
|
526
|
+
|
|
527
|
+
heldKeys(): string[];
|
|
528
|
+
|
|
529
|
+
clear(): void;
|
|
530
|
+
|
|
531
|
+
dispose(): void;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
declare function createInputPresencePublisher(options: InputPresencePublisherOptions): InputPresencePublisher;
|
|
535
|
+
|
|
536
|
+
export { ACTIVITY_DOM_EVENTS, ACTIVITY_FIELD, ACTIVITY_STAMP_MIN_INTERVAL_MS, type ActivityAwareness, type ActivityTracker, type ActivityTrackerOptions, App, App$1 as AppInterface, AppOptions, AttachOptions, type CaptureClaim, CaptureController, type CaptureControllerOptions, type CaptureKind, CaptureUnavailableError, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, FOREGROUND_COALESCE_MS, INPUT_PRESENCE_DEFAULT_HZ, INPUT_PRESENCE_FIELD, type InputPresenceAwareness, type InputPresencePublisher, type InputPresencePublisherOptions, type InputPresenceState, InvalidDurationError, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, type PrewakeOptions, type PrewakeResult, type PrewakeStatus, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, RuntimeArtifact, RuntimeArtifactDownload, RuntimeArtifactNotFoundError, RuntimeArtifactsAccessor, RuntimeArtifactsClient, type RuntimeArtifactsClientOptions, RuntimeArtifactsError, RuntimeArtifactsUnauthorizedError, Session, SessionAllocationError, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionPhase, SessionPhaseName, SessionStatus, SessionStream$1 as SessionStream, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, type WhenLiveOptions, createActivityTracker, createInputPresencePublisher, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, isDurationString, isWakingPhase, normalizeRetention, observePageLifecycle, prewake, sessionFailureFromMediaError, sharedCaptureController, videoStream, whenLive };
|