jazz-tools 0.10.14 → 0.11.0

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.
Files changed (150) hide show
  1. package/.turbo/turbo-build.log +11 -7
  2. package/CHANGELOG.md +31 -0
  3. package/dist/auth/AuthSecretStorage.d.ts +25 -0
  4. package/dist/auth/AuthSecretStorage.d.ts.map +1 -0
  5. package/dist/auth/DemoAuth.d.ts +27 -0
  6. package/dist/auth/DemoAuth.d.ts.map +1 -0
  7. package/dist/auth/InMemoryKVStore.d.ts +9 -0
  8. package/dist/auth/InMemoryKVStore.d.ts.map +1 -0
  9. package/dist/auth/KvStoreContext.d.ts +17 -0
  10. package/dist/auth/KvStoreContext.d.ts.map +1 -0
  11. package/dist/auth/PassphraseAuth.d.ts +35 -0
  12. package/dist/auth/PassphraseAuth.d.ts.map +1 -0
  13. package/dist/{chunk-5YDDEUNX.js → chunk-RTRX7HIO.js} +193 -81
  14. package/dist/chunk-RTRX7HIO.js.map +1 -0
  15. package/dist/coValues/account.d.ts +120 -0
  16. package/dist/coValues/account.d.ts.map +1 -0
  17. package/dist/coValues/coFeed.d.ts +361 -0
  18. package/dist/coValues/coFeed.d.ts.map +1 -0
  19. package/dist/coValues/coList.d.ts +221 -0
  20. package/dist/coValues/coList.d.ts.map +1 -0
  21. package/dist/coValues/coMap.d.ts +500 -0
  22. package/dist/coValues/coMap.d.ts.map +1 -0
  23. package/dist/coValues/coPlainText.d.ts +69 -0
  24. package/dist/coValues/coPlainText.d.ts.map +1 -0
  25. package/dist/coValues/coRichText.d.ts +259 -0
  26. package/dist/coValues/coRichText.d.ts.map +1 -0
  27. package/dist/coValues/deepLoading.d.ts +81 -0
  28. package/dist/coValues/deepLoading.d.ts.map +1 -0
  29. package/dist/coValues/extensions/imageDef.d.ts +17 -0
  30. package/dist/coValues/extensions/imageDef.d.ts.map +1 -0
  31. package/dist/coValues/group.d.ts +67 -0
  32. package/dist/coValues/group.d.ts.map +1 -0
  33. package/dist/coValues/inbox.d.ts +52 -0
  34. package/dist/coValues/inbox.d.ts.map +1 -0
  35. package/dist/coValues/interfaces.d.ts +97 -0
  36. package/dist/coValues/interfaces.d.ts.map +1 -0
  37. package/dist/coValues/profile.d.ts +28 -0
  38. package/dist/coValues/profile.d.ts.map +1 -0
  39. package/dist/coValues/registeredSchemas.d.ts +12 -0
  40. package/dist/coValues/registeredSchemas.d.ts.map +1 -0
  41. package/dist/coValues/schemaUnion.d.ts +79 -0
  42. package/dist/coValues/schemaUnion.d.ts.map +1 -0
  43. package/dist/exports.d.ts +27 -0
  44. package/dist/exports.d.ts.map +1 -0
  45. package/dist/implementation/ContextManager.d.ts +65 -0
  46. package/dist/implementation/ContextManager.d.ts.map +1 -0
  47. package/dist/implementation/activeAccountContext.d.ts +12 -0
  48. package/dist/implementation/activeAccountContext.d.ts.map +1 -0
  49. package/dist/implementation/anonymousJazzAgent.d.ts +7 -0
  50. package/dist/implementation/anonymousJazzAgent.d.ts.map +1 -0
  51. package/dist/implementation/createContext.d.ts +91 -0
  52. package/dist/implementation/createContext.d.ts.map +1 -0
  53. package/dist/implementation/devtoolsFormatters.d.ts +2 -0
  54. package/dist/implementation/devtoolsFormatters.d.ts.map +1 -0
  55. package/dist/implementation/errors.d.ts +2 -0
  56. package/dist/implementation/errors.d.ts.map +1 -0
  57. package/dist/implementation/inspect.d.ts +3 -0
  58. package/dist/implementation/inspect.d.ts.map +1 -0
  59. package/dist/implementation/invites.d.ts +23 -0
  60. package/dist/implementation/invites.d.ts.map +1 -0
  61. package/dist/implementation/refs.d.ts +21 -0
  62. package/dist/implementation/refs.d.ts.map +1 -0
  63. package/dist/implementation/schema.d.ts +72 -0
  64. package/dist/implementation/schema.d.ts.map +1 -0
  65. package/dist/implementation/subscriptionScope.d.ts +33 -0
  66. package/dist/implementation/subscriptionScope.d.ts.map +1 -0
  67. package/dist/implementation/symbols.d.ts +8 -0
  68. package/dist/implementation/symbols.d.ts.map +1 -0
  69. package/dist/index.d.ts +3 -0
  70. package/dist/index.d.ts.map +1 -0
  71. package/dist/index.js +1 -1
  72. package/dist/internal.d.ts +12 -0
  73. package/dist/internal.d.ts.map +1 -0
  74. package/dist/lib/cache.d.ts +6 -0
  75. package/dist/lib/cache.d.ts.map +1 -0
  76. package/dist/lib/cache.test.d.ts +2 -0
  77. package/dist/lib/cache.test.d.ts.map +1 -0
  78. package/dist/testing.d.ts +41 -0
  79. package/dist/testing.d.ts.map +1 -0
  80. package/dist/testing.js +11 -16
  81. package/dist/testing.js.map +1 -1
  82. package/dist/tests/AuthSecretStorage.test.d.ts +2 -0
  83. package/dist/tests/AuthSecretStorage.test.d.ts.map +1 -0
  84. package/dist/tests/ContextManager.test.d.ts +2 -0
  85. package/dist/tests/ContextManager.test.d.ts.map +1 -0
  86. package/dist/tests/DemoAuth.test.d.ts +2 -0
  87. package/dist/tests/DemoAuth.test.d.ts.map +1 -0
  88. package/dist/tests/PassphraseAuth.test.d.ts +2 -0
  89. package/dist/tests/PassphraseAuth.test.d.ts.map +1 -0
  90. package/dist/tests/account.test.d.ts +2 -0
  91. package/dist/tests/account.test.d.ts.map +1 -0
  92. package/dist/tests/coFeed.test.d.ts +2 -0
  93. package/dist/tests/coFeed.test.d.ts.map +1 -0
  94. package/dist/tests/coList.test.d.ts +2 -0
  95. package/dist/tests/coList.test.d.ts.map +1 -0
  96. package/dist/tests/coMap.test.d.ts +2 -0
  97. package/dist/tests/coMap.test.d.ts.map +1 -0
  98. package/dist/tests/coPlainText.test.d.ts +2 -0
  99. package/dist/tests/coPlainText.test.d.ts.map +1 -0
  100. package/dist/tests/coRichText.test.d.ts +2 -0
  101. package/dist/tests/coRichText.test.d.ts.map +1 -0
  102. package/dist/tests/createContext.test.d.ts +2 -0
  103. package/dist/tests/createContext.test.d.ts.map +1 -0
  104. package/dist/tests/deepLoading.test.d.ts +2 -0
  105. package/dist/tests/deepLoading.test.d.ts.map +1 -0
  106. package/dist/tests/fixtures.d.ts +2 -0
  107. package/dist/tests/fixtures.d.ts.map +1 -0
  108. package/dist/tests/groupsAndAccounts.test.d.ts +2 -0
  109. package/dist/tests/groupsAndAccounts.test.d.ts.map +1 -0
  110. package/dist/tests/inbox.test.d.ts +2 -0
  111. package/dist/tests/inbox.test.d.ts.map +1 -0
  112. package/dist/tests/interfaces.test.d.ts +2 -0
  113. package/dist/tests/interfaces.test.d.ts.map +1 -0
  114. package/dist/tests/invites.test.d.ts +2 -0
  115. package/dist/tests/invites.test.d.ts.map +1 -0
  116. package/dist/tests/schema.test.d.ts +2 -0
  117. package/dist/tests/schema.test.d.ts.map +1 -0
  118. package/dist/tests/schemaUnion.test.d.ts +2 -0
  119. package/dist/tests/schemaUnion.test.d.ts.map +1 -0
  120. package/dist/tests/subscribe.test.d.ts +2 -0
  121. package/dist/tests/subscribe.test.d.ts.map +1 -0
  122. package/dist/tests/testing.test.d.ts +2 -0
  123. package/dist/tests/testing.test.d.ts.map +1 -0
  124. package/dist/tests/utils.d.ts +21 -0
  125. package/dist/tests/utils.d.ts.map +1 -0
  126. package/dist/types.d.ts +52 -0
  127. package/dist/types.d.ts.map +1 -0
  128. package/package.json +8 -7
  129. package/src/coValues/account.ts +69 -11
  130. package/src/coValues/coMap.ts +2 -2
  131. package/src/coValues/coRichText.ts +42 -17
  132. package/src/coValues/group.ts +76 -31
  133. package/src/coValues/inbox.ts +10 -0
  134. package/src/coValues/interfaces.ts +1 -1
  135. package/src/coValues/profile.ts +35 -2
  136. package/src/implementation/ContextManager.ts +63 -15
  137. package/src/implementation/schema.ts +1 -3
  138. package/src/testing.ts +10 -16
  139. package/src/tests/AuthSecretStorage.test.ts +1 -2
  140. package/src/tests/ContextManager.test.ts +27 -14
  141. package/src/tests/PassphraseAuth.test.ts +7 -3
  142. package/src/tests/coMap.test.ts +20 -21
  143. package/src/tests/deepLoading.test.ts +8 -17
  144. package/src/tests/groupsAndAccounts.test.ts +429 -89
  145. package/src/tests/inbox.test.ts +24 -0
  146. package/src/tests/schema.test.ts +45 -5
  147. package/src/tests/utils.ts +7 -3
  148. package/src/types.ts +6 -0
  149. package/tsconfig.json +4 -1
  150. package/dist/chunk-5YDDEUNX.js.map +0 -1
