@arbidocs/react 0.5.155 → 0.5.156
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/artifacts/index.cjs +2 -2
- package/dist/calls/livekit/index.cjs +41 -41
- package/dist/{chunk-FQ2PSM75.cjs → chunk-2MGJXBBJ.cjs} +20 -3
- package/dist/chunk-2MGJXBBJ.cjs.map +1 -0
- package/dist/{chunk-PI3PEXQW.cjs → chunk-QWKTQYGM.cjs} +5 -5
- package/dist/{chunk-PI3PEXQW.cjs.map → chunk-QWKTQYGM.cjs.map} +1 -1
- package/dist/index.cjs +571 -571
- package/dist/session/drafts.js +18 -1
- package/dist/session/drafts.js.map +2 -2
- package/package.json +3 -3
- package/dist/chunk-FQ2PSM75.cjs.map +0 -1
package/dist/session/drafts.js
CHANGED
|
@@ -23,6 +23,7 @@ function createSealedDraftStorage({
|
|
|
23
23
|
let timer;
|
|
24
24
|
let generation = 0;
|
|
25
25
|
const listeners = /* @__PURE__ */ new Set();
|
|
26
|
+
let pending;
|
|
26
27
|
const remove = () => {
|
|
27
28
|
try {
|
|
28
29
|
storage?.removeItem(key);
|
|
@@ -79,11 +80,17 @@ function createSealedDraftStorage({
|
|
|
79
80
|
save: (drafts) => {
|
|
80
81
|
clearTimeout(timer);
|
|
81
82
|
const written = generation;
|
|
82
|
-
|
|
83
|
+
pending = () => void write(drafts, written);
|
|
84
|
+
timer = setTimeout(() => {
|
|
85
|
+
pending = void 0;
|
|
86
|
+
timer = void 0;
|
|
87
|
+
void write(drafts, written);
|
|
88
|
+
}, SAVE_DELAY_MS);
|
|
83
89
|
},
|
|
84
90
|
clear: () => {
|
|
85
91
|
clearTimeout(timer);
|
|
86
92
|
timer = void 0;
|
|
93
|
+
pending = void 0;
|
|
87
94
|
generation++;
|
|
88
95
|
remove();
|
|
89
96
|
for (const listener of [...listeners]) listener();
|
|
@@ -93,6 +100,16 @@ function createSealedDraftStorage({
|
|
|
93
100
|
return () => listeners.delete(listener);
|
|
94
101
|
}
|
|
95
102
|
};
|
|
103
|
+
if (typeof window !== "undefined") {
|
|
104
|
+
window.addEventListener("pagehide", () => {
|
|
105
|
+
if (!pending) return;
|
|
106
|
+
clearTimeout(timer);
|
|
107
|
+
timer = void 0;
|
|
108
|
+
const run = pending;
|
|
109
|
+
pending = void 0;
|
|
110
|
+
run();
|
|
111
|
+
});
|
|
112
|
+
}
|
|
96
113
|
storages.add(draftStorage);
|
|
97
114
|
return draftStorage;
|
|
98
115
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/session/drafts.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * The composers' drafts kept across reloads: stored locally and encrypted, sealed to the signed-in\n * person's own key like the other data kept on the device, so nothing typed is readable at rest.\n *\n * Bound to the person: a record is kept under the user it belongs to and opened only while that\n * user is signed in (`owner`), never by whoever's key happens to be on the device, so a signed-out\n * page, a demo session or another account never sees it. Like the offline mail, the drafts never\n * outlive the session: a sign-out clears them (`clearSealedDrafts`).\n */\n\nimport { getUserEncryptionKeypair, sealedBoxDecrypt, sealedBoxEncrypt } from '@arbidocs/client'\n\n/** Where a session store keeps its drafts (see `createArbiSessionStore`). */\nexport interface ArbiDraftStorage {\n /** The saved drafts, or null while they cannot be opened yet (no one is signed in). */\n load(): Promise<Record<string, string> | null>\n /** Save the drafts (all of them: the record replaces what was saved). */\n save(drafts: Readonly<Record<string, string>>): void\n /** Who the drafts belong to now: the signed-in user, `null` signed out. */\n owner(): string | null\n /** Forget the saved drafts and any write still pending (the session ended). */\n clear(): void\n /** Be told when the drafts were cleared (the session store drops its copy). */\n onClear(listener: () => void): () => void\n}\n\n/** A key-value store the drafts are written to (`localStorage` by default). */\nexport interface DraftKeyValueStore {\n getItem(key: string): string | null\n setItem(key: string, value: string): void\n removeItem(key: string): void\n}\n\n/** How long typing settles before the drafts are written. */\nconst SAVE_DELAY_MS = 500\n\nconst encoder = new TextEncoder()\nconst decoder = new TextDecoder()\n\n/** What is stored: the drafts sealed to the owner's key, and who the owner is. */\ninterface StoredDrafts {\n owner: string\n sealed: string\n}\n\nfunction parseStored(raw: string | null): StoredDrafts | null {\n if (!raw) return null\n try {\n const parsed = JSON.parse(raw) as Partial<StoredDrafts> | null\n return parsed && typeof parsed.owner === 'string' && typeof parsed.sealed === 'string'\n ? { owner: parsed.owner, sealed: parsed.sealed }\n : null\n } catch {\n return null\n }\n}\n\n/** Every sealed draft storage made on this page, so a sign-out clears them all. */\nconst storages = new Set<ArbiDraftStorage>()\n\n/** The session ended (sign-out, or it could not be recovered): clear every saved draft. */\nexport function clearSealedDrafts(): void {\n for (const storage of [...storages]) storage.clear()\n}\n\nexport interface SealedDraftStorageOptions {\n /** The record's key in `storage`. */\n key?: string\n storage?: DraftKeyValueStore\n /**\n * The signed-in user (a stable id, e.g. the user's external id), `null` when no one is: the\n * drafts are opened and written only for them.\n */\n owner: () => string | null\n}\n\n/**\n * Drafts sealed to the signed-in person's key, in `storage` under `key`, for `owner` only. A record\n * of another user is removed unread; one that cannot be opened (damaged) reads as no drafts.\n */\nexport function createSealedDraftStorage({\n key = 'arbi-drafts',\n storage = typeof localStorage === 'undefined' ? undefined : localStorage,\n owner,\n}: SealedDraftStorageOptions): ArbiDraftStorage {\n let timer: ReturnType<typeof setTimeout> | undefined\n // Bumped by clear(): a write that started before it never lands after it.\n let generation = 0\n const listeners = new Set<() => void>()\n\n const remove = () => {\n try {\n storage?.removeItem(key)\n } catch {\n // Storage blocked: nothing was kept either.\n }\n }\n\n const write = async (drafts: Readonly<Record<string, string>>, written: number) => {\n if (!storage) return\n try {\n const user = owner()\n if (!user) return\n if (Object.keys(drafts).length === 0) {\n if (parseStored(storage.getItem(key))?.owner === user) storage.removeItem(key)\n return\n }\n const keypair = await getUserEncryptionKeypair()\n if (!keypair || written !== generation || owner() !== user) return\n // A plain Uint8Array of this realm, which is what the sealing accepts.\n const plain = Uint8Array.from(encoder.encode(JSON.stringify(drafts)))\n const record: StoredDrafts = {\n owner: user,\n sealed: sealedBoxEncrypt(plain, keypair.publicKey),\n }\n storage.setItem(key, JSON.stringify(record))\n } catch {\n // Storage full or blocked: the drafts stay in memory for this visit.\n }\n }\n\n const draftStorage: ArbiDraftStorage = {\n owner,\n load: async () => {\n const user = owner()\n if (!user) return null\n const keypair = await getUserEncryptionKeypair()\n if (!keypair || owner() !== user) return null\n try {\n const raw = storage?.getItem(key) ?? null\n if (!raw) return {}\n const stored = parseStored(raw)\n if (!stored || stored.owner !== user) {\n // Another user's (or an unreadable) record is not this person's to keep or open.\n remove()\n return {}\n }\n const plain = sealedBoxDecrypt(stored.sealed, keypair.secretKey)\n const drafts = JSON.parse(decoder.decode(plain)) as unknown\n if (!drafts || typeof drafts !== 'object') return {}\n return Object.fromEntries(\n Object.entries(drafts).filter((entry): entry is [string, string] => {\n return typeof entry[1] === 'string'\n })\n )\n } catch {\n return {}\n }\n },\n save: (drafts) => {\n clearTimeout(timer)\n const written = generation\n timer = setTimeout(() => void write(drafts, written), SAVE_DELAY_MS)\n },\n clear: () => {\n clearTimeout(timer)\n timer = undefined\n generation++\n remove()\n for (const listener of [...listeners]) listener()\n },\n onClear: (listener) => {\n listeners.add(listener)\n return () => listeners.delete(listener)\n },\n }\n storages.add(draftStorage)\n return draftStorage\n}\n"],
|
|
5
|
-
"mappings": "AAUA,SAAS,0BAA0B,kBAAkB,wBAAwB;AAwB7E,MAAM,gBAAgB;AAEtB,MAAM,UAAU,IAAI,YAAY;AAChC,MAAM,UAAU,IAAI,YAAY;AAQhC,SAAS,YAAY,KAAyC;AAC5D,MAAI,CAAC,IAAK,QAAO;AACjB,MAAI;AACF,UAAM,SAAS,KAAK,MAAM,GAAG;AAC7B,WAAO,UAAU,OAAO,OAAO,UAAU,YAAY,OAAO,OAAO,WAAW,WAC1E,EAAE,OAAO,OAAO,OAAO,QAAQ,OAAO,OAAO,IAC7C;AAAA,EACN,QAAQ;AACN,WAAO;AA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AM,MAAM,SAAS,QAAQ,GAAG,KAAK;AACrC,YAAI,CAAC,IAAK,QAAO,CAAC;AAClB,cAAM,SAAS,YAAY,GAAG;AAC9B,YAAI,CAAC,UAAU,OAAO,UAAU,MAAM;AAEpC,iBAAO;AACP,iBAAO,CAAC;AAAA,QACV;AACA,cAAM,QAAQ,iBAAiB,OAAO,QAAQ,QAAQ,SAAS;AAC/D,cAAM,SAAS,KAAK,MAAM,QAAQ,OAAO,KAAK,CAAC;AAC/C,YAAI,CAAC,UAAU,OAAO,WAAW,SAAU,QAAO,CAAC;AACnD,eAAO,OAAO;AAAA,UACZ,OAAO,QAAQ,MAAM,EAAE,OAAO,CAAC,UAAqC;AAClE,mBAAO,OAAO,MAAM,CAAC,MAAM;AAAA,UAC7B,CAAC;AAAA,QACH;AAAA,MACF,QAAQ;AACN,eAAO,CAAC;AAAA,MACV;AAAA,IACF;AAAA,IACA,MAAM,CAAC,WAAW;AAChB,mBAAa,KAAK;AAClB,YAAM,UAAU;AAChB,cAAQ,WAAW,MAAM,
|
|
4
|
+
"sourcesContent": ["/**\n * The composers' drafts kept across reloads: stored locally and encrypted, sealed to the signed-in\n * person's own key like the other data kept on the device, so nothing typed is readable at rest.\n *\n * Bound to the person: a record is kept under the user it belongs to and opened only while that\n * user is signed in (`owner`), never by whoever's key happens to be on the device, so a signed-out\n * page, a demo session or another account never sees it. Like the offline mail, the drafts never\n * outlive the session: a sign-out clears them (`clearSealedDrafts`).\n */\n\nimport { getUserEncryptionKeypair, sealedBoxDecrypt, sealedBoxEncrypt } from '@arbidocs/client'\n\n/** Where a session store keeps its drafts (see `createArbiSessionStore`). */\nexport interface ArbiDraftStorage {\n /** The saved drafts, or null while they cannot be opened yet (no one is signed in). */\n load(): Promise<Record<string, string> | null>\n /** Save the drafts (all of them: the record replaces what was saved). */\n save(drafts: Readonly<Record<string, string>>): void\n /** Who the drafts belong to now: the signed-in user, `null` signed out. */\n owner(): string | null\n /** Forget the saved drafts and any write still pending (the session ended). */\n clear(): void\n /** Be told when the drafts were cleared (the session store drops its copy). */\n onClear(listener: () => void): () => void\n}\n\n/** A key-value store the drafts are written to (`localStorage` by default). */\nexport interface DraftKeyValueStore {\n getItem(key: string): string | null\n setItem(key: string, value: string): void\n removeItem(key: string): void\n}\n\n/** How long typing settles before the drafts are written. */\nconst SAVE_DELAY_MS = 500\n\nconst encoder = new TextEncoder()\nconst decoder = new TextDecoder()\n\n/** What is stored: the drafts sealed to the owner's key, and who the owner is. */\ninterface StoredDrafts {\n owner: string\n sealed: string\n}\n\nfunction parseStored(raw: string | null): StoredDrafts | null {\n if (!raw) return null\n try {\n const parsed = JSON.parse(raw) as Partial<StoredDrafts> | null\n return parsed && typeof parsed.owner === 'string' && typeof parsed.sealed === 'string'\n ? { owner: parsed.owner, sealed: parsed.sealed }\n : null\n } catch {\n return null\n }\n}\n\n/** Every sealed draft storage made on this page, so a sign-out clears them all. */\nconst storages = new Set<ArbiDraftStorage>()\n\n/** The session ended (sign-out, or it could not be recovered): clear every saved draft. */\nexport function clearSealedDrafts(): void {\n for (const storage of [...storages]) storage.clear()\n}\n\nexport interface SealedDraftStorageOptions {\n /** The record's key in `storage`. */\n key?: string\n storage?: DraftKeyValueStore\n /**\n * The signed-in user (a stable id, e.g. the user's external id), `null` when no one is: the\n * drafts are opened and written only for them.\n */\n owner: () => string | null\n}\n\n/**\n * Drafts sealed to the signed-in person's key, in `storage` under `key`, for `owner` only. A record\n * of another user is removed unread; one that cannot be opened (damaged) reads as no drafts.\n */\nexport function createSealedDraftStorage({\n key = 'arbi-drafts',\n storage = typeof localStorage === 'undefined' ? undefined : localStorage,\n owner,\n}: SealedDraftStorageOptions): ArbiDraftStorage {\n let timer: ReturnType<typeof setTimeout> | undefined\n // Bumped by clear(): a write that started before it never lands after it.\n let generation = 0\n const listeners = new Set<() => void>()\n // The write still settling, if any: run at once when the page goes away.\n let pending: (() => void) | undefined\n\n const remove = () => {\n try {\n storage?.removeItem(key)\n } catch {\n // Storage blocked: nothing was kept either.\n }\n }\n\n const write = async (drafts: Readonly<Record<string, string>>, written: number) => {\n if (!storage) return\n try {\n const user = owner()\n if (!user) return\n if (Object.keys(drafts).length === 0) {\n if (parseStored(storage.getItem(key))?.owner === user) storage.removeItem(key)\n return\n }\n const keypair = await getUserEncryptionKeypair()\n if (!keypair || written !== generation || owner() !== user) return\n // A plain Uint8Array of this realm, which is what the sealing accepts.\n const plain = Uint8Array.from(encoder.encode(JSON.stringify(drafts)))\n const record: StoredDrafts = {\n owner: user,\n sealed: sealedBoxEncrypt(plain, keypair.publicKey),\n }\n storage.setItem(key, JSON.stringify(record))\n } catch {\n // Storage full or blocked: the drafts stay in memory for this visit.\n }\n }\n\n const draftStorage: ArbiDraftStorage = {\n owner,\n load: async () => {\n const user = owner()\n if (!user) return null\n const keypair = await getUserEncryptionKeypair()\n if (!keypair || owner() !== user) return null\n try {\n const raw = storage?.getItem(key) ?? null\n if (!raw) return {}\n const stored = parseStored(raw)\n if (!stored || stored.owner !== user) {\n // Another user's (or an unreadable) record is not this person's to keep or open.\n remove()\n return {}\n }\n const plain = sealedBoxDecrypt(stored.sealed, keypair.secretKey)\n const drafts = JSON.parse(decoder.decode(plain)) as unknown\n if (!drafts || typeof drafts !== 'object') return {}\n return Object.fromEntries(\n Object.entries(drafts).filter((entry): entry is [string, string] => {\n return typeof entry[1] === 'string'\n })\n )\n } catch {\n return {}\n }\n },\n save: (drafts) => {\n clearTimeout(timer)\n const written = generation\n pending = () => void write(drafts, written)\n timer = setTimeout(() => {\n pending = undefined\n timer = undefined\n void write(drafts, written)\n }, SAVE_DELAY_MS)\n },\n clear: () => {\n clearTimeout(timer)\n timer = undefined\n pending = undefined\n generation++\n remove()\n for (const listener of [...listeners]) listener()\n },\n onClear: (listener) => {\n listeners.add(listener)\n return () => listeners.delete(listener)\n },\n }\n // A reload or a navigation within the debounce would drop the last change: a draft cleared just\n // before (sent, or a dismissed slash) came back on the next load. Write it as the page goes; a\n // cleared draft is removed synchronously.\n if (typeof window !== 'undefined') {\n window.addEventListener('pagehide', () => {\n if (!pending) return\n clearTimeout(timer)\n timer = undefined\n const run = pending\n pending = undefined\n run()\n })\n }\n storages.add(draftStorage)\n return draftStorage\n}\n"],
|
|
5
|
+
"mappings": "AAUA,SAAS,0BAA0B,kBAAkB,wBAAwB;AAwB7E,MAAM,gBAAgB;AAEtB,MAAM,UAAU,IAAI,YAAY;AAChC,MAAM,UAAU,IAAI,YAAY;AAQhC,SAAS,YAAY,KAAyC;AAC5D,MAAI,CAAC,IAAK,QAAO;AACjB,MAAI;AACF,UAAM,SAAS,KAAK,MAAM,GAAG;AAC7B,WAAO,UAAU,OAAO,OAAO,UAAU,YAAY,OAAO,OAAO,WAAW,WAC1E,EAAE,OAAO,OAAO,OAAO,QAAQ,OAAO,OAAO,IAC7C;AAAA,EACN,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAGA,MAAM,WAAW,oBAAI,IAAsB;AAGpC,SAAS,oBAA0B;AACxC,aAAW,WAAW,CAAC,GAAG,QAAQ,EAAG,SAAQ,MAAM;AACrD;AAiBO,SAAS,yBAAyB;AAAA,EACvC,MAAM;AAAA,EACN,UAAU,OAAO,iBAAiB,cAAc,SAAY;AAAA,EAC5D;AACF,GAAgD;AAC9C,MAAI;AAEJ,MAAI,aAAa;AACjB,QAAM,YAAY,oBAAI,IAAgB;AAEtC,MAAI;AAEJ,QAAM,SAAS,MAAM;AACnB,QAAI;AACF,eAAS,WAAW,GAAG;AAAA,IACzB,QAAQ;AAAA,IAER;AAAA,EACF;AAEA,QAAM,QAAQ,OAAO,QAA0C,YAAoB;AACjF,QAAI,CAAC,QAAS;AACd,QAAI;AACF,YAAM,OAAO,MAAM;AACnB,UAAI,CAAC,KAAM;AACX,UAAI,OAAO,KAAK,MAAM,EAAE,WAAW,GAAG;AACpC,YAAI,YAAY,QAAQ,QAAQ,GAAG,CAAC,GAAG,UAAU,KAAM,SAAQ,WAAW,GAAG;AAC7E;AAAA,MACF;AACA,YAAM,UAAU,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ACvB,kBAAU;AACV,gBAAQ;AACR,aAAK,MAAM,QAAQ,OAAO;AAAA,MAC5B,GAAG,aAAa;AAAA,IAClB;AAAA,IACA,OAAO,MAAM;AACX,mBAAa,KAAK;AAClB,cAAQ;AACR,gBAAU;AACV;AACA,aAAO;AACP,iBAAW,YAAY,CAAC,GAAG,SAAS,EAAG,UAAS;AAAA,IAClD;AAAA,IACA,SAAS,CAAC,aAAa;AACrB,gBAAU,IAAI,QAAQ;AACtB,aAAO,MAAM,UAAU,OAAO,QAAQ;AAAA,IACxC;AAAA,EACF;AAIA,MAAI,OAAO,WAAW,aAAa;AACjC,WAAO,iBAAiB,YAAY,MAAM;AACxC,UAAI,CAAC,QAAS;AACd,mBAAa,KAAK;AAClB,cAAQ;AACR,YAAM,MAAM;AACZ,gBAAU;AACV,UAAI;AAAA,IACN,CAAC;AAAA,EACH;AACA,WAAS,IAAI,YAAY;AACzB,SAAO;AACT;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.156",
|
|
4
4
|
"description": "React hooks and provider for the ARBI SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
"build-storybook": "storybook build"
|
|
118
118
|
},
|
|
119
119
|
"dependencies": {
|
|
120
|
-
"@arbidocs/client": "0.5.
|
|
121
|
-
"@arbidocs/sdk": "0.5.
|
|
120
|
+
"@arbidocs/client": "0.5.156",
|
|
121
|
+
"@arbidocs/sdk": "0.5.156",
|
|
122
122
|
"@didit-protocol/sdk-web": "0.4.0",
|
|
123
123
|
"@livekit/components-react": "2.9.24",
|
|
124
124
|
"@radix-ui/react-avatar": "^1.2.0",
|