@prismicio/client 7.22.3 → 7.23.0-canary.3712f41

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 (531) hide show
  1. package/dist/Client.cjs +3 -4
  2. package/dist/Client.d.cts +3 -4
  3. package/dist/Client.d.cts.map +1 -1
  4. package/dist/Client.d.ts +3 -4
  5. package/dist/Client.d.ts.map +1 -1
  6. package/dist/Client.js +3 -4
  7. package/dist/Migration.cjs +5 -6
  8. package/dist/Migration.d.cts +5 -6
  9. package/dist/Migration.d.cts.map +1 -1
  10. package/dist/Migration.d.ts +5 -6
  11. package/dist/Migration.d.ts.map +1 -1
  12. package/dist/Migration.js +5 -6
  13. package/dist/WriteClient.cjs +3 -4
  14. package/dist/WriteClient.d.cts +4 -5
  15. package/dist/WriteClient.d.cts.map +1 -1
  16. package/dist/WriteClient.d.ts +4 -5
  17. package/dist/WriteClient.d.ts.map +1 -1
  18. package/dist/WriteClient.js +3 -4
  19. package/dist/_virtual/_rolldown/runtime.cjs +1 -2
  20. package/dist/_virtual/_rolldown/runtime.js +1 -2
  21. package/dist/buildQueryURL.cjs +1 -2
  22. package/dist/buildQueryURL.d.cts +1 -2
  23. package/dist/buildQueryURL.d.cts.map +1 -1
  24. package/dist/buildQueryURL.d.ts +1 -2
  25. package/dist/buildQueryURL.d.ts.map +1 -1
  26. package/dist/buildQueryURL.js +1 -2
  27. package/dist/cookie.cjs +8 -3
  28. package/dist/cookie.cjs.map +1 -1
  29. package/dist/cookie.d.cts +3 -2
  30. package/dist/cookie.d.cts.map +1 -1
  31. package/dist/cookie.d.ts +3 -2
  32. package/dist/cookie.d.ts.map +1 -1
  33. package/dist/cookie.js +8 -4
  34. package/dist/cookie.js.map +1 -1
  35. package/dist/createClient.cjs +1 -2
  36. package/dist/createClient.d.cts +1 -3
  37. package/dist/createClient.d.cts.map +1 -1
  38. package/dist/createClient.d.ts +1 -3
  39. package/dist/createClient.d.ts.map +1 -1
  40. package/dist/createClient.js +1 -2
  41. package/dist/createMigration.cjs +1 -2
  42. package/dist/createMigration.d.cts +1 -3
  43. package/dist/createMigration.d.cts.map +1 -1
  44. package/dist/createMigration.d.ts +1 -3
  45. package/dist/createMigration.d.ts.map +1 -1
  46. package/dist/createMigration.js +1 -2
  47. package/dist/createWriteClient.cjs +1 -2
  48. package/dist/createWriteClient.d.cts +0 -2
  49. package/dist/createWriteClient.d.cts.map +1 -1
  50. package/dist/createWriteClient.d.ts +0 -2
  51. package/dist/createWriteClient.d.ts.map +1 -1
  52. package/dist/createWriteClient.js +1 -2
  53. package/dist/errors.cjs +1 -2
  54. package/dist/errors.d.cts +1 -2
  55. package/dist/errors.d.cts.map +1 -1
  56. package/dist/errors.d.ts +1 -2
  57. package/dist/errors.d.ts.map +1 -1
  58. package/dist/errors.js +1 -2
  59. package/dist/filter.cjs +1 -2
  60. package/dist/filter.d.cts +0 -2
  61. package/dist/filter.d.cts.map +1 -1
  62. package/dist/filter.d.ts +0 -2
  63. package/dist/filter.d.ts.map +1 -1
  64. package/dist/filter.js +1 -2
  65. package/dist/getGraphQLEndpoint.cjs +1 -2
  66. package/dist/getGraphQLEndpoint.d.cts +0 -2
  67. package/dist/getGraphQLEndpoint.d.cts.map +1 -1
  68. package/dist/getGraphQLEndpoint.d.ts +0 -2
  69. package/dist/getGraphQLEndpoint.d.ts.map +1 -1
  70. package/dist/getGraphQLEndpoint.js +1 -2
  71. package/dist/getRepositoryEndpoint.cjs +1 -2
  72. package/dist/getRepositoryEndpoint.d.cts +0 -2
  73. package/dist/getRepositoryEndpoint.d.cts.map +1 -1
  74. package/dist/getRepositoryEndpoint.d.ts +0 -2
  75. package/dist/getRepositoryEndpoint.d.ts.map +1 -1
  76. package/dist/getRepositoryEndpoint.js +1 -2
  77. package/dist/getRepositoryName.cjs +1 -2
  78. package/dist/getRepositoryName.d.cts +0 -2
  79. package/dist/getRepositoryName.d.cts.map +1 -1
  80. package/dist/getRepositoryName.d.ts +0 -2
  81. package/dist/getRepositoryName.d.ts.map +1 -1
  82. package/dist/getRepositoryName.js +1 -2
  83. package/dist/getToolbarSrc.cjs +9 -5
  84. package/dist/getToolbarSrc.cjs.map +1 -1
  85. package/dist/getToolbarSrc.d.cts +10 -3
  86. package/dist/getToolbarSrc.d.cts.map +1 -1
  87. package/dist/getToolbarSrc.d.ts +10 -3
  88. package/dist/getToolbarSrc.d.ts.map +1 -1
  89. package/dist/getToolbarSrc.js +9 -5
  90. package/dist/getToolbarSrc.js.map +1 -1
  91. package/dist/helpers/asDate.cjs +1 -2
  92. package/dist/helpers/asDate.d.cts +1 -2
  93. package/dist/helpers/asDate.d.cts.map +1 -1
  94. package/dist/helpers/asDate.d.ts +1 -2
  95. package/dist/helpers/asDate.d.ts.map +1 -1
  96. package/dist/helpers/asDate.js +1 -2
  97. package/dist/helpers/asHTML.cjs +2 -3
  98. package/dist/helpers/asHTML.d.cts +2 -3
  99. package/dist/helpers/asHTML.d.cts.map +1 -1
  100. package/dist/helpers/asHTML.d.ts +2 -3
  101. package/dist/helpers/asHTML.d.ts.map +1 -1
  102. package/dist/helpers/asHTML.js +2 -3
  103. package/dist/helpers/asImagePixelDensitySrcSet.cjs +1 -2
  104. package/dist/helpers/asImagePixelDensitySrcSet.d.cts +1 -2
  105. package/dist/helpers/asImagePixelDensitySrcSet.d.cts.map +1 -1
  106. package/dist/helpers/asImagePixelDensitySrcSet.d.ts +1 -2
  107. package/dist/helpers/asImagePixelDensitySrcSet.d.ts.map +1 -1
  108. package/dist/helpers/asImagePixelDensitySrcSet.js +1 -2
  109. package/dist/helpers/asImageSrc.cjs +1 -2
  110. package/dist/helpers/asImageSrc.d.cts +1 -2
  111. package/dist/helpers/asImageSrc.d.cts.map +1 -1
  112. package/dist/helpers/asImageSrc.d.ts +1 -2
  113. package/dist/helpers/asImageSrc.d.ts.map +1 -1
  114. package/dist/helpers/asImageSrc.js +1 -2
  115. package/dist/helpers/asImageWidthSrcSet.cjs +1 -2
  116. package/dist/helpers/asImageWidthSrcSet.d.cts +1 -2
  117. package/dist/helpers/asImageWidthSrcSet.d.cts.map +1 -1
  118. package/dist/helpers/asImageWidthSrcSet.d.ts +1 -2
  119. package/dist/helpers/asImageWidthSrcSet.d.ts.map +1 -1
  120. package/dist/helpers/asImageWidthSrcSet.js +1 -2
  121. package/dist/helpers/asLink.cjs +1 -2
  122. package/dist/helpers/asLink.d.cts +3 -4
  123. package/dist/helpers/asLink.d.cts.map +1 -1
  124. package/dist/helpers/asLink.d.ts +3 -4
  125. package/dist/helpers/asLink.d.ts.map +1 -1
  126. package/dist/helpers/asLink.js +1 -2
  127. package/dist/helpers/asLinkAttrs.cjs +2 -3
  128. package/dist/helpers/asLinkAttrs.d.cts +3 -4
  129. package/dist/helpers/asLinkAttrs.d.cts.map +1 -1
  130. package/dist/helpers/asLinkAttrs.d.ts +3 -4
  131. package/dist/helpers/asLinkAttrs.d.ts.map +1 -1
  132. package/dist/helpers/asLinkAttrs.js +2 -3
  133. package/dist/helpers/asText.cjs +1 -2
  134. package/dist/helpers/asText.d.cts +1 -2
  135. package/dist/helpers/asText.d.cts.map +1 -1
  136. package/dist/helpers/asText.d.ts +1 -2
  137. package/dist/helpers/asText.d.ts.map +1 -1
  138. package/dist/helpers/asText.js +1 -2
  139. package/dist/helpers/documentToLinkField.cjs +1 -2
  140. package/dist/helpers/documentToLinkField.d.cts +1 -2
  141. package/dist/helpers/documentToLinkField.d.cts.map +1 -1
  142. package/dist/helpers/documentToLinkField.d.ts +1 -2
  143. package/dist/helpers/documentToLinkField.d.ts.map +1 -1
  144. package/dist/helpers/documentToLinkField.js +1 -2
  145. package/dist/helpers/isFilled.cjs +1 -2
  146. package/dist/helpers/isFilled.d.cts +7 -8
  147. package/dist/helpers/isFilled.d.ts +7 -8
  148. package/dist/helpers/isFilled.js +1 -2
  149. package/dist/helpers/mapSliceZone.cjs +1 -2
  150. package/dist/helpers/mapSliceZone.d.cts +1 -2
  151. package/dist/helpers/mapSliceZone.d.cts.map +1 -1
  152. package/dist/helpers/mapSliceZone.d.ts +1 -2
  153. package/dist/helpers/mapSliceZone.d.ts.map +1 -1
  154. package/dist/helpers/mapSliceZone.js +1 -2
  155. package/dist/index.cjs +17 -18
  156. package/dist/index.d.cts +62 -64
  157. package/dist/index.d.cts.map +1 -1
  158. package/dist/index.d.ts +62 -64
  159. package/dist/index.d.ts.map +1 -1
  160. package/dist/index.js +17 -18
  161. package/dist/isRepositoryEndpoint.cjs +1 -2
  162. package/dist/isRepositoryEndpoint.d.cts +0 -2
  163. package/dist/isRepositoryEndpoint.d.cts.map +1 -1
  164. package/dist/isRepositoryEndpoint.d.ts +0 -2
  165. package/dist/isRepositoryEndpoint.d.ts.map +1 -1
  166. package/dist/isRepositoryEndpoint.js +1 -2
  167. package/dist/isRepositoryName.cjs +1 -2
  168. package/dist/isRepositoryName.d.cts +0 -2
  169. package/dist/isRepositoryName.d.cts.map +1 -1
  170. package/dist/isRepositoryName.d.ts +0 -2
  171. package/dist/isRepositoryName.d.ts.map +1 -1
  172. package/dist/isRepositoryName.js +1 -2
  173. package/dist/lib/devMsg.cjs +1 -2
  174. package/dist/lib/devMsg.js +1 -2
  175. package/dist/lib/escapeHTML.cjs +1 -2
  176. package/dist/lib/escapeHTML.js +1 -2
  177. package/dist/lib/getOptionalLinkProperties.cjs +1 -2
  178. package/dist/lib/getOptionalLinkProperties.js +1 -2
  179. package/dist/lib/getPreviewCookie.cjs +1 -2
  180. package/dist/lib/getPreviewCookie.js +1 -2
  181. package/dist/lib/isInternalURL.cjs +1 -2
  182. package/dist/lib/isInternalURL.js +1 -2
  183. package/dist/lib/isMigrationValue.cjs +3 -4
  184. package/dist/lib/isMigrationValue.js +3 -4
  185. package/dist/lib/isValue.cjs +2 -3
  186. package/dist/lib/isValue.js +2 -3
  187. package/dist/lib/pLimit.cjs +1 -2
  188. package/dist/lib/pLimit.js +1 -2
  189. package/dist/lib/request.cjs +1 -2
  190. package/dist/lib/request.d.cts +0 -2
  191. package/dist/lib/request.d.cts.map +1 -1
  192. package/dist/lib/request.d.ts +0 -2
  193. package/dist/lib/request.d.ts.map +1 -1
  194. package/dist/lib/request.js +1 -2
  195. package/dist/lib/resolveMigrationDocumentData.cjs +3 -4
  196. package/dist/lib/resolveMigrationDocumentData.js +3 -4
  197. package/dist/lib/serializerHelpers.cjs +2 -3
  198. package/dist/lib/serializerHelpers.js +2 -3
  199. package/dist/lib/throttledWarn.cjs +1 -2
  200. package/dist/lib/throttledWarn.js +1 -2
  201. package/dist/lib/validateAssetMetadata.cjs +1 -2
  202. package/dist/lib/validateAssetMetadata.js +1 -2
  203. package/dist/package.cjs +2 -3
  204. package/dist/package.js +2 -3
  205. package/dist/richtext/asText.cjs +1 -2
  206. package/dist/richtext/asText.d.cts +0 -2
  207. package/dist/richtext/asText.d.cts.map +1 -1
  208. package/dist/richtext/asText.d.ts +0 -2
  209. package/dist/richtext/asText.d.ts.map +1 -1
  210. package/dist/richtext/asText.js +1 -2
  211. package/dist/richtext/asTree.cjs +1 -2
  212. package/dist/richtext/asTree.d.cts +0 -2
  213. package/dist/richtext/asTree.d.cts.map +1 -1
  214. package/dist/richtext/asTree.d.ts +0 -2
  215. package/dist/richtext/asTree.d.ts.map +1 -1
  216. package/dist/richtext/asTree.js +1 -2
  217. package/dist/richtext/composeSerializers.cjs +1 -2
  218. package/dist/richtext/composeSerializers.d.cts +0 -2
  219. package/dist/richtext/composeSerializers.d.cts.map +1 -1
  220. package/dist/richtext/composeSerializers.d.ts +0 -2
  221. package/dist/richtext/composeSerializers.d.ts.map +1 -1
  222. package/dist/richtext/composeSerializers.js +1 -2
  223. package/dist/richtext/serialize.cjs +1 -2
  224. package/dist/richtext/serialize.d.cts +0 -2
  225. package/dist/richtext/serialize.d.cts.map +1 -1
  226. package/dist/richtext/serialize.d.ts +0 -2
  227. package/dist/richtext/serialize.d.ts.map +1 -1
  228. package/dist/richtext/serialize.js +1 -2
  229. package/dist/richtext/types.cjs +1 -2
  230. package/dist/richtext/types.d.cts +0 -2
  231. package/dist/richtext/types.d.cts.map +1 -1
  232. package/dist/richtext/types.d.ts +0 -2
  233. package/dist/richtext/types.d.ts.map +1 -1
  234. package/dist/richtext/types.js +1 -2
  235. package/dist/richtext/wrapMapSerializer.cjs +1 -2
  236. package/dist/richtext/wrapMapSerializer.d.cts +0 -2
  237. package/dist/richtext/wrapMapSerializer.d.cts.map +1 -1
  238. package/dist/richtext/wrapMapSerializer.d.ts +0 -2
  239. package/dist/richtext/wrapMapSerializer.d.ts.map +1 -1
  240. package/dist/richtext/wrapMapSerializer.js +1 -2
  241. package/dist/richtext.cjs +2 -2
  242. package/dist/richtext.d.cts +2 -2
  243. package/dist/richtext.d.ts +2 -2
  244. package/dist/richtext.js +2 -2
  245. package/dist/types/api/asset/asset.d.cts +0 -2
  246. package/dist/types/api/asset/asset.d.cts.map +1 -1
  247. package/dist/types/api/asset/asset.d.ts +0 -2
  248. package/dist/types/api/asset/asset.d.ts.map +1 -1
  249. package/dist/types/api/asset/tag.d.cts +0 -2
  250. package/dist/types/api/asset/tag.d.cts.map +1 -1
  251. package/dist/types/api/asset/tag.d.ts +0 -2
  252. package/dist/types/api/asset/tag.d.ts.map +1 -1
  253. package/dist/types/api/integration.d.cts +0 -2
  254. package/dist/types/api/integration.d.cts.map +1 -1
  255. package/dist/types/api/integration.d.ts +0 -2
  256. package/dist/types/api/integration.d.ts.map +1 -1
  257. package/dist/types/api/migration/release.d.cts +0 -2
  258. package/dist/types/api/migration/release.d.cts.map +1 -1
  259. package/dist/types/api/migration/release.d.ts +0 -2
  260. package/dist/types/api/migration/release.d.ts.map +1 -1
  261. package/dist/types/api/query.d.cts +0 -2
  262. package/dist/types/api/query.d.cts.map +1 -1
  263. package/dist/types/api/query.d.ts +0 -2
  264. package/dist/types/api/query.d.ts.map +1 -1
  265. package/dist/types/api/ref.d.cts +0 -2
  266. package/dist/types/api/ref.d.cts.map +1 -1
  267. package/dist/types/api/ref.d.ts +0 -2
  268. package/dist/types/api/ref.d.ts.map +1 -1
  269. package/dist/types/api/release.d.cts +0 -2
  270. package/dist/types/api/release.d.cts.map +1 -1
  271. package/dist/types/api/release.d.ts +0 -2
  272. package/dist/types/api/release.d.ts.map +1 -1
  273. package/dist/types/api/repository.d.cts +0 -2
  274. package/dist/types/api/repository.d.cts.map +1 -1
  275. package/dist/types/api/repository.d.ts +0 -2
  276. package/dist/types/api/repository.d.ts.map +1 -1
  277. package/dist/types/api/tags.d.cts +0 -2
  278. package/dist/types/api/tags.d.cts.map +1 -1
  279. package/dist/types/api/tags.d.ts +0 -2
  280. package/dist/types/api/tags.d.ts.map +1 -1
  281. package/dist/types/migration/Asset.cjs +1 -2
  282. package/dist/types/migration/Asset.d.cts +1 -3
  283. package/dist/types/migration/Asset.d.cts.map +1 -1
  284. package/dist/types/migration/Asset.d.ts +1 -3
  285. package/dist/types/migration/Asset.d.ts.map +1 -1
  286. package/dist/types/migration/Asset.js +1 -2
  287. package/dist/types/migration/ContentRelationship.d.cts +1 -2
  288. package/dist/types/migration/ContentRelationship.d.cts.map +1 -1
  289. package/dist/types/migration/ContentRelationship.d.ts +1 -2
  290. package/dist/types/migration/ContentRelationship.d.ts.map +1 -1
  291. package/dist/types/migration/Document.cjs +1 -2
  292. package/dist/types/migration/Document.d.cts +5 -6
  293. package/dist/types/migration/Document.d.cts.map +1 -1
  294. package/dist/types/migration/Document.d.ts +5 -6
  295. package/dist/types/migration/Document.d.ts.map +1 -1
  296. package/dist/types/migration/Document.js +1 -2
  297. package/dist/types/model/boolean.d.cts +0 -2
  298. package/dist/types/model/boolean.d.cts.map +1 -1
  299. package/dist/types/model/boolean.d.ts +0 -2
  300. package/dist/types/model/boolean.d.ts.map +1 -1
  301. package/dist/types/model/color.d.cts +0 -2
  302. package/dist/types/model/color.d.cts.map +1 -1
  303. package/dist/types/model/color.d.ts +0 -2
  304. package/dist/types/model/color.d.ts.map +1 -1
  305. package/dist/types/model/contentRelationship.d.cts +0 -2
  306. package/dist/types/model/contentRelationship.d.cts.map +1 -1
  307. package/dist/types/model/contentRelationship.d.ts +0 -2
  308. package/dist/types/model/contentRelationship.d.ts.map +1 -1
  309. package/dist/types/model/customType.d.cts +0 -2
  310. package/dist/types/model/customType.d.cts.map +1 -1
  311. package/dist/types/model/customType.d.ts +0 -2
  312. package/dist/types/model/customType.d.ts.map +1 -1
  313. package/dist/types/model/date.d.cts +0 -2
  314. package/dist/types/model/date.d.cts.map +1 -1
  315. package/dist/types/model/date.d.ts +0 -2
  316. package/dist/types/model/date.d.ts.map +1 -1
  317. package/dist/types/model/embed.d.cts +0 -2
  318. package/dist/types/model/embed.d.cts.map +1 -1
  319. package/dist/types/model/embed.d.ts +0 -2
  320. package/dist/types/model/embed.d.ts.map +1 -1
  321. package/dist/types/model/geoPoint.d.cts +0 -2
  322. package/dist/types/model/geoPoint.d.cts.map +1 -1
  323. package/dist/types/model/geoPoint.d.ts +0 -2
  324. package/dist/types/model/geoPoint.d.ts.map +1 -1
  325. package/dist/types/model/group.d.cts +0 -2
  326. package/dist/types/model/group.d.cts.map +1 -1
  327. package/dist/types/model/group.d.ts +0 -2
  328. package/dist/types/model/group.d.ts.map +1 -1
  329. package/dist/types/model/image.d.cts +0 -2
  330. package/dist/types/model/image.d.cts.map +1 -1
  331. package/dist/types/model/image.d.ts +0 -2
  332. package/dist/types/model/image.d.ts.map +1 -1
  333. package/dist/types/model/integration.d.cts +0 -2
  334. package/dist/types/model/integration.d.cts.map +1 -1
  335. package/dist/types/model/integration.d.ts +0 -2
  336. package/dist/types/model/integration.d.ts.map +1 -1
  337. package/dist/types/model/keyText.d.cts +0 -2
  338. package/dist/types/model/keyText.d.cts.map +1 -1
  339. package/dist/types/model/keyText.d.ts +0 -2
  340. package/dist/types/model/keyText.d.ts.map +1 -1
  341. package/dist/types/model/link.cjs +1 -2
  342. package/dist/types/model/link.d.cts +0 -2
  343. package/dist/types/model/link.d.cts.map +1 -1
  344. package/dist/types/model/link.d.ts +0 -2
  345. package/dist/types/model/link.d.ts.map +1 -1
  346. package/dist/types/model/link.js +1 -2
  347. package/dist/types/model/linkToMedia.d.cts +0 -2
  348. package/dist/types/model/linkToMedia.d.cts.map +1 -1
  349. package/dist/types/model/linkToMedia.d.ts +0 -2
  350. package/dist/types/model/linkToMedia.d.ts.map +1 -1
  351. package/dist/types/model/number.d.cts +0 -2
  352. package/dist/types/model/number.d.cts.map +1 -1
  353. package/dist/types/model/number.d.ts +0 -2
  354. package/dist/types/model/number.d.ts.map +1 -1
  355. package/dist/types/model/range.d.cts +0 -2
  356. package/dist/types/model/range.d.cts.map +1 -1
  357. package/dist/types/model/range.d.ts +0 -2
  358. package/dist/types/model/range.d.ts.map +1 -1
  359. package/dist/types/model/richText.d.cts +0 -2
  360. package/dist/types/model/richText.d.cts.map +1 -1
  361. package/dist/types/model/richText.d.ts +0 -2
  362. package/dist/types/model/richText.d.ts.map +1 -1
  363. package/dist/types/model/select.d.cts +0 -2
  364. package/dist/types/model/select.d.cts.map +1 -1
  365. package/dist/types/model/select.d.ts +0 -2
  366. package/dist/types/model/select.d.ts.map +1 -1
  367. package/dist/types/model/separator.d.cts +0 -2
  368. package/dist/types/model/separator.d.cts.map +1 -1
  369. package/dist/types/model/separator.d.ts +0 -2
  370. package/dist/types/model/separator.d.ts.map +1 -1
  371. package/dist/types/model/sharedSlice.d.cts +1 -3
  372. package/dist/types/model/sharedSlice.d.cts.map +1 -1
  373. package/dist/types/model/sharedSlice.d.ts +1 -3
  374. package/dist/types/model/sharedSlice.d.ts.map +1 -1
  375. package/dist/types/model/sharedSliceVariation.d.cts +0 -2
  376. package/dist/types/model/sharedSliceVariation.d.cts.map +1 -1
  377. package/dist/types/model/sharedSliceVariation.d.ts +0 -2
  378. package/dist/types/model/sharedSliceVariation.d.ts.map +1 -1
  379. package/dist/types/model/slice.cjs +1 -2
  380. package/dist/types/model/slice.d.cts +0 -2
  381. package/dist/types/model/slice.d.cts.map +1 -1
  382. package/dist/types/model/slice.d.ts +0 -2
  383. package/dist/types/model/slice.d.ts.map +1 -1
  384. package/dist/types/model/slice.js +1 -2
  385. package/dist/types/model/sliceZone.cjs +1 -2
  386. package/dist/types/model/sliceZone.d.cts +0 -2
  387. package/dist/types/model/sliceZone.d.cts.map +1 -1
  388. package/dist/types/model/sliceZone.d.ts +0 -2
  389. package/dist/types/model/sliceZone.d.ts.map +1 -1
  390. package/dist/types/model/sliceZone.js +1 -2
  391. package/dist/types/model/table.d.cts +0 -2
  392. package/dist/types/model/table.d.cts.map +1 -1
  393. package/dist/types/model/table.d.ts +0 -2
  394. package/dist/types/model/table.d.ts.map +1 -1
  395. package/dist/types/model/timestamp.d.cts +0 -2
  396. package/dist/types/model/timestamp.d.cts.map +1 -1
  397. package/dist/types/model/timestamp.d.ts +0 -2
  398. package/dist/types/model/timestamp.d.ts.map +1 -1
  399. package/dist/types/model/title.d.cts +0 -2
  400. package/dist/types/model/title.d.cts.map +1 -1
  401. package/dist/types/model/title.d.ts +0 -2
  402. package/dist/types/model/title.d.ts.map +1 -1
  403. package/dist/types/model/types.cjs +1 -2
  404. package/dist/types/model/types.d.cts +2 -4
  405. package/dist/types/model/types.d.cts.map +1 -1
  406. package/dist/types/model/types.d.ts +2 -4
  407. package/dist/types/model/types.d.ts.map +1 -1
  408. package/dist/types/model/types.js +1 -2
  409. package/dist/types/model/uid.d.cts +0 -2
  410. package/dist/types/model/uid.d.cts.map +1 -1
  411. package/dist/types/model/uid.d.ts +0 -2
  412. package/dist/types/model/uid.d.ts.map +1 -1
  413. package/dist/types/value/boolean.d.cts +0 -2
  414. package/dist/types/value/boolean.d.cts.map +1 -1
  415. package/dist/types/value/boolean.d.ts +0 -2
  416. package/dist/types/value/boolean.d.ts.map +1 -1
  417. package/dist/types/value/color.d.cts +0 -2
  418. package/dist/types/value/color.d.cts.map +1 -1
  419. package/dist/types/value/color.d.ts +0 -2
  420. package/dist/types/value/color.d.ts.map +1 -1
  421. package/dist/types/value/contentRelationship.d.cts +0 -2
  422. package/dist/types/value/contentRelationship.d.cts.map +1 -1
  423. package/dist/types/value/contentRelationship.d.ts +0 -2
  424. package/dist/types/value/contentRelationship.d.ts.map +1 -1
  425. package/dist/types/value/date.d.cts +0 -2
  426. package/dist/types/value/date.d.cts.map +1 -1
  427. package/dist/types/value/date.d.ts +0 -2
  428. package/dist/types/value/date.d.ts.map +1 -1
  429. package/dist/types/value/document.d.cts +0 -2
  430. package/dist/types/value/document.d.cts.map +1 -1
  431. package/dist/types/value/document.d.ts +0 -2
  432. package/dist/types/value/document.d.ts.map +1 -1
  433. package/dist/types/value/embed.cjs +1 -2
  434. package/dist/types/value/embed.d.cts +1 -2
  435. package/dist/types/value/embed.d.cts.map +1 -1
  436. package/dist/types/value/embed.d.ts +1 -2
  437. package/dist/types/value/embed.d.ts.map +1 -1
  438. package/dist/types/value/embed.js +1 -2
  439. package/dist/types/value/geoPoint.d.cts +0 -2
  440. package/dist/types/value/geoPoint.d.cts.map +1 -1
  441. package/dist/types/value/geoPoint.d.ts +0 -2
  442. package/dist/types/value/geoPoint.d.ts.map +1 -1
  443. package/dist/types/value/group.d.cts +0 -2
  444. package/dist/types/value/group.d.cts.map +1 -1
  445. package/dist/types/value/group.d.ts +0 -2
  446. package/dist/types/value/group.d.ts.map +1 -1
  447. package/dist/types/value/image.d.cts +0 -2
  448. package/dist/types/value/image.d.cts.map +1 -1
  449. package/dist/types/value/image.d.ts +0 -2
  450. package/dist/types/value/image.d.ts.map +1 -1
  451. package/dist/types/value/integration.d.cts +0 -2
  452. package/dist/types/value/integration.d.cts.map +1 -1
  453. package/dist/types/value/integration.d.ts +0 -2
  454. package/dist/types/value/integration.d.ts.map +1 -1
  455. package/dist/types/value/keyText.d.cts +0 -2
  456. package/dist/types/value/keyText.d.cts.map +1 -1
  457. package/dist/types/value/keyText.d.ts +0 -2
  458. package/dist/types/value/keyText.d.ts.map +1 -1
  459. package/dist/types/value/link.cjs +1 -2
  460. package/dist/types/value/link.d.cts +2 -4
  461. package/dist/types/value/link.d.cts.map +1 -1
  462. package/dist/types/value/link.d.ts +2 -4
  463. package/dist/types/value/link.d.ts.map +1 -1
  464. package/dist/types/value/link.js +1 -2
  465. package/dist/types/value/linkToMedia.d.cts +1 -2
  466. package/dist/types/value/linkToMedia.d.cts.map +1 -1
  467. package/dist/types/value/linkToMedia.d.ts +1 -2
  468. package/dist/types/value/linkToMedia.d.ts.map +1 -1
  469. package/dist/types/value/number.d.cts +0 -2
  470. package/dist/types/value/number.d.cts.map +1 -1
  471. package/dist/types/value/number.d.ts +0 -2
  472. package/dist/types/value/number.d.ts.map +1 -1
  473. package/dist/types/value/richText.cjs +1 -2
  474. package/dist/types/value/richText.d.cts +1 -3
  475. package/dist/types/value/richText.d.cts.map +1 -1
  476. package/dist/types/value/richText.d.ts +1 -3
  477. package/dist/types/value/richText.d.ts.map +1 -1
  478. package/dist/types/value/richText.js +1 -2
  479. package/dist/types/value/select.d.cts +0 -2
  480. package/dist/types/value/select.d.cts.map +1 -1
  481. package/dist/types/value/select.d.ts +0 -2
  482. package/dist/types/value/select.d.ts.map +1 -1
  483. package/dist/types/value/sharedSlice.d.cts +0 -2
  484. package/dist/types/value/sharedSlice.d.cts.map +1 -1
  485. package/dist/types/value/sharedSlice.d.ts +0 -2
  486. package/dist/types/value/sharedSlice.d.ts.map +1 -1
  487. package/dist/types/value/sharedSliceVariation.d.cts +0 -2
  488. package/dist/types/value/sharedSliceVariation.d.cts.map +1 -1
  489. package/dist/types/value/sharedSliceVariation.d.ts +0 -2
  490. package/dist/types/value/sharedSliceVariation.d.ts.map +1 -1
  491. package/dist/types/value/slice.d.cts +0 -2
  492. package/dist/types/value/slice.d.cts.map +1 -1
  493. package/dist/types/value/slice.d.ts +0 -2
  494. package/dist/types/value/slice.d.ts.map +1 -1
  495. package/dist/types/value/sliceZone.d.cts +0 -2
  496. package/dist/types/value/sliceZone.d.cts.map +1 -1
  497. package/dist/types/value/sliceZone.d.ts +0 -2
  498. package/dist/types/value/sliceZone.d.ts.map +1 -1
  499. package/dist/types/value/table.d.cts +1 -3
  500. package/dist/types/value/table.d.cts.map +1 -1
  501. package/dist/types/value/table.d.ts +1 -3
  502. package/dist/types/value/table.d.ts.map +1 -1
  503. package/dist/types/value/timestamp.d.cts +0 -2
  504. package/dist/types/value/timestamp.d.cts.map +1 -1
  505. package/dist/types/value/timestamp.d.ts +0 -2
  506. package/dist/types/value/timestamp.d.ts.map +1 -1
  507. package/dist/types/value/title.d.cts +1 -3
  508. package/dist/types/value/title.d.cts.map +1 -1
  509. package/dist/types/value/title.d.ts +1 -3
  510. package/dist/types/value/title.d.ts.map +1 -1
  511. package/dist/types/value/types.d.cts +5 -6
  512. package/dist/types/value/types.d.cts.map +1 -1
  513. package/dist/types/value/types.d.ts +5 -6
  514. package/dist/types/value/types.d.ts.map +1 -1
  515. package/dist/types/webhook/apiUpdate.d.cts +1 -2
  516. package/dist/types/webhook/apiUpdate.d.cts.map +1 -1
  517. package/dist/types/webhook/apiUpdate.d.ts +1 -2
  518. package/dist/types/webhook/apiUpdate.d.ts.map +1 -1
  519. package/dist/types/webhook/testTrigger.d.cts +0 -2
  520. package/dist/types/webhook/testTrigger.d.cts.map +1 -1
  521. package/dist/types/webhook/testTrigger.d.ts +0 -2
  522. package/dist/types/webhook/testTrigger.d.ts.map +1 -1
  523. package/dist/types/webhook/types.cjs +1 -2
  524. package/dist/types/webhook/types.d.cts +0 -2
  525. package/dist/types/webhook/types.d.cts.map +1 -1
  526. package/dist/types/webhook/types.d.ts +0 -2
  527. package/dist/types/webhook/types.d.ts.map +1 -1
  528. package/dist/types/webhook/types.js +1 -2
  529. package/package.json +7 -7
  530. package/src/cookie.ts +3 -0
  531. package/src/getToolbarSrc.ts +18 -4