@@ -0,0 +1,221 @@
1
+ import type { RawCoList } from "cojson";
2
+ import type { CoValue, CoValueClass, CoValueFromRaw, DeeplyLoaded, DepthsIn, ID, SchemaFor, UnCo } from "../internal.js";
3
+ import { AnonymousJazzAgent, ItemsSym, Ref, inspect } from "../internal.js";
4
+ import { type Account } from "./account.js";
5
+ import { type Group } from "./group.js";
6
+ /**
7
+ * CoLists are collaborative versions of plain arrays.
8
+ *
9
+ * @categoryDescription Content
10
+ * You can access items on a `CoList` as if they were normal items on a plain array, using `[]` notation, etc.
11
+ *
12
+ * Since `CoList` is a subclass of `Array`, you can use all the normal array methods like `push`, `pop`, `splice`, etc.
13
+ *
14
+ * ```ts
15
+ * colorList[0];
16
+ * colorList[3] = "yellow";
17
+ * colorList.push("Kawazaki Green");
18
+ * colorList.splice(1, 1);
19
+ * ```
20
+ *
21
+ * @category CoValues
22
+ */
23
+ export declare class CoList<Item = any> extends Array<Item> implements CoValue {
24
+ /**
25
+ * Declare a `CoList` by subclassing `CoList.Of(...)` and passing the item schema using `co`.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * class ColorList extends CoList.Of(
30
+ * co.string
31
+ * ) {}
32
+ * class AnimalList extends CoList.Of(
33
+ * co.ref(Animal)
34
+ * ) {}
35
+ * ```
36
+ *
37
+ * @category Declaration
38
+ */
39
+ static Of<Item>(item: Item): typeof CoList<Item>;
40
+ /**
41
+ * @ignore
42
+ * @deprecated Use UPPERCASE `CoList.Of` instead! */
43
+ static of(..._args: never): never;
44
+ /**
45
+ * The ID of this `CoList`
46
+ * @category Content */
47
+ id: ID<this>;
48
+ /** @category Type Helpers */
49
+ _type: "CoList";
50
+ /** @category Internals */
51
+ _raw: RawCoList;
52
+ /** @category Internals */
53
+ _instanceID: string;
54
+ /** @internal This is only a marker type and doesn't exist at runtime */
55
+ [ItemsSym]: Item;
56
+ /** @internal */
57
+ static _schema: any;
58
+ /** @internal */
59
+ get _schema(): {
60
+ [ItemsSym]: SchemaFor<Item>;
61
+ };
62
+ /** @category Collaboration */
63
+ get _owner(): Account | Group;
64
+ /**
65
+ * If a `CoList`'s items are a `co.ref(...)`, you can use `coList._refs[i]` to access
66
+ * the `Ref` instead of the potentially loaded/null value.
67
+ *
68
+ * This allows you to always get the ID or load the value manually.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * animals._refs[0].id; // => ID<Animal>
73
+ * animals._refs[0].value;
74
+ * // => Animal | null
75
+ * const animal = await animals._refs[0].load();
76
+ * ```
77
+ *
78
+ * @category Content
79
+ **/
80
+ get _refs(): {
81
+ [idx: number]: Exclude<Item, null> extends CoValue ? Ref<UnCo<Exclude<Item, null>>> : never;
82
+ } & {
83
+ length: number;
84
+ [Symbol.iterator](): IterableIterator<Exclude<Item, null> extends CoValue ? Ref<Exclude<Item, null>> : never>;
85
+ };
86
+ get _edits(): {
87
+ [idx: number]: {
88
+ value?: Item;
89
+ ref?: Item extends CoValue ? Ref<Item> : never;
90
+ by?: Account;
91
+ madeAt: Date;
92
+ };
93
+ };
94
+ get _loadedAs(): Account | AnonymousJazzAgent;
95
+ static get [Symbol.species](): ArrayConstructor;
96
+ constructor(options: {
97
+ fromRaw: RawCoList;
98
+ } | undefined);
99
+ /**
100
+ * Create a new CoList with the given initial values and owner.
101
+ *
102
+ * The owner (a Group or Account) determines access rights to the CoMap.
103
+ *
104
+ * The CoList will immediately be persisted and synced to connected peers.
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * const colours = ColorList.create(
109
+ * ["red", "green", "blue"],
110
+ * { owner: me }
111
+ * );
112
+ * const animals = AnimalList.create(
113
+ * [cat, dog, fish],
114
+ * { owner: me }
115
+ * );
116
+ * ```
117
+ *
118
+ * @category Creation
119
+ **/
120
+ static create<L extends CoList>(this: CoValueClass<L>, items: UnCo<L[number]>[], options?: {
121
+ owner: Account | Group;
122
+ } | Account | Group): L;
123
+ push(...items: Item[]): number;
124
+ unshift(...items: Item[]): number;
125
+ pop(): Item | undefined;
126
+ shift(): Item | undefined;
127
+ splice(start: number, deleteCount: number, ...items: Item[]): Item[];
128
+ toJSON(_key?: string, seenAbove?: ID<CoValue>[]): any[];
129
+ [inspect](): any[];
130
+ /** @category Internals */
131
+ static fromRaw<V extends CoList>(this: CoValueClass<V> & typeof CoList, raw: RawCoList): V & CoList<any>;
132
+ /** @internal */
133
+ static schema<V extends CoList>(this: {
134
+ new (...args: any): V;
135
+ } & typeof CoList, def: {
136
+ [ItemsSym]: V["_schema"][ItemsSym];
137
+ }): void;
138
+ /**
139
+ * Load a `CoList` with a given ID, as a given account.
140
+ *
141
+ * `depth` specifies if item CoValue references should be loaded as well before resolving.
142
+ * The `DeeplyLoaded` return type guarantees that corresponding referenced CoValues are loaded to the specified depth.
143
+ *
144
+ * You can pass `[]` or for shallowly loading only this CoList, or `[itemDepth]` for recursively loading referenced CoValues.
145
+ *
146
+ * Check out the `load` methods on `CoMap`/`CoList`/`CoFeed`/`Group`/`Account` to see which depth structures are valid to nest.
147
+ *
148
+ * @example
149
+ * ```ts
150
+ * const animalsWithVets =
151
+ * await ListOfAnimals.load(
152
+ * "co_zdsMhHtfG6VNKt7RqPUPvUtN2Ax",
153
+ * me,
154
+ * [{ vet: {} }]
155
+ * );
156
+ * ```
157
+ *
158
+ * @category Subscription & Loading
159
+ */
160
+ static load<C extends CoList, Depth>(this: CoValueClass<C>, id: ID<C>, depth: Depth & DepthsIn<C>): Promise<DeeplyLoaded<C, Depth> | undefined>;
161
+ static load<C extends CoList, Depth>(this: CoValueClass<C>, id: ID<C>, as: Account, depth: Depth & DepthsIn<C>): Promise<DeeplyLoaded<C, Depth> | undefined>;
162
+ /**
163
+ * Load and subscribe to a `CoList` with a given ID, as a given account.
164
+ *
165
+ * Automatically also subscribes to updates to all referenced/nested CoValues as soon as they are accessed in the listener.
166
+ *
167
+ * `depth` specifies if item CoValue references should be loaded as well before calling `listener` for the first time.
168
+ * The `DeeplyLoaded` return type guarantees that corresponding referenced CoValues are loaded to the specified depth.
169
+ *
170
+ * You can pass `[]` or for shallowly loading only this CoList, or `[itemDepth]` for recursively loading referenced CoValues.
171
+ *
172
+ * Check out the `load` methods on `CoMap`/`CoList`/`CoFeed`/`Group`/`Account` to see which depth structures are valid to nest.
173
+ *
174
+ * Returns an unsubscribe function that you should call when you no longer need updates.
175
+ *
176
+ * Also see the `useCoState` hook to reactively subscribe to a CoValue in a React component.
177
+ *
178
+ * @example
179
+ * ```ts
180
+ * const unsub = ListOfAnimals.subscribe(
181
+ * "co_zdsMhHtfG6VNKt7RqPUPvUtN2Ax",
182
+ * me,
183
+ * { vet: {} },
184
+ * (animalsWithVets) => console.log(animalsWithVets)
185
+ * );
186
+ * ```
187
+ *
188
+ * @category Subscription & Loading
189
+ */
190
+ static subscribe<C extends CoList, Depth>(this: CoValueClass<C>, id: ID<C>, depth: Depth & DepthsIn<C>, listener: (value: DeeplyLoaded<C, Depth>) => void): () => void;
191
+ static subscribe<C extends CoList, Depth>(this: CoValueClass<C>, id: ID<C>, as: Account, depth: Depth & DepthsIn<C>, listener: (value: DeeplyLoaded<C, Depth>) => void): () => void;
192
+ /**
193
+ * Given an already loaded `CoList`, ensure that items are loaded to the specified depth.
194
+ *
195
+ * Works like `CoList.load()`, but you don't need to pass the ID or the account to load as again.
196
+ *
197
+ * @category Subscription & Loading
198
+ */
199
+ ensureLoaded<L extends CoList, Depth>(this: L, depth: Depth & DepthsIn<L>): Promise<DeeplyLoaded<L, Depth>>;
200
+ /**
201
+ * Given an already loaded `CoList`, subscribe to updates to the `CoList` and ensure that items are loaded to the specified depth.
202
+ *
203
+ * Works like `CoList.subscribe()`, but you don't need to pass the ID or the account to load as again.
204
+ *
205
+ * Returns an unsubscribe function that you should call when you no longer need updates.
206
+ *
207
+ * @category Subscription & Loading
208
+ **/
209
+ subscribe<L extends CoList, Depth>(this: L, depth: Depth & DepthsIn<L>, listener: (value: DeeplyLoaded<L, Depth>) => void): () => void;
210
+ /** @category Type Helpers */
211
+ castAs<Cl extends CoValueClass & CoValueFromRaw<CoValue>>(cl: Cl): InstanceType<Cl>;
212
+ /**
213
+ * Wait for the `CoList` to be uploaded to the other peers.
214
+ *
215
+ * @category Subscription & Loading
216
+ */
217
+ waitForSync(options?: {
218
+ timeout?: number;
219
+ }): Promise<unknown[]>;
220
+ }
221
+ //# sourceMappingURL=coList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coList.d.ts","sourceRoot":"","sources":["../../src/coValues/coList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,OAAO,KAAK,EACV,OAAO,EACP,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,EAAE,EAGF,SAAS,EACT,IAAI,EACL,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,kBAAkB,EAClB,QAAQ,EACR,GAAG,EAIH,OAAO,EAQR,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAGxC;;;;;;;;;;;;;;;;GAgBG;AAEH,qBAAa,MAAM,CAAC,IAAI,GAAG,GAAG,CAAE,SAAQ,KAAK,CAAC,IAAI,CAAE,YAAW,OAAO;IACpE;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;IAOhD;;wDAEoD;IACpD,MAAM,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,KAAK,GAAG,KAAK;IAIjC;;2BAEuB;IACf,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IACrB,6BAA6B;IACrB,KAAK,EAAE,QAAQ,CAAC;IAIxB,0BAA0B;IAClB,IAAI,E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