shelving 1.254.0 → 1.255.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 (864) hide show
  1. package/README.md +1 -1
  2. package/api/cache/APICache.d.ts +9 -9
  3. package/api/cache/APICache.js +8 -8
  4. package/api/cache/EndpointCache.d.ts +10 -10
  5. package/api/cache/EndpointCache.js +10 -10
  6. package/api/endpoint/Endpoint.d.ts +20 -20
  7. package/api/endpoint/Endpoint.js +10 -10
  8. package/api/endpoint/util.d.ts +5 -5
  9. package/api/provider/APIProvider.d.ts +7 -7
  10. package/api/provider/APIProvider.js +2 -2
  11. package/api/provider/CachedAPIProvider.d.ts +7 -7
  12. package/api/provider/CachedAPIProvider.js +7 -7
  13. package/api/provider/ClientAPIProvider.d.ts +10 -10
  14. package/api/provider/ClientAPIProvider.js +9 -9
  15. package/api/provider/DebugAPIProvider.d.ts +4 -4
  16. package/api/provider/DebugAPIProvider.js +4 -4
  17. package/api/provider/JSONAPIProvider.d.ts +2 -2
  18. package/api/provider/JSONAPIProvider.js +2 -2
  19. package/api/provider/LoggingAPIProvider.d.ts +2 -2
  20. package/api/provider/LoggingAPIProvider.js +2 -2
  21. package/api/provider/MockAPIProvider.d.ts +11 -11
  22. package/api/provider/MockAPIProvider.js +8 -8
  23. package/api/provider/MockEndpointAPIProvider.d.ts +1 -1
  24. package/api/provider/MockEndpointAPIProvider.js +1 -1
  25. package/api/provider/ThroughAPIProvider.d.ts +8 -8
  26. package/api/provider/ThroughAPIProvider.js +8 -8
  27. package/api/provider/ValidationAPIProvider.d.ts +3 -3
  28. package/api/provider/ValidationAPIProvider.js +3 -3
  29. package/api/provider/XMLAPIProvider.d.ts +2 -2
  30. package/api/provider/XMLAPIProvider.js +2 -2
  31. package/api/store/EndpointStore.d.ts +3 -3
  32. package/api/store/EndpointStore.js +3 -3
  33. package/bun/BunPostgreSQLProvider.d.ts +4 -4
  34. package/bun/BunPostgreSQLProvider.js +4 -4
  35. package/cloudflare/CloudflareD1Provider.d.ts +3 -3
  36. package/cloudflare/CloudflareD1Provider.js +3 -3
  37. package/cloudflare/CloudflareKVProvider.d.ts +13 -13
  38. package/cloudflare/CloudflareKVProvider.js +13 -13
  39. package/cloudflare/types.d.ts +7 -7
  40. package/db/cache/CollectionCache.d.ts +11 -11
  41. package/db/cache/CollectionCache.js +11 -11
  42. package/db/cache/DBCache.d.ts +11 -11
  43. package/db/cache/DBCache.js +10 -10
  44. package/db/collection/Collection.d.ts +16 -16
  45. package/db/collection/Collection.js +7 -7
  46. package/db/migrate/DBMigrator.d.ts +3 -3
  47. package/db/migrate/DBMigrator.js +2 -2
  48. package/db/migrate/PostgreSQLMigrator.d.ts +1 -1
  49. package/db/migrate/PostgreSQLMigrator.js +1 -1
  50. package/db/migrate/SQLMigrator.d.ts +9 -9
  51. package/db/migrate/SQLMigrator.js +6 -6
  52. package/db/migrate/SQLiteMigrator.d.ts +1 -1
  53. package/db/migrate/SQLiteMigrator.js +1 -1
  54. package/db/provider/CacheDBProvider.d.ts +15 -15
  55. package/db/provider/CacheDBProvider.js +15 -15
  56. package/db/provider/ChangesDBProvider.d.ts +10 -10
  57. package/db/provider/ChangesDBProvider.js +9 -9
  58. package/db/provider/DBProvider.d.ts +16 -16
  59. package/db/provider/DBProvider.js +5 -5
  60. package/db/provider/DebugDBProvider.d.ts +13 -13
  61. package/db/provider/DebugDBProvider.js +13 -13
  62. package/db/provider/MemoryDBProvider.d.ts +31 -31
  63. package/db/provider/MemoryDBProvider.js +31 -31
  64. package/db/provider/MockDBProvider.d.ts +13 -13
  65. package/db/provider/MockDBProvider.js +12 -12
  66. package/db/provider/PostgreSQLProvider.d.ts +4 -4
  67. package/db/provider/PostgreSQLProvider.js +4 -4
  68. package/db/provider/SQLProvider.d.ts +29 -29
  69. package/db/provider/SQLProvider.js +27 -27
  70. package/db/provider/SQLiteProvider.d.ts +5 -5
  71. package/db/provider/SQLiteProvider.js +5 -5
  72. package/db/provider/ThroughDBProvider.d.ts +17 -17
  73. package/db/provider/ThroughDBProvider.js +17 -17
  74. package/db/provider/ValidationDBProvider.d.ts +12 -12
  75. package/db/provider/ValidationDBProvider.js +12 -12
  76. package/db/store/ItemStore.d.ts +5 -5
  77. package/db/store/ItemStore.js +5 -5
  78. package/db/store/QueryStore.d.ts +10 -10
  79. package/db/store/QueryStore.js +10 -10
  80. package/error/BaseError.d.ts +3 -3
  81. package/error/BaseError.js +1 -1
  82. package/error/Errors.d.ts +1 -1
  83. package/error/Errors.js +1 -1
  84. package/error/NetworkError.d.ts +1 -1
  85. package/error/NetworkError.js +1 -1
  86. package/error/RequestError.d.ts +7 -7
  87. package/error/RequestError.js +7 -7
  88. package/error/RequiredError.d.ts +1 -1
  89. package/error/RequiredError.js +1 -1
  90. package/error/ResponseError.d.ts +2 -2
  91. package/error/ResponseError.js +2 -2
  92. package/error/UnexpectedError.d.ts +1 -1
  93. package/error/UnexpectedError.js +1 -1
  94. package/error/UnimplementedError.d.ts +1 -1
  95. package/error/UnimplementedError.js +1 -1
  96. package/error/ValueError.d.ts +1 -1
  97. package/error/ValueError.js +1 -1
  98. package/extract/DirectoryExtractor.d.ts +3 -3
  99. package/extract/DirectoryExtractor.js +2 -2
  100. package/extract/Extractor.d.ts +3 -3
  101. package/extract/Extractor.js +1 -1
  102. package/extract/FileExtractor.d.ts +3 -3
  103. package/extract/FileExtractor.js +3 -3
  104. package/extract/IndexExtractor.d.ts +3 -3
  105. package/extract/IndexExtractor.js +2 -2
  106. package/extract/MarkupExtractor.d.ts +3 -3
  107. package/extract/MarkupExtractor.js +3 -3
  108. package/extract/MergingExtractor.d.ts +3 -3
  109. package/extract/MergingExtractor.js +2 -2
  110. package/extract/ModuleExtractor.d.ts +3 -3
  111. package/extract/ModuleExtractor.js +2 -2
  112. package/extract/PackageExtractor.d.ts +3 -3
  113. package/extract/PackageExtractor.js +2 -2
  114. package/extract/ThroughExtractor.d.ts +4 -4
  115. package/extract/ThroughExtractor.js +4 -4
  116. package/extract/TypescriptExtractor.d.ts +2 -2
  117. package/extract/TypescriptExtractor.js +2 -2
  118. package/firestore/client/FirestoreClientProvider.d.ts +14 -14
  119. package/firestore/client/FirestoreClientProvider.js +14 -14
  120. package/firestore/lite/FirestoreLiteProvider.d.ts +14 -14
  121. package/firestore/lite/FirestoreLiteProvider.js +14 -14
  122. package/firestore/server/FirestoreServerProvider.d.ts +14 -14
  123. package/firestore/server/FirestoreServerProvider.js +14 -14
  124. package/markup/MarkupParser.d.ts +14 -14
  125. package/markup/MarkupParser.js +13 -13
  126. package/markup/MarkupRule.d.ts +4 -4
  127. package/markup/Parser.d.ts +2 -2
  128. package/markup/Parser.js +1 -1
  129. package/markup/rule/blockquote.d.ts +1 -1
  130. package/markup/rule/blockquote.js +1 -1
  131. package/markup/rule/code.d.ts +1 -1
  132. package/markup/rule/code.js +1 -1
  133. package/markup/rule/fenced.d.ts +1 -1
  134. package/markup/rule/fenced.js +1 -1
  135. package/markup/rule/heading.d.ts +1 -1
  136. package/markup/rule/heading.js +1 -1
  137. package/markup/rule/index.d.ts +3 -3
  138. package/markup/rule/index.js +3 -3
  139. package/markup/rule/inline.d.ts +1 -1
  140. package/markup/rule/inline.js +1 -1
  141. package/markup/rule/linebreak.d.ts +1 -1
  142. package/markup/rule/linebreak.js +1 -1
  143. package/markup/rule/link.d.ts +2 -2
  144. package/markup/rule/link.js +2 -2
  145. package/markup/rule/ordered.d.ts +1 -1
  146. package/markup/rule/ordered.js +1 -1
  147. package/markup/rule/paragraph.d.ts +1 -1
  148. package/markup/rule/paragraph.js +1 -1
  149. package/markup/rule/separator.d.ts +1 -1
  150. package/markup/rule/separator.js +1 -1
  151. package/markup/rule/table.d.ts +1 -1
  152. package/markup/rule/table.js +1 -1
  153. package/markup/rule/unordered.d.ts +1 -1
  154. package/markup/rule/unordered.js +1 -1
  155. package/markup/util/regexp.d.ts +14 -14
  156. package/markup/util/regexp.js +11 -11
  157. package/package.json +1 -1
  158. package/react/createAPIContext.d.ts +2 -2
  159. package/react/createAPIContext.js +1 -1
  160. package/react/createDBContext.d.ts +2 -2
  161. package/react/createDBContext.js +1 -1
  162. package/react/useInstance.d.ts +1 -1
  163. package/react/useInstance.js +1 -1
  164. package/react/useLazy.d.ts +1 -1
  165. package/react/useMap.d.ts +1 -1
  166. package/react/useMap.js +1 -1
  167. package/react/useReduce.d.ts +1 -1
  168. package/react/useSequence.d.ts +1 -1
  169. package/react/useSequence.js +1 -1
  170. package/react/useStore.d.ts +1 -1
  171. package/schema/AddressSchema.d.ts +5 -5
  172. package/schema/AddressSchema.js +4 -4
  173. package/schema/ArraySchema.d.ts +5 -5
  174. package/schema/ArraySchema.js +4 -4
  175. package/schema/BooleanSchema.d.ts +5 -5
  176. package/schema/BooleanSchema.js +4 -4
  177. package/schema/ChoiceSchema.d.ts +7 -7
  178. package/schema/ChoiceSchema.js +4 -4
  179. package/schema/ColorSchema.d.ts +5 -5
  180. package/schema/ColorSchema.js +4 -4
  181. package/schema/CountrySchema.d.ts +6 -6
  182. package/schema/CountrySchema.js +5 -5
  183. package/schema/CurrencyAmountSchema.d.ts +14 -14
  184. package/schema/CurrencyAmountSchema.js +12 -12
  185. package/schema/CurrencyCodeSchema.d.ts +8 -8
  186. package/schema/CurrencyCodeSchema.js +7 -7
  187. package/schema/DataSchema.d.ts +10 -10
  188. package/schema/DataSchema.js +8 -8
  189. package/schema/DateSchema.d.ts +8 -8
  190. package/schema/DateSchema.js +6 -6
  191. package/schema/DateTimeSchema.d.ts +5 -5
  192. package/schema/DateTimeSchema.js +5 -5
  193. package/schema/DictionarySchema.d.ts +5 -5
  194. package/schema/DictionarySchema.js +4 -4
  195. package/schema/EmailSchema.d.ts +5 -5
  196. package/schema/EmailSchema.js +4 -4
  197. package/schema/EntitySchema.d.ts +5 -5
  198. package/schema/EntitySchema.js +4 -4
  199. package/schema/FileSchema.d.ts +5 -5
  200. package/schema/FileSchema.js +4 -4
  201. package/schema/KeySchema.d.ts +4 -4
  202. package/schema/KeySchema.js +4 -4
  203. package/schema/NullableSchema.d.ts +5 -5
  204. package/schema/NullableSchema.js +4 -4
  205. package/schema/NumberSchema.d.ts +14 -14
  206. package/schema/NumberSchema.js +13 -13
  207. package/schema/OptionalSchema.d.ts +5 -5
  208. package/schema/OptionalSchema.js +4 -4
  209. package/schema/PasswordSchema.d.ts +3 -3
  210. package/schema/PasswordSchema.js +3 -3
  211. package/schema/PhoneSchema.d.ts +5 -5
  212. package/schema/PhoneSchema.js +4 -4
  213. package/schema/RequiredSchema.d.ts +3 -3
  214. package/schema/RequiredSchema.js +3 -3
  215. package/schema/Schema.d.ts +9 -9
  216. package/schema/Schema.js +5 -5
  217. package/schema/SlugSchema.d.ts +5 -5
  218. package/schema/SlugSchema.js +4 -4
  219. package/schema/StringSchema.d.ts +12 -12
  220. package/schema/StringSchema.js +10 -10
  221. package/schema/ThroughSchema.d.ts +4 -4
  222. package/schema/ThroughSchema.js +3 -3
  223. package/schema/TimeSchema.d.ts +5 -5
  224. package/schema/TimeSchema.js +5 -5
  225. package/schema/URISchema.d.ts +7 -7
  226. package/schema/URISchema.js +6 -6
  227. package/schema/URLSchema.d.ts +7 -7
  228. package/schema/URLSchema.js +6 -6
  229. package/schema/UUIDSchema.d.ts +5 -5
  230. package/schema/UUIDSchema.js +4 -4
  231. package/sequence/DeferredSequence.d.ts +9 -9
  232. package/sequence/DeferredSequence.js +7 -7
  233. package/sequence/InspectSequence.d.ts +9 -9
  234. package/sequence/InspectSequence.js +9 -9
  235. package/sequence/LazySequence.d.ts +4 -4
  236. package/sequence/LazySequence.js +4 -4
  237. package/sequence/Sequence.d.ts +4 -4
  238. package/sequence/Sequence.js +3 -3
  239. package/sequence/ThroughSequence.d.ts +2 -2
  240. package/sequence/ThroughSequence.js +2 -2
  241. package/store/ArrayStore.d.ts +11 -11
  242. package/store/ArrayStore.js +11 -11
  243. package/store/BooleanStore.d.ts +2 -2
  244. package/store/BooleanStore.js +2 -2
  245. package/store/BusyStore.d.ts +2 -2
  246. package/store/BusyStore.js +2 -2
  247. package/store/DataStore.d.ts +15 -15
  248. package/store/DataStore.js +15 -15
  249. package/store/DictionaryStore.d.ts +8 -8
  250. package/store/DictionaryStore.js +8 -8
  251. package/store/FetchStore.d.ts +8 -8
  252. package/store/FetchStore.js +7 -7
  253. package/store/PathStore.d.ts +6 -6
  254. package/store/PathStore.js +6 -6
  255. package/store/PayloadFetchStore.d.ts +3 -3
  256. package/store/PayloadFetchStore.js +2 -2
  257. package/store/Store.d.ts +16 -16
  258. package/store/Store.js +10 -10
  259. package/store/URLStore.d.ts +25 -25
  260. package/store/URLStore.js +25 -25
  261. package/test/basics.d.ts +14 -14
  262. package/test/basics.js +12 -12
  263. package/test/people.d.ts +9 -9
  264. package/test/people.js +7 -7
  265. package/test/util.d.ts +3 -3
  266. package/test/util.js +3 -3
  267. package/ui/README.md +1 -1
  268. package/ui/app/App.d.ts +2 -2
  269. package/ui/app/App.js +1 -1
  270. package/ui/app/App.tsx +2 -2
  271. package/ui/block/Address.d.ts +6 -6
  272. package/ui/block/Address.js +3 -3
  273. package/ui/block/Address.tsx +6 -6
  274. package/ui/block/Block.d.ts +6 -5
  275. package/ui/block/Block.js +4 -3
  276. package/ui/block/Block.module.css +1 -0
  277. package/ui/block/Block.tsx +7 -5
  278. package/ui/block/Blockquote.d.ts +2 -2
  279. package/ui/block/Blockquote.js +1 -1
  280. package/ui/block/Blockquote.tsx +2 -2
  281. package/ui/block/Caption.d.ts +2 -2
  282. package/ui/block/Caption.js +1 -1
  283. package/ui/block/Caption.tsx +2 -2
  284. package/ui/block/Card.d.ts +2 -2
  285. package/ui/block/Card.js +1 -1
  286. package/ui/block/Card.module.css +1 -0
  287. package/ui/block/Card.tsx +2 -2
  288. package/ui/block/Definitions.d.ts +2 -2
  289. package/ui/block/Definitions.js +1 -1
  290. package/ui/block/Definitions.tsx +2 -2
  291. package/ui/block/Divider.d.ts +2 -2
  292. package/ui/block/Divider.js +1 -1
  293. package/ui/block/Divider.tsx +2 -2
  294. package/ui/block/Heading.d.ts +2 -2
  295. package/ui/block/Heading.js +1 -1
  296. package/ui/block/Heading.tsx +2 -2
  297. package/ui/block/Image.d.ts +2 -2
  298. package/ui/block/Image.js +1 -1
  299. package/ui/block/Image.tsx +2 -2
  300. package/ui/block/Label.d.ts +2 -2
  301. package/ui/block/Label.js +1 -1
  302. package/ui/block/Label.tsx +2 -2
  303. package/ui/block/List.d.ts +2 -2
  304. package/ui/block/List.js +1 -1
  305. package/ui/block/List.tsx +2 -2
  306. package/ui/block/Panel.d.ts +4 -3
  307. package/ui/block/Panel.js +3 -2
  308. package/ui/block/Panel.md +4 -2
  309. package/ui/block/Panel.module.css +7 -1
  310. package/ui/block/Panel.tsx +5 -3
  311. package/ui/block/Paragraph.d.ts +3 -3
  312. package/ui/block/Paragraph.js +2 -2
  313. package/ui/block/Paragraph.tsx +3 -3
  314. package/ui/block/Preformatted.d.ts +2 -2
  315. package/ui/block/Preformatted.js +1 -1
  316. package/ui/block/Preformatted.tsx +2 -2
  317. package/ui/block/Prose.d.ts +2 -2
  318. package/ui/block/Prose.js +1 -1
  319. package/ui/block/Prose.tsx +2 -2
  320. package/ui/block/Section.d.ts +9 -8
  321. package/ui/block/Section.js +8 -7
  322. package/ui/block/Section.md +3 -4
  323. package/ui/block/Section.module.css +3 -7
  324. package/ui/block/Section.tsx +10 -8
  325. package/ui/block/Subheading.d.ts +2 -2
  326. package/ui/block/Subheading.js +1 -1
  327. package/ui/block/Subheading.tsx +2 -2
  328. package/ui/block/Title.d.ts +2 -2
  329. package/ui/block/Title.js +1 -1
  330. package/ui/block/Title.tsx +2 -2
  331. package/ui/block/Video.d.ts +8 -8
  332. package/ui/block/Video.js +4 -4
  333. package/ui/block/Video.tsx +8 -8
  334. package/ui/dialog/Dialog.d.ts +4 -4
  335. package/ui/dialog/Dialog.js +2 -2
  336. package/ui/dialog/Dialog.tsx +4 -4
  337. package/ui/dialog/Dialogs.d.ts +8 -8
  338. package/ui/dialog/Dialogs.js +6 -6
  339. package/ui/dialog/Dialogs.tsx +8 -8
  340. package/ui/dialog/Modal.d.ts +2 -2
  341. package/ui/dialog/Modal.js +1 -1
  342. package/ui/dialog/Modal.tsx +2 -2
  343. package/ui/docs/DocumentationButtons.d.ts +1 -1
  344. package/ui/docs/DocumentationButtons.tsx +1 -1
  345. package/ui/docs/DocumentationCard.d.ts +1 -1
  346. package/ui/docs/DocumentationCard.js +1 -1
  347. package/ui/docs/DocumentationCard.tsx +1 -1
  348. package/ui/docs/DocumentationDescription.d.ts +2 -2
  349. package/ui/docs/DocumentationDescription.js +1 -1
  350. package/ui/docs/DocumentationDescription.tsx +2 -2
  351. package/ui/docs/DocumentationHomePage.d.ts +1 -1
  352. package/ui/docs/DocumentationHomePage.js +2 -2
  353. package/ui/docs/DocumentationHomePage.tsx +11 -9
  354. package/ui/docs/DocumentationKind.d.ts +3 -3
  355. package/ui/docs/DocumentationKind.js +2 -2
  356. package/ui/docs/DocumentationKind.tsx +3 -3
  357. package/ui/docs/DocumentationPage.d.ts +1 -1
  358. package/ui/docs/DocumentationPage.js +2 -2
  359. package/ui/docs/DocumentationPage.tsx +29 -27
  360. package/ui/docs/DocumentationParams.d.ts +2 -2
  361. package/ui/docs/DocumentationParams.js +1 -1
  362. package/ui/docs/DocumentationParams.tsx +2 -2
  363. package/ui/docs/DocumentationProperties.d.ts +2 -2
  364. package/ui/docs/DocumentationProperties.js +1 -1
  365. package/ui/docs/DocumentationProperties.tsx +2 -2
  366. package/ui/docs/DocumentationReferences.d.ts +2 -2
  367. package/ui/docs/DocumentationReferences.js +1 -1
  368. package/ui/docs/DocumentationReferences.tsx +2 -2
  369. package/ui/docs/DocumentationReturns.d.ts +2 -2
  370. package/ui/docs/DocumentationReturns.js +1 -1
  371. package/ui/docs/DocumentationReturns.tsx +2 -2
  372. package/ui/docs/DocumentationSignatures.d.ts +2 -2
  373. package/ui/docs/DocumentationSignatures.js +1 -1
  374. package/ui/docs/DocumentationSignatures.tsx +2 -2
  375. package/ui/docs/DocumentationThrows.d.ts +2 -2
  376. package/ui/docs/DocumentationThrows.js +1 -1
  377. package/ui/docs/DocumentationThrows.tsx +2 -2
  378. package/ui/docs/DocumentationType.d.ts +3 -3
  379. package/ui/docs/DocumentationType.js +2 -2
  380. package/ui/docs/DocumentationType.tsx +3 -3
  381. package/ui/form/ArrayInput.d.ts +2 -2
  382. package/ui/form/ArrayInput.tsx +2 -2
  383. package/ui/form/ArrayRadioInputs.d.ts +2 -2
  384. package/ui/form/ArrayRadioInputs.js +1 -1
  385. package/ui/form/ArrayRadioInputs.tsx +2 -2
  386. package/ui/form/Button.d.ts +3 -3
  387. package/ui/form/Button.js +2 -2
  388. package/ui/form/Button.module.css +1 -0
  389. package/ui/form/Button.tsx +3 -3
  390. package/ui/form/ButtonInput.d.ts +2 -2
  391. package/ui/form/ButtonInput.js +1 -1
  392. package/ui/form/ButtonInput.tsx +2 -2
  393. package/ui/form/ButtonInputPopover.d.ts +2 -2
  394. package/ui/form/ButtonInputPopover.js +1 -1
  395. package/ui/form/ButtonInputPopover.tsx +2 -2
  396. package/ui/form/ButtonPopover.d.ts +2 -2
  397. package/ui/form/ButtonPopover.js +1 -1
  398. package/ui/form/ButtonPopover.tsx +2 -2
  399. package/ui/form/CheckboxInput.d.ts +2 -2
  400. package/ui/form/CheckboxInput.js +1 -1
  401. package/ui/form/CheckboxInput.tsx +2 -2
  402. package/ui/form/ChoiceRadioInputs.d.ts +2 -2
  403. package/ui/form/ChoiceRadioInputs.tsx +2 -2
  404. package/ui/form/Clickable.d.ts +7 -7
  405. package/ui/form/Clickable.js +4 -4
  406. package/ui/form/Clickable.tsx +7 -7
  407. package/ui/form/DataInput.d.ts +2 -2
  408. package/ui/form/DataInput.tsx +2 -2
  409. package/ui/form/DateInput.d.ts +2 -2
  410. package/ui/form/DateInput.js +1 -1
  411. package/ui/form/DateInput.tsx +2 -2
  412. package/ui/form/DictionaryInput.d.ts +2 -2
  413. package/ui/form/DictionaryInput.tsx +2 -2
  414. package/ui/form/Field.d.ts +2 -2
  415. package/ui/form/Field.js +1 -1
  416. package/ui/form/Field.tsx +2 -2
  417. package/ui/form/FileInput.d.ts +2 -2
  418. package/ui/form/FileInput.js +1 -1
  419. package/ui/form/FileInput.tsx +2 -2
  420. package/ui/form/Form.d.ts +8 -7
  421. package/ui/form/Form.js +10 -7
  422. package/ui/form/Form.md +1 -1
  423. package/ui/form/Form.module.css +4 -0
  424. package/ui/form/Form.tsx +16 -11
  425. package/ui/form/FormContext.d.ts +3 -3
  426. package/ui/form/FormContext.js +1 -1
  427. package/ui/form/FormContext.tsx +3 -3
  428. package/ui/form/FormFields.d.ts +2 -2
  429. package/ui/form/FormFields.js +2 -2
  430. package/ui/form/FormFields.tsx +2 -2
  431. package/ui/form/FormFooter.d.ts +2 -2
  432. package/ui/form/FormFooter.js +1 -1
  433. package/ui/form/FormFooter.tsx +2 -2
  434. package/ui/form/FormInput.d.ts +3 -3
  435. package/ui/form/FormInput.js +2 -2
  436. package/ui/form/FormInput.tsx +3 -3
  437. package/ui/form/FormMessage.d.ts +1 -1
  438. package/ui/form/FormMessage.js +1 -1
  439. package/ui/form/FormMessage.tsx +1 -1
  440. package/ui/form/FormNotice.d.ts +1 -1
  441. package/ui/form/FormNotice.js +1 -1
  442. package/ui/form/FormNotice.tsx +1 -1
  443. package/ui/form/FormNotify.d.ts +1 -1
  444. package/ui/form/FormNotify.js +1 -1
  445. package/ui/form/FormNotify.tsx +1 -1
  446. package/ui/form/FormStore.d.ts +6 -6
  447. package/ui/form/FormStore.js +6 -6
  448. package/ui/form/FormStore.tsx +6 -6
  449. package/ui/form/Input.d.ts +3 -3
  450. package/ui/form/Input.js +1 -1
  451. package/ui/form/Input.tsx +3 -3
  452. package/ui/form/NumberInput.d.ts +2 -2
  453. package/ui/form/NumberInput.js +1 -1
  454. package/ui/form/NumberInput.tsx +2 -2
  455. package/ui/form/OutputInput.d.ts +2 -2
  456. package/ui/form/OutputInput.js +1 -1
  457. package/ui/form/OutputInput.tsx +2 -2
  458. package/ui/form/Popover.d.ts +3 -3
  459. package/ui/form/Popover.js +1 -1
  460. package/ui/form/Popover.tsx +3 -3
  461. package/ui/form/Progress.d.ts +4 -4
  462. package/ui/form/Progress.js +2 -2
  463. package/ui/form/Progress.tsx +4 -4
  464. package/ui/form/QueryInput.d.ts +2 -2
  465. package/ui/form/QueryInput.js +1 -1
  466. package/ui/form/QueryInput.tsx +2 -2
  467. package/ui/form/RadioInput.d.ts +2 -2
  468. package/ui/form/RadioInput.js +1 -1
  469. package/ui/form/RadioInput.tsx +2 -2
  470. package/ui/form/SchemaInput.d.ts +21 -21
  471. package/ui/form/SchemaInput.js +10 -10
  472. package/ui/form/SchemaInput.tsx +21 -21
  473. package/ui/form/SelectInput.d.ts +2 -2
  474. package/ui/form/SelectInput.tsx +2 -2
  475. package/ui/form/SubmitButton.d.ts +2 -2
  476. package/ui/form/SubmitButton.js +1 -1
  477. package/ui/form/SubmitButton.tsx +2 -2
  478. package/ui/form/TextInput.d.ts +2 -2
  479. package/ui/form/TextInput.js +1 -1
  480. package/ui/form/TextInput.tsx +2 -2
  481. package/ui/inline/Code.d.ts +2 -2
  482. package/ui/inline/Code.js +1 -1
  483. package/ui/inline/Code.tsx +2 -2
  484. package/ui/inline/Deleted.d.ts +2 -2
  485. package/ui/inline/Deleted.js +1 -1
  486. package/ui/inline/Deleted.tsx +2 -2
  487. package/ui/inline/Emphasis.d.ts +2 -2
  488. package/ui/inline/Emphasis.js +1 -1
  489. package/ui/inline/Emphasis.tsx +2 -2
  490. package/ui/inline/Inserted.d.ts +2 -2
  491. package/ui/inline/Inserted.js +1 -1
  492. package/ui/inline/Inserted.tsx +2 -2
  493. package/ui/inline/Link.d.ts +2 -2
  494. package/ui/inline/Link.js +1 -1
  495. package/ui/inline/Link.tsx +2 -2
  496. package/ui/inline/Mark.d.ts +2 -2
  497. package/ui/inline/Mark.js +1 -1
  498. package/ui/inline/Mark.tsx +2 -2
  499. package/ui/inline/Small.d.ts +2 -2
  500. package/ui/inline/Small.js +1 -1
  501. package/ui/inline/Small.tsx +2 -2
  502. package/ui/inline/Strong.d.ts +2 -2
  503. package/ui/inline/Strong.js +1 -1
  504. package/ui/inline/Strong.tsx +2 -2
  505. package/ui/inline/Subscript.d.ts +2 -2
  506. package/ui/inline/Subscript.js +1 -1
  507. package/ui/inline/Subscript.tsx +2 -2
  508. package/ui/inline/Superscript.d.ts +2 -2
  509. package/ui/inline/Superscript.js +1 -1
  510. package/ui/inline/Superscript.tsx +2 -2
  511. package/ui/inline/When.d.ts +6 -6
  512. package/ui/inline/When.js +3 -3
  513. package/ui/inline/When.tsx +6 -6
  514. package/ui/layout/CenteredLayout.d.ts +2 -2
  515. package/ui/layout/CenteredLayout.js +1 -1
  516. package/ui/layout/CenteredLayout.tsx +2 -2
  517. package/ui/layout/Layout.d.ts +1 -1
  518. package/ui/layout/Layout.js +1 -1
  519. package/ui/layout/Layout.ts +1 -1
  520. package/ui/layout/SidebarLayout.d.ts +2 -2
  521. package/ui/layout/SidebarLayout.js +1 -1
  522. package/ui/layout/SidebarLayout.tsx +2 -2
  523. package/ui/menu/Menu.d.ts +4 -4
  524. package/ui/menu/Menu.js +2 -2
  525. package/ui/menu/Menu.tsx +4 -4
  526. package/ui/misc/Catcher.d.ts +11 -11
  527. package/ui/misc/Catcher.js +5 -5
  528. package/ui/misc/Catcher.tsx +11 -11
  529. package/ui/misc/Icon.d.ts +4 -4
  530. package/ui/misc/Icon.js +2 -2
  531. package/ui/misc/Icon.tsx +4 -4
  532. package/ui/misc/Loading.d.ts +3 -3
  533. package/ui/misc/Loading.js +2 -2
  534. package/ui/misc/Loading.tsx +3 -3
  535. package/ui/misc/Mapper.d.ts +4 -4
  536. package/ui/misc/Mapper.js +1 -1
  537. package/ui/misc/Mapper.tsx +4 -4
  538. package/ui/misc/Markup.d.ts +2 -2
  539. package/ui/misc/Markup.js +1 -1
  540. package/ui/misc/Markup.tsx +2 -2
  541. package/ui/misc/MetaContext.d.ts +4 -4
  542. package/ui/misc/MetaContext.js +3 -3
  543. package/ui/misc/MetaContext.tsx +4 -4
  544. package/ui/misc/Tag.d.ts +4 -4
  545. package/ui/misc/Tag.js +2 -2
  546. package/ui/misc/Tag.tsx +4 -4
  547. package/ui/notice/Message.d.ts +3 -3
  548. package/ui/notice/Message.js +2 -2
  549. package/ui/notice/Message.tsx +3 -3
  550. package/ui/notice/Notice.d.ts +3 -3
  551. package/ui/notice/Notice.js +2 -2
  552. package/ui/notice/Notice.tsx +3 -3
  553. package/ui/notice/NoticeStore.d.ts +3 -3
  554. package/ui/notice/NoticeStore.js +3 -3
  555. package/ui/notice/NoticeStore.ts +3 -3
  556. package/ui/notice/Notices.d.ts +2 -2
  557. package/ui/notice/Notices.js +1 -1
  558. package/ui/notice/Notices.tsx +2 -2
  559. package/ui/notice/NoticesStore.d.ts +3 -3
  560. package/ui/notice/NoticesStore.js +3 -3
  561. package/ui/notice/NoticesStore.ts +3 -3
  562. package/ui/page/HTML.d.ts +2 -2
  563. package/ui/page/HTML.js +1 -1
  564. package/ui/page/HTML.tsx +2 -2
  565. package/ui/page/Head.d.ts +1 -1
  566. package/ui/page/Head.js +1 -1
  567. package/ui/page/Head.tsx +1 -1
  568. package/ui/page/Page.d.ts +2 -2
  569. package/ui/page/Page.js +1 -1
  570. package/ui/page/Page.tsx +2 -2
  571. package/ui/router/Navigation.d.ts +2 -2
  572. package/ui/router/Navigation.js +1 -1
  573. package/ui/router/Navigation.tsx +2 -2
  574. package/ui/router/NavigationContext.d.ts +2 -2
  575. package/ui/router/NavigationContext.js +2 -2
  576. package/ui/router/NavigationContext.tsx +2 -2
  577. package/ui/router/NavigationStore.d.ts +3 -3
  578. package/ui/router/NavigationStore.js +3 -3
  579. package/ui/router/NavigationStore.tsx +3 -3
  580. package/ui/router/RouteCache.d.ts +2 -2
  581. package/ui/router/RouteCache.js +1 -1
  582. package/ui/router/RouteCache.tsx +2 -2
  583. package/ui/router/Router.d.ts +2 -2
  584. package/ui/router/Router.js +1 -1
  585. package/ui/router/Router.tsx +2 -2
  586. package/ui/router/Routes.d.ts +4 -4
  587. package/ui/router/Routes.tsx +4 -4
  588. package/ui/style/Color.d.ts +3 -3
  589. package/ui/style/Color.js +1 -1
  590. package/ui/style/Color.tsx +3 -3
  591. package/ui/style/Duration.d.ts +3 -3
  592. package/ui/style/Duration.js +1 -1
  593. package/ui/style/Duration.tsx +3 -3
  594. package/ui/style/Flex.d.ts +6 -6
  595. package/ui/style/Flex.js +3 -3
  596. package/ui/style/Flex.tsx +6 -6
  597. package/ui/style/Gap.d.ts +3 -3
  598. package/ui/style/Gap.js +1 -1
  599. package/ui/style/Gap.tsx +3 -3
  600. package/ui/style/Indent.d.ts +24 -0
  601. package/ui/style/Indent.js +13 -0
  602. package/ui/style/Indent.module.css +62 -0
  603. package/ui/style/Indent.tsx +49 -0
  604. package/ui/style/Padding.d.ts +3 -3
  605. package/ui/style/Padding.js +1 -1
  606. package/ui/style/Padding.tsx +3 -3
  607. package/ui/style/Radius.d.ts +3 -3
  608. package/ui/style/Radius.js +1 -1
  609. package/ui/style/Radius.tsx +3 -3
  610. package/ui/style/Scroll.d.ts +4 -4
  611. package/ui/style/Scroll.js +2 -2
  612. package/ui/style/Scroll.tsx +4 -4
  613. package/ui/style/Shadow.d.ts +3 -3
  614. package/ui/style/Shadow.js +1 -1
  615. package/ui/style/Shadow.tsx +3 -3
  616. package/ui/style/Space.d.ts +3 -3
  617. package/ui/style/Space.js +1 -1
  618. package/ui/style/Space.tsx +3 -3
  619. package/ui/style/Status.d.ts +4 -4
  620. package/ui/style/Status.js +2 -2
  621. package/ui/style/Status.tsx +4 -4
  622. package/ui/style/Stroke.d.ts +3 -3
  623. package/ui/style/Stroke.js +1 -1
  624. package/ui/style/Stroke.tsx +3 -3
  625. package/ui/style/Tint.d.ts +2 -2
  626. package/ui/style/Tint.js +1 -1
  627. package/ui/style/Tint.tsx +2 -2
  628. package/ui/style/Typography.d.ts +6 -6
  629. package/ui/style/Typography.js +1 -1
  630. package/ui/style/Typography.tsx +6 -6
  631. package/ui/style/Width.d.ts +3 -3
  632. package/ui/style/Width.js +1 -1
  633. package/ui/style/Width.tsx +3 -3
  634. package/ui/style/getSpaceClass.md +2 -2
  635. package/ui/style/index.d.ts +1 -0
  636. package/ui/style/index.js +1 -0
  637. package/ui/style/index.tsx +1 -0
  638. package/ui/table/Cell.d.ts +2 -2
  639. package/ui/table/Cell.js +1 -1
  640. package/ui/table/Cell.tsx +2 -2
  641. package/ui/table/Table.d.ts +2 -2
  642. package/ui/table/Table.js +1 -1
  643. package/ui/table/Table.tsx +2 -2
  644. package/ui/transition/CollapseTransition.d.ts +2 -2
  645. package/ui/transition/CollapseTransition.js +1 -1
  646. package/ui/transition/CollapseTransition.tsx +2 -2
  647. package/ui/transition/FadeTransition.d.ts +2 -2
  648. package/ui/transition/FadeTransition.js +1 -1
  649. package/ui/transition/FadeTransition.tsx +2 -2
  650. package/ui/transition/HorizontalTransition.d.ts +2 -2
  651. package/ui/transition/HorizontalTransition.js +1 -1
  652. package/ui/transition/HorizontalTransition.tsx +2 -2
  653. package/ui/transition/Transition.d.ts +2 -2
  654. package/ui/transition/Transition.js +1 -1
  655. package/ui/transition/Transition.tsx +2 -2
  656. package/ui/transition/VerticalTransition.d.ts +2 -2
  657. package/ui/transition/VerticalTransition.js +1 -1
  658. package/ui/transition/VerticalTransition.tsx +2 -2
  659. package/ui/transition/util.d.ts +3 -3
  660. package/ui/transition/util.js +1 -1
  661. package/ui/transition/util.tsx +3 -3
  662. package/ui/tree/TreeApp.d.ts +2 -2
  663. package/ui/tree/TreeApp.js +1 -1
  664. package/ui/tree/TreeApp.tsx +2 -2
  665. package/ui/tree/TreeBreadcrumbs.d.ts +2 -2
  666. package/ui/tree/TreeBreadcrumbs.js +1 -1
  667. package/ui/tree/TreeBreadcrumbs.tsx +2 -2
  668. package/ui/tree/TreeButton.d.ts +2 -2
  669. package/ui/tree/TreeButton.js +1 -1
  670. package/ui/tree/TreeButton.tsx +2 -2
  671. package/ui/tree/TreeCard.d.ts +1 -1
  672. package/ui/tree/TreeCard.js +1 -1
  673. package/ui/tree/TreeCard.tsx +1 -1
  674. package/ui/tree/TreeCards.d.ts +3 -3
  675. package/ui/tree/TreeCards.js +2 -2
  676. package/ui/tree/TreeCards.tsx +3 -3
  677. package/ui/tree/TreeContext.d.ts +4 -4
  678. package/ui/tree/TreeContext.js +4 -4
  679. package/ui/tree/TreeContext.tsx +4 -4
  680. package/ui/tree/TreeIndexPage.d.ts +1 -1
  681. package/ui/tree/TreeIndexPage.js +3 -2
  682. package/ui/tree/TreeIndexPage.tsx +28 -25
  683. package/ui/tree/TreeLink.d.ts +2 -2
  684. package/ui/tree/TreeLink.js +1 -1
  685. package/ui/tree/TreeLink.tsx +2 -2
  686. package/ui/tree/TreeMarkup.d.ts +3 -3
  687. package/ui/tree/TreeMarkup.js +3 -3
  688. package/ui/tree/TreeMarkup.tsx +3 -3
  689. package/ui/tree/TreeMenu.d.ts +5 -5
  690. package/ui/tree/TreeMenu.js +4 -4
  691. package/ui/tree/TreeMenu.tsx +5 -5
  692. package/ui/tree/TreePage.d.ts +1 -1
  693. package/ui/tree/TreePage.js +3 -2
  694. package/ui/tree/TreePage.tsx +17 -14
  695. package/ui/tree/TreeRouter.d.ts +3 -3
  696. package/ui/tree/TreeRouter.js +2 -2
  697. package/ui/tree/TreeRouter.tsx +3 -3
  698. package/ui/tree/TreeSidebar.d.ts +2 -2
  699. package/ui/tree/TreeSidebar.js +1 -1
  700. package/ui/tree/TreeSidebar.tsx +2 -2
  701. package/ui/util/context.d.ts +1 -1
  702. package/ui/util/context.ts +1 -1
  703. package/ui/util/css.d.ts +5 -5
  704. package/ui/util/css.js +2 -2
  705. package/ui/util/css.ts +5 -5
  706. package/ui/util/event.d.ts +1 -1
  707. package/ui/util/event.js +1 -1
  708. package/ui/util/event.ts +1 -1
  709. package/ui/util/focus.d.ts +3 -3
  710. package/ui/util/focus.js +3 -3
  711. package/ui/util/focus.ts +3 -3
  712. package/ui/util/meta.d.ts +16 -16
  713. package/ui/util/meta.js +8 -8
  714. package/ui/util/meta.ts +16 -16
  715. package/ui/util/notice.d.ts +10 -10
  716. package/ui/util/notice.js +9 -9
  717. package/ui/util/notice.ts +10 -10
  718. package/ui/util/props.d.ts +2 -2
  719. package/ui/util/props.ts +2 -2
  720. package/ui/util/refresh.d.ts +1 -1
  721. package/ui/util/refresh.js +1 -1
  722. package/ui/util/refresh.ts +1 -1
  723. package/ui/util/scroll.d.ts +2 -2
  724. package/ui/util/scroll.js +2 -2
  725. package/ui/util/scroll.ts +2 -2
  726. package/ui/util/state.d.ts +2 -2
  727. package/ui/util/state.js +2 -2
  728. package/ui/util/state.ts +2 -2
  729. package/util/ansi.d.ts +24 -24
  730. package/util/ansi.js +23 -23
  731. package/util/array.d.ts +37 -37
  732. package/util/array.js +29 -29
  733. package/util/async.d.ts +15 -15
  734. package/util/async.js +13 -13
  735. package/util/base64.d.ts +6 -6
  736. package/util/base64.js +6 -6
  737. package/util/boolean.d.ts +10 -10
  738. package/util/boolean.js +10 -10
  739. package/util/buffer.d.ts +4 -4
  740. package/util/buffer.js +3 -3
  741. package/util/bytes.d.ts +6 -6
  742. package/util/bytes.js +4 -4
  743. package/util/class.d.ts +8 -8
  744. package/util/class.js +5 -5
  745. package/util/color.d.ts +21 -21
  746. package/util/color.js +20 -20
  747. package/util/constants.d.ts +26 -26
  748. package/util/constants.js +26 -26
  749. package/util/crypto.d.ts +3 -3
  750. package/util/crypto.js +3 -3
  751. package/util/currency.d.ts +6 -6
  752. package/util/currency.js +5 -5
  753. package/util/data.d.ts +26 -26
  754. package/util/data.js +4 -4
  755. package/util/date.d.ts +19 -19
  756. package/util/date.js +18 -18
  757. package/util/debug.d.ts +12 -12
  758. package/util/debug.js +12 -12
  759. package/util/dictionary.d.ts +24 -24
  760. package/util/dictionary.js +17 -17
  761. package/util/diff.d.ts +4 -4
  762. package/util/diff.js +2 -2
  763. package/util/dispose.d.ts +13 -13
  764. package/util/dispose.js +13 -13
  765. package/util/duration.d.ts +31 -31
  766. package/util/duration.js +29 -29
  767. package/util/element.d.ts +10 -10
  768. package/util/element.js +5 -5
  769. package/util/entity.d.ts +6 -6
  770. package/util/entity.js +1 -1
  771. package/util/entry.d.ts +9 -9
  772. package/util/entry.js +4 -4
  773. package/util/env.d.ts +4 -4
  774. package/util/env.js +4 -4
  775. package/util/equal.d.ts +22 -22
  776. package/util/equal.js +22 -22
  777. package/util/error.d.ts +8 -8
  778. package/util/error.js +7 -7
  779. package/util/file.d.ts +4 -4
  780. package/util/file.js +3 -3
  781. package/util/filter.d.ts +4 -4
  782. package/util/filter.js +3 -3
  783. package/util/focus.d.ts +1 -1
  784. package/util/focus.js +1 -1
  785. package/util/format.d.ts +27 -27
  786. package/util/format.js +15 -15
  787. package/util/function.d.ts +11 -11
  788. package/util/function.js +4 -4
  789. package/util/geo.d.ts +8 -8
  790. package/util/geo.js +5 -5
  791. package/util/hash.d.ts +2 -2
  792. package/util/hash.js +2 -2
  793. package/util/http.d.ts +26 -26
  794. package/util/http.js +18 -18
  795. package/util/hydrate.d.ts +4 -4
  796. package/util/hydrate.js +2 -2
  797. package/util/item.d.ts +11 -11
  798. package/util/item.js +4 -4
  799. package/util/iterate.d.ts +13 -13
  800. package/util/iterate.js +10 -10
  801. package/util/jwt.d.ts +9 -9
  802. package/util/jwt.js +7 -7
  803. package/util/lazy.d.ts +2 -2
  804. package/util/link.d.ts +3 -3
  805. package/util/link.js +2 -2
  806. package/util/log.d.ts +3 -3
  807. package/util/log.js +3 -3
  808. package/util/map.d.ts +19 -19
  809. package/util/map.js +11 -11
  810. package/util/merge.d.ts +5 -5
  811. package/util/merge.js +1 -1
  812. package/util/null.d.ts +13 -13
  813. package/util/null.js +11 -11
  814. package/util/number.d.ts +18 -18
  815. package/util/number.js +17 -17
  816. package/util/object.d.ts +35 -35
  817. package/util/object.js +17 -17
  818. package/util/path.d.ts +14 -14
  819. package/util/path.js +8 -8
  820. package/util/query.d.ts +10 -10
  821. package/util/query.js +7 -7
  822. package/util/random.d.ts +5 -5
  823. package/util/random.js +5 -5
  824. package/util/regexp.d.ts +26 -26
  825. package/util/regexp.js +13 -13
  826. package/util/sequence.d.ts +8 -8
  827. package/util/sequence.js +6 -6
  828. package/util/serialise.d.ts +1 -1
  829. package/util/serialise.js +1 -1
  830. package/util/set.d.ts +13 -13
  831. package/util/set.js +9 -9
  832. package/util/sort.d.ts +4 -4
  833. package/util/sort.js +3 -3
  834. package/util/source.d.ts +3 -3
  835. package/util/source.js +2 -2
  836. package/util/start.d.ts +8 -8
  837. package/util/start.js +5 -5
  838. package/util/string.d.ts +28 -28
  839. package/util/string.js +24 -24
  840. package/util/template.d.ts +10 -10
  841. package/util/template.js +7 -7
  842. package/util/timeout.d.ts +5 -5
  843. package/util/timeout.js +5 -5
  844. package/util/transform.d.ts +9 -9
  845. package/util/transform.js +7 -7
  846. package/util/tree.d.ts +12 -12
  847. package/util/tree.js +2 -2
  848. package/util/types.d.ts +2 -2
  849. package/util/undefined.d.ts +6 -6
  850. package/util/undefined.js +6 -6
  851. package/util/units.d.ts +16 -16
  852. package/util/units.js +14 -14
  853. package/util/update.d.ts +4 -4
  854. package/util/update.js +2 -2
  855. package/util/uri.d.ts +26 -26
  856. package/util/uri.js +6 -6
  857. package/util/url.d.ts +16 -16
  858. package/util/url.js +11 -11
  859. package/util/uuid.d.ts +3 -3
  860. package/util/uuid.js +3 -3
  861. package/util/validate.d.ts +11 -11
  862. package/util/validate.js +6 -6
  863. package/util/xml.d.ts +2 -2
  864. package/util/xml.js +2 -2