@@ -1,5 +1,5 @@
1
1
  import { asText as asText$1 } from "../richtext/asText.js";
2
- //#region src/helpers/asText.ts
2
+ // src/helpers/asText.ts
3
3
  const asText = (richTextField, ...configObjectOrTuple) => {
4
4
  if (richTextField) {
5
5
  const [configObjectOrSeparator] = configObjectOrTuple;
@@ -9,7 +9,6 @@ const asText = (richTextField, ...configObjectOrTuple) => {
9
9
  return asText$1(richTextField, config.separator);
10
10
  } else return null;
11
11
  };
12
- //#endregion
13
12
  export { asText };
14
13
 
15
14
  //# sourceMappingURL=asText.js.map
@@ -1,5 +1,5 @@
1
1
  const require_link = require("../types/value/link.cjs");
2
- //#region src/helpers/documentToLinkField.ts
2
+ // src/helpers/documentToLinkField.ts
3
3
  /**
4
4
  * Converts a document into a link field, this is useful when crawling the API for document links
5
5
  *
@@ -21,7 +21,6 @@ const documentToLinkField = (prismicDocument) => {
21
21
  ...prismicDocument.data && Object.keys(prismicDocument.data).length > 0 ? { data: prismicDocument.data } : {}
22
22
  };
23
23
  };
24
- //#endregion
25
24
  exports.documentToLinkField = documentToLinkField;
26
25
 
27
26
  //# sourceMappingURL=documentToLinkField.cjs.map
@@ -1,6 +1,5 @@
1
1
  import { FilledContentRelationshipField } from "../types/value/contentRelationship.cjs";
2
2
  import { PrismicDocument } from "../types/value/document.cjs";
3
- //#region src/helpers/documentToLinkField.d.ts
4
3
  type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>;
5
4
  /**
6
5
  * Converts a document into a link field, this is useful when crawling the API for document links
@@ -11,5 +10,5 @@ type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys
11
10
  * @internal
12
11
  */
13
12
  export declare const documentToLinkField: <TDocument extends SetOptional<PrismicDocument, "slugs">>(prismicDocument: TDocument) => FilledContentRelationshipField<TDocument["type"], TDocument["lang"], TDocument["data"]>;
14
- //#endregion
13
+ export {};
15
14
  //# sourceMappingURL=documentToLinkField.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"documentToLinkField.d.cts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":";;;KAIK,YAAY,GAAG,mBAAmB,KAAK,KAAK,GAAG,QAAQ,QAAQ,KAAK,GAAG;;;;;;;;;qBAU/D,sBAAuB,kBAAkB,YAAY,2BAAyB,iBACzE,cACf,+BAA+B,mBAAmB,mBAAmB"}
1
+ {"version":3,"file":"documentToLinkField.d.cts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":";;KAIK,YAAY,GAAG,mBAAmB,KAAK,KAAK,GAAG,QAAQ,QAAQ,KAAK,GAAG;;;;;;;;;qBAU/D,sBAAuB,kBAAkB,YAAY,2BAAyB,iBACzE,cACf,+BAA+B,mBAAmB,mBAAmB"}
@@ -1,6 +1,5 @@
1
1
  import { FilledContentRelationshipField } from "../types/value/contentRelationship.js";
2
2
  import { PrismicDocument } from "../types/value/document.js";
3
- //#region src/helpers/documentToLinkField.d.ts
4
3
  type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>;
5
4
  /**
6
5
  * Converts a document into a link field, this is useful when crawling the API for document links
@@ -11,5 +10,5 @@ type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys
11
10
  * @internal
12
11
  */
13
12
  export declare const documentToLinkField: <TDocument extends SetOptional<PrismicDocument, "slugs">>(prismicDocument: TDocument) => FilledContentRelationshipField<TDocument["type"], TDocument["lang"], TDocument["data"]>;
14
- //#endregion
13
+ export {};
15
14
  //# sourceMappingURL=documentToLinkField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"documentToLinkField.d.ts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":";;;KAIK,YAAY,GAAG,mBAAmB,KAAK,KAAK,GAAG,QAAQ,QAAQ,KAAK,GAAG;;;;;;;;;qBAU/D,sBAAuB,kBAAkB,YAAY,2BAAyB,iBACzE,cACf,+BAA+B,mBAAmB,mBAAmB"}
1
+ {"version":3,"file":"documentToLinkField.d.ts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":";;KAIK,YAAY,GAAG,mBAAmB,KAAK,KAAK,GAAG,QAAQ,QAAQ,KAAK,GAAG;;;;;;;;;qBAU/D,sBAAuB,kBAAkB,YAAY,2BAAyB,iBACzE,cACf,+BAA+B,mBAAmB,mBAAmB"}
@@ -1,5 +1,5 @@
1
1
  import { LinkType } from "../types/value/link.js";
2
- //#region src/helpers/documentToLinkField.ts
2
+ // src/helpers/documentToLinkField.ts
3
3
  /**
4
4
  * Converts a document into a link field, this is useful when crawling the API for document links
5
5
  *
@@ -21,7 +21,6 @@ const documentToLinkField = (prismicDocument) => {
21
21
  ...prismicDocument.data && Object.keys(prismicDocument.data).length > 0 ? { data: prismicDocument.data } : {}
22
22
  };
23
23
  };
24
- //#endregion
25
24
  export { documentToLinkField };
26
25
 
27
26
  //# sourceMappingURL=documentToLinkField.js.map
@@ -1,4 +1,4 @@
1
- //#region src/helpers/isFilled.ts
1
+ // src/helpers/isFilled.ts
2
2
  var isFilled_exports = /* @__PURE__ */ require("../_virtual/_rolldown/runtime.cjs").__exportAll({
3
3
  color: () => color,
4
4
  contentRelationship: () => contentRelationship,
@@ -208,7 +208,6 @@ const group = (group) => {
208
208
  const sliceZone = (slices) => {
209
209
  return isNonNullish(slices) && isNonEmptyArray(slices);
210
210
  };
211
- //#endregion
212
211
  exports.color = color;
213
212
  exports.contentRelationship = contentRelationship;
214
213
  exports.date = date;
@@ -1,24 +1,24 @@
1
1
  import { ColorField } from "../types/value/color.cjs";
2
- import { GroupField, NestedGroupField } from "../types/value/group.cjs";
3
- import { SharedSlice } from "../types/value/sharedSlice.cjs";
4
- import { Slice } from "../types/value/slice.cjs";
5
- import { SliceZone } from "../types/value/sliceZone.cjs";
6
2
  import { ContentRelationshipField, EmptyContentRelationshipField } from "../types/value/contentRelationship.cjs";
7
3
  import { DateField } from "../types/value/date.cjs";
4
+ import { AnyOEmbed, EmbedField } from "../types/value/embed.cjs";
8
5
  import { GeoPointField } from "../types/value/geoPoint.cjs";
6
+ import { GroupField, NestedGroupField } from "../types/value/group.cjs";
9
7
  import { ImageField, ImageFieldImage } from "../types/value/image.cjs";
10
8
  import { IntegrationField, IntegrationFieldData } from "../types/value/integration.cjs";
11
9
  import { KeyTextField } from "../types/value/keyText.cjs";
12
- import { LinkToMediaField } from "../types/value/linkToMedia.cjs";
13
10
  import { LinkField } from "../types/value/link.cjs";
11
+ import { LinkToMediaField } from "../types/value/linkToMedia.cjs";
14
12
  import { NumberField } from "../types/value/number.cjs";
13
+ import { RichTextField } from "../types/value/richText.cjs";
15
14
  import { SelectField } from "../types/value/select.cjs";
15
+ import { SharedSlice } from "../types/value/sharedSlice.cjs";
16
+ import { Slice } from "../types/value/slice.cjs";
17
+ import { SliceZone } from "../types/value/sliceZone.cjs";
16
18
  import { TableField } from "../types/value/table.cjs";
17
19
  import { TimestampField } from "../types/value/timestamp.cjs";
18
20
  import { TitleField } from "../types/value/title.cjs";
19
21
  import { AnyRegularField, Repeatable } from "../types/value/types.cjs";
20
- import { AnyOEmbed, EmbedField } from "../types/value/embed.cjs";
21
- import { RichTextField } from "../types/value/richText.cjs";
22
22
  declare namespace isFilled_d_exports {
23
23
  export { color, contentRelationship, date, embed, geoPoint, group, image, imageThumbnail, integration, integrationField, integrationFields, keyText, link, linkToMedia, number, repeatable, richText, select, sliceZone, table, timestamp, title };
24
24
  }
@@ -168,6 +168,5 @@ export declare const group: <Fields extends Record<string, AnyRegularField | Nes
168
168
  * otherwise.
169
169
  */
170
170
  export declare const sliceZone: <Slices extends Slice | SharedSlice>(slices: SliceZone<Slices> | null | undefined) => slices is SliceZone<Slices, "filled">;
171
- //#endregion
172
171
  export { isFilled_d_exports };
173
172
  //# sourceMappingURL=isFilled.d.cts.map
@@ -1,24 +1,24 @@
1
1
  import { ColorField } from "../types/value/color.js";
2
- import { GroupField, NestedGroupField } from "../types/value/group.js";
3
- import { SharedSlice } from "../types/value/sharedSlice.js";
4
- import { Slice } from "../types/value/slice.js";
5
- import { SliceZone } from "../types/value/sliceZone.js";
6
2
  import { ContentRelationshipField, EmptyContentRelationshipField } from "../types/value/contentRelationship.js";
7
3
  import { DateField } from "../types/value/date.js";
4
+ import { AnyOEmbed, EmbedField } from "../types/value/embed.js";
8
5
  import { GeoPointField } from "../types/value/geoPoint.js";
6
+ import { GroupField, NestedGroupField } from "../types/value/group.js";
9
7
  import { ImageField, ImageFieldImage } from "../types/value/image.js";
10
8
  import { IntegrationField, IntegrationFieldData } from "../types/value/integration.js";
11
9
  import { KeyTextField } from "../types/value/keyText.js";
12
- import { LinkToMediaField } from "../types/value/linkToMedia.js";
13
10
  import { LinkField } from "../types/value/link.js";
11
+ import { LinkToMediaField } from "../types/value/linkToMedia.js";
14
12
  import { NumberField } from "../types/value/number.js";
13
+ import { RichTextField } from "../types/value/richText.js";
15
14
  import { SelectField } from "../types/value/select.js";
15
+ import { SharedSlice } from "../types/value/sharedSlice.js";
16
+ import { Slice } from "../types/value/slice.js";
17
+ import { SliceZone } from "../types/value/sliceZone.js";
16
18
  import { TableField } from "../types/value/table.js";
17
19
  import { TimestampField } from "../types/value/timestamp.js";
18
20
  import { TitleField } from "../types/value/title.js";
19
21
  import { AnyRegularField, Repeatable } from "../types/value/types.js";
20
- import { AnyOEmbed, EmbedField } from "../types/value/embed.js";
21
- import { RichTextField } from "../types/value/richText.js";
22
22
  declare namespace isFilled_d_exports {
23
23
  export { color, contentRelationship, date, embed, geoPoint, group, image, imageThumbnail, integration, integrationField, integrationFields, keyText, link, linkToMedia, number, repeatable, richText, select, sliceZone, table, timestamp, title };
24
24
  }
@@ -168,6 +168,5 @@ export declare const group: <Fields extends Record<string, AnyRegularField | Nes
168
168
  * otherwise.
169
169
  */
170
170
  export declare const sliceZone: <Slices extends Slice | SharedSlice>(slices: SliceZone<Slices> | null | undefined) => slices is SliceZone<Slices, "filled">;
171
- //#endregion
172
171
  export { isFilled_d_exports };
173
172
  //# sourceMappingURL=isFilled.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- //#region src/helpers/isFilled.ts
2
+ // src/helpers/isFilled.ts
3
3
  var isFilled_exports = /* @__PURE__ */ __exportAll({
4
4
  color: () => color,
5
5
  contentRelationship: () => contentRelationship,
@@ -209,7 +209,6 @@ const group = (group) => {
209
209
  const sliceZone = (slices) => {
210
210
  return isNonNullish(slices) && isNonEmptyArray(slices);
211
211
  };
212
- //#endregion
213
212
  export { color, contentRelationship, date, embed, geoPoint, group, image, imageThumbnail, integration, integrationField, integrationFields, isFilled_exports, keyText, link, linkToMedia, number, repeatable, richText, select, sliceZone, table, timestamp, title };
214
213
 
215
214
  //# sourceMappingURL=isFilled.js.map
@@ -1,4 +1,4 @@
1
- //#region src/helpers/mapSliceZone.ts
1
+ // src/helpers/mapSliceZone.ts
2
2
  /**
3
3
  * Transforms a Slice Zone using a set of mapping functions, one for each type of Slice. Mapping
4
4
  * functions can be async.
@@ -44,7 +44,6 @@ function mapSliceZone(sliceZone, mappers, context) {
44
44
  };
45
45
  }));
46
46
  }
47
- //#endregion
48
47
  exports.mapSliceZone = mapSliceZone;
49
48
 
50
49
  //# sourceMappingURL=mapSliceZone.cjs.map
@@ -1,5 +1,4 @@
1
1
  import { Slice } from "../types/value/slice.cjs";
2
- //#region src/helpers/mapSliceZone.d.ts
3
2
  /**
4
3
  * Convert a value to a lazyily loaded module. This is useful when using functions like `() =>
5
4
  * import("...")`.
@@ -108,5 +107,5 @@ type MapSliceLike<TSliceLike extends SliceLike<any>, TSliceMappers extends Slice
108
107
  * ```
109
108
  */
110
109
  export declare function mapSliceZone<TSliceLike extends SliceLike, TSliceMappers extends SliceMappers<TSliceLike, TContext>, TContext = unknown>(sliceZone: SliceZoneLike<TSliceLike>, mappers: TSliceMappers, context?: TContext): Promise<MapSliceLike<TSliceLike, TSliceMappers>[]>;
111
- //#endregion
110
+ export {};
112
111
  //# sourceMappingURL=mapSliceZone.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mapSliceZone.d.cts","names":[],"sources":["../../src/helpers/mapSliceZone.ts"],"mappings":";;;;;;KAMK,WAAW,WAAW,QAAQ;EAAM,SAAS;;;KAG7C,gBAAgB,KAAK,IAAI,WAAW;KAGpC,kBAAkB;;;;;;KAOlB,iBAAiB,eAAe,aAAa,eAAe,kBAC9D,uBACA,eAAe,mBACd;;;;;;;KASC,gBAAgB,sCAAsC,KAC1D,MAAM;;;;;;;KAUF,iBAAiB;EACrB,MAAM,MAAM;;;;;;;;;;KAWR,UAAU,sCACZ,gBAAgB,cAChB,iBAAiB;;;;;;;;;KAUf,cAAc,eAAe,YAAY,sBAAsB;;;;;KAM/D;;;;;;EAMJ;;;;;;;;;KAUI,gBAAgB,eAAe,YAAY,WAAW;;EAE1D,OAAO;;EAGP;;EAOA,QAAQ,cAAc,eAAe,mBAAmB,mBAAmB;;EAG3E,SAAS;;;KAIL,aAAa,eAAe,YAAY,WAAW,yBACtD,KAAK,iBAAiB,WAAW,gBACjC,YACC,QAAQ,QAAQ,UAAU,UAG1B;;;;;YASS,YACX,eAAe,YAAY,WAC3B,qBAAqB,6CAClB,4CAGH,uBACI,MAAM,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;;KAGnE,6BAEJ,qBAAqB,wBAAwB,WAAW,gBAExD,qBAAqB,WAAW,eAC7B,QAAQ,WAAW;EACnB;IAEC,QAAQ,WAAW,4BACnB,QAAQ,WAAW,iBACpB;;KAGC,aAEJ,mBAAmB,gBACnB,sBAAsB,aACrB,oBAIE,mBAAmB,QACpB,uCAAuC,gBACtC,cAAc,kCAAkC,cAC/C,gBAAgB,4BAChB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,+BAC9D,aACD,aACD,mBAAmB,mBAClB,iCAAiC,gBAChC,cAAc,4BAA4B,cACzC,iBAAiB,sBACjB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,yBAC9D,aACD;;;;;;;;;;;;;;;;wBAkBW,aACf,mBAAmB,WACnB,sBAAsB,aAAa,YAAY,WAC/C,oBAEA,WAAW,cAAc,aACzB,SAAS,eACT,UAAU,WACR,QAAQ,aAAa,YAAY"}
1
+ {"version":3,"file":"mapSliceZone.d.cts","names":[],"sources":["../../src/helpers/mapSliceZone.ts"],"mappings":";;;;;KAMK,WAAW,WAAW,QAAQ;EAAM,SAAS;;;KAG7C,gBAAgB,KAAK,IAAI,WAAW;KAGpC,kBAAkB;;;;;;KAOlB,iBAAiB,eAAe,aAAa,eAAe,kBAC9D,uBACA,eAAe,mBACd;;;;;;;KASC,gBAAgB,sCAAsC,KAC1D,MAAM;;;;;;;KAUF,iBAAiB;EACrB,MAAM,MAAM;;;;;;;;;;KAWR,UAAU,sCACZ,gBAAgB,cAChB,iBAAiB;;;;;;;;;KAUf,cAAc,eAAe,YAAY,sBAAsB;;;;;KAM/D;;;;;;EAMJ;;;;;;;;;KAUI,gBAAgB,eAAe,YAAY,WAAW;;EAE1D,OAAO;;EAGP;;EAOA,QAAQ,cAAc,eAAe,mBAAmB,mBAAmB;;EAG3E,SAAS;;;KAIL,aAAa,eAAe,YAAY,WAAW,yBACtD,KAAK,iBAAiB,WAAW,gBACjC,YACC,QAAQ,QAAQ,UAAU,UAG1B;;;;;YASS,YACX,eAAe,YAAY,WAC3B,qBAAqB,6CAClB,4CAGH,uBACI,MAAM,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;;KAGnE,6BAEJ,qBAAqB,wBAAwB,WAAW,gBAExD,qBAAqB,WAAW,eAC7B,QAAQ,WAAW;EACnB;IAEC,QAAQ,WAAW,4BACnB,QAAQ,WAAW,iBACpB;;KAGC,aAEJ,mBAAmB,gBACnB,sBAAsB,aACrB,oBAIE,mBAAmB,QACpB,uCAAuC,gBACtC,cAAc,kCAAkC,cAC/C,gBAAgB,4BAChB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,+BAC9D,aACD,aACD,mBAAmB,mBAClB,iCAAiC,gBAChC,cAAc,4BAA4B,cACzC,iBAAiB,sBACjB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,yBAC9D,aACD;;;;;;;;;;;;;;;;wBAkBW,aACf,mBAAmB,WACnB,sBAAsB,aAAa,YAAY,WAC/C,oBAEA,WAAW,cAAc,aACzB,SAAS,eACT,UAAU,WACR,QAAQ,aAAa,YAAY"}
@@ -1,5 +1,4 @@
1
1
  import { Slice } from "../types/value/slice.js";
2
- //#region src/helpers/mapSliceZone.d.ts
3
2
  /**
4
3
  * Convert a value to a lazyily loaded module. This is useful when using functions like `() =>
5
4
  * import("...")`.
@@ -108,5 +107,5 @@ type MapSliceLike<TSliceLike extends SliceLike<any>, TSliceMappers extends Slice
108
107
  * ```
109
108
  */
110
109
  export declare function mapSliceZone<TSliceLike extends SliceLike, TSliceMappers extends SliceMappers<TSliceLike, TContext>, TContext = unknown>(sliceZone: SliceZoneLike<TSliceLike>, mappers: TSliceMappers, context?: TContext): Promise<MapSliceLike<TSliceLike, TSliceMappers>[]>;
111
- //#endregion
110
+ export {};
112
111
  //# sourceMappingURL=mapSliceZone.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mapSliceZone.d.ts","names":[],"sources":["../../src/helpers/mapSliceZone.ts"],"mappings":";;;;;;KAMK,WAAW,WAAW,QAAQ;EAAM,SAAS;;;KAG7C,gBAAgB,KAAK,IAAI,WAAW;KAGpC,kBAAkB;;;;;;KAOlB,iBAAiB,eAAe,aAAa,eAAe,kBAC9D,uBACA,eAAe,mBACd;;;;;;;KASC,gBAAgB,sCAAsC,KAC1D,MAAM;;;;;;;KAUF,iBAAiB;EACrB,MAAM,MAAM;;;;;;;;;;KAWR,UAAU,sCACZ,gBAAgB,cAChB,iBAAiB;;;;;;;;;KAUf,cAAc,eAAe,YAAY,sBAAsB;;;;;KAM/D;;;;;;EAMJ;;;;;;;;;KAUI,gBAAgB,eAAe,YAAY,WAAW;;EAE1D,OAAO;;EAGP;;EAOA,QAAQ,cAAc,eAAe,mBAAmB,mBAAmB;;EAG3E,SAAS;;;KAIL,aAAa,eAAe,YAAY,WAAW,yBACtD,KAAK,iBAAiB,WAAW,gBACjC,YACC,QAAQ,QAAQ,UAAU,UAG1B;;;;;YASS,YACX,eAAe,YAAY,WAC3B,qBAAqB,6CAClB,4CAGH,uBACI,MAAM,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;;KAGnE,6BAEJ,qBAAqB,wBAAwB,WAAW,gBAExD,qBAAqB,WAAW,eAC7B,QAAQ,WAAW;EACnB;IAEC,QAAQ,WAAW,4BACnB,QAAQ,WAAW,iBACpB;;KAGC,aAEJ,mBAAmB,gBACnB,sBAAsB,aACrB,oBAIE,mBAAmB,QACpB,uCAAuC,gBACtC,cAAc,kCAAkC,cAC/C,gBAAgB,4BAChB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,+BAC9D,aACD,aACD,mBAAmB,mBAClB,iCAAiC,gBAChC,cAAc,4BAA4B,cACzC,iBAAiB,sBACjB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,yBAC9D,aACD;;;;;;;;;;;;;;;;wBAkBW,aACf,mBAAmB,WACnB,sBAAsB,aAAa,YAAY,WAC/C,oBAEA,WAAW,cAAc,aACzB,SAAS,eACT,UAAU,WACR,QAAQ,aAAa,YAAY"}
1
+ {"version":3,"file":"mapSliceZone.d.ts","names":[],"sources":["../../src/helpers/mapSliceZone.ts"],"mappings":";;;;;KAMK,WAAW,WAAW,QAAQ;EAAM,SAAS;;;KAG7C,gBAAgB,KAAK,IAAI,WAAW;KAGpC,kBAAkB;;;;;;KAOlB,iBAAiB,eAAe,aAAa,eAAe,kBAC9D,uBACA,eAAe,mBACd;;;;;;;KASC,gBAAgB,sCAAsC,KAC1D,MAAM;;;;;;;KAUF,iBAAiB;EACrB,MAAM,MAAM;;;;;;;;;;KAWR,UAAU,sCACZ,gBAAgB,cAChB,iBAAiB;;;;;;;;;KAUf,cAAc,eAAe,YAAY,sBAAsB;;;;;KAM/D;;;;;;EAMJ;;;;;;;;;KAUI,gBAAgB,eAAe,YAAY,WAAW;;EAE1D,OAAO;;EAGP;;EAOA,QAAQ,cAAc,eAAe,mBAAmB,mBAAmB;;EAG3E,SAAS;;;KAIL,aAAa,eAAe,YAAY,WAAW,yBACtD,KAAK,iBAAiB,WAAW,gBACjC,YACC,QAAQ,QAAQ,UAAU,UAG1B;;;;;YASS,YACX,eAAe,YAAY,WAC3B,qBAAqB,6CAClB,4CAGH,uBACI,MAAM,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;;KAGnE,6BAEJ,qBAAqB,wBAAwB,WAAW,gBAExD,qBAAqB,WAAW,eAC7B,QAAQ,WAAW;EACnB;IAEC,QAAQ,WAAW,4BACnB,QAAQ,WAAW,iBACpB;;KAGC,aAEJ,mBAAmB,gBACnB,sBAAsB,aACrB,oBAIE,mBAAmB,QACpB,uCAAuC,gBACtC,cAAc,kCAAkC,cAC/C,gBAAgB,4BAChB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,+BAC9D,aACD,aACD,mBAAmB,mBAClB,iCAAiC,gBAChC,cAAc,4BAA4B,cACzC,iBAAiB,sBACjB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,yBAC9D,aACD;;;;;;;;;;;;;;;;wBAkBW,aACf,mBAAmB,WACnB,sBAAsB,aAAa,YAAY,WAC/C,oBAEA,WAAW,cAAc,aACzB,SAAS,eACT,UAAU,WACR,QAAQ,aAAa,YAAY"}
@@ -1,4 +1,4 @@
1
- //#region src/helpers/mapSliceZone.ts
1
+ // src/helpers/mapSliceZone.ts
2
2
  /**
3
3
  * Transforms a Slice Zone using a set of mapping functions, one for each type of Slice. Mapping
4
4
  * functions can be async.
@@ -44,7 +44,6 @@ function mapSliceZone(sliceZone, mappers, context) {
44
44
  };
45
45
  }));
46
46
  }
47
- //#endregion
48
47
  export { mapSliceZone };
49
48
 
50
49
  //# sourceMappingURL=mapSliceZone.js.map
package/dist/index.cjs CHANGED
@@ -2,48 +2,47 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_filter = require("./filter.cjs");
3
3
  const require_mapSliceZone = require("./helpers/mapSliceZone.cjs");
4
4
  const require_richText = require("./types/value/richText.cjs");
5
- const require_buildQueryURL = require("./buildQueryURL.cjs");
6
- const require_errors = require("./errors.cjs");
7
- const require_isRepositoryName = require("./isRepositoryName.cjs");
8
- const require_getRepositoryEndpoint = require("./getRepositoryEndpoint.cjs");
9
- const require_getRepositoryName = require("./getRepositoryName.cjs");
10
- const require_link = require("./types/value/link.cjs");
11
- const require_documentToLinkField = require("./helpers/documentToLinkField.cjs");
12
- const require_asLink = require("./helpers/asLink.cjs");
13
- const require_isRepositoryEndpoint = require("./isRepositoryEndpoint.cjs");
14
- const require_cookie = require("./cookie.cjs");
15
- const require_Client = require("./Client.cjs");
16
5
  const require_createClient = require("./createClient.cjs");
17
- const require_isFilled = require("./helpers/isFilled.cjs");
18
- const require_Asset = require("./types/migration/Asset.cjs");
19
- const require_Document = require("./types/migration/Document.cjs");
20
- const require_WriteClient = require("./WriteClient.cjs");
6
+ const require_Client = require("./Client.cjs");
21
7
  const require_createWriteClient = require("./createWriteClient.cjs");
22
- const require_Migration = require("./Migration.cjs");
8
+ const require_WriteClient = require("./WriteClient.cjs");
23
9
  const require_createMigration = require("./createMigration.cjs");
10
+ const require_Migration = require("./Migration.cjs");
11
+ const require_getRepositoryEndpoint = require("./getRepositoryEndpoint.cjs");
12
+ const require_getRepositoryName = require("./getRepositoryName.cjs");
24
13
  const require_getGraphQLEndpoint = require("./getGraphQLEndpoint.cjs");
14
+ const require_isRepositoryName = require("./isRepositoryName.cjs");
15
+ const require_isRepositoryEndpoint = require("./isRepositoryEndpoint.cjs");
16
+ const require_buildQueryURL = require("./buildQueryURL.cjs");
25
17
  const require_getToolbarSrc = require("./getToolbarSrc.cjs");
18
+ const require_cookie = require("./cookie.cjs");
26
19
  const require_asDate = require("./helpers/asDate.cjs");
20
+ const require_asLink = require("./helpers/asLink.cjs");
27
21
  const require_asLinkAttrs = require("./helpers/asLinkAttrs.cjs");
28
22
  const require_asText = require("./helpers/asText.cjs");
29
23
  const require_asHTML = require("./helpers/asHTML.cjs");
30
24
  const require_asImageSrc = require("./helpers/asImageSrc.cjs");
31
25
  const require_asImageWidthSrcSet = require("./helpers/asImageWidthSrcSet.cjs");
32
26
  const require_asImagePixelDensitySrcSet = require("./helpers/asImagePixelDensitySrcSet.cjs");
27
+ const require_isFilled = require("./helpers/isFilled.cjs");
28
+ const require_documentToLinkField = require("./helpers/documentToLinkField.cjs");
29
+ const require_errors = require("./errors.cjs");
30
+ const require_link = require("./types/value/link.cjs");
33
31
  const require_embed = require("./types/value/embed.cjs");
34
32
  const require_types = require("./types/model/types.cjs");
35
33
  const require_link$1 = require("./types/model/link.cjs");
36
34
  const require_sliceZone = require("./types/model/sliceZone.cjs");
37
35
  const require_slice = require("./types/model/slice.cjs");
36
+ const require_Document = require("./types/migration/Document.cjs");
37
+ const require_Asset = require("./types/migration/Asset.cjs");
38
38
  const require_types$1 = require("./types/webhook/types.cjs");
39
- //#region src/index.ts
39
+ // src/index.ts
40
40
  /** @deprecated Renamed to `filter` */
41
41
  const predicate = require_filter.filter;
42
42
  /** @deprecated Renamed to `mapSliceZone` */
43
43
  const unstable_mapSliceZone = require_mapSliceZone.mapSliceZone;
44
44
  /** @deprecated Use {@link RichTextNodeType} instead. */
45
45
  const Element = require_richText.RichTextNodeType;
46
- //#endregion
47
46
  exports.Client = require_Client.Client;
48
47
  exports.CustomTypeModelFieldType = require_types.CustomTypeModelFieldType;
49
48
  exports.CustomTypeModelLinkSelectType = require_link$1.CustomTypeModelLinkSelectType;
package/dist/index.d.cts CHANGED
@@ -1,78 +1,26 @@
1
1
  import { filter } from "./filter.cjs";
2
- import { BooleanField } from "./types/value/boolean.cjs";
3
- import { ColorField } from "./types/value/color.cjs";
4
- import { GroupField, NestedGroupField } from "./types/value/group.cjs";
5
- import { SharedSliceVariation } from "./types/value/sharedSliceVariation.cjs";
6
- import { SharedSlice } from "./types/value/sharedSlice.cjs";
7
- import { Slice } from "./types/value/slice.cjs";
8
- import { SliceZone } from "./types/value/sliceZone.cjs";
9
- import { ContentRelationshipField, FilledContentRelationshipField } from "./types/value/contentRelationship.cjs";
10
- import { DateField } from "./types/value/date.cjs";
11
- import { GeoPointField } from "./types/value/geoPoint.cjs";
12
- import { EmptyImageFieldImage, FilledImageFieldImage, ImageField, ImageFieldImage } from "./types/value/image.cjs";
13
- import { IntegrationField, IntegrationFieldData } from "./types/value/integration.cjs";
14
- import { KeyTextField } from "./types/value/keyText.cjs";
15
- import { FilledLinkToMediaField, LinkToMediaField } from "./types/value/linkToMedia.cjs";
16
- import { EmptyLinkField, FilledLinkToWebField, LinkField, LinkType } from "./types/value/link.cjs";
17
- import { NumberField } from "./types/value/number.cjs";
18
- import { SelectField } from "./types/value/select.cjs";
19
- import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "./types/value/table.cjs";
20
- import { TimestampField } from "./types/value/timestamp.cjs";
21
- import { TitleField } from "./types/value/title.cjs";
22
- import { AnyRegularField, AnySlicePrimaryField, FieldState, Repeatable } from "./types/value/types.cjs";
23
- import { AnyOEmbed, EmbedField, LinkOEmbed, OEmbedExtra, OEmbedType, PhotoOEmbed, RichOEmbed, VideoOEmbed } from "./types/value/embed.cjs";
24
- import { RTAnyNode, RTBlockNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTInlineNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTSpanNodeBase, RTStrongNode, RTTextNode, RTTextNodeBase, RichTextField, RichTextNodeType, RichTextNodeTypes } from "./types/value/richText.cjs";
25
- import { AlternateLanguage, PrismicDocument, PrismicDocumentHeader, PrismicDocumentWithUID, PrismicDocumentWithoutUID } from "./types/value/document.cjs";
26
- import { LinkResolverFunction, asLink } from "./helpers/asLink.cjs";
27
2
  import { HTMLRichTextFunctionSerializer, HTMLRichTextMapSerializer, HTMLRichTextSerializer, asHTML } from "./helpers/asHTML.cjs";
28
3
  import { SliceMapper, mapSliceZone } from "./helpers/mapSliceZone.cjs";
29
- import { CustomTypeModelBooleanField } from "./types/model/boolean.cjs";
30
- import { CustomTypeModelColorField } from "./types/model/color.cjs";
31
- import { CustomTypeModelLinkField, CustomTypeModelLinkSelectType } from "./types/model/link.cjs";
32
- import { CustomTypeModelContentRelationshipField, CustomTypeModelFetchContentRelationshipLevel1, CustomTypeModelFetchCustomTypeLevel1, CustomTypeModelFetchCustomTypeLevel2, CustomTypeModelFetchGroupLevel1, CustomTypeModelFetchGroupLevel2 } from "./types/model/contentRelationship.cjs";
33
- import { CustomTypeModelDateField } from "./types/model/date.cjs";
34
- import { CustomTypeModelEmbedField } from "./types/model/embed.cjs";
35
- import { CustomTypeModelGeoPointField } from "./types/model/geoPoint.cjs";
36
- import { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./types/model/group.cjs";
37
- import { CustomTypeModelImageConstraint, CustomTypeModelImageField, CustomTypeModelImageThumbnail } from "./types/model/image.cjs";
38
- import { CustomTypeModelKeyTextField } from "./types/model/keyText.cjs";
39
- import { CustomTypeModelLinkToMediaField } from "./types/model/linkToMedia.cjs";
40
- import { CustomTypeModelNumberField } from "./types/model/number.cjs";
41
- import { CustomTypeModelRangeField } from "./types/model/range.cjs";
42
- import { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField } from "./types/model/richText.cjs";
43
- import { CustomTypeModelSelectField } from "./types/model/select.cjs";
44
- import { CustomTypeModelSeparatorField } from "./types/model/separator.cjs";
45
- import { CustomTypeModelLegacySlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay } from "./types/model/slice.cjs";
46
- import { CustomTypeModelSharedSlice, CustomTypeModelSliceLabel, CustomTypeModelSliceType, CustomTypeModelSliceZoneField } from "./types/model/sliceZone.cjs";
47
- import { CustomTypeModelTableField } from "./types/model/table.cjs";
48
- import { CustomTypeModelTimestampField } from "./types/model/timestamp.cjs";
49
- import { CustomTypeModelTitleField } from "./types/model/title.cjs";
50
- import { CustomTypeModelUIDField } from "./types/model/uid.cjs";
51
- import { CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType } from "./types/model/types.cjs";
52
4
  import { CustomTypeModelIntegrationField } from "./types/model/integration.cjs";
53
- import { BuildQueryURLArgs, Ordering, QueryParams, Route, buildQueryURL } from "./buildQueryURL.cjs";
54
- import { AbortSignalLike, FetchLike, RequestInitLike, ResponseLike } from "./lib/request.cjs";
55
- import { Query } from "./types/api/query.cjs";
56
- import { Ref } from "./types/api/ref.cjs";
57
- import { Form, FormField, Language, Repository } from "./types/api/repository.cjs";
58
- import { Client, ClientConfig, HttpRequestLike } from "./Client.cjs";
5
+ import { IntegrationField, IntegrationFieldData } from "./types/value/integration.cjs";
6
+ import { RTAnyNode, RTBlockNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTInlineNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTSpanNodeBase, RTStrongNode, RTTextNode, RTTextNodeBase, RichTextField, RichTextNodeType, RichTextNodeTypes } from "./types/value/richText.cjs";
59
7
  import { CreateClient, createClient } from "./createClient.cjs";
60
- import { MigrationContentRelationship } from "./types/migration/ContentRelationship.cjs";
61
- import { ExistingPrismicDocument, InjectMigrationSpecificTypes, PendingPrismicDocument, PrismicMigrationDocument } from "./types/migration/Document.cjs";
62
- import { MigrationImage, MigrationLinkToMedia, MigrationRTImageNode, PrismicMigrationAsset } from "./types/migration/Asset.cjs";
63
- import { Migration } from "./Migration.cjs";
64
- import { PublishMigrationReleaseResult } from "./types/api/migration/release.cjs";
65
- import { MigrateReporterEvents, WriteClient, WriteClientConfig } from "./WriteClient.cjs";
8
+ import { Client, ClientConfig, HttpRequestLike } from "./Client.cjs";
66
9
  import { CreateWriteClient, createWriteClient } from "./createWriteClient.cjs";
10
+ import { MigrateReporterEvents, WriteClient, WriteClientConfig } from "./WriteClient.cjs";
67
11
  import { CreateMigration, createMigration } from "./createMigration.cjs";
12
+ import { Migration } from "./Migration.cjs";
68
13
  import { getRepositoryEndpoint } from "./getRepositoryEndpoint.cjs";
69
14
  import { getRepositoryName } from "./getRepositoryName.cjs";
70
15
  import { getGraphQLEndpoint } from "./getGraphQLEndpoint.cjs";
71
16
  import { isRepositoryName } from "./isRepositoryName.cjs";
72
17
  import { isRepositoryEndpoint } from "./isRepositoryEndpoint.cjs";
18
+ import { BuildQueryURLArgs, Ordering, QueryParams, Route, buildQueryURL } from "./buildQueryURL.cjs";
73
19
  import { getToolbarSrc } from "./getToolbarSrc.cjs";
74
20
  import { cookie_d_exports } from "./cookie.cjs";
21
+ import { AbortSignalLike, FetchLike, RequestInitLike, ResponseLike } from "./lib/request.cjs";
75
22
  import { asDate } from "./helpers/asDate.cjs";
23
+ import { LinkResolverFunction, asLink } from "./helpers/asLink.cjs";
76
24
  import { AsLinkAttrsConfig, asLinkAttrs } from "./helpers/asLinkAttrs.cjs";
77
25
  import { asText } from "./helpers/asText.cjs";
78
26
  import { asImageSrc } from "./helpers/asImageSrc.cjs";
@@ -81,16 +29,67 @@ import { asImagePixelDensitySrcSet } from "./helpers/asImagePixelDensitySrcSet.c
81
29
  import { isFilled_d_exports } from "./helpers/isFilled.cjs";
82
30
  import { documentToLinkField } from "./helpers/documentToLinkField.cjs";
83
31
  import { ForbiddenError, InvalidDataError, NotFoundError, ParsingError, PreviewTokenExpiredError, PrismicError, RefExpiredError, RefNotFoundError, RepositoryNotFoundError } from "./errors.cjs";
32
+ import { EmptyLinkField, FilledLinkToWebField, LinkField, LinkType } from "./types/value/link.cjs";
33
+ import { AnyOEmbed, EmbedField, LinkOEmbed, OEmbedExtra, OEmbedType, PhotoOEmbed, RichOEmbed, VideoOEmbed } from "./types/value/embed.cjs";
34
+ import { AlternateLanguage, PrismicDocument, PrismicDocumentHeader, PrismicDocumentWithUID, PrismicDocumentWithoutUID } from "./types/value/document.cjs";
35
+ import { TitleField } from "./types/value/title.cjs";
36
+ import { EmptyImageFieldImage, FilledImageFieldImage, ImageField, ImageFieldImage } from "./types/value/image.cjs";
37
+ import { ContentRelationshipField, FilledContentRelationshipField } from "./types/value/contentRelationship.cjs";
38
+ import { FilledLinkToMediaField, LinkToMediaField } from "./types/value/linkToMedia.cjs";
39
+ import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "./types/value/table.cjs";
40
+ import { BooleanField } from "./types/value/boolean.cjs";
41
+ import { ColorField } from "./types/value/color.cjs";
42
+ import { DateField } from "./types/value/date.cjs";
43
+ import { KeyTextField } from "./types/value/keyText.cjs";
44
+ import { NumberField } from "./types/value/number.cjs";
45
+ import { SelectField } from "./types/value/select.cjs";
46
+ import { TimestampField } from "./types/value/timestamp.cjs";
47
+ import { GeoPointField } from "./types/value/geoPoint.cjs";
48
+ import { GroupField, NestedGroupField } from "./types/value/group.cjs";
49
+ import { SliceZone } from "./types/value/sliceZone.cjs";
50
+ import { Slice } from "./types/value/slice.cjs";
51
+ import { SharedSlice } from "./types/value/sharedSlice.cjs";
52
+ import { SharedSliceVariation } from "./types/value/sharedSliceVariation.cjs";
53
+ import { AnyRegularField, AnySlicePrimaryField, FieldState, Repeatable } from "./types/value/types.cjs";
54
+ import { CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType } from "./types/model/types.cjs";
55
+ import { CustomTypeModelLinkField, CustomTypeModelLinkSelectType } from "./types/model/link.cjs";
56
+ import { CustomTypeModelSharedSlice, CustomTypeModelSliceLabel, CustomTypeModelSliceType, CustomTypeModelSliceZoneField } from "./types/model/sliceZone.cjs";
57
+ import { CustomTypeModelLegacySlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay } from "./types/model/slice.cjs";
84
58
  import { CustomTypeModel, CustomTypeModelDefinition, CustomTypeModelTab } from "./types/model/customType.cjs";
85
- import { SharedSliceModelVariation } from "./types/model/sharedSliceVariation.cjs";
59
+ import { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField } from "./types/model/richText.cjs";
60
+ import { CustomTypeModelTitleField } from "./types/model/title.cjs";
61
+ import { CustomTypeModelImageConstraint, CustomTypeModelImageField, CustomTypeModelImageThumbnail } from "./types/model/image.cjs";
62
+ import { CustomTypeModelContentRelationshipField, CustomTypeModelFetchContentRelationshipLevel1, CustomTypeModelFetchCustomTypeLevel1, CustomTypeModelFetchCustomTypeLevel2, CustomTypeModelFetchGroupLevel1, CustomTypeModelFetchGroupLevel2 } from "./types/model/contentRelationship.cjs";
63
+ import { CustomTypeModelLinkToMediaField } from "./types/model/linkToMedia.cjs";
64
+ import { CustomTypeModelEmbedField } from "./types/model/embed.cjs";
65
+ import { CustomTypeModelBooleanField } from "./types/model/boolean.cjs";
66
+ import { CustomTypeModelColorField } from "./types/model/color.cjs";
67
+ import { CustomTypeModelDateField } from "./types/model/date.cjs";
68
+ import { CustomTypeModelKeyTextField } from "./types/model/keyText.cjs";
69
+ import { CustomTypeModelNumberField } from "./types/model/number.cjs";
70
+ import { CustomTypeModelSelectField } from "./types/model/select.cjs";
71
+ import { CustomTypeModelTimestampField } from "./types/model/timestamp.cjs";
72
+ import { CustomTypeModelGeoPointField } from "./types/model/geoPoint.cjs";
73
+ import { CustomTypeModelTableField } from "./types/model/table.cjs";
74
+ import { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./types/model/group.cjs";
86
75
  import { SharedSliceModel } from "./types/model/sharedSlice.cjs";
76
+ import { SharedSliceModelVariation } from "./types/model/sharedSliceVariation.cjs";
77
+ import { CustomTypeModelUIDField } from "./types/model/uid.cjs";
78
+ import { CustomTypeModelRangeField } from "./types/model/range.cjs";
79
+ import { CustomTypeModelSeparatorField } from "./types/model/separator.cjs";
80
+ import { ExistingPrismicDocument, InjectMigrationSpecificTypes, PendingPrismicDocument, PrismicMigrationDocument } from "./types/migration/Document.cjs";
81
+ import { MigrationImage, MigrationLinkToMedia, MigrationRTImageNode, PrismicMigrationAsset } from "./types/migration/Asset.cjs";
82
+ import { MigrationContentRelationship } from "./types/migration/ContentRelationship.cjs";
83
+ import { Query } from "./types/api/query.cjs";
84
+ import { PublishMigrationReleaseResult } from "./types/api/migration/release.cjs";
85
+ import { Ref } from "./types/api/ref.cjs";
87
86
  import { Release } from "./types/api/release.cjs";
87
+ import { Form, FormField, Language, Repository } from "./types/api/repository.cjs";
88
88
  import { Tags } from "./types/api/tags.cjs";
89
89
  import { IntegrationAPIItem, IntegrationAPIResults } from "./types/api/integration.cjs";
90
+ import { WebhookBody, WebhookType } from "./types/webhook/types.cjs";
90
91
  import { WebhookBodyAPIUpdate } from "./types/webhook/apiUpdate.cjs";
91
92
  import { WebhookBodyTestTrigger } from "./types/webhook/testTrigger.cjs";
92
- import { WebhookBody, WebhookType } from "./types/webhook/types.cjs";
93
- //#region src/index.d.ts
94
93
  /** @deprecated Renamed to `filter` */
95
94
  declare const predicate: {
96
95
  at: (path: string, value: string | number | boolean | string[] | Date) => string;
@@ -154,6 +153,5 @@ declare const Element: {
154
153
  type IntegrationFields = IntegrationField;
155
154
  /** @deprecated Renamed to `CustomTypeModelIntegrationField`. */
156
155
  type CustomTypeModelIntegrationFieldsField = CustomTypeModelIntegrationField;
157
- //#endregion
158
156
  export { type AbortSignalLike, type AlternateLanguage, type AnyOEmbed, type AnyRegularField, type AnySlicePrimaryField, type AsLinkAttrsConfig, type BooleanField, type BuildQueryURLArgs, Client, type ClientConfig, type ColorField, type ContentRelationshipField, type CreateClient, type CreateMigration, type CreateWriteClient, type CustomTypeModel, type CustomTypeModelBooleanField, type CustomTypeModelColorField, type CustomTypeModelContentRelationshipField, type CustomTypeModelDateField, type CustomTypeModelDefinition, type CustomTypeModelEmbedField, type CustomTypeModelFetchContentRelationshipLevel1, type CustomTypeModelFetchCustomTypeLevel1, type CustomTypeModelFetchCustomTypeLevel2, type CustomTypeModelFetchGroupLevel1, type CustomTypeModelFetchGroupLevel2, type CustomTypeModelField, type CustomTypeModelFieldForGroup, type CustomTypeModelFieldForNestedGroup, type CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType, type CustomTypeModelGeoPointField, type CustomTypeModelGroupField, type CustomTypeModelImageConstraint, type CustomTypeModelImageField, type CustomTypeModelImageThumbnail, type CustomTypeModelIntegrationField, CustomTypeModelIntegrationFieldsField, type CustomTypeModelKeyTextField, type CustomTypeModelLegacySlice, type CustomTypeModelLinkField, CustomTypeModelLinkSelectType, type CustomTypeModelLinkToMediaField, type CustomTypeModelNestedGroupField, type CustomTypeModelNumberField, type CustomTypeModelRangeField, type CustomTypeModelRichTextField, type CustomTypeModelRichTextMultiField, type CustomTypeModelRichTextSingleField, type CustomTypeModelSelectField, type CustomTypeModelSeparatorField, type CustomTypeModelSharedSlice, type CustomTypeModelSlice, CustomTypeModelSliceDisplay, type CustomTypeModelSliceLabel, CustomTypeModelSliceType, type CustomTypeModelSliceZoneField, type CustomTypeModelTab, type CustomTypeModelTableField, type CustomTypeModelTimestampField, type CustomTypeModelTitleField, type CustomTypeModelUIDField, type DateField, Element, type EmbedField, type EmptyImageFieldImage, type EmptyLinkField, type ExistingPrismicDocument, type FetchLike, type FieldState, type FilledContentRelationshipField, type FilledImageFieldImage, type FilledLinkToMediaField, type FilledLinkToWebField, ForbiddenError, type Form, type FormField, type GeoPointField, type GroupField, type HTMLFunctionSerializer, type HTMLMapSerializer, type HTMLRichTextFunctionSerializer, type HTMLRichTextMapSerializer, type HTMLRichTextSerializer, type HttpRequestLike, type ImageField, type ImageFieldImage, type InjectMigrationSpecificTypes, type IntegrationAPIItem, type IntegrationAPIResults, type IntegrationField, type IntegrationFieldData, type IntegrationFields, InvalidDataError, type KeyTextField, type Language, type LinkField, type LinkOEmbed, type LinkResolverFunction, type LinkToMediaField, LinkType, type MigrateReporterEvents, Migration, type MigrationContentRelationship, type MigrationImage, type MigrationLinkToMedia, type MigrationRTImageNode, type NestedGroupField, NotFoundError, type NumberField, type OEmbedExtra, OEmbedType, type Ordering, ParsingError, type PendingPrismicDocument, type PhotoOEmbed, PreviewTokenExpiredError, type PrismicDocument, type PrismicDocumentHeader, type PrismicDocumentWithUID, type PrismicDocumentWithoutUID, PrismicError, PrismicMigrationAsset, PrismicMigrationDocument, type PublishMigrationReleaseResult, type Query, type QueryParams, type RTAnyNode, type RTBlockNode, type RTEmNode, type RTEmbedNode, type RTHeading1Node, type RTHeading2Node, type RTHeading3Node, type RTHeading4Node, type RTHeading5Node, type RTHeading6Node, type RTImageNode, type RTInlineNode, type RTLabelNode, type RTLinkNode, type RTListItemNode, type RTListNode, type RTNode, type RTOListItemNode, type RTOListNode, type RTParagraphNode, type RTPreformattedNode, type RTSpanNode, type RTSpanNodeBase, type RTStrongNode, type RTTextNode, type RTTextNodeBase, type Ref, RefExpiredError, RefNotFoundError, type Release, type Repeatable, type Repository, RepositoryNotFoundError, type RequestInitLike, type ResponseLike, type RichOEmbed, type RichTextField, RichTextNodeType, type RichTextNodeTypes, type Route, type SelectField, type SharedSlice, type SharedSliceModel, type SharedSliceModelVariation, type SharedSliceVariation, type Slice, type SliceMapper, type SliceZone, type TableField, type TableFieldBody, type TableFieldBodyRow, type TableFieldDataCell, type TableFieldHead, type TableFieldHeadRow, type TableFieldHeaderCell, type Tags, type TimestampField, type TitleField, type VideoOEmbed, type WebhookBody, type WebhookBodyAPIUpdate, type WebhookBodyTestTrigger, WebhookType, WriteClient, type WriteClientConfig, asDate, asHTML, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet, asLink, asLinkAttrs, asText, buildQueryURL, cookie_d_exports as cookie, createClient, createMigration, createWriteClient, documentToLinkField, filter, getGraphQLEndpoint, getRepositoryEndpoint, getRepositoryName, getToolbarSrc, isFilled_d_exports as isFilled, isRepositoryEndpoint, isRepositoryName, mapSliceZone, predicate, unstable_mapSliceZone };
159
157
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsCM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BA,8BAAqB;;KAWtB,oBAAoB;;KAEpB,yBAAyB;;cAiCxB;;;;;;;;;;;;;;;;;;;;;;KAiGD,oBAAoB;;KAoEpB,wCAAwC"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsCM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BA,8BAAqB;;KAWtB,oBAAoB;;KAEpB,yBAAyB;;cAiCxB;;;;;;;;;;;;;;;;;;;;;;KAiGD,oBAAoB;;KAoEpB,wCAAwC"}