@the_library/public 1.0.0 → 2.0.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.
- package/README.md +201 -28
- package/assets/branding/pond-enterprise-logo.svg +1 -1
- package/dist/Book-K86JRm42.d.ts +600 -0
- package/dist/bookSearchService-BmFHrvsv.d.ts +300 -0
- package/dist/branding/index.js +1 -66
- package/dist/branding/index.js.map +1 -1
- package/dist/chunk-3XUKOVEF.js +2 -0
- package/dist/chunk-3XUKOVEF.js.map +1 -0
- package/dist/chunk-46FQHZNM.js +2 -0
- package/dist/chunk-46FQHZNM.js.map +1 -0
- package/dist/chunk-7G3BMGV2.js +2 -0
- package/dist/chunk-7G3BMGV2.js.map +1 -0
- package/dist/chunk-D4DXGA2W.js +2 -0
- package/dist/chunk-D4DXGA2W.js.map +1 -0
- package/dist/chunk-EMA2QJTW.js +2 -0
- package/dist/chunk-EMA2QJTW.js.map +1 -0
- package/dist/chunk-FN52YV7L.js +2 -0
- package/dist/chunk-FN52YV7L.js.map +1 -0
- package/dist/chunk-GWQNULP4.js +2 -0
- package/dist/chunk-GWQNULP4.js.map +1 -0
- package/dist/chunk-OELHBR4F.js +2 -0
- package/dist/chunk-OELHBR4F.js.map +1 -0
- package/dist/chunk-PV3X54EU.js +2 -0
- package/dist/chunk-PV3X54EU.js.map +1 -0
- package/dist/chunk-SD3INWZF.js +2 -0
- package/dist/chunk-SD3INWZF.js.map +1 -0
- package/dist/downloader/dl2-sw.js +1 -198
- package/dist/downloader/dl2-sw.js.map +1 -1
- package/dist/downloader/file-worker-v2.js +1 -257
- package/dist/downloader/file-worker-v2.js.map +1 -1
- package/dist/downloader/index.d.ts +18 -2
- package/dist/downloader/index.js +1 -537
- package/dist/downloader/index.js.map +1 -1
- package/dist/downloader/mu-worker-v2.js +1 -196
- package/dist/downloader/mu-worker-v2.js.map +1 -1
- package/dist/downloader/react.d.ts +1 -1
- package/dist/downloader/react.js +1 -31
- package/dist/downloader/react.js.map +1 -1
- package/dist/downloader/solid.d.ts +1 -1
- package/dist/downloader/solid.js +1 -18
- package/dist/downloader/solid.js.map +1 -1
- package/dist/downloader/sw.js +1 -118
- package/dist/downloader/sw.js.map +1 -1
- package/dist/downloader/vue.d.ts +1 -1
- package/dist/downloader/vue.js +1 -18
- package/dist/downloader/vue.js.map +1 -1
- package/dist/enriched-index-T0sDG7JR.d.ts +209 -0
- package/dist/global/public.global.js +68 -0
- package/dist/global/public.manifest.json +484 -0
- package/dist/level-state-DXqglpAX.d.ts +27 -0
- package/dist/models/astro.d.ts +4 -3
- package/dist/models/astro.js +1 -43
- package/dist/models/astro.js.map +1 -1
- package/dist/models/index.d.ts +449 -22
- package/dist/models/index.js +1 -339
- package/dist/models/index.js.map +1 -1
- package/dist/models/models.d.ts +196 -441
- package/dist/models/models.js +1 -45
- package/dist/models/patch-worker.js +1 -542
- package/dist/models/patch-worker.js.map +1 -1
- package/dist/models/react.d.ts +6 -5
- package/dist/models/react.js +1 -72
- package/dist/models/react.js.map +1 -1
- package/dist/models/solid.d.ts +16 -6
- package/dist/models/solid.js +1 -94
- package/dist/models/solid.js.map +1 -1
- package/dist/models/vue.d.ts +90 -7
- package/dist/models/vue.js +1 -97
- package/dist/models/vue.js.map +1 -1
- package/dist/orm-MJTHCG9E.d.ts +1003 -0
- package/dist/{session-vqOnyxga.d.ts → session-JudUKAV7.d.ts} +76 -74
- package/dist/{state-BTsp-E4v.d.ts → state-CkYavOSt.d.ts} +16 -0
- package/dist/{types-Dn0EFMO_.d.ts → types-B-IX3HBn.d.ts} +94 -21
- package/dist/{types-Xb8Ta9tZ.d.ts → types-Blyx2A7F.d.ts} +10 -36
- package/dist/web3/auth.d.ts +89 -0
- package/dist/web3/auth.js +13 -0
- package/dist/web3/auth.js.map +1 -0
- package/dist/web3/index.d.ts +1913 -126
- package/dist/web3/index.js +1 -1019
- package/dist/web3/index.js.map +1 -1
- package/dist/web3/network.d.ts +6 -0
- package/dist/web3/network.js +2 -0
- package/dist/web3/network.js.map +1 -0
- package/dist/web3/registry.d.ts +34 -9
- package/dist/web3/registry.js +1 -22
- package/dist/web3/vue.d.ts +31 -14
- package/dist/web3/vue.js +1 -390
- package/dist/web3/vue.js.map +1 -1
- package/package.json +23 -2
- package/dist/chunk-2HFOWE5R.js +0 -296
- package/dist/chunk-2HFOWE5R.js.map +0 -1
- package/dist/chunk-3L6LH2XK.js +0 -465
- package/dist/chunk-3L6LH2XK.js.map +0 -1
- package/dist/chunk-4CWVFPBN.js +0 -28
- package/dist/chunk-4CWVFPBN.js.map +0 -1
- package/dist/chunk-AGHPATVL.js +0 -65
- package/dist/chunk-AGHPATVL.js.map +0 -1
- package/dist/chunk-JDUYLUDJ.js +0 -4835
- package/dist/chunk-JDUYLUDJ.js.map +0 -1
- package/dist/chunk-OEZK7IX7.js +0 -77
- package/dist/chunk-OEZK7IX7.js.map +0 -1
- package/dist/chunk-PUYDAUCI.js +0 -2873
- package/dist/chunk-PUYDAUCI.js.map +0 -1
- package/dist/chunk-WHWMTS7D.js +0 -99
- package/dist/chunk-WHWMTS7D.js.map +0 -1
- package/dist/chunk-Y7RS6RTM.js +0 -342
- package/dist/chunk-Y7RS6RTM.js.map +0 -1
- package/dist/chunk-ZEZGI2TP.js +0 -197
- package/dist/chunk-ZEZGI2TP.js.map +0 -1
- package/dist/core-dao-core-logo-VDT2I5IW.svg +0 -33
- package/dist/level-state-J3pj64Tr.d.ts +0 -15
- package/dist/models/models_v2.global.js +0 -1
- package/dist/orm-BvkX0aBT.d.ts +0 -507
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
{
|
|
2
|
+
"globalName": "TheLibraryPublic",
|
|
3
|
+
"script": "public.global.js",
|
|
4
|
+
"importMetaGlobal": "__THE_LIBRARY_PUBLIC_IMPORT_META__",
|
|
5
|
+
"modules": {
|
|
6
|
+
"@the_library/public/branding": [
|
|
7
|
+
"builder",
|
|
8
|
+
"dsafeLegalBranding",
|
|
9
|
+
"founder",
|
|
10
|
+
"globalBranding",
|
|
11
|
+
"socialMedia",
|
|
12
|
+
"worldBiblioTechBranding",
|
|
13
|
+
"worldBibliotekBranding"
|
|
14
|
+
],
|
|
15
|
+
"@the_library/public/downloader": [
|
|
16
|
+
"CACHES",
|
|
17
|
+
"CACHE_VERSION",
|
|
18
|
+
"DL2_SW_VERSION",
|
|
19
|
+
"DownloadPdfToDisk",
|
|
20
|
+
"DownloadQuotaExceededError",
|
|
21
|
+
"EnsurePageCount",
|
|
22
|
+
"EnsurePageImage",
|
|
23
|
+
"EnsurePdf",
|
|
24
|
+
"GetImage",
|
|
25
|
+
"GetObjectUrl",
|
|
26
|
+
"GetPdf",
|
|
27
|
+
"InitDownloaderV2",
|
|
28
|
+
"SetPinnedPdfs",
|
|
29
|
+
"downloadState",
|
|
30
|
+
"getBookData",
|
|
31
|
+
"pageKey",
|
|
32
|
+
"pdfKey",
|
|
33
|
+
"preloadWorkersV2",
|
|
34
|
+
"previewKey",
|
|
35
|
+
"revokeObjectUrl",
|
|
36
|
+
"storageEstimate"
|
|
37
|
+
],
|
|
38
|
+
"@the_library/public/models": [
|
|
39
|
+
"AGE_GRADE_BAND_PROP",
|
|
40
|
+
"ActionOperation",
|
|
41
|
+
"ActionTypes",
|
|
42
|
+
"BOOK_CURATABLE_PRESETS",
|
|
43
|
+
"BOOK_FIELD_WEIGHTS",
|
|
44
|
+
"BOOK_PROP_IDS",
|
|
45
|
+
"BOOK_SEARCH_SCHEMA",
|
|
46
|
+
"Book",
|
|
47
|
+
"BookInstance",
|
|
48
|
+
"BookSearchService",
|
|
49
|
+
"BridgeRelation",
|
|
50
|
+
"CLASSIFICATIONSYSTEM_PROP_IDS",
|
|
51
|
+
"COIN_LEDGER_POST_TITLE_PREFIX",
|
|
52
|
+
"CURRENT_VERSION",
|
|
53
|
+
"ClassificationSystem",
|
|
54
|
+
"ClearDbData",
|
|
55
|
+
"ColumnType",
|
|
56
|
+
"Config",
|
|
57
|
+
"CryptoRandomUidFactory",
|
|
58
|
+
"DELETED_PROP",
|
|
59
|
+
"DESCRIPTION_PROP",
|
|
60
|
+
"DSafeCheck",
|
|
61
|
+
"DateUtils",
|
|
62
|
+
"Db",
|
|
63
|
+
"DownloadState",
|
|
64
|
+
"DownloadsByType",
|
|
65
|
+
"FavoritesByTypes",
|
|
66
|
+
"IDBInstanceRemapStore",
|
|
67
|
+
"INSTANCE_REMAPS_COLUMN",
|
|
68
|
+
"IndexDependencyNode",
|
|
69
|
+
"IndexRegistry",
|
|
70
|
+
"IndexRegistryClass",
|
|
71
|
+
"LANG_AGNOSTIC",
|
|
72
|
+
"LANG_ID_DECODE",
|
|
73
|
+
"LANG_ID_ENCODE",
|
|
74
|
+
"LIFECYCLE_STATUS_PROP",
|
|
75
|
+
"LifecycleStatus",
|
|
76
|
+
"LocalRecordTable",
|
|
77
|
+
"LruCache",
|
|
78
|
+
"MAX_TOKEN_LENGTH",
|
|
79
|
+
"ModelIndex",
|
|
80
|
+
"ModelTypes",
|
|
81
|
+
"NewBookWithId",
|
|
82
|
+
"NewClassificationSystemWithId",
|
|
83
|
+
"NewPersonWithId",
|
|
84
|
+
"NewPostWithId",
|
|
85
|
+
"NewTagWithId",
|
|
86
|
+
"ORIGINAL_LANG_PROP",
|
|
87
|
+
"Orm",
|
|
88
|
+
"PERSON_PROP_IDS",
|
|
89
|
+
"POINTS_PER_LEVEL",
|
|
90
|
+
"POINTS_PER_SILVER_COIN",
|
|
91
|
+
"POST_PROP_IDS",
|
|
92
|
+
"PREVIEW_TX_ID_PROP",
|
|
93
|
+
"PROPERTY_SLOTS_COLUMN",
|
|
94
|
+
"PROVENANCE_AI",
|
|
95
|
+
"PROVENANCE_CONSENSUS",
|
|
96
|
+
"PROVENANCE_MANUAL_LOCAL",
|
|
97
|
+
"PROVENANCE_UNSET",
|
|
98
|
+
"PatchAction",
|
|
99
|
+
"PatchInstance",
|
|
100
|
+
"PatchOperation",
|
|
101
|
+
"Patches",
|
|
102
|
+
"Person",
|
|
103
|
+
"PopulateStatsStore",
|
|
104
|
+
"Post",
|
|
105
|
+
"REPLAY_METADATA_COLUMNS",
|
|
106
|
+
"Rating",
|
|
107
|
+
"Registry",
|
|
108
|
+
"RelationshipSubscription",
|
|
109
|
+
"SAFE_PROP",
|
|
110
|
+
"SEARCH_SHARD_FORMAT_VERSION",
|
|
111
|
+
"SEARCH_SHARD_MAGIC",
|
|
112
|
+
"SIDECAR_FORMAT_VERSION",
|
|
113
|
+
"SIDECAR_MAGIC",
|
|
114
|
+
"SILVER_COINS_PER_LEVEL",
|
|
115
|
+
"SchemaRegistry",
|
|
116
|
+
"SearchIndex",
|
|
117
|
+
"SidecarType",
|
|
118
|
+
"Stats",
|
|
119
|
+
"TAG_PROP_IDS",
|
|
120
|
+
"TITLE_PROP",
|
|
121
|
+
"Tag",
|
|
122
|
+
"VisitsByType",
|
|
123
|
+
"WorkerCommands",
|
|
124
|
+
"WorkerEvent",
|
|
125
|
+
"_resetForTest",
|
|
126
|
+
"acknowledgePublisherOutbox",
|
|
127
|
+
"actionPatchToLocalOp",
|
|
128
|
+
"addReactivitySystem",
|
|
129
|
+
"addRecord",
|
|
130
|
+
"applyDetachedPatches",
|
|
131
|
+
"applyRestoredPatches",
|
|
132
|
+
"bookSearch",
|
|
133
|
+
"bookSearchDoc",
|
|
134
|
+
"bookSearchPresets",
|
|
135
|
+
"bookSearchSourceFromRecord",
|
|
136
|
+
"buildCascadeCandidates",
|
|
137
|
+
"buildSearchShard",
|
|
138
|
+
"calculateTopicBookCount",
|
|
139
|
+
"cascadeRestore",
|
|
140
|
+
"childrenOf",
|
|
141
|
+
"classifyValue",
|
|
142
|
+
"clear",
|
|
143
|
+
"collectAncestors",
|
|
144
|
+
"collectTrashedAncestors",
|
|
145
|
+
"colsFromSidecar",
|
|
146
|
+
"columnTypeForBits",
|
|
147
|
+
"compareBigint",
|
|
148
|
+
"configureDb",
|
|
149
|
+
"countRecursiveSubfolders",
|
|
150
|
+
"currentLayout",
|
|
151
|
+
"dbName",
|
|
152
|
+
"dbReactivity",
|
|
153
|
+
"debouncePromise",
|
|
154
|
+
"delay",
|
|
155
|
+
"deserializeAiSidecar",
|
|
156
|
+
"deserializeBookExtended",
|
|
157
|
+
"deserializeBookProv",
|
|
158
|
+
"deserializeBookSlim",
|
|
159
|
+
"deserializeClassificationSystemExtended",
|
|
160
|
+
"deserializeClassificationSystemProv",
|
|
161
|
+
"deserializeClassificationSystemSlim",
|
|
162
|
+
"deserializePatches",
|
|
163
|
+
"deserializePersonExtended",
|
|
164
|
+
"deserializePersonProv",
|
|
165
|
+
"deserializePersonSlim",
|
|
166
|
+
"deserializePostExtended",
|
|
167
|
+
"deserializePostProv",
|
|
168
|
+
"deserializePostSlim",
|
|
169
|
+
"deserializeSearchShard",
|
|
170
|
+
"deserializeTagExtended",
|
|
171
|
+
"deserializeTagProv",
|
|
172
|
+
"deserializeTagSlim",
|
|
173
|
+
"deviceStateStoreName",
|
|
174
|
+
"dump",
|
|
175
|
+
"enablePublisherOutbox",
|
|
176
|
+
"evmToPatch",
|
|
177
|
+
"executeComplexRestore",
|
|
178
|
+
"expandTopics",
|
|
179
|
+
"extractRecordCols",
|
|
180
|
+
"fileStore",
|
|
181
|
+
"fromJsonId",
|
|
182
|
+
"getDefaultCreatorUsername",
|
|
183
|
+
"getLevel",
|
|
184
|
+
"getModelClass",
|
|
185
|
+
"getPatchInstanceByAccount",
|
|
186
|
+
"getPublisherOutbox",
|
|
187
|
+
"getRecord",
|
|
188
|
+
"getRecordKey",
|
|
189
|
+
"hasBookData",
|
|
190
|
+
"hasFile",
|
|
191
|
+
"hasRecord",
|
|
192
|
+
"inceptionDate",
|
|
193
|
+
"inflateOrmJson",
|
|
194
|
+
"instanceRemapsStoreName",
|
|
195
|
+
"instanceSpecFromFields",
|
|
196
|
+
"isActionOperation",
|
|
197
|
+
"isEvmPatch",
|
|
198
|
+
"isIndependentlyTrashed",
|
|
199
|
+
"isUserCreated",
|
|
200
|
+
"jsonStoreName",
|
|
201
|
+
"keyValStoreName",
|
|
202
|
+
"latestAiValue",
|
|
203
|
+
"loadBookData",
|
|
204
|
+
"loadFile",
|
|
205
|
+
"loadManyAsync",
|
|
206
|
+
"loadOneAsync",
|
|
207
|
+
"loadOrInitUidFactory",
|
|
208
|
+
"localOpToActionPatch",
|
|
209
|
+
"localRecordTable",
|
|
210
|
+
"localRecordsStoreName",
|
|
211
|
+
"mergeBookTiers",
|
|
212
|
+
"mergePersonTiers",
|
|
213
|
+
"mergeTagTiers",
|
|
214
|
+
"normalizeText",
|
|
215
|
+
"packActionPatch",
|
|
216
|
+
"packPatch",
|
|
217
|
+
"parseSidecar",
|
|
218
|
+
"patchStoreName",
|
|
219
|
+
"patchToEvm",
|
|
220
|
+
"pdfDataStoreName",
|
|
221
|
+
"pinAsTrashed",
|
|
222
|
+
"pinRecord",
|
|
223
|
+
"proResolver",
|
|
224
|
+
"registerModelClass",
|
|
225
|
+
"relationColName",
|
|
226
|
+
"removeRecord",
|
|
227
|
+
"resolveLayout",
|
|
228
|
+
"scalarProperties",
|
|
229
|
+
"scanTrash",
|
|
230
|
+
"serializeAiSidecar",
|
|
231
|
+
"serializeBookExtended",
|
|
232
|
+
"serializeBookProv",
|
|
233
|
+
"serializeBookSlim",
|
|
234
|
+
"serializeClassificationSystemExtended",
|
|
235
|
+
"serializeClassificationSystemProv",
|
|
236
|
+
"serializeClassificationSystemSlim",
|
|
237
|
+
"serializeMapOfMaps",
|
|
238
|
+
"serializeMapOfSets",
|
|
239
|
+
"serializePatchRows",
|
|
240
|
+
"serializePatches",
|
|
241
|
+
"serializePersonExtended",
|
|
242
|
+
"serializePersonProv",
|
|
243
|
+
"serializePersonSlim",
|
|
244
|
+
"serializePostExtended",
|
|
245
|
+
"serializePostProv",
|
|
246
|
+
"serializePostSlim",
|
|
247
|
+
"serializeSearchShard",
|
|
248
|
+
"serializeTagExtended",
|
|
249
|
+
"serializeTagProv",
|
|
250
|
+
"serializeTagSlim",
|
|
251
|
+
"setDefaultCreatorUsername",
|
|
252
|
+
"setDefaultLanguage",
|
|
253
|
+
"setDefaultProvenance",
|
|
254
|
+
"setLoadAiSidecars",
|
|
255
|
+
"setReactivitySystem",
|
|
256
|
+
"storeBookData",
|
|
257
|
+
"storeFile",
|
|
258
|
+
"subscribeLevel",
|
|
259
|
+
"subscribeStats",
|
|
260
|
+
"toJsonId",
|
|
261
|
+
"tokenize",
|
|
262
|
+
"trashStore",
|
|
263
|
+
"unpackActionPatch",
|
|
264
|
+
"unpackPatch",
|
|
265
|
+
"unpinRecord",
|
|
266
|
+
"untrashRecord",
|
|
267
|
+
"version",
|
|
268
|
+
"versionsFile",
|
|
269
|
+
"writeSidecar"
|
|
270
|
+
],
|
|
271
|
+
"@the_library/public/models/models": [
|
|
272
|
+
"BOOK_PROP_IDS",
|
|
273
|
+
"Book",
|
|
274
|
+
"BookInstance",
|
|
275
|
+
"CLASSIFICATIONSYSTEM_PROP_IDS",
|
|
276
|
+
"ClassificationSystem",
|
|
277
|
+
"ModelTypes",
|
|
278
|
+
"NewBookWithId",
|
|
279
|
+
"NewClassificationSystemWithId",
|
|
280
|
+
"NewPersonWithId",
|
|
281
|
+
"NewPostWithId",
|
|
282
|
+
"NewTagWithId",
|
|
283
|
+
"PERSON_PROP_IDS",
|
|
284
|
+
"POST_PROP_IDS",
|
|
285
|
+
"Person",
|
|
286
|
+
"Post",
|
|
287
|
+
"TAG_PROP_IDS",
|
|
288
|
+
"Tag",
|
|
289
|
+
"deserializeBookExtended",
|
|
290
|
+
"deserializeBookProv",
|
|
291
|
+
"deserializeBookSlim",
|
|
292
|
+
"deserializeClassificationSystemExtended",
|
|
293
|
+
"deserializeClassificationSystemProv",
|
|
294
|
+
"deserializeClassificationSystemSlim",
|
|
295
|
+
"deserializePersonExtended",
|
|
296
|
+
"deserializePersonProv",
|
|
297
|
+
"deserializePersonSlim",
|
|
298
|
+
"deserializePostExtended",
|
|
299
|
+
"deserializePostProv",
|
|
300
|
+
"deserializePostSlim",
|
|
301
|
+
"deserializeTagExtended",
|
|
302
|
+
"deserializeTagProv",
|
|
303
|
+
"deserializeTagSlim",
|
|
304
|
+
"serializeBookExtended",
|
|
305
|
+
"serializeBookProv",
|
|
306
|
+
"serializeBookSlim",
|
|
307
|
+
"serializeClassificationSystemExtended",
|
|
308
|
+
"serializeClassificationSystemProv",
|
|
309
|
+
"serializeClassificationSystemSlim",
|
|
310
|
+
"serializePersonExtended",
|
|
311
|
+
"serializePersonProv",
|
|
312
|
+
"serializePersonSlim",
|
|
313
|
+
"serializePostExtended",
|
|
314
|
+
"serializePostProv",
|
|
315
|
+
"serializePostSlim",
|
|
316
|
+
"serializeTagExtended",
|
|
317
|
+
"serializeTagProv",
|
|
318
|
+
"serializeTagSlim"
|
|
319
|
+
],
|
|
320
|
+
"@the_library/public/models/vue": [
|
|
321
|
+
"bootstrapModelsV2",
|
|
322
|
+
"clearLocalPatches",
|
|
323
|
+
"installVueReactivity",
|
|
324
|
+
"loadSearch",
|
|
325
|
+
"resetModelsV2Session",
|
|
326
|
+
"useBookSearch",
|
|
327
|
+
"useDraft",
|
|
328
|
+
"useLevel",
|
|
329
|
+
"useStatsTick",
|
|
330
|
+
"useTrash"
|
|
331
|
+
],
|
|
332
|
+
"@the_library/public/web3": [
|
|
333
|
+
"Browser",
|
|
334
|
+
"CONTRACT_DISPLAY_NAMES",
|
|
335
|
+
"EventBus",
|
|
336
|
+
"EventName",
|
|
337
|
+
"EvmClient",
|
|
338
|
+
"EvmWriteClient",
|
|
339
|
+
"LibraryOwnership",
|
|
340
|
+
"MetaMaskConnector",
|
|
341
|
+
"NodeFileCacheStorage",
|
|
342
|
+
"PROJECT_CACHE_TTL_MS",
|
|
343
|
+
"Platform",
|
|
344
|
+
"PrivateKeyConnector",
|
|
345
|
+
"RegistryAddressLoader",
|
|
346
|
+
"SubscriptionClient",
|
|
347
|
+
"WalletError",
|
|
348
|
+
"WalletEvents",
|
|
349
|
+
"WalletState",
|
|
350
|
+
"WalletUxError",
|
|
351
|
+
"acknowledgeOwnSave",
|
|
352
|
+
"addressFromPrivateKey",
|
|
353
|
+
"addressLoader",
|
|
354
|
+
"addressRegistryAbi",
|
|
355
|
+
"allRegisteredAccounts",
|
|
356
|
+
"createEvmClient",
|
|
357
|
+
"createMetaMaskConnector",
|
|
358
|
+
"createNodeFileCacheStorage",
|
|
359
|
+
"createPrivateKeyConnector",
|
|
360
|
+
"createPrivateKeyWalletClient",
|
|
361
|
+
"createPrivateKeyWriteClient",
|
|
362
|
+
"createSessionStore",
|
|
363
|
+
"createWriteClient",
|
|
364
|
+
"cursorKey",
|
|
365
|
+
"cursorStore",
|
|
366
|
+
"dSafeHRStorageAbi",
|
|
367
|
+
"deserializeCursor",
|
|
368
|
+
"emptyCursor",
|
|
369
|
+
"formatEther",
|
|
370
|
+
"getCachedEmail",
|
|
371
|
+
"getConnector",
|
|
372
|
+
"getContractAbi",
|
|
373
|
+
"getContractDisplayName",
|
|
374
|
+
"getDecryptedPrivateKey",
|
|
375
|
+
"getEventBus",
|
|
376
|
+
"getEvmClient",
|
|
377
|
+
"getPrivateKey",
|
|
378
|
+
"getReadClient",
|
|
379
|
+
"getReadyEvmClient",
|
|
380
|
+
"getRegisteredConnectors",
|
|
381
|
+
"getRegistryBaseUrl",
|
|
382
|
+
"getSessionEnvironment",
|
|
383
|
+
"getSubscriptionClient",
|
|
384
|
+
"handleWriteOperationErrors",
|
|
385
|
+
"hasAnyPrivateKey",
|
|
386
|
+
"hasEncryptedPrivateKey",
|
|
387
|
+
"hasPrivateKey",
|
|
388
|
+
"hasUnsavedPatches",
|
|
389
|
+
"isOwnWrite",
|
|
390
|
+
"loadNetworkInfos",
|
|
391
|
+
"loadProject",
|
|
392
|
+
"loadProjects",
|
|
393
|
+
"parseEther",
|
|
394
|
+
"parseUserAgent",
|
|
395
|
+
"projectLocale",
|
|
396
|
+
"pythAbi",
|
|
397
|
+
"readOnlyClients",
|
|
398
|
+
"readOnlyStagingClients",
|
|
399
|
+
"registerConnector",
|
|
400
|
+
"relationshipIndexerStorageAbi",
|
|
401
|
+
"resetTransactionState",
|
|
402
|
+
"restoreAccountSave",
|
|
403
|
+
"saveMyLevel",
|
|
404
|
+
"serializeCursor",
|
|
405
|
+
"sessionStore",
|
|
406
|
+
"setCachedEmail",
|
|
407
|
+
"setRegistryBaseUrl",
|
|
408
|
+
"setSessionEnvironment",
|
|
409
|
+
"sidecarUrlsFromManifest",
|
|
410
|
+
"storeEncryptedPrivateKey",
|
|
411
|
+
"storePrivateKey",
|
|
412
|
+
"syncAccount",
|
|
413
|
+
"toViemChain",
|
|
414
|
+
"walletMeta",
|
|
415
|
+
"writeOperations"
|
|
416
|
+
],
|
|
417
|
+
"@the_library/public/web3/auth": [
|
|
418
|
+
"BATCH_AUTHORIZATION_MAX_AGE_MS",
|
|
419
|
+
"BATCH_AUTHORIZATION_MAX_CLOCK_SKEW_MS",
|
|
420
|
+
"DELETION_CONSENT_PURPOSE",
|
|
421
|
+
"DELETION_CONSENT_TTL_SECONDS",
|
|
422
|
+
"buildConfirmDeleteLink",
|
|
423
|
+
"createBatchSigningMessage",
|
|
424
|
+
"decodeDeletionConsentToken",
|
|
425
|
+
"deletionConsentMessageHash",
|
|
426
|
+
"encodeDeletionConsentToken",
|
|
427
|
+
"hashBatchEmails",
|
|
428
|
+
"normalizeBatchEmails",
|
|
429
|
+
"parseAuthorizedAdmins",
|
|
430
|
+
"signDeletionConsent",
|
|
431
|
+
"verifyBatchAuthorization",
|
|
432
|
+
"verifyDeletionConsent"
|
|
433
|
+
],
|
|
434
|
+
"@the_library/public/web3/registry": [
|
|
435
|
+
"NodeFileCacheStorage",
|
|
436
|
+
"RegistryAddressLoader",
|
|
437
|
+
"addressLoader",
|
|
438
|
+
"createNodeFileCacheStorage",
|
|
439
|
+
"getContractAbi",
|
|
440
|
+
"getRegistryBaseUrl",
|
|
441
|
+
"setRegistryBaseUrl",
|
|
442
|
+
"sidecarUrlsFromManifest"
|
|
443
|
+
],
|
|
444
|
+
"@the_library/public/web3/vue": [
|
|
445
|
+
"BootstrapResultKey",
|
|
446
|
+
"bootstrapMutationHandlers",
|
|
447
|
+
"bootstrapWebSDK",
|
|
448
|
+
"mutationBus",
|
|
449
|
+
"registerHandler",
|
|
450
|
+
"useBootstrap",
|
|
451
|
+
"useChain",
|
|
452
|
+
"useLoadProjects",
|
|
453
|
+
"useSubscriptionSync",
|
|
454
|
+
"useWeb3Session"
|
|
455
|
+
],
|
|
456
|
+
"@the_library/network-config": [
|
|
457
|
+
"APPLICATION_ENVIRONMENTS",
|
|
458
|
+
"BACKEND_ENVIRONMENTS",
|
|
459
|
+
"BRAND_LOGOS",
|
|
460
|
+
"CANONICAL",
|
|
461
|
+
"CANONICAL_CHAIN_IDS",
|
|
462
|
+
"DEFAULT_CHAIN_ID",
|
|
463
|
+
"DEFAULT_DEV_CHAIN_ID",
|
|
464
|
+
"DEFAULT_STAGING_CHAIN_ID",
|
|
465
|
+
"EVM_CHAINS",
|
|
466
|
+
"MEMBERSHIP_TIERS",
|
|
467
|
+
"NETWORKS",
|
|
468
|
+
"SITE_CONTACTS",
|
|
469
|
+
"STRIPE_ENVIRONMENTS",
|
|
470
|
+
"ShortNames",
|
|
471
|
+
"getApplicationEnvironmentConfig",
|
|
472
|
+
"getBackendConfig",
|
|
473
|
+
"getCanonicalChainId",
|
|
474
|
+
"getCanonicalRole",
|
|
475
|
+
"getCanonicalTarget",
|
|
476
|
+
"getChain",
|
|
477
|
+
"getDeploymentEnvironment",
|
|
478
|
+
"getSiteContact",
|
|
479
|
+
"getStripeConfig",
|
|
480
|
+
"isChainDeployedForRole",
|
|
481
|
+
"resolveApplicationEnvironment"
|
|
482
|
+
]
|
|
483
|
+
}
|
|
484
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
interface LevelState {
|
|
2
|
+
/** Integer level, 1-based (Math.floor(raw) + 1). */
|
|
3
|
+
level: number;
|
|
4
|
+
/** Progress toward the next level, 0–100. */
|
|
5
|
+
progress: number;
|
|
6
|
+
/** Lifetime contribution points used to calculate the level. */
|
|
7
|
+
points: number;
|
|
8
|
+
}
|
|
9
|
+
/** Gamification only: silver coins are not tokens and have no monetary value. */
|
|
10
|
+
declare const POINTS_PER_LEVEL = 21;
|
|
11
|
+
declare const POINTS_PER_SILVER_COIN = 7;
|
|
12
|
+
declare const SILVER_COINS_PER_LEVEL: number;
|
|
13
|
+
/**
|
|
14
|
+
* Prefix used by the member coin page for review submissions written as Posts.
|
|
15
|
+
* Patches belonging to these system-generated records do not earn contribution
|
|
16
|
+
* points, otherwise spending a coin would partially reward itself.
|
|
17
|
+
*/
|
|
18
|
+
declare const COIN_LEDGER_POST_TITLE_PREFIX = "[DPL-COIN:v1]";
|
|
19
|
+
/** Returns the current level state for a username. Never throws — defaults to level 1. */
|
|
20
|
+
declare const getLevel: (username: string) => LevelState;
|
|
21
|
+
/**
|
|
22
|
+
* Subscribe to level updates. The listener receives the username whose level
|
|
23
|
+
* changed. Call the returned function to unsubscribe.
|
|
24
|
+
*/
|
|
25
|
+
declare const subscribeLevel: (listener: (username: string) => void) => (() => void);
|
|
26
|
+
|
|
27
|
+
export { COIN_LEDGER_POST_TITLE_PREFIX as C, type LevelState as L, POINTS_PER_LEVEL as P, SILVER_COINS_PER_LEVEL as S, POINTS_PER_SILVER_COIN as a, getLevel as g, subscribeLevel as s };
|
package/dist/models/astro.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { S as SessionBootstrapOptions } from '../session-
|
|
2
|
-
export { r as resetModelsV2Session } from '../session-
|
|
3
|
-
import '../orm-
|
|
1
|
+
import { S as SessionBootstrapOptions } from '../session-JudUKAV7.js';
|
|
2
|
+
export { c as clearLocalPatches, l as loadSearch, r as resetModelsV2Session } from '../session-JudUKAV7.js';
|
|
3
|
+
import '../orm-MJTHCG9E.js';
|
|
4
|
+
import '../enriched-index-T0sDG7JR.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* **Composes** a framework-free reactivity bus into the record tracker (coexists
|
package/dist/models/astro.js
CHANGED
|
@@ -1,44 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bootstrapSession,
|
|
3
|
-
resetModelsV2Session
|
|
4
|
-
} from "../chunk-2HFOWE5R.js";
|
|
5
|
-
import "../chunk-Y7RS6RTM.js";
|
|
6
|
-
import {
|
|
7
|
-
addReactivitySystem
|
|
8
|
-
} from "../chunk-JDUYLUDJ.js";
|
|
9
|
-
import "../chunk-ZEZGI2TP.js";
|
|
10
|
-
|
|
11
|
-
// src/models/adapters/astro.ts
|
|
12
|
-
var listeners = /* @__PURE__ */ new WeakMap();
|
|
13
|
-
var _vanillaUnregister = null;
|
|
14
|
-
var _vanillaSystem = {
|
|
15
|
-
track() {
|
|
16
|
-
},
|
|
17
|
-
trigger(o) {
|
|
18
|
-
listeners.get(o)?.forEach((cb) => cb());
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
var installVanillaReactivity = () => {
|
|
22
|
-
if (!_vanillaUnregister) _vanillaUnregister = addReactivitySystem(_vanillaSystem);
|
|
23
|
-
return _vanillaUnregister;
|
|
24
|
-
};
|
|
25
|
-
var subscribeRecord = (record, cb) => {
|
|
26
|
-
let set = listeners.get(record);
|
|
27
|
-
if (!set) {
|
|
28
|
-
set = /* @__PURE__ */ new Set();
|
|
29
|
-
listeners.set(record, set);
|
|
30
|
-
}
|
|
31
|
-
set.add(cb);
|
|
32
|
-
return () => {
|
|
33
|
-
set.delete(cb);
|
|
34
|
-
if (set.size === 0) listeners.delete(record);
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
var bootstrapModelsV2 = (opts) => bootstrapSession(opts, installVanillaReactivity);
|
|
38
|
-
export {
|
|
39
|
-
bootstrapModelsV2,
|
|
40
|
-
installVanillaReactivity,
|
|
41
|
-
resetModelsV2Session,
|
|
42
|
-
subscribeRecord
|
|
43
|
-
};
|
|
1
|
+
import{a as n,d as r,e as l,f as c}from"../chunk-OELHBR4F.js";import"../chunk-D4DXGA2W.js";import"../chunk-GWQNULP4.js";import{_ as a}from"../chunk-7G3BMGV2.js";var s=new WeakMap,i=null,p={track(){},trigger(t){s.get(t)?.forEach(o=>o())}},d=()=>(i||(i=a(p)),i),y=(t,o)=>{let e=s.get(t);return e||(e=new Set,s.set(t,e)),e.add(o),()=>{e.delete(o),e.size===0&&s.delete(t)}},m=t=>r(t,d);export{m as bootstrapModelsV2,c as clearLocalPatches,d as installVanillaReactivity,n as loadSearch,l as resetModelsV2Session,y as subscribeRecord};
|
|
44
2
|
//# sourceMappingURL=astro.js.map
|
package/dist/models/astro.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/models/adapters/astro.ts"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/models/adapters/astro.ts"],"mappings":"iKAkHA,IAAMA,EAAY,IAAI,QAElBC,EAA0C,KACxCC,EAAmC,CACrC,OAAQ,CAA6D,EACrE,QAAQC,EAAW,CACfH,EAAU,IAAIG,CAAC,GAAG,QAAQC,GAAMA,EAAG,CAAC,CACxC,CACJ,EAQaC,EAA2B,KAC/BJ,IAAoBA,EAAqBK,EAAoBJ,CAAc,GACzED,GAWEM,EAAkB,CAACC,EAAgBJ,IAAiC,CAC7E,IAAIK,EAAMT,EAAU,IAAIQ,CAAM,EAC9B,OAAKC,IAAOA,EAAM,IAAI,IAAOT,EAAU,IAAIQ,EAAQC,CAAG,GACtDA,EAAI,IAAIL,CAAE,EACH,IAAM,CAAEK,EAAK,OAAOL,CAAE,EAAOK,EAAK,OAAS,GAAGT,EAAU,OAAOQ,CAAM,CAAG,CACnF,EA0BaE,EAAqBC,GAC9BC,EAAiBD,EAAMN,CAAwB","names":["listeners","_vanillaUnregister","_vanillaSystem","o","cb","installVanillaReactivity","addReactivitySystem","subscribeRecord","record","set","bootstrapModelsV2","opts","bootstrapSession"]}
|