document-model 1.0.39 → 1.0.41
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/browser/document-model.cjs +1 -1
- package/dist/browser/document-model.js +2 -2
- package/dist/browser/document.cjs +1 -1
- package/dist/browser/document.js +2 -2
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +3 -3
- package/dist/{node/internal/index-DyCS1h0M.js → browser/internal/index-BD_7XeO5.js} +1 -1
- package/dist/{node/internal/index-Dl5T5qdc.js → browser/internal/index-BNBYVtaF.js} +1 -1
- package/dist/browser/internal/{index-4Z_H8F_J.js → index-BWV1Osza.js} +1 -1
- package/dist/browser/internal/{index-6u2yDIEF.js → index-BxGRRPwY.js} +1 -1
- package/dist/browser/internal/{object-EriwiDIs.js → object-DHqlosWD.js} +3 -3
- package/dist/browser/internal/{object-Fq6PThAX.js → object-StihF423.js} +413 -413
- package/dist/browser/src/document/object.d.ts +30 -0
- package/dist/browser/src/document/types.d.ts +2 -0
- package/dist/node/document-model.cjs +1 -1
- package/dist/node/document-model.js +2 -2
- package/dist/node/document.cjs +1 -1
- package/dist/node/document.js +2 -2
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.js +3 -3
- package/dist/node/internal/{index-A6Rqm2SZ.js → index-DeKx7EaE.js} +1 -1
- package/dist/node/internal/{index-BpBnSlTZ.js → index-Dh0vfIdX.js} +1 -1
- package/dist/{browser/internal/index-QJX_Fa1V.js → node/internal/index-LD_vrQff.js} +1 -1
- package/dist/{browser/internal/index-DQeD1Q-a.js → node/internal/index-LEexvgqj.js} +1 -1
- package/dist/node/internal/object-CKxJA706.js +2 -0
- package/dist/node/internal/{object-S6TngMa9.js → object-CudRLU4J.js} +62 -62
- package/dist/node/src/document/object.d.ts +30 -0
- package/dist/node/src/document/types.d.ts +2 -0
- package/package.json +1 -1
- package/dist/node/internal/object-ifvac9k2.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var vt = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { produce as
|
|
2
|
+
var jt = (e, t, i) => t in e ? vt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
|
+
var E = (e, t, i) => (jt(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
|
+
import { produce as y, castDraft as A, castImmutable as yt, freeze as Ot } from "immer";
|
|
5
5
|
import z from "json-stringify-deterministic";
|
|
6
6
|
import { z as c } from "zod";
|
|
7
7
|
import kt from "crypto";
|
|
@@ -16,7 +16,7 @@ function Dt() {
|
|
|
16
16
|
type: c.string()
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function O() {
|
|
20
20
|
return c.literal("global").or(c.literal("local"));
|
|
21
21
|
}
|
|
22
22
|
function Y() {
|
|
@@ -41,7 +41,7 @@ function tt() {
|
|
|
41
41
|
return c.object({
|
|
42
42
|
input: c.lazy(() => P()),
|
|
43
43
|
type: K,
|
|
44
|
-
scope:
|
|
44
|
+
scope: O()
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
function P() {
|
|
@@ -69,7 +69,7 @@ function it() {
|
|
|
69
69
|
return c.object({
|
|
70
70
|
input: c.lazy(() => F()),
|
|
71
71
|
type: V,
|
|
72
|
-
scope:
|
|
72
|
+
scope: O()
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
function F() {
|
|
@@ -83,7 +83,7 @@ function nt() {
|
|
|
83
83
|
return c.object({
|
|
84
84
|
input: R(),
|
|
85
85
|
type: G,
|
|
86
|
-
scope:
|
|
86
|
+
scope: O()
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
const L = c.string;
|
|
@@ -109,7 +109,7 @@ function ot() {
|
|
|
109
109
|
return c.object({
|
|
110
110
|
input: q(),
|
|
111
111
|
type: X,
|
|
112
|
-
scope:
|
|
112
|
+
scope: O()
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
const ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -122,7 +122,7 @@ const ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
122
122
|
LoadStateActionStateInputSchema: et,
|
|
123
123
|
Load_StateSchema: K,
|
|
124
124
|
OperationSchema: Tt,
|
|
125
|
-
OperationScopeSchema:
|
|
125
|
+
OperationScopeSchema: O,
|
|
126
126
|
PruneActionInputSchema: F,
|
|
127
127
|
PruneActionSchema: it,
|
|
128
128
|
PruneSchema: V,
|
|
@@ -147,14 +147,14 @@ function Mt(e, t, i) {
|
|
|
147
147
|
skip: i,
|
|
148
148
|
document: e
|
|
149
149
|
}, { scope: o } = t;
|
|
150
|
-
return !o || t.skip === void 0 ? n :
|
|
150
|
+
return !o || t.skip === void 0 ? n : y(n, (p) => {
|
|
151
151
|
const [a] = p.document.operations[o].slice(-1);
|
|
152
152
|
t.skip && t.skip > 0 && (p.skip = t.skip), a.type === "NOOP" && t.index === a.index && p.skip > a.skip && p.document.operations[o].pop();
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
function It(e, t, i) {
|
|
156
156
|
const { scope: n, input: o } = t;
|
|
157
|
-
return
|
|
157
|
+
return y({
|
|
158
158
|
document: e,
|
|
159
159
|
action: t,
|
|
160
160
|
skip: i
|
|
@@ -196,7 +196,7 @@ function It(e, t, i) {
|
|
|
196
196
|
}
|
|
197
197
|
function Pt(e, t, i) {
|
|
198
198
|
const { scope: n, input: o } = t;
|
|
199
|
-
return
|
|
199
|
+
return y({
|
|
200
200
|
document: e,
|
|
201
201
|
action: t,
|
|
202
202
|
skip: i
|
|
@@ -257,9 +257,9 @@ function Ft(e, t, i) {
|
|
|
257
257
|
index: f,
|
|
258
258
|
hash: lt({ state: m }, "global")
|
|
259
259
|
},
|
|
260
|
-
...r.map((
|
|
261
|
-
...
|
|
262
|
-
index: f +
|
|
260
|
+
...r.map((v, _) => ({
|
|
261
|
+
...v,
|
|
262
|
+
index: f + _ + 1
|
|
263
263
|
}))
|
|
264
264
|
]
|
|
265
265
|
},
|
|
@@ -273,10 +273,10 @@ function Rt(e, t) {
|
|
|
273
273
|
state: t.state ?? { global: {}, local: {} }
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
const st = "SET_NAME",
|
|
276
|
+
const st = "SET_NAME", k = "UNDO", S = "REDO", N = "PRUNE", pt = "LOAD_STATE", Lt = "NOOP";
|
|
277
277
|
function qt(e, t) {
|
|
278
|
-
|
|
279
|
-
return
|
|
278
|
+
let i;
|
|
279
|
+
return "index" in t ? i = { ...t } : i = e.operations[t.scope].slice(-1)[0], ((i == null ? void 0 : i.index) ?? -1) + 1;
|
|
280
280
|
}
|
|
281
281
|
function $t(e, t) {
|
|
282
282
|
return {
|
|
@@ -289,7 +289,7 @@ function $t(e, t) {
|
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
function Ut(e, t, i = 0) {
|
|
292
|
-
if ([
|
|
292
|
+
if ([k, S, N].includes(t.type))
|
|
293
293
|
return e;
|
|
294
294
|
const { scope: n } = t, o = e.operations[n].slice(
|
|
295
295
|
0,
|
|
@@ -323,7 +323,7 @@ function Jt(e, t, i) {
|
|
|
323
323
|
switch (Y().parse(t), t.type) {
|
|
324
324
|
case st:
|
|
325
325
|
return zt(e, t.input);
|
|
326
|
-
case
|
|
326
|
+
case N:
|
|
327
327
|
return Ft(e, t, i);
|
|
328
328
|
case pt:
|
|
329
329
|
return Rt(e, t.input.state);
|
|
@@ -333,9 +333,9 @@ function Jt(e, t, i) {
|
|
|
333
333
|
}
|
|
334
334
|
function Wt(e, t, i) {
|
|
335
335
|
switch (t.type) {
|
|
336
|
-
case
|
|
336
|
+
case k:
|
|
337
337
|
return It(e, t, i);
|
|
338
|
-
case
|
|
338
|
+
case S:
|
|
339
339
|
return Pt(e, t, i);
|
|
340
340
|
default:
|
|
341
341
|
return { document: e, action: t, skip: i };
|
|
@@ -372,7 +372,7 @@ function ct(e, t, i, n, o = {}) {
|
|
|
372
372
|
{ [s.scope]: d }
|
|
373
373
|
);
|
|
374
374
|
}
|
|
375
|
-
return r = Ct(r, s, l), r =
|
|
375
|
+
return r = Ct(r, s, l), r = y(r, (d) => {
|
|
376
376
|
const m = i(
|
|
377
377
|
d.state,
|
|
378
378
|
s,
|
|
@@ -385,14 +385,14 @@ function ct(e, t, i, n, o = {}) {
|
|
|
385
385
|
state: m
|
|
386
386
|
});
|
|
387
387
|
d.clipboard = A([...f]);
|
|
388
|
-
}),
|
|
389
|
-
if ([
|
|
388
|
+
}), y(r, (d) => {
|
|
389
|
+
if ([k, S, N].includes(s.type))
|
|
390
390
|
return d;
|
|
391
391
|
const m = s.scope || "global";
|
|
392
392
|
d.operations[m][d.operations[m].length - 1].hash = lt(d, m), !W(s) && s.attachments && s.attachments.forEach((f) => {
|
|
393
|
-
const { hash: u, ...
|
|
393
|
+
const { hash: u, ...v } = f;
|
|
394
394
|
d.attachments[u] = {
|
|
395
|
-
...
|
|
395
|
+
...v
|
|
396
396
|
};
|
|
397
397
|
});
|
|
398
398
|
});
|
|
@@ -431,12 +431,12 @@ function Kt(e) {
|
|
|
431
431
|
return e.type === Lt && e.skip !== void 0 && e.skip > 0 && e.hash !== void 0;
|
|
432
432
|
}
|
|
433
433
|
function J(e) {
|
|
434
|
-
return [
|
|
434
|
+
return [k, S].includes(e.type);
|
|
435
435
|
}
|
|
436
436
|
function W(e) {
|
|
437
|
-
return [st,
|
|
437
|
+
return [st, k, S, N, pt].includes(e.type);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function w(e, t, i, n, o = "global") {
|
|
440
440
|
if (!e)
|
|
441
441
|
throw new Error("Empty action type");
|
|
442
442
|
if (typeof e != "string")
|
|
@@ -480,8 +480,8 @@ const Gt = (e, t) => ({
|
|
|
480
480
|
const i = Math.random() * t;
|
|
481
481
|
return T(`${(e ?? /* @__PURE__ */ new Date()).toISOString()}${i}`);
|
|
482
482
|
};
|
|
483
|
-
function
|
|
484
|
-
return
|
|
483
|
+
function D(e) {
|
|
484
|
+
return yt(Ot(e, !0));
|
|
485
485
|
}
|
|
486
486
|
function Xt(e, t) {
|
|
487
487
|
const i = [...e];
|
|
@@ -571,18 +571,18 @@ function mt(e, t, i, n, o, p = {}) {
|
|
|
571
571
|
r.operations
|
|
572
572
|
).reduce(
|
|
573
573
|
(m, f) => {
|
|
574
|
-
const u = f,
|
|
574
|
+
const u = f, v = o && o.revision[u] < t[u].length ? t[u].slice(o.revision[u]) : [];
|
|
575
575
|
return {
|
|
576
576
|
...m,
|
|
577
577
|
[u]: [
|
|
578
|
-
...r.operations[u].map((
|
|
578
|
+
...r.operations[u].map((_, wt) => {
|
|
579
579
|
var C;
|
|
580
580
|
return {
|
|
581
|
-
...
|
|
582
|
-
timestamp: ((C = t[u][wt]) == null ? void 0 : C.timestamp) ??
|
|
581
|
+
..._,
|
|
582
|
+
timestamp: ((C = t[u][wt]) == null ? void 0 : C.timestamp) ?? _.timestamp
|
|
583
583
|
};
|
|
584
584
|
}),
|
|
585
|
-
...
|
|
585
|
+
...v
|
|
586
586
|
]
|
|
587
587
|
};
|
|
588
588
|
},
|
|
@@ -597,36 +597,36 @@ function mt(e, t, i, n, o, p = {}) {
|
|
|
597
597
|
function we(e, t) {
|
|
598
598
|
return z(e) === z(t);
|
|
599
599
|
}
|
|
600
|
-
const dt = (e) =>
|
|
600
|
+
const dt = (e) => w(
|
|
601
601
|
"SET_NAME",
|
|
602
602
|
e,
|
|
603
603
|
void 0,
|
|
604
604
|
L,
|
|
605
605
|
void 0
|
|
606
|
-
), ut = (e = 1, t = "global") =>
|
|
606
|
+
), ut = (e = 1, t = "global") => w(
|
|
607
607
|
"UNDO",
|
|
608
608
|
e,
|
|
609
609
|
void 0,
|
|
610
610
|
q,
|
|
611
611
|
t
|
|
612
|
-
), ft = (e = 1, t = "global") =>
|
|
612
|
+
), ft = (e = 1, t = "global") => w(
|
|
613
613
|
"REDO",
|
|
614
614
|
e,
|
|
615
615
|
void 0,
|
|
616
616
|
R,
|
|
617
617
|
t
|
|
618
|
-
), xt = (e, t, i = "global") =>
|
|
618
|
+
), xt = (e, t, i = "global") => w(
|
|
619
619
|
"PRUNE",
|
|
620
620
|
{ start: e, end: t },
|
|
621
621
|
void 0,
|
|
622
622
|
F,
|
|
623
623
|
i
|
|
624
|
-
), $ = (e, t) =>
|
|
624
|
+
), $ = (e, t) => w(
|
|
625
625
|
"LOAD_STATE",
|
|
626
626
|
{ state: e, operations: t },
|
|
627
627
|
void 0,
|
|
628
628
|
P
|
|
629
|
-
), U = (e = "global") =>
|
|
629
|
+
), U = (e = "global") => w("NOOP", {}, void 0, void 0, e), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
630
630
|
__proto__: null,
|
|
631
631
|
loadState: $,
|
|
632
632
|
noop: U,
|
|
@@ -642,10 +642,10 @@ var g = function(e, t, i, n) {
|
|
|
642
642
|
if (typeof t == "function" ? e !== t || !n : !t.has(e))
|
|
643
643
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
644
644
|
return i === "m" ? n : i === "a" ? n.call(e) : n ? n.value : t.get(e);
|
|
645
|
-
}, b,
|
|
645
|
+
}, b, j, h;
|
|
646
646
|
class ee {
|
|
647
647
|
constructor(...t) {
|
|
648
|
-
b.set(this, /* @__PURE__ */ new Map()),
|
|
648
|
+
b.set(this, /* @__PURE__ */ new Map()), j.set(this, /* @__PURE__ */ new Map()), h.set(this, /* @__PURE__ */ new Map());
|
|
649
649
|
for (const i of t)
|
|
650
650
|
this.define(i);
|
|
651
651
|
}
|
|
@@ -656,7 +656,7 @@ class ee {
|
|
|
656
656
|
let a = !0;
|
|
657
657
|
for (let s of o) {
|
|
658
658
|
const l = s.startsWith("*");
|
|
659
|
-
if (s = l ? s.slice(1) : s, p == null || p.add(s), a && g(this,
|
|
659
|
+
if (s = l ? s.slice(1) : s, p == null || p.add(s), a && g(this, j, "f").set(n, s), a = !1, l)
|
|
660
660
|
continue;
|
|
661
661
|
const r = g(this, b, "f").get(s);
|
|
662
662
|
if (r && r != n && !i)
|
|
@@ -674,7 +674,7 @@ class ee {
|
|
|
674
674
|
}
|
|
675
675
|
getExtension(t) {
|
|
676
676
|
var i;
|
|
677
|
-
return typeof t != "string" ? null : (t = (i = t == null ? void 0 : t.split) == null ? void 0 : i.call(t, ";")[0], (t && g(this,
|
|
677
|
+
return typeof t != "string" ? null : (t = (i = t == null ? void 0 : t.split) == null ? void 0 : i.call(t, ";")[0], (t && g(this, j, "f").get(t.trim().toLowerCase())) ?? null);
|
|
678
678
|
}
|
|
679
679
|
getAllExtensions(t) {
|
|
680
680
|
return typeof t != "string" ? null : g(this, h, "f").get(t.toLowerCase()) ?? null;
|
|
@@ -690,11 +690,11 @@ class ee {
|
|
|
690
690
|
_getTestState() {
|
|
691
691
|
return {
|
|
692
692
|
types: g(this, b, "f"),
|
|
693
|
-
extensions: g(this,
|
|
693
|
+
extensions: g(this, j, "f")
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
-
b = /* @__PURE__ */ new WeakMap(),
|
|
697
|
+
b = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap();
|
|
698
698
|
const ie = new ee(gt)._freeze();
|
|
699
699
|
function ne(e) {
|
|
700
700
|
const t = [], i = Object.keys(e);
|
|
@@ -741,7 +741,7 @@ const ht = async (e) => {
|
|
|
741
741
|
a.endsWith(s) ? a : `${a}${s}`,
|
|
742
742
|
p
|
|
743
743
|
);
|
|
744
|
-
},
|
|
744
|
+
}, je = async (e, t) => {
|
|
745
745
|
const n = await (await ht(e)).generateAsync({ type: "blob" }), o = await t.createWritable();
|
|
746
746
|
await o.write(n), await o.close();
|
|
747
747
|
}, B = async (e, t) => {
|
|
@@ -785,7 +785,7 @@ function bt(e) {
|
|
|
785
785
|
const t = e.replace(/^.*\./, "") || void 0, i = e.replace(/^.*[/\\]/, "") || void 0;
|
|
786
786
|
return { extension: t, fileName: i };
|
|
787
787
|
}
|
|
788
|
-
async function
|
|
788
|
+
async function ye(e) {
|
|
789
789
|
const { buffer: t, mimeType: i = "application/octet-stream" } = await Zt(e), n = bt(e), o = t.toString("base64");
|
|
790
790
|
return {
|
|
791
791
|
data: o,
|
|
@@ -805,9 +805,9 @@ class ke {
|
|
|
805
805
|
* @param document - The initial state of the document.
|
|
806
806
|
*/
|
|
807
807
|
constructor(t, i, n) {
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
808
|
+
E(this, "_document");
|
|
809
|
+
E(this, "_reducer");
|
|
810
|
+
E(this, "_signalDispatch");
|
|
811
811
|
this._reducer = t, this._document = i, this._signalDispatch = n;
|
|
812
812
|
}
|
|
813
813
|
/**
|
|
@@ -852,13 +852,13 @@ class ke {
|
|
|
852
852
|
* Gets the current state of the document.
|
|
853
853
|
*/
|
|
854
854
|
get state() {
|
|
855
|
-
return
|
|
855
|
+
return D(this._document.state);
|
|
856
856
|
}
|
|
857
857
|
/**
|
|
858
858
|
* Gets the list of operations performed on the document.
|
|
859
859
|
*/
|
|
860
860
|
get operations() {
|
|
861
|
-
return
|
|
861
|
+
return D(this._document.operations);
|
|
862
862
|
}
|
|
863
863
|
/**
|
|
864
864
|
* Gets the name of the document.
|
|
@@ -897,13 +897,13 @@ class ke {
|
|
|
897
897
|
* Gets the initial state of the document.
|
|
898
898
|
*/
|
|
899
899
|
get initialState() {
|
|
900
|
-
return
|
|
900
|
+
return D(this._document.initialState);
|
|
901
901
|
}
|
|
902
902
|
/**
|
|
903
903
|
* Returns the current document as an object
|
|
904
904
|
*/
|
|
905
905
|
toDocument() {
|
|
906
|
-
return
|
|
906
|
+
return D(this._document);
|
|
907
907
|
}
|
|
908
908
|
/**
|
|
909
909
|
* Gets the attachment associated with the given key.
|
|
@@ -972,9 +972,9 @@ export {
|
|
|
972
972
|
Gt as a,
|
|
973
973
|
Qt as b,
|
|
974
974
|
Vt as c,
|
|
975
|
-
|
|
975
|
+
je as d,
|
|
976
976
|
oe as e,
|
|
977
|
-
|
|
977
|
+
w as f,
|
|
978
978
|
Se as g,
|
|
979
979
|
ve as h,
|
|
980
980
|
W as i,
|
|
@@ -982,7 +982,7 @@ export {
|
|
|
982
982
|
ht as k,
|
|
983
983
|
B as l,
|
|
984
984
|
Oe as m,
|
|
985
|
-
|
|
985
|
+
ye as n,
|
|
986
986
|
lt as o,
|
|
987
987
|
he as p,
|
|
988
988
|
Kt as q,
|
|
@@ -990,7 +990,7 @@ export {
|
|
|
990
990
|
ae as s,
|
|
991
991
|
J as t,
|
|
992
992
|
Xt as u,
|
|
993
|
-
|
|
993
|
+
D as v,
|
|
994
994
|
mt as w,
|
|
995
995
|
I as x,
|
|
996
996
|
te as y,
|
|
@@ -74,6 +74,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
74
74
|
readonly signer?: {
|
|
75
75
|
readonly user: {
|
|
76
76
|
readonly address: string;
|
|
77
|
+
readonly networkId: string;
|
|
77
78
|
readonly chainId: number;
|
|
78
79
|
};
|
|
79
80
|
readonly app: {
|
|
@@ -105,6 +106,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
105
106
|
readonly signer?: {
|
|
106
107
|
readonly user: {
|
|
107
108
|
readonly address: string;
|
|
109
|
+
readonly networkId: string;
|
|
108
110
|
readonly chainId: number;
|
|
109
111
|
};
|
|
110
112
|
readonly app: {
|
|
@@ -133,6 +135,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
133
135
|
readonly signer?: {
|
|
134
136
|
readonly user: {
|
|
135
137
|
readonly address: string;
|
|
138
|
+
readonly networkId: string;
|
|
136
139
|
readonly chainId: number;
|
|
137
140
|
};
|
|
138
141
|
readonly app: {
|
|
@@ -161,6 +164,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
161
164
|
readonly signer?: {
|
|
162
165
|
readonly user: {
|
|
163
166
|
readonly address: string;
|
|
167
|
+
readonly networkId: string;
|
|
164
168
|
readonly chainId: number;
|
|
165
169
|
};
|
|
166
170
|
readonly app: {
|
|
@@ -189,6 +193,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
189
193
|
readonly signer?: {
|
|
190
194
|
readonly user: {
|
|
191
195
|
readonly address: string;
|
|
196
|
+
readonly networkId: string;
|
|
192
197
|
readonly chainId: number;
|
|
193
198
|
};
|
|
194
199
|
readonly app: {
|
|
@@ -217,6 +222,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
217
222
|
readonly signer?: {
|
|
218
223
|
readonly user: {
|
|
219
224
|
readonly address: string;
|
|
225
|
+
readonly networkId: string;
|
|
220
226
|
readonly chainId: number;
|
|
221
227
|
};
|
|
222
228
|
readonly app: {
|
|
@@ -257,6 +263,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
257
263
|
readonly signer?: {
|
|
258
264
|
readonly user: {
|
|
259
265
|
readonly address: string;
|
|
266
|
+
readonly networkId: string;
|
|
260
267
|
readonly chainId: number;
|
|
261
268
|
};
|
|
262
269
|
readonly app: {
|
|
@@ -288,6 +295,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
288
295
|
readonly signer?: {
|
|
289
296
|
readonly user: {
|
|
290
297
|
readonly address: string;
|
|
298
|
+
readonly networkId: string;
|
|
291
299
|
readonly chainId: number;
|
|
292
300
|
};
|
|
293
301
|
readonly app: {
|
|
@@ -316,6 +324,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
316
324
|
readonly signer?: {
|
|
317
325
|
readonly user: {
|
|
318
326
|
readonly address: string;
|
|
327
|
+
readonly networkId: string;
|
|
319
328
|
readonly chainId: number;
|
|
320
329
|
};
|
|
321
330
|
readonly app: {
|
|
@@ -344,6 +353,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
344
353
|
readonly signer?: {
|
|
345
354
|
readonly user: {
|
|
346
355
|
readonly address: string;
|
|
356
|
+
readonly networkId: string;
|
|
347
357
|
readonly chainId: number;
|
|
348
358
|
};
|
|
349
359
|
readonly app: {
|
|
@@ -372,6 +382,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
372
382
|
readonly signer?: {
|
|
373
383
|
readonly user: {
|
|
374
384
|
readonly address: string;
|
|
385
|
+
readonly networkId: string;
|
|
375
386
|
readonly chainId: number;
|
|
376
387
|
};
|
|
377
388
|
readonly app: {
|
|
@@ -400,6 +411,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
400
411
|
readonly signer?: {
|
|
401
412
|
readonly user: {
|
|
402
413
|
readonly address: string;
|
|
414
|
+
readonly networkId: string;
|
|
403
415
|
readonly chainId: number;
|
|
404
416
|
};
|
|
405
417
|
readonly app: {
|
|
@@ -512,6 +524,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
512
524
|
readonly signer?: {
|
|
513
525
|
readonly user: {
|
|
514
526
|
readonly address: string;
|
|
527
|
+
readonly networkId: string;
|
|
515
528
|
readonly chainId: number;
|
|
516
529
|
};
|
|
517
530
|
readonly app: {
|
|
@@ -543,6 +556,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
543
556
|
readonly signer?: {
|
|
544
557
|
readonly user: {
|
|
545
558
|
readonly address: string;
|
|
559
|
+
readonly networkId: string;
|
|
546
560
|
readonly chainId: number;
|
|
547
561
|
};
|
|
548
562
|
readonly app: {
|
|
@@ -571,6 +585,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
571
585
|
readonly signer?: {
|
|
572
586
|
readonly user: {
|
|
573
587
|
readonly address: string;
|
|
588
|
+
readonly networkId: string;
|
|
574
589
|
readonly chainId: number;
|
|
575
590
|
};
|
|
576
591
|
readonly app: {
|
|
@@ -599,6 +614,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
599
614
|
readonly signer?: {
|
|
600
615
|
readonly user: {
|
|
601
616
|
readonly address: string;
|
|
617
|
+
readonly networkId: string;
|
|
602
618
|
readonly chainId: number;
|
|
603
619
|
};
|
|
604
620
|
readonly app: {
|
|
@@ -627,6 +643,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
627
643
|
readonly signer?: {
|
|
628
644
|
readonly user: {
|
|
629
645
|
readonly address: string;
|
|
646
|
+
readonly networkId: string;
|
|
630
647
|
readonly chainId: number;
|
|
631
648
|
};
|
|
632
649
|
readonly app: {
|
|
@@ -655,6 +672,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
655
672
|
readonly signer?: {
|
|
656
673
|
readonly user: {
|
|
657
674
|
readonly address: string;
|
|
675
|
+
readonly networkId: string;
|
|
658
676
|
readonly chainId: number;
|
|
659
677
|
};
|
|
660
678
|
readonly app: {
|
|
@@ -695,6 +713,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
695
713
|
readonly signer?: {
|
|
696
714
|
readonly user: {
|
|
697
715
|
readonly address: string;
|
|
716
|
+
readonly networkId: string;
|
|
698
717
|
readonly chainId: number;
|
|
699
718
|
};
|
|
700
719
|
readonly app: {
|
|
@@ -726,6 +745,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
726
745
|
readonly signer?: {
|
|
727
746
|
readonly user: {
|
|
728
747
|
readonly address: string;
|
|
748
|
+
readonly networkId: string;
|
|
729
749
|
readonly chainId: number;
|
|
730
750
|
};
|
|
731
751
|
readonly app: {
|
|
@@ -754,6 +774,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
754
774
|
readonly signer?: {
|
|
755
775
|
readonly user: {
|
|
756
776
|
readonly address: string;
|
|
777
|
+
readonly networkId: string;
|
|
757
778
|
readonly chainId: number;
|
|
758
779
|
};
|
|
759
780
|
readonly app: {
|
|
@@ -782,6 +803,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
782
803
|
readonly signer?: {
|
|
783
804
|
readonly user: {
|
|
784
805
|
readonly address: string;
|
|
806
|
+
readonly networkId: string;
|
|
785
807
|
readonly chainId: number;
|
|
786
808
|
};
|
|
787
809
|
readonly app: {
|
|
@@ -810,6 +832,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
810
832
|
readonly signer?: {
|
|
811
833
|
readonly user: {
|
|
812
834
|
readonly address: string;
|
|
835
|
+
readonly networkId: string;
|
|
813
836
|
readonly chainId: number;
|
|
814
837
|
};
|
|
815
838
|
readonly app: {
|
|
@@ -838,6 +861,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
838
861
|
readonly signer?: {
|
|
839
862
|
readonly user: {
|
|
840
863
|
readonly address: string;
|
|
864
|
+
readonly networkId: string;
|
|
841
865
|
readonly chainId: number;
|
|
842
866
|
};
|
|
843
867
|
readonly app: {
|
|
@@ -901,6 +925,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
901
925
|
readonly signer?: {
|
|
902
926
|
readonly user: {
|
|
903
927
|
readonly address: string;
|
|
928
|
+
readonly networkId: string;
|
|
904
929
|
readonly chainId: number;
|
|
905
930
|
};
|
|
906
931
|
readonly app: {
|
|
@@ -932,6 +957,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
932
957
|
readonly signer?: {
|
|
933
958
|
readonly user: {
|
|
934
959
|
readonly address: string;
|
|
960
|
+
readonly networkId: string;
|
|
935
961
|
readonly chainId: number;
|
|
936
962
|
};
|
|
937
963
|
readonly app: {
|
|
@@ -960,6 +986,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
960
986
|
readonly signer?: {
|
|
961
987
|
readonly user: {
|
|
962
988
|
readonly address: string;
|
|
989
|
+
readonly networkId: string;
|
|
963
990
|
readonly chainId: number;
|
|
964
991
|
};
|
|
965
992
|
readonly app: {
|
|
@@ -988,6 +1015,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
988
1015
|
readonly signer?: {
|
|
989
1016
|
readonly user: {
|
|
990
1017
|
readonly address: string;
|
|
1018
|
+
readonly networkId: string;
|
|
991
1019
|
readonly chainId: number;
|
|
992
1020
|
};
|
|
993
1021
|
readonly app: {
|
|
@@ -1016,6 +1044,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
1016
1044
|
readonly signer?: {
|
|
1017
1045
|
readonly user: {
|
|
1018
1046
|
readonly address: string;
|
|
1047
|
+
readonly networkId: string;
|
|
1019
1048
|
readonly chainId: number;
|
|
1020
1049
|
};
|
|
1021
1050
|
readonly app: {
|
|
@@ -1044,6 +1073,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
|
|
|
1044
1073
|
readonly signer?: {
|
|
1045
1074
|
readonly user: {
|
|
1046
1075
|
readonly address: string;
|
|
1076
|
+
readonly networkId: string;
|
|
1047
1077
|
readonly chainId: number;
|
|
1048
1078
|
};
|
|
1049
1079
|
readonly app: {
|
|
@@ -13,6 +13,7 @@ export type { BaseAction } from './actions/types';
|
|
|
13
13
|
export type ActionSigner = {
|
|
14
14
|
user: {
|
|
15
15
|
address: string;
|
|
16
|
+
networkId: string;
|
|
16
17
|
chainId: number;
|
|
17
18
|
};
|
|
18
19
|
app: {
|
|
@@ -209,6 +210,7 @@ export type ENSInfo = {
|
|
|
209
210
|
};
|
|
210
211
|
export type User = {
|
|
211
212
|
address: `0x${string}`;
|
|
213
|
+
networkId: string;
|
|
212
214
|
chainId: number;
|
|
213
215
|
ens?: ENSInfo;
|
|
214
216
|
};
|