package/README.md CHANGED
@@ -6,7 +6,7 @@ TypeScript data toolkit — schema validation, database and API providers, obser
6
6
 
7
7
  ## Documentation
8
8
 
9
- Full documentation is published at **<https://dhoulb.github.io/shelving/>**.
9
+ Full documentation is published at **<https://shelving.cc/>**.
10
10
 
11
11
  ```sh
12
12
  npm install shelving
@@ -11,14 +11,14 @@ import { EndpointCache } from "./EndpointCache.js";
11
11
  * const cache = new APICache(provider);
12
12
  * const user = await cache.call(getUser, { id: "abc" });
13
13
  *
14
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache
14
+ * @see https://shelving.cc/api/APICache
15
15
  */
16
16
  export declare class APICache<P, R> implements AsyncDisposable {
17
17
  private readonly _endpoints;
18
18
  /**
19
19
  * The underlying `APIProvider` that backs every cached endpoint.
20
20
  *
21
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/provider
21
+ * @see https://shelving.cc/api/APICache/provider
22
22
  */
23
23
  readonly provider: APIProvider<P, R>;
24
24
  /**
@@ -26,7 +26,7 @@ export declare class APICache<P, R> implements AsyncDisposable {
26
26
  *
27
27
  * @param provider The `APIProvider` used to fetch results for every cached endpoint.
28
28
  * @example new APICache(provider)
29
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache
29
+ * @see https://shelving.cc/api/APICache
30
30
  */
31
31
  constructor(provider: APIProvider<P, R>);
32
32
  private _get;
@@ -36,7 +36,7 @@ export declare class APICache<P, R> implements AsyncDisposable {
36
36
  * @param endpoint The endpoint whose `EndpointCache` should be returned.
37
37
  * @returns The existing `EndpointCache` for `endpoint`, or a newly created one.
38
38
  * @example cache.get(getUser).get({ id: "abc" })
39
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/get
39
+ * @see https://shelving.cc/api/APICache/get
40
40
  */
41
41
  get<PP extends P, RR extends R>(endpoint: Endpoint<PP, RR>): EndpointCache<PP, RR>;
42
42
  /**
@@ -52,7 +52,7 @@ export declare class APICache<P, R> implements AsyncDisposable {
52
52
  * @returns The cached or freshly fetched result.
53
53
  * @throws Whatever `APIProvider.call` throws if the fetch fails.
54
54
  * @example await cache.call(getUser, { id: "abc" })
55
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/call
55
+ * @see https://shelving.cc/api/APICache/call
56
56
  */
57
57
  call<PP extends P, RR extends R>(endpoint: Endpoint<PP, RR>, payload: PP, maxAge?: number, caller?: AnyCaller): Promise<RR>;
58
58
  /**
@@ -61,7 +61,7 @@ export declare class APICache<P, R> implements AsyncDisposable {
61
61
  * @param endpoint The endpoint whose cached payload should be invalidated.
62
62
  * @param payload The payload identifying the specific store to invalidate.
63
63
  * @example cache.invalidate(getUser, { id: "abc" })
64
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/invalidate
64
+ * @see https://shelving.cc/api/APICache/invalidate
65
65
  */
66
66
  invalidate<PP extends P, RR extends R>(endpoint: Endpoint<PP, RR>, payload: PP): void;
67
67
  /**
@@ -69,7 +69,7 @@ export declare class APICache<P, R> implements AsyncDisposable {
69
69
  *
70
70
  * @param endpoint The endpoint whose stores should all be invalidated.
71
71
  * @example cache.invalidateAll(getUser)
72
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/invalidateAll
72
+ * @see https://shelving.cc/api/APICache/invalidateAll
73
73
  */
74
74
  invalidateAll<PP extends P, RR extends R>(endpoint: Endpoint<PP, RR>): void;
75
75
  /**
@@ -79,7 +79,7 @@ export declare class APICache<P, R> implements AsyncDisposable {
79
79
  * @param payload The payload identifying the specific store to refresh.
80
80
  * @param maxAge The maximum age in milliseconds before a refetch is triggered.
81
81
  * @example cache.refresh(getUser, { id: "abc" })
82
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/refresh
82
+ * @see https://shelving.cc/api/APICache/refresh
83
83
  */
84
84
  refresh<PP extends P, RR extends R>(endpoint: Endpoint<PP, RR>, payload: PP, maxAge?: number): void;
85
85
  /**
@@ -88,7 +88,7 @@ export declare class APICache<P, R> implements AsyncDisposable {
88
88
  * @param endpoint The endpoint whose stores should all be refreshed.
89
89
  * @param maxAge The maximum age in milliseconds before a refetch is triggered.
90
90
  * @example cache.refreshAll(getUser)
91
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/refreshAll
91
+ * @see https://shelving.cc/api/APICache/refreshAll
92
92
  */
93
93
  refreshAll<PP extends P, RR extends R>(endpoint: Endpoint<PP, RR>, maxAge?: number): void;
94
94
  [Symbol.asyncDispose](): Promise<void>;
@@ -11,14 +11,14 @@ import { EndpointCache } from "./EndpointCache.js";
11
11
  * const cache = new APICache(provider);
12
12
  * const user = await cache.call(getUser, { id: "abc" });
13
13
  *
14
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache
14
+ * @see https://shelving.cc/api/APICache
15
15
  */
16
16
  export class APICache {
17
17
  _endpoints = new Map();
18
18
  /**
19
19
  * The underlying `APIProvider` that backs every cached endpoint.
20
20
  *
21
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/provider
21
+ * @see https://shelving.cc/api/APICache/provider
22
22
  */
23
23
  provider;
24
24
  /**
@@ -26,7 +26,7 @@ export class APICache {
26
26
  *
27
27
  * @param provider The `APIProvider` used to fetch results for every cached endpoint.
28
28
  * @example new APICache(provider)
29
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache
29
+ * @see https://shelving.cc/api/APICache
30
30
  */
31
31
  constructor(provider) {
32
32
  this.provider = provider;
@@ -50,7 +50,7 @@ export class APICache {
50
50
  * @returns The cached or freshly fetched result.
51
51
  * @throws Whatever `APIProvider.call` throws if the fetch fails.
52
52
  * @example await cache.call(getUser, { id: "abc" })
53
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/call
53
+ * @see https://shelving.cc/api/APICache/call
54
54
  */
55
55
  async call(endpoint, payload, maxAge = AVOID_REFRESH, caller = this.call) {
56
56
  return this.get(endpoint).call(payload, maxAge, caller);
@@ -61,7 +61,7 @@ export class APICache {
61
61
  * @param endpoint The endpoint whose cached payload should be invalidated.
62
62
  * @param payload The payload identifying the specific store to invalidate.
63
63
  * @example cache.invalidate(getUser, { id: "abc" })
64
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/invalidate
64
+ * @see https://shelving.cc/api/APICache/invalidate
65
65
  */
66
66
  invalidate(endpoint, payload) {
67
67
  this._get(endpoint)?.invalidate(payload);
@@ -71,7 +71,7 @@ export class APICache {
71
71
  *
72
72
  * @param endpoint The endpoint whose stores should all be invalidated.
73
73
  * @example cache.invalidateAll(getUser)
74
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/invalidateAll
74
+ * @see https://shelving.cc/api/APICache/invalidateAll
75
75
  */
76
76
  invalidateAll(endpoint) {
77
77
  this._get(endpoint)?.invalidateAll();
@@ -83,7 +83,7 @@ export class APICache {
83
83
  * @param payload The payload identifying the specific store to refresh.
84
84
  * @param maxAge The maximum age in milliseconds before a refetch is triggered.
85
85
  * @example cache.refresh(getUser, { id: "abc" })
86
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/refresh
86
+ * @see https://shelving.cc/api/APICache/refresh
87
87
  */
88
88
  refresh(endpoint, payload, maxAge) {
89
89
  this._get(endpoint)?.refresh(payload, maxAge);
@@ -94,7 +94,7 @@ export class APICache {
94
94
  * @param endpoint The endpoint whose stores should all be refreshed.
95
95
  * @param maxAge The maximum age in milliseconds before a refetch is triggered.
96
96
  * @example cache.refreshAll(getUser)
97
- * @see https://dhoulb.github.io/shelving/api/cache/APICache/APICache/refreshAll
97
+ * @see https://shelving.cc/api/APICache/refreshAll
98
98
  */
99
99
  refreshAll(endpoint, maxAge) {
100
100
  this._get(endpoint)?.refreshAll(maxAge);
@@ -11,20 +11,20 @@ import { EndpointStore } from "../store/EndpointStore.js";
11
11
  * const cache = new EndpointCache(getUser, provider);
12
12
  * const user = await cache.call({ id: "abc" });
13
13
  *
14
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache
14
+ * @see https://shelving.cc/api/EndpointCache
15
15
  */
16
16
  export declare class EndpointCache<P = unknown, R = unknown> implements AsyncDisposable {
17
17
  private readonly _endpoints;
18
18
  /**
19
19
  * The endpoint that every store in this cache fetches from.
20
20
  *
21
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/endpoint
21
+ * @see https://shelving.cc/api/EndpointCache/endpoint
22
22
  */
23
23
  readonly endpoint: Endpoint<P, R>;
24
24
  /**
25
25
  * The `APIProvider` used to render URLs and fetch results for this endpoint.
26
26
  *
27
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/provider
27
+ * @see https://shelving.cc/api/EndpointCache/provider
28
28
  */
29
29
  readonly provider: APIProvider<P, R>;
30
30
  /**
@@ -33,7 +33,7 @@ export declare class EndpointCache<P = unknown, R = unknown> implements AsyncDis
33
33
  * @param endpoint The endpoint that every cached store fetches from.
34
34
  * @param provider The `APIProvider` used to render URLs and fetch results.
35
35
  * @example new EndpointCache(getUser, provider)
36
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache
36
+ * @see https://shelving.cc/api/EndpointCache
37
37
  */
38
38
  constructor(endpoint: Endpoint<P, R>, provider: APIProvider<P, R>);
39
39
  /**
@@ -44,7 +44,7 @@ export declare class EndpointCache<P = unknown, R = unknown> implements AsyncDis
44
44
  * @param caller The function to attribute thrown errors to (defaults to this method).
45
45
  * @returns The existing `EndpointStore` for `payload`, or a newly created one.
46
46
  * @example cache.get({ id: "abc" })
47
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/get
47
+ * @see https://shelving.cc/api/EndpointCache/get
48
48
  */
49
49
  get(payload: P, caller?: AnyCaller): EndpointStore<P, R>;
50
50
  /**
@@ -59,7 +59,7 @@ export declare class EndpointCache<P = unknown, R = unknown> implements AsyncDis
59
59
  * @returns The cached or freshly fetched result.
60
60
  * @throws Whatever `APIProvider.call` throws if the fetch fails.
61
61
  * @example await cache.call({ id: "abc" })
62
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/call
62
+ * @see https://shelving.cc/api/EndpointCache/call
63
63
  */
64
64
  call(payload: P, maxAge?: number, caller?: AnyCaller): Promise<R>;
65
65
  /**
@@ -68,14 +68,14 @@ export declare class EndpointCache<P = unknown, R = unknown> implements AsyncDis
68
68
  * @param payload The payload identifying the store to invalidate.
69
69
  * @param caller The function to attribute thrown errors to (defaults to this method).
70
70
  * @example cache.invalidate({ id: "abc" })
71
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/invalidate
71
+ * @see https://shelving.cc/api/EndpointCache/invalidate
72
72
  */
73
73
  invalidate(payload: P, caller?: AnyCaller): void;
74
74
  /**
75
75
  * Invalidate all stores so the next read of any payload refetches.
76
76
  *
77
77
  * @example cache.invalidateAll()
78
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/invalidateAll
78
+ * @see https://shelving.cc/api/EndpointCache/invalidateAll
79
79
  */
80
80
  invalidateAll(): void;
81
81
  /**
@@ -86,7 +86,7 @@ export declare class EndpointCache<P = unknown, R = unknown> implements AsyncDis
86
86
  * @param caller The function to attribute thrown errors to (defaults to this method).
87
87
  * @returns A promise that resolves when the refetch settles.
88
88
  * @example await cache.refresh({ id: "abc" })
89
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/refresh
89
+ * @see https://shelving.cc/api/EndpointCache/refresh
90
90
  */
91
91
  refresh(payload: P, maxAge?: number, caller?: AnyCaller): Promise<void>;
92
92
  /**
@@ -95,7 +95,7 @@ export declare class EndpointCache<P = unknown, R = unknown> implements AsyncDis
95
95
  * @param maxAge The maximum age in milliseconds before a refetch is triggered.
96
96
  * @returns A promise that resolves when every refetch settles.
97
97
  * @example await cache.refreshAll()
98
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/refreshAll
98
+ * @see https://shelving.cc/api/EndpointCache/refreshAll
99
99
  */
100
100
  refreshAll(maxAge?: number): Promise<void>;
101
101
  [Symbol.asyncDispose](): Promise<void>;
@@ -12,20 +12,20 @@ import { EndpointStore } from "../store/EndpointStore.js";
12
12
  * const cache = new EndpointCache(getUser, provider);
13
13
  * const user = await cache.call({ id: "abc" });
14
14
  *
15
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache
15
+ * @see https://shelving.cc/api/EndpointCache
16
16
  */
17
17
  export class EndpointCache {
18
18
  _endpoints = new Map();
19
19
  /**
20
20
  * The endpoint that every store in this cache fetches from.
21
21
  *
22
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/endpoint
22
+ * @see https://shelving.cc/api/EndpointCache/endpoint
23
23
  */
24
24
  endpoint;
25
25
  /**
26
26
  * The `APIProvider` used to render URLs and fetch results for this endpoint.
27
27
  *
28
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/provider
28
+ * @see https://shelving.cc/api/EndpointCache/provider
29
29
  */
30
30
  provider;
31
31
  /**
@@ -34,7 +34,7 @@ export class EndpointCache {
34
34
  * @param endpoint The endpoint that every cached store fetches from.
35
35
  * @param provider The `APIProvider` used to render URLs and fetch results.
36
36
  * @example new EndpointCache(getUser, provider)
37
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache
37
+ * @see https://shelving.cc/api/EndpointCache
38
38
  */
39
39
  constructor(endpoint, provider) {
40
40
  this.endpoint = endpoint;
@@ -48,7 +48,7 @@ export class EndpointCache {
48
48
  * @param caller The function to attribute thrown errors to (defaults to this method).
49
49
  * @returns The existing `EndpointStore` for `payload`, or a newly created one.
50
50
  * @example cache.get({ id: "abc" })
51
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/get
51
+ * @see https://shelving.cc/api/EndpointCache/get
52
52
  */
53
53
  get(payload, caller = this.get) {
54
54
  const url = this.provider.renderURL(this.endpoint, payload, caller).href;
@@ -66,7 +66,7 @@ export class EndpointCache {
66
66
  * @returns The cached or freshly fetched result.
67
67
  * @throws Whatever `APIProvider.call` throws if the fetch fails.
68
68
  * @example await cache.call({ id: "abc" })
69
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/call
69
+ * @see https://shelving.cc/api/EndpointCache/call
70
70
  */
71
71
  async call(payload, maxAge = AVOID_REFRESH, caller = this.call) {
72
72
  const store = this.get(payload, caller);
@@ -79,7 +79,7 @@ export class EndpointCache {
79
79
  * @param payload The payload identifying the store to invalidate.
80
80
  * @param caller The function to attribute thrown errors to (defaults to this method).
81
81
  * @example cache.invalidate({ id: "abc" })
82
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/invalidate
82
+ * @see https://shelving.cc/api/EndpointCache/invalidate
83
83
  */
84
84
  invalidate(payload, caller = this.invalidate) {
85
85
  this.get(payload, caller)?.invalidate();
@@ -88,7 +88,7 @@ export class EndpointCache {
88
88
  * Invalidate all stores so the next read of any payload refetches.
89
89
  *
90
90
  * @example cache.invalidateAll()
91
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/invalidateAll
91
+ * @see https://shelving.cc/api/EndpointCache/invalidateAll
92
92
  */
93
93
  invalidateAll() {
94
94
  for (const store of this._endpoints.values())
@@ -102,7 +102,7 @@ export class EndpointCache {
102
102
  * @param caller The function to attribute thrown errors to (defaults to this method).
103
103
  * @returns A promise that resolves when the refetch settles.
104
104
  * @example await cache.refresh({ id: "abc" })
105
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/refresh
105
+ * @see https://shelving.cc/api/EndpointCache/refresh
106
106
  */
107
107
  async refresh(payload, maxAge, caller = this.invalidate) {
108
108
  await this.get(payload, caller)?.refresh(maxAge);
@@ -113,7 +113,7 @@ export class EndpointCache {
113
113
  * @param maxAge The maximum age in milliseconds before a refetch is triggered.
114
114
  * @returns A promise that resolves when every refetch settles.
115
115
  * @example await cache.refreshAll()
116
- * @see https://dhoulb.github.io/shelving/api/cache/EndpointCache/EndpointCache/refreshAll
116
+ * @see https://shelving.cc/api/EndpointCache/refreshAll
117
117
  */
118
118
  async refreshAll(maxAge) {
119
119
  await awaitValues(...this._endpoints.values().map(store => store.refresh(maxAge)));
@@ -19,37 +19,37 @@ import type { EndpointCallback, EndpointHandler } from "./util.js";
19
19
  * @example
20
20
  * const getUser = new Endpoint("GET", "/users/{id}", USER_PAYLOAD, USER_RESULT);
21
21
  *
22
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint
22
+ * @see https://shelving.cc/api/Endpoint
23
23
  */
24
24
  export declare class Endpoint<P = unknown, R = unknown> {
25
25
  /**
26
26
  * The HTTP method this endpoint responds to, e.g. `GET`
27
27
  *
28
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/method
28
+ * @see https://shelving.cc/api/Endpoint/method
29
29
  */
30
30
  readonly method: RequestMethod;
31
31
  /**
32
32
  * Endpoint path, possibly including placeholders e.g. `/users/{id}`
33
33
  *
34
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/path
34
+ * @see https://shelving.cc/api/Endpoint/path
35
35
  */
36
36
  readonly path: AbsolutePath;
37
37
  /**
38
38
  * The `{placeholder}` segments extracted from `path`, used to render and match URLs.
39
39
  *
40
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/placeholders
40
+ * @see https://shelving.cc/api/Endpoint/placeholders
41
41
  */
42
42
  readonly placeholders: TemplatePlaceholders;
43
43
  /**
44
44
  * The `Schema` that request payloads are validated against.
45
45
  *
46
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/payload
46
+ * @see https://shelving.cc/api/Endpoint/payload
47
47
  */
48
48
  readonly payload: Schema<P>;
49
49
  /**
50
50
  * The `Schema` that response results are validated against.
51
51
  *
52
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/result
52
+ * @see https://shelving.cc/api/Endpoint/result
53
53
  */
54
54
  readonly result: Schema<R>;
55
55
  constructor(method: RequestMethod, path: AbsolutePath, payload: Schema<P>, result: Schema<R>);
@@ -62,7 +62,7 @@ export declare class Endpoint<P = unknown, R = unknown> {
62
62
  * @returns The rendered absolute path, with any `{placeholders}` filled from `payload`.
63
63
  * @throws {RequiredError} if this endpoint's path has `{placeholders}` but `payload` is not a data object.
64
64
  * @example endpoint.renderPath({ id: "abc" }) // "/users/abc"
65
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/renderPath
65
+ * @see https://shelving.cc/api/Endpoint/renderPath
66
66
  */
67
67
  renderPath(payload: P, caller?: AnyCaller): AbsolutePath;
68
68
  /**
@@ -73,7 +73,7 @@ export declare class Endpoint<P = unknown, R = unknown> {
73
73
  * @param caller The function to attribute thrown errors to (defaults to this method).
74
74
  * @returns A dictionary of matched `{placeholder}` params, or `undefined` if the method or path doesn't match.
75
75
  * @example endpoint.match("GET", "/users/abc") // { id: "abc" }
76
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/match
76
+ * @see https://shelving.cc/api/Endpoint/match
77
77
  */
78
78
  match(method: RequestMethod, path: AbsolutePath, caller?: AnyCaller): RequestParams | undefined;
79
79
  /**
@@ -82,7 +82,7 @@ export declare class Endpoint<P = unknown, R = unknown> {
82
82
  * @param callback The callback function that implements the logic for this endpoint by receiving the payload and returning the response.
83
83
  * @returns An `EndpointHandler` object combining this endpoint and the callback into a single typed object.
84
84
  * @example endpoint.handler((payload, request) => ({ ...payload }))
85
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/handler
85
+ * @see https://shelving.cc/api/Endpoint/handler
86
86
  */
87
87
  handler<C>(callback: EndpointCallback<P, R, C>): EndpointHandler<P, R, C>;
88
88
  /**
@@ -90,32 +90,32 @@ export declare class Endpoint<P = unknown, R = unknown> {
90
90
  *
91
91
  * @returns The method and path joined with a space, e.g. `GET /user/{id}`
92
92
  * @example endpoint.toString() // "GET /users/{id}"
93
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/toString
93
+ * @see https://shelving.cc/api/Endpoint/toString
94
94
  */
95
95
  toString(): string;
96
96
  }
97
97
  /**
98
98
  * An `Endpoint` with any payload and result type, for use where the specific types don't matter.
99
99
  *
100
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/AnyEndpoint
100
+ * @see https://shelving.cc/api/AnyEndpoint
101
101
  */
102
102
  export type AnyEndpoint = Endpoint<any, any>;
103
103
  /**
104
104
  * An immutable list of endpoints.
105
105
  *
106
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoints
106
+ * @see https://shelving.cc/api/Endpoints
107
107
  */
108
108
  export type Endpoints = ImmutableArray<AnyEndpoint>;
109
109
  /**
110
110
  * Extract the payload type from an `Endpoint`.
111
111
  *
112
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/PayloadType
112
+ * @see https://shelving.cc/api/PayloadType
113
113
  */
114
114
  export type PayloadType<X extends Endpoint<unknown, unknown>> = X extends Endpoint<infer Y, unknown> ? Y : never;
115
115
  /**
116
116
  * Extract the result type from an `Endpoint`.
117
117
  *
118
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/EndpointType
118
+ * @see https://shelving.cc/api/EndpointType
119
119
  */
120
120
  export type EndpointType<X extends Endpoint<unknown, unknown>> = X extends Endpoint<unknown, infer Y> ? Y : never;
121
121
  /**
@@ -129,7 +129,7 @@ export type EndpointType<X extends Endpoint<unknown, unknown>> = X extends Endpo
129
129
  * @param result An optional `Schema` validating the response result.
130
130
  * @returns An `Endpoint` configured for the `HEAD` method.
131
131
  * @example HEAD("/users/{id}")
132
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/HEAD
132
+ * @see https://shelving.cc/api/HEAD
133
133
  */
134
134
  export declare function HEAD<P extends Data, R>(path: AbsolutePath, payload?: Schema<P>, result?: Schema<R>): Endpoint<P, R>;
135
135
  export declare function HEAD<P extends Data>(path: AbsolutePath, payload: Schema<P>): Endpoint<P, undefined>;
@@ -145,7 +145,7 @@ export declare function HEAD<R>(path: AbsolutePath, payload: undefined, result:
145
145
  * @param result An optional `Schema` validating the response result.
146
146
  * @returns An `Endpoint` configured for the `GET` method.
147
147
  * @example GET("/users/{id}", undefined, USER)
148
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/GET
148
+ * @see https://shelving.cc/api/GET
149
149
  */
150
150
  export declare function GET<P extends Data, R>(path: AbsolutePath, payload?: Schema<P>, result?: Schema<R>): Endpoint<P, R>;
151
151
  export declare function GET<P extends Data>(path: AbsolutePath, payload: Schema<P>): Endpoint<P, undefined>;
@@ -161,7 +161,7 @@ export declare function GET<R>(path: AbsolutePath, payload: undefined, result: S
161
161
  * @param result An optional `Schema` validating the response result.
162
162
  * @returns An `Endpoint` configured for the `POST` method.
163
163
  * @example POST("/users", USER, USER_RESULT)
164
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/POST
164
+ * @see https://shelving.cc/api/POST
165
165
  */
166
166
  export declare function POST<P, R>(path: AbsolutePath, payload?: Schema<P>, result?: Schema<R>): Endpoint<P, R>;
167
167
  export declare function POST<P>(path: AbsolutePath, payload: Schema<P>): Endpoint<P, undefined>;
@@ -177,7 +177,7 @@ export declare function POST<R>(path: AbsolutePath, payload: undefined, result:
177
177
  * @param result An optional `Schema` validating the response result.
178
178
  * @returns An `Endpoint` configured for the `PUT` method.
179
179
  * @example PUT("/users/{id}", USER)
180
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/PUT
180
+ * @see https://shelving.cc/api/PUT
181
181
  */
182
182
  export declare function PUT<P, R>(path: AbsolutePath, payload?: Schema<P>, result?: Schema<R>): Endpoint<P, R>;
183
183
  export declare function PUT<P>(path: AbsolutePath, payload: Schema<P>): Endpoint<P, undefined>;
@@ -193,7 +193,7 @@ export declare function PUT<R>(path: AbsolutePath, payload: undefined, result: S
193
193
  * @param result An optional `Schema` validating the response result.
194
194
  * @returns An `Endpoint` configured for the `PATCH` method.
195
195
  * @example PATCH("/users/{id}", PARTIAL_USER)
196
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/PATCH
196
+ * @see https://shelving.cc/api/PATCH
197
197
  */
198
198
  export declare function PATCH<P, R>(path: AbsolutePath, payload?: Schema<P>, result?: Schema<R>): Endpoint<P, R>;
199
199
  export declare function PATCH<P>(path: AbsolutePath, payload: Schema<P>): Endpoint<P, undefined>;
@@ -209,7 +209,7 @@ export declare function PATCH<R>(path: AbsolutePath, payload: undefined, result:
209
209
  * @param result An optional `Schema` validating the response result.
210
210
  * @returns An `Endpoint` configured for the `DELETE` method.
211
211
  * @example DELETE("/users/{id}")
212
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/DELETE
212
+ * @see https://shelving.cc/api/DELETE
213
213
  */
214
214
  export declare function DELETE<P, R>(path: AbsolutePath, payload?: Schema<P>, result?: Schema<R>): Endpoint<P, R>;
215
215
  export declare function DELETE<P>(path: AbsolutePath, payload: Schema<P>): Endpoint<P, undefined>;
@@ -15,37 +15,37 @@ import { getPlaceholders, matchPathTemplate, renderPathTemplate } from "../../ut
15
15
  * @example
16
16
  * const getUser = new Endpoint("GET", "/users/{id}", USER_PAYLOAD, USER_RESULT);
17
17
  *
18
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint
18
+ * @see https://shelving.cc/api/Endpoint
19
19
  */
20
20
  export class Endpoint {
21
21
  /**
22
22
  * The HTTP method this endpoint responds to, e.g. `GET`
23
23
  *
24
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/method
24
+ * @see https://shelving.cc/api/Endpoint/method
25
25
  */
26
26
  method;
27
27
  /**
28
28
  * Endpoint path, possibly including placeholders e.g. `/users/{id}`
29
29
  *
30
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/path
30
+ * @see https://shelving.cc/api/Endpoint/path
31
31
  */
32
32
  path;
33
33
  /**
34
34
  * The `{placeholder}` segments extracted from `path`, used to render and match URLs.
35
35
  *
36
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/placeholders
36
+ * @see https://shelving.cc/api/Endpoint/placeholders
37
37
  */
38
38
  placeholders;
39
39
  /**
40
40
  * The `Schema` that request payloads are validated against.
41
41
  *
42
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/payload
42
+ * @see https://shelving.cc/api/Endpoint/payload
43
43
  */
44
44
  payload;
45
45
  /**
46
46
  * The `Schema` that response results are validated against.
47
47
  *
48
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/result
48
+ * @see https://shelving.cc/api/Endpoint/result
49
49
  */
50
50
  result;
51
51
  constructor(method, path, payload, result) {
@@ -64,7 +64,7 @@ export class Endpoint {
64
64
  * @returns The rendered absolute path, with any `{placeholders}` filled from `payload`.
65
65
  * @throws {RequiredError} if this endpoint's path has `{placeholders}` but `payload` is not a data object.
66
66
  * @example endpoint.renderPath({ id: "abc" }) // "/users/abc"
67
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/renderPath
67
+ * @see https://shelving.cc/api/Endpoint/renderPath
68
68
  */
69
69
  renderPath(payload, caller = this.renderPath) {
70
70
  // Placeholders.
@@ -83,7 +83,7 @@ export class Endpoint {
83
83
  * @param caller The function to attribute thrown errors to (defaults to this method).
84
84
  * @returns A dictionary of matched `{placeholder}` params, or `undefined` if the method or path doesn't match.
85
85
  * @example endpoint.match("GET", "/users/abc") // { id: "abc" }
86
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/match
86
+ * @see https://shelving.cc/api/Endpoint/match
87
87
  */
88
88
  match(method, path, caller = this.match) {
89
89
  if (method !== this.method)
@@ -96,7 +96,7 @@ export class Endpoint {
96
96
  * @param callback The callback function that implements the logic for this endpoint by receiving the payload and returning the response.
97
97
  * @returns An `EndpointHandler` object combining this endpoint and the callback into a single typed object.
98
98
  * @example endpoint.handler((payload, request) => ({ ...payload }))
99
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/handler
99
+ * @see https://shelving.cc/api/Endpoint/handler
100
100
  */
101
101
  handler(callback) {
102
102
  return { endpoint: this, callback };
@@ -106,7 +106,7 @@ export class Endpoint {
106
106
  *
107
107
  * @returns The method and path joined with a space, e.g. `GET /user/{id}`
108
108
  * @example endpoint.toString() // "GET /users/{id}"
109
- * @see https://dhoulb.github.io/shelving/api/endpoint/Endpoint/Endpoint/toString
109
+ * @see https://shelving.cc/api/Endpoint/toString
110
110
  */
111
111
  toString() {
112
112
  return `${this.method} ${this.path}`;
@@ -11,14 +11,14 @@ import type { Endpoint } from "./Endpoint.js";
11
11
  * @returns {Response} Returning a `Response` object (this will pass back to the client without validation).
12
12
  * @returns {R} Returning the return type of the handler (this will be validated against the Endpoint's result schema).
13
13
  *
14
- * @see https://dhoulb.github.io/shelving/api/endpoint/util/EndpointCallback
14
+ * @see https://shelving.cc/api/EndpointCallback
15
15
  */
16
16
  export type EndpointCallback<P, R, C = void> = (payload: P, request: Request, context: C) => R | Response | Promise<R | Response>;
17
17
  /**
18
18
  * A typed endpoint definition paired with its implementation callback.
19
19
  * - Created with `Endpoint.handler()`; matched and invoked by `handleEndpoints()`.
20
20
  *
21
- * @see https://dhoulb.github.io/shelving/api/endpoint/util/EndpointHandler
21
+ * @see https://shelving.cc/api/EndpointHandler
22
22
  */
23
23
  export interface EndpointHandler<P, R, C = void> {
24
24
  readonly endpoint: Endpoint<P, R>;
@@ -27,13 +27,13 @@ export interface EndpointHandler<P, R, C = void> {
27
27
  /**
28
28
  * An `EndpointHandler` with any payload and result type, for use where the specific types don't matter.
29
29
  *
30
- * @see https://dhoulb.github.io/shelving/api/endpoint/util/AnyEndpointHandler
30
+ * @see https://shelving.cc/api/AnyEndpointHandler
31
31
  */
32
32
  export type AnyEndpointHandler<C = any> = EndpointHandler<any, any, C>;
33
33
  /**
34
34
  * A collection of endpoint handlers that can be matched and invoked by `handleEndpoints()`.
35
35
  *
36
- * @see https://dhoulb.github.io/shelving/api/endpoint/util/EndpointHandlers
36
+ * @see https://shelving.cc/api/EndpointHandlers
37
37
  */
38
38
  export type EndpointHandlers<C = void> = Iterable<AnyEndpointHandler<C>>;
39
39
  /**
@@ -51,7 +51,7 @@ export type EndpointHandlers<C = void> = Iterable<AnyEndpointHandler<C>>;
51
51
  * @throws {MethodNotAllowedError} if the request method is not a supported HTTP method.
52
52
  * @throws {NotFoundError} if no base path matches, or no endpoint matches the target path.
53
53
  * @example await handleEndpoints("https://myapi.com", [getUser.handler(loadUser)], request, undefined)
54
- * @see https://dhoulb.github.io/shelving/api/endpoint/util/handleEndpoints
54
+ * @see https://shelving.cc/api/handleEndpoints
55
55
  */
56
56
  export declare function handleEndpoints<C>(base: PossibleURL, handlers: EndpointHandlers<C>, request: Request, context: C, caller?: AnyCaller): Promise<Response>;
57
57
  export declare function handleEndpoints(base: PossibleURL, handlers: EndpointHandlers<void>, request: Request, context?: undefined, caller?: AnyCaller): Promise<Response>;