forked from quic-issues/427e7578-d7bf-49c8-aee9-2dd999e25316
implemented frontend including separate message system; started to implement backend
This commit is contained in:
107
yjs-poll/node_modules/lib0/dist/delta/binding.d.ts
generated
vendored
Normal file
107
yjs-poll/node_modules/lib0/dist/delta/binding.d.ts
generated
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
/**
|
||||
* @template T
|
||||
* @typedef {import('../schema.js').Schema<T>} Schema
|
||||
*/
|
||||
/**
|
||||
* @template {delta.AbstractDelta} DeltaA
|
||||
* @template {delta.AbstractDelta} DeltaB
|
||||
*/
|
||||
export class Binding<DeltaA extends delta.AbstractDelta, DeltaB extends delta.AbstractDelta> {
|
||||
/**
|
||||
* @param {RDT<DeltaA>} a
|
||||
* @param {RDT<DeltaB>} b
|
||||
* @param {dt.Template<any,DeltaA,DeltaB>} template
|
||||
*/
|
||||
constructor(a: RDT<DeltaA>, b: RDT<DeltaB>, template: dt.Template<any, DeltaA, DeltaB>);
|
||||
/**
|
||||
* @type {dt.Transformer<any,DeltaA,DeltaB>}
|
||||
*/
|
||||
t: dt.Transformer<any, DeltaA, DeltaB>;
|
||||
a: RDT<DeltaA>;
|
||||
b: RDT<DeltaB>;
|
||||
_mux: mux.mutex;
|
||||
_achanged: (delta: DeltaA) => void;
|
||||
_bchanged: (delta: DeltaB) => void;
|
||||
destroy: () => void;
|
||||
}
|
||||
export function bind<DeltaA extends delta.AbstractDelta, Transformer extends dt.Template<any, DeltaA, any>>(a: RDT<DeltaA>, b: RDT<Transformer extends dt.Template<any, DeltaA, infer DeltaB> ? DeltaB : never>, template: dt.Template<any, DeltaA, any>): Binding<DeltaA, Transformer extends dt.Template<any, DeltaA, infer DeltaB> ? DeltaB : never>;
|
||||
export function deltaRDT<Delta extends delta.AbstractDelta>($delta: Schema<Delta>): DeltaRDT<Delta>;
|
||||
export const $domDelta: any;
|
||||
export function domRDT(dom: Element): DomRDT<delta.RecursiveNode<string, {
|
||||
[key: string]: string;
|
||||
}, never, true>>;
|
||||
export type Schema<T> = import("../schema.js").Schema<T>;
|
||||
/**
|
||||
* Abstract Interface for a delta-based Replicated Data Type.
|
||||
*/
|
||||
export type RDT<Delta extends delta.AbstractDelta> = ObservableV2<{
|
||||
"change": (delta: Delta) => void;
|
||||
"destroy": (rdt: RDT<Delta>) => void;
|
||||
}> & {
|
||||
update: (delta: Delta) => any;
|
||||
destroy: () => void;
|
||||
};
|
||||
export type DomDelta = delta.RecursiveNode<string, {
|
||||
[key: string]: string;
|
||||
}, never, true>;
|
||||
import * as delta from './delta.js';
|
||||
import * as dt from './t3.test.js';
|
||||
import * as mux from '../mutex.js';
|
||||
/**
|
||||
* @template {delta.AbstractDelta} Delta
|
||||
* @implements RDT<Delta>
|
||||
* @extends {ObservableV2<{ change: (delta: Delta) => void, 'destroy': (rdt:DeltaRDT<Delta>)=>void }>}
|
||||
*/
|
||||
declare class DeltaRDT<Delta extends delta.AbstractDelta> extends ObservableV2<{
|
||||
change: (delta: Delta) => void;
|
||||
destroy: (rdt: DeltaRDT<Delta>) => void;
|
||||
}> implements RDT<Delta> {
|
||||
/**
|
||||
* @param {Schema<Delta>} $delta
|
||||
*/
|
||||
constructor($delta: Schema<Delta>);
|
||||
$delta: s.Schema<Delta>;
|
||||
/**
|
||||
* @type {Delta?}
|
||||
*/
|
||||
state: Delta | null;
|
||||
_mux: mux.mutex;
|
||||
/**
|
||||
* @param {Delta} delta
|
||||
*/
|
||||
update: (delta: Delta) => any;
|
||||
}
|
||||
/**
|
||||
* @typedef {delta.RecursiveNode<string, { [key:string]: string }, never, true>} DomDelta
|
||||
*/
|
||||
/**
|
||||
* @template {DomDelta} [D=DomDelta]
|
||||
* @implements RDT<D>
|
||||
* @extends {ObservableV2<{ change: (delta: D)=>void, destroy: (rdt:DomRDT<D>)=>void }>}>}
|
||||
*/
|
||||
declare class DomRDT<D extends DomDelta = delta.RecursiveNode<string, {
|
||||
[key: string]: string;
|
||||
}, never, true>> extends ObservableV2<{
|
||||
change: (delta: D) => void;
|
||||
destroy: (rdt: DomRDT<D>) => void;
|
||||
}> implements RDT<D> {
|
||||
/**
|
||||
* @param {Element} observedNode
|
||||
*/
|
||||
constructor(observedNode: Element);
|
||||
observedNode: Element;
|
||||
_mux: mux.mutex;
|
||||
observer: MutationObserver;
|
||||
/**
|
||||
* @param {MutationRecord[]} mutations
|
||||
*/
|
||||
_mutationHandler: (mutations: MutationRecord[]) => any;
|
||||
/**
|
||||
* @param {D} delta
|
||||
*/
|
||||
update: (delta: D) => void;
|
||||
}
|
||||
import { ObservableV2 } from '../observable.js';
|
||||
import * as s from '../schema.js';
|
||||
export {};
|
||||
//# sourceMappingURL=binding.d.ts.map
|
||||
1
yjs-poll/node_modules/lib0/dist/delta/binding.d.ts.map
generated
vendored
Normal file
1
yjs-poll/node_modules/lib0/dist/delta/binding.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"binding.d.ts","sourceRoot":"","sources":["../../delta/binding.js"],"names":[],"mappings":"AAeA;;;GAGG;AAEH;;;GAGG;AACH,qBAHmC,MAAM,SAA3B,KAAK,CAAC,aAAc,EACC,MAAM,SAA3B,KAAK,CAAC,aAAc;IAGhC;;;;OAIG;IACH,eAJW,GAAG,CAAC,MAAM,CAAC,KACX,GAAG,CAAC,MAAM,CAAC,YACX,EAAE,CAAC,QAAQ,CAAC,GAAG,EAAC,MAAM,EAAC,MAAM,CAAC,EA4BxC;IAzBC;;OAEG;IACH,GAFU,EAAE,CAAC,WAAW,CAAC,GAAG,EAAC,MAAM,EAAC,MAAM,CAAC,CAEnB;IACxB,eAAU;IACV,eAAU;IACV,gBAA6B;IAC7B,8BAgCoD,IAAI,CAxBrD;IACH,8BAuBoD,IAAI,CAfrD;IAGL,oBAKC;CACF;AAgBM,qBAN4B,MAAM,SAA3B,KAAK,CAAC,aAAc,EACS,WAAW,SAAxC,EAAE,CAAC,QAAQ,CAAC,GAAG,EAAC,MAAM,EAAC,GAAG,CAAE,KAC/B,GAAG,CAAC,MAAM,CAAC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AEG;IACH,SAAS,OAFE,KAEG,SAOZ;CAMH;AAkMD;;GAEG;AAEH;;;;GAIG;AACH,qBAJyB,CAAC,SAAZ,QAAS;;;YAEa,CAAC,KAAK,EAAE,CAAC,KAAG,IAAI;aAAW,CAAC,GAAG,EAAC,MAAM,CAAC,CAAC,CAAC,KAAG,IAAI;cADrE,GAAG,CAAC,CAAC;IAIlB;;OAEG;IACH,0BAFW,OAAO,EAajB;IATC,sBAAgC;IAChC,gBAA6B;IAC7B,2BAA2D;IAS7D;;OAEG;IACH,mBAAmB,WAFR,cAAc,EAEG,SAGxB;IAEJ;;OAEG;IACH,SAAS,OAFE,CAEG,UAWb;CAOF;6BA1W4B,kBAAkB;mBAS5B,cAAc"}
|
||||
5
yjs-poll/node_modules/lib0/dist/delta/binding.test.d.ts
generated
vendored
Normal file
5
yjs-poll/node_modules/lib0/dist/delta/binding.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export function testBinding(): void;
|
||||
export function testDomBindingBasics(): void;
|
||||
export function testDomBindingBackAndForth(): void;
|
||||
export function testDataToDom(): void;
|
||||
//# sourceMappingURL=binding.test.d.ts.map
|
||||
1
yjs-poll/node_modules/lib0/dist/delta/binding.test.d.ts.map
generated
vendored
Normal file
1
yjs-poll/node_modules/lib0/dist/delta/binding.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"binding.test.d.ts","sourceRoot":"","sources":["../../delta/binding.test.js"],"names":[],"mappings":"AAUO,oCAcN;AAEM,6CAcN;AAEM,mDAkCN;AAEM,sCAiBN"}
|
||||
5
yjs-poll/node_modules/lib0/dist/delta/delta-pitch.test.d.ts
generated
vendored
Normal file
5
yjs-poll/node_modules/lib0/dist/delta/delta-pitch.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export function testDeltaBasics(_tc: t.TestCase): void;
|
||||
export function testDeltaBasicSchema(_tc: t.TestCase): void;
|
||||
export function testDeltaValues(_tc: t.TestCase): void;
|
||||
import * as t from 'lib0/testing';
|
||||
//# sourceMappingURL=delta-pitch.test.d.ts.map
|
||||
1
yjs-poll/node_modules/lib0/dist/delta/delta-pitch.test.d.ts.map
generated
vendored
Normal file
1
yjs-poll/node_modules/lib0/dist/delta/delta-pitch.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"delta-pitch.test.d.ts","sourceRoot":"","sources":["../../delta/delta-pitch.test.js"],"names":[],"mappings":"AAmCO,qCAFI,CAAC,CAAC,QAAQ,QAWpB;AAmBM,0CAFI,CAAC,CAAC,QAAQ,QAWpB;AAYM,qCAFI,CAAC,CAAC,QAAQ,QAwBpB;mBAzGkB,cAAc"}
|
||||
1008
yjs-poll/node_modules/lib0/dist/delta/delta.d.ts
generated
vendored
Normal file
1008
yjs-poll/node_modules/lib0/dist/delta/delta.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
yjs-poll/node_modules/lib0/dist/delta/delta.d.ts.map
generated
vendored
Normal file
1
yjs-poll/node_modules/lib0/dist/delta/delta.d.ts.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
29
yjs-poll/node_modules/lib0/dist/delta/delta.test.d.ts
generated
vendored
Normal file
29
yjs-poll/node_modules/lib0/dist/delta/delta.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
export function testDeltaBasicApi(_tc: t.TestCase): void;
|
||||
export function testDeltaValues(_tc: t.TestCase): void;
|
||||
export function testDeltaBasicCases(): void;
|
||||
export function testDeltaArrayBasics(): void;
|
||||
export function testAssignability(): void;
|
||||
export function testText(): void;
|
||||
export function testDelta(_tc: t.TestCase): void;
|
||||
export function testDeltaMerging(_tc: t.TestCase): void;
|
||||
export function testUseAttributes(_tc: t.TestCase): void;
|
||||
export function testUseAttribution(_tc: t.TestCase): void;
|
||||
export function testMapTyping(): void;
|
||||
export function testMapDeltaBasics(_tc: t.TestCase): void;
|
||||
export function testMapDeltaModify(_tc: t.TestCase): void;
|
||||
export function testMapDelta(_tc: t.TestCase): void;
|
||||
export function testRepeatRebaseMergeDeltas(tc: t.TestCase): void;
|
||||
export function testNodeDelta(_tc: t.TestCase): void;
|
||||
export function testRecursiveNode(): void;
|
||||
export function testSimplifiedDeltaSchemaDefinition(): void;
|
||||
export function testDiffing(): void;
|
||||
export function testDiffingCommonPreSuffix(): void;
|
||||
export function testSlice(): void;
|
||||
export function testRepeatRandomListDiff(tc: t.TestCase): void;
|
||||
export function testRepeatRandomMapDiff(tc: t.TestCase): void;
|
||||
export function testDeltaAppend(_tc: t.TestCase): void;
|
||||
export function testDeltaDiffWithFormatting(): void;
|
||||
export function testDeltaDiffWithFormatting2(): void;
|
||||
export function testDeltaDiffIssue1(): void;
|
||||
import * as t from 'lib0/testing';
|
||||
//# sourceMappingURL=delta.test.d.ts.map
|
||||
1
yjs-poll/node_modules/lib0/dist/delta/delta.test.d.ts.map
generated
vendored
Normal file
1
yjs-poll/node_modules/lib0/dist/delta/delta.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"delta.test.d.ts","sourceRoot":"","sources":["../../delta/delta.test.js"],"names":[],"mappings":"AAqCO,uCAFI,CAAC,CAAC,QAAQ,QAWpB;AAYM,qCAFI,CAAC,CAAC,QAAQ,QAwBpB;AAEM,4CA2BN;AAEM,6CAMN;AAKM,0CAkJN;AAEM,iCAWN;AAKM,+BAFI,CAAC,CAAC,QAAQ,QAKpB;AAKM,sCAFI,CAAC,CAAC,QAAQ,QAYpB;AAKM,uCAFI,CAAC,CAAC,QAAQ,QAuBpB;AAKM,wCAFI,CAAC,CAAC,QAAQ,QAsBpB;AAEM,sCAaN;AAKM,wCAFI,CAAC,CAAC,QAAQ,QA4BpB;AAKM,wCAFI,CAAC,CAAC,QAAQ,QA2CpB;AAKM,kCAFI,CAAC,CAAC,QAAQ,QAqDpB;AAKM,gDAFI,CAAC,CAAC,QAAQ,QAoEpB;AAKM,mCAFI,CAAC,CAAC,QAAQ,QAiCpB;AAEM,0CAmBN;AAEM,4DAIN;AAEM,oCAMN;AAEM,mDAMN;AAEM,kCAGN;AAKM,6CAFI,CAAC,CAAC,QAAQ,QAWpB;AAKM,4CAFI,CAAC,CAAC,QAAQ,QAWpB;AAKM,qCAFI,CAAC,CAAC,QAAQ,QAQpB;AAEM,oDAKN;AAEM,qDAKN;AAEM,4CAQN;mBAjtBkB,cAAc"}
|
||||
19
yjs-poll/node_modules/lib0/dist/delta/t3.test.d.ts
generated
vendored
Normal file
19
yjs-poll/node_modules/lib0/dist/delta/t3.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
export function transformResult<DeltaA extends delta.DeltaBuilder | null, DeltaB extends delta.DeltaBuilder | null>(a: DeltaA, b: DeltaB): TransformResult<DeltaA | null, DeltaB | null>;
|
||||
export const transformResultEmpty: TransformResult<null, null>;
|
||||
export type TransformResult<DeltaA extends delta.Delta | null, DeltaB extends delta.Delta | null> = {
|
||||
a: DeltaA | null;
|
||||
b: DeltaB | null;
|
||||
};
|
||||
export type DeltaTransformer<DeltaA extends delta.DeltaAny, DeltaB extends delta.DeltaAny> = (t: {
|
||||
a: DeltaA | null;
|
||||
b: DeltaB | null;
|
||||
}) => ({
|
||||
a: DeltaA | null;
|
||||
b: DeltaB | null;
|
||||
});
|
||||
export type Transform<DeltaA extends delta.Delta, DeltaB extends delta.Delta> = {
|
||||
applyA: (da: DeltaA) => TransformResult<DeltaA, DeltaB>;
|
||||
applyB: (db: DeltaB) => TransformResult<DeltaA, DeltaB>;
|
||||
};
|
||||
import * as delta from './delta.js';
|
||||
//# sourceMappingURL=t3.test.d.ts.map
|
||||
1
yjs-poll/node_modules/lib0/dist/delta/t3.test.d.ts.map
generated
vendored
Normal file
1
yjs-poll/node_modules/lib0/dist/delta/t3.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"t3.test.d.ts","sourceRoot":"","sources":["../../delta/t3.test.js"],"names":[],"mappings":"AAoBO,gCAN4B,MAAM,SAA3B,KAAK,CAAC,YAAY,OAAE,EACC,MAAM,SAA3B,KAAK,CAAC,YAAY,OAAE,KACvB,MAAM,KACN,MAAM,GACL,eAAe,CAAC,MAAM,OAAC,EAAC,MAAM,OAAC,CAAC,CAEO;AACnD,+DAA+D;4BAbnC,MAAM,SAApB,KAAK,CAAC,KAAK,OAAE,EACC,MAAM,SAApB,KAAK,CAAC,KAAK,OAAE,IACd;IAAE,CAAC,EAAE,MAAM,OAAC,CAAC;IAAC,CAAC,EAAE,MAAM,OAAC,CAAA;CAAE;6BAiBT,MAAM,SAAtB,KAAK,CAAC,QAAS,EACC,MAAM,SAAtB,KAAK,CAAC,QAAS,IAChB,CAAC,CAAC,EAAC;IAAC,CAAC,EAAC,MAAM,OAAC,CAAC;IAAA,CAAC,EAAC,MAAM,OAAC,CAAA;CAAC,KAAG,CAAC;IAAC,CAAC,EAAC,MAAM,OAAC,CAAC;IAAA,CAAC,EAAC,MAAM,OAAC,CAAA;CAAC,CAAC;sBA2GpC,MAAM,SAAnB,KAAK,CAAC,KAAM,EACC,MAAM,SAAnB,KAAK,CAAC,KAAM,IACb;IAAE,MAAM,EAAE,CAAC,EAAE,EAAC,MAAM,KAAG,eAAe,CAAC,MAAM,EAAC,MAAM,CAAC,CAAC;IAAC,MAAM,EAAE,CAAC,EAAE,EAAC,MAAM,KAAG,eAAe,CAAC,MAAM,EAAC,MAAM,CAAC,CAAA;CAAE;uBAvIlG,YAAY"}
|
||||
Reference in New Issue
Block a